/* ================================================
   Somnia AI — Сонник AI
   Тёмная космическая тема с параллакс-звёздами
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-deep: #070416;
    --bg-mid: #0d0a2a;
    --bg-light: #1a0f3e;
    --accent-purple: #b14bf4;
    --accent-pink: #ff6ec7;
    --accent-blue: #7b61ff;
    --accent-cyan: #00d4ff;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(177, 75, 244, 0.18);
    --glass-glow: rgba(177, 75, 244, 0.12);
    --text-primary: #f0eaff;
    --text-secondary: #b8add9;
    --text-muted: #7a6e9e;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 80px rgba(177, 75, 244, 0.06);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Навигация ---------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(7, 4, 22, 0.85);
    border-bottom: 1px solid rgba(255, 110, 199, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-logo i {
    color: var(--accent-pink);
    font-size: 18px;
    text-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
}

.nav-logo-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link:active {
    background: rgba(255, 110, 199, 0.08);
    color: var(--accent-pink);
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--accent-pink);
    border-color: rgba(255, 110, 199, 0.3);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 24px 14px;
    gap: 2px;
    background: rgba(7, 4, 22, 0.95);
    border-bottom: 1px solid rgba(255, 110, 199, 0.08);
}

.nav-mobile.is-open {
    display: flex;
}

.nav-mobile-link {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-mobile-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Космический фон ---------- */
#space-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #1a0f3e 0%, #0d0a2a 50%, #070416 100%);
}

.stars-layer {
    position: absolute;
    inset: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(177, 75, 244, 0.4);
    animation: twinkle ease-in-out infinite;
}

#stars-layer-1 .star {
    width: 2px;
    height: 2px;
    opacity: 0.8;
}

#stars-layer-2 .star {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 110, 199, 0.5);
}

#stars-layer-3 .star {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 12px #fff, 0 0 24px var(--accent-cyan);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 0.9; transform: scale(1.1); }
}

/* ---------- Плавающие элементы ---------- */
#floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-el {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    animation: float-orbit linear infinite;
    filter: drop-shadow(0 0 10px rgba(177, 75, 244, 0.6));
    z-index: 1;
}

@keyframes float-orbit {
    0% {
        transform: translate(var(--start-x), var(--start-y)) rotate(var(--start-rot)) scale(0.85);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    20% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) rotate(var(--end-rot)) scale(1);
        opacity: 0;
    }
}

/* ---------- Метеоры (падающие кометы) ---------- */
.shooting-star {
    position: absolute;
    width: 180px;
    height: 2px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.9), var(--accent-cyan));
    border-radius: 2px;
    transform: rotate(-35deg);
    animation: shoot-comet linear forwards;
    pointer-events: none;
    z-index: 1;
}

.shooting-star::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-pink), 0 0 45px var(--accent-cyan);
}

@keyframes shoot-comet {
    0% {
        transform: translateX(0) translateY(0) rotate(-35deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-600px) translateY(600px) rotate(-35deg);
        opacity: 0;
    }
}

/* ---------- Туманность ---------- */
#space-bg::before,
#space-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.3;
    animation: nebula-pulse 6s ease-in-out infinite alternate;
}

#space-bg::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: -100px;
    right: -150px;
}

#space-bg::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue), transparent);
    bottom: -80px;
    left: -100px;
    animation-delay: 3s;
}

@keyframes nebula-pulse {
    0%   { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.15); }
}

/* ---------- Главный блок контента (максимум 1280px) ---------- */
#app {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.content-container,
.container {
    max-width: 1280px !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Hero ---------- */
#hero {
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 40px;
    width: 100%;
}

/* ---------- Логотип ---------- */
.logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    animation: fadeInDown 0.8s ease both;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 0 40px rgba(177, 75, 244, 0.3), 0 0 80px rgba(177, 75, 244, 0.1);
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0%   { box-shadow: 0 0 40px rgba(177, 75, 244, 0.3), 0 0 80px rgba(177, 75, 244, 0.1); }
    100% { box-shadow: 0 0 60px rgba(255, 110, 199, 0.4), 0 0 120px rgba(255, 110, 199, 0.15); }
}

.logo-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unique-subtitle {
    color: #00ffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* ---------- Блок формы ввода (внутри 1280px) ---------- */
.dream-form-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ---------- Переключатель режимов толкования (Мистический / Психологический) ---------- */
.interpretation-mode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.interpretation-mode-toggle {
    display: inline-flex;
    background: rgba(13, 10, 42, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 5px;
    gap: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 0 16px rgba(177, 75, 244, 0.05);
    max-width: 100%;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    position: relative;
    user-select: none;
    min-width: 190px;
}

.mode-btn i {
    font-size: 16px;
    margin-bottom: 4px;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.mode-btn .mode-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.mode-btn .mode-subtext {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    transition: color var(--transition-fast);
}

.mode-btn:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.mode-btn:hover:not(.active) i {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.mode-btn.active[data-mode="mystic"] {
    background: linear-gradient(135deg, rgba(177, 75, 244, 0.28), rgba(255, 110, 199, 0.28));
    border-color: rgba(177, 75, 244, 0.55);
    color: #fff;
    box-shadow: 0 0 20px rgba(177, 75, 244, 0.28);
}

.mode-btn.active[data-mode="mystic"] i {
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 110, 199, 0.7);
}

.mode-btn.active[data-mode="mystic"] .mode-subtext {
    color: rgba(255, 255, 255, 0.85);
}

.mode-btn.active[data-mode="psycho"] {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(123, 97, 255, 0.28));
    border-color: rgba(0, 212, 255, 0.55);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.28);
}

.mode-btn.active[data-mode="psycho"] i {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.mode-btn.active[data-mode="psycho"] .mode-subtext {
    color: rgba(255, 255, 255, 0.85);
}

#dream-form {
    width: 100%;
}

.input-group {
    position: relative;
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(177, 75, 244, 0.04);
}

.input-group:hover {
    border-color: rgba(177, 75, 244, 0.35);
}

.input-group:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 35px rgba(177, 75, 244, 0.22), inset 0 0 25px rgba(177, 75, 244, 0.06);
    background: rgba(255, 255, 255, 0.06);
}

.dream-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    padding: 4px 4px 10px;
    min-height: 85px;
}

.dream-input::placeholder {
    color: var(--text-muted);
    font-size: 16px;
    transition: opacity var(--transition-smooth);
}

.dream-input:focus::placeholder {
    opacity: 0.5;
}

.input-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(177, 75, 244, 0.12);
}

/* ---------- Кнопки ---------- */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.mic-btn {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 18px;
}

.mic-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.mic-btn.recording {
    background: rgba(255, 60, 60, 0.15);
    border-color: #ff3c3c;
    color: #ff3c3c;
    animation: mic-pulse 0.8s ease-in-out infinite;
}

.mic-btn.recording i {
    animation: mic-icon-pulse 0.8s ease-in-out infinite;
}

@keyframes mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.5), 0 0 20px rgba(255, 60, 60, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(255, 60, 60, 0), 0 0 40px rgba(255, 60, 60, 0.1);
        transform: scale(1.08);
    }
}

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

.submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

.submit-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 20px rgba(177, 75, 244, 0.35);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

/* ---------- История ---------- */
.history-section {
    width: 100%;
    max-width: 1280px;
    margin-top: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.history-title i {
    margin-right: 6px;
    color: var(--accent-purple);
}

.history-tabs {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: rgba(177, 75, 244, 0.2);
    color: var(--accent-purple);
}

.tab-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.fav-count {
    background: var(--accent-purple);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(177, 75, 244, 0.3);
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.history-item-date {
    font-size: 11px;
    color: var(--text-muted);
}

.history-item .fav-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-item .fav-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background: rgba(255, 110, 199, 0.08);
}

.history-item .fav-btn.is-fav {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.08);
}

.history-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Каталог символов (Азбука снов) ---------- */
.symbols-catalog-section {
    width: 100%;
    max-width: 1280px;
    margin-top: 44px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.symbols-header {
    margin-bottom: 20px;
}

.symbols-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.symbols-title-wrap i {
    color: var(--accent-pink);
    font-size: 20px;
}

.symbols-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.symbols-badge {
    background: linear-gradient(135deg, rgba(177, 75, 244, 0.25), rgba(255, 110, 199, 0.25));
    border: 1px solid rgba(177, 75, 244, 0.4);
    color: var(--accent-pink);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.symbols-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.symbol-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    outline: none;
}

.symbol-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(177, 75, 244, 0.12), rgba(0, 212, 255, 0.08));
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

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

.symbol-card:hover {
    transform: translateY(-3px);
    border-color: rgba(177, 75, 244, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(177, 75, 244, 0.18);
}

.symbol-card:active {
    transform: translateY(-1px) scale(0.99);
}

.symbol-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(177, 75, 244, 0.15), rgba(123, 97, 255, 0.15));
    border: 1px solid rgba(177, 75, 244, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-pink);
    flex-shrink: 0;
    transition: transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.symbol-card:hover .symbol-icon-box {
    transform: scale(1.08);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    box-shadow: 0 0 16px rgba(255, 110, 199, 0.4);
}

.symbol-info {
    flex: 1;
    min-width: 0;
}

.symbol-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.symbol-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.symbol-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.symbol-card:hover .symbol-arrow {
    transform: translateX(3px);
    color: var(--accent-cyan);
}

@media (min-width: 1024px) {
    .symbols-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 600px) {
    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .symbols-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Секция результата ---------- */
.result-section {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.result-container {
    max-width: 640px !important;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(177, 75, 244, 0.3) transparent;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.result-container::-webkit-scrollbar {
    width: 4px;
}

.result-container::-webkit-scrollbar-track {
    background: transparent;
}

.result-container::-webkit-scrollbar-thumb {
    background: rgba(177, 75, 244, 0.3);
    border-radius: 4px;
}

.result-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.cosmic-loader {
    text-align: center;
}

.loader-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(177, 75, 244, 0.1);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 4px;
}

.loader-ring:nth-child(2) {
    width: 32px;
    height: 32px;
    border-top-color: var(--accent-pink);
    animation-duration: 0.6s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 24px;
    height: 24px;
    border-top-color: var(--accent-cyan);
    animation-duration: 1s;
}

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

.loader-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.dots::after {
    content: '';
    animation: dots 1.4s steps(4) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}

/* ---------- Карточка результата ---------- */
.result-card {
    background: rgba(13, 10, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-card), 0 0 60px rgba(177, 75, 244, 0.06);
    animation: scaleIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.result-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.result-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-mode-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-pink);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.source-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.source-badge.llm {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.source-badge.dictionary {
    background: rgba(255, 110, 199, 0.15);
    color: var(--accent-pink);
}

.source-badge.cached {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
}

.result-mode-badge.psycho .source-badge.llm {
    background: rgba(123, 97, 255, 0.2);
    color: #b388ff;
}

.result-mode-badge.psycho {
    color: var(--accent-cyan);
}

.result-card .fav-btn {
    width: 38px;
    height: 38px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.result-card .fav-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

.result-card .fav-btn.is-fav {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.result-dream-text {
    margin-bottom: 12px;
}

.result-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

#result-dream-content {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 12px 0 16px;
}

.result-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.result-body p {
    margin-bottom: 12px;
}

.result-body strong {
    color: var(--accent-pink);
    font-weight: 600;
}

.result-body em {
    color: var(--accent-cyan);
    font-style: normal;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.primary-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.primary-btn:hover {
    filter: brightness(1.15);
}

.secondary-btn {
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ---------- Индикатор записи ---------- */
.recording-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 60, 60, 0.12);
    border: 1px solid rgba(255, 60, 60, 0.25);
    border-radius: 50px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.3s ease;
}

.recording-pulse {
    width: 10px;
    height: 10px;
    background: #ff3c3c;
    border-radius: 50%;
    animation: mic-pulse 0.8s ease-in-out infinite;
}

.hidden { display: none !important; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 12px 24px;
    background: rgba(13, 10, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
    text-align: center;
    max-width: 90vw;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ---------- Keyframes ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    #hero { padding-top: 90px; }
    .logo-icon { width: 72px; height: 72px; font-size: 32px; }
    .logo-title { font-size: 44px; }
    .logo-subtitle { font-size: 17px; }
    .dream-input { font-size: 17px; padding: 6px 8px 12px; }
    .submit-btn { padding: 12px 28px; font-size: 15px; }
    .result-card { padding: 36px 32px; }
}

@media (min-width: 1024px) {
    #hero { padding-top: 110px; }
    .logo-title { font-size: 50px; }
}

@media (max-width: 600px) {
    #hero { padding-top: 80px; }
    .interpretation-mode-toggle {
        width: 100%;
    }
    .mode-btn {
        min-width: 0;
        flex: 1;
        padding: 8px 10px;
    }
    .mode-btn .mode-text {
        font-size: 12px;
    }
    .mode-btn .mode-subtext {
        font-size: 10px;
    }
}

@media (max-height: 700px) {
    #hero { padding-top: 60px; }
    .logo-wrapper { margin-bottom: 20px; }
    .logo-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 8px; }
    .logo-title { font-size: 28px; }
    .history-section { margin-top: 20px; }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-deep: #070416;
        --bg-mid: #0d0a2a;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Error state ---------- */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--accent-pink);
    font-size: 15px;
    line-height: 1.6;
}

.error-message i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

/* ---------- Возможности ---------- */
.features-section {
    width: 100%;
    max-width: 1280px;
    margin-top: 48px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.features-header {
    margin-bottom: 24px;
}

.features-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.features-title-wrap i {
    color: var(--accent-pink);
    font-size: 22px;
}

.features-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.features-badge {
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.2), rgba(177, 75, 244, 0.2));
    border: 1px solid rgba(255, 110, 199, 0.3);
    color: var(--accent-pink);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 110, 199, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 110, 199, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 110, 199, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 110, 199, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.12), rgba(177, 75, 244, 0.12));
    border: 1px solid rgba(255, 110, 199, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-pink);
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.3);
}

.feature-card-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .features-section {
        margin-top: 36px;
    }
    .features-title {
        font-size: 17px;
    }
    .feature-card {
        padding: 20px 16px;
    }
}

/* ---------- FAQ: Как понимать сны? (Аккордеон) ---------- */
.faq-section {
    width: 100%;
    max-width: 1280px;
    margin-top: 48px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.faq-header {
    margin-bottom: 24px;
}

.faq-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.faq-title-wrap i {
    color: var(--accent-cyan);
    font-size: 22px;
}

.faq-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 97, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Список вопросов ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ---------- Элемент аккордеона ---------- */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.faq-item.is-open {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.08), 0 0 40px rgba(123, 97, 255, 0.04);
}

/* ---------- Кнопка вопроса ---------- */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    outline: none;
    transition: color var(--transition-fast), background var(--transition-fast);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

.faq-item.is-open .faq-question {
    color: var(--accent-cyan);
}

/* ---------- Иконка шеврона ---------- */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-muted);
    transition: transform var(--transition-smooth), color var(--transition-fast), background var(--transition-fast);
}

.faq-icon i {
    font-size: 14px;
    transition: transform var(--transition-smooth);
}

.faq-item.is-open .faq-icon {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.faq-item.is-open .faq-icon i {
    transform: rotate(180deg);
}

/* ---------- Ответ (спойлер) ---------- */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 20px;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-answer-inner p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-bottom: 18px;
    padding-top: 2px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ---------- Анимация появления секции ---------- */
@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: faqFadeIn 0.5s ease both;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.10s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.20s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.30s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.40s; }

/* ---------- Responsive FAQ ---------- */
@media (max-width: 600px) {
    .faq-section {
        margin-top: 36px;
        margin-bottom: 40px;
    }

    .faq-title {
        font-size: 17px;
    }

    .faq-subtitle {
        font-size: 13px;
    }

    .faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-answer-inner p {
        font-size: 13px;
        line-height: 1.7;
        padding-bottom: 14px;
    }
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 22px;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 24px;
    }

    .faq-answer {
        padding: 0 24px;
    }
}

/* ---------- Модальное окно политики конфиденциальности ---------- */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.privacy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 4, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy-modal-card {
    position: relative;
    z-index: 1;
    background: rgba(13, 10, 42, 0.98);
    border: 1px solid rgba(255, 110, 199, 0.15);
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 110, 199, 0.04);
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 110, 199, 0.2) transparent;
}

.privacy-modal-card::-webkit-scrollbar {
    width: 4px;
}

.privacy-modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 110, 199, 0.2);
    border-radius: 4px;
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 110, 199, 0.08);
}

.privacy-modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.15), rgba(177, 75, 244, 0.15));
    border: 1px solid rgba(255, 110, 199, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-pink);
    flex-shrink: 0;
}

.privacy-modal-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.privacy-modal-close {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.privacy-modal-close:hover {
    background: rgba(255, 110, 199, 0.1);
    border-color: rgba(255, 110, 199, 0.3);
    color: var(--accent-pink);
}

.privacy-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.privacy-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-section h3 i {
    color: var(--accent-pink);
    font-size: 15px;
}

.privacy-section p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 24px;
}

.privacy-section a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

.privacy-modal-footer {
    padding: 12px 24px 20px;
    display: flex;
    justify-content: flex-end;
}

.privacy-modal-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.privacy-modal-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 20px rgba(177, 75, 244, 0.35);
}

/* ---------- Футер ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(7, 4, 22, 0.65);
    border-top: 1px solid rgba(255, 110, 199, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 20px;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255, 110, 199, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo i {
    font-size: 22px;
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(255, 110, 199, 0.4);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    padding: 4px 0;
}

.footer-link i {
    color: var(--accent-pink);
    font-size: 14px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 110, 199, 0.2);
}

.footer-link:hover i {
    opacity: 1;
}

.footer-feedback {
    text-align: center;
}

.footer-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.12), rgba(177, 75, 244, 0.12));
    border: 1px solid rgba(255, 110, 199, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-pink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.footer-feedback-btn i {
    font-size: 16px;
}

.footer-feedback-btn:hover {
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.2), rgba(177, 75, 244, 0.2));
    border-color: rgba(255, 110, 199, 0.4);
    box-shadow: 0 0 24px rgba(255, 110, 199, 0.15);
    transform: translateY(-1px);
}

.footer-feedback-btn:active {
    transform: scale(0.97);
}

.footer-email {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 110, 199, 0.15), transparent);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ---------- Адаптивность футера ---------- */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
        padding: 48px 32px 28px;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .footer-desc {
        margin: 0;
    }

    .footer-links {
        align-items: flex-start;
        justify-content: center;
    }

    .footer-feedback {
        text-align: right;
    }

    .footer-feedback-btn {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .footer-content {
        padding: 32px 20px 20px;
        gap: 22px;
    }

    .footer-logo-text {
        font-size: 18px;
    }

    .footer-logo i {
        font-size: 18px;
    }

    .footer-feedback-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}
