/* ============================================================
   NEXUS PSI — Психотерапевтична дизайн-система
   Палітра: base.md §5.2 — Designing for the Depleted Brain
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    /* --- Калібрована палітра (base.md §5.2) --- */
    --bg-dark:         #121212;         /* Soft Black / Charcoal */
    --bg-surface:      #1a1a1f;         /* Піднята поверхня */
    --bg-card:         rgba(26, 26, 31, 0.85);
    --bg-card-hover:   rgba(32, 32, 40, 0.95);

    --text-main:       #E0D5C8;         /* Warm Beige / Off-White */
    --text-muted:      #9A8F88;         /* Приглушений текст */
    --text-subtle:     #736668;         /* Pink Ash Brown */

    --teal:            #54A8AB;         /* Matte Teal — CTA */
    --teal-glow:       rgba(84, 168, 171, 0.25);
    --teal-dim:        rgba(84, 168, 171, 0.12);

    --blue:            #566596;         /* Clear Winter Blue — secondary */
    --blue-glow:       rgba(86, 101, 150, 0.25);
    --blue-dim:        rgba(86, 101, 150, 0.10);

    --indigo:          #382A5E;         /* Aesthetic Indigo — depth */
    --indigo-glow:     rgba(56, 42, 94, 0.6);

    --ash:             #736668;         /* Pink Ash Brown — dividers */
    --berry:           #822659;         /* Muted Berry — stop/delete */
    --berry-glow:      rgba(130, 38, 89, 0.3);

    /* --- Типографіка --- */
    --font-body:       'Inter', sans-serif;
    --font-display:    'Space Grotesk', sans-serif;

    /* --- Анімації (base.md §5.3: 200–400ms) --- */
    --ease-smooth:     cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:        200ms;
    --dur-normal:      300ms;
    --dur-slow:        400ms;

    /* --- Радіус --- */
    --r-sm: 8px;
    --r-md: 14px;
    --accent:          #822659;         /* Muted Berry */

    /* --- Orb specific --- */
    --orb-indigo:      rgba(56, 42, 94, 0.8);
    --orb-teal:        rgba(84, 168, 171, 0.4);
    --r-xl: 28px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* Silence Room lock — hide scroll */
body.silence-active {
    overflow: hidden;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.custom-cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--teal);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width var(--dur-fast) var(--ease-smooth),
                height var(--dur-fast) var(--ease-smooth),
                background-color var(--dur-fast) var(--ease-smooth),
                border-color var(--dur-fast) var(--ease-smooth);
    mix-blend-mode: difference;
}
.custom-cursor.hovering {
    width: 36px;
    height: 36px;
    background-color: rgba(84, 168, 171, 0.08);
}

/* ============================================================
   AMBIENT PARTICLES BACKGROUND
   ============================================================ */
#particles-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(56, 42, 94, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(84, 168, 171, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(86, 101, 150, 0.10) 0%, transparent 60%),
        #121212;
}

/* Floating orbs */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float-orb 20s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.15;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--indigo);
    top: -100px; left: -100px;
    animation-duration: 25s;
}
.orb-2 {
    width: 300px; height: 300px;
    background: var(--teal);
    bottom: -80px; right: -80px;
    animation-duration: 18s;
    animation-delay: -8s;
}
.orb-3 {
    width: 200px; height: 200px;
    background: var(--blue);
    top: 50%; left: 60%;
    animation-duration: 22s;
    animation-delay: -12s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 15px) scale(0.95); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 500;
    transition: padding var(--dur-normal) var(--ease-smooth);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-psi {
    color: var(--teal);
    font-size: 1.6rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: all var(--dur-normal) var(--ease-smooth);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}
.nav-btn.active {
    color: var(--teal);
    background: var(--teal-dim);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.volume-control-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    transition: width var(--dur-normal) var(--ease-smooth), opacity var(--dur-normal);
    opacity: 0;
}
.nav-right:hover .volume-control-wrap,
.volume-control-wrap:focus-within {
    width: 100px;
    opacity: 1;
}
.nav-volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}
.nav-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    box-shadow: 0 0 5px var(--teal-glow);
}

.audio-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--dur-normal) var(--ease-smooth);
}
.audio-btn:hover {
    color: var(--text-main);
    border-color: rgba(84, 168, 171, 0.3);
    background: var(--teal-dim);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main {
    padding: 110px 24px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    display: none;
    animation: section-in var(--dur-slow) var(--ease-smooth) forwards;
}
.section.active { display: block; }

@keyframes section-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO (THEORY)
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
    min-height: 60vh;
}

.hero-content { flex: 1; }

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
    opacity: 0.9;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-main);
}

.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch-text:hover::before {
    color: var(--teal);
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    transform: translateX(-3px);
    opacity: 0.6;
    animation: glitch-a 0.3s steps(2) forwards;
}
.glitch-text:hover::after {
    color: var(--blue);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    transform: translateX(3px);
    opacity: 0.5;
    animation: glitch-b 0.3s steps(2) forwards;
}
@keyframes glitch-a {
    0%, 100% { clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translateX(-3px); }
    50% { clip-path: polygon(0 20%, 100% 20%, 100% 60%, 0 60%); transform: translateX(3px); }
}
@keyframes glitch-b {
    0%, 100% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
}

.subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.4;
}
.highlight { color: var(--teal); font-weight: 600; font-style: italic; }

.intro-typewriter {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
    font-weight: 300;
}

.hero-image-wrap {
    position: relative;
    width: 280px; height: 280px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

.glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(84, 168, 171, 0.2);
    animation: ring-pulse 4s ease-in-out infinite alternate;
}
.glow-ring-2 {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(86, 101, 150, 0.12);
    animation: ring-pulse 4s ease-in-out infinite alternate-reverse;
}
@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

.glow-orb {
    position: absolute;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(56, 42, 94, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-breathe 6s ease-in-out infinite;
}
@keyframes orb-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.avatar {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative; z-index: 2;
    border: 2px solid rgba(84, 168, 171, 0.3);
    box-shadow: 0 0 40px rgba(56, 42, 94, 0.6),
                0 0 80px rgba(84, 168, 171, 0.08);
}

/* ============================================================
   THEORY CARDS
   ============================================================ */
.content-blocks {
    display: grid;
    gap: 40px;
    position: relative;
    padding-left: 20px;
}
/* Narrative path thread */
.content-blocks::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, 
        rgba(84, 168, 171, 0) 0%, 
        var(--teal) 10%, 
        var(--blue) 35%, 
        var(--indigo) 65%, 
        var(--accent) 90%,
        rgba(130, 38, 89, 0) 100%);
    opacity: 0.4;
}

/* Milestones */
.card::after {
    content: '';
    position: absolute;
    left: -24.5px; top: 44px;
    width: 11px; height: 11px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--teal-glow);
    z-index: 5;
    transition: all var(--dur-normal) var(--ease-smooth);
    border: 2px solid var(--bg-dark);
}
.card.visible::after {
    animation: milestone-pulse 3s infinite ease-in-out;
}
@keyframes milestone-pulse {
    0%, 100% { box-shadow: 0 0 10px currentColor; transform: scale(1); }
    50% { box-shadow: 0 0 20px currentColor; transform: scale(1.2); }
}
.card-blue::after { background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.card-indigo::after { background: var(--indigo); box-shadow: 0 0 10px var(--indigo-glow); }
.card-berry::after { background: var(--accent); box-shadow: 0 0 10px rgba(130, 38, 89, 0.4); }
.card-warning::after { background: #b8860b; box-shadow: 0 0 10px rgba(184, 134, 11, 0.4); }

.card:hover::after {
    transform: scale(1.5);
    box-shadow: 0 0 20px currentColor;
}

/* Staggered entry */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }

.card {
    background: var(--bg-card);
    padding: 36px 40px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    transition: transform var(--dur-normal) var(--ease-smooth),
                box-shadow var(--dur-normal) var(--ease-smooth),
                border-color var(--dur-normal) var(--ease-smooth),
                background var(--dur-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--teal), transparent);
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease-smooth);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 24px var(--teal-glow);
    border-color: rgba(84, 168, 171, 0.15);
    background: var(--bg-card-hover);
}
.card:hover::before { opacity: 1; }

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-blue h3 { color: var(--blue); }
.card-indigo h3 { color: var(--indigo); }
.card-berry h3 { color: #fde; }
.card-warning h3 { color: #d4a017; }

.chapter-badge {
    position: absolute;
    top: 24px; right: 30px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-subtle);
    font-weight: 600;
}

.insight-box {
    margin-top: 28px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--teal);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
    transition: background var(--dur-normal) var(--ease-smooth);
}
.card-blue .insight-box { border-left-color: var(--blue); }
.card-indigo .insight-box { border-left-color: var(--indigo); }
.card-berry .insight-box { border-left-color: var(--accent); }
.card-warning .insight-box { border-left-color: #b8860b; }

.card:hover .insight-box {
    background: rgba(255,255,255,0.05);
}

.card p {
    color: #B8B0A8;
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 10px;
}
.card p:last-child { margin-bottom: 0; }

.highlight-card {
    border-color: rgba(130, 38, 89, 0.25);
    background: rgba(130, 38, 89, 0.05);
}
.highlight-card::before {
    background: linear-gradient(to bottom, var(--berry), transparent);
}
.highlight-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 24px var(--berry-glow);
    border-color: rgba(130, 38, 89, 0.35);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header .eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
    opacity: 0.8;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header h2 .psi { color: var(--teal); }
.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   LAB GRID (existing tools)
   ============================================================ */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lab-tool {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    transition: border-color var(--dur-normal) var(--ease-smooth),
                box-shadow var(--dur-normal) var(--ease-smooth);
}
.lab-tool:hover {
    border-color: rgba(84, 168, 171, 0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tool-icon { font-size: 2.4rem; margin-bottom: 14px; }
.lab-tool h3 {
    font-family: var(--font-display);
    color: var(--teal);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}
.lab-tool > p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.tool-content {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.action-btn {
    width: 100%;
    padding: 11px 20px;
    border-radius: var(--r-sm);
    border: none;
    background: linear-gradient(135deg, var(--teal), #3d8a8d);
    color: #0e2424;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--dur-normal) var(--ease-smooth);
    letter-spacing: 0.2px;
}
.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--teal-glow);
    background: linear-gradient(135deg, #62c0c3, var(--teal));
}
.action-btn:active { transform: translateY(0); }
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--berry), #6a1d48);
    color: #fde;
}
.btn-danger:hover {
    box-shadow: 0 6px 20px var(--berry-glow);
    background: linear-gradient(135deg, #9e2f6a, var(--berry));
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
    box-shadow: none;
}

.btn-ghost {
    background: var(--teal-dim);
    border: 1px solid rgba(84, 168, 171, 0.2);
    color: var(--teal);
}
.btn-ghost:hover {
    background: rgba(84, 168, 171, 0.2);
    box-shadow: 0 4px 14px var(--teal-glow);
}

.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }

/* ============================================================
   FEEDBACK BLOCK
   ============================================================ */
.tool-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--teal-dim);
    border-left: 2px solid var(--teal);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 0.875rem;
    color: #B8D8D9;
    line-height: 1.6;
    animation: fade-in-up var(--dur-slow) var(--ease-smooth) forwards;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SIMULATOR OK (existing)
   ============================================================ */
.chat-mockup {
    background: rgba(0,0,0,0.4);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}
.msg {
    padding: 9px 14px;
    border-radius: 18px;
    margin-bottom: 8px;
    width: fit-content;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 85%;
}
.msg.sent {
    background: linear-gradient(135deg, var(--blue), #3d4d7a);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    color: #e8ecf5;
}
.msg.received {
    background: rgba(255,255,255,0.08);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}
.p-hidden { opacity: 0; transition: opacity var(--dur-normal) var(--ease-smooth); }

/* ============================================================
   BREATHE ANIMATION (existing)
   ============================================================ */
.breathe-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.breathe-circle {
    width: 90px; height: 90px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    transition: transform 4s ease-in-out, background var(--dur-slow);
    background: transparent;
    box-shadow: 0 0 20px transparent;
}
.breathe-circle.inhale {
    transform: scale(1.8);
    background: rgba(84, 168, 171, 0.12);
    box-shadow: 0 0 30px var(--teal-glow);
}
.breathe-circle.exhale {
    transform: scale(1);
    background: transparent;
}
.breathe-instruction {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    min-height: 24px;
    transition: opacity var(--dur-normal);
}

/* ============================================================
   VAULT (existing)
   ============================================================ */
textarea {
    width: 100%;
    height: 85px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-main);
    padding: 12px;
    border-radius: var(--r-sm);
    resize: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
    transition: border-color var(--dur-normal) var(--ease-smooth);
}
textarea:focus {
    outline: none;
    border-color: rgba(84, 168, 171, 0.35);
    box-shadow: 0 0 0 3px var(--teal-dim);
}
textarea::placeholder { color: var(--text-subtle); }

.vault-status {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
}
.lock-icon { font-size: 2rem; }

/* ============================================================
   RADAR (existing)
   ============================================================ */
.radar-options { display: flex; gap: 10px; margin-top: 14px; }
.radar-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--dur-normal) var(--ease-smooth);
    line-height: 1.4;
}
.radar-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-main); }
.radar-btn.their-emotion:hover { border-color: rgba(84, 168, 171, 0.35); }
.radar-btn.my-emotion:hover { border-color: rgba(130, 38, 89, 0.4); }

/* ============================================================
   BATTERY (existing)
   ============================================================ */
.battery-visual {
    width: 100%;
    height: 28px;
    background: rgba(0,0,0,0.4);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}
.battery-level {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #7ed9db);
    display: flex; align-items: center; justify-content: center;
    color: #0e2424;
    font-weight: 700;
    font-size: 0.75rem;
    transition: width 0.6s var(--ease-smooth), background 0.6s;
    min-width: 40px;
}
.battery-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bat-btn {
    padding: 8px 6px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-family: var(--font-body);
    transition: all var(--dur-fast) var(--ease-smooth);
    line-height: 1.4;
}
.bat-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.bat-btn.drain:hover { border-color: rgba(130, 38, 89, 0.35); }
.bat-btn.charge:hover { border-color: rgba(84, 168, 171, 0.35); }

/* ============================================================
   MODULE: EMOTIONAL RADAR (NEW)
   ============================================================ */
#radar-module .section-header { margin-bottom: 40px; }

.radar-module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.emotion-check-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.emotion-check-card .question {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
}
.emotion-check-card .question span { color: var(--teal); }

/* Slider */
.slider-wrap { display: flex; flex-direction: column; gap: 10px; }
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-subtle);
}
.emotion-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--teal) 0%, var(--teal) 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.emotion-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal-glow);
    cursor: grab;
    transition: transform var(--dur-fast) var(--ease-bounce);
}
.emotion-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}
.emotion-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal-glow);
    border: none;
    cursor: grab;
}

.slider-result {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 20px;
    transition: color var(--dur-normal);
}

/* Grounding protocol */
.grounding-protocol {
    background: linear-gradient(135deg, rgba(56, 42, 94, 0.3), rgba(84, 168, 171, 0.05));
    border: 1px solid rgba(86, 101, 150, 0.2);
    border-radius: var(--r-lg);
    padding: 32px;
    display: none;
    flex-direction: column;
    gap: 20px;
}
.grounding-protocol.active { display: flex; animation: fade-in-up var(--dur-slow) var(--ease-smooth) forwards; }
.grounding-protocol h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--blue); }
.grounding-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.grounding-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.grounding-steps li:last-child { border-bottom: none; }
.step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue-dim);
    border: 1px solid rgba(86, 101, 150, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--blue);
    font-weight: 600;
    flex-shrink: 0;
}

/* Separation affirmations */
.affirmation-deck {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.04);
}
.affirmation-deck h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}
.affirmation-display {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    min-height: 80px;
    display: flex; align-items: center;
    font-style: italic;
    font-weight: 300;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
}
.affirmation-display span { color: var(--teal); font-style: normal; font-weight: 500; }

/* ============================================================
   MODULE: DECONSTRUCTOR (NEW — КПТ Wizard)
   ============================================================ */
.wizard-container {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 48px;
    border: 1px solid rgba(255,255,255,0.04);
    max-width: 760px;
    margin: 0 auto;
}

/* Progress */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}
.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
    z-index: 0;
}
.progress-step:last-child::after { display: none; }
.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    color: var(--text-subtle);
    z-index: 1;
    transition: all var(--dur-normal) var(--ease-smooth);
    font-weight: 600;
}
.step-label {
    font-size: 0.65rem;
    color: var(--text-subtle);
    letter-spacing: 0.5px;
    text-align: center;
    transition: color var(--dur-normal);
}
.progress-step.active .step-dot {
    border-color: var(--teal);
    background: var(--teal-dim);
    color: var(--teal);
    box-shadow: 0 0 12px var(--teal-glow);
}
.progress-step.active .step-label { color: var(--teal); }
.progress-step.done .step-dot {
    border-color: var(--teal);
    background: var(--teal);
    color: #0e2424;
}
.progress-step.done .step-label { color: var(--text-muted); }

/* Wizard steps */
.wizard-step { display: none; animation: fade-in-up var(--dur-slow) var(--ease-smooth) forwards; }
.wizard-step.active { display: block; }

.step-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 600;
}
.step-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.thought-input {
    width: 100%;
    min-height: 100px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    padding: 16px;
    border-radius: var(--r-md);
    resize: none;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
    margin-bottom: 20px;
}
.thought-input:focus {
    outline: none;
    border-color: rgba(84, 168, 171, 0.35);
    box-shadow: 0 0 0 3px var(--teal-dim);
}
.thought-input::placeholder { color: var(--text-subtle); font-style: italic; }

/* Distortion tags */
.distortion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.distortion-tag {
    padding: 20px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-smooth);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.distortion-tag .tag-name {
    font-size: 1rem;
    color: var(--teal);
    font-weight: 500;
    display: block;
    font-family: var(--font-display);
}
.distortion-tag .tag-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
}
.distortion-tag:hover {
    border-color: rgba(84, 168, 171, 0.2);
    background: rgba(84, 168, 171, 0.05);
    transform: translateY(-2px);
}
.distortion-tag.selected {
    border-color: var(--teal);
    background: var(--teal-dim);
    box-shadow: 0 0 20px var(--teal-glow);
}
.distortion-tag.selected .tag-name { color: var(--text-main); }
.distortion-tag.selected .tag-desc { color: var(--text-main); opacity: 0.8; }

/* Fact-check questions */
.factcheck-questions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.fq-item { display: flex; flex-direction: column; gap: 8px; }
.fq-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.fq-input {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-sm);
    color: var(--text-main);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--dur-normal);
}
.fq-input:focus { outline: none; border-color: rgba(84,168,171,.3); }
.fq-input::placeholder { color: var(--text-subtle); }

/* Result card */
.result-card {
    background: linear-gradient(135deg, rgba(56, 42, 94, 0.3), rgba(84, 168, 171, 0.06));
    border: 1px solid rgba(84, 168, 171, 0.15);
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.result-original {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.result-thought {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    padding-left: 12px;
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.result-transform-label {
    font-size: 0.8rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.result-new {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    padding-left: 12px;
    border-left: 2px solid var(--teal);
}
.defusion-row {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 20px;
}
.defusion-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    transition: background var(--dur-fast);
}
.defusion-item:hover { background: rgba(84, 168, 171, 0.05); }
.defusion-item strong { color: var(--teal); }

.wizard-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
}
.wizard-nav .action-btn { flex: 1; }
.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 11px 20px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--dur-fast) var(--ease-smooth);
    flex: 0 0 auto;
    min-width: 90px;
}
.btn-back:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

/* ============================================================
   MODULE: ACTION LAB (оновлений)
   ============================================================ */
.action-lab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Micro-action timer */
.micro-action-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex; flex-direction: column; gap: 20px;
}
.micro-action-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--teal);
    font-weight: 500;
}
.task-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-sm);
    color: var(--text-main);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    transition: border-color var(--dur-normal);
}
.task-input:focus { outline: none; border-color: rgba(84,168,171,.35); }
.task-input::placeholder { color: var(--text-subtle); }

.timer-display {
    text-align: center;
    padding: 28px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,0.05);
}
.timer-ring {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 12px;
}
.timer-ring svg {
    transform: rotate(-90deg);
    width: 120px; height: 120px;
}
.timer-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 4; }
.timer-ring .ring-progress {
    fill: none;
    stroke: var(--teal);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px var(--teal));
}
.timer-time {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 600;
}
.timer-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Gallery */
.gallery-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex; flex-direction: column; gap: 16px;
}
.gallery-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}
.gallery-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-subtle);
    font-size: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.07);
    border-radius: var(--r-md);
    line-height: 1.7;
}
.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.gallery-list::-webkit-scrollbar { width: 4px; }
.gallery-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.gallery-item {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--r-sm);
    border-left: 2px solid var(--teal);
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    animation: fade-in-up var(--dur-slow) var(--ease-smooth) forwards;
}
.gallery-item .item-text { flex: 1; line-height: 1.5; }
.gallery-item .item-time {
    font-size: 0.68rem;
    color: var(--text-subtle);
    flex-shrink: 0;
}

/* Extra lab tools row */
.lab-tools-row {
    margin-top: 24px;
}

/* ============================================================
   MODULE: SILENCE ROOM (NEW)
   ============================================================ */
#silence-room {
    position: relative;
}

.silence-inner {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    text-align: center;
    position: relative;
}

.silence-orb-wrap {
    position: relative;
    width: 180px; height: 180px;
    display: flex; align-items: center; justify-content: center;
}

.silence-orb {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 42, 94, 0.7) 0%, rgba(84, 168, 171, 0.15) 60%, transparent 100%);
    border: 1px solid rgba(84, 168, 171, 0.2);
    animation: silence-breathe 8s ease-in-out infinite;
}

.silence-ring-1 {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(84, 168, 171, 0.1);
    animation: silence-ring 8s ease-in-out infinite;
}
.silence-ring-2 {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(86, 101, 150, 0.07);
    animation: silence-ring 8s ease-in-out infinite 0.5s;
}

@keyframes silence-breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(84, 168, 171, 0.1);
    }
    50% {
        transform: scale(1.5);
        box-shadow: 0 0 60px rgba(84, 168, 171, 0.2), 0 0 100px rgba(56, 42, 94, 0.2);
    }
}
@keyframes silence-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.silence-phase {
    font-size: 0.85rem;
    color: var(--text-subtle);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    min-height: 20px;
    transition: opacity 1s;
}
.silence-mantra {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 300;
    font-style: italic;
    max-width: 420px;
    line-height: 1.8;
    opacity: 0.8;
}

.silence-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 360px;
}

.noise-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.noise-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-subtle);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--dur-normal) var(--ease-smooth);
}
.noise-btn:hover { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.noise-btn.active {
    border-color: rgba(84, 168, 171, 0.35);
    background: var(--teal-dim);
    color: var(--teal);
}

.silence-exit {
    position: absolute;
    top: 0; right: 0;
}

/* Full-screen silence */
.silence-fullscreen {
    position: fixed;
    inset: 0;
    background: #0a0a0c;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}
.silence-fullscreen.active {
    opacity: 1;
    pointer-events: all;
}
.silence-fullscreen .silence-orb-wrap {
    width: 240px; height: 240px;
}
.silence-fullscreen .silence-orb {
    width: 140px; height: 140px;
}
.silence-fullscreen .silence-exit {
    position: absolute;
    top: 32px; right: 32px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-smooth),
                transform 0.7s var(--ease-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 80px;
    color: var(--text-subtle);
    font-size: 0.85rem;
}
footer strong { color: var(--teal); font-weight: 500; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: rgba(84, 168, 171, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(84, 168, 171, 0.5); }

/* ============================================================
   ORB BUTTON (AVATAR STYLE)
   ============================================================ */
.orb-nav-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.orb-start-btn {
    position: relative;
    width: 120px;
    height: 120px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-normal) var(--ease-bounce);
    outline: none;
}

.orb-start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--orb-indigo) 0%, var(--orb-teal) 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(5px);
    animation: orb-btn-pulse 3s infinite ease-in-out;
    border: 1px solid rgba(84, 168, 171, 0.4);
    z-index: 1;
}

.orb-start-btn:hover {
    transform: scale(1.1);
}

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

.orb-start-btn .btn-psi {
    font-size: 2.8rem;
    color: var(--text-main);
    z-index: 2;
    font-family: var(--font-display);
    text-shadow: 0 0 15px var(--teal);
    animation: orb-psi-glow 3s infinite ease-in-out;
}

.orb-label {
    position: absolute;
    bottom: -32px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0.8;
}

@keyframes orb-btn-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(84, 168, 171, 0.2); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(84, 168, 171, 0.5), 0 0 60px rgba(56, 42, 94, 0.4); }
}

@keyframes orb-psi-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 25px var(--teal), 0 0 40px var(--blue); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav-links { gap: 6px; overflow-x: auto; padding-bottom: 4px; padding-top: 4px; -webkit-overflow-scrolling: touch; width: 100%; justify-content: flex-start; }
    .nav-btn { font-size: 0.75rem; padding: 5px 8px; flex-shrink: 0; }
    .logo { font-size: 1rem; margin-right: 15px; }
    .content-blocks { padding-left: 15px; gap: 30px; }
    .content-blocks::before { left: -5px; }
    .hero { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero-image-wrap { width: 200px; height: 200px; }
    .intro-typewriter { margin: 0 auto; }

    .wizard-container { padding: 28px 20px; }
    .distortion-grid { grid-template-columns: 1fr; }
    .radar-module-grid { grid-template-columns: 1fr; }
    .action-lab-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .glass-nav { padding: 14px 20px; }
    .nav-links { gap: 2px; }
    .nav-btn { font-size: 0.78rem; padding: 6px 10px; }

    main { padding: 90px 16px 60px; }

    .hero { flex-direction: column-reverse; text-align: center; gap: 32px; }
    .hero-image-wrap { width: 200px; height: 200px; }
    .intro-typewriter { margin: 0 auto; }

    .wizard-container { padding: 28px 20px; }
    .distortion-grid { grid-template-columns: 1fr; }
    .wizard-progress { gap: 0; }
    .step-label { display: none; }

    .emotion-check-card { padding: 24px; }
    .silence-inner { gap: 32px; }
}

@media (max-width: 480px) {
    .lab-grid { grid-template-columns: 1fr; }
    .radar-options { flex-direction: column; }
    .battery-actions { grid-template-columns: 1fr; }
    .noise-selector { gap: 6px; }
}
