/* Дополнительные улучшения для мобильного опыта категории "люди" */

@media (max-width: 768px) {
  
  /* Улучшенная прокрутка с momentum на iOS */
  .cards {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Плавный переход между страницами */
  .container {
    animation: pageSlideIn 0.4s ease-out;
  }

  @keyframes pageSlideIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Улучшенный заголовок секции */
  .people-section-header {
    padding: 20px 16px;
    background: #ffffff;
    margin: 0;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
  }

  .people-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
  }

  /* Счетчик карточек */
  .people-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-left: auto;
  }

  /* Кнопка "Показать больше" */
  .load-more-btn {
    width: 100%;
    padding: 14px;
    margin: 20px 0;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
  }

  .load-more-btn:active {
    transform: scale(0.95);
    background: #0056CC;
  }

  .load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
  }

  .load-more-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Фильтры в виде горизонтальных чипов */
  .people-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }

  .people-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .filter-chip:active {
    transform: scale(0.95);
  }

  .filter-chip.active {
    background: #007AFF;
    border-color: #007AFF;
    color: white;
  }

  .filter-chip::before {
    content: attr(data-icon);
    font-size: 14px;
  }

  /* Пустое состояние */
  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
  }

  .empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
  }

  .empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }

  .empty-state-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
  }

  /* Состояние загрузки */
  .loading-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .skeleton-card {
    aspect-ratio: 3/4;
    background: linear-gradient(
      90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
  }

  @keyframes shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

  /* Кнопка "Наверх" */
  .scroll-to-top {
    position: fixed;
    bottom: calc(var(--mobile-bottom-nav-height, 83px) + 20px);
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    cursor: pointer;
  }

  .scroll-to-top.visible {
    transform: translateY(0);
  }

  .scroll-to-top:active {
    transform: scale(0.9);
  }

  .scroll-to-top::before {
    content: '↑';
  }

  /* Улучшенная модалка профиля */
  .modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
  }

  /* Быстрые действия в карточке (свайп) */
  .card-quick-actions {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.95));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 12px;
    transition: right 0.3s ease;
    z-index: 5;
  }

  .card-people.swiped-left .card-quick-actions {
    right: 0;
  }

  .quick-action-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
  }

  .quick-action-btn:active {
    transform: scale(0.9);
  }

  /* Индикатор новых карточек */
  .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.05);
      opacity: 0.9;
    }
  }

  /* Улучшенный поиск */
  .people-search-wrapper {
    position: sticky;
    top: var(--mobile-header-height, 44px);
    z-index: 100;
    background: white;
    padding: 12px;
    margin: -12px -12px 0 -12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .people-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23999" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 16px center;
    background-size: 20px;
  }

  .people-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  }

  /* Адаптация для очень маленьких экранов */
  @media (max-width: 360px) {
    .cards {
      gap: 10px;
      padding: 10px;
    }

    .card-info {
      padding: 10px;
    }

    .card-username {
      font-size: 14px;
    }

    .card-age {
      font-size: 12px;
    }

    .rating {
      font-size: 10px;
    }

    .card-location {
      font-size: 10px;
    }

    .heart-icon .fav-btn {
      width: 32px;
      height: 32px;
      padding: 8px;
    }

    .heart-icon .fav-btn img {
      width: 16px;
      height: 16px;
    }
  }

  /* Планшеты в портретном режиме */
  @media (min-width: 481px) and (max-width: 768px) {
    .cards {
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      padding: 14px;
    }
  }

  /* Ландшафтный режим телефонов */
  @media (max-width: 768px) and (orientation: landscape) {
    .cards {
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .card-photo-wrapper {
      aspect-ratio: 2/3;
    }
  }

  /* Оптимизация для iPhone с вырезом */
  @supports (padding: max(0px)) {
    .people-section-header,
    .people-search-wrapper {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }

    .cards {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }

  /* Pull-to-refresh индикатор */
  .pull-to-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .pull-to-refresh-indicator.active {
    top: 10px;
  }

  .pull-to-refresh-indicator::before {
    content: '↓';
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s ease;
  }

  .pull-to-refresh-indicator.active::before {
    animation: spin 0.8s linear infinite;
  }

  /* Темная тема */
  @media (prefers-color-scheme: dark) {
    .people-search-input {
      background-color: #2c2c2e;
      color: white;
      border-color: #48484a;
    }

    .filter-chip {
      background: #2c2c2e;
      border-color: #48484a;
      color: white;
    }

    .empty-state-title {
      color: white;
    }

    .empty-state-text {
      color: #8e8e93;
    }

    .skeleton-card {
      background: linear-gradient(
        90deg,
        #2c2c2e 25%,
        #3a3a3c 50%,
        #2c2c2e 75%
      );
      background-size: 200% 100%;
    }

    .people-search-wrapper {
      background: #1c1c1e;
    }
  }

  /* ============================================
     INSTAGRAM/TIKTOK STYLE - MODERN & VIBRANT
     ============================================ */

  /* Базовые стили модального окна */
  .modal[id^="peoplemodal"] {
    padding: 0 !important;
  }

  .modal[id^="peoplemodal"] .modal-backdrop {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.95), rgba(75, 0, 130, 0.95)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  /* Анимация появления - elastic bounce */
  .modal[id^="peoplemodal"].fade .modal-dialog {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    transform: scale(0.7) translateY(100%) !important;
    opacity: 0 !important;
  }

  .modal[id^="peoplemodal"].show .modal-dialog {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
  }

  /* Диалог модального окна - полный экран */
  .modal[id^="peoplemodal"] .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* Контент модального окна - градиентный фон */
  .modal[id^="peoplemodal"] .modal-content {
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Кнопка закрытия - neon style */
  .modal[id^="peoplemodal"] .btn-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1070 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
  }

  .modal[id^="peoplemodal"] .btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) scale(1.1) !important;
  }

  .modal[id^="peoplemodal"] .btn-close:active {
    transform: scale(0.9) !important;
  }

  /* Тело модального окна */
  .modal[id^="peoplemodal"] .modal-body {
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100% !important;
    scrollbar-width: none !important;
  }

  .modal[id^="peoplemodal"] .modal-body::-webkit-scrollbar {
    display: none !important;
  }

  /* Контейнер */
  .modal[id^="peoplemodal"] .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Карточка профиля */
  .modal[id^="peoplemodal"] .card-people {
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* СЕКЦИЯ ФОТО - Instagram Stories Style */
  .modal[id^="peoplemodal"] .profile-photo {
    position: relative !important;
    width: 100% !important;
    height: 65vh !important;
    min-height: 450px !important;
    max-height: 700px !important;
    background: radial-gradient(circle at top right, #667eea, #764ba2, #f093fb) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 0 40px 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  }

  /* Анимированная рамка вокруг фото */
  .modal[id^="peoplemodal"] .profile-photo::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 0 0 40px 40px !important;
    padding: 3px !important;
    background: linear-gradient(45deg, #f093fb, #f5576c, #ffd140, #30cfd0, #667eea) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    animation: borderRotate 3s linear infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  @keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  }

  /* Изображение профиля */
  .modal[id^="peoplemodal"] .profile-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 0 40px 40px !important;
    filter: brightness(1.05) contrast(1.1) saturate(1.2) !important;
  }

  /* Навигационные стрелки - neon glow */
  .modal[id^="peoplemodal"] .nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: white !important;
    cursor: pointer !important;
    z-index: 10 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
  }

  .modal[id^="peoplemodal"] .nav.left {
    left: 16px !important;
  }

  .modal[id^="peoplemodal"] .nav.right {
    right: 16px !important;
  }

  .modal[id^="peoplemodal"] .nav:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-50%) scale(1.1) !important;
  }

  .modal[id^="peoplemodal"] .nav:active {
    transform: translateY(-50%) scale(0.9) !important;
  }

  /* Иконка избранного - pulsing heart */
  .modal[id^="peoplemodal"] .heart-icon {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10 !important;
  }

  .modal[id^="peoplemodal"] .heart-icon .fav-btn {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .modal[id^="peoplemodal"] .heart-icon .fav-btn:active {
    transform: scale(0.85) !important;
  }

  .modal[id^="peoplemodal"] .heart-icon .fav-btn.active {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    animation: heartPulse 1.5s ease-in-out infinite !important;
    box-shadow: 0 12px 40px rgba(255, 20, 147, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.3) !important;
  }

  @keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }

  .modal[id^="peoplemodal"] .heart-icon .fav-btn img {
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)) !important;
  }

  /* СЕКЦИЯ КОНТЕНТА - Glassmorphism Cards */
  .modal[id^="peoplemodal"] .card-body {
    padding: 32px 20px 140px 20px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)) !important;
    position: relative !important;
    border-radius: 40px 40px 0 0 !important;
    margin-top: -40px !important;
    z-index: 10 !important;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3) !important;
  }

  /* Заголовок профиля - gradient text with shadow */
  .modal[id^="peoplemodal"] .card-body h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #5568d3 0%, #6b3f8f 50%, #d87fe0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 3s ease infinite !important;
    background-size: 200% 200% !important;
    filter: brightness(1.2) contrast(1.3) !important;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5) !important;
    -webkit-text-stroke: 0.5px rgba(102, 126, 234, 0.1) !important;
  }

  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Имя в заголовке - если градиент не поддерживается */
  .modal[id^="peoplemodal"] .card-body .name,
  .modal[id^="peoplemodal"] .card-body h1 .name {
    color: #667eea !important;
  }

  /* Блок репутации - glass card */
  .modal[id^="peoplemodal"] .reputation-block {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: #222222 !important;
    padding: 20px !important;
    border-radius: 20px !important;
    margin: 20px 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .reputation-block strong {
    color: #222222 !important;
    font-weight: 700 !important;
  }

  .modal[id^="peoplemodal"] .reputation-block .rep-stars {
    font-size: 18px !important;
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5)) !important;
  }

  .modal[id^="peoplemodal"] .reputation-block a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
  }

  .modal[id^="peoplemodal"] .reputation-block a:hover {
    color: #764ba2 !important;
  }

  /* Описание профиля */
  .modal[id^="peoplemodal"] .card-body > p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
    text-align: center !important;
    margin: 20px 0 28px 0 !important;
    padding: 0 10px !important;
    font-weight: 400 !important;
  }

  /* Контейнер рейтинга и информации */
  .modal[id^="peoplemodal"] .rating-info-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin: 28px 0 !important;
  }

  /* Рейтинговый блок - glass card */
  .modal[id^="peoplemodal"] .rating-box {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  .modal[id^="peoplemodal"] .rating-row:last-child {
    margin-bottom: 0 !important;
  }

  .modal[id^="peoplemodal"] .rating-row .stars {
    font-size: 16px !important;
    min-width: 90px !important;
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .modal[id^="peoplemodal"] .rating-row .bar {
    flex: 1 !important;
    height: 8px !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .modal[id^="peoplemodal"] .rating-row .bar span {
    display: block !important;
    height: 100% !important;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb) !important;
    border-radius: 8px !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4) !important;
  }

  .modal[id^="peoplemodal"] .rating-row .count {
    min-width: 36px !important;
    text-align: right !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #667eea !important;
  }

  /* Информационный блок - glass card */
  .modal[id^="peoplemodal"] .info-box {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .info-box div {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333333 !important;
  }

  .modal[id^="peoplemodal"] .info-box div:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .modal[id^="peoplemodal"] .info-box div:first-child {
    padding-top: 0 !important;
  }

  .modal[id^="peoplemodal"] .info-box strong {
    color: #667eea !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Интересы - gradient card */
  .modal[id^="peoplemodal"] .card-body > .mt-3 {
    text-align: center !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    margin: 24px 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
    color: #333333 !important;
  }

  .modal[id^="peoplemodal"] .card-body > .mt-3 .text-primary {
    display: block !important;
    margin: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  /* Кнопка профиля - gradient */
  .modal[id^="peoplemodal"] .profile-pol {
    display: inline-block !important;
    margin-top: 16px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .modal[id^="peoplemodal"] .profile-pol::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
  }

  .modal[id^="peoplemodal"] .profile-pol:hover::before {
    width: 300px !important;
    height: 300px !important;
  }

  .modal[id^="peoplemodal"] .profile-pol:active {
    transform: scale(0.95) !important;
  }

  /* ФИКСИРОВАННАЯ ПАНЕЛЬ ДЕЙСТВИЙ - Glassmorphism */
  .modal[id^="peoplemodal"] .text-center.d-flex {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    padding: 20px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: stretch !important;
    align-items: center !important;
    z-index: 1000 !important;
    margin: 0 !important;
  }

  /* Главные кнопки действий - яркие gradient buttons */
  .modal[id^="peoplemodal"] .btn {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 16px 24px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  }

  .modal[id^="peoplemodal"] .btn:hover {
    transform: translateY(-2px) !important;
  }

  .modal[id^="peoplemodal"] .btn:active {
    transform: translateY(0) scale(0.96) !important;
  }

  .modal[id^="peoplemodal"] .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6) !important;
    color: white !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    box-shadow: 0 8px 24px rgba(67, 233, 123, 0.6) !important;
    color: white !important;
    border: 2px solid rgba(67, 233, 123, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.6) !important;
    color: white !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    box-shadow: 0 8px 24px rgba(250, 112, 154, 0.6) !important;
    color: white !important;
    border: 2px solid rgba(250, 112, 154, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .btn i,
  .modal[id^="peoplemodal"] .btn .fas,
  .modal[id^="peoplemodal"] .btn .bi {
    font-size: 18px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
  }

  /* Маленькие кнопки (btn-sm) */
  .modal[id^="peoplemodal"] .btn-sm {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Адаптация кнопок */
  .modal[id^="peoplemodal"] .text-center.d-flex .btn:nth-child(n+3) {
    flex: 0 0 56px !important;
    padding: 16px 12px !important;
  }

  /* Убедимся что все кнопки в блоке действий видны */
  .modal[id^="peoplemodal"] .text-center.d-flex .btn,
  .modal[id^="peoplemodal"] .text-center.d-flex button {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Галерея фотографий - TikTok style */
  .modal[id^="peoplemodal"] .horizontal-gallery {
    margin: 28px -20px !important;
    padding: 24px 0 !important;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05)) !important;
  }

  .modal[id^="peoplemodal"] .horizontal-gallery h6 {
    padding: 0 20px !important;
    margin-bottom: 16px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  .modal[id^="peoplemodal"] .horizontal-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 20px 8px 20px !important;
  }

  .modal[id^="peoplemodal"] .horizontal-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .modal[id^="peoplemodal"] .photo-cards {
    display: flex !important;
    gap: 16px !important;
  }

  .modal[id^="peoplemodal"] .photo-card {
    flex: 0 0 180px !important;
    height: 240px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
  }

  .modal[id^="peoplemodal"] .photo-card:active {
    transform: scale(0.95) rotate(-2deg) !important;
  }

  .modal[id^="peoplemodal"] .photo-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: brightness(1.05) contrast(1.1) !important;
  }

  .modal[id^="peoplemodal"] .photo-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(240, 147, 251, 0.9)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }

  .modal[id^="peoplemodal"] .photo-card:active .photo-overlay {
    opacity: 1 !important;
  }

  .modal[id^="peoplemodal"] .photo-overlay svg {
    width: 40px !important;
    height: 40px !important;
    fill: white !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
  }

  /* Форма отзыва - gradient style */
  .modal[id^="peoplemodal"] .review-inline {
    margin: 32px 0 !important;
  }

  .modal[id^="peoplemodal"] .review-open-btn {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(255, 167, 81, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .modal[id^="peoplemodal"] .review-open-btn:active {
    transform: scale(0.96) !important;
  }

  .modal[id^="peoplemodal"] .review-form-wrapper {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px !important;
    border-radius: 20px !important;
    margin-top: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
    color: #333333 !important;
  }

  .modal[id^="peoplemodal"] .review-textarea {
    width: 100% !important;
    padding: 16px !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
    min-height: 120px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #222222 !important;
  }

  .modal[id^="peoplemodal"] .review-textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
    background: white !important;
  }

  .modal[id^="peoplemodal"] .review-textarea::placeholder {
    color: #999999 !important;
  }

  .modal[id^="peoplemodal"] .submit-review-btn,
  .modal[id^="peoplemodal"] .cancel-review-btn {
    padding: 12px 28px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .modal[id^="peoplemodal"] .submit-review-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
    border: none !important;
  }

  .modal[id^="peoplemodal"] .submit-review-btn:active {
    transform: scale(0.96) !important;
  }

  .modal[id^="peoplemodal"] .cancel-review-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #667eea !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
  }

  .modal[id^="peoplemodal"] .cancel-review-btn:active {
    transform: scale(0.96) !important;
  }

  /* Существующий отзыв */
  .modal[id^="peoplemodal"] .existing-note {
    color: #333333 !important;
  }

  .modal[id^="peoplemodal"] .existing-text {
    color: #555555 !important;
  }

  .modal[id^="peoplemodal"] .review-status {
    color: #667eea !important;
  }

  /* Muted текст */
  .modal[id^="peoplemodal"] .muted,
  .modal[id^="peoplemodal"] .text-muted {
    color: #999999 !important;
  }

  /* Отзывы пользователей */
  .modal[id^="peoplemodal"] [id^="user-reviews-"] {
    padding: 20px 0 !important;
    color: #333333 !important;
  }

  /* Все обычные span и div по умолчанию */
  .modal[id^="peoplemodal"] .card-body span:not([class*="rep-"]):not([class*="text-"]):not([class*="zvezda"]):not([class*="stars"]),
  .modal[id^="peoplemodal"] .card-body div:not([class*="rating-"]):not([class*="info-"]):not([class*="card-"]):not([class*="reputation-"]):not([class*="review-"]) {
    color: inherit !important;
  }

  /* Адаптация для маленьких экранов */
  @media (max-width: 360px) {
    .modal[id^="peoplemodal"] .card-body {
      padding: 20px 16px 120px 16px !important;
    }

    .modal[id^="peoplemodal"] .card-body h1 {
      font-size: 24px !important;
    }

    .modal[id^="peoplemodal"] .btn {
      padding: 12px 16px !important;
      font-size: 14px !important;
    }

    .modal[id^="peoplemodal"] .profile-photo {
      height: 45vh !important;
      min-height: 280px !important;
    }

    .modal[id^="peoplemodal"] .text-center.d-flex {
      padding: 12px 16px !important;
      padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
      gap: 8px !important;
    }
  }

  /* Адаптация для больших экранов */
  @media (min-width: 481px) and (max-width: 768px) {
    .modal[id^="peoplemodal"] .profile-photo {
      height: 55vh !important;
    }

    .modal[id^="peoplemodal"] .card-body {
      padding: 28px 24px 120px 24px !important;
    }

    .modal[id^="peoplemodal"] .text-center.d-flex {
      padding: 20px 24px !important;
      padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
  }
}



