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

.hidden {
    display: none !important;
}

:root {
    --bg: #0a0a0f;
    --bg-warm: #0f0d12;
    --amber: #f4a261;
    --amber-dim: #f4a26133;
    --amber-glow: #f4a26122;
    --lavender: #b8a9c9;
    --text: #e8e4e0;
    --text-dim: #8a8580;
    --text-faint: #5a5550;
    --danger: #e76f51;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-warm);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.screen.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

/* ── Landing ── */
#landing {
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% 20%, #1a1520 0%, var(--bg-warm) 70%);
}

.landing-content {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.logo {
    font-family: 'Caveat', cursive;
    font-size: 5rem;
    color: var(--amber);
    letter-spacing: 0.02em;
    text-shadow: 0 0 60px var(--amber-dim);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 320px;
    line-height: 1.6;
}

.start-button {
    margin-top: 1rem;
    padding: 1rem 3rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--amber);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}
.start-button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 40px var(--amber-dim);
}
.start-button:active {
    transform: scale(0.97);
}

/* ── Explainer (below fold) ── */
.landing-explainer {
    display: flex;
    gap: 1.5rem;
    padding: 3rem 2rem 2rem;
    max-width: 700px;
    width: 100%;
}

.explainer-card {
    flex: 1;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.explainer-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 0.5rem;
}

.explainer-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ── Footer ── */
.landing-footer {
    padding: 2rem 2rem 3rem;
    text-align: center;
}
.landing-footer p {
    font-size: 0.75rem;
    color: var(--text-faint);
}
.landing-footer a {
    color: var(--lavender);
    text-decoration: none;
}
.footer-note {
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* ── Setup Screen (Model Download) ── */
#setup {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #1a1520 0%, var(--bg-warm) 70%);
}

.setup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
    max-width: 400px;
}

.setup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amber);
}

.setup-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.setup-size {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.progress-container {
    width: 100%;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), #e07a3a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

.skip-btn {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.skip-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Session ── */
#session {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 35%, #161218 0%, var(--bg-warm) 60%);
}

.session-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* ── Onboarding: First Visit Welcome ── */
.welcome-first {
    max-width: 320px;
    text-align: center;
    margin-bottom: 0.5rem;
}
.welcome-line {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}
.welcome-sub {
    font-size: 0.85rem;
    color: var(--text-faint);
    line-height: 1.5;
}

/* ── Onboarding Hints ── */
.onboarding-hint {
    position: fixed;
    z-index: 60;
    max-width: 260px;
    padding: 0.75rem 1rem;
    padding-right: 2rem;
    background: rgba(20, 18, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 162, 97, 0.15);
    border-left: 3px solid var(--amber);
    border-radius: 12px;
    animation: hintSlideUp 0.4s ease-out;
    transition: opacity 0.4s ease-out;
}
.onboarding-hint.fading {
    opacity: 0;
}
.hint-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}
.hint-dismiss {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
    opacity: 0.5;
}
.hint-dismiss:hover {
    opacity: 1;
}
@keyframes hintSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#orb-container {
    cursor: pointer;
    position: relative;
    width: 300px;
    height: 300px;
    touch-action: none;
    transition: transform 0.15s;
}
#orb-container:active {
    transform: scale(0.97);
}
#orb-container[data-state="recording"] {
    cursor: default;
}

#orb {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

/* Mode indicator */
.mode-indicator {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-faint);
    opacity: 0.4;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.status-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: opacity 0.4s, color 0.4s;
    min-height: 1.5em;
    text-align: center;
}

.transcript-area {
    max-width: 400px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.3;
    min-height: 2.5em;
    line-height: 1.6;
    padding: 0 1rem;
    transition: opacity 0.6s;
}
.transcript-area.user {
    font-style: italic;
    color: var(--text-faint);
}
.transcript-area.ai {
    color: var(--amber);
    opacity: 0.5;
}

/* ── Settings Gear Button ── */
.settings-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
}
.settings-btn:hover {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Remaining Time Display ── */
.remaining-time {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-align: center;
    margin-bottom: 0.3rem;
    opacity: 0.6;
}
.remaining-time.warning {
    color: #e07a5f;
    opacity: 0.9;
}

/* ── Minute Limit Banner ── */
.minute-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(224, 122, 95, 0.15);
    border-top: 1px solid rgba(224, 122, 95, 0.3);
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 55;
    animation: slideUp 0.3s ease-out;
}
.minute-banner.hidden { display: none; }
.minute-banner p {
    font-size: 0.82rem;
    color: #e07a5f;
    margin: 0;
}
.minute-banner-close {
    background: none;
    border: none;
    color: #e07a5f;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    opacity: 0.6;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── Paywall Overlay ── */
.paywall-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 14, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 75;
    animation: fadeIn 0.4s ease-out;
}
.paywall-overlay.hidden { display: none; }
.paywall-card {
    text-align: center;
    max-width: 340px;
    padding: 2.5rem 2rem;
}
.paywall-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}
.paywall-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.paywall-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.paywall-perks {
    text-align: left;
    margin: 0 auto 1.5rem;
    max-width: 220px;
}
.perk-item {
    font-size: 0.82rem;
    color: var(--text-dim);
    padding: 0.25rem 0;
}
.perk-item:first-child { color: var(--amber); }
.waitlist-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.waitlist-input {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
}
.waitlist-input:focus {
    border-color: var(--amber);
}
.waitlist-input::placeholder {
    color: var(--text-faint);
}
.waitlist-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: none;
    background: var(--amber);
    color: var(--bg);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s;
}
.waitlist-btn:hover { transform: scale(1.03); }
.waitlist-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}
.waitlist-status {
    font-size: 0.78rem;
    color: var(--text-faint);
    min-height: 1.2em;
    margin-bottom: 1rem;
}
.paywall-dismiss {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-faint);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.paywall-dismiss:hover { color: var(--text-dim); }

/* ── End Session Button ── */
.end-session-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--text-faint);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 0.5rem;
}
.end-session-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
}

/* ── Session Recap Overlay ── */
.recap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 14, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 70;
    animation: fadeIn 0.4s ease-out;
}
.recap-overlay.hidden {
    display: none;
}
.recap-card {
    text-align: center;
    max-width: 320px;
    padding: 2.5rem 2rem;
}
.recap-mood-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--amber);
    opacity: 0.8;
}
.recap-mood-dot[data-mood="heavy"] { background: #7a6f8a; }
.recap-mood-dot[data-mood="sad"] { background: #5e7a9a; }
.recap-mood-dot[data-mood="frustrated"] { background: #c45e20; }
.recap-mood-dot[data-mood="anxious"] { background: #b8a040; }
.recap-mood-dot[data-mood="relieved"] { background: #5a9a6a; }
.recap-mood-dot[data-mood="calm"] { background: #6a8a7a; }
.recap-mood-dot[data-mood="mixed"] { background: linear-gradient(135deg, #7a6f8a, #c45e20); }
.recap-summary {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.recap-meta {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 2rem;
}
.recap-close-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--bg);
    background: var(--amber);
    border: none;
    border-radius: 100px;
    padding: 0.7rem 2.5rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.recap-close-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(244, 162, 97, 0.3);
}

/* ── Download Banner ── */
.download-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 13, 18, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    z-index: 50;
    animation: slideUp 0.4s ease-out;
}
.download-banner.hidden {
    display: none;
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.banner-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.4;
}
.banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.banner-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: transform 0.15s, opacity 0.2s;
}
.banner-btn:active {
    transform: scale(0.96);
}
.banner-btn.primary {
    background: var(--amber);
    color: var(--bg);
}
.banner-btn.secondary {
    background: transparent;
    color: var(--text-faint);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.banner-progress {
    max-width: 500px;
    margin: 0.75rem auto 0;
}
.banner-progress.hidden {
    display: none;
}

/* ── Settings Panel ── */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: #12101a;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
    overflow-y: auto;
}
.settings-panel.hidden {
    display: none;
}
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
.settings-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.settings-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.settings-body {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.settings-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}
.settings-row.sub-row {
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.04);
    margin-left: 0.25rem;
}
.settings-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.label-text {
    font-size: 0.9rem;
    color: var(--text);
}
.label-sub {
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* Toggle button */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
}
.toggle-btn[data-state="on"] .toggle-track {
    background: var(--amber);
}
.toggle-thumb {
    display: block;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.25s;
}
.toggle-btn[data-state="on"] .toggle-thumb {
    transform: translateX(20px);
}

/* Action buttons in settings */
.action-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--amber);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.action-btn:hover {
    background: rgba(244, 162, 97, 0.08);
    border-color: var(--amber-dim);
}
.action-btn.danger {
    color: var(--danger);
    border-color: rgba(231, 111, 81, 0.2);
}
.action-btn.danger:hover {
    background: rgba(231, 111, 81, 0.08);
}

.settings-about {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}
.settings-about.dim {
    color: var(--text-faint);
    font-size: 0.75rem;
}
.settings-about a {
    color: var(--lavender);
    text-decoration: none;
}

/* ── Offline Indicator ── */
.offline-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(244, 162, 97, 0.1);
    border: 1px solid rgba(244, 162, 97, 0.2);
    font-size: 0.7rem;
    color: var(--amber);
    z-index: 10;
}
.offline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Language Selector ── */
.lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.lang-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}
.lang-pill.active {
    background: var(--amber);
    color: var(--bg);
    border-color: var(--amber);
}

/* ── Listener Mood ── */
.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.mood-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mood-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}
.mood-pill.active {
    background: var(--amber);
    color: var(--bg);
    border-color: var(--amber);
}

/* ── Voice List ── */
.voice-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.voice-group-label {
    font-size: 0.68rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0 0.25rem;
}
.voice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 0.5rem;
}
.voice-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.voice-item.selected {
    background: rgba(244, 162, 97, 0.08);
}
.voice-item-name {
    font-size: 0.82rem;
    color: var(--text-dim);
    flex: 1;
}
.voice-item.selected .voice-item-name {
    color: var(--amber);
}
.voice-item-auto {
    font-size: 0.65rem;
    color: var(--text-faint);
    margin-left: 0.3rem;
}
.voice-item-preview {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.9rem;
    transition: color 0.15s;
    line-height: 1;
}
.voice-item-preview:hover {
    color: var(--amber);
}
.voice-item-check {
    font-size: 0.8rem;
    color: var(--amber);
    width: 1.2rem;
    text-align: center;
}

/* ── Ambient Sound ── */
.ambient-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.ambient-pill {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ambient-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}
.ambient-pill.active {
    background: var(--amber);
    color: var(--bg);
    border-color: var(--amber);
}
.ambient-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.ambient-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
}
.ambient-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--amber);
    cursor: pointer;
    border: none;
}

/* ── Connection Status ── */
.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.connection-dot.online {
    background: #4ade80;
}
.connection-dot.offline {
    background: var(--amber);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    .logo {
        font-size: 4rem;
    }
    #orb-container {
        width: 250px;
        height: 250px;
    }
    .tagline {
        font-size: 1rem;
        max-width: 280px;
    }
    .landing-explainer {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
}

@media (max-height: 600px) {
    .session-container {
        gap: 1.5rem;
    }
    #orb-container {
        width: 220px;
        height: 220px;
    }
}
