/* Неоновый киберпанк стиль */
@font-face {
    font-family: "AnonimkaRoboto";
    src: url("/webapp/fonts/roboto-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AnonimkaWordmark";
    src: url("/webapp/fonts/dancing-script-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a2e;
    --neon-pink: #ff006e;
    --neon-cyan: #00d9ff;
    --neon-purple: #8338ec;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-glow: rgba(255, 0, 110, 0.3);
    --shadow-pink: 0 0 20px rgba(255, 0, 110, 0.4);
    --shadow-cyan: 0 0 20px rgba(0, 217, 255, 0.4);
    --chat-vk-bottom-inset: 0px;
    --chat-input-height: 56px;
    --chat-input-float-gap: 10px;
    --chat-input-side-gap: 12px;
    --chat-header-height: 92px;
    --chat-viewport-top-inset: 0px;
    --chat-visual-height: 100%;
    --device-safe-area-top: env(safe-area-inset-top, 0px);
    --telegram-safe-area-top: 0px;
    --telegram-main-controls-top: 0px;
    --safe-area-top: max(var(--device-safe-area-top), var(--telegram-safe-area-top));
    --chat-safe-bottom-extra: env(safe-area-inset-bottom, 0px);
    --main-menu-flow-duration: 5.4s;
    --main-menu-breathe-duration: 6.6s;
    --main-menu-bg-flow-duration: 6.8s;
}

/* ===== Прелоадер при загрузке приложения ===== */
.app-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--chat-safe-bottom-extra);
    z-index: 9999999; /* Поверх защиты Vercel */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.preloader-logo {
    position: relative;
}

.preloader-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(131, 56, 236, 0.6), 0 0 60px rgba(255, 0, 110, 0.4);
    animation: preloaderPulse 2s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes preloaderPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(131, 56, 236, 0.6), 0 0 60px rgba(255, 0, 110, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(131, 56, 236, 0.8), 0 0 80px rgba(255, 0, 110, 0.6);
    }
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(131, 56, 236, 0.2);
    border-top: 3px solid var(--neon-purple);
    border-right: 3px solid var(--neon-pink);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    color: var(--neon-cyan);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    animation: preloaderTextGlow 2s ease-in-out infinite;
    margin: 0;
    padding: 0 20px;
}

@keyframes preloaderTextGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 30px rgba(255, 0, 110, 0.4);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Отключаем зум на iOS */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Разрешаем выделение только для текста в инпутах */
input,
textarea {
    -webkit-user-select: text;
    user-select: text;
    /* Минимальный размер шрифта 16px для предотвращения зума на iOS */
    font-size: 16px !important;
}

html {
    /* Фиксированный размер, запрет зума */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Высота 100% для полноэкранного режима */
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: url('/webapp/images/background.webp?v=20260521') center/cover fixed;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    height: 100%;
    width: 100%;
    overflow: hidden;
    touch-action: manipulation;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html.vk-mini-app.vk-desktop-web body {
    background-color: #080812;
    background-attachment: scroll;
}

html.vk-mini-app.vk-desktop-web body:not(:has(#chatView.screen.active))::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(7, 6, 18, 0.42);
    z-index: 0;
    pointer-events: none;
}

html.vk-mini-app.vk-desktop-web .screen:not(#chatView) {
    background: transparent;
}

.app-container {
    /* Контейнер занимает весь viewport */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Прозрачный чтобы видеть фоны */
    overflow: hidden;
    z-index: 1; /* Выше фонов (z-index: 0), но ниже снежинок (z-index: 1000).
                   Рекламные баннеры вынесены в прямые потомки body (в конец HTML),
                   поэтому их z-index:100 работает в контексте body поверх
                   frosted glass (body::before/after z-index:50). */
}

/* Экраны - абсолютно позиционированы внутри контейнера */
.screen {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    padding-bottom: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: transparent; /* Прозрачный чтобы видеть новогодние фоны */
    -webkit-overflow-scrolling: touch;
}

/* Экран чата - без отступов, на весь экран */
#chatView.screen {
    padding: 0 !important;
    overflow: hidden !important; /* Скроллится только .chat-messages-container внутри */
    overflow-x: hidden !important;
}

/* chatView: flex-layout должен работать правильно */
#chatView.screen.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#chatView.screen.active > .chat-messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    flex-shrink: 1 !important;
}

#chatView.screen.active > .chat-header {
    flex-shrink: 0 !important;
}

#chatView.screen.active > .chat-input-container {
    flex-shrink: 0 !important;
}

/* Telegram fullscreen can report 0px top inset on some Android/iOS clients.
   Reuse the measured/fallback Telegram controls offset on all app screens,
   while leaving the main menu on its dedicated top-bar layout. */
html.telegram-fullscreen .screen:not(#mainMenu) {
    --safe-area-top: var(--telegram-main-controls-top);
}

/* Активный экран - просто показываем */
.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; /* Активный экран поверх остальных */
}

/* ВСЕ экраны - строго вертикальный layout */
.screen.active > * {
    width: 100% !important;
    max-width: 400px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Экран Мои фото - расширенная ширина для галереи */
#myPhotosScreen.screen.active > * {
    max-width: 600px !important; /* Ограничиваем ширину для ПК */
}

/* Скрываем кнопку FREE/PRO на странице Мои фото */
#myPhotosScreen.screen.active ~ .premium-toggle,
body:has(#myPhotosScreen.screen.active) .premium-toggle {
    display: none !important;
}

/* Экран чата - на полную ширину без ограничений */
#chatView.screen.active > * {
    max-width: 100% !important;
}

/* Скрываем боковые рекламные баннеры в открытом чате по умолчанию (на узких экранах перекрывают сообщения) */
body:has(#chatView.active) #adBannerLeft,
body:has(#chatView.active) #adBannerRight {
    display: none !important;
}

/* ================================================================
   РЕКЛАМНЫЕ БАННЕРЫ В ЧАТЕ на широких экранах (≥ 1100px).
   Боковая панель = calc((100vw - 760px) / 2) ≥ 170px — туда
   центрируем баннеры поверх frosted glass (z-index > 50).
   ================================================================ */
@media (min-width: 1100px) {
    body:has(#chatView.active) #adBannerLeft,
    body:has(#chatView.active) #adBannerRight {
        display: flex !important;
    }

    /* Левый баннер: растягиваем на всю ширину левой панели и центрируем содержимое */
    body:has(#chatView.active) #adBannerLeft {
        left: 0 !important;
        width: calc((100vw - 760px) / 2) !important;
        align-items: center !important;
    }

    /* Правый баннер: аналогично для правой панели */
    body:has(#chatView.active) #adBannerRight {
        right: 0 !important;
        left: auto !important;
        width: calc((100vw - 760px) / 2) !important;
        align-items: center !important;
    }
}


/* Главное меню - всегда вертикальный layout */
#mainMenu.screen.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

#mainMenu .header,
#mainMenu .menu-buttons {
    width: 100% !important;
    max-width: 400px !important;
    flex-shrink: 0 !important;
}

#mainMenu .main-top-bar {
    flex-shrink: 0 !important;
    position: absolute !important;
    top: calc(8px + var(--telegram-main-controls-top)) !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 230 !important;
    display: grid !important;
    grid-template-columns: minmax(58px, 1fr) 84px minmax(118px, 1fr);
    align-items: start !important;
    column-gap: 8px;
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    min-height: 96px;
    padding: 0 14px !important;
    pointer-events: none;
}

#mainMenu .main-top-bar > * {
    pointer-events: auto;
}

#mainMenu .main-top-bar > .hamburger-menu {
    grid-column: 1;
    justify-self: start;
    align-self: start;
    margin-top: 0 !important;
}

#mainMenu .main-age-badge {
    position: absolute;
    top: 54px;
    left: 50%;
    transform: translateX(-70px);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #ff6675;
    background: rgba(255, 68, 68, 0.13);
    border: 1px solid rgba(255, 68, 68, 0.42);
    border-radius: 5px;
    padding: 3px 7px;
    letter-spacing: 0;
    pointer-events: none;
    user-select: none;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.82),
        0 0 8px rgba(255, 68, 68, 0.52);
    box-shadow:
        0 0 12px rgba(255, 68, 68, 0.16),
        inset 0 0 10px rgba(255, 255, 255, 0.04);
}

#mainMenu .main-premium-actions {
    grid-column: 3;
    justify-self: end;
    align-self: start;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    max-width: none !important;
}

#mainMenu .header {
    margin-top: calc(4px + var(--telegram-main-controls-top)) !important;
    margin-bottom: -4px !important;
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#mainMenu .logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding-top: 0 !important;
}

#mainMenu .neon-icon {
    margin-bottom: 0 !important;
}

#mainMenu .menu-buttons {
    gap: 0 !important;
    padding: 2px 15px 4px !important;
}

#mainMenu .user-location {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0.32rem 0.75rem;
}

#mainMenu .city-stats-block {
    margin-bottom: 6px !important;
    padding: 11px 16px;
    line-height: 1.32;
}

#mainMenu #createAdBtn {
    margin-top: 2px;
}

#mainMenu .neon-button {
    margin-top: 4px;
    margin-bottom: 4px;
}

html.telegram-webapp #mainMenu .main-top-bar {
    top: calc(var(--telegram-main-controls-top) + 8px) !important;
    padding-top: 0 !important;
}

html.telegram-fullscreen #mainMenu .main-top-bar + .header {
    margin-top: calc(4px + var(--telegram-main-controls-top)) !important;
}

html.telegram-fullscreen #createAd > .header {
    min-height: calc(80px + var(--telegram-main-controls-top)) !important;
}

html.telegram-fullscreen #createAd .hamburger-menu[style],
html.telegram-fullscreen #locationSetup .hamburger-menu[style] {
    top: calc(15px + var(--telegram-main-controls-top)) !important;
}

html.telegram-fullscreen #createAdBackBtn {
    top: calc(52px + var(--telegram-main-controls-top)) !important;
}

html.telegram-fullscreen #locationBackBtn {
    top: calc(60px + var(--telegram-main-controls-top)) !important;
}

/* Кнопки меню - строго вертикально */
.menu-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
}

.menu-buttons > * {
    width: 100% !important;
}

#mainMenu .main-menu-compact-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100% !important;
    margin: 6px 0;
}

#mainMenu .main-menu-compact-row .main-menu-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.12;
    gap: 5px;
}

#mainMenu .main-menu-compact-row .main-menu-action .icon {
    --app-icon-size: 1.3em;
}

#mainMenu .main-menu-compact-row .main-menu-action span:not(.icon) {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

@media (max-width: 380px) {
    #mainMenu .main-menu-compact-row {
        gap: 6px;
    }

    #mainMenu .main-menu-compact-row .main-menu-action {
        padding: 6px 6px;
        font-size: 11px;
        gap: 4px;
    }

    #mainMenu .main-menu-compact-row .main-menu-action .icon {
        --app-icon-size: 1.2em;
    }
}

/* Экран настройки локации - строго вертикальный */
#locationSetup.screen.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(5, 7, 20, 0.66) 0%, rgba(8, 10, 24, 0.88) 100%);
    padding: 12px 12px max(16px, var(--chat-safe-bottom-extra)) !important;
}

#locationSetup .header {
    width: 100% !important;
    max-width: 430px !important;
    text-align: center !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding: calc(12px + var(--safe-area-top)) 14px 4px !important;
    gap: 10px;
}

#locationSetup #locationBackBtn {
    position: static !important;
    left: auto !important;
    top: auto !important;
    align-self: flex-start;
    width: fit-content;
    margin: 42px 0 12px;
    padding: 8px 13px;
    border: 1px solid rgba(0, 217, 255, 0.72);
    background: rgba(4, 12, 28, 0.88);
    color: #f4fdff;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

#locationSetup .logo {
    padding-top: 0 !important;
}

#locationSetup .logo h1 {
    margin-bottom: 7px;
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1.18;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.76), 0 0 18px rgba(0, 217, 255, 0.22);
}

#locationSetup .logo p {
    color: rgba(246, 251, 255, 0.88) !important;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
}

/* Убираем скролл если контент влезает */
.screen:not(.force-scroll) {
    overflow-y: auto;
}

.screen:not(.force-scroll):not(:has(:nth-child(10))) {
    overflow-y: visible;
}

/* Заголовок */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    min-height: calc(50px + var(--safe-area-top));
    padding-top: calc(10px + var(--safe-area-top));
    padding-bottom: 10px;
    width: 100%;
    overflow: visible;
}

.back-btn {
    background: none;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 10px;
    top: calc(10px + var(--safe-area-top));
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.back-btn:hover {
    box-shadow: var(--shadow-cyan);
    transform: scale(1.05);
}

/* FAQ кнопка в хедере */
.faq-btn {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(131, 56, 236, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.faq-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(131, 56, 236, 0.6);
}

.faq-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* FAQ модальное окно */
.faq-modal .faq-content {
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq-modal .faq-body {
    overflow-y: auto;
    padding: 0 20px 20px;
    flex: 1;
}

.faq-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(131, 56, 236, 0.2);
}

.faq-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-section h3 {
    color: var(--neon-cyan);
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-section p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.faq-section ul {
    margin: 6px 0;
    padding-left: 18px;
}

.faq-section li {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 3px;
    line-height: 1.3;
}

.faq-tip {
    background: rgba(131, 56, 236, 0.15);
    border-left: 3px solid var(--neon-purple);
    padding: 6px 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem !important;
    margin-top: 6px !important;
}

.faq-modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(131, 56, 236, 0.2);
    text-align: center;
}

.logo {
    text-align: center;
    width: 100%;
    padding-top: 0;
}

.logo h1 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.neon-icon {
    font-size: 35px;
    margin-bottom: 5px;
    filter: drop-shadow(var(--shadow-pink)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.neon-icon img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

h1 {
    font-size: 20px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 18px;
    color: var(--neon-cyan);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

/* Неоновые кнопки */
.neon-button {
    background: linear-gradient(45deg, var(--bg-card), #2a2a3e);
    border: 2px solid var(--neon-pink);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.neon-button .icon {
    --app-icon-size: 1.7em;
    filter:
        drop-shadow(0 0 4px var(--app-icon-glow, rgba(0, 217, 255, 0.78)))
        drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.app-icon {
    --app-icon-size: 1.35em;
    --app-icon: none;
    --app-icon-glow: rgba(0, 217, 255, 0.78);
    display: inline-block;
    width: var(--app-icon-size);
    height: var(--app-icon-size);
    flex: 0 0 var(--app-icon-size);
    background: transparent var(--app-icon) center / contain no-repeat;
    color: currentColor;
    vertical-align: -0.15em;
    filter:
        drop-shadow(0 0 4px var(--app-icon-glow))
        drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.app-icon-edit {
    --app-icon: url("/webapp/icons/neon-edit.svg?v=20260612-complex");
}

.app-icon-eye {
    --app-icon: url("/webapp/icons/neon-eye.svg?v=20260612-complex");
    --app-icon-glow: rgba(255, 218, 90, 0.72);
}

.app-icon-list {
    --app-icon: url("/webapp/icons/neon-list.svg?v=20260612-complex");
}

.app-icon-users {
    --app-icon: url("/webapp/icons/neon-users.svg?v=20260612-complex");
}

.app-icon-guests {
    --app-icon: url("/webapp/icons/neon-guest-door.svg?v=20260612-complex");
    --app-icon-glow: rgba(178, 107, 255, 0.74);
}

.app-icon-chat {
    --app-icon: url("/webapp/icons/neon-chat.svg?v=20260612-complex");
}

.app-icon-globe {
    --app-icon: url("/webapp/icons/neon-globe.svg?v=20260612-complex");
    --app-icon-glow: rgba(69, 227, 107, 0.66);
}

.app-icon-map {
    --app-icon: url("/webapp/icons/neon-map.svg?v=20260612-complex");
    --app-icon-glow: rgba(53, 207, 89, 0.76);
}

.app-icon-gift {
    --app-icon: url("/webapp/icons/neon-gift.svg?v=20260612-complex");
}

.app-icon-flame {
    --app-icon: url("/webapp/icons/neon-flame.svg?v=20260612-complex");
    --app-icon-glow: rgba(255, 44, 168, 0.78);
}

.app-icon-megaphone {
    --app-icon: url("/webapp/icons/neon-megaphone.svg?v=20260612-complex");
    --app-icon-glow: rgba(255, 218, 90, 0.72);
}

.app-icon-ban {
    --app-icon: url("/webapp/icons/neon-ban.svg?v=20260612-complex");
    --app-icon-glow: rgba(255, 62, 96, 0.8);
}

.app-icon-location {
    --app-icon: url("/webapp/icons/neon-location.svg?v=20260612-complex");
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    box-shadow: var(--shadow-pink);
    transform: translateY(-3px);
}

.neon-button:disabled,
.neon-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.25);
    transform: none;
    animation: none;
}

.neon-button:disabled:hover,
.neon-button[aria-disabled="true"]:hover {
    box-shadow: none;
    transform: none;
}

.neon-button:disabled::before,
.neon-button[aria-disabled="true"]::before {
    display: none;
}

.neon-button.secondary {
    border-color: var(--neon-cyan);
}

.neon-button.secondary:hover {
    box-shadow: var(--shadow-cyan);
}

.neon-button.success {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.neon-button.primary {
    animation: pulse-pink 4.2s ease-in-out infinite;
}

/* Attention CTA: "Смотреть анкеты" in main menu */
.neon-button.browse-ads-cta {
    position: relative;
    isolation: isolate;
    border-color: rgba(255, 210, 92, 0.95);
    box-shadow: 0 0 14px rgba(255, 204, 64, 0.45), 0 0 28px rgba(255, 170, 25, 0.28), inset 0 0 10px rgba(255, 215, 120, 0.12);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.neon-button.browse-ads-cta::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 220, 130, 0.56) 0%, rgba(255, 188, 70, 0.34) 38%, rgba(255, 166, 0, 0.12) 72%, rgba(255, 166, 0, 0) 100%);
    opacity: 0.34;
    transform: scale(1);
    filter: blur(7px);
    animation: gold-flow-soft 8.2s ease-in-out infinite;
}

.neon-button.browse-ads-cta > * {
    position: relative;
    z-index: 1;
}

.neon-button.browse-ads-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 210, 92, 0.56), 0 0 32px rgba(255, 166, 0, 0.34), inset 0 0 12px rgba(255, 220, 130, 0.14);
}

.neon-button.browse-ads-cta .icon {
    animation: gold-content-soft 8.2s ease-in-out infinite;
}

.neon-button.browse-ads-cta #browseAdsBtnLabel {
    color: #ffe8a6;
    animation: gold-text-soft 8.2s ease-in-out infinite;
}

.neon-button.full-width {
    width: 100%;
}

@keyframes pulse-pink {
    0%, 100% { box-shadow: 0 0 5px var(--neon-pink); }
    50% { box-shadow: var(--shadow-pink); }
}

@keyframes gold-flow-soft {
    0%, 100% {
        opacity: 0.32;
        transform: scale(1);
    }
    50% {
        opacity: 0.56;
        transform: scale(1.025);
    }
}

@keyframes gold-content-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.96; }
}

@keyframes gold-text-soft {
    0%, 100% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.58), 0 0 7px rgba(255, 210, 92, 0.18);
    }
    50% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 220, 130, 0.34);
    }
}

#mainMenu .location-info,
#mainMenu .main-menu-action {
    --menu-flow-accent: rgba(255, 255, 255, 0.34);
    --menu-flow-sheen: rgba(0, 229, 255, 0.2);
    --menu-flow-shadow-a: rgba(0, 229, 255, 0.36);
    --menu-flow-shadow-b: rgba(255, 44, 168, 0.2);
    --menu-flow-delay: 0s;
    --menu-flow-direction: normal;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(45deg, rgba(26, 26, 46, 0.82), rgba(42, 42, 62, 0.82)),
        linear-gradient(
            100deg,
            rgba(255, 0, 110, 0.08) 0%,
            var(--menu-flow-sheen) 24%,
            rgba(255, 255, 255, 0.12) 44%,
            var(--menu-flow-accent) 52%,
            rgba(0, 217, 255, 0.1) 66%,
            rgba(255, 0, 110, 0.08) 100%
        );
    background-size: 100% 100%, 230% 100%;
    background-position: 0 0, 0% 50%;
    animation: main-menu-button-bg-flow var(--main-menu-bg-flow-duration) linear infinite;
}

#mainMenu .main-menu-action {
    box-shadow:
        0 0 11px var(--menu-flow-shadow-a),
        0 0 22px var(--menu-flow-shadow-b),
        inset 0 0 10px rgba(255, 255, 255, 0.04);
}

#mainMenu .location-info > *,
#mainMenu .main-menu-action > * {
    position: relative;
    z-index: 1;
}

#mainMenu .location-info::before,
#mainMenu .main-menu-action::before {
    content: "";
    position: absolute;
    top: -22%;
    bottom: -22%;
    left: 0;
    right: auto;
    width: 58%;
    height: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--menu-flow-sheen) 30%,
        var(--menu-flow-accent) 50%,
        var(--menu-flow-sheen) 70%,
        transparent 100%
    );
    opacity: 0;
    filter: blur(7px);
    transform: translateX(-145%) skewX(-16deg);
    animation: main-menu-surface-flow var(--main-menu-flow-duration) ease-in-out infinite;
    animation-delay: var(--menu-flow-delay);
    animation-direction: var(--menu-flow-direction);
}

#mainMenu .location-info::after,
#mainMenu .main-menu-action::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 50%, var(--menu-flow-sheen) 0%, transparent 68%);
    opacity: 0.12;
    animation: main-menu-surface-breathe var(--main-menu-breathe-duration) ease-in-out infinite;
    animation-delay: calc(var(--menu-flow-delay) + 0.2s);
}

#mainMenu .location-info {
    --menu-flow-accent: rgba(141, 247, 255, 0.34);
    --menu-flow-sheen: rgba(0, 229, 255, 0.18);
    --menu-flow-shadow-a: rgba(0, 229, 255, 0.34);
    --menu-flow-shadow-b: rgba(255, 44, 168, 0.16);
    --menu-flow-delay: 0s;
    --menu-flow-direction: normal;
}

#mainMenu .main-menu-create {
    --menu-flow-accent: rgba(255, 242, 122, 0.42);
    --menu-flow-sheen: rgba(255, 44, 168, 0.22);
    --menu-flow-shadow-a: rgba(255, 44, 168, 0.42);
    --menu-flow-shadow-b: rgba(0, 229, 255, 0.2);
    --menu-flow-delay: 0.35s;
    --menu-flow-direction: reverse;
}

#mainMenu .main-menu-browse {
    --menu-flow-accent: rgba(0, 229, 255, 0.34);
    --menu-flow-sheen: rgba(255, 230, 109, 0.24);
    --menu-flow-shadow-a: rgba(255, 230, 109, 0.42);
    --menu-flow-shadow-b: rgba(255, 159, 28, 0.22);
    --menu-flow-delay: 0.7s;
    --menu-flow-direction: normal;
}

#mainMenu .main-menu-my-ads {
    --menu-flow-accent: rgba(0, 229, 255, 0.36);
    --menu-flow-sheen: rgba(155, 70, 255, 0.22);
    --menu-flow-shadow-a: rgba(155, 70, 255, 0.4);
    --menu-flow-shadow-b: rgba(0, 229, 255, 0.18);
    --menu-flow-delay: 1.05s;
    --menu-flow-direction: reverse;
}

#mainMenu .main-menu-guests {
    --menu-flow-accent: rgba(255, 44, 168, 0.36);
    --menu-flow-sheen: rgba(181, 107, 255, 0.24);
    --menu-flow-shadow-a: rgba(181, 107, 255, 0.42);
    --menu-flow-shadow-b: rgba(255, 44, 168, 0.2);
    --menu-flow-delay: 1.4s;
    --menu-flow-direction: normal;
}

#mainMenu .main-menu-chats {
    --menu-flow-accent: rgba(255, 44, 168, 0.34);
    --menu-flow-sheen: rgba(0, 229, 255, 0.2);
    --menu-flow-shadow-a: rgba(0, 229, 255, 0.36);
    --menu-flow-shadow-b: rgba(58, 134, 255, 0.22);
    --menu-flow-delay: 1.75s;
    --menu-flow-direction: reverse;
}

#mainMenu .main-menu-world-chat {
    --menu-flow-accent: rgba(69, 227, 107, 0.34);
    --menu-flow-sheen: rgba(255, 44, 168, 0.2);
    --menu-flow-shadow-a: rgba(255, 44, 168, 0.34);
    --menu-flow-shadow-b: rgba(0, 229, 255, 0.2);
    --menu-flow-delay: 2.1s;
    --menu-flow-direction: normal;
}

#mainMenu .main-menu-loneliness-map {
    --menu-flow-accent: rgba(255, 44, 168, 0.34);
    --menu-flow-sheen: rgba(69, 227, 107, 0.2);
    --menu-flow-shadow-a: rgba(69, 227, 107, 0.38);
    --menu-flow-shadow-b: rgba(0, 229, 255, 0.18);
    --menu-flow-delay: 2.45s;
    --menu-flow-direction: reverse;
}

#mainMenu .main-menu-action:hover::before,
#mainMenu .main-menu-action:hover::after,
#mainMenu .location-info:hover::before,
#mainMenu .location-info:hover::after {
    animation-duration: 6.8s;
    opacity: 0.95;
}

#mainMenu .neon-button.browse-ads-cta.main-menu-action {
    border-color: rgba(255, 210, 92, 0.95);
    box-shadow:
        0 0 14px rgba(255, 204, 64, 0.45),
        0 0 28px rgba(255, 170, 25, 0.28),
        inset 0 0 10px rgba(255, 215, 120, 0.12);
}

#mainMenu .neon-button.browse-ads-cta.main-menu-action::after {
    inset: -2px;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 220, 130, 0.56) 0%,
            rgba(255, 188, 70, 0.34) 38%,
            rgba(255, 166, 0, 0.12) 72%,
            rgba(255, 166, 0, 0) 100%
        );
    opacity: 0.34;
    filter: blur(7px);
    transform: scale(1);
    animation: gold-flow-soft var(--main-menu-bg-flow-duration) ease-in-out infinite;
}

#mainMenu .neon-button.browse-ads-cta.main-menu-action:hover {
    box-shadow:
        0 0 16px rgba(255, 210, 92, 0.56),
        0 0 32px rgba(255, 166, 0, 0.34),
        inset 0 0 12px rgba(255, 220, 130, 0.14);
}

#mainMenu .neon-button.browse-ads-cta.main-menu-action:hover::after {
    opacity: 0.56;
    animation-duration: var(--main-menu-bg-flow-duration);
}

@keyframes main-menu-button-bg-flow {
    0% {
        background-position: 0 0, 0% 50%;
    }
    100% {
        background-position: 0 0, 230% 50%;
    }
}

@keyframes main-menu-surface-flow {
    0%, 18% {
        transform: translateX(-130%) skewX(-16deg);
        opacity: 0.12;
    }
    34%, 58% {
        opacity: 0.9;
    }
    82%, 100% {
        transform: translateX(230%) skewX(-16deg);
        opacity: 0.14;
    }
}

@keyframes main-menu-surface-breathe {
    0%, 100% { opacity: 0.16; }
    50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    #mainMenu .location-info::before,
    #mainMenu .location-info::after,
    #mainMenu .main-menu-action::before,
    #mainMenu .main-menu-action::after {
        animation: none;
    }

    #mainMenu .location-info,
    #mainMenu .main-menu-action {
        animation: none;
        background-position: 0 0, 50% 50%;
    }
}

/* Блок никнейма на главной странице */
.nickname-section {
    max-width: 280px;
    margin: 12px auto;
    padding: 10px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: var(--shadow-cyan);
}

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

.nickname-header h3 {
    font-size: 1rem;
    color: var(--neon-cyan);
    margin: 0;
}

.nickname-icon {
    font-size: 1.5rem;
}

.nickname-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 8px;
}

.nickname-display {
    flex: 1;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-light);
    text-align: left;
}

.nickname-edit-btn {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 153, 255, 0.2));
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nickname-edit-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.edit-icon {
    font-size: 1rem;
}

.nickname-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nickname-editor .neon-input {
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.nickname-actions {
    display: flex;
    gap: 8px;
}

.nickname-save-btn,
.nickname-cancel-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nickname-save-btn {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.nickname-save-btn:hover {
    background: #00ff00;
    color: var(--bg-dark);
}

.nickname-cancel-btn {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.nickname-cancel-btn:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
}

.suggestion-btn-main {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.suggestion-btn-main:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

/* Страница редактирования никнейма */
.nickname-edit-section {
    max-width: 400px;
    margin: 0 auto;
}

.nickname-current {
    margin-bottom: 15px;
    text-align: center;
}

.nickname-current h3 {
    color: var(--neon-cyan);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.current-nickname-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: var(--shadow-cyan);
}

.nickname-icon-large {
    font-size: 3rem;
}

.nickname-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.nickname-edit-form {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(16, 16, 32, 0.6));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 12px;
}

.nickname-edit-form h3 {
    color: var(--neon-pink);
    margin-bottom: 6px;
    font-size: 1.1rem;
    text-align: center;
}

.nickname-hint-page {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.nickname-input-wrapper-page {
    position: relative;
    margin-bottom: 10px;
}

.nickname-input-wrapper-page .neon-input {
    width: 100%;
    padding-right: 45px;
    font-size: 1.1rem;
    text-align: center;
}

.nickname-input-wrapper-page .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    pointer-events: none;
}

.nickname-suggestions-page {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.nickname-suggestions-page .suggestion-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 5px;
}

.suggestion-btn-page {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-btn-page:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

.suggestion-btn-page.reset-btn {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.suggestion-btn-page.reset-btn:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: var(--shadow-pink);
}

/* Меню кнопки */
/* Страница опросов */
.polls-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px;
    padding-bottom: 80px;
}

.polls-intro {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.polls-intro p {
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

.poll-card {
    background: linear-gradient(135deg, var(--bg-card), #262636);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.poll-icon {
    font-size: 18px;
}

.poll-header h3 {
    margin: 0;
    font-size: 14px;
    color: var(--neon-pink);
}

.poll-question-full {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.3;
}

.poll-options-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.poll-option-full {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    background: rgba(236, 72, 153, 0.15);
    border: 2px solid rgba(236, 72, 153, 0.4);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.poll-option-icon {
    font-size: 14px;
}

.poll-option-full:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: var(--neon-pink);
    transform: translateX(4px);
}

.poll-option-full:active {
    transform: scale(0.98);
}

.poll-results-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-result-item-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-result-text-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.poll-percent-full {
    color: var(--neon-pink);
    font-weight: 700;
    font-size: 13px;
}

.poll-bar-full {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.poll-bar-fill-full {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border-radius: 3px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.poll-votes-count {
    font-size: 10px;
    color: var(--text-gray);
    margin-top: 1px;
}

.poll-total-full {
    font-size: 11px;
    color: var(--text-gray);
    text-align: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.poll-total-full span {
    color: var(--neon-pink);
    font-weight: 600;
}

.menu-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 2px;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 10px;
    width: 100%;
}

/* Адаптивные стили для широких экранов (desktop) */
@media (min-width: 600px) {
    .menu-buttons {
        max-width: 320px;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Форма */
.form-container {
    max-width: 380px;
    margin: 0 auto;
}

.form-step {
    display: none;
    text-align: center;
}

.form-step.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* В create profile центрируем только навигацию, а контент шагов оставляем обычным */
#createAd .form-step.active {
    align-items: stretch;
}

.form-step.active > * {
    display: revert !important;
}

/* Restore option grids in create profile steps and keep choices centered */
#createAd .form-step.active > .gender-select,
#createAd .form-step.active > .target-select,
#createAd .form-step.active > .goal-select,
#createAd .form-step.active > .body-select {
    display: grid !important;
}

/* Single-column choice lists should be visually centered */
#createAd .target-select,
#createAd .goal-select,
#createAd .body-select {
    justify-items: center;
}

#createAd .target-select .target-btn,
#createAd .goal-select .goal-btn,
#createAd .body-select .body-btn {
    width: min(320px, 100%);
}

/* Step 2 ("Кого ищете"): compact centered 2+1 layout */
#createAd #step2 .target-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

#createAd #step2 .target-select .target-btn {
    width: min(240px, 100%);
}

/* Step 3 ("Цель общения"): compact centered multi-row layout */
#createAd #step3 .goal-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

#createAd #step3 .goal-select .goal-btn {
    width: min(240px, 100%);
}

/* Универсальное центрирование последней кнопки, если их нечетное количество */
#createAd #step3 .goal-select .goal-btn:last-child:nth-child(odd),
#createAd #step2 .target-select .target-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Step 3 hint text */
#createAd #step3 p {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 255, 255, 0.22);
}

/* Step 5 ("Ваш возраст"): keep minus/input/plus in one centered row */
#createAd #step5 .age-control.centered {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#createAd #step5 .age-control.centered .neon-input {
    width: 90px;
    margin: 0;
    text-align: center;
}

/* Step 6-7 ("Телосложение" / "Ориентация"): same compact style as goals */
#createAd #step6 .body-select,
#createAd #step7 .body-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

#createAd #step6 .body-select .body-btn,
#createAd #step7 .body-select .body-btn {
    width: min(240px, 100%);
}

/* Center odd tail item in two-column rows */
#createAd #step6 .body-select .body-btn:last-child:nth-child(odd),
#createAd #step7 .body-select .body-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

#createAd #step7 [data-orientation].orientation-hidden-by-host {
    display: none !important;
}

/* Специальное правило для textarea на шаге 7 */
.form-step.active #adText,
.form-step#step7.active textarea,
#step7 .neon-textarea,
#adText {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 999 !important;
}

#createAd #adText,
#textareaContainer #adText,
#textareaContainerLegacy #adText {
    background: rgba(8, 8, 18, 0.94) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    caret-color: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.18), 0 0 18px rgba(0, 0, 0, 0.45) !important;
}

#createAd #adText:focus,
#textareaContainer #adText:focus,
#textareaContainerLegacy #adText:focus {
    background: rgba(6, 6, 16, 0.98) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: var(--shadow-cyan), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

#createAd #adText::placeholder,
#textareaContainer #adText::placeholder,
#textareaContainerLegacy #adText::placeholder {
    color: rgba(248, 251, 255, 0.58) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.58) !important;
}

/* Никнейм */
.nickname-container {
    margin: 20px 0;
}

.nickname-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

.nickname-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.nickname-input-wrapper .neon-input {
    width: 100%;
    padding-right: 45px;
    font-size: 1.1rem;
    text-align: center;
}

.nickname-input-wrapper .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    pointer-events: none;
}

.nickname-suggestions {
    text-align: center;
}

.suggestion-label {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.suggestion-btn {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

/* Сетки кнопок */
.city-grid, .gender-select, .target-select, .goal-select, .body-select {
    display: grid;
    gap: 10px;
    margin: 15px 0;
}

.city-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.gender-select {
    grid-template-columns: 1fr 1fr 1fr;
}

.target-select, .goal-select, .body-select {
    grid-template-columns: 1fr;
}

.city-btn, .gender-btn, .target-btn, .goal-btn, .body-btn {
    background: var(--bg-card);
    border: 2px solid var(--neon-purple);
    color: var(--text-light);
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.city-btn:hover, .gender-btn:hover, .target-btn:hover, .goal-btn:hover, .body-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

.city-btn.selected, .gender-btn.selected, .target-btn.selected, .goal-btn.selected, .body-btn.selected {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-pink);
    background: rgba(255, 0, 110, 0.1);
}



/* Поля ввода */
.neon-input, .neon-textarea {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--neon-purple);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-light);
    font-size: 15px;
    width: 100%;
    margin: 8px 0;
    transition: all 0.3s ease;
    display: block !important; /* Принудительно показываем */
}

.neon-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

#emailMessage {
    resize: none;
}

.neon-input:focus, .neon-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
}

.neon-input::placeholder, .neon-textarea::placeholder {
    color: var(--text-gray);
}

.neon-input.small {
    width: 70px;
    text-align: center;
}

/* Возрастной диапазон */
.age-range {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.input-group label {
    color: var(--neon-cyan);
    font-size: 13px;
    text-align: center;
}

/* Age control buttons */
.age-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.age-control.centered {
    justify-content: center;
    margin: 20px 0;
}

.age-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    background: linear-gradient(45deg, var(--bg-card), #2a2a3e);
    color: var(--neon-pink);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.age-btn:hover {
    box-shadow: var(--shadow-pink);
    transform: scale(1.1);
    background: rgba(255, 0, 255, 0.1);
}

.age-btn:active {
    transform: scale(0.95);
}

.age-btn.plus {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.age-btn.plus:hover {
    box-shadow: var(--shadow-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.age-control .neon-input {
    width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Навигация формы */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Create profile: навигация идет сразу под вариантами шага */
#createAd .form-container {
    width: 100%;
    padding-bottom: 0;
}

#createAd .form-navigation {
    position: static;
    transform: none;
    width: min(400px, 100%);
    margin: 12px auto 0;
    padding: 0 4px;
    background: transparent;
    justify-content: center;
    align-items: center;
}

#createAd .form-navigation .nav-btn {
    flex: 0 0 auto;
    min-width: 150px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-btn {
    background: var(--bg-card);
    border: 2px solid var(--neon-purple);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 52px;
}

.nav-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
}

.nav-btn.primary {
    border-color: var(--neon-pink);
}

.nav-btn.primary:hover {
    box-shadow: var(--shadow-pink);
}

.nav-btn.success {
    border-color: #00ff88;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% { box-shadow: 0 0 5px #00ff88; }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.6); }
}

/* Список анкет */
/* Фильтры */
.filters-container {
    margin: 10px 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#browseAds .filters-container {
    overflow: visible;
    padding-top: 3px;
}

.filter-toggle-btn {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(131, 56, 236, 0.15));
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    color: var(--neon-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#browseAds .filter-toggle-btn,
#browseLuckyBtn,
#browseAds .change-location-btn,
#browseAds .filter-actions .neon-button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.12;
}

#browseLuckyBtn {
    min-height: 48px;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.25), rgba(131, 56, 236, 0.25));
    transform: translateY(-2px);
}

#browseAds .filter-toggle-btn:hover {
    transform: translateY(-1px);
}

#filterBadge {
    background: var(--neon-pink);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.filter-summary {
    display: none;
    max-width: 55%;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.filters-panel {
    margin-top: 6px;
    padding: 12px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    animation: slideDown 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.radius-filter-select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.88);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.radius-filter-select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.25);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
}

/* Кнопки Пол и Ищет - в одну строку, полные названия */
.gender-target-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gender-target-buttons .filter-btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.75rem;
    padding: 8px 6px;
}

.filter-btn {
    flex: 1 1 auto;
    min-width: 70px;
    max-width: 100%;
    padding: 8px 10px;
    background: rgba(131, 56, 236, 0.2);
    border: 1px solid rgba(131, 56, 236, 0.5);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap; /* Одна строка */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Ориентация - компактные кнопки в одну строку */
.orientation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.orientation-buttons .filter-btn {
    flex: 0 0 auto;
    min-width: auto;
    padding: 6px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Иконки в фильтрах */
.filter-icon {
    margin-right: 2px;
}

/* iOS: скрываем гендерные символы ♂️♀️ */
@supports (-webkit-touch-callout: none) {
    .gender-icon {
        display: none;
    }
}

.filter-btn:hover {
    background: rgba(131, 56, 236, 0.3);
    border-color: var(--neon-purple);
}

.filter-btn.active {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(131, 56, 236, 0.5);
}

.age-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-filter input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.age-filter input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.age-filter span {
    color: var(--text-gray);
    font-weight: bold;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-actions .neon-button {
    flex: 1;
}

.filter-actions .secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-actions .secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ads-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.ad-card {
    display: block;
    background: linear-gradient(135deg, var(--bg-card), #262636);
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
}

.ad-card.is-pinned {
    margin-top: 18px;
    padding-top: 12px;
}

.ad-card.compact.is-pinned {
    padding-top: 10px;
}

/* Миниатюра фото в карточке анкеты */
.ad-photo-thumbnail {
    width: calc(100% + 24px);
    height: 100px;
    margin: -12px -12px 8px -12px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border-bottom: 2px solid var(--neon-purple);
}

.ad-photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.ad-card:hover .ad-photo-thumbnail img {
    transform: scale(1.05);
}

/* Компактный режим карточек анкет */
.ads-list.compact {
    display: grid;
    gap: 8px;
}

.ad-card.compact {
    padding: 10px 12px;
    border-radius: 12px;
}

.ad-card.compact .ad-photo-thumbnail {
    height: 80px;
    margin: -10px -12px 6px -12px;
    border-radius: 12px 12px 0 0;
}

.ad-card.compact .ad-header {
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    min-width: 0;
}

.ad-card.compact h3 {
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-card.compact .created-at {
    flex: 0 0 auto;
    max-width: 96px;
    font-size: 0.65rem;
    color: var(--text-gray);
    opacity: 0.7;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Last seen badge в карточке анкеты */
.ad-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.ad-author-row h3 {
    margin: 0;
    min-width: 0;
}

.ad-card.compact .ad-author-row {
    flex: 1 1 auto;
    gap: 4px 6px;
}

.ad-card.compact .ad-author-row h3 {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.last-seen-badge {
    font-size: 0.7rem;
    color: #6cc070;
    padding: 2px 8px;
    background: rgba(108, 192, 112, 0.12);
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-card.compact .last-seen-badge {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-card.compact .ad-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ad-card.compact .ad-field {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11px;
    color: var(--text-light);
    gap: 3px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-card.compact .ad-field .label { display:none; }
.ad-card.compact .ad-field .icon {
    flex: 0 0 auto;
}
.ad-card.compact .ad-field .value {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light);
}

.ad-distance-badge,
.ad-location-distance {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.12);
    color: var(--neon-cyan);
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.ad-card.compact .ad-distance-badge {
    margin-left: 4px;
    padding: 1px 5px;
    font-size: 0.86em;
}

.ad-card.compact .ad-text {
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0.85;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.toggle-compact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.toggle-compact-btn:hover {
    background: rgba(255,255,255,0.15);
}

.ad-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ad-card:hover::before {
    opacity: 1;
}

.ad-card:hover {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-pink);
    transform: translateY(-5px);
}

.ad-info {
    display: grid;
    gap: 6px;
}

.ad-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Fix: allow long text like "свободные отношения" to wrap */
    gap: 6px;
    font-size: 13px;
}

.ad-field .icon {
    font-size: 15px;
    /* убран filter:drop-shadow — конфликт с will-change:transform на TOP-карточках в WebView */
}

.ad-field .label {
    color: var(--text-gray);
    min-width: 100px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-field .value {
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Заголовок карточки анкеты */
.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 0, 110, 0.15);
}

.ad-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--neon-pink);
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-date {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Поле на всю ширину (для описания) */
.ad-field.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.ad-field.full-width span:last-child {
    width: 100%;
    word-wrap: break-word;
}

.ad-text {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 2px solid var(--neon-cyan);
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#myAds .ad-card,
#myAds .ad-card .ad-info,
#myAds .ad-card .ad-field,
#myAds .ad-card .ad-field.full-width,
#myAds .ad-card .ad-text {
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

#myAds .ad-card .ad-field strong,
#myAds .ad-card .ad-field.full-width strong {
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
}

#myAds .ad-card .ad-field.full-width,
#myAds .ad-card .ad-text {
    background: rgba(8, 8, 18, 0.72) !important;
    border-left-color: var(--neon-cyan) !important;
}

#myAds .ad-card .ad-field .label {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

#myAds .ad-card .ad-field .value {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Детали анкеты */
.ad-details {
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.ad-details-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background:
        linear-gradient(180deg, rgba(8, 8, 18, 0.60), rgba(8, 8, 18, 0.90)),
        rgba(8, 8, 18, 0.78);
    border: 1px solid rgba(0, 217, 255, 0.24);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    margin-top: 15px;
}

.detail-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.detail-field .icon {
    font-size: 20px;
    min-width: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.detail-field .content {
    flex: 1;
}

.detail-field .label {
    color: var(--text-gray);
    font-size: 11px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.detail-field .value {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Фильтр городов */
.city-filter {
    margin-bottom: 30px;
}

.city-btn.filter.selected {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    animation: pulse-pink 2s infinite;
}

/* Адаптивность */
@media (max-width: 480px) {
    .screen {
        padding: 15px;
    }

    .city-grid {
        grid-template-columns: 1fr 1fr;
    }

    .age-range {
        flex-direction: column;
        gap: 15px;
    }

    .form-navigation {
        flex-direction: column;
    }

    /* Для create-ad оставляем горизонтально, чтобы позиция и размер были стабильны */
    #createAd .form-navigation {
        flex-direction: row;
        gap: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

/* Анимации загрузки */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Скроллбар - автоскрытие */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
}

/* Показываем скроллбар при скролле */
.scrolling::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* Для всех скроллируемых элементов */
* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

*.scrolling {
    scrollbar-color: rgba(255, 32, 110, 0.8) transparent;
}

/* Система выбора локации */
.form-country-selection, .form-region-selection, .form-city-selection {
    margin: 1.5rem 0;
    animation: fadeIn 0.5s ease;
}

.form-country-selection h4, .form-region-selection h4, .form-city-selection h4 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Кнопки стран */
.country-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.25rem 0.35rem 0.35rem;
    box-sizing: border-box;
}

.country-btn {
    background: linear-gradient(135deg,
        rgba(131, 56, 236, 0.2) 0%,
        rgba(0, 217, 255, 0.2) 100%);
    border: 1.5px solid rgba(131, 56, 236, 0.5);
    color: #fff;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.22rem;
    min-height: 36px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.country-label {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.country-flag {
    width: 1.1rem;
    height: 0.78rem;
    flex: 0 0 1.1rem;
    display: block;
    border-radius: 2px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.country-flag-ru { background-image: url("images/flags/ru.svg?v=20260602"); }
.country-flag-kz { background-image: url("images/flags/kz.svg?v=20260602"); }
.country-flag-by { background-image: url("images/flags/by.svg?v=20260602"); }
.country-flag-ua { background-image: url("images/flags/ua.svg?v=20260602"); }
.country-flag-kg { background-image: url("images/flags/kg.svg?v=20260602"); }
.country-flag-tj { background-image: url("images/flags/tj.svg?v=20260602"); }
.country-flag-uz { background-image: url("images/flags/uz.svg?v=20260602"); }
.country-flag-am { background-image: url("images/flags/am.svg?v=20260602"); }
.country-flag-az { background-image: url("images/flags/az.svg?v=20260602"); }
.country-flag-md { background-image: url("images/flags/md.svg?v=20260602"); }
.country-flag-ge { background-image: url("images/flags/ge.svg?v=20260602"); }
.country-flag-us { background-image: url("images/flags/us.svg?v=20260602"); }
.country-flag-ca { background-image: url("images/flags/ca.svg?v=20260602"); }
.country-flag-au { background-image: url("images/flags/au.svg?v=20260602"); }
.country-flag-nz { background-image: url("images/flags/nz.svg?v=20260602"); }
.country-flag-gb { background-image: url("images/flags/gb.svg?v=20260602"); }
.country-flag-es { background-image: url("images/flags/es.svg?v=20260621"); }
.country-flag-mx { background-image: url("images/flags/mx.svg?v=20260621"); }
.country-flag-gt { background-image: url("images/flags/gt.svg?v=20260621"); }
.country-flag-hn { background-image: url("images/flags/hn.svg?v=20260621"); }
.country-flag-sv { background-image: url("images/flags/sv.svg?v=20260621"); }
.country-flag-ni { background-image: url("images/flags/ni.svg?v=20260621"); }
.country-flag-cr { background-image: url("images/flags/cr.svg?v=20260621"); }
.country-flag-pa { background-image: url("images/flags/pa.svg?v=20260621"); }
.country-flag-cu { background-image: url("images/flags/cu.svg?v=20260621"); }
.country-flag-do { background-image: url("images/flags/do.svg?v=20260621"); }
.country-flag-pr { background-image: url("images/flags/pr.svg?v=20260621"); }
.country-flag-co { background-image: url("images/flags/co.svg?v=20260621"); }
.country-flag-ve { background-image: url("images/flags/ve.svg?v=20260621"); }
.country-flag-ec { background-image: url("images/flags/ec.svg?v=20260621"); }
.country-flag-pe { background-image: url("images/flags/pe.svg?v=20260621"); }
.country-flag-bo { background-image: url("images/flags/bo.svg?v=20260621"); }
.country-flag-cl { background-image: url("images/flags/cl.svg?v=20260621"); }
.country-flag-ar { background-image: url("images/flags/ar.svg?v=20260621"); }
.country-flag-py { background-image: url("images/flags/py.svg?v=20260621"); }
.country-flag-uy { background-image: url("images/flags/uy.svg?v=20260621"); }
.country-flag-gq { background-image: url("images/flags/gq.svg?v=20260621"); }
.country-flag-at { background-image: url("images/flags/at.svg?v=20260623"); }
.country-flag-be { background-image: url("images/flags/be.svg?v=20260623"); }
.country-flag-bg { background-image: url("images/flags/bg.svg?v=20260623"); }
.country-flag-hr { background-image: url("images/flags/hr.svg?v=20260623"); }
.country-flag-cy { background-image: url("images/flags/cy.svg?v=20260623"); }
.country-flag-cz { background-image: url("images/flags/cz.svg?v=20260623"); }
.country-flag-dk { background-image: url("images/flags/dk.svg?v=20260623"); }
.country-flag-ee { background-image: url("images/flags/ee.svg?v=20260623"); }
.country-flag-fi { background-image: url("images/flags/fi.svg?v=20260623"); }
.country-flag-fr { background-image: url("images/flags/fr.svg?v=20260623"); }
.country-flag-de { background-image: url("images/flags/de.svg?v=20260623"); }
.country-flag-gr { background-image: url("images/flags/gr.svg?v=20260623"); }
.country-flag-hu { background-image: url("images/flags/hu.svg?v=20260623"); }
.country-flag-ie { background-image: url("images/flags/ie.svg?v=20260623"); }
.country-flag-it { background-image: url("images/flags/it.svg?v=20260623"); }
.country-flag-lv { background-image: url("images/flags/lv.svg?v=20260623"); }
.country-flag-lt { background-image: url("images/flags/lt.svg?v=20260623"); }
.country-flag-lu { background-image: url("images/flags/lu.svg?v=20260623"); }
.country-flag-mt { background-image: url("images/flags/mt.svg?v=20260623"); }
.country-flag-nl { background-image: url("images/flags/nl.svg?v=20260623"); }
.country-flag-pl { background-image: url("images/flags/pl.svg?v=20260623"); }
.country-flag-pt { background-image: url("images/flags/pt.svg?v=20260623"); }
.country-flag-ro { background-image: url("images/flags/ro.svg?v=20260623"); }
.country-flag-sk { background-image: url("images/flags/sk.svg?v=20260623"); }
.country-flag-si { background-image: url("images/flags/si.svg?v=20260623"); }
.country-flag-se { background-image: url("images/flags/se.svg?v=20260623"); }

.country-btn:hover {
    border-color: var(--neon-purple);
    box-shadow:
        0 0 20px rgba(131, 56, 236, 0.4),
        inset 0 0 20px rgba(131, 56, 236, 0.1);
    transform: translateY(-2px);
}

.country-btn.active {
    border-color: var(--neon-cyan);
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.3) 0%,
        rgba(131, 56, 236, 0.3) 100%);
    box-shadow:
        0 0 25px rgba(0, 217, 255, 0.5),
        inset 0 0 25px rgba(0, 217, 255, 0.2);
}

.flag {
    font-size: 0.95rem;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .flag {
        font-size: 1.1rem;
    }

    .country-flag {
        width: 1.25rem;
        height: 0.88rem;
        flex-basis: 1.25rem;
    }
}

.country-code {
    background: rgba(131, 56, 236, 0.6);
    padding: 0.13rem 0.3rem;
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0;
    border: 1px solid rgba(131, 56, 236, 0.8);
    flex-shrink: 0;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Контейнеры поиска */
.search-container {
    position: relative;
    margin: 1rem 0;
}

.form-region-input, .form-city-input {
    width: 100%;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(255, 0, 110, 0.5);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-region-input:focus, .form-city-input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(255, 0, 110, 0.3),
        inset 0 0 20px rgba(255, 0, 110, 0.1);
}

.form-region-input::placeholder, .form-city-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Список предложений */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 32, 110, 0.85) rgba(255, 255, 255, 0.08);
}

.suggestions-list.active {
    display: block;
}

.suggestions-list::-webkit-scrollbar {
    width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 4px;
    opacity: 1;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
    transition: all 0.2s ease;
    color: #fff;
}

.suggestion-item:hover {
    background: rgba(255, 0, 110, 0.2);
    color: var(--neon-pink);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.missing-city-did-you-mean-modal {
    padding: 16px;
    z-index: 10050;
}

.missing-city-did-you-mean-content {
    max-width: 430px;
    width: min(92vw, 430px);
    padding: 24px;
    border-color: rgba(255, 0, 110, 0.78);
    background: rgba(26, 27, 50, 0.98);
}

.missing-city-did-you-mean-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.missing-city-did-you-mean-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 0, 110, 0.45);
}

.missing-city-did-you-mean-content h3 {
    margin: 0 36px 8px;
    color: var(--text-light);
    text-align: center;
    font-size: 1.25rem;
}

.missing-city-did-you-mean-content p {
    margin: 0 0 16px;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.45;
}

.missing-city-did-you-mean-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.missing-city-did-you-mean-option,
.missing-city-did-you-mean-force,
.missing-city-did-you-mean-cancel {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px 14px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.missing-city-did-you-mean-option {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.42);
}

.missing-city-did-you-mean-option small {
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 600;
}

.missing-city-did-you-mean-option:hover,
.missing-city-did-you-mean-force:hover,
.missing-city-did-you-mean-cancel:hover {
    transform: translateY(-1px);
}

.missing-city-did-you-mean-option:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.28);
}

.missing-city-did-you-mean-force {
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 10px 26px rgba(255, 0, 110, 0.28);
}

.missing-city-did-you-mean-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
}

/* Отображение выбранной локации */
.form-selected-location {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1) 0%,
        rgba(255, 0, 110, 0.1) 100%);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
}

/* Настройка локации при первом запуске */
.location-setup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem 2rem;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.setup-country-selection,
.setup-region-selection,
.setup-city-selection {
    margin: 1.5rem 0;
    animation: fadeIn 0.5s ease;
    width: 100% !important;
    max-width: 400px !important;
}

.setup-country-selection h3,
.setup-region-selection h3,
.setup-city-selection h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 217, 255, 0.3);
    text-align: center;
    font-weight: 600;
}

#locationSetup .location-setup-container {
    max-width: 430px !important;
    padding: 0.7rem 1rem 1.4rem !important;
}

#locationSetup .auto-location-section {
    margin-bottom: 8px;
}

#locationSetup .auto-location-section .neon-button {
    min-height: 44px;
    color: #ffffff;
    border-color: rgba(255, 0, 110, 0.72);
    background: linear-gradient(135deg, rgba(22, 28, 48, 0.92), rgba(54, 22, 58, 0.9));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), 0 0 18px rgba(255, 0, 110, 0.2);
}

#locationSetup .or-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 14px 0 6px;
    color: #f7fbff !important;
    opacity: 1;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.86);
}

#locationSetup .or-divider::before,
#locationSetup .or-divider::after {
    position: static;
    flex: 1 1 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34));
}

#locationSetup .or-divider::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent);
}

#locationSetup .setup-country-selection {
    margin: 0.8rem 0 1rem;
}

#locationSetup .setup-country-selection.country-dropdown-open {
    margin-bottom: min(46vh, 380px);
}

#locationSetup .setup-country-selection h3 {
    margin-bottom: 0.7rem;
    color: #ffffff !important;
    font-size: 1.08rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82), 0 0 14px rgba(0, 217, 255, 0.22);
}

#locationSetup .country-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(400px, 45vh);
    gap: 0.65rem;
    margin: 0;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 9, 23, 0.72);
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.28);
}

#locationSetup .country-btn {
    min-height: 44px;
    padding: 0.62rem 0.7rem;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(247, 250, 255, 0.1);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.78);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

#locationSetup .country-btn:hover {
    border-color: rgba(0, 217, 255, 0.68);
    background: rgba(0, 217, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 217, 255, 0.18);
    transform: translateY(-1px);
}

#locationSetup .country-btn.active {
    border-color: rgba(0, 217, 255, 0.9);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(255, 0, 110, 0.18));
    box-shadow: 0 0 22px rgba(0, 217, 255, 0.34), inset 0 0 18px rgba(0, 217, 255, 0.1);
}

#locationSetup .country-label {
    overflow: visible;
    text-overflow: unset;
}

#locationSetup .country-flag {
    width: 1.25rem;
    height: 0.88rem;
    flex-basis: 1.25rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 5px rgba(0, 0, 0, 0.36);
}

.setup-region-input,
.setup-city-input {
    width: 100%;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(255, 0, 110, 0.5);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.setup-region-input:focus,
.setup-city-input:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(255, 0, 110, 0.3),
        inset 0 0 20px rgba(255, 0, 110, 0.1);
}

.setup-selected-location {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1) 0%,
        rgba(255, 0, 110, 0.1) 100%);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.setup-selected-location .neon-button {
    width: fit-content;
    min-width: 160px;
    max-width: 100%;
    margin: 1rem auto 0;
}

.setup-location-text {
    color: var(--neon-cyan);
    font-weight: 500;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    display: block;
    margin-bottom: 1rem;
}

.reset-setup-location {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid rgba(255, 0, 110, 0.5);
    color: var(--neon-pink);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reset-setup-location:hover {
    background: rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

/* Отображение текущей локации в главном меню */
.user-location {
    margin-top: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.user-location:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: scale(1.02);
}

.location-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.location-info .app-icon {
    --app-icon-size: 1.25em;
}

/* Статистика по городу */
.city-stats-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    background: rgba(4, 7, 18, 0.74);
    border: 1px solid rgba(0, 217, 255, 0.52);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.city-stats-block div {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.75);
}

.city-stats-block b {
    color: #ffffff;
    font-weight: 800;
}

/* Счетчик посещений */
.site-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    --app-icon-size: 1.3rem;
    font-size: 1rem;
    filter:
        drop-shadow(0 0 4px var(--app-icon-glow, rgba(0, 217, 255, 0.78)))
        drop-shadow(0 1px 5px rgba(0, 0, 0, 0.55));
}

.main-daily-bonus-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    letter-spacing: 0;
    box-shadow: 0 2px 8px rgba(236,72,153,0.3);
    transition: opacity 0.2s;
}

.main-daily-bonus-button .app-icon {
    --app-icon-size: 1em;
}

.main-language-switcher {
    position: relative;
    width: 64px;
    min-height: 28px;
    z-index: 235;
}

.main-language-toggle,
.main-language-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.32);
    background:
        linear-gradient(135deg, rgba(9, 13, 34, 0.94), rgba(53, 17, 61, 0.88));
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    text-align: center;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.86);
    box-shadow:
        0 0 12px rgba(0, 217, 255, 0.16),
        0 0 18px rgba(255, 0, 110, 0.12),
        inset 0 0 10px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.main-language-toggle {
    width: 100%;
    height: 28px;
    border-radius: 999px;
    gap: 4px;
    padding: 0 8px;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.32), rgba(255, 0, 110, 0.42)),
        linear-gradient(135deg, rgba(9, 13, 34, 0.94), rgba(53, 17, 61, 0.88));
    border-color: rgba(255, 0, 110, 0.46);
    box-shadow:
        0 0 12px rgba(0, 217, 255, 0.28),
        0 0 14px rgba(255, 0, 110, 0.24),
        inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.main-language-toggle span {
    white-space: nowrap;
}

#mainLanguageCurrent,
.hamburger-language-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.main-language-flag {
    width: 1.05rem;
    height: 0.74rem;
    flex: 0 0 1.05rem;
}

.main-language-code {
    line-height: 1;
    white-space: nowrap;
}

.main-language-caret {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.86);
    transition: transform 0.18s ease;
}

.main-language-switcher.is-open .main-language-caret {
    transform: rotate(180deg);
}

.main-language-list {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 50px;
    padding: 4px;
    border: 1px solid rgba(0, 217, 255, 0.28);
    border-radius: 14px;
    background: rgba(6, 9, 28, 0.94);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.42),
        0 0 16px rgba(0, 217, 255, 0.18),
        inset 0 0 12px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.main-language-list[hidden] {
    display: none !important;
}

.main-language-option {
    width: 100%;
    height: 25px;
    border-radius: 10px;
    padding: 0;
}

.main-language-option:hover,
.main-language-option:focus-visible {
    border-color: rgba(255, 0, 110, 0.58);
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.24), rgba(255, 0, 110, 0.24)),
        rgba(13, 16, 42, 0.94);
}

.main-language-option[hidden] {
    display: none !important;
}

.main-language-toggle:focus-visible,
.main-language-option:focus-visible {
    outline: 2px solid rgba(0, 217, 255, 0.8);
    outline-offset: 2px;
}

#mainMenu .main-logo-wordmark {
    display: inline-block;
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: fit-content;
    max-width: 100%;
    margin: 5px auto 0;
    padding: 0 10px 2px;
    color: #fff;
    font-family: "AnonimkaWordmark", "Dancing Script", "Segoe Script", "Brush Script MT", cursive;
    font-size: 32px;
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #4ff5ff 22%,
        #00d9ff 38%,
        #ff4fcb 56%,
        #ff006e 74%,
        #fff4fb 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
    animation: main-logo-wordmark-flow 3s linear infinite;
    will-change: background-position;
}

#mainMenu .main-logo-wordmark::before {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -11px;
    height: 26px;
    z-index: -2;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center,
            rgba(1, 4, 18, 0.88) 0%,
            rgba(4, 8, 28, 0.7) 34%,
            rgba(0, 217, 255, 0.22) 55%,
            rgba(255, 0, 110, 0.16) 68%,
            transparent 82%);
    filter: blur(8px);
    pointer-events: none;
}

#mainMenu .main-logo-wordmark::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: -6px;
    height: 11px;
    z-index: -1;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 217, 255, 0.26) 42%,
            rgba(255, 0, 110, 0.18) 58%,
            transparent 78%);
    filter: blur(4px);
    pointer-events: none;
}

@keyframes main-logo-wordmark-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #mainMenu .main-logo-wordmark {
        animation: none;
        background-position: 50% 50%;
    }
}

.stat-value {
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.stat-divider {
    color: var(--text-gray);
    opacity: 0.5;
}

/* Третичная кнопка для смены города */
.neon-button.tertiary {
    background: linear-gradient(135deg,
        rgba(131, 56, 236, 0.2) 0%,
        rgba(0, 217, 255, 0.2) 100%);
    border: 2px solid rgba(131, 56, 236, 0.5);
    color: var(--neon-purple);
}

.neon-button.tertiary:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

/* Четвертичная кнопка для автоопределения */
.neon-button.quaternary {
    background: linear-gradient(135deg,
        rgba(0, 255, 136, 0.2) 0%,
        rgba(255, 0, 110, 0.2) 100%);
    border: 2px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.neon-button.quaternary:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

/* Текущая локация в форме */
.current-location {
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    text-align: center;
}

.current-location p {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.ad-geo-visible-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 500px);
    margin: -0.8rem auto 1.4rem;
    padding: 10px 12px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 10px;
    background: rgba(10, 10, 20, 0.45);
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.ad-geo-visible-toggle input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--neon-cyan);
}

.ad-geo-visible-toggle span {
    min-width: 0;
}

.change-location-btn {
    background: rgba(131, 56, 236, 0.2);
    border: 2px solid rgba(131, 56, 236, 0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.change-location-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}

.location-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-location-text {
    color: var(--neon-cyan);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.reset-form-location {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid rgba(255, 0, 110, 0.5);
    color: var(--neon-pink);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reset-form-location:hover {
    background: rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

/* Экран выбора способа определения локации */
.location-choice-container {
    max-width: 500px;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-choice-btn {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-light);
}

.location-choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-cyan);
    border-color: var(--neon-pink);
}

.location-choice-btn.manual {
    border-color: var(--neon-pink);
}

.location-choice-btn.manual:hover {
    box-shadow: 0 8px 20px var(--shadow-pink);
}

.choice-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.location-choice-btn h3 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
    color: var(--text-light);
}

.location-choice-btn p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

/* Автоматическое определение локации */
.auto-location-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.detection-animation {
    margin-bottom: 1.5rem;
}

.radar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.radar-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    animation: outer-glow 3s infinite ease-in-out;
}

@keyframes outer-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
    }
}

.radar-circle {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    opacity: 0;
    animation: radar-pulse 2.5s infinite ease-out;
}

.radar-circle:nth-child(1) {
    width: 55px;
    height: 55px;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.radar-circle:nth-child(2) {
    width: 95px;
    height: 95px;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.radar-circle:nth-child(3) {
    width: 135px;
    height: 135px;
    border-color: var(--neon-purple);
    box-shadow: 0 0 25px var(--neon-purple);
}

.radar-circle.delay-1 {
    animation-delay: 0.8s;
}

.radar-circle.delay-2 {
    animation-delay: 1.6s;
}

.radar-ping {
    position: relative;
    font-size: 2rem;
    z-index: 10;
    animation: ping-glow 2s infinite ease-in-out;
    background: radial-gradient(circle, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes ping-glow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px var(--neon-cyan)) drop-shadow(0 0 20px var(--neon-pink));
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        filter: drop-shadow(0 0 20px var(--neon-pink)) drop-shadow(0 0 30px var(--neon-cyan));
    }
}

.detection-text {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient 2s ease-in-out infinite, text-pulse 1.5s infinite ease-in-out;
    position: relative;
}

.detection-text::after {
    content: '...';
    position: absolute;
    right: -20px;
    animation: dots 1.5s infinite;
}

@keyframes text-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.pulse {
    animation: neon-pulse 2s infinite ease-in-out;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: var(--shadow-pink);
        transform: scale(1);
    }
    50% {
        text-shadow: var(--shadow-cyan);
        transform: scale(1.05);
    }
}

.auto-detection-status {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    border: 2px solid var(--neon-purple);
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    color: var(--neon-cyan);
}


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

.loading-animation p {
    color: var(--text-gray);
}

/* Результат определения локации */
.detection-result {
    background: linear-gradient(135deg, var(--bg-card), #2a2a3e);
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    animation: result-appear 0.8s ease-out;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.detection-result::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    border-radius: 15px;
    z-index: -1;
    animation: border-glow 3s infinite ease-in-out;
}

@keyframes result-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.detected-location, .detection-error {
    text-align: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon, .error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: icon-bounce 0.6s ease-out;
}

.success-icon {
    filter: drop-shadow(0 0 10px #00ff88);
}

.error-icon {
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

@keyframes icon-bounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.detected-location h3, .detection-error h3 {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    text-shadow: var(--shadow-cyan);
    font-size: 1.1rem;
}

.location-info {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 0.7rem;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.location-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.location-flag {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.location-text {
    text-shadow: none;
    font-weight: 600;
    color: var(--neon-cyan);
}

.detection-note {
    font-size: 0.9rem;
    color: #ffa500;
    margin: 0.5rem 0;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.detection-source {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.8;
    text-align: center;
    width: 100%;
}

.location-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: 1rem auto 0 auto;
    text-align: center;
    width: 100%;
}

.confirm-btn, .manual-btn {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(42, 42, 62, 0.9));
    border: 2px solid transparent;
    color: var(--text-light);
    padding: 0.7rem 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.85rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.confirm-btn {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.15));
    border: 2px solid #00ff88;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00cc6a, #00ff88);
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    animation: border-glow 2s ease-in-out infinite;
    opacity: 0.7;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 20px rgba(0, 255, 136, 1);
    border-color: #00ff88;
}

.manual-btn {
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.15), rgba(255, 100, 0, 0.15));
    border: 2px solid #ff8800;
    box-shadow:
        0 0 20px rgba(255, 136, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.6);
}

.manual-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff8800, #ff6600, #ff8800);
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    animation: border-glow 2.5s ease-in-out infinite;
    opacity: 0.7;
}

.manual-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(255, 136, 0, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 20px rgba(255, 136, 0, 1);
    border-color: #ff8800;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.confirm-btn::after, .manual-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.confirm-btn:hover::after, .manual-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Популярные локации */
.popular-locations {
    text-align: center;
}

.info-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: icon-bounce 0.6s ease-out;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.popular-locations h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: var(--shadow-cyan);
    font-size: 1.4rem;
}

.popular-locations p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.popular-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-option {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(42, 42, 62, 0.8));
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.location-option::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan), var(--neon-purple));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-option:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4);
}

.location-option:hover::before {
    opacity: 1;
}

.location-option.russia:hover {
    box-shadow: 0 5px 25px rgba(255, 0, 110, 0.4);
}

.location-option.russia:hover::before {
    background: linear-gradient(45deg, var(--neon-pink), #ff4081, var(--neon-pink));
}

.location-option.kazakhstan:hover {
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
}

.location-option.kazakhstan:hover::before {
    background: linear-gradient(45deg, #00ff88, #00cc6a, #00ff88);
}

.location-option .flag {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.location-details {
    text-align: left;
    flex: 1;
}

.location-details strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.location-details span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.manual-choice {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 0, 110, 0.2);
}

.manual-choice .manual-btn {
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--neon-purple);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* =============== ГАМБУРГЕР МЕНЮ =============== */

/* Кнопка гамбургер-меню */
.hamburger-menu {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Глобальная кнопка гамбургер-меню (показывается на всех страницах) */
.global-hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
    transition: all 0.3s ease;
}

.global-hamburger-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
    border-color: var(--neon-cyan);
}

.global-hamburger-menu .hamburger-line {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.global-hamburger-menu:hover .hamburger-line {
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

html.telegram-fullscreen .global-hamburger-menu {
    top: calc(20px + var(--telegram-main-controls-top));
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.hamburger-menu:hover .hamburger-line {
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.8);
    transform: scaleX(1.1);
}

/* Overlay меню */
.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10005; /* Выше всего, включая premium-toggle (999), онбординг (10000) и снежинок (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hamburger-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контент меню */
.hamburger-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    border-right: 2px solid var(--neon-pink);
    box-shadow:
        0 0 50px rgba(255, 0, 110, 0.3),
        inset 0 0 50px rgba(255, 0, 110, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger-overlay.active .hamburger-menu-content {
    transform: translateX(0);
}

/* Заголовок меню */
.hamburger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid rgba(255, 0, 110, 0.3);
    background: rgba(255, 0, 110, 0.1);
}

html.telegram-fullscreen .hamburger-header {
    padding-top: calc(1.2rem + var(--telegram-main-controls-top));
}

.hamburger-header h2 {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

.hamburger-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    color: var(--neon-pink);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-close:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
    transform: rotate(90deg);
}

/* Навигация */
.hamburger-nav {
    padding: 1rem 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
    scrollbar-gutter: stable;
}

.hamburger-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    flex: 0 0 auto;
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255, 0, 110, 0.1);
    border-left: 4px solid transparent;
    box-sizing: border-box;
    min-height: 52px;
    transition: color 0.2s ease, text-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hamburger-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
    z-index: 0;
    pointer-events: none;
}

.hamburger-item:hover::before,
.hamburger-item.active::before {
    transform: scaleX(1);
}

.hamburger-item > * {
    position: relative;
    z-index: 1;
}

.hamburger-item:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
    transform: none;
}

.hamburger-item.active {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
    border-left-color: var(--neon-pink);
}

.hamburger-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-left-color: transparent;
}

.hamburger-item.disabled::before {
    transform: scaleX(0);
}

.hamburger-item.disabled:hover {
    color: var(--text-light);
    text-shadow: none;
}

.hamburger-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.hamburger-icon svg {
    display: block;
    margin: 0 auto;
}

/* Android-специфичные элементы меню */
.android-only {
    display: none;
}

/* iOS-специфичные элементы меню */
.ios-only {
    display: none;
}

/* Скрыть для iOS */
.hide-on-ios {
    display: flex;
}

.non-android-only {
    display: flex;
}

/* Подменю настроек */
.hamburger-submenu {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--neon-purple);
    margin-left: 10px;
}

.hamburger-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex: 0 0 auto;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    min-height: 45px;
    box-sizing: border-box;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hamburger-subitem:hover {
    color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.1);
    transform: none;
}

.hamburger-subitem.danger {
    color: #ff6b6b;
}

.hamburger-subitem.danger:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff4444;
}

.hamburger-subitem-toggle {
    justify-content: space-between;
    gap: 10px;
}

.hamburger-subitem-select {
    justify-content: space-between;
    gap: 12px;
}

.hamburger-subitem-language {
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.hamburger-language-current {
    flex: 0 0 auto;
    min-width: 66px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 217, 255, 0.36);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(255, 0, 110, 0.18)),
        rgba(10, 12, 24, 0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.hamburger-subitem-label {
    flex: 1;
}

.hamburger-select {
    min-width: 116px;
    max-width: 148px;
    height: 34px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(0, 217, 255, 0.36);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(255, 0, 110, 0.1)),
        rgba(10, 12, 24, 0.92);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(135deg, rgba(0, 217, 255, 0.14), rgba(255, 0, 110, 0.1)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.9) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 18px) 14px,
        calc(100% - 12px) 14px;
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.hamburger-select:focus {
    border-color: rgba(0, 217, 255, 0.78);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.18), 0 0 18px rgba(0, 217, 255, 0.16);
}

.hamburger-select option {
    background: #10142a;
    color: #fff;
}

.language-modal {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 6, 18, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10050;
}

.language-modal-content {
    width: min(420px, 100%);
    max-height: min(82vh, 680px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 217, 255, 0.18), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(255, 0, 110, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(11, 15, 39, 0.98), rgba(22, 12, 45, 0.98));
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(0, 217, 255, 0.2),
        inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.language-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.language-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
}

.language-modal-header p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.35;
}

.language-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.language-modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.language-modal-option {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.language-modal-option:hover,
.language-modal-option:focus-visible {
    border-color: rgba(0, 217, 255, 0.55);
    background: rgba(0, 217, 255, 0.12);
    outline: none;
}

.language-modal-option.is-active {
    border-color: rgba(255, 0, 110, 0.66);
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(255, 0, 110, 0.2)),
        rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 16px rgba(255, 0, 110, 0.16);
}

.language-modal-flag {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 1.5rem;
    border-radius: 4px;
}

.language-modal-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.language-modal-code {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
}

.language-modal-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-modal-check {
    margin-left: auto;
    color: #00ff88;
    font-size: 1rem;
    font-weight: 900;
    opacity: 0;
}

.language-modal-option.is-active .language-modal-check {
    opacity: 1;
}

@media (max-width: 360px) {
    .language-modal-list {
        grid-template-columns: 1fr;
    }
}

.hamburger-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.hamburger-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hamburger-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.25s;
    border-radius: 999px;
}

.hamburger-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    transition: 0.25s;
    border-radius: 50%;
}

.hamburger-switch input:checked + .hamburger-slider {
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    border-color: rgba(0, 212, 255, 0.6);
}

.hamburger-switch input:checked + .hamburger-slider:before {
    transform: translateX(20px);
}

.hamburger-switch input:disabled + .hamburger-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.hamburger-subitem.disabled,
.hamburger-subitem-action.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-light);
    text-shadow: none;
}

.hamburger-subitem-note {
    padding: 0 15px 10px 44px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hamburger-subitem-status {
    margin-left: auto;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border: 1px solid rgba(0, 217, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
}

.hamburger-subitem-status.enabled {
    color: #77ff9d;
    border-color: rgba(119, 255, 157, 0.48);
    background: rgba(0, 255, 136, 0.12);
}

.hamburger-subitem-status.warning {
    color: #ffd05a;
    border-color: rgba(255, 208, 90, 0.42);
    background: rgba(255, 208, 90, 0.1);
}

.app-lock-status-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        ". status";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin: 12px 14px 0 44px;
    width: calc(100% - 58px);
    padding: 13px 12px 10px;
    min-height: 0;
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(255, 0, 110, 0.08)),
        rgba(10, 12, 24, 0.78);
    box-shadow: inset 0 0 18px rgba(0, 217, 255, 0.05);
}

.app-lock-status-row:hover {
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(255, 0, 110, 0.1)),
        rgba(10, 12, 24, 0.82);
    transform: none;
}

.app-lock-status-row .hamburger-icon {
    grid-area: icon;
    align-self: start;
    margin-top: 1px;
}

.app-lock-status-row .hamburger-subitem-label {
    grid-area: label;
}

.app-lock-status-row .hamburger-subitem-status {
    grid-area: status;
    justify-self: start;
    margin-left: 0;
    white-space: nowrap;
}

.app-lock-status-row .hamburger-subitem-label,
#biometricToggleContainer .hamburger-subitem-label {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.app-lock-actions {
    display: flex;
    gap: 8px;
    margin: 0 14px 0 44px;
    padding: 8px 12px 10px;
    border-left: 1px solid rgba(0, 217, 255, 0.22);
    border-right: 1px solid rgba(0, 217, 255, 0.22);
    background: rgba(10, 12, 24, 0.78);
}

.app-lock-actions .hamburger-subitem-action {
    margin: 0;
    width: auto;
    flex: 1;
    min-height: 42px;
    border-radius: 12px;
}

.app-lock-actions .app-lock-action-danger {
    border-color: rgba(255, 90, 120, 0.45);
    background: rgba(255, 0, 110, 0.1);
    color: #ff8cab;
}

.app-lock-actions .app-lock-action-danger:hover {
    border-color: rgba(255, 90, 120, 0.7);
    background: rgba(255, 0, 110, 0.18);
}

#biometricToggleContainer {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 46px;
    grid-template-areas:
        "icon label switch"
        "icon status switch";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin: 0 14px 0 44px;
    width: calc(100% - 58px);
    padding: 12px;
    min-height: 0;
    border-left: 1px solid rgba(0, 217, 255, 0.22);
    border-right: 1px solid rgba(0, 217, 255, 0.22);
    background: rgba(10, 12, 24, 0.78);
}

#biometricToggleContainer:hover {
    background: rgba(10, 12, 24, 0.84);
    transform: none;
}

#biometricToggleContainer .hamburger-icon {
    grid-area: icon;
    align-self: start;
    margin-top: 1px;
    justify-self: center;
}

#biometricToggleContainer .hamburger-subitem-label {
    grid-area: label;
    align-self: center;
}

#biometricToggleContainer .hamburger-subitem-status {
    grid-area: status;
    justify-self: start;
    align-self: start;
    max-width: 100%;
    margin-left: 0;
    white-space: nowrap;
    line-height: 1.12;
    padding: 3px 7px;
    font-size: 0.72rem;
}

#biometricToggleContainer .hamburger-switch {
    grid-area: switch;
    justify-self: end;
    align-self: center;
    margin-left: 0;
}

#appLockHint {
    margin: 0 14px 12px 44px;
    padding: 0 12px 13px;
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(10, 12, 24, 0.78);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.35;
}

#biometricSettingsButton {
    margin: 0 14px 0 44px;
    width: calc(100% - 58px);
    min-height: 42px;
    border: 0;
    border-top: 1px solid rgba(0, 217, 255, 0.14);
    border-left: 1px solid rgba(0, 217, 255, 0.22);
    border-right: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: 0;
    background: rgba(10, 12, 24, 0.78);
}

#biometricSettingsButton:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.32);
}

@media (max-width: 420px) {
    .app-lock-status-row,
    .app-lock-actions,
    #biometricToggleContainer,
    #biometricSettingsButton,
    #appLockHint {
        margin-left: 28px;
        width: calc(100% - 42px);
    }
}

.hamburger-subitem-action {
    margin: 0 15px 12px 44px;
    width: calc(100% - 59px);
    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.12);
    color: var(--neon-cyan);
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hamburger-subitem-action:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.75);
}

.hamburger-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.hamburger-arrow.open {
    transform: rotate(90deg);
}

.hamburger-item #notificationStatus {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hamburger-item:hover #notificationStatus {
    transform: none;
}

/* Кнопка выхода */
.logout-item {
    border-top: 2px solid rgba(255, 0, 110, 0.2);
    border-bottom: none;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(255, 50, 50, 0.05));
}

.logout-item:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.15), rgba(255, 50, 50, 0.15));
    color: #ff3232;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.6);
}

/* Информационные экраны */
.info-screen {
    padding: 20px;
}

.info-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#blockedUsers .info-content {
    max-width: 360px !important;
    width: 100% !important;
}

#blockedUsersContainer {
    width: 100%;
}

/* Контакты */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--bg-card), #2a2a3e);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#contacts .contact-item {
    position: relative;
    justify-content: center;
}

#contacts .contact-icon {
    position: absolute;
    left: 1rem;
}

#contacts .contact-details {
    box-sizing: border-box;
    width: 100%;
    padding: 0 2.8rem;
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0, 217, 255, 0.5);
}

.contact-item:active {
    transform: translateY(-2px) scale(0.98);
}

.contact-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.contact-details {
    flex-grow: 1;
}

.contact-details h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.contact-details p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Юридические ссылки */
.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-link {
    display: block;
    padding: 0.8rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--neon-cyan);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    margin-bottom: 0.2rem;
}

.contact-action {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-style: italic;
    opacity: 0.8;
}

/* Форма отправки письма */
.email-form-container {
    padding: 0.5rem;
}

.contact-form {
    background: linear-gradient(135deg, var(--bg-card), #2a2a3e);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.input-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.form-actions .neon-button {
    flex: 1;
}

.email-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.email-status.success {
    background: linear-gradient(135deg, #1a4d1a, #2d7a2d);
    border: 2px solid #00ff00;
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.email-status.error {
    background: linear-gradient(135deg, #4d1a1a, #7a2d2d);
    border: 2px solid #ff0040;
    color: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

.email-status.loading {
    background: linear-gradient(135deg, #1a1a4d, #2d2d7a);
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(131, 56, 236, 0.3);
}

.loading-spinner {
    display: block;
    width: 120px;
    height: 120px;
    background-image: url('images/loading.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 1rem auto;
}

/* Убираем вращение для loading-spinner */
.loading-spinner,
.loading-spinner * {
    animation: none !important;
    transform: none !important;
}

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

/* Правила и политика */
.rules-section,
.privacy-section,
.about-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-card), #2a2a3e);
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.3);
}

/* Интро для правил */
.rules-intro {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(131, 56, 236, 0.1);
    border-left: 3px solid var(--neon-purple);
    border-radius: 8px;
    font-size: 0.85rem;
}

.rules-section h3,
.privacy-section h3,
.about-section h3 {
    color: var(--neon-purple);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
    text-shadow: 0 0 10px rgba(131, 56, 236, 0.6);
    word-spacing: 0.2rem;
}

.rules-section h3:first-of-type {
    margin-top: 0;
}

/* Подзаголовки в правилах */
.rules-section h4 {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.rules-section p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

/* Примечания */
.rules-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 0.4rem;
    padding-left: 1rem;
}

.rules-section ul,
.about-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.8rem;
}

.rules-section li,
.about-section li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.rules-section li::before,
.about-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    text-shadow: 0 0 5px rgba(131, 56, 236, 0.8);
}

.privacy-section p,
.about-section p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

/* Интро для политики конфиденциальности */
.privacy-intro {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Списки в политике */
.privacy-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.8rem;
}

.privacy-section li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.privacy-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.privacy-section strong {
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Примечание в политике */
.privacy-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 0.6rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
}

/* Ссылка на email */
.email-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(131, 56, 236, 0.8);
}

/* О приложении */
.app-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-logo .logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 10px rgba(131, 56, 236, 0.5));
}

.app-logo .neon-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.app-logo h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

/* Модальное окно авторизации через Telegram */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    position: relative;
    z-index: 10001;
    background: #2a2a40;
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    max-width: 380px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(131, 56, 236, 0.5);
    animation: modalSlideIn 0.3s ease-out forwards;
    padding: 20px;
    opacity: 1;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(131, 56, 236, 0.3);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--neon-pink);
    background: rgba(255, 0, 255, 0.1);
    transform: rotate(90deg);
}

/* Кнопки подтверждения в модальном окне */
.confirm-buttons {
    display: flex !important;
    gap: 10px;
    padding: 0 20px 20px 20px;
}

#confirmYesBtn:hover,
#confirmNoBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 217, 255, 0.6);
}

#confirmNoBtn:hover {
    box-shadow: 0 5px 30px rgba(255, 0, 110, 0.6);
}

#confirmYesBtn:active,
#confirmNoBtn:active {
    transform: translateY(0);
}

.modal-body {
    padding: 25px;
}

/* Стили для модального окна жалобы */
#reportModal:not(.report-details-open) .modal-content {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 18px;
}

#reportModal:not(.report-details-open) .modal-body {
    max-height: none;
    overflow: visible;
    padding: 20px 25px 18px;
}

#reportModal:not(.report-details-open) .modal-header {
    padding: 16px 25px 18px;
}

#reportModal:not(.report-details-open) .modal-body > p {
    margin-bottom: 0.75rem !important;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.report-reason-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.report-reason-btn:hover {
    border-color: var(--neon-cyan);
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(0, 217, 255, 0.2));
    transform: translateX(3px);
}

.report-reason-btn.selected {
    border-color: var(--neon-pink);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.reason-icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.reason-text h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.reason-text p {
    color: var(--text-gray);
    font-size: 0.7rem;
    margin: 0;
}

.neon-button.danger-outline {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
}

.neon-button.danger-outline:hover {
    background: rgba(255, 0, 110, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.auth-warning {
    background: rgba(255, 153, 0, 0.1);
    border: 2px solid rgba(255, 153, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.auth-warning h3 {
    color: #ff9900;
    margin-bottom: 10px;
}

.auth-warning p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.auth-warning ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    text-align: left;
}

.auth-warning ul li {
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 153, 0, 0.2);
}

.auth-warning ul li:last-child {
    border-bottom: none;
}

.telegram-login-container {
    text-align: center;
}

.telegram-login-container h4 {
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.qr-instruction {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.qr-code-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    margin: 20px 0;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(131, 56, 236, 0.3);
}

#qrcode {
    display: block;
    text-align: center;
}

/* QRCode.js создаёт canvas внутри, показываем только его */
#qrcode canvas {
    border-radius: 10px;
    display: inline-block !important;
}

/* Скрываем дублирующийся img который библиотека создаёт рядом с canvas */
#qrcode > img {
    display: none !important;
}

.qr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.qr-loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid rgba(131, 56, 236, 0.2);
    border-top: 4px solid var(--neon-purple);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-loading p {
    color: var(--neon-purple);
    font-weight: bold;
}

.or-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(131, 56, 236, 0.3);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-divider span {
    background: var(--bg-card);
    padding: 0 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

#telegramLoginWidget {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    margin: 20px 0;
}

.telegram-login-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e9 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-login-button:hover {
    background: linear-gradient(135deg, #0077b3 0%, #0090d0 100%);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
}

.telegram-login-button svg {
    width: 20px;
    height: 20px;
}

.login-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Детали анкеты */
.ad-full {
    padding: 20px 0;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(131, 56, 236, 0.3);
}

.ad-header h3 {
    color: var(--neon-purple);
    margin: 0;
    font-size: 1.5rem;
}

.ad-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.ad-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(131, 56, 236, 0.1);
    border: 1px solid rgba(131, 56, 236, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(131, 56, 236, 0.15);
    border-color: rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

.info-item .icon {
    font-size: 1.8rem;
}

.info-item .label {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.info-item .value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.ad-description {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), rgba(255, 0, 255, 0.05));
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.ad-description h4 {
    color: var(--neon-pink);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ad-description p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Компактное отображение информации */
.ad-info-compact {
    background: rgba(131, 56, 236, 0.08);
    border: 1px solid rgba(131, 56, 236, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.info-row {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid rgba(131, 56, 236, 0.1);
}

.info-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Новый компактный дизайн карточки анкеты */
.ad-details-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(8, 8, 18, 0.42), rgba(26, 26, 46, 0.34));
    border: 1px solid rgba(0, 217, 255, 0.32);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ad-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(131, 56, 236, 0.2);
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-icon {
    font-size: 1.3rem;
}

.location-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.ad-date-badge {
    background: rgba(131, 56, 236, 0.2);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(131, 56, 236, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

/* Фото в детальном просмотре */
.ad-details-photos {
    margin-bottom: 20px;
}

.ad-main-photo {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.ad-photo-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
}

.ad-photo-thumbnail-small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

.ad-photo-thumbnail-small:hover {
    border-color: var(--neon-cyan);
    transform: scale(1.05);
}

.ad-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.25), rgba(131, 56, 236, 0.25));
    border: 2px solid rgba(0, 217, 255, 0.4);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(131, 56, 236, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(131, 56, 236, 0.4);
}

.author-details {
    flex: 1;
}

.author-name {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.author-params {
    color: var(--text-light);
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.author-last-seen {
    font-size: 0.8rem;
    color: #6cc070;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(108, 192, 112, 0.12);
    border-radius: 6px;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.ad-search-info {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.25), rgba(131, 56, 236, 0.25));
    border: 2px solid rgba(255, 0, 255, 0.4);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.search-title {
    color: var(--neon-pink);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.search-params {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.param-item {
    display: flex;
    align-items: flex-start; /* Fix align to top when wrapped */
    flex-wrap: wrap; /* Fix: allow long text to wrap */
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.param-icon {
    font-size: 1.2rem;
}

.ad-description-box {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.25), rgba(255, 0, 255, 0.25));
    border: 2px solid rgba(131, 56, 236, 0.4);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.description-title {
    color: var(--neon-purple);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.description-text {
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
}

.version {
    color: var(--text-gray);
    font-size: 0.85rem;
    opacity: 0.7;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2rem;
}

/* Текущая локация на экране просмотра анкет */
.current-location-display {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: center;
}

/* Компактная строка локации */
.current-location-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: rgba(0, 217, 255, 0.08);
    border-radius: 20px;
}

#browseAds .current-location-compact {
    flex-wrap: wrap;
}

.current-location-compact .location-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.current-location-compact .location-value {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#browseAds .current-location-compact .location-value {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#browseAds .current-location-compact .change-location-btn {
    flex: 0 1 auto;
    max-width: min(190px, 100%);
    padding: 7px 10px;
    font-size: clamp(0.72rem, 2.6vw, 0.86rem);
    text-align: center;
}

/* Стиль удален - конфликтовал с основным .change-location-btn */

.location-label {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    opacity: 0.7;
}

.location-value {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.neon-button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Секция автоопределения локации */
.auto-location-section {
    margin-bottom: 20px;
    text-align: center;
    width: 100% !important;
    max-width: 400px !important;
}

.or-divider {
    color: var(--text-gray);
    margin: 12px 0;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Кнопка удаления анкеты в списке "Мои анкеты" */
.delete-ad-btn {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 100, 100, 0.2));
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.delete-ad-btn:hover {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Кнопка поднятия анкеты */
.boost-ad-btn {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 150, 255, 0.2));
    border: 2px solid rgba(0, 200, 255, 0.5);
    color: #00c8ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.boost-ad-btn:hover {
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    transform: scale(1.05);
}

/* Кнопка закрепления анкеты */
.pin-ad-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.pin-ad-btn:hover {
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

/* Индикатор закрепленного анкеты */
.pinned-badge {
    position: absolute;
    top: -16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #000;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), 0 0 15px rgba(255, 215, 0, 0.5);
    z-index: 5;
    max-width: min(240px, calc(100% - 36px));
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

@media (max-width: 480px) {
    .ad-card.is-pinned,
    .profile-card.is-pinned {
        margin-top: 16px;
    }

    .pinned-badge {
        top: -14px;
        right: 14px;
        padding: 6px 12px;
        font-size: 0.72rem;
        max-width: min(132px, calc(100% - 28px));
    }
}

/* PRO бейдж - только звёздочка */
.pro-badge {
    display: inline-block;
    font-size: 0.95rem;
    margin-left: 4px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
    vertical-align: middle;
}

.ad-card .pro-badge,
.profile-card .pro-badge,
.ad-author-row .pro-badge,
.profile-author-row .pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-left: 6px;
    padding: 0;
    border-radius: 999px;
    line-height: 1;
    overflow: visible;
    vertical-align: -3px;
    background: linear-gradient(135deg, #ff00aa 0%, #7c3cff 55%, #ffd700 100%);
    color: #fffbe6;
    box-shadow: 0 0 8px rgba(255, 0, 170, 0.55), 0 0 10px rgba(255, 215, 0, 0.45);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.9);
    filter: none;
    box-sizing: border-box;
}

/* Элегантная золотая подсветка для PRO объявлений */
.ad-card.premium-ad {
    background-color: #1b1b2a;
    background-image:
        linear-gradient(135deg, rgba(255, 215, 0, 0.10), rgba(255, 165, 0, 0.06)),
        linear-gradient(135deg, #151521, #262636);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 0 7px rgba(255, 215, 0, 0.22),
        0 0 14px rgba(255, 215, 0, 0.12),
        0 0 20px rgba(255, 215, 0, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.2);
    /* Статичный золотой flow без постоянной анимации, чтобы не тормозил скролл. */
    animation: none;
}

@keyframes premiumGlow {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow:
            0 0 8px rgba(255, 215, 0, 0.25),
            0 0 16px rgba(255, 215, 0, 0.15),
            0 0 24px rgba(255, 215, 0, 0.1),
            0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.7);
        box-shadow:
            0 0 12px rgba(255, 215, 0, 0.35),
            0 0 24px rgba(255, 215, 0, 0.25),
            0 0 36px rgba(255, 215, 0, 0.15),
            0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

.ad-card.premium-ad:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.25),
        0 0 45px rgba(255, 215, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* ===== ТОП-3 АНКЕТЫ ПО ЛАЙКАМ ===== */

/* 🥇 ТОП-1 - Красная/розовая неоновая подсветка */
.ad-card.top-1 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(255, 50, 100, 0.6);
    box-shadow:
        0 0 10px rgba(255, 50, 100, 0.35),
        0 0 20px rgba(255, 50, 100, 0.2),
        0 0 32px rgba(255, 50, 100, 0.12);
}

/* Пульс через opacity на псевдоэлементе — без repaint */
.ad-card.top-1::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(255, 50, 100, 0.5);
    animation: topGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
    will-change: opacity;
    z-index: 0;
}

/* 🥈 ТОП-2 - Золотая/янтарная подсветка */
.ad-card.top-2 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(255, 170, 50, 0.5);
    box-shadow:
        0 0 10px rgba(255, 170, 50, 0.28),
        0 0 20px rgba(255, 170, 50, 0.16),
        0 0 32px rgba(255, 170, 50, 0.1);
}

.ad-card.top-2::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(255, 170, 50, 0.4);
    animation: topGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
    will-change: opacity;
    z-index: 0;
}

/* 🥉 ТОП-3 - Изумрудная/зелёная подсветка */
.ad-card.top-3 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(50, 205, 100, 0.45);
    box-shadow:
        0 0 10px rgba(50, 205, 100, 0.22),
        0 0 20px rgba(50, 205, 100, 0.14),
        0 0 32px rgba(50, 205, 100, 0.08);
}

.ad-card.top-3::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(50, 205, 100, 0.35);
    animation: topGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
    will-change: opacity;
    z-index: 0;
}

/* Единый keyframe для всех топ-карточек — только opacity, без repaint */
@keyframes topGlowPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* Бейдж ТОП - на верхнем краю рамки */
.top-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    z-index: 5;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ad-card.top-1 .top-badge {
    background: linear-gradient(135deg, rgba(255, 0, 60, 1), rgba(200, 0, 50, 1));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.8);
    border: 2px solid rgba(255, 100, 120, 0.5);
}

.ad-card.top-2 .top-badge {
    background: linear-gradient(135deg, rgba(255, 140, 0, 1), rgba(200, 100, 0, 1));
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
    border: 2px solid rgba(255, 180, 100, 0.5);
}

.ad-card.top-3 .top-badge {
    background: linear-gradient(135deg, rgba(0, 200, 80, 1), rgba(0, 150, 60, 1));
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 200, 80, 0.6);
    border: 2px solid rgba(100, 230, 150, 0.5);
}

/* ===== КНОПКА ЛАЙКА И НАПИСАТЬ ===== */

.ad-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    box-sizing: border-box;
    overflow: visible;
}

/* Счётчик просмотров */
.view-count {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.view-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.views-number {
    font-weight: 500;
}

.ad-likes-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-share-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.32);
    background: rgba(0, 212, 255, 0.08);
    color: var(--neon-cyan);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-share-icon,
.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-share-icon svg {
    width: 17px;
    height: 17px;
}

.profile-share-btn:hover {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(0, 212, 255, 0.7);
    background: rgba(0, 212, 255, 0.16);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.28);
}

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

.profile-share-details-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(131, 56, 236, 0.18)) !important;
    border: 1px solid rgba(0, 212, 255, 0.45) !important;
    color: var(--neon-cyan) !important;
}

.profile-share-details-btn .share-btn-icon svg {
    width: 18px;
    height: 18px;
}

html.vk-mini-app .profile-share-btn,
html.vk-mini-app .profile-share-details-btn,
html.vk-mini-app #shareAdDetailsBtn,
html.vk-mini-app #adShareModal {
    display: none !important;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1) 0%, rgba(0, 150, 255, 0.15) 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.contact-btn.contact-write-cta {
    position: relative;
    isolation: isolate;
    color: #ffe8a6;
    background: linear-gradient(135deg, rgba(255, 190, 60, 0.13) 0%, rgba(255, 145, 25, 0.2) 100%);
    border-color: rgba(255, 210, 92, 0.9);
    box-shadow: 0 0 12px rgba(255, 204, 64, 0.42), 0 0 24px rgba(255, 166, 0, 0.24), inset 0 0 9px rgba(255, 220, 130, 0.1);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.contact-btn.contact-write-cta::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 220, 130, 0.52) 0%, rgba(255, 188, 70, 0.3) 38%, rgba(255, 166, 0, 0.1) 72%, rgba(255, 166, 0, 0) 100%);
    opacity: 0.3;
    transform: scale(1);
    filter: blur(6px);
    /* На карточках кнопок много, поэтому отключаем постоянную анимацию в idle. */
    animation: none;
}

.contact-btn.contact-write-cta > * {
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2) 0%, rgba(0, 150, 255, 0.25) 100%);
    border-color: rgba(0, 200, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.contact-btn.contact-write-cta:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 14px rgba(255, 210, 92, 0.55), 0 0 30px rgba(255, 166, 0, 0.32), inset 0 0 12px rgba(255, 230, 150, 0.14);
}

.contact-btn:active {
    transform: scale(0.95);
}

.contact-btn.contact-write-cta .contact-icon {
    animation: none;
}

.contact-btn.contact-write-cta .contact-text {
    color: #ffe8a6;
    animation: none;
}

.contact-icon {
    font-size: 0.85rem;
}

.contact-text {
    font-size: 0.7rem;
    font-weight: 500;
}

.profile-share-modal-content {
    width: min(92vw, 420px);
    padding: 0;
    overflow: hidden;
}

.profile-share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-share-preview {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(255, 0, 110, 0.07));
}

.profile-share-preview-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.12);
    color: var(--neon-cyan);
}

.profile-share-preview-icon svg {
    width: 22px;
    height: 22px;
}

.profile-share-preview-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.profile-share-preview-text {
    color: var(--text-gray);
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 3px;
}

.profile-share-url {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: break-all;
}

.profile-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-share-actions button {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-share-actions button:hover {
    transform: translateY(-1px);
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.58);
}

.profile-share-actions .profile-share-copy {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.74), rgba(131, 56, 236, 0.72));
    border-color: rgba(255, 0, 110, 0.5);
}

.profile-share-actions-vk {
    grid-template-columns: 1fr;
}

html.vk-mini-app #contactsPaymentBlock {
    display: none !important;
}

/* Кнопка удаления анкеты (для своих анкет) */
.delete-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.1) 0%, rgba(200, 0, 0, 0.15) 100%);
    border: 1px solid rgba(255, 60, 60, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    color: #ff5555;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.delete-btn:hover {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.2) 0%, rgba(200, 0, 0, 0.25) 100%);
    border-color: rgba(255, 60, 60, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.3);
}

.delete-btn:active {
    transform: scale(0.95);
}

.delete-icon {
    font-size: 0.85rem;
}

.delete-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Кнопка генерации текста анкеты */
.generate-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(9, 10, 24, 0.96) 0%, rgba(34, 18, 52, 0.94) 100%);
    border: 1px solid rgba(0, 217, 255, 0.58);
    border-radius: 20px;
    color: #f8fbff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), 0 0 14px rgba(0, 217, 255, 0.16);
    transition: all 0.3s ease;
}

.generate-text-btn:hover {
    background: linear-gradient(135deg, rgba(16, 18, 38, 0.98) 0%, rgba(58, 24, 78, 0.96) 100%);
    border-color: rgba(255, 0, 255, 0.68);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), 0 0 18px rgba(255, 0, 255, 0.28);
    transform: scale(1.02);
}

.generate-text-btn:active {
    transform: scale(0.98);
}

.generate-text-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.like-btn:hover {
    background: rgba(255, 70, 100, 0.15);
    border-color: rgba(255, 70, 100, 0.4);
    transform: scale(1.05);
}

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

.like-btn.liked {
    background: rgba(255, 70, 100, 0.2);
    border-color: rgba(255, 70, 100, 0.5);
}

.like-btn.liked .like-icon {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.likes-count {
    font-size: 0.7rem;
    color: var(--text-gray);
    min-width: 12px;
}

.like-btn.liked .likes-count {
    color: #ff4664;
    font-weight: 600;
}

/* Анимация +1 при лайке */
.like-plus-one {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4664;
    text-shadow: 0 0 10px rgba(255, 70, 100, 0.8);
    animation: plusOneFloat 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes plusOneFloat {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(1.5);
    }
}

/* Летящее сердечко */
.flying-heart {
    position: absolute;
    top: 0;
    left: 50%;
    font-size: 1rem;
    animation: heartFlyToCounter 0.7s ease-in forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes heartFlyToCounter {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateX(0) translateY(0) scale(0.5);
    }
}

/* Анимация +1 от других пользователей */
.like-plus-one.incoming {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.9);
    animation: incomingLikeFloat 1s ease-out forwards;
}

@keyframes incomingLikeFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-25px) scale(1);
    }
}

/* Пульсация кнопки при получении лайка */
.like-btn.like-pulse {
    animation: likePulse 0.5s ease;
}

@keyframes likePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Анимация обновления счётчика */
.likes-count.count-update {
    animation: countBounce 0.5s ease;
    color: #00ff88 !important;
}

@keyframes countBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Анимация появления новой анкеты */
.ad-card.ad-new-animation {
    animation: slideInNew 0.5s ease-out;
}

@keyframes slideInNew {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация изменения ТОП-позиции */
.ad-card.top-rank-up {
    animation: rankUpPulse 1s ease-out;
}

.ad-card.top-rank-down {
    animation: rankDownPulse 0.8s ease-out;
}

@keyframes rankUpPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.7);
    }
    40% {
        box-shadow: 0 0 30px 15px rgba(0, 255, 100, 0.4);
    }
    100% {
        box-shadow: none;
    }
}

@keyframes rankDownPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Уведомление об изменении ранга */
.rank-change-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 100;
    animation: rankNoticeAppear 1.5s ease-out forwards;
    pointer-events: none;
}

.rank-change-notice.up {
    background: linear-gradient(135deg, rgba(0, 200, 100, 0.95), rgba(0, 150, 80, 0.95));
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 25px rgba(0, 255, 100, 0.6);
}

@keyframes rankNoticeAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

/* ===== СТИЛИ ДЛЯ ЧАТОВ ===== */

/* Вкладки чатов */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 10px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(16, 16, 32, 0.6));
    border: 2px solid rgba(255, 0, 110, 0.2);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    border-color: var(--neon-pink);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    border-color: var(--neon-pink);
    color: var(--text-light);
    box-shadow: var(--shadow-pink);
}

.tab-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.tab-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tab-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--neon-pink);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tab-btn.active .tab-badge {
    background: var(--neon-cyan);
}

/* Контент вкладок */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Контейнер чатов */
.chats-container {
    padding: 10px 0;
}

.chats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chats-list > .loading-spinner {
    width: min(100%, 300px);
    height: auto;
    min-height: 0;
    margin: 22px auto 0;
    padding: 18px 20px 20px;
    background: rgba(10, 10, 20, 0.78);
    background-image: none;
    border: 1px solid rgba(0, 217, 255, 0.32);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 217, 255, 0.12);
    backdrop-filter: blur(8px);
}

.chats-list > .loading-spinner .spinner {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
}

.chats-list > .loading-spinner p {
    margin: 0;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Карточка чата */
.chat-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 32, 0.9));
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-card:hover {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-pink);
    transform: translateY(-2px);
}

.chat-card.is-typing {
    border-color: rgba(0, 217, 255, 0.55);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.18);
}

.chat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(131, 56, 236, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-card:hover::before {
    opacity: 1;
}

.chat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-ad-id {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.unread-badge {
    background: var(--neon-pink);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
    }
    50% {
        box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.pulse-icon {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

.pulse-gift {
    animation: pulse-icon 2s ease-in-out infinite;
}

.referral-button {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
    animation: pulse 2s ease-in-out infinite;
    font-weight: 600;
}

.referral-button:hover {
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.8);
    transform: translateY(-2px);
}

.chat-preview {
    font-size: 0.9rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.chat-preview-typing {
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.45);
}

/* Онлайн-статус в чатах */
.chat-online-status {
    padding: 2px 0;
    font-size: 0.75rem;
}

.online-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.online-status.online {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.online-status.recently {
    color: #ffbb00;
    text-shadow: 0 0 6px rgba(255, 187, 0, 0.3);
}

.online-status.away {
    color: var(--text-gray);
}

.online-status.offline {
    color: rgba(255, 255, 255, 0.35);
}

.chat-unread-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-pink);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Карточка запроса на чат */
.chat-request-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 32, 0.9));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.chat-request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(131, 56, 236, 0.05));
    opacity: 1;
    pointer-events: none;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.request-ad-id {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

.request-time {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.request-message {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.chat-custom-quick-reply {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 2px 0 13px;
    position: relative;
    z-index: 1;
}

.chat-custom-quick-reply-input {
    min-width: 0;
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(0, 217, 255, 0.38);
    border-radius: 10px;
    background: rgba(5, 12, 24, 0.72);
    color: var(--text-light);
    font-size: 0.88rem;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.08);
}

.chat-custom-quick-reply-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.24), inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.chat-custom-quick-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.chat-custom-quick-reply-send {
    width: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(0, 217, 255, 0.55);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(131, 56, 236, 0.28));
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.16);
}

.chat-custom-quick-reply-send:disabled,
.chat-custom-quick-reply-input:disabled {
    opacity: 0.55;
    cursor: wait;
}

.request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.request-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.request-btn-accept {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.request-btn-accept:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

.request-btn-reject,
.request-btn-decline {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.request-btn-reject:hover,
.request-btn-decline:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: var(--shadow-pink);
    text-shadow: none;
}

.request-btn-profile {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}
.request-btn-profile:hover {
    background: var(--neon-purple);
    color: #fff;
}

.sender-identity-badge {
    font-size: 0.78rem;
    color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    margin: 4px 0 2px 0;
    display: inline-block;
}

/* PRO запросы - подсветка золотом */
.chat-request-card.pro-request {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(40, 35, 20, 0.9), rgba(30, 26, 16, 0.9));
}

.chat-request-card.pro-request::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 170, 0, 0.08));
}

/* Исходящие запросы - синий акцент */
.chat-request-card.outgoing-request {
    border-color: rgba(100, 149, 237, 0.5);
    background: linear-gradient(135deg, rgba(25, 30, 45, 0.9), rgba(18, 22, 36, 0.9));
}

.chat-request-card.outgoing-request::before {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.08), rgba(70, 130, 220, 0.08));
}

.request-ad-info {
    font-size: 0.8rem;
    color: #888;
    margin: 4px 0;
}

.request-last-seen {
    font-size: 0.75rem;
    color: #6cc070;
    margin: 2px 0 6px 0;
    padding: 3px 8px;
    background: rgba(108, 192, 112, 0.1);
    border-radius: 6px;
    display: inline-block;
}

.request-status {
    font-size: 0.85rem;
    color: #ffa500;
    margin: 8px 0;
    padding: 6px 12px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.outgoing-message {
    font-style: italic;
    color: #a0a0b0;
}

.request-btn-cancel {
    background: linear-gradient(135deg, #444, #333) !important;
    color: #ff6666 !important;
    border: 1px solid rgba(255, 100, 100, 0.3) !important;
}

.request-btn-cancel:hover {
    background: linear-gradient(135deg, #553333, #442222) !important;
}

/* PRO значок */
.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: proPulse 2s ease-in-out infinite;
}

@keyframes proPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* Экран чата */
.chat-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(16, 16, 32, 0.95));
    border-bottom: 2px solid var(--border-glow);
    padding: calc(8px + var(--safe-area-top)) 12px 8px !important;
    margin-bottom: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    min-height: calc(44px + var(--safe-area-top));
}

#chatView.screen.active > .chat-header {
    position: fixed !important;
    top: var(--chat-viewport-top-inset, 0px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
    width: 100% !important;
    max-width: 768px !important;
    margin: 0 !important;
    will-change: top, transform;
    -webkit-transform: translate3d(-50%, 0, 0) !important;
}

html.chat-ios-viewport.chat-keyboard-open #chatView.screen.active > .chat-header,
html.chat-ios-viewport.chat-keyboard-open #chatView.screen.active > .chat-input-container {
    transform: translate3d(-50%, 0, 0) !important;
    -webkit-transform: translate3d(-50%, 0, 0) !important;
    will-change: top, bottom, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

html.chat-native-ios-shell #chatView.screen.active > .chat-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100% !important;
    max-width: none !important;
    will-change: auto;
}

html.chat-native-ios-shell #chatView.screen.active > .chat-input-container {
    position: absolute !important;
    left: var(--chat-input-side-gap) !important;
    right: var(--chat-input-side-gap) !important;
    bottom: calc(var(--chat-safe-bottom-extra, 0px) + var(--chat-input-float-gap)) !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: auto !important;
    max-width: none !important;
    will-change: auto;
}

html.android-webview:not(.telegram-webapp) #chatView.screen {
    --safe-area-top: 0px;
}

html.telegram-webapp #chatView.screen {
    --safe-area-top: max(var(--device-safe-area-top), var(--telegram-safe-area-top), var(--telegram-main-controls-top));
}

.header h2 {
    margin-left: 0;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Кнопка FAQ для Мир чата */
.world-chat-faq-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-chat-faq-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.world-chat-faq-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Стили для FAQ модального окна */
.modal-content.world-chat-faq-content {
    --world-chat-faq-text-size: 13px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-content.world-chat-faq-content.world-chat-faq-text-medium {
    --world-chat-faq-text-size: 15px;
}

.modal-content.world-chat-faq-content.world-chat-faq-text-large {
    --world-chat-faq-text-size: 17px;
}

.world-chat-faq-content .world-chat-faq-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 42, 64, 0.94);
    border: 1px solid rgba(255, 0, 110, 0.45);
    border-radius: 50%;
    line-height: 1;
    color: var(--text-light);
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.world-chat-faq-size-toggle {
    position: absolute;
    top: 12px;
    right: 58px;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 42, 64, 0.94);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.65);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.world-chat-faq-size-toggle:hover,
.world-chat-faq-size-toggle.is-active {
    border-color: rgba(255, 0, 110, 0.65);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.world-chat-faq-size-toggle:active {
    transform: scale(0.94);
}

.world-chat-faq-content h2 {
    flex: 0 0 auto;
    padding-right: 104px;
    min-height: 38px;
    line-height: 1.25;
}

.world-chat-faq-text {
    font-size: var(--world-chat-faq-text-size) !important;
    line-height: 1.55;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    padding-bottom: 12px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 32, 110, 0.9) rgba(255, 255, 255, 0.08);
}

.world-chat-faq-text::-webkit-scrollbar {
    width: 8px;
}

.world-chat-faq-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.world-chat-faq-text::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 999px;
    opacity: 1;
}

.world-chat-faq-text::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
}

.world-chat-faq-text p {
    font-size: var(--world-chat-faq-text-size) !important;
    margin-bottom: 10px;
}

.world-chat-faq-text ul {
    font-size: var(--world-chat-faq-text-size) !important;
    margin-left: 15px;
    margin-bottom: 10px;
}

.world-chat-faq-text li {
    font-size: var(--world-chat-faq-text-size) !important;
    margin-bottom: 5px;
}

.world-chat-faq-text strong {
    font-size: var(--world-chat-faq-text-size) !important;
    color: var(--neon-cyan);
}

.world-chat-faq-icon,
.world-chat-faq-tab,
.world-chat-faq-prefix,
.world-chat-faq-menu-chip,
.world-chat-faq-send-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.world-chat-faq-icon {
    min-width: 18px;
    height: 18px;
    margin-right: 5px;
    padding: 0 4px;
    border: 1px solid rgba(0, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.08);
    color: var(--neon-cyan);
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}

.world-chat-faq-icon.world,
.world-chat-faq-icon.tabs,
.world-chat-faq-icon.send,
.world-chat-faq-icon.font,
.world-chat-faq-icon.profile,
.world-chat-faq-icon.example,
.world-chat-faq-icon.tip {
    color: var(--neon-cyan);
}

.world-chat-faq-icon.private {
    border-color: rgba(255, 0, 110, 0.65);
    background: rgba(255, 0, 110, 0.12);
    color: #ff5cad;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.7);
}

.world-chat-faq-icon.rules {
    border-color: rgba(255, 170, 0, 0.7);
    background: rgba(255, 170, 0, 0.12);
    color: #ffaa00;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.55);
}

.world-chat-faq-tab {
    min-width: 42px;
    margin: 0 4px 2px 0;
    padding: 1px 6px;
    border-radius: 7px;
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}

.world-chat-faq-tab.world,
.world-chat-faq-prefix.world {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.45);
}

.world-chat-faq-tab.city,
.world-chat-faq-prefix.city {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.45);
}

.world-chat-faq-tab.private,
.world-chat-faq-prefix.private {
    color: #ff5cad;
    background: rgba(255, 0, 110, 0.12);
    border: 1px solid rgba(255, 0, 110, 0.45);
}

.world-chat-faq-prefix {
    min-width: 18px;
    height: 18px;
    margin: 0 2px;
    border-radius: 50%;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1;
}

.world-chat-faq-menu-chip {
    padding: 1px 7px;
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 7px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan) !important;
    font-size: 10px !important;
    line-height: 1.35;
}

.world-chat-faq-star {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin: 0 2px;
    vertical-align: -0.05em;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.65));
}

.world-chat-faq-send-arrow {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: #ffffff;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1;
}

.chat-font-size-btn {
    position: absolute;
    right: 45px;
    top: calc(10px + var(--safe-area-top));
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    z-index: 101;
    line-height: 1;
}

.chat-font-size-btn:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.chat-menu-btn {
    position: absolute;
    right: 8px;
    top: calc(10px + var(--safe-area-top));
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    z-index: 101;
    line-height: 1;
}

.chat-menu-btn:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.chat-menu-dropdown {
    position: absolute;
    right: 15px;
    top: calc(50px + var(--safe-area-top));
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 32, 0.98));
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    z-index: 200;
    min-width: 250px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-menu-item {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.chat-menu-item:last-child {
    border-bottom: none;
}

.chat-menu-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-cyan);
}

.chat-menu-item.danger {
    color: var(--neon-pink);
}

.chat-menu-item.danger:hover {
    background: rgba(255, 0, 255, 0.1);
}

.chat-menu-item.warning {
    color: #ffaa00;
}

.chat-menu-item.warning:hover {
    background: rgba(255, 170, 0, 0.15);
}

/* Модальное окно справки по чату */
.chat-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.chat-help-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 32, 0.98));
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.chat-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 1), rgba(16, 16, 32, 1));
    border-radius: 16px 16px 0 0;
}

.chat-help-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

.chat-help-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 0, 255, 0.2);
    color: var(--neon-pink);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-help-close:hover {
    background: rgba(255, 0, 255, 0.4);
    transform: scale(1.1);
}

.chat-help-body {
    padding: 12px 16px;
}

.chat-help-item {
    display: block;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-color);
}

.chat-help-item:last-child {
    margin-bottom: 0;
}

.block-warning {
    background: linear-gradient(135deg, rgba(255, 0, 100, 0.25), rgba(255, 0, 255, 0.25));
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    color: var(--neon-pink);
    font-weight: bold;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 150;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--neon-pink);
    }
    50% {
        box-shadow: 0 0 20px var(--neon-pink);
    }
}

/* Заблокированные пользователи */
.blocked-user-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 32, 0.9));
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.blocked-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.blocked-user-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.blocked-user-details {
    flex: 1;
}

.blocked-user-name {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.blocked-user-date {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.unblock-btn {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.unblock-btn:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-pink);
    transform: rotate(90deg);
}

.neon-button.small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.chat-info {
    flex: 1;
    text-align: center;
    margin-left: 0;
}

.chat-info h2 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.1;
}

.chat-subtitle {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-top: 1px;
    line-height: 1.1;
}

.view-ad-link {
    color: var(--neon-pink);
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.view-ad-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Контейнер сообщений */
.chat-messages-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    padding: calc(var(--chat-header-height, 92px) + 5px) 15px calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 12px) 15px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    box-sizing: border-box;
}

html.chat-typing-visible #chatView.screen.active > .chat-messages-container {
    padding-bottom: calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 56px);
}

html.chat-typing-visible.chat-reply-preview-visible #chatView.screen.active > .chat-messages-container {
    padding-bottom: calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 118px);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.chat-typing-host {
    position: fixed;
    left: 50%;
    bottom: calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 8px);
    transform: translateX(-50%);
    z-index: 98;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    max-width: 768px;
    min-height: 0;
    padding: 0 calc(var(--chat-input-side-gap) + 8px);
    box-sizing: border-box;
    background: transparent;
    pointer-events: none;
}

html.chat-reply-preview-visible .chat-typing-host {
    bottom: calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 70px);
    z-index: 101;
}

/* Разделитель даты между сообщениями (как в Telegram) */
.chat-date-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    user-select: none;
    pointer-events: none;
}

.chat-date-separator span {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 16px;
    letter-spacing: 0.2px;
}

/* Сообщение */
.message {
    box-sizing: border-box;
    max-width: min(75%, calc(100% - 24px));
    min-width: 0;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    animation: messageSlideIn 0.3s ease;
    transition: transform 0.2s ease, background 0.3s ease;
    touch-action: pan-y;
    cursor: pointer;
    user-select: none;
    overflow-wrap: anywhere;
}

.message.has-media,
.message:has(.message-photo),
.message:has(.message-photo-secure),
.message:has(video) {
    max-width: min(86%, 340px, calc(100% - 24px));
    padding: 8px;
    overflow: hidden;
}

.chat-messages.is-virtualized .message {
    animation: none !important;
    opacity: 1 !important;
}

html.chat-native-ios-shell #chatView .message {
    animation: none !important;
    transition: none !important;
}

.typing-indicator {
    align-self: flex-start;
    display: none;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 75%;
    margin: 1px 0 2px;
    padding: 8px 12px;
    border-radius: 14px 14px 14px 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(0, 217, 255, 0.08));
    border: 1px solid rgba(0, 217, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    animation: messageSlideIn 0.2s ease;
    user-select: none;
    pointer-events: none;
}

.typing-indicator.has-draft-preview {
    max-width: min(92%, 560px);
}

.typing-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
    animation: typingPulse 1.1s ease-in-out infinite;
    flex: 0 0 auto;
}

.typing-text {
    min-width: 72px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.typing-indicator.has-draft-preview .typing-text {
    min-width: 0;
}

@keyframes typingPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

/* Подсветка при скролле к сообщению */
.message.highlight {
    animation: highlightPulse 1s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        background: inherit;
    }
    50% {
        background: rgba(0, 217, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Реакция на сообщение */
.message-reaction {
    position: absolute;
    bottom: -8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
    animation: reactionPop 0.3s ease;
    z-index: 1;
}

.message-reaction-emoji {
    font-size: 14px;
    line-height: 1;
}

.message-reaction-count {
    font-size: 11px;
    color: var(--neon-cyan);
    font-weight: 500;
}

@keyframes reactionPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Меню выбора реакций */
.reaction-picker {
    position: fixed;
    background: rgba(20, 20, 30, 0.98);
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    gap: 4px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
    animation: pickerSlideIn 0.2s ease;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 90vw;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
}

.reaction-picker::-webkit-scrollbar {
    height: 4px;
}

.reaction-picker::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.reaction-picker::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 2px;
}

@keyframes pickerSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reaction-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.reaction-option:hover {
    background: rgba(0, 217, 255, 0.3);
    border-color: var(--neon-cyan);
    transform: scale(1.2);
}

.reaction-option:active {
    transform: scale(0.95);
}

/* Кнопки действий в меню реакций */
.reaction-picker-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.reaction-picker-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    color: var(--neon-cyan);
    font-size: 11px;
    gap: 4px;
}

.reaction-picker-action:hover {
    background: rgba(0, 217, 255, 0.3);
    border-color: var(--neon-cyan);
}

.reaction-picker-action:active {
    transform: scale(0.95);
}

.reaction-picker-action-icon {
    font-size: 18px;
}

.reaction-picker-action.delete {
    color: #ff4757;
}

.reaction-picker-action.delete:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

/* Мое сообщение */
.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 3px;
}

.message.is-pending-send {
    opacity: 0.84;
}

.message.is-failed-send {
    opacity: 0.9;
    filter: saturate(0.85);
}

/* Полученное сообщение */
.message.received {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 1px solid var(--border-glow);
    color: var(--text-light);
    border-bottom-left-radius: 3px;
}

.message-text {
    margin-bottom: 3px;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-photo {
    display: block;
    max-width: min(320px, 100%, calc(100vw - 72px)) !important;
    width: auto;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 0 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-drag: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Защищенное фото в сообщении */
.message-photo-secure {
    display: block;
    max-width: min(320px, 100%, calc(100vw - 72px)) !important;
    width: auto;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 0 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-size: cover; /* Заполняем квадрат без черных полей */
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none; /* Блокирует меню при долгом нажатии на iOS/Telegram */
    -webkit-user-drag: none;
    user-drag: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .message-photo:hover,
    .message-photo-secure:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
    }
}

.message-photo-secure:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.message-voice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(190px, 100%);
    max-width: min(270px, 100%, calc(100vw - 72px));
    padding: 3px 0 5px;
}

.voice-play-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    flex: 0 0 auto;
}

.voice-play-button:disabled {
    cursor: default;
    opacity: 0.55;
}

.message.received .voice-play-button {
    color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.12);
}

.voice-play-button svg {
    width: 19px;
    height: 19px;
}

.voice-play-button.is-playing .voice-play-icon {
    display: none;
}

.voice-play-button:not(.is-playing) .voice-pause-icon {
    display: none;
}

.voice-body {
    flex: 1;
    min-width: 0;
}

.message-voice.is-uploading {
    opacity: 0.82;
}

.voice-waveform {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    align-items: center;
    gap: 2px;
    height: 22px;
}

.voice-waveform span {
    display: block;
    width: 2px;
    min-height: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.72);
}

.message.received .voice-waveform span {
    background: rgba(0, 217, 255, 0.75);
}

.voice-duration {
    display: block;
    margin-top: 1px;
    min-width: 72px;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

.voice-duration.is-playing-time {
    opacity: 0.95;
}

/* Старый класс для обратной совместимости */
.secure-photo {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.secure-photo::selection {
    background: transparent;
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.6;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 2px;
}

/* Статусы сообщений (галочки) */
.message-status {
    font-size: 0.75rem;
    line-height: 1;
    display: inline-block;
    margin-left: 3px;
}

.message-status.sent {
    /* Одна серая галочка - отправлено */
    color: #888;
    opacity: 0.7;
}

.message-status.delivered {
    /* Две серые галочки - доставлено */
    color: #888;
    opacity: 0.8;
}

.message-status.read {
    /* Две неоновые галочки - прочитано */
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    opacity: 1;
    animation: neon-pulse 2s ease-in-out infinite;
}

.message-send-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1;
    margin-left: 3px;
    white-space: nowrap;
}

.message-send-state.failed {
    color: #ffb3c4;
}

.message-retry-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.message-failed-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4d6d;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.message-send-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: inline-block;
    animation: voiceSendSpin 0.75s linear infinite;
}

/* Nickname над сообщениями */
.message-nickname {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 3px var(--neon-cyan);
    margin-bottom: 3px;
    font-weight: 500;
    opacity: 0.85;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 0 0 8px var(--neon-cyan);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 12px var(--neon-cyan), 0 0 20px var(--neon-cyan);
        opacity: 0.9;
    }
}

/* Превью ответа на сообщение */
.reply-preview {
    position: fixed;
    bottom: calc(var(--chat-input-height) + var(--chat-input-float-gap) + var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + 8px);
    left: 50%;
    right: auto;
    transform: translate3d(-50%, 0, 0);
    width: min(calc(100vw - (var(--chat-input-side-gap) * 2)), 744px);
    max-width: calc(100vw - (var(--chat-input-side-gap) * 2));
    background: linear-gradient(135deg, rgba(20, 20, 34, 0.78), rgba(10, 10, 22, 0.62));
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 217, 255, 0.18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    animation: replyPreviewSlideUp 0.2s ease;
    box-sizing: border-box;
}

@keyframes replyPreviewSlideUp {
    from {
        opacity: 0;
        transform: translate3d(-50%, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
}

.reply-preview-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.reply-preview-header {
    font-size: 12px;
    color: var(--neon-cyan);
    margin-bottom: 2px;
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#replyToNickname {
    display: inline-block;
    max-width: calc(100% - 46px);
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-preview-text {
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-preview-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reply-preview-close:hover {
    color: var(--neon-red);
}

/* Индикатор ответа в сообщениях */
.message-reply-indicator {
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.message-reply-indicator:hover {
    background: rgba(0, 0, 0, 0.5);
}

.reply-indicator-line {
    width: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    flex-shrink: 0;
}

.reply-indicator-content {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.reply-indicator-header {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 2px;
    text-transform: lowercase;
}

.reply-indicator-name {
    color: var(--neon-cyan);
    font-weight: 600;
}

.reply-indicator-nickname {
    font-size: 10px;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 1px;
    opacity: 0.9;
}

.reply-indicator-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Старые классы для совместимости */
.reply-nickname {
    display: none;
}

.reply-text {
    display: none;
}

/* Размеры шрифта для сообщений в чате */
.chat-messages.font-small .message {
    font-size: 13px;
}

.chat-messages.font-medium .message {
    font-size: 15px;
}

.chat-messages.font-large .message {
    font-size: 18px;
}

/* Контейнер ввода */
.chat-input-container {
    position: fixed;
    bottom: calc(var(--chat-vk-bottom-inset) + var(--chat-safe-bottom-extra, env(safe-area-inset-bottom, 0px)) + var(--chat-input-float-gap));
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: calc(100% - (var(--chat-input-side-gap) * 2));
    max-width: 744px;
    background: linear-gradient(135deg, rgba(20, 20, 34, 0.72), rgba(10, 10, 22, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 0, 110, 0.22);
    border-radius: 28px;
    padding: 7px 8px;
    display: flex;
    gap: 8px;
    z-index: 100;
    flex-wrap: nowrap;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 0, 110, 0.2);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    will-change: bottom, transform;
}

.attach-photo-button {
    background: rgba(0, 217, 255, 0.14);
    border: 1px solid rgba(0, 217, 255, 0.8);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.attach-photo-button:hover {
    background: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transform: scale(1.05);
}

.attach-photo-button:active {
    transform: scale(0.95);
}

.chat-tool-icon,
.chat-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: currentColor;
}

.chat-tool-icon svg,
.chat-action-icon svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-preview {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    flex-shrink: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo-button {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 0, 110, 0.9);
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.remove-photo-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

.chat-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    background: rgba(10, 10, 22, 0.44);
    border: 1px solid rgba(255, 0, 110, 0.35);
    border-radius: 22px;
    padding: 10px 16px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.voice-recording-bar {
    --voice-cancel-progress: 0;
    flex: 1;
    min-width: 0;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    border-radius: 22px;
    background: rgba(255, 0, 110, 0.12);
    border: 1px solid rgba(255, 0, 110, 0.42);
    color: #fff;
    box-shadow: inset 0 0 18px rgba(255, 0, 110, 0.14);
    overflow: hidden;
    transform: translateX(calc(var(--voice-cancel-progress) * -10px));
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.voice-recording-bar[hidden] {
    display: none;
}

.voice-lock-target {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 8px);
    width: 42px;
    height: 86px;
    border-radius: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(11, 13, 27, 0.7);
    border: 1px solid rgba(0, 217, 255, 0.38);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), inset 0 0 18px rgba(0, 217, 255, 0.1);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    pointer-events: none;
    z-index: 2;
}

.voice-lock-target[hidden] {
    display: none;
}

.voice-lock-target::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    opacity: 0.58;
    transform: translateX(-50%) rotate(45deg);
}

.voice-lock-target-icon,
.voice-lock-status,
.voice-gesture-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.voice-lock-target-icon {
    width: 21px;
    height: 21px;
}

.voice-lock-target-icon svg,
.voice-lock-status svg,
.voice-gesture-trash svg,
.voice-cancel-button svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-gesture-trash {
    width: 0;
    height: 24px;
    color: #ff5c91;
    opacity: 0;
    transform: translateX(-12px) scale(0.72);
    transition: width 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.voice-recording-bar.is-cancel-gesture .voice-gesture-trash {
    width: 24px;
    opacity: 1;
    transform: translateX(0) scale(calc(0.78 + (var(--voice-cancel-progress) * 0.22)));
}

.voice-recording-bar.is-cancel-ready {
    border-color: rgba(255, 75, 125, 0.85);
    background: rgba(255, 0, 86, 0.2);
}

.chat-input-container.is-voice-lock-ready .voice-lock-target {
    color: #00e1ff;
    border-color: rgba(0, 217, 255, 0.82);
    box-shadow: 0 0 26px rgba(0, 217, 255, 0.38), inset 0 0 20px rgba(0, 217, 255, 0.16);
}

.voice-recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2d72;
    box-shadow: 0 0 12px rgba(255, 45, 114, 0.85);
    animation: voiceRecordingPulse 1s ease-in-out infinite;
    flex: 0 0 auto;
}

.voice-recording-timer {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
}

.voice-recording-hint {
    min-width: 0;
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-recording-bar.is-cancel-ready .voice-recording-hint {
    color: #fff;
}

.voice-lock-status {
    width: 21px;
    height: 21px;
    color: #00e1ff;
}

.voice-lock-status[hidden] {
    display: none;
}

.voice-cancel-button {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.chat-input-container.is-voice-recording-locked .voice-cancel-button {
    opacity: 1;
    pointer-events: auto;
}

.voice-cancel-button:hover {
    background: rgba(255, 45, 114, 0.32);
}

.voice-cancel-button:active {
    transform: scale(0.92);
}

.chat-input-container.is-recording-voice .chat-input,
.chat-input-container.is-recording-voice .attach-photo-button,
.chat-input-container.is-recording-voice .photo-preview {
    display: none !important;
}

@keyframes voiceRecordingPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.86);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

.send-button {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(131, 56, 236, 0.5);
    -webkit-tap-highlight-color: transparent;
}

.send-button[data-mode="mic"],
.send-button[data-mode="recording"],
.send-button[data-mode="sendingVoice"] {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.send-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.send-button:hover {
    box-shadow: 0 0 20px var(--neon-purple), 0 0 30px var(--neon-pink);
    transform: scale(1.1);
}

.send-button:hover .send-icon {
    transform: translateX(2px) translateY(-2px) rotate(-15deg);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.send-button[data-mode="mic"] {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.92), rgba(131, 56, 236, 0.94));
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.38);
}

.send-button[data-mode="recording"] {
    background: linear-gradient(135deg, #ff2d72, #8338ec);
    box-shadow: 0 0 18px rgba(255, 45, 114, 0.5);
}

.send-button[data-mode="sendingVoice"] {
    background: linear-gradient(135deg, #00d9ff, #8338ec);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.45);
}

.voice-send-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: voiceSendSpin 0.75s linear infinite;
}

.send-button[data-mode="recording"] .send-icon,
.send-button[data-mode="sendingVoice"] .send-icon,
.send-button[data-mode="mic"]:hover .send-icon {
    transform: none;
}

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

/* Кнопка Мои чаты */
.chat-button {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(255, 0, 110, 0.2));
    border-color: var(--neon-purple);
    position: relative;
}

.chat-button:hover {
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
}

/* Счетчик новых запросов */
.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.5);
    animation: pulse 2s infinite;
}

/* Badge непрочитанных на отдельных чатах */
.chat-unread-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.5);
    animation: pulse 2s infinite;
}

.limit-badge {
    position: absolute;
    bottom: 6px;
    right: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    white-space: normal;
    line-height: 1.2;
    min-width: 50px;
    pointer-events: none;
}

.limit-badge.warning {
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.limit-badge.danger {
    color: #ff006e;
    border-color: #ff006e;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 0, 110, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 0, 110, 0.8);
    }
}

/* Плейсхолдер загрузки */
.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.loading-placeholder .neon-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Пустой список чатов */
.empty-chats {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-chats .neon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-chats h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.empty-chats p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============= МОДАЛЬНОЕ ОКНО ДЛЯ анкет ============= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 32, 0.98));
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border-glow);
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Прокрутка в модалке */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Детальный просмотр анкеты */
.ad-detail-view {
    color: var(--text-light);
}

.ad-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.ad-detail-header h3 {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin: 0;
    flex: 1;
}

.ad-price {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
}

.ad-photo {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-glow);
}

.ad-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ad-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.ad-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
}

.meta-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--text-light);
    font-weight: 500;
}

/* Спиннер загрузки в модалке */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner .spinner {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background-image: url('/webapp/images/loading.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Сброс стилей от базового .spinner */
    border: none;
    border-radius: 0;
    animation: none;
}

/* Убираем старую анимацию */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 10px;
}

.step9-photo-item.is-deleting {
    cursor: wait !important;
    opacity: 0.78;
    transform: none !important;
}

.step9-photo-item.is-deleting img {
    filter: brightness(0.48) saturate(0.75);
}

.step9-photo-item [data-step9-photo-delete="true"] {
    z-index: 12;
}

.step9-photo-item.is-deleting [data-step9-photo-delete="true"] {
    cursor: wait !important;
    opacity: 0.45;
    pointer-events: none;
}

.step9-photo-delete-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(3, 6, 16, 0.74);
    color: #ffffff;
    text-align: center;
    pointer-events: all;
    backdrop-filter: blur(2px);
}

.step9-photo-delete-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.24);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.28);
}

.step9-photo-delete-text {
    max-width: 78px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Пустое состояние в модалке */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state .neon-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.empty-state p {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#blockedUsers .empty-state {
    width: 100%;
    max-width: min(360px, calc(100vw - 36px));
    margin: 34px auto 0;
    padding: 30px 22px;
    background: rgba(4, 7, 18, 0.76);
    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), 0 0 18px rgba(0, 217, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#blockedUsers .empty-state .neon-icon {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.28));
}

#blockedUsers .empty-state h3 {
    color: #ffffff;
    font-weight: 800;
}

#blockedUsers .empty-state p {
    color: #f8fbff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.7);
}

.profiles-empty-state {
    width: min(520px, calc(100vw - 32px));
    margin: 28px auto;
    padding: 28px 22px;
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 12px;
    background: rgba(10, 10, 24, 0.78);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.16);
    visibility: visible !important;
    opacity: 1 !important;
}

.profiles-empty-state .neon-button {
    margin-top: 14px;
}

.guests-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 217, 255, 0.22);
}

.guests-empty-state--compact {
    padding: 30px 20px;
}

.guests-empty-state--hero {
    padding-top: 42px;
}

.guests-empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
}

.guests-empty-state h3 {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.3rem;
    font-weight: 800;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(255, 255, 255, 0.22);
}

.guests-empty-state p {
    max-width: 320px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.35;
    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(0, 217, 255, 0.16);
}

/* ============= PREMIUM ПЕРЕКЛЮЧАТЕЛЬ ============= */

.premium-toggle {
    display: flex;
    gap: 2px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 3px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.premium-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-gray);
    position: relative;
}

.premium-btn.active.free {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(255, 0, 110, 0.3));
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(131, 56, 236, 0.5);
    text-shadow: 0 0 8px var(--neon-purple);
}

.premium-btn.active.pro {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.8), 0 0 30px rgba(131, 56, 236, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: premium-glow 2s ease-in-out infinite;
}

@keyframes premium-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 110, 0.8), 0 0 30px rgba(131, 56, 236, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 110, 1), 0 0 50px rgba(131, 56, 236, 0.8);
    }
}

.premium-btn:not(.active):hover {
    color: var(--text-light);
    transform: scale(1.05);
}

/* ============= PREMIUM МОДАЛЬНОЕ ОКНО ============= */

#premiumModal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 12px 0;
}

.premium-modal {
    max-width: 560px;
    width: 94vw;
    width: min(94vw, 560px);
    height: 86vh;
    height: min(calc(var(--premium-visual-height, 86vh) - 24px), 760px);
    max-height: calc(var(--premium-visual-height, 100vh) - 24px);
    overflow: hidden; /* Убираем внешний скролл */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 !important;
}

.premium-modal .modal-header {
    flex-shrink: 0;
    padding: 16px 20px;
}

.premium-modal .modal-header h2 {
    margin: 0;
}

.premium-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto; /* Скролл только внутри body */
    overflow-x: hidden;
    padding: 14px 16px 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

@supports (height: 100dvh) {
    .premium-modal {
        height: min(calc(var(--premium-visual-height, 86dvh) - 24px), 760px);
        max-height: calc(var(--premium-visual-height, 100dvh) - 24px);
    }
}

/* Переключатель валют удален - валюта определяется автоматически */

.pricing-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 6px 4px;
    max-width: 100%;
}

/* На широких экранах показываем 2 колонки */
@media (min-width: 600px) {
    .pricing-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 32, 0.8));
    border: 2px solid var(--border-glow);
    border-radius: 9px;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(131, 56, 236, 0.4);
}

.pricing-card.featured {
    border-color: var(--neon-pink);
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), rgba(255, 0, 110, 0.1));
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.premium-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 0, 110, 0.5);
    animation: pulse 2s infinite;
}

.pricing-header {
    text-align: center;
    margin-bottom: 10px;
}

.pricing-header h3 {
    font-size: 1.08rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 4px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin: 6px 0;
}

.price-amount {
    font-size: 1.55rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 0.9rem;
    color: var(--neon-pink);
}

.price-period {
    color: var(--text-gray);
    font-size: 0.7rem;
}

.pricing-features {
    margin: 8px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.disabled {
    opacity: 0.5;
}

.feature-item.disabled .feature-text {
    text-decoration: line-through;
    color: var(--text-gray);
}

.feature-icon {
    font-size: 0.88rem;
    min-width: 16px;
}

.feature-text {
    color: var(--text-light);
    font-size: 0.71rem;
    line-height: 1.12;
}

.pricing-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(255, 0, 110, 0.3));
    color: var(--text-light);
    border: 2px solid var(--border-glow);
}

.pricing-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.5);
}

.pricing-btn.premium {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    box-shadow: 0 3px 15px rgba(255, 0, 110, 0.5);
}

.pricing-btn.premium:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.8);
    transform: scale(1.04);
}

.pricing-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Premium значок в запросах */
.chat-request-card .pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
    animation: neon-pulse 2s ease-in-out infinite;
}

/* ============= МОДАЛЬНОЕ ОКНО ДЛЯ ПРОСМОТРА ФОТО ============= */

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Защищенное модальное изображение через DIV с background */
.photo-modal-image-secure {
    width: 90vw;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Для плавного зума */
    transform-origin: center center;
    will-change: transform;
    touch-action: none;
}

/* Старый стиль для совместимости */
.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.5);
    object-fit: contain;
}

.photo-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 0, 110, 0.9);
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
    z-index: 2001;
}

.photo-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
}

.photo-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Меню выбора источника фото */
.photo-source-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.photo-source-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.photo-source-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -5px 30px rgba(0, 217, 255, 0.3);
    border-top: 2px solid var(--neon-cyan);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.source-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.source-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

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

.source-btn.cancel {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
    margin-bottom: 0;
}

.source-btn.cancel:hover {
    background: rgba(255, 0, 110, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}


/* ===== ONBOARDING СТИЛИ УДАЛЕНЫ (функционал отключен) ===== */


/* ===== STICKY NOTE BETA NOTICE ===== */
.sticky-note {
    display: none;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

.onboarding-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0;
}

.onboarding-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.onboarding-title {
    text-align: center;
    font-size: 32px;
    color: #ff006e; /* fallback if gradient-clip unsupported */
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.onboarding-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 40px;
}

.onboarding-card {
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: var(--shadow-cyan);
}

.onboarding-step {
    margin-bottom: 30px;
}

.onboarding-step:last-of-type {
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.onboarding-step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-description {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.nickname-input-group {
    position: relative;
}

.onboarding-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.onboarding-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.nickname-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.nickname-status.available {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid #00ff64;
    color: #00ff64;
    display: block;
}

.nickname-status.taken {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0040;
    color: #ff0040;
    display: block;
}

.nickname-status.checking {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    display: block;
}

.onboarding-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.onboarding-checkbox:hover {
    background: rgba(0, 0, 0, 0.3);
}

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

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--neon-cyan);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.onboarding-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
}

.onboarding-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-label {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-cyan);
}

.onboarding-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.onboarding-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
}

/* ==================== COMPACT ONBOARDING STYLES ==================== */

.onboarding-logo-compact {
    text-align: center;
    margin-bottom: 20px;
}

.onboarding-logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.onboarding-title-compact {
    text-align: center;
    font-size: 26px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.onboarding-subtitle-compact {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 25px;
}

.onboarding-card-compact {
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 18px;
    padding: 20px 16px;
    box-shadow: var(--shadow-cyan);
}

.onboarding-step-compact {
    margin-bottom: 20px;
}

.onboarding-step-compact:last-of-type {
    margin-bottom: 16px;
}

.onboarding-step-compact h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.step-description-compact {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 12px;
}

.onboarding-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 110, 0.3);
    position: relative;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content h2 {
    color: var(--neon-pink);
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-text {
    color: #fff;
    line-height: 1.8;
    font-size: 15px;
}

.modal-text p {
    margin-bottom: 15px;
}

.modal-text strong {
    color: var(--neon-cyan);
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-text li {
    margin-bottom: 8px;
}

/* ==================== WORLD CHAT STYLES ==================== */

/* Кнопка Мир чат в главном меню */
.world-chat-button {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 8px 12px;
    justify-content: flex-start;
    /* Наследуем стиль от neon-button */
    background: linear-gradient(45deg, var(--bg-card), #2a2a3e) !important;
    border: 2px solid var(--neon-pink) !important;
    position: relative;
}

.world-chat-button .icon {
    --app-icon-size: 1.85em;
    flex-shrink: 0;
}

.world-chat-content {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
}

.world-chat-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    text-align: left;
}

.world-chat-preview {
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.world-chat-preview-emoji,
.world-chat-message-emoji {
    width: 1em;
    height: 1em;
    display: inline-block;
    margin: 0 1px;
    vertical-align: -0.15em;
}

.world-chat-reply-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff7b00, #ff006e);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.45);
    animation: pulse 2s infinite;
}

/* Фиксированный футер Мир чата */
#worldChatScreen {
    --world-chat-footer-height-fallback: 98px;
    --world-chat-footer-gap: 10px;
}

.world-chat-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

/* Вкладки Мир чата - компактные над полем ввода */
.world-chat-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px 4px 12px;
    background: transparent;
    justify-content: center;
    align-items: center;
}

.world-chat-tab {
    flex: 0 1 auto;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.world-chat-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.world-chat-tab.active {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Кнопка размера шрифта */
.world-chat-font-size-btn {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    min-width: 35px;
}

.world-chat-font-size-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-cyan);
}

.world-chat-font-size-btn:active {
    transform: scale(0.95);
}

/* Контейнер сообщений */
.world-chat-messages-container {
    position: fixed;
    top: calc(60px + var(--safe-area-top)); /* Высота header + Telegram fullscreen inset */
    bottom: 0; /* До самого низа */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    padding-bottom: calc(var(--world-chat-footer-height, var(--world-chat-footer-height-fallback)) + var(--world-chat-footer-gap));
    background: rgba(0, 0, 0, 0.2);
    scroll-behavior: smooth;
}

html.telegram-fullscreen #swipeScreen.screen > .screen-header {
    padding-top: calc(8px + var(--telegram-main-controls-top)) !important;
    min-height: calc(52px + var(--telegram-main-controls-top)) !important;
}

.world-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

/* Спиннер загрузки в мир-чате */
.world-chat-messages .loading-spinner {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.world-chat-messages .loading-spinner .spinner {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background-image: url('/webapp/images/loading.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

.world-chat-messages .loading-spinner p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 10px;
}

/* Сообщение в чате */
.world-chat-message {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid;
    overflow: visible;
    white-space: normal;
}

.world-chat-message.world-type {
    border-left-color: #FFD700;
}

.world-chat-message.city-type {
    border-left-color: #00D9FF;
}

.world-chat-message.private-type {
    border-left-color: #FF006E;
}

/* Заголовок сообщения (никнейм + время) */
.world-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    gap: 8px;
}

/* Никнейм в сообщении */
.world-chat-nickname {
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 1;
}

.world-chat-nickname:hover {
    opacity: 0.8;
}

/* Цвета никнеймов */
.world-chat-nickname.world-type {
    color: #FFD700;
}

.world-chat-nickname.world-type.premium {
    color: #FFA500; /* Оранжевый для PRO */
}

.world-chat-nickname.city-type {
    color: #00D9FF;
}

.world-chat-nickname.city-type.premium {
    color: #00FF64; /* Зеленый для PRO */
}

.world-chat-nickname.private-type {
    color: #FF006E;
}

/* Админ - красный цвет с приоритетом */
.world-chat-nickname.admin {
    color: #FF3333 !important;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

/* Бейдж админа */
.world-chat-admin-badge {
    font-size: 12px;
    margin-right: 2px;
}

/* Звездочка PRO */
.world-chat-pro-badge {
    color: #FFD700;
    font-size: 12px;
}

/* Текст сообщения */
.world-chat-text {
    font-size: 13px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
}

/* Размеры шрифта */
.world-chat-messages.font-small .world-chat-text {
    font-size: 11px;
}

.world-chat-messages.font-small .world-chat-nickname {
    font-size: 11px;
}

.world-chat-messages.font-medium .world-chat-text {
    font-size: 13px;
}

.world-chat-messages.font-medium .world-chat-nickname {
    font-size: 13px;
}

.world-chat-messages.font-large .world-chat-text {
    font-size: 16px;
}

.world-chat-messages.font-large .world-chat-nickname {
    font-size: 15px;
}

/* Цвета текста по типу */
.world-chat-message.world-type .world-chat-text {
    color: #FFD700;
}

.world-chat-message.city-type .world-chat-text {
    color: #00D9FF;
}

.world-chat-message.private-type .world-chat-text {
    color: #FF006E;
}

/* Сообщения админа - красный текст с приоритетом */
.world-chat-message.admin-message .world-chat-text {
    color: #FF3333 !important;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
}

/* Время сообщения */
.world-chat-time {
    font-size: 10px;
    color: var(--text-gray);
    flex-shrink: 0;
    white-space: nowrap;
}

.world-chat-reply-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px 8px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
}

.world-chat-reply-preview-content {
    flex: 1;
    min-width: 0;
}

.world-chat-reply-preview-header {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2px;
}

.world-chat-reply-preview-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.world-chat-reply-preview-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-chat-reply-preview-close:hover {
    color: var(--neon-red);
}

.world-chat-private-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px 10px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 0, 110, 0.4);
    border-radius: 10px;
    background: rgba(255, 0, 110, 0.12);
}

.world-chat-private-chip-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.world-chat-private-chip-nickname {
    font-size: 12px;
    color: #ffd6e7;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.world-chat-private-chip-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.world-chat-private-chip-close:hover {
    color: #ff9bbf;
}

.world-chat-reply-indicator {
    margin-bottom: 6px;
}

.world-chat-reply-indicator .reply-indicator-line {
    background: rgba(0, 217, 255, 0.9);
}

/* Инпут для сообщений */
.world-chat-input-container {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: transparent;
}

.world-chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 8px 10px;
    position: relative;
    min-width: 0;
}

.world-chat-prefix {
    font-weight: bold;
    font-size: 15px;
    color: var(--neon-cyan);
    min-width: 14px;
    flex-shrink: 0;
}

.world-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 14px;
    min-width: 0;
}

.world-chat-char-counter {
    font-size: 10px;
    color: var(--text-gray);
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
}

.world-chat-send-btn {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.world-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.world-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для узких экранов (Z Fold 5 и подобные) */
@media (max-width: 380px) {
    #worldChatScreen {
        --world-chat-footer-height-fallback: 88px;
        --world-chat-footer-gap: 8px;
    }

    .world-chat-tabs {
        gap: 4px;
        padding: 6px 8px 4px 8px;
    }

    .world-chat-tab {
        padding: 5px 6px;
        font-size: 12px;
        min-width: 70px;
    }

    .world-chat-font-size-btn {
        padding: 5px 8px;
        font-size: 13px;
        min-width: 30px;
        margin-left: auto;
    }

    .world-chat-messages-container {
        padding: 8px;
        padding-bottom: calc(var(--world-chat-footer-height, var(--world-chat-footer-height-fallback)) + var(--world-chat-footer-gap));
    }

    .world-chat-message {
        padding: 6px 8px;
    }

    .world-chat-nickname {
        font-size: 12px;
    }

    .world-chat-text {
        font-size: 12px;
    }

    .world-chat-input-container {
        gap: 6px;
        padding: 6px 8px;
    }

    .world-chat-input-wrapper {
        gap: 4px;
        padding: 6px 8px;
    }

    .world-chat-prefix {
        font-size: 14px;
        min-width: 12px;
    }

    .world-chat-input {
        font-size: 13px;
    }

    .world-chat-char-counter {
        font-size: 9px;
        min-width: 32px;
    }

    .world-chat-send-btn {
        min-width: 38px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Адаптивная верстка для экрана выбора локации */
/* Узкие экраны (сложенный Z Fold5, узкие телефоны) */
@media (max-width: 400px) {
    .header {
        margin-bottom: 15px;
        padding-top: calc(5px + var(--safe-area-top));
    }

    .back-btn {
        padding: 4px 8px;
        font-size: 12px;
        left: 5px;
        top: calc(5px + var(--safe-area-top));
    }

    .logo {
        padding-top: 40px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo p {
        font-size: 12px;
        margin-top: 5px;
    }

    .neon-icon {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .location-setup-container {
        padding: 0.5rem 1rem 1rem 1rem;
    }

    .setup-country-selection h3,
    .setup-region-selection h3,
    .setup-city-selection h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .auto-location-section {
        margin-bottom: 15px;
    }

    .or-divider {
        margin: 10px 0;
        font-size: 0.8rem;
    }

    .setup-country-selection,
    .setup-region-selection,
    .setup-city-selection {
        margin: 1rem 0;
    }

    .country-buttons {
        gap: 0.45rem;
        padding: 0.2rem 0.25rem 0.3rem;
    }

    .country-btn {
        padding: 8px 6px;
        font-size: 12px;
        gap: 3px;
    }

    .country-code {
        padding: 0.1rem 0.24rem;
        font-size: 0.62rem;
    }

    .country-flag {
        width: 0.95rem;
        height: 0.68rem;
        flex-basis: 0.95rem;
    }

    #locationSetup.screen.active {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #locationSetup .header {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #locationSetup .logo h1 {
        font-size: 19px;
    }

    #locationSetup .logo p {
        font-size: 12.5px;
    }

    #locationSetup .location-setup-container {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

#locationSetup .country-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        padding: 0.35rem;
    }

    #locationSetup .country-btn {
        min-height: 40px;
        padding: 0.46rem 0.42rem;
        gap: 0.26rem;
        font-size: 0.74rem;
        justify-content: flex-start;
    }

    #locationSetup .country-label {
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }

    #locationSetup .country-flag {
        width: 0.92rem;
        height: 0.66rem;
        flex-basis: 0.92rem;
    }

    @media (max-width: 360px) {
        .country-buttons {
            gap: 0.35rem;
        }

        .country-btn {
            padding: 7px 5px;
            font-size: 11.5px;
            gap: 2px;
        }

        .country-code {
            font-size: 0.58rem;
            padding: 0.08rem 0.2rem;
        }

        .country-flag {
            width: 0.85rem;
            height: 0.61rem;
            flex-basis: 0.85rem;
        }

        #locationSetup .country-buttons {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            max-height: 44vh;
        }

        #locationSetup .country-btn {
            min-height: 38px;
            padding: 0.42rem 0.36rem;
            gap: 0.22rem;
            font-size: 0.72rem;
            justify-content: flex-start;
        }

        #locationSetup .country-flag {
            width: 0.84rem;
            height: 0.6rem;
            flex-basis: 0.84rem;
        }
    }

    .neon-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

#locationSetup .country-buttons.country-buttons-fallback {
    display: none !important;
}

#locationSetup .country-select-shell {
    position: relative;
    width: 100%;
}

#locationSetup .setup-country-select {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 2.7rem 0.78rem 0.9rem;
    border: 1px solid rgba(0, 217, 255, 0.46);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(255, 0, 110, 0.1)),
        rgba(4, 9, 23, 0.82);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.28);
    outline: none;
    cursor: pointer;
    appearance: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
    background-image:
        linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(255, 0, 110, 0.1)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.95) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 22px) 21px,
        calc(100% - 15px) 21px;
    background-size:
        100% 100%,
        7px 7px,
        7px 7px;
    background-repeat: no-repeat;
}

#locationSetup .setup-country-select:focus {
    border-color: rgba(0, 217, 255, 0.88);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.18), 0 0 22px rgba(0, 217, 255, 0.24), inset 0 0 0 1px rgba(0, 217, 255, 0.12);
}

#locationSetup .setup-country-select option,
#locationSetup .setup-country-select optgroup {
    background: #10142a;
    color: #fff;
}

#locationSetup .country-select-shell.is-custom-ready .setup-country-select {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#locationSetup .setup-country-dropdown {
    position: relative;
    width: 100%;
    z-index: 30;
}

#locationSetup .setup-country-dropdown.open {
    z-index: 1200;
}

#locationSetup .setup-country-dropdown-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(0, 217, 255, 0.62);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.16), rgba(255, 0, 110, 0.1)),
        rgba(4, 9, 23, 0.86);
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.28);
    text-align: left;
    cursor: pointer;
}

#locationSetup .setup-country-dropdown-toggle:disabled {
    cursor: wait;
    opacity: 0.84;
}

#locationSetup .setup-country-dropdown-toggle:focus-visible,
#locationSetup .setup-country-dropdown.open .setup-country-dropdown-toggle {
    outline: none;
    border-color: rgba(0, 217, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.18), 0 0 22px rgba(0, 217, 255, 0.24), inset 0 0 0 1px rgba(0, 217, 255, 0.12);
}

#locationSetup .setup-country-dropdown-text,
#locationSetup .setup-country-option {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
}

#locationSetup .setup-country-dropdown-text {
    flex: 1;
    overflow: hidden;
}

#locationSetup .setup-country-dropdown .country-flag {
    width: 1.35rem;
    height: 0.94rem;
    flex: 0 0 1.35rem;
    border-radius: 2px;
}

#locationSetup .setup-country-code {
    flex: 0 0 auto;
    min-width: 1.55rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

#locationSetup .setup-country-name,
#locationSetup .setup-country-placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#locationSetup .setup-country-placeholder {
    color: rgba(255, 255, 255, 0.92);
}

#locationSetup .setup-country-dropdown-caret {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease;
}

#locationSetup .setup-country-dropdown.open .setup-country-dropdown-caret {
    transform: rotate(180deg);
}

#locationSetup .setup-country-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(52vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.45rem;
    border: 1px solid rgba(0, 217, 255, 0.48);
    border-radius: 14px;
    background: rgba(9, 14, 32, 0.98);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48), 0 0 28px rgba(0, 217, 255, 0.12);
    backdrop-filter: blur(16px);
}

#locationSetup .setup-country-option-group + .setup-country-option-group {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#locationSetup .setup-country-option-group-title {
    padding: 0.45rem 0.55rem 0.3rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
}

#locationSetup .setup-country-option {
    width: 100%;
    min-height: 40px;
    padding: 0.52rem 0.6rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

#locationSetup .setup-country-option:hover,
#locationSetup .setup-country-option:focus-visible {
    outline: none;
    background: rgba(0, 217, 255, 0.12);
}

#locationSetup .setup-country-option.selected {
    background: rgba(38, 111, 214, 0.92);
}

/* Средние экраны (обычные смартфоны) */
@media (min-width: 401px) and (max-width: 768px) {
    .header {
        margin-bottom: 20px;
    }

    .logo {
        padding-top: 45px;
    }

    .location-setup-container {
        padding: 0.75rem 1.5rem 1.5rem 1.5rem;
    }
}

/* Широкие экраны (планшеты, развернутый Z Fold5) */
@media (min-width: 769px) {
    .header {
        margin-bottom: 30px;
    }

    .logo {
        padding-top: 50px;
    }

    .location-setup-container {
        padding: 1rem 2rem 2rem 2rem;
        max-width: 600px;
    }

    .setup-country-selection h3,
    .setup-region-selection h3,
    .setup-city-selection h3 {
        font-size: 1.3rem;
    }

    /* Центрирование главного меню на широких экранах */
    #mainMenu {
        max-width: 600px;
        margin: 0 auto;
    }

    .menu-buttons {
        max-width: 360px;
        margin-bottom: 10px;
    }
}


/* ===== STICKY NOTE BETA NOTICE ===== */
.sticky-note {
    position: relative;
    width: 200px;
    margin: 15px auto 0;
    background: linear-gradient(135deg, #FFF740 0%, #FFE135 100%);
    padding: 15px 12px 12px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    z-index: 10;
    animation: flutter 3s ease-in-out infinite;
    cursor: pointer;
}

/* Неоновое розовое свечение ПО ВСЕМУ периметру стикера (тусклое, небольшой радиус) */
.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    box-shadow:
        0 0 15px rgba(255, 0, 110, 0.4),
        0 0 30px rgba(255, 0, 110, 0.3),
        0 0 45px rgba(255, 0, 110, 0.2);
    border-radius: 2px;
    animation: neonFlicker 6s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
    animation: none;
}

.sticky-note-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.sticky-note-content {
    position: relative;
    text-align: center;
}

.sticky-note-text {
    margin: 0 0 8px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.sticky-note-link {
    display: block;
    font-size: 11px;
    color: #0066cc;
    text-align: center;
    margin: 0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sticky-note-link:hover {
    color: #004499;
    text-decoration: underline;
}

@keyframes flutter {
    0%, 100% {
        transform: rotate(-2deg);
    }
    25% {
        transform: rotate(-1deg) translateY(-1px);
    }
    50% {
        transform: rotate(-2.5deg);
    }
    75% {
        transform: rotate(-1.5deg) translateY(-0.5px);
    }
}

/* Анимация мерцания неоновой лампочки (плавное, редкое, тусклое) */
@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
        box-shadow:
            0 0 15px rgba(255, 0, 110, 0.4),
            0 0 30px rgba(255, 0, 110, 0.3),
            0 0 45px rgba(255, 0, 110, 0.2);
    }
    15% {
        opacity: 0.85;
        box-shadow:
            0 0 12px rgba(255, 0, 110, 0.35),
            0 0 25px rgba(255, 0, 110, 0.25),
            0 0 38px rgba(255, 0, 110, 0.15);
    }
    18% {
        opacity: 1;
        box-shadow:
            0 0 15px rgba(255, 0, 110, 0.4),
            0 0 30px rgba(255, 0, 110, 0.3),
            0 0 45px rgba(255, 0, 110, 0.2);
    }
    45% {
        opacity: 0.75;
        box-shadow:
            0 0 10px rgba(255, 0, 110, 0.3),
            0 0 20px rgba(255, 0, 110, 0.2),
            0 0 32px rgba(255, 0, 110, 0.15);
    }
    48% {
        opacity: 0.6;
        box-shadow:
            0 0 8px rgba(255, 0, 110, 0.25),
            0 0 16px rgba(255, 0, 110, 0.18),
            0 0 25px rgba(255, 0, 110, 0.12);
    }
    51% {
        opacity: 0.9;
        box-shadow:
            0 0 13px rgba(255, 0, 110, 0.38),
            0 0 27px rgba(255, 0, 110, 0.28),
            0 0 40px rgba(255, 0, 110, 0.18);
    }
    55% {
        opacity: 1;
        box-shadow:
            0 0 15px rgba(255, 0, 110, 0.4),
            0 0 30px rgba(255, 0, 110, 0.3),
            0 0 45px rgba(255, 0, 110, 0.2);
    }
    80% {
        opacity: 0.8;
        box-shadow:
            0 0 12px rgba(255, 0, 110, 0.33),
            0 0 24px rgba(255, 0, 110, 0.24),
            0 0 36px rgba(255, 0, 110, 0.16);
    }
    85% {
        opacity: 1;
        box-shadow:
            0 0 15px rgba(255, 0, 110, 0.4),
            0 0 30px rgba(255, 0, 110, 0.3),
            0 0 45px rgba(255, 0, 110, 0.2);
    }
}

/* Адаптивные стили для маленьких экранов */
@media (max-width: 600px) {
    .sticky-note {
        width: 180px;
        padding: 12px 10px 10px 10px;
        bottom: 15px;
        right: 15px;
        font-size: 11px;
    }

    .sticky-note-text {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .sticky-note-link {
        font-size: 10px;
    }
}

/* Оптимизация для очень маленьких экранов (до 380px) */
@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }

    /* Уменьшаем заголовки */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    /* Уменьшаем кнопки */
    .neon-button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* Уменьшаем модальные окна */
    .modal-content {
        padding: 20px !important;
        max-width: 95% !important;
    }

    /* Уменьшаем формы */
    .form-step {
        padding: 15px !important;
    }

    .neon-input,
    .neon-textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }

    /* Уменьшаем карточки анкет */
    .ad-card {
        padding: 12px !important;
    }

    /* Уменьшаем иконки и флаги */
    .location-flag {
        font-size: 1.1rem !important;
    }

    /* Компактные списки городов */
    .city-list button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Оптимизация для экранов среднего размера (380-600px) */
@media (min-width: 381px) and (max-width: 600px) {
    html {
        font-size: 15px;
    }

    /* Уменьшаем заголовки */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    /* Уменьшаем кнопки */
    .neon-button {
        padding: 12px 18px !important;
        font-size: 15px !important;
    }
}
/* ==================== КАРТА ОДИНОЧЕСТВА STYLES ==================== */

/* Кнопка Карта Одиночества в главном меню */
.loneliness-map-button {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 8px 12px;
    justify-content: center;
    background: linear-gradient(45deg, var(--bg-card), #2a3e2a) !important;
    border: 2px solid #4CAF50 !important;
}

.loneliness-map-button .icon {
    --app-icon-size: 1.85em;
    flex-shrink: 0;
}

.loneliness-map-button:hover {
    border-color: #66BB6A !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.loneliness-map-content {
    flex: none;
    min-width: 0;
    text-align: center;
}

.loneliness-map-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: #4CAF50;
    text-align: center;
}

.loneliness-map-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Browse ads filters: keep long labels inside the panel on narrow WebViews. */
#browseAds #filtersPanel {
    overflow: visible;
}

#browseAds #filtersPanel .filter-buttons,
#browseAds #filtersPanel .gender-target-buttons,
#browseAds #filtersPanel .orientation-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 6px;
    max-width: 100%;
    overflow: visible;
}

#browseAds #filtersPanel .filter-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    box-sizing: border-box;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-size: 0.74rem;
    line-height: 1.12;
}

#browseAds #filtersPanel .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#browseAds #filtersPanel .filter-actions .neon-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.15;
}

@media (max-width: 380px) {
    #browseAds #filtersPanel .filter-buttons,
    #browseAds #filtersPanel .gender-target-buttons,
    #browseAds #filtersPanel .orientation-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 330px) {
    #browseAds #filtersPanel .filter-actions {
        grid-template-columns: 1fr;
    }
}

/* ============= TELEGRAM AUTH MODAL - CLEAN REDESIGN ============= */
#telegramAuthModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#telegramAuthModal.show,
#telegramAuthModal[style*="display: flex"] {
    display: flex !important;
}

/* Контент модалки */
.telegram-auth-modal-content {
    background: linear-gradient(180deg, #1e1e2f 0%, #151521 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 360px;
    position: relative;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .telegram-auth-modal-content {
        max-width: 660px;
        padding: 28px 32px;
        max-height: 85vh;
    }
}

@media (min-width: 1024px) {
    .telegram-auth-modal-content {
        max-width: 700px;
        padding: 32px 36px;
    }
}

/* Кнопка закрытия */
.telegram-auth-modal-content .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.telegram-auth-modal-content .modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    color: #ff006e;
    border-color: rgba(255, 0, 110, 0.3);
}

/* Заголовок */
.auth-modal-title {
    text-align: center;
    color: #00d4ff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

/* Body - две колонки */
.auth-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .auth-modal-body {
        flex-direction: row;
        gap: 28px;
    }
}

/* Левая колонка */
.auth-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Блок предупреждения */
.auth-notice {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-notice-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.auth-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-notice-text strong {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-notice-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Список фич */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-features li {
    color: #4ade80;
    font-size: 0.88rem;
    padding-left: 4px;
}

/* Альтернативные способы */
.auth-alternatives {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-alt-label {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.auth-alt-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-btn {
    border: none;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-btn-email {
    background: linear-gradient(135deg, #ff006e, #ff4d94);
}

.auth-btn-google {
    background: linear-gradient(135deg, #4285f4, #5a95f5);
}

.auth-btn-apple {
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.auth-btn-vk {
    background: linear-gradient(135deg, #0077ff, #0055cc);
}

/* Правая колонка - QR */
.auth-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .auth-right-col {
        padding-left: 28px;
        border-left: 1px solid rgba(139, 92, 246, 0.2);
    }
}

.qr-title {
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 14px 0;
    text-align: center;
}

/* QR обертка */
.qr-wrapper {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    display: inline-block;
}

.qr-wrapper #qrcode {
    display: block !important;
}

.qr-wrapper #qrcode img {
    display: block !important;
    width: 180px !important;
    height: 180px !important;
}

@media (min-width: 768px) {
    .qr-wrapper {
        padding: 20px;
    }

    .qr-wrapper #qrcode img {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Шаги */
.qr-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.qr-steps li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 18px;
    height: 18px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #a78bfa;
    flex-shrink: 0;
}

/* Разделитель */
.or-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Telegram deep link */
.telegram-deep-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.telegram-deep-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

/* QR код - показываем ТОЛЬКО canvas, скрываем img */
#telegramAuthModal #qrcode canvas {
    display: inline-block !important;
    max-width: 100%;
    height: auto;
}

#telegramAuthModal #qrcode img {
    display: none !important;
}

/* На мобильных устройствах делаем QR меньше */
@media (max-width: 480px) {
    #telegramAuthModal #qrcode canvas {
        width: 200px !important;
        height: 200px !important;
    }
}

/* QR-коды для скачивания (видны только на широких экранах) */
@media (max-width: 1200px) {
    .qr-codes-container {
        display: none !important;
    }
}

/* На десктопе добавляем hover эффект */
@media (min-width: 769px) {
    .qr-code-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .qr-code-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4) !important;
    }
}

/* ========================================
   🏷️ Banner Ad Disclosure UI
   Wrapper, badge "Реклама", три-точие кнопка, дропдаун
   ======================================== */

.banner-disc-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Бейдж «Реклама» снизу слева */
.banner-disc-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.42);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(2px);
    z-index: 5;
}

/* Кнопка ··· сверху справа — появляется при наведении */
.banner-disc-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.banner-disc-wrap:hover .banner-disc-btn {
    opacity: 1;
}
.banner-disc-btn:hover {
    background: rgba(0, 0, 0, 0.78);
}

/* Глобальный дропдаун (appended to body, position: fixed) */
#bannerDiscDropdown {
    position: fixed;
    z-index: 99999;
    background: #16162a;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 4px 0;
    min-width: 210px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    display: none;
}
#bannerDiscDropdown.banner-disc-open {
    display: block;
    animation: bannerDiscFadeIn 0.12s ease;
}
@keyframes bannerDiscFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.banner-disc-dd-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    padding: 8px 14px 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 2px;
}
.banner-disc-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.1s;
    box-sizing: border-box;
    font-family: inherit;
}
.banner-disc-dd-item:hover {
    background: rgba(255, 255, 255, 0.07);
}
.banner-disc-dd-item.banner-disc-danger {
    color: #ff6b7a;
}
.banner-disc-dd-item span {
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Banner Advertiser Info Modal ──────────────────── */
.banner-adv-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
    padding: 0 0 24px;
}
.banner-adv-modal.banner-adv-open {
    background: rgba(0, 0, 0, 0.5);
}
.banner-adv-inner {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 520px;
    padding: 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    overflow: hidden;
}
.banner-adv-modal.banner-adv-open .banner-adv-inner {
    transform: translateY(0);
    opacity: 1;
}
.banner-adv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.banner-adv-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.banner-adv-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.banner-adv-close:hover { color: #333; }
.banner-adv-body {
    padding: 16px 20px 8px;
}
.banner-adv-org {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}
.banner-adv-link {
    color: #3b7cf4;
    text-decoration: none;
    font-weight: 500;
}
.banner-adv-link:hover { text-decoration: underline; }
.banner-adv-row {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}
.banner-adv-row span {
    color: #888;
    min-width: 80px;
    font-size: 13px;
}
.banner-adv-mediakit {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
}
.banner-adv-mediakit:hover { color: #555; text-decoration: underline; }
.banner-adv-footer {
    padding: 10px 20px 16px;
    font-size: 11px;
    color: #bbb;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

/* Нейтральные классы карточек анкет: Kaspersky/AdBlock часто режут className с "ad". */
.profiles-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.profiles-list.compact {
    display: grid;
    gap: 8px;
}

.profile-card {
    display: block;
    background: linear-gradient(135deg, var(--bg-card), #262636);
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-card.is-pinned {
    margin-top: 18px;
    padding-top: 12px;
}

.profile-card.compact {
    padding: 10px 12px;
    border-radius: 12px;
}

.profile-card.compact.is-pinned {
    padding-top: 10px;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-pink);
    transform: translateY(-5px);
}

.profile-photo-thumbnail {
    width: calc(100% + 24px);
    height: 100px;
    margin: -12px -12px 8px -12px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border-bottom: 2px solid var(--neon-purple);
}

.profile-photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.profile-card:hover .profile-photo-thumbnail img {
    transform: scale(1.05);
}

.profile-card.compact .profile-photo-thumbnail {
    height: 80px;
    margin: -10px -12px 6px -12px;
    border-radius: 12px 12px 0 0;
}

.profile-photo-thumbnails {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
}

.profile-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-author-row h3 {
    margin: 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 0, 110, 0.15);
}

.profile-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--neon-pink);
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-card.compact .profile-header {
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.profile-card.compact h3 {
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-info {
    display: grid;
    gap: 6px;
}

.profile-card.compact .profile-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.profile-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.profile-field .icon {
    font-size: 15px;
}

.profile-field .label {
    color: var(--text-gray);
    min-width: 100px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-field .value {
    color: var(--text-light);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-card.compact .profile-field {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 11px;
    color: var(--text-light);
    gap: 3px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-card.compact .profile-field .label {
    display: none;
}

.profile-card.compact .profile-field .icon {
    flex: 0 0 auto;
}

.profile-card.compact .profile-field .value {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light);
}

.profile-distance-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.12);
    color: var(--neon-cyan);
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.profile-card.compact .profile-distance-badge {
    margin-left: 4px;
    padding: 1px 5px;
    font-size: 0.86em;
}

.profile-field.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.profile-field.full-width span:last-child {
    width: 100%;
    word-wrap: break-word;
}

.profile-text {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 2px solid var(--neon-cyan);
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-card.compact .profile-text {
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 11.5px;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0.85;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.ad-card.compact .ad-actions-row,
.profile-card.compact .profile-actions-row {
    gap: 8px;
    padding-right: 6px;
    padding-bottom: 6px;
}

.ad-card.compact .like-btn,
.profile-card.compact .like-btn,
.ad-card.compact .view-count,
.profile-card.compact .view-count,
.ad-card.compact .profile-share-btn,
.profile-card.compact .profile-share-btn {
    flex-shrink: 0;
}

.ad-card.compact .contact-btn,
.profile-card.compact .contact-btn,
.ad-card.compact .delete-btn,
.profile-card.compact .delete-btn {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 120px;
}

.ad-card.compact .contact-text,
.profile-card.compact .contact-text,
.ad-card.compact .delete-text,
.profile-card.compact .delete-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#myAds .profile-card,
#myAds .profile-card .profile-info,
#myAds .profile-card .profile-field,
#myAds .profile-card .profile-field.full-width,
#myAds .profile-card .profile-text {
    color: #f4f7fb !important;
    -webkit-text-fill-color: #f4f7fb !important;
}

#myAds .profile-card .profile-field strong,
#myAds .profile-card .profile-field.full-width strong {
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
}

#myAds .profile-card .profile-field.full-width,
#myAds .profile-card .profile-text {
    background: rgba(8, 8, 18, 0.72) !important;
    border-left-color: var(--neon-cyan) !important;
}

#myAds .profile-card .profile-field .label {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

#myAds .profile-card .profile-field .value {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.profile-card.premium-profile {
    background-color: #1b1b2a;
    background-image:
        linear-gradient(135deg, rgba(255, 215, 0, 0.10), rgba(255, 165, 0, 0.06)),
        linear-gradient(135deg, #151521, #262636);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 0 7px rgba(255, 215, 0, 0.22),
        0 0 14px rgba(255, 215, 0, 0.12),
        0 0 20px rgba(255, 215, 0, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.2);
    animation: none;
}

.profile-card.premium-profile:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.25),
        0 0 45px rgba(255, 215, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.profile-card.top-1 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(255, 50, 100, 0.6);
    box-shadow:
        0 0 10px rgba(255, 50, 100, 0.35),
        0 0 20px rgba(255, 50, 100, 0.2),
        0 0 32px rgba(255, 50, 100, 0.12);
}

.profile-card.top-2 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(255, 170, 50, 0.5);
    box-shadow:
        0 0 10px rgba(255, 170, 50, 0.28),
        0 0 20px rgba(255, 170, 50, 0.16),
        0 0 32px rgba(255, 170, 50, 0.1);
}

.profile-card.top-3 {
    margin-top: 18px;
    position: relative;
    overflow: visible !important;
    border: 2px solid rgba(50, 205, 100, 0.45);
    box-shadow:
        0 0 10px rgba(50, 205, 100, 0.22),
        0 0 20px rgba(50, 205, 100, 0.14),
        0 0 32px rgba(50, 205, 100, 0.08);
}

.profile-card.top-1::after,
.profile-card.top-2::after,
.profile-card.top-3::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    will-change: opacity;
    z-index: 0;
    animation: topGlowPulse 2.5s ease-in-out infinite;
}

.profile-card.top-1::after {
    border: 2px solid rgba(255, 50, 100, 0.5);
}

.profile-card.top-2::after {
    border: 2px solid rgba(255, 170, 50, 0.4);
}

.profile-card.top-3::after {
    border: 2px solid rgba(50, 205, 100, 0.35);
}

.profile-card.top-1 .top-badge {
    background: linear-gradient(135deg, rgba(255, 0, 60, 1), rgba(200, 0, 50, 1));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.8);
    border: 2px solid rgba(255, 100, 120, 0.5);
}

.profile-card.top-2 .top-badge {
    background: linear-gradient(135deg, rgba(255, 140, 0, 1), rgba(200, 100, 0, 1));
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.7);
    border: 2px solid rgba(255, 180, 100, 0.5);
}

.profile-card.top-3 .top-badge {
    background: linear-gradient(135deg, rgba(0, 200, 80, 1), rgba(0, 150, 60, 1));
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 200, 80, 0.6);
    border: 2px solid rgba(100, 230, 150, 0.5);
}

.profile-card.profile-new-animation {
    animation: slideInNew 0.5s ease-out;
}

.profile-card.top-rank-up {
    animation: rankUpPulse 1s ease-out;
}

.profile-card.top-rank-down {
    animation: rankDownPulse 0.8s ease-out;
}

@media (max-width: 380px) {
    .profile-card {
        padding: 12px !important;
    }
}

/* ========================================
   🛡️ Anti-AdBlock Defense (MUST BE LAST!)
   Адблокеры скрывают элементы с "ad-" в className
   и инжектят цветные фоны. Эти правила это отменяют.
   ======================================== */
.ad-card,
.profile-card,
.ad-header,
.profile-header,
.ad-info,
.profile-info,
.ad-field,
.profile-field,
.ad-text,
.profile-text,
.ad-actions,
.profile-actions,
.ad-actions-row,
.profile-actions-row,
.ad-author-row,
.profile-author-row,
.ad-details,
.ad-details-card,
.ad-details-header,
.ad-details-photos,
.ad-author-info,
.ad-search-info,
.ad-description-box,
.ad-date,
.profile-date,
.ad-date-badge,
.profile-date-badge,
.ad-main-photo,
.ad-photo-gallery,
.ad-photo-thumbnail-small,
.ad-photo-thumbnails,
.profile-photo-thumbnails,
.ad-photo-thumbnail,
.profile-photo-thumbnail,
.ads-list,
.profiles-list {
    visibility: visible !important;
    opacity: 1 !important;
}

#adContent.ad-details,
.ad-details-card,
.ad-details-photos,
.ad-search-info,
.ad-description-box,
.ad-main-photo,
.ad-photo-thumbnail-small,
.ad-slide-photo {
    display: block !important;
}

.ad-details-header,
.ad-author-info,
.ad-photo-gallery {
    display: flex !important;
}

.ad-slide-photo {
    display: block !important;
    visibility: visible !important;
}

/* Защита фона карточки от инжекции адблокером */
.ad-card,
.profile-card {
    background: linear-gradient(135deg, var(--bg-card), #262636) !important;
}
#adContent.ad-details {
    background: transparent !important;
    background-image: none !important;
}
.ad-details-card {
    background: linear-gradient(135deg, rgba(8, 8, 18, 0.42), rgba(26, 26, 46, 0.34)) !important;
    background-color: rgba(8, 8, 18, 0.34) !important;
}
.ad-card.premium-ad,
.profile-card.premium-profile {
    background-color: #1b1b2a !important;
    background-image:
        linear-gradient(135deg, rgba(255, 215, 0, 0.10), rgba(255, 165, 0, 0.06)),
        linear-gradient(135deg, #151521, #262636) !important;
}

/* Keep the main menu CTA light sweep visible on desktop/web after late safety overrides. */
#mainMenu .location-info,
#mainMenu .main-menu-action {
    animation-name: main-menu-button-bg-flow !important;
    animation-duration: var(--main-menu-bg-flow-duration) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
}

#mainMenu .location-info::before,
#mainMenu .main-menu-action::before {
    display: block !important;
    left: 0 !important;
    right: auto !important;
    width: 76% !important;
    top: -28% !important;
    bottom: -28% !important;
    height: auto !important;
    opacity: 0.16;
    filter: blur(5px);
    transform: translateX(-130%) skewX(-16deg);
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--menu-flow-sheen, rgba(0, 229, 255, 0.52)) 24%,
        var(--menu-flow-accent, rgba(255, 255, 255, 0.9)) 50%,
        var(--menu-flow-sheen, rgba(0, 229, 255, 0.52)) 76%,
        transparent 100%
    ) !important;
    will-change: transform, opacity;
    animation-name: main-menu-surface-flow-steady !important;
    animation-duration: var(--main-menu-flow-duration) !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
    animation-delay: var(--menu-flow-delay, 0s) !important;
    animation-direction: var(--menu-flow-direction, normal) !important;
}

#mainMenu .location-info::after,
#mainMenu .main-menu-action::after {
    display: block !important;
    opacity: 0.3;
    will-change: opacity;
    animation-name: main-menu-surface-breathe-steady !important;
    animation-duration: var(--main-menu-breathe-duration) !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
    animation-delay: calc(var(--menu-flow-delay, 0s) + 0.2s) !important;
}

#mainMenu .neon-button.browse-ads-cta.main-menu-action::after {
    animation-name: gold-flow-soft !important;
    animation-duration: var(--main-menu-bg-flow-duration) !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
}

@keyframes main-menu-surface-flow-steady {
    0% {
        transform: translateX(-130%) skewX(-16deg);
        opacity: 0.16;
    }
    16% {
        opacity: 0.3;
    }
    34%, 60% {
        opacity: 0.92;
    }
    82% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(230%) skewX(-16deg);
        opacity: 0.16;
    }
}

@keyframes main-menu-surface-breathe-steady {
    0%, 100% {
        opacity: 0.2;
    }
    45% {
        opacity: 0.34;
    }
    68% {
        opacity: 0.28;
    }
}

@media (prefers-reduced-motion: reduce) {
    #mainMenu .location-info,
    #mainMenu .main-menu-action,
    #mainMenu .location-info::before,
    #mainMenu .location-info::after,
    #mainMenu .main-menu-action::before,
    #mainMenu .main-menu-action::after {
        animation: none !important;
    }
}
.ads-list,
.profiles-list {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Browse profiles must stay inside the central column even when compact chips are long. */
#browseAds #adsList,
#browseAds .ads-list,
#browseAds .profiles-list {
    width: 100% !important;
    max-width: 400px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    overflow-x: clip !important;
}

#browseAds #adsList > .profiles-empty-state,
#browseAds .ads-list > .profiles-empty-state,
#browseAds .profiles-list > .profiles-empty-state {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
}

#browseAds #adsList > .ad-card,
#browseAds #adsList > .profile-card,
#browseAds .ads-list > .ad-card,
#browseAds .ads-list > .profile-card,
#browseAds .profiles-list > .ad-card,
#browseAds .profiles-list > .profile-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
}

/* Прозрачный фон для внутренних элементов */
.ad-header,
.profile-header,
.ad-info,
.profile-info,
.ad-author-row,
.profile-author-row,
.ad-details-header,
.ad-date,
.profile-date,
.ad-actions,
.profile-actions,
.ad-actions-row,
.profile-actions-row {
    background-color: transparent !important;
    background-image: none !important;
}

/* ad-field: обычные — прозрачные, full-width — с полупрозрачным фоном */
.ad-field,
.profile-field {
    background-color: transparent !important;
    background-image: none !important;
}
/* Compact-режим: пилюли сохраняют свой полупрозрачный фон */
.ad-card.compact .ad-field,
.profile-card.compact .profile-field {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    color: var(--text-light) !important;
}
.ad-field.full-width,
.profile-field.full-width {
    background: rgba(0, 0, 0, 0.2) !important;
    background-image: none !important;
}

/* Защита иконок в полях от AdBlock */
.ad-field .icon,
.profile-field .icon,
.ad-card .icon,
.profile-card .icon,
.ad-details-card .icon {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 15px;
}

/* ad-text: тёмный полупрозрачный фон для текста анкеты (только non-compact) */
.ad-text,
.profile-text {
    background: rgba(0, 0, 0, 0.3) !important;
    background-image: none !important;
    color: var(--text-gray) !important;
}
.ad-card.compact .ad-text,
.profile-card.compact .profile-text {
    background: none !important;
    border: none !important;
    color: var(--text-gray) !important;
}

/* Защита цвета текста от адблокера */
.ad-field .value,
.profile-field .value {
    color: var(--text-light) !important;
}
.ad-card.compact .ad-field .value,
.profile-card.compact .profile-field .value {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light) !important;
}
.ad-field .label,
.profile-field .label {
    color: var(--text-gray) !important;
}
.ad-header h3,
.profile-header h3 {
    color: var(--neon-pink) !important;
}

.ad-details-card .location-text,
.ad-details-card .author-name,
.ad-details-card .author-params,
.ad-details-card .search-title,
.ad-details-card .param-item,
.ad-details-card .description-title,
.ad-details-card .description-text {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================================
   DESKTOP ПРИВАТНЫЙ ЧАТ: 760px колонка + frosted glass по бокам
   ================================================================ */
@media (min-width: 768px) {
    /* Шапка, сообщения, поле ввода и выпадающее меню — всё 760px по центру */
    #chatView.screen.active .chat-header,
    #chatView.screen.active .chat-messages-container,
    #chatView.screen.active .chat-input-container,
    #chatView.screen.active .chat-typing-host,
    #chatView.screen.active .reply-preview,
    #chatView.screen.active .chat-menu-dropdown {
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #chatView.screen.active .reply-preview {
        width: min(calc(100vw - (var(--chat-input-side-gap) * 2)), 760px) !important;
    }

    /* Фон #chatView закрывает тело по бокам от 760px колонки —
       fallback на случай если body::before/after не работают */
    #chatView.screen {
        background: rgba(8, 6, 20, 0.75) !important;
    }

    /* Frosted glass боковые панели на body (современные браузеры) */
    body:has(#chatView.screen.active)::before,
    body:has(#chatView.screen.active)::after {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc((100vw - 760px) / 2);
        backdrop-filter: blur(22px) saturate(140%) brightness(0.6);
        -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(0.6);
        background: rgba(6, 4, 16, 0.52);
        z-index: 50;
        pointer-events: none;
    }

    body:has(#chatView.screen.active)::before { left: 0; }
    body:has(#chatView.screen.active)::after  { right: 0; }
}

/* ── Модалка просмотра анкеты: компактная липкая шапка ── */
#adModal .modal-content {
    padding: 0;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

#adModal .modal-header {
    flex-shrink: 0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(131, 56, 236, 0.3);
    background: #2a2a40;
    border-radius: 18px 18px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

#adModal .modal-header h2 {
    font-size: 1rem;
    margin: 0;
    color: var(--neon-pink);
}

#adModal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(85vh - 50px);
    padding: 16px 20px 24px;
}

/* ── "Кто лайкнул" кнопка на карточке «Мои анкеты» ── */
.ad-actions .likes-btn,
.profile-actions .likes-btn {
    background: linear-gradient(135deg, #ff006e, #ff4488);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.ad-actions .likes-btn .likes-heart,
.profile-actions .likes-btn .likes-heart {
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}
.ad-actions .likes-btn:active,
.profile-actions .likes-btn:active {
    transform: scale(0.95);
}

/* ── Likers / Sender Ads Modal ── */
.likers-modal-content {
    max-width: 380px !important;
    width: 92% !important;
}
.likers-modal-content .modal-header {
    padding: 10px 14px !important;
}
.likers-modal-content .modal-header h2 {
    font-size: 1rem !important;
}
.likers-modal-body {
    padding: 8px 12px 14px !important;
    max-height: 65vh;
    overflow-y: auto;
}

.liker-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(131, 56, 236, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.liker-card:hover {
    border-color: var(--neon-pink);
}
.liker-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.liker-gender-icon {
    font-size: 1.2rem;
}
.liker-name {
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.95rem;
}
.liker-age {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
}
.liker-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.liker-tag {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.liker-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    margin-bottom: 10px;
    font-style: italic;
}
.liker-actions {
    display: flex;
    gap: 8px;
}
.liker-actions .neon-button {
    flex: 1;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    text-align: center;
}
.liker-view-btn {
    background: linear-gradient(135deg, #4a00e0, #8e2de2) !important;
}
.liker-write-btn {
    background: linear-gradient(135deg, #00d9ff, #0099cc) !important;
}
.liker-card--no-ad {
    opacity: 0.75;
}
.liker-no-ad-hint {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}
/* Общий адаптивный хедер экранов: левая кнопка, заголовок и правая кнопка
   больше не перекрывают друг друга на узких Telegram/WebView экранах. */
.header:has(> h2),
.header:has(> h3) {
    display: grid;
    grid-template-columns: minmax(70px, max-content) minmax(0, 1fr) minmax(70px, max-content);
    grid-auto-rows: minmax(34px, auto);
    align-items: center;
    column-gap: 6px;
}

.header:has(> h2) > .back-btn,
.header:has(> h3) > .back-btn {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    min-width: 0;
    transform: none;
}

.header:has(> h2) > h2,
.header:has(> h3) > h3 {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 2px;
    line-height: 1.12;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.header:has(> h2) > h2 {
    font-size: clamp(1.02rem, 4.7vw, 1.28rem);
}

.header:has(> h2) > .faq-btn,
.header:has(> h2) > .world-chat-faq-btn,
.header:has(> h2) > .loneliness-map-help-btn,
.header:has(> h3) > .faq-btn,
.header:has(> h3) > .world-chat-faq-btn,
.header:has(> h3) > .loneliness-map-help-btn {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    transform: none;
}

.header:has(> h2) > .faq-btn:hover,
.header:has(> h3) > .faq-btn:hover {
    transform: scale(1.05);
}

.header:has(> h2) > .faq-btn:active,
.header:has(> h3) > .faq-btn:active {
    transform: scale(0.96);
}

.header:has(> h2) > .world-chat-faq-btn:hover,
.header:has(> h2) > .loneliness-map-help-btn:hover,
.header:has(> h3) > .world-chat-faq-btn:hover,
.header:has(> h3) > .loneliness-map-help-btn:hover {
    transform: scale(1.05);
}

.header:has(> h2) > :not(.back-btn):not(.faq-btn):not(.world-chat-faq-btn):not(.loneliness-map-help-btn):not(h2):not(h3),
.header:has(> h3) > :not(.back-btn):not(.faq-btn):not(.world-chat-faq-btn):not(.loneliness-map-help-btn):not(h2):not(h3) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

/* Create profile has an old inline absolute top for the Back button.
   In native Android it pushes Back into the form content, so force the
   header to use the shared one-row layout. */
#createAd > .header {
    display: grid !important;
    grid-template-columns: minmax(72px, max-content) minmax(0, 1fr) minmax(82px, max-content) !important;
    grid-auto-rows: minmax(34px, auto) !important;
    align-items: center !important;
    column-gap: 6px !important;
    min-height: calc(52px + var(--safe-area-top)) !important;
    padding-top: calc(8px + var(--safe-area-top)) !important;
    padding-bottom: 6px !important;
    margin-bottom: 4px !important;
}

#createAd > .header > #createAdMenuBtn {
    display: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 8px !important;
    gap: 5px !important;
    margin: 0 !important;
    z-index: auto !important;
}

#createAd.create-ad-menu-mode > .header > #createAdMenuBtn {
    display: flex !important;
}

#createAd.create-ad-menu-mode #createAdBackBtn {
    display: none !important;
}

#createAd #createAdBackBtn {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    margin: 0 !important;
}

#browseAds > .header {
    display: grid !important;
    grid-template-columns: minmax(86px, max-content) minmax(0, 1fr) minmax(104px, max-content) !important;
    grid-auto-rows: 38px !important;
    align-items: center !important;
    column-gap: 8px !important;
    position: sticky !important;
    top: 0;
    z-index: 1200;
    width: 100%;
    min-height: calc(50px + var(--safe-area-top)) !important;
    height: calc(50px + var(--safe-area-top)) !important;
    padding: calc(6px + var(--safe-area-top)) 10px 6px !important;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 26px;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
    transition:
        transform 0.22s ease,
        margin-bottom 0.22s ease;
}

#browseAds > .header::before {
    content: "";
    position: absolute;
    inset: calc(5px + var(--safe-area-top)) 4px 5px;
    z-index: 0;
    border: 1px solid rgba(0, 217, 255, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(15, 18, 36, 0.72), rgba(44, 18, 54, 0.62));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        opacity 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

#browseAds > .header > .back-btn,
#browseAds > .header > h2,
#browseAds > .header > .faq-btn {
    position: relative;
    z-index: 1;
}

#browseAds > .header > .back-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    min-width: 0;
    height: 34px;
    padding: 5px 11px;
    font-size: 13px;
    line-height: 1;
}

#browseAds > .header > h2 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 2px !important;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.14rem, 5vw, 1.45rem) !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
}

#browseAds > .header > .faq-btn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    max-width: 132px;
    min-height: 32px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

#browseAds > .header > .back-btn:hover,
#browseAds > .header > .faq-btn:hover {
    transform: scale(1.04) !important;
}

#browseAds > .header > .back-btn:active,
#browseAds > .header > .faq-btn:active {
    transform: scale(0.96) !important;
}

#browseAds.browse-header-scrolled > .header {
    margin-bottom: 8px;
}

#browseAds.browse-header-scrolled > .header::before {
    opacity: 1;
}

@media (max-width: 380px) {
    .header:has(> h2),
    .header:has(> h3) {
        grid-template-columns: minmax(58px, max-content) minmax(0, 1fr) minmax(58px, max-content);
        column-gap: 4px;
    }

    .header:has(> h2) > .back-btn,
    .header:has(> h3) > .back-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .header:has(> h2) > .faq-btn,
    .header:has(> h3) > .faq-btn {
        max-width: 82px;
        padding: 5px 8px;
        font-size: 10px;
        line-height: 1.05;
        white-space: normal;
        text-align: center;
    }

    .header:has(> h2) > h2 {
        font-size: clamp(0.98rem, 4.5vw, 1.12rem);
    }

    #browseAds > .header {
        grid-template-columns: minmax(72px, max-content) minmax(0, 1fr) minmax(86px, max-content) !important;
        column-gap: 5px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    #browseAds > .header > .back-btn {
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }

    #browseAds > .header > h2 {
        font-size: clamp(1.04rem, 5vw, 1.18rem) !important;
    }

    #browseAds > .header > .faq-btn {
        max-width: 92px;
        height: 31px;
        padding: 4px 7px;
        font-size: 10px;
        white-space: nowrap;
    }
}

/* ===== Push / VK notification prompts ===== */
@keyframes pushPromptSlideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.push-prompt-banner,
#vkNotificationsPrompt,
#webPushPrompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bg-card), #16213e);
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: calc(100% - 40px);
    animation: pushPromptSlideUp 0.3s ease;
}

.push-prompt-banner--vk,
#vkNotificationsPrompt {
    border: 1px solid rgba(0, 119, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 119, 255, 0.12);
}

.push-prompt-banner--web,
#webPushPrompt {
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.push-prompt-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.push-prompt-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.push-prompt-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.push-prompt-text {
    flex: 1;
    min-width: 0;
}

.push-prompt-text strong {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.push-prompt-text span {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
}

.push-prompt-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.push-prompt-btn {
    flex: 1;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
}

.push-prompt-btn-yes {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    box-shadow: var(--shadow-cyan);
}

.push-prompt-btn-yes:hover,
.push-prompt-btn-yes:active {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.45);
}

.push-prompt-btn-no {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.push-prompt-btn-no:hover,
.push-prompt-btn-no:active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-light);
}

html.ok-mini-app #telegramQrLink,
html.ok-mini-app #menuInstagramItem,
html.ok-mini-app #menuMediaKitItem,
html.ok-mini-app #supportTelegramItem,
html.ok-mini-app #vkNotificationsToggleContainer,
html.ok-mini-app .vk-voices-btn,
html.ok-mini-app #webQrCodesContainer a[href*="instagram.com"],
html.ok-mini-app #webQrCodesContainer a[href*="t.me"],
html.ok-mini-app #webQrCodesContainer a[href*="telegram.me"],
html.ok-mini-app #webQrCodesContainer a[href*="telegram.org"],
html.ok-mini-app #webQrCodesContainer .local-qr-code[data-qr-url*="instagram.com"],
html.ok-mini-app #webQrCodesContainer .local-qr-code[data-qr-url*="t.me"],
html.ok-mini-app #webQrCodesContainer .local-qr-code[data-qr-url*="telegram.me"],
html.ok-mini-app #webQrCodesContainer .local-qr-code[data-qr-url*="telegram.org"] {
    display: none !important;
}
