.eq-training-page {
    --bg: #050908;
    --bg-card: rgba(13, 23, 18, 0.82);
    --bg-card-hover: rgba(16, 28, 23, 0.92);
    --green: #12E68A;
    --green-bright: #8BFFD0;
    --green-dim: rgba(18, 230, 138, 0.09);
    --green-glow: rgba(18, 230, 138, 0.28);
    --white: #F4F7F5;
    --gray: #A7B2AD;
    --gray-dim: #64746d;
    --border: rgba(18, 230, 138, 0.14);
    --border-bright: rgba(18, 230, 138, 0.32);
    --radius: 22px;
    --radius-sm: 14px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050908;
}

.eq-training-page::before {
    background:
        radial-gradient(circle at 20% -10%, rgba(18, 230, 138, 0.16), transparent 34%),
        radial-gradient(circle at 88% 6%, rgba(139, 255, 208, 0.08), transparent 28%),
        radial-gradient(circle at 76% 116%, rgba(18, 230, 138, 0.10), transparent 35%),
        linear-gradient(180deg, #050908 0%, #07110D 44%, #050908 100%);
}

.eq-training-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image: radial-gradient(rgba(139, 255, 208, 0.24) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 68%);
}

.eq-training-page .container {
    max-width: 1180px;
    padding-top: 34px;
}

.eq-training-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.015em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.eq-training-page .btn-primary {
    background: linear-gradient(135deg, #12E68A 0%, #37F5A6 52%, #8BFFD0 100%);
    color: #03100A;
    box-shadow: 0 0 24px rgba(18, 230, 138, 0.22);
}

.eq-training-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(18, 230, 138, 0.34);
}

.eq-training-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.eq-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #F4F7F5;
    text-decoration: none;
    filter: drop-shadow(0 0 18px rgba(18, 230, 138, 0.12));
}

.eq-brand-logo img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    mix-blend-mode: screen;
}

.eq-brand-word {
    display: grid;
    gap: 1px;
    font: 800 0.96rem/1 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.eq-brand-word em {
    color: #12E68A;
    font-style: normal;
}

.eq-brand-word small {
    color: #E9EFEC;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.eq-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.eq-subnav a {
    color: var(--gray);
    text-decoration: none;
    border: 1px solid rgba(18, 230, 138, 0.12);
    padding: 10px 14px;
    border-radius: 999px;
    font: 800 0.75rem/1 'Space Grotesk', sans-serif;
    letter-spacing: 0.03em;
    transition: 0.2s ease;
    background: rgba(13, 23, 18, 0.52);
}

.eq-subnav a:hover,
.eq-subnav a.active {
    color: #03110b;
    background: var(--green);
    border-color: var(--green);
}

.eq-contest-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 196, 87, 0.16);
    color: #FFD98A;
    font: 800 0.72rem/1 'Space Grotesk', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}





.app-view {
    min-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

.app-view.view-enter {
    animation: viewEnter 0.28s ease;
}

.app-view h1[tabindex="-1"]:focus,
.app-view h2[tabindex="-1"]:focus {
    outline: none;
}

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

.eq-grid {
    display: grid;
    gap: 14px;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dashboard-top-grid--focus {
    align-items: stretch;
}

.dashboard-start-card,
.dashboard-contest-card {
    min-height: 188px;
    isolation: isolate;
}

.dashboard-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    color: #BFEFDB;
    font: 700 0.74rem/1 'Space Grotesk', sans-serif;
}

.dashboard-quick-stats span {
    border: 1px solid rgba(18, 230, 138, 0.14);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.045);
}

.dashboard-contest-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 196, 87, 0.42);
    border-radius: 22px;
    padding: 20px;
    background:
        radial-gradient(circle at 6% 0%, rgba(255, 196, 87, 0.25), transparent 40%),
        radial-gradient(circle at 92% 8%, rgba(18, 230, 138, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(30, 22, 9, 0.96), rgba(8, 14, 11, 0.9));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32), 0 0 34px rgba(255, 196, 87, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.dashboard-contest-card h3 {
    margin: 0;
    color: #F4F7F5;
    font: 800 clamp(1.08rem, 2vw, 1.42rem) / 1.12 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.dashboard-contest-card p {
    margin: 8px 0 12px;
    color: #A7B2AD;
    font-size: 0.84rem;
    line-height: 1.45;
}

.dashboard-contest-card .btn {
    width: 100%;
    margin: 0;
    min-height: 44px;
    justify-content: center;
    color: #FFF7E6;
    border: 1px solid rgba(255, 196, 87, 0.24);
    background: rgba(255, 196, 87, 0.08);
}

.contest-countdown {
    margin: 14px 0 12px;
    padding: 12px;
    border: 1px solid rgba(255, 196, 87, 0.20);
    border-radius: 16px;
    background: rgba(5, 9, 8, 0.32);
}

.contest-countdown-label {
    margin-bottom: 8px;
    color: #FFD98A;
    font: 800 0.68rem/1 'Space Grotesk', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contest-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.contest-countdown-grid span {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.contest-countdown-grid strong {
    color: #FFFFFF;
    font: 900 1.08rem/1 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
}

.contest-countdown-grid small {
    color: #B9A46C;
    font: 700 0.62rem/1 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

.eq-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.streak-card,
.challenge-card,
.skill-tree,
.leaderboard-mini,
.profile-card,
.training-view,
.auth-card,
.leaderboard-card {
    background: rgba(13, 23, 18, 0.78);
    border: 1px solid rgba(18, 230, 138, 0.14);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.streak-card {
    box-shadow: 0 0 30px rgba(255, 110, 40, 0.08);
}

.streak-card.hot-streak {
    box-shadow: 0 0 36px rgba(0, 230, 138, 0.22);
    animation: streakGlow 1.8s ease-in-out infinite alternate;
}

@keyframes streakGlow {
    from { box-shadow: 0 0 28px rgba(0, 230, 138, 0.18); }
    to { box-shadow: 0 0 40px rgba(0, 230, 138, 0.35); }
}

.streak-value {
    font: 800 clamp(1.6rem, 4vw, 2.5rem) / 1 'Space Grotesk', sans-serif;
}

.progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.xp-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #12E68A, #8BFFD0);
    box-shadow: 0 0 18px rgba(18, 230, 138, 0.26);
    transition: width 0.3s ease;
}

.xp-bar.xp-up {
    animation: xpPulse 0.9s ease;
}

@keyframes xpPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

.continue-card {
    background: rgba(0, 230, 138, 0.06);
    border: 1px solid rgba(0, 230, 138, 0.18);
    border-radius: 16px;
    padding: 16px 18px;
}

.continue-card .btn {
    min-height: 48px;
    margin-top: 8px;
}

.dashboard-hero-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(18, 230, 138, 0.20), transparent 42%),
        rgba(13, 23, 18, 0.88);
    border: 1px solid rgba(18, 230, 138, 0.24);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dashboard-streak-badge {
    font: 700 0.76rem/1 'Inter', sans-serif;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f7ef;
    white-space: nowrap;
}

.dashboard-streak-badge.hot {
    border-color: rgba(0, 230, 138, 0.5);
    background: rgba(0, 230, 138, 0.14);
}

.dashboard-hero-btn {
    margin-top: 12px;
    min-height: 52px;
    font-size: 1rem;
}

.daily-challenge-card {
    background: linear-gradient(135deg, rgba(251,191,36,0.1) 0%, rgba(245,158,11,0.06) 100%);
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.daily-timer {
    font-size: 0.78rem;
    color: #8aaa98;
    font-weight: 500;
}

.daily-desc {
    color: #bbb;
    font-size: 0.88rem;
    margin: 0 0 8px;
}

.daily-reward {
    font-size: 0.84rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 12px;
}

.daily-completed {
    color: #00e68a;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.daily-play-btn {
    width: 100%;
}

.streak-warning {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.84rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 14px;
}

.guest-warning {
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.84rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 14px;
}

.guest-warning .btn-sm {
    margin-top: 8px;
    font-size: 0.78rem;
    padding: 6px 14px;
}

.skill-tree .module-card {
    border: 1px solid rgba(18, 230, 138, 0.13);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    background: rgba(5, 9, 8, 0.38);
}

.module-card.locked {
    cursor: default;
}

.module-card.locked .module-title > span:first-child {
    opacity: 0.6;
}

.module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 800 0.92rem/1.2 'Space Grotesk', sans-serif;
    margin-bottom: 10px;
}

.module-lesson-progress {
    margin: 0 0 10px;
}

.module-lesson-progress-text {
    font: 700 0.72rem/1.1 'Space Grotesk', sans-serif;
    color: #8D9A94;
    margin-bottom: 5px;
}

.module-lesson-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.module-lesson-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #12E68A, #8BFFD0);
}

.lesson-list {
    display: grid;
    gap: 8px;
}

.lesson-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lesson-card:hover {
    border-color: rgba(18, 230, 138, 0.28);
    background: rgba(18, 230, 138, 0.045);
}

.lesson-card button {
    min-height: 48px;
    min-width: 90px;
}

.lesson-best {
    margin-top: 6px;
    font: 700 0.74rem/1.2 'Inter', sans-serif;
    color: #fcd34d;
}

.lesson-dot-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: -2px 0 12px;
    padding: 8px 10px;
    border: 1px solid rgba(18, 230, 138, 0.14);
    border-radius: 10px;
    background: rgba(18, 230, 138, 0.045);
    color: #b8c8bf;
    font: 600 0.72rem/1.35 'Inter', sans-serif;
}

.lesson-dot-legend span,
.lesson-accuracy-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lesson-accuracy-dots {
    margin-left: 6px;
    vertical-align: middle;
}

.accuracy-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.accuracy-dot.good { background: #00e68a; }
.accuracy-dot.ok { background: #fbbf24; }
.accuracy-dot.low { background: #f87171; }

.mastery-stars { font-size: 0.7rem; letter-spacing: 1px; margin-left: 6px; }
.module-mastery { font-size: 0.72rem; color: #fbbf24; font-weight: 500; display: block; margin-top: 2px; }
.mastery-cta { font-size: 0.72rem; color: #8aaa98; margin-top: 2px; display: block; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #042416;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.66rem;
}

.rank-green { background: #57d89d; }
.rank-blue { background: #67b8ff; }
.rank-purple { background: #b081ff; }
.rank-gold { background: #f6ce6f; }
.rank-diamond { background: #92f7ff; }

.leaderboard-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-row.me {
    background: rgba(0, 230, 138, 0.09);
}

.leaderboard-locked-wrap {
    position: relative;
    margin-top: 2px;
    padding-bottom: 74px;
}

.leaderboard-row-locked {
    opacity: 0.38;
    filter: blur(2px);
    user-select: none;
    pointer-events: none;
}

.leaderboard-locked-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 21, 18, 0) 25%, rgba(15, 21, 18, 0.92) 72%);
    pointer-events: none;
}

.leaderboard-guest-cta {
    text-align: center;
    padding: 18px;
    color: #8aaa98;
    font-size: 0.88rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
}

.leaderboard-guest-cta .btn {
    margin-top: 10px;
}

.lb-rank {
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 800 0.74rem/1 'Inter', sans-serif;
    color: #03110b;
    background: #6b7280;
}

.lb-rank.rank-1 { background: #facc15; }
.lb-rank.rank-2 { background: #cbd5e1; }
.lb-rank.rank-3 { background: #f59e0b; }
.lb-rank.rank-4 { background: #86efac; color: #052414; }

.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lb-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #aaa;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.15s;
}

.lb-tab.active {
    border-color: #00e68a;
    background: rgba(0, 230, 138, 0.1);
    color: #fff;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
}

.podium-slot {
    text-align: center;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    min-width: 110px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.podium-slot .podium-medal {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.podium-slot strong {
    font-size: 0.95rem;
}

.podium-slot.first {
    padding: 22px 26px 30px;
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.1);
    font-size: 0.95rem;
    min-width: 130px;
}

.podium-slot.first .podium-medal {
    font-size: 2.4rem;
}

.podium-slot.second {
    border-color: rgba(203, 213, 225, 0.3);
    background: rgba(203, 213, 225, 0.06);
}

.podium-slot.third {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
}

.leaderboard-separator {
    text-align: center;
    color: #8aaa98;
    letter-spacing: 4px;
    font-weight: 700;
    padding: 8px 0;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.achievement-badge {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

.achievement-badge.unlocked {
    animation: achievementPop 0.45s ease;
    border-color: rgba(0, 230, 138, 0.5);
}

@keyframes achievementPop {
    0% { transform: scale(0.92); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.training-view .lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.speed-timer {
    display: inline-block;
    margin-left: 10px;
    color: #fcd34d;
    font: 800 0.84rem/1 'Inter', sans-serif;
}

.speed-timer.urgent {
    color: #f87171;
    animation: timerUrgent 0.4s ease-in-out infinite alternate;
}

@keyframes timerUrgent {
    from { opacity: 1; }
    to { opacity: 0.55; }
}

.training-view canvas {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.03), transparent);
}

.training-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.range-btn {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    padding: 10px;
    text-align: left;
    transition: 0.2s ease;
    font: 700 0.82rem/1.2 'Inter', sans-serif;
}

.answer-btn {
    min-height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
}

.range-btn:hover {
    border-color: var(--green);
    transform: translateY(-1px);
}

.answer-btn:hover {
    border-color: #00e68a;
    background: rgba(0, 230, 138, 0.08);
}

.answer-btn.answer-btn-boost:hover {
    border-color: #00e68a;
}

.answer-btn.answer-btn-cut:hover {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

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

.range-btn.correct {
    border-color: #00e68a;
    background: rgba(0, 230, 138, 0.36);
    box-shadow: inset 0 0 0 1px rgba(0, 230, 138, 0.7);
}

.range-btn.wrong {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.36);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.7);
}

.range-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.ab-compare .btn.active-variant {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(0, 230, 138, 0.45) inset;
}

.slider-challenge {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 230, 138, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.slider-challenge label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.freq-slider {
    width: 100%;
    height: 42px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #1a1a2e, #00e68a33);
    border-radius: 8px;
    outline: none;
}

.freq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 42px;
    background: #00e68a;
    border-radius: 6px;
    cursor: pointer;
}

.freq-slider::-moz-range-thumb {
    width: 24px;
    height: 42px;
    background: #00e68a;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.freq-display {
    text-align: center;
    font: 800 1.4rem/1.2 'Space Grotesk', sans-serif;
    color: #00e68a;
    margin-top: 8px;
}

.eq-mirror-panel {
    padding: 16px;
    border: 1px solid rgba(0, 230, 138, 0.2);
    border-radius: 12px;
    background: rgba(0, 230, 138, 0.04);
}

.mirror-prompt {
    font-size: 1rem;
    margin: 0 0 16px;
    text-align: center;
}

.mirror-slider-group {
    margin: 12px 0;
}

.mirror-slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
}

.mirror-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.mirror-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00e68a;
    cursor: pointer;
    border: 2px solid #042416;
}

.mirror-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00e68a;
    cursor: pointer;
    border: 2px solid #042416;
}

#mirrorSubmit {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    font-size: 1rem;
}

.hint-card {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 230, 138, 0.4);
    background: rgba(0, 230, 138, 0.08);
    color: #d8ffe9;
    font-size: 0.84rem;
}

.band-education-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: #c7d4cd;
}

.freeze-section {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.freeze-section h3 {
    margin: 0 0 8px;
}

.freeze-section .btn {
    width: 100%;
    min-height: 48px;
}

/* Auto-advance countdown bar */
.advance-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 6px 0 4px;
    overflow: hidden;
    display: none;
}

.advance-bar-track.active {
    display: block;
}

#tAdvanceBar {
    height: 100%;
    width: 100%;
    background: #00e68a;
    border-radius: 3px;
}

/* Next-round skip button */
.next-round-skip {
    min-width: 160px;
}

.training-view.flash-correct {
    animation: lessonFlashGood 0.4s ease;
}

.training-view.flash-wrong {
    animation: lessonFlashBad 0.4s ease;
}

@keyframes lessonFlashGood {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); border-color: rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 0 2px rgba(0, 230, 138, 0.65); border-color: rgba(0, 230, 138, 0.85); }
}

@keyframes lessonFlashBad {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); border-color: rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 0 2px rgba(255, 121, 121, 0.7); border-color: rgba(255, 121, 121, 0.85); }
}

.score-float {
    position: fixed;
    z-index: 120;
    transform: translate(-50%, -8px);
    color: #00e68a;
    font: 800 1rem/1 'Space Grotesk', sans-serif;
    animation: scoreFloat 0.9s ease forwards;
    pointer-events: none;
}

@keyframes scoreFloat {
    0% { opacity: 0; transform: translate(-50%, 0); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -42px); }
}

.feedback-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    transform: translateY(120%);
    transition: 0.25s ease;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    z-index: 99;
}

.feedback-toast.show {
    transform: translateY(0);
}

.feedback-toast.good {
    border-color: rgba(0, 230, 138, 0.5);
}

.feedback-toast.bad {
    border-color: rgba(255, 121, 121, 0.6);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    padding: 18px;
}

.modal.show {
    display: flex;
}

.modal-card {
    width: min(420px, 100%);
    background: #0f1512;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
}

.lesson-intro-card {
    text-align: center;
}

.lesson-intro-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.lesson-intro-card h2 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
}

.lesson-intro-copy {
    margin: 0 0 16px;
    color: #c8d0cb;
    line-height: 1.5;
    font-size: 0.9rem;
}

.registration-gate-card {
    position: relative;
    width: min(480px, 100%);
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 230, 138, 0.08), rgba(15, 21, 18, 0.98));
    border-color: rgba(0, 230, 138, 0.26);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.registration-gate-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #d9fbe9;
    cursor: pointer;
}

.registration-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(0, 230, 138, 0.12);
    border: 1px solid rgba(0, 230, 138, 0.22);
    color: #8fffd0;
    font: 700 0.74rem/1 'Space Grotesk', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.registration-gate-card h2 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    color: #f5fff9;
}

.registration-gate-copy {
    margin: 0 0 14px;
    color: #d5ddd8;
    line-height: 1.6;
}

.registration-gate-list {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: #f1f5f3;
    font-size: 0.92rem;
}

.registration-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.registration-gate-actions .btn {
    min-height: 48px;
}

.band-result-card {
    margin: 0 auto 16px;
    max-width: 620px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
}

.band-result-title {
    font: 700 0.82rem/1.2 'Inter', sans-serif;
    margin-bottom: 8px;
}

.band-result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.band-result-item {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.74rem;
    color: #d2ded7;
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.auth-card input {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--white);
    padding: 0 12px;
}

.muted {
    color: var(--gray);
    font-size: 0.84rem;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    color: #03110b;
    background: var(--green);
    text-decoration: none;
    font: 700 0.82rem/1 'Inter', sans-serif;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.public-profile,
.admin-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
}

.rank-badge-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.eq-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.stat-value {
    font: 800 1.5rem/1 'Space Grotesk', sans-serif;
    color: #00e68a;
}

.band-bars {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.share-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-btn {
    min-width: 130px;
}

.upload-zone {
    margin-top: 10px;
    padding: 18px;
    border-radius: 12px;
    border: 2px dashed rgba(0, 230, 138, 0.45);
    background: rgba(0, 230, 138, 0.06);
    text-align: center;
}

.upload-zone.dragover {
    border-color: #00e68a;
    background: rgba(0, 230, 138, 0.14);
}

.upload-zone input[type="file"] {
    width: 100%;
    margin-bottom: 10px;
}

.audio-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

body.embed-mode .header,
body.embed-mode .cta-banner,
body.embed-mode footer,
body.embed-mode .footer,
body.embed-mode .eq-subnav {
    display: none !important;
}

body.embed-mode .container {
    max-width: 100%;
    padding: 8px;
}

body.embed-mode .app-view {
    min-height: auto;
}

.welcome-screen {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 4px 18px;
}

.welcome-intro {
    text-align: center;
    margin-bottom: 20px;
    animation: brandRise 0.55s ease both;
}

.welcome-logo {
    display: block;
    width: min(430px, 82vw);
    height: auto;
    margin: 0 auto 8px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 28px rgba(18, 230, 138, 0.18));
}

.welcome-screen h1 {
    border: none !important;
    padding: 0 !important;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 4.2vw, 2.65rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.welcome-screen h1 span {
    color: #12E68A;
    font-size: inherit;
    line-height: inherit;
}

.welcome-intro p {
    max-width: 520px;
    margin: 0 auto 10px;
    color: #A7B2AD;
    line-height: 1.5;
}

.welcome-intro span {
    color: #8D9A94;
    font-size: 0.78rem;
}

.welcome-focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.welcome-action-card,
.welcome-contest-card {
    animation: brandRise 0.5s ease both;
}

.welcome-contest-card { animation-delay: 0.06s; }

.welcome-action-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.welcome-action-card p {
    margin: 10px 0 0;
    font-size: 0.86rem;
}

.welcome-secondary-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid rgba(18, 230, 138, 0.22);
    color: #E9EFEC;
    background: rgba(255, 255, 255, 0.035);
}

.lead-capture-card {
    border: 1px solid rgba(0, 230, 138, 0.38);
    border-radius: 14px;
    padding: 16px;
    background: rgba(0, 230, 138, 0.06);
    text-align: center;
}

.lead-capture-card h3 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.guest-cta-card {
    background: rgba(0,230,138,0.06);
    border: 1px solid rgba(0,230,138,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.guest-cta-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
    display: inline-block;
}

.guest-cta-card li {
    margin: 4px 0;
    font-size: 0.84rem;
}

.stats-page {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
}

.stats-page h2 {
    margin: 0 0 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.stats-page h3 {
    margin: 16px 0 10px;
}

.session-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 180px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.session-bar-item {
    text-align: center;
}

.session-bar-label {
    font-size: 0.68rem;
    color: var(--gray);
    margin-bottom: 6px;
}

.session-bar-track {
    height: 120px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.session-bar-fill {
    width: 72%;
    border-radius: 8px 8px 2px 2px;
    transition: height 0.35s ease;
}

.session-bar-value {
    font: 700 0.72rem/1 'Inter', sans-serif;
    margin-top: 5px;
}

.module-accuracy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.module-accuracy-card {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
}

.module-accuracy-ring {
    --ring-pct: 0;
    --ring-color: #00e68a;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: conic-gradient(var(--ring-color) calc(var(--ring-pct) * 1%), rgba(255, 255, 255, 0.1) 0);
    display: grid;
    place-items: center;
    position: relative;
}

.module-accuracy-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #0f1512;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.module-accuracy-ring span {
    position: relative;
    z-index: 1;
    font: 800 0.88rem/1 'Space Grotesk', sans-serif;
}

.module-accuracy-label {
    font-size: 0.74rem;
    color: var(--gray);
}

.result-xp-wrap {
    margin: 0 auto 12px;
    max-width: 420px;
}

.next-lesson-card {
    margin: 12px auto;
    max-width: 460px;
    border: 1px solid rgba(0, 230, 138, 0.3);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 230, 138, 0.06);
}

.next-lesson-card--primary {
    border: 2px solid rgba(0, 230, 138, 0.6);
    background: rgba(0, 230, 138, 0.1);
    padding: 16px;
    margin: 16px auto 10px;
    box-shadow: 0 0 18px rgba(0, 230, 138, 0.12);
}

@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confetti-fall 2s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

.answer-grid .range-btn:last-child:nth-child(odd) {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Admin visibility */
.admin-only { display: none !important; }
.admin-only.visible { display: inline-block !important; }

/* Onboarding modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.show {
    display: flex;
}
.modal-card {
    background: #131517;
    border: 1px solid rgba(0,212,160,0.2);
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hint card (feedback after answer) */
.hint-card {
    color: #8aaa98;
    padding: 8px 12px;
    border-left: 3px solid rgba(0,212,160,0.3);
    background: rgba(0,212,160,0.05);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

/* Module complete banner */
.module-complete-banner {
    background: linear-gradient(135deg, rgba(0,230,138,0.12), rgba(0,180,200,0.08));
    border: 1px solid rgba(0,230,138,0.3);
    border-radius: 16px;
    padding: 24px 16px;
    margin-bottom: 18px;
    animation: celebrate 0.5s ease;
}
@keyframes celebrate {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Daily goal card */
.daily-goal-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
}

/* Upload track button */
.upload-track-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 6px;
    transition: 0.2s;
}
.upload-track-btn:hover {
    border-color: #00e68a;
    background: rgba(0,230,138,0.1);
}
.upload-card {
    border: 1px solid rgba(0,230,138,0.2);
    border-radius: 14px;
    padding: 16px;
    background: rgba(0,230,138,0.04);
}
.upload-card.locked {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

/* Focus indicators */
.range-btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid #00e68a;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .dashboard-top-grid {
        grid-template-columns: 1fr !important;
    }

    .welcome-screen {
        padding-top: 0;
    }

    .welcome-intro {
        margin-bottom: 14px;
    }

    .welcome-focus-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .welcome-logo {
        display: none;
    }

    .welcome-screen h1 {
        font-size: 1.72rem;
        line-height: 1.06;
    }

    .welcome-intro p {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .dashboard-hero-card,
    .dashboard-contest-card {
        padding: 16px;
    }

    .dashboard-start-card,
    .dashboard-contest-card {
        min-height: 0;
    }

    .dashboard-quick-stats {
        gap: 5px;
    }

    .contest-countdown-grid {
        gap: 6px;
    }

    .contest-countdown-grid strong {
        font-size: 0.98rem;
    }
    .answer-grid {
        grid-template-columns: 1fr !important;
    }

    .answer-grid .range-btn {
        min-height: 52px;
    }

    .answer-grid .range-btn:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .training-controls .btn {
        min-height: 48px;
    }

    .eq-subnav {
        gap: 6px;
    }

    .eq-subnav a {
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    body[data-view="dashboard"] .hfb-bubble,
    body[data-view="leaderboard"] .hfb-bubble {
        display: none;
    }
}

/* Hide feedback bubble during lesson to avoid overlapping controls */
body[data-view="lesson"] .hfb-bubble {
    display: none;
}

@media (max-width: 920px) {
    .eq-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .eq-grid.cols-3 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .training-controls,
    .answer-grid {
        gap: 12px;
    }
}

@media (max-width: 720px) and (orientation: landscape) {
    .training-view canvas {
        height: 120px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .lesson-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 230, 138, 0.72);
        box-shadow: 0 8px 22px rgba(0, 230, 138, 0.14);
    }
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 138, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 230, 138, 0.22);
    }
}

.btn-cta-pulse {
    animation: ctaPulse 1.8s ease-in-out infinite;
}

@keyframes answersPopIn {
    from {
        opacity: 0.5;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.answers-ready {
    animation: answersPopIn 0.22s ease forwards;
}

/* EQ Toggle Button */
.eq-toggle-wrap {
    position: relative;
    display: inline-flex;
}

.eq-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 110px;
    min-height: 44px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}
.eq-toggle-btn .eq-toggle-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.eq-toggle-btn .eq-toggle-label {
    letter-spacing: 0.03em;
}

/* EQ ON state (default when playing) */
.eq-toggle-btn.eq-on,
.eq-toggle-btn[aria-pressed="true"] {
    background: rgba(0, 230, 138, 0.15);
    border-color: rgba(0, 230, 138, 0.4);
    color: #00e68a;
}
.eq-toggle-btn.eq-on .eq-toggle-dot,
.eq-toggle-btn[aria-pressed="true"] .eq-toggle-dot {
    background: #00e68a;
    box-shadow: 0 0 6px rgba(0, 230, 138, 0.5);
}

/* EQ OFF state */
.eq-toggle-btn.eq-off,
.eq-toggle-btn[aria-pressed="false"] {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #999;
}
.eq-toggle-btn.eq-off .eq-toggle-dot,
.eq-toggle-btn[aria-pressed="false"] .eq-toggle-dot {
    background: #666;
    box-shadow: none;
}

/* Disabled state */
.eq-toggle-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.eq-toggle-btn:disabled .eq-toggle-dot {
    background: #444;
    box-shadow: none;
}

.mirror-mode-buttons {
    display: flex;
    gap: 8px;
}

.mirror-mode-btn {
    flex: 1;
    min-height: 44px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    transition: all 0.15s ease;
}

.mirror-mode-btn.active {
    border-color: #00e68a;
    background: rgba(0, 230, 138, 0.12);
    color: #fff;
}

.eq-tooltip-pulse {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #00e68a;
    color: #042416;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    animation: eqPulse 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

.eq-tooltip-pulse::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #00e68a;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.onboarding-overlay.visible {
    opacity: 1;
}

.onboarding-spotlight {
    position: relative;
    z-index: 301;
    border-radius: 12px;
    box-shadow: 0 0 0 4px rgba(0, 230, 138, 0.5), 0 0 28px rgba(0, 230, 138, 0.24);
    transition: box-shadow 0.2s ease;
}

.onboarding-tooltip {
    position: fixed;
    max-width: min(360px, calc(100vw - 24px));
    background: rgba(8, 12, 10, 0.96);
    border: 1px solid rgba(0, 230, 138, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    color: #eefaf3;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    transform: translateY(6px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.onboarding-tooltip.visible {
    transform: translateY(0);
    opacity: 1;
}

.onboarding-tooltip p {
    margin: 0 0 10px;
    line-height: 1.4;
    font: 600 0.9rem/1.4 'Inter', sans-serif;
}

.onboarding-tooltip .btn {
    min-height: 40px;
    width: 100%;
}

@keyframes eqPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

/* focus-visible for form inputs & slider */
.auth-card input:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible {
    outline: 2px solid #00e68a;
    outline-offset: 2px;
    border-color: rgba(0, 230, 138, 0.5);
}
.freq-slider:focus-visible,
.mirror-slider:focus-visible {
    outline: 2px solid #00e68a;
    outline-offset: 4px;
}

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