:root {
      --bg: #09090b;
      --card-bg: #111114;
      --card-hover: #15151a;
      --border: rgba(255, 255, 255, 0.08);
      --border-focus: rgba(255, 255, 255, 0.22);
      --text: #ffffff;
      --text-muted: #8e8e98;
      --text-dim: #52525c;
      --accent: #ffffff;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
      --font-accent: 'Lora', Georgia, serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 16px 40px;
      overflow-x: hidden;
      position: relative;
    }

    /* Мягкое фоновое белое свечение */
    .bg-glow {
      position: fixed;
      top: -140px;
      left: 50%;
      transform: translateX(-50%);
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(9, 9, 11, 0) 70%);
      pointer-events: none;
      z-index: 0;
    }

    .container {
      width: 100%;
      max-width: 440px;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Верхняя статусная строка с таймером (чистый минималистичный текст без рамки и фона) */
    .love-timer-banner {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4px 0 2px;
      font-size: 12.5px;
      color: #71717a;
      letter-spacing: 0.1px;
    }

    .timer-left {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex-wrap: wrap;
      justify-content: center;
    }

    .pulse-heart {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #71717a;
      animation: heartGlow 2.8s ease-in-out infinite;
      flex-shrink: 0;
      will-change: opacity, color, filter;
      transform: translateZ(0);
    }

    @keyframes heartGlow {
      0%, 100% {
        opacity: 0.45;
        color: #71717a;
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
      }
      50% {
        opacity: 1;
        color: #ffffff;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.65));
      }
    }

    .timer-phrase {
      font-weight: 400;
      color: #71717a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .timer-digits {
      font-weight: 500;
      color: #d4d4d8;
      font-variant-numeric: tabular-nums;
      font-feature-settings: "tnum";
    }

    .city-selector-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      padding: 2px 7px;
      font-size: 12px;
      font-weight: 500;
      color: #e4e4e7;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      user-select: none;
      outline: none;
      transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      font-family: inherit;
      line-height: 1.2;
    }

    .city-selector-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      color: #ffffff;
      transform: translateY(-0.5px);
    }

    .city-selector-btn:active {
      transform: scale(0.97);
    }

    .city-pin-svg {
      color: #ffffff;
      opacity: 0.9;
      flex-shrink: 0;
    }

    .city-chevron-svg {
      color: #a1a1aa;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .city-selector-btn.open .city-chevron-svg {
      transform: rotate(180deg);
    }

    /* Шапка */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2px 2px;
    }

    .logo {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: -0.3px;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .logo-icon,
    .coffee-cup {
      color: #ffffff;
      opacity: 0.9;
      overflow: visible !important;
      will-change: transform;
      transform: translateZ(0);
    }

    .coffee-steam {
      will-change: transform, opacity;
      stroke-linecap: round;
      transform-origin: center bottom;
    }

    .coffee-steam.steam-1 {
      animation: steamFloatLeft 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      animation-delay: 0.7s;
    }

    .coffee-steam.steam-2 {
      animation: steamFloatMid 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      animation-delay: 0s;
    }

    .coffee-steam.steam-3 {
      animation: steamFloatRight 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      animation-delay: 1.2s;
    }

    @keyframes steamFloatMid {
      0% {
        opacity: 0;
        transform: translateY(1px) translateZ(0);
      }
      25% {
        opacity: 0.85;
        transform: translateY(-2px) translateZ(0);
      }
      65% {
        opacity: 0.45;
        transform: translateY(-5px) translateZ(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-8.5px) translateZ(0);
      }
    }

    @keyframes steamFloatLeft {
      0% {
        opacity: 0;
        transform: translateY(1px) translateX(0) translateZ(0);
      }
      30% {
        opacity: 0.8;
        transform: translateY(-1.8px) translateX(-0.8px) translateZ(0);
      }
      70% {
        opacity: 0.4;
        transform: translateY(-4.5px) translateX(-1.5px) translateZ(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-7.5px) translateX(-2px) translateZ(0);
      }
    }

    @keyframes steamFloatRight {
      0% {
        opacity: 0;
        transform: translateY(1px) translateX(0) translateZ(0);
      }
      25% {
        opacity: 0.8;
        transform: translateY(-1.8px) translateX(0.8px) translateZ(0);
      }
      65% {
        opacity: 0.4;
        transform: translateY(-4.5px) translateX(1.5px) translateZ(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-7.5px) translateX(2px) translateZ(0);
      }
    }

    /* Аккуратный прямоугольный тег с подсказкой при наведении */
    .badge {
      font-size: 11px;
      font-weight: 500;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 4px 8px;
      border-radius: 6px;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-variant-numeric: tabular-nums;
      position: relative;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
      outline: none;
    }

    .badge:hover,
    .badge:focus-visible,
    .badge.is-open {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.18);
      color: #ffffff;
    }

    .badge-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
      flex-shrink: 0;
    }

    /* Плашка с подсказкой о посещениях за месяц */
    .badge-tooltip {
      position: absolute;
      top: calc(100% + 7px);
      right: 0;
      background: #111116;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 500;
      color: #e4e4e7;
      white-space: nowrap;
      box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      z-index: 120;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px) scale(0.97);
      transform-origin: top right;
      transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                  visibility 0.15s;
    }

    .badge-tooltip::before {
      content: '';
      position: absolute;
      top: -5px;
      right: 12px;
      width: 8px;
      height: 8px;
      background: #111116;
      border-left: 1px solid rgba(255, 255, 255, 0.14);
      border-top: 1px solid rgba(255, 255, 255, 0.14);
      transform: rotate(45deg);
    }

    .badge-tooltip .tooltip-icon {
      color: #a1a1aa;
      flex-shrink: 0;
    }

    .badge:hover .badge-tooltip,
    .badge:focus-visible .badge-tooltip,
    .badge.is-open .badge-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    /* Карточка ввода */
    .card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
      transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }

    .card:focus-within {
      border-color: var(--border-focus);
    }

    /* Верхний выбор вкладок карточки (в точности по зарисовке) */
    .card-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100%;
      border-bottom: 1px solid var(--border);
      background: #0d0d10;
    }

    .card-tab {
      background: transparent;
      border: none;
      padding: 13px 12px;
      font-family: var(--font-accent), Georgia, serif;
      font-size: 18px;
      font-style: italic;
      color: #71717a;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      outline: none;
      position: relative;
    }

    /* Вертикальный разделитель посередине между вкладками */
    .card-tab:first-child {
      border-right: 1px solid var(--border);
    }

    .card-tab:hover {
      color: #d4d4d8;
      background: rgba(255, 255, 255, 0.02);
    }

    .card-tab.active {
      background: var(--card-bg);
      color: #ffffff;
      font-weight: 600;
    }

    .card-tab.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: #ffffff;
    }

    @media (max-width: 480px) {
      .card-tab {
        font-size: 16px;
        padding: 12px 6px;
      }
    }

    .card-body {
      padding: 18px 22px 20px;
    }

    .prompt-label {
      display: none;
    }

    .textarea-wrap {
      position: relative;
      margin-bottom: 12px;
    }

    textarea {
      width: 100%;
      min-height: 90px;
      background: transparent;
      border: none;
      color: #ffffff;
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.5;
      resize: none;
      outline: none;
      padding: 0;
    }

    textarea::placeholder {
      color: #4a4a55;
    }

    .meta-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .char-count {
      font-size: 12px;
      color: var(--text-dim);
      font-variant-numeric: tabular-nums;
    }

    .btn-send {
      background: #ffffff;
      color: #09090b;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
      transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, opacity 0.15s;
    }

    .btn-send:hover:not(:disabled) {
      background: #f4f4f5;
      box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    }

    .btn-send:active:not(:disabled) {
      transform: scale(0.96);
    }

    .btn-send:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      box-shadow: none;
    }

    .btn-send.loading {
      opacity: 0.65;
      cursor: wait;
      pointer-events: none;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .spinner {
      animation: spin 0.8s linear infinite;
      flex-shrink: 0;
    }

    /* Экран после отправки / Уже отправлено */
    .submitted-banner {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      display: none;
      animation: fadeIn 0.35s ease-out;
    }

    .submitted-banner.active {
      display: block;
    }

    .submitted-title {
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    .submitted-desc {
      font-size: 13px;
      color: var(--text-muted);
    }

    .cooldown-wrap {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .cooldown-label {
      font-size: 11px;
      color: #71717a;
    }

    .cooldown-timer {
      font-size: 16px;
      font-weight: 600;
      color: #ffffff;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.5px;
    }

    .btn-now {
      margin-top: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #e4e4e7;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-now:hover {
      background: rgba(255, 255, 255, 0.09);
      border-color: rgba(255, 255, 255, 0.25);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .btn-now:active {
      transform: translateY(0);
    }

    .btn-ban-appeal {
      margin-top: 10px;
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: #fca5a5;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-ban-appeal:hover {
      background: rgba(239, 68, 68, 0.22);
      border-color: rgba(239, 68, 68, 0.55);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .btn-ban-appeal:active {
      transform: translateY(0);
    }

    /* Модальные окна: аппаратная оптимизация без фонового размытия в скрытом виде */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.72);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 16px;
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
      visibility: visible;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .modal-overlay:not(.active) * {
      animation: none !important;
    }

    .modal-card {
      background: #0d0d10;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      max-width: 360px;
      width: 100%;
      padding: 22px 20px 20px;
      position: relative;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      transform: scale(0.96);
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-overlay.active .modal-card {
      transform: scale(1);
    }

    .modal-close-btn {
      position: absolute;
      top: 14px;
      right: 14px;
      background: transparent;
      border: none;
      color: #71717a;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.15s;
    }

    .modal-close-btn:hover {
      color: #ffffff;
    }

    .modal-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .modal-header svg {
      color: #ffffff;
    }

    .modal-title {
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      letter-spacing: -0.3px;
    }

    .modal-desc {
      font-size: 12px;
      color: #a1a1aa;
      line-height: 1.5;
      margin-bottom: 14px;
    }

    .modal-token-box {
      background: rgba(255, 255, 255, 0.03);
      border: 1px dashed rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      padding: 10px 12px;
      margin-bottom: 14px;
    }

    .modal-token-label {
      font-size: 10px;
      color: #71717a;
      margin-bottom: 4px;
    }

    .modal-token-val {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      color: #ffffff;
      word-break: break-all;
      user-select: all;
    }

    .modal-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .btn-modal-tg {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #ffffff;
      color: #000000;
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      padding: 10px 16px;
      border-radius: 8px;
      transition: all 0.2s;
    }

    .btn-modal-tg:hover {
      background: #e4e4e7;
      transform: translateY(-1px);
    }

    .btn-modal-copy {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #d4d4d8;
      font-family: inherit;
      font-size: 12px;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .btn-modal-copy:hover {
      background: rgba(255, 255, 255, 0.09);
      color: #ffffff;
    }

    .btn-modal-check {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #71717a;
      font-family: inherit;
      font-size: 11px;
      padding: 6px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s;
      margin-top: 2px;
    }

    .btn-modal-check:hover {
      border-color: rgba(255, 255, 255, 0.2);
      color: #d4d4d8;
    }

    .modal-status-hint {
      font-size: 11px;
      color: #71717a;
      text-align: center;
      margin-top: 8px;
    }

    /* Тактильный слайдер-капча */
    .captcha-card {
      max-width: 380px;
    }

    .slider-captcha-wrap {
      width: 100%;
      margin: 16px 0 6px;
      user-select: none;
      -webkit-user-select: none;
    }

    .slider-track {
      position: relative;
      width: 100%;
      height: 50px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 25px;
      overflow: hidden;
      display: flex;
      align-items: center;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
      cursor: pointer;
      transition: border-color 0.2s, background-color 0.2s;
    }

    .slider-track:hover {
      border-color: rgba(255, 255, 255, 0.18);
    }

    .slider-fill {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 50px;
      background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 0%, 
        rgba(255, 255, 255, 0.12) calc(100% - 32px), 
        rgba(255, 255, 255, 0.22) 100%
      );
      border-radius: 25px;
      pointer-events: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .slider-fill::after {
      content: '';
      position: absolute;
      right: -4px;
      top: 0;
      bottom: 0;
      width: 32px;
      background: radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 80%);
      border-radius: 50%;
      pointer-events: none;
      filter: blur(3px);
    }

    .slider-fill.success {
      background: linear-gradient(90deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.38) calc(100% - 32px), rgba(34, 197, 94, 0.5) 100%);
      box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.3);
    }

    .slider-fill.success::after {
      background: radial-gradient(circle at 60% 50%, rgba(34, 197, 94, 0.45) 0%, rgba(34, 197, 94, 0.15) 55%, transparent 85%);
    }

    .slider-text {
      position: absolute;
      width: 100%;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      letter-spacing: 0.1px;
      background: linear-gradient(90deg, #71717a 0%, #ffffff 50%, #71717a 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: shimmerText 2.5s infinite;
      transition: opacity 0.2s;
    }

    @keyframes shimmerText {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .slider-arrow-anim {
      animation: pulseArrow 1.5s infinite ease-in-out;
      color: #a1a1aa;
    }

    @keyframes pulseArrow {
      0%, 100% { transform: translateX(0); opacity: 0.6; }
      50% { transform: translateX(3px); opacity: 1; }
    }

    .slider-thumb {
      position: absolute;
      left: 4px;
      width: 42px;
      height: 42px;
      background: #ffffff;
      color: #09090b;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: grab;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
      z-index: 2;
      transition: box-shadow 0.15s, background 0.2s, transform 0.05s ease-out;
    }

    .slider-thumb:active,
    .slider-thumb.dragging {
      cursor: grabbing;
      box-shadow: 0 4px 18px rgba(255, 255, 255, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.12);
      transform: scale(1.04);
    }

    .slider-thumb.success {
      background: #22c55e !important;
      color: #ffffff !important;
      cursor: default;
      box-shadow: 0 0 18px rgba(34, 197, 94, 0.55), 0 0 0 4px rgba(34, 197, 94, 0.2) !important;
    }

    .captcha-status {
      font-size: 11px;
      color: #ef4444;
      text-align: center;
      min-height: 16px;
      margin-top: 6px;
      transition: opacity 0.2s;
    }

    /* Плашка согласия на cookies */
    .cookie-banner {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%) translateY(120%);
      width: calc(100% - 32px);
      max-width: 440px;
      background: rgba(18, 18, 22, 0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 13px 16px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
      z-index: 999;
      display: flex;
      align-items: center;
      gap: 12px;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }

    .cookie-banner.visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .cookie-icon-wrap {
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #fbbf24;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cookie-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: left;
    }

    .cookie-title {
      font-size: 12px;
      font-weight: 600;
      color: #ffffff;
      letter-spacing: -0.1px;
    }

    .cookie-desc {
      font-size: 11px;
      color: #a1a1aa;
      line-height: 1.35;
    }

    .cookie-rules-link {
      color: #ffffff;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      transition: color 0.15s;
    }

    .cookie-rules-link:hover {
      color: #38bdf8;
    }

    .cookie-accept-btn {
      flex-shrink: 0;
      background: #ffffff;
      color: #09090b;
      border: none;
      font-size: 12px;
      font-weight: 600;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .cookie-accept-btn:hover {
      background: #f4f4f5;
      transform: scale(1.02);
    }

    .cookie-accept-btn:active {
      transform: scale(0.96);
    }

    @media (max-width: 480px) {
      .cookie-banner {
        bottom: 14px;
        width: calc(100% - 24px);
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
      }
      .cookie-accept-btn {
        width: 100%;
        padding: 10px 16px;
        border-radius: 10px;
      }
    }

    /* Футер и дисклеймер внизу страницы */
    .site-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 10px 6px 24px;
      text-align: center;
    }

    .report-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 0;
    }

    .report-sep {
      color: #3f3f46;
      font-size: 11px;
      user-select: none;
    }

    .rules-trigger-btn {
      background: transparent;
      border: none;
      padding: 0;
      font-family: inherit;
      cursor: pointer;
    }

    .rules-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 6px;
      text-align: left;
    }

    .rule-item {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      padding: 9px 11px;
    }

    .rule-num {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      color: #ffffff;
      font-size: 11px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 1px;
    }

    .rule-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .rule-title {
      font-size: 12px;
      font-weight: 600;
      color: #ffffff;
      letter-spacing: -0.1px;
    }

    .rule-text {
      font-size: 11px;
      color: #a1a1aa;
      line-height: 1.4;
    }

    .btn-modal-gotit {
      width: 100%;
      background: #ffffff;
      color: #000000;
      border: none;
      font-size: 13px;
      font-weight: 600;
      padding: 10px 16px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
      margin-top: 12px;
    }

    .btn-modal-gotit:hover {
      background: #e4e4e7;
    }

    .report-link {
      font-size: 11px;
      color: #71717a;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color 0.15s ease;
      cursor: pointer;
    }

    .report-link:hover {
      color: #f87171;
    }

    .age-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 5px;
      background: rgba(245, 158, 11, 0.14);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.3);
      margin-left: 6px;
      letter-spacing: 0.4px;
      vertical-align: middle;
      line-height: 1.2;
    }

    .age-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 4px;
      background: rgba(245, 158, 11, 0.14);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.28);
      letter-spacing: 0.3px;
      vertical-align: 1px;
      line-height: 1.2;
      margin: 0 2px;
    }

    .copyright-text {
      font-size: 11px;
      font-weight: 500;
      color: #71717a;
      letter-spacing: 0.1px;
    }

    .disclaimer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      font-size: 10px;
      line-height: 1.5;
      color: var(--text-dim);
      max-width: 380px;
      text-align: center;
      margin: 0 auto;
    }

    .disclaimer-title,
    .disclaimer-highlight,
    .disclaimer strong {
      display: block;
      color: #d4d4d8;
      font-weight: 600;
      letter-spacing: 0.2px;
      margin: 0;
      line-height: 1.2;
    }

    .disclaimer-body {
      display: block;
      margin: 0;
      line-height: 1.5;
    }

    /* Лента признаний */
    .feed-section {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 4px;
    }

    .feed-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 0 2px;
    }

    .feed-header-left {
      display: inline-flex;
      align-items: baseline;
      gap: 5px;
      line-height: 1;
      white-space: nowrap;
    }

    .feed-title {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.4px;
      color: #71717a;
    }

    .feed-count {
      font-size: 12px;
      color: #71717a;
      font-variant-numeric: tabular-nums;
    }

    /* Дропдаун с фильтрами ленты */
    .feed-filter-wrap {
      position: relative;
      flex-shrink: 0;
      user-select: none;
    }

    .feed-filter-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 8px;
      padding: 4px 9px 4px 8px;
      color: #a1a1aa;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      outline: none;
      white-space: nowrap;
      line-height: 1;
    }

    .feed-filter-btn:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
      color: #ffffff;
    }

    .feed-filter-btn:active {
      transform: scale(0.96);
    }

    .feed-filter-btn.open {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.25);
      color: #ffffff;
    }

    .filter-icon {
      color: #71717a;
      transition: color 0.15s ease;
    }

    .feed-filter-btn:hover .filter-icon,
    .feed-filter-btn.open .filter-icon {
      color: #ffffff;
    }

    .filter-chevron {
      color: #71717a;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
    }

    .feed-filter-btn.open .filter-chevron {
      transform: rotate(180deg);
      color: #ffffff;
    }

    /* Выпадающее меню фильтров */
    .feed-filter-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 130px;
      background: #111116;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      padding: 4px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px) scale(0.96);
      transform-origin: top right;
      transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s;
      pointer-events: none;
    }

    .feed-filter-dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .filter-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: transparent;
      border: none;
      color: #a1a1aa;
      font-size: 11px;
      font-weight: 500;
      padding: 6px 8px;
      border-radius: 6px;
      cursor: pointer;
      text-align: left;
      transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
      outline: none;
      width: 100%;
    }

    .filter-option:hover {
      background: rgba(255, 255, 255, 0.06);
      color: #ffffff;
    }

    .filter-option.active {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
      font-weight: 600;
    }

    .option-check {
      opacity: 0;
      transform: scale(0.7);
      transition: all 0.12s ease;
      color: #ffffff;
    }

    .filter-option.active .option-check {
      opacity: 1;
      transform: scale(1);
    }

    .filter-dropdown-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.08);
      margin: 4px 2px;
    }

    .filter-checkbox-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 6px;
      cursor: pointer;
      color: #a1a1aa;
      font-size: 11px;
      font-weight: 500;
      transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
      width: 100%;
      box-sizing: border-box;
    }

    .filter-checkbox-item:hover {
      background: rgba(255, 255, 255, 0.06);
      color: #ffffff;
    }

    .filter-checkbox-item input[type="checkbox"] {
      display: none;
    }

    .filter-checkbox-box {
      width: 13px;
      height: 13px;
      border-radius: 3px;
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      transition: all 0.12s ease;
      flex-shrink: 0;
      box-sizing: border-box;
    }

    .filter-checkbox-box svg {
      opacity: 0;
      transform: scale(0.6);
      transition: all 0.12s ease;
      color: #09090b;
    }

    .filter-checkbox-item input[type="checkbox"]:checked + .filter-checkbox-box {
      background: #ffffff;
      border-color: #ffffff;
    }

    .filter-checkbox-item input[type="checkbox"]:checked + .filter-checkbox-box svg {
      opacity: 1;
      transform: scale(1);
    }

    .filter-checkbox-item:has(input[type="checkbox"]:checked) {
      color: #ffffff;
    }

    .filter-checkbox-label {
      flex: 1;
    }

    .feed-cards {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .feed-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s;
      animation: fadeIn 0.3s ease-out;
    }

    .feed-card:hover {
      border-color: rgba(255, 255, 255, 0.14);
    }

    .feed-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
    }

    .feed-prefix {
      font-family: var(--font-accent);
      font-size: 14px;
      font-style: italic;
      color: #a1a1aa;
      font-weight: 500;
    }

    .feed-author {
      font-size: 11px;
      color: var(--text-dim);
      font-weight: 500;
      letter-spacing: 0.2px;
      user-select: none;
    }

    .feed-text {
      font-size: 15px;
      line-height: 1.5;
      color: #ffffff;
      word-break: break-word;
    }

    .feed-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 4px;
    }

    .feed-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--text-dim);
      font-variant-numeric: tabular-nums;
    }

    .feed-id {
      color: #71717a;
      text-decoration: none;
      font-weight: 500;
      letter-spacing: -0.2px;
      transition: color 0.15s ease;
      cursor: pointer;
    }

    .feed-id:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .feed-dot {
      color: #3f3f46;
      user-select: none;
    }

    .feed-time {
      font-size: 11px;
      color: var(--text-dim);
      font-variant-numeric: tabular-nums;
    }

    .card-city-badge {
      display: inline-flex;
      align-items: center;
      gap: 3.5px;
      font-size: 11px;
      font-weight: 500;
      color: #8e8e98;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 5px;
      padding: 1.5px 6px;
      cursor: pointer;
      user-select: none;
      outline: none;
      transition: all 0.15s ease;
      font-family: inherit;
      line-height: 1.2;
    }

    .card-city-badge:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
      color: #ffffff;
    }

    .card-city-badge:active {
      transform: scale(0.96);
    }

    .card-city-pin-svg {
      color: #ffffff;
      opacity: 0.85;
      flex-shrink: 0;
    }

    /* Аккуратная кнопка лайка без круглых таблеточных очертаний */
    .like-btn {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #a1a1aa;
      border-radius: 8px;
      padding: 4px 9px;
      font-size: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      font-variant-numeric: tabular-nums;
    }

    .like-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.16);
      color: #ffffff;
    }

    .like-btn:active {
      transform: scale(0.94);
    }

    .like-btn.liked {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.3);
      color: #ffffff;
    }

    .like-svg {
      transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .like-btn.liked .like-svg {
      transform: scale(1.15);
      fill: #ffffff;
    }

    .like-count {
      display: inline-block;
      transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .like-count.pop {
      transform: scale(1.25);
      color: #ffffff;
    }

    .feed-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* Аккуратная кнопка поделиться */
    .share-btn {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #71717a;
      border-radius: 8px;
      padding: 4px 7px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .share-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.16);
      color: #ffffff;
    }

    .share-btn:active {
      transform: scale(0.94);
    }

    /* Пульсирующая подсветка карточки при открытии по прямой ссылке */
    .feed-card.highlight-pulse {
      animation: highlightPulse 2.4s ease-out;
    }

    @keyframes highlightPulse {
      0% {
        border-color: rgba(255, 255, 255, 0.85);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
        transform: scale(1.01);
      }
      70% {
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.06);
        transform: scale(1);
      }
      100% {
        border-color: var(--border);
        box-shadow: none;
        transform: scale(1);
      }
    }

    /* Карточка предпросмотра в модалке "Поделиться" */
    .share-preview-card {
      background: linear-gradient(145deg, #121217, #0a0a0d);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      padding: 16px 18px;
      margin-top: 4px;
      margin-bottom: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .share-preview-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .share-preview-brand {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.3px;
      color: #a1a1aa;
    }

    .share-preview-id {
      font-size: 11px;
      font-family: var(--font-mono);
      color: #71717a;
    }

    .share-preview-prefix {
      font-family: var(--font-accent);
      font-style: italic;
      font-size: 14px;
      color: #a1a1aa;
    }

    .share-preview-text {
      font-size: 15px;
      line-height: 1.5;
      color: #ffffff;
      word-break: break-word;
      font-family: var(--font-base);
    }

    .share-preview-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 8px;
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      font-size: 10px;
      color: #71717a;
      letter-spacing: 0.2px;
    }

    .share-preview-watermark {
      font-family: var(--font-mono);
      color: #a1a1aa;
    }

    .btn-share-action {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      color: #ffffff;
      border-radius: 8px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      width: 100%;
    }

    .btn-share-action:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
    }

    .btn-share-action:active {
      transform: scale(0.98);
    }

    .btn-share-primary {
      background: #ffffff;
      color: #000000;
      border: 1px solid #ffffff;
      font-weight: 600;
    }

    .btn-share-primary:hover {
      background: #e4e4e7;
      border-color: #e4e4e7;
      color: #000000;
    }

    /* Всплывающий toast */
    .toast-container {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #18181b;
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #ffffff;
      padding: 9px 18px;
      border-radius: 24px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.2px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 10000;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .toast-container.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* Пагинация страниц */
    .pagination-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
      padding-bottom: 24px;
    }

    .page-btn {
      background: #111114;
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #f4f4f5;
      border-radius: 8px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .page-btn:hover:not(:disabled) {
      background: #18181f;
      border-color: rgba(255, 255, 255, 0.2);
      color: #ffffff;
    }

    .page-btn:active:not(:disabled) {
      transform: scale(0.96);
    }

    .page-btn:disabled {
      opacity: 0.25;
      cursor: not-allowed;
    }

    .page-indicator {
      font-size: 12px;
      font-family: var(--font-mono);
      color: #71717a;
      letter-spacing: 0.4px;
    }

    .empty-feed {
      text-align: center;
      color: var(--text-dim);
      font-size: 13px;
      padding: 32px 16px;
      font-style: italic;
    }

    /* Анимации */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Летающие белые сердечки */
    .floating-heart {
      position: fixed;
      pointer-events: none;
      font-size: 22px;
      animation: floatUp 1.1s ease-out forwards;
      z-index: 999;
    }

    @keyframes floatUp {
      0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.7);
      }
      50% {
        transform: translate(-50%, -50px) scale(1.15);
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(0.95);
      }
    }

    /* Кнопка указания города в форме отправки */
    .form-city-btn {
      appearance: none;
      -webkit-appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11.5px;
      font-weight: 500;
      color: #8e8e98;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 3px 8px;
      cursor: pointer;
      user-select: none;
      outline: none;
      transition: all 0.15s ease;
      font-family: inherit;
    }

    .form-city-btn:hover {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 255, 255, 0.18);
      color: #ffffff;
    }

    .form-city-btn:active {
      transform: scale(0.96);
    }

    /* Модальное окно выбора города / региона */
    .city-modal-card {
      max-width: 390px;
      width: calc(100% - 32px);
      max-height: 82vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: #141417;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
    }

    .city-modal-header-icon {
      color: #ffffff;
      opacity: 0.9;
    }

    .city-search-box {
      position: relative;
      display: flex;
      align-items: center;
      gap: 9px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 0 12px;
      height: 40px;
      margin: 12px 0 10px;
      transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    }

    .city-search-box:focus-within {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 255, 255, 0.28);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
    }

    .city-search-icon {
      color: #71717a;
      flex-shrink: 0;
    }

    .city-search-input {
      appearance: none;
      -webkit-appearance: none;
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: #ffffff;
      font-family: inherit;
      font-size: 13.5px;
      padding: 0;
      margin: 0;
    }

    .city-search-input::placeholder {
      color: #71717a;
    }

    .city-search-clear {
      appearance: none;
      -webkit-appearance: none;
      background: none;
      border: none;
      color: #71717a;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      outline: none;
    }

    .city-search-clear:hover {
      color: #ffffff;
    }

    .btn-all-russia {
      appearance: none;
      -webkit-appearance: none;
      width: 100%;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 10px 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      text-align: left;
      transition: all 0.15s ease;
      font-family: inherit;
      color: inherit;
      margin-bottom: 10px;
      outline: none;
    }

    .btn-all-russia:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.18);
      transform: translateY(-1px);
    }

    .btn-all-russia:active {
      transform: scale(0.99);
    }

    .btn-all-russia.is-active {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .all-russia-flag {
      font-size: 19px;
      line-height: 1;
      flex-shrink: 0;
    }

    .all-russia-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .all-russia-title {
      font-size: 13.5px;
      font-weight: 600;
      color: #ffffff;
    }

    .all-russia-sub {
      font-size: 11px;
      color: #71717a;
    }

    .all-russia-check {
      color: #ffffff;
      opacity: 0;
      transition: opacity 0.15s ease;
      flex-shrink: 0;
    }

    .btn-all-russia.is-active .all-russia-check {
      opacity: 1;
    }

    .city-quick-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .city-chip {
      appearance: none;
      -webkit-appearance: none;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 9999px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 500;
      color: #a1a1aa;
      cursor: pointer;
      transition: all 0.15s ease;
      user-select: none;
      font-family: inherit;
      outline: none;
    }

    .city-chip:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      transform: translateY(-1px);
    }

    .city-chip:active {
      transform: scale(0.95);
    }

    .city-chip.is-active {
      background: #ffffff;
      color: #09090b;
      font-weight: 600;
      border-color: #ffffff;
    }

    .city-results-list {
      flex: 1;
      max-height: 250px;
      overflow-y: auto;
      overscroll-behavior: contain;
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-right: 2px;
    }

    .city-results-list::-webkit-scrollbar {
      width: 4px;
    }
    .city-results-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.12);
      border-radius: 4px;
    }

    .city-result-item {
      appearance: none;
      -webkit-appearance: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border-radius: 10px;
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all 0.12s ease;
      font-family: inherit;
      text-align: left;
      color: inherit;
      outline: none;
      width: 100%;
    }

    .city-result-item:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .city-result-item:active {
      transform: scale(0.99);
    }

    .city-result-item.is-active {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .city-result-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .city-result-name {
      font-size: 13.5px;
      font-weight: 500;
      color: #e4e4e7;
    }

    .city-hl {
      color: #ffffff;
      font-weight: 600;
    }

    .city-result-region {
      font-size: 11px;
      color: #71717a;
    }

    .city-result-check {
      color: #ffffff;
      flex-shrink: 0;
    }

    .city-custom-item {
      border: 1px dashed rgba(255, 255, 255, 0.18) !important;
      background: rgba(255, 255, 255, 0.02);
      margin-top: 4px;
    }

    .city-custom-item:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.35) !important;
    }

    .city-custom-badge {
      font-size: 10px;
      background: rgba(255, 255, 255, 0.08);
      padding: 3px 8px;
      border-radius: 6px;
      color: #a1a1aa;
    }

    /* ============================================================
       Атмосферные детали для широких мониторов (Desktop Ambient)
       ============================================================ */
    .desktop-ambient {
      display: none;
    }

    @media (min-width: 900px) {
      .desktop-ambient {
        display: block;
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
      }

      /* Мягкие световые пятна (тёплый свет комнаты слева, холодный ночной свет справа) */
      .ambient-glow-warm {
        position: absolute;
        top: -80px;
        left: 4%;
        width: 540px;
        height: 540px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(245, 158, 11, 0.038) 0%, rgba(9, 9, 11, 0) 70%);
        filter: blur(40px);
        transform: translateZ(0);
      }

      .ambient-glow-cool {
        position: absolute;
        top: 60px;
        right: 4%;
        width: 620px;
        height: 620px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.032) 0%, rgba(9, 9, 11, 0) 70%);
        filter: blur(50px);
        transform: translateZ(0);
      }

      /* Тонкие вертикальные линии оконного переплёта (window pane guides) */
      .ambient-guide {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 15%, rgba(255, 255, 255, 0.02) 80%, transparent 100%);
      }

      .ambient-guide-left {
        left: calc(50% - 275px);
      }

      .ambient-guide-right {
        right: calc(50% - 275px);
      }

      /* Боковые атмосферные блоки (крылья) */
      .ambient-wing {
        position: absolute;
        top: 240px;
        max-width: 220px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        user-select: none;
        transition: opacity 0.3s ease;
      }

      .ambient-wing-left {
        right: calc(50% + 300px);
        text-align: right;
        align-items: flex-end;
      }

      .ambient-wing-right {
        left: calc(50% + 300px);
        text-align: left;
        align-items: flex-start;
      }

      .ambient-tag {
        font-size: 10px;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.18);
        font-weight: 600;
      }

      .ambient-phrase {
        font-family: var(--font-accent);
        font-style: italic;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.35);
        line-height: 1.45;
        letter-spacing: 0.2px;
      }

      .ambient-stars {
        display: flex;
        gap: 8px;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.2);
        font-size: 11px;
      }

      .ambient-star {
        display: inline-block;
        animation: ambientTwinkle 5s ease-in-out infinite alternate;
      }

      .ambient-star.s1 { animation-delay: 0s; color: rgba(251, 191, 36, 0.35); }
      .ambient-star.s2 { animation-delay: 1.8s; }
      .ambient-star.s3 { animation-delay: 3.2s; color: rgba(165, 180, 252, 0.35); }
      .ambient-star.s4 { animation-delay: 0.8s; color: rgba(251, 191, 36, 0.35); }
      .ambient-star.s5 { animation-delay: 2.4s; }
      .ambient-star.s6 { animation-delay: 4.1s; color: rgba(165, 180, 252, 0.35); }

      @keyframes ambientTwinkle {
        0% { opacity: 0.15; transform: scale(0.9); }
        50% { opacity: 0.45; transform: scale(1.1); }
        100% { opacity: 0.2; transform: scale(0.95); }
      }
    }

    @media (min-width: 900px) and (max-width: 1140px) {
      .ambient-wing {
        opacity: 0.45;
      }
    }
