/* ═══════════════════════════════════════════════════════════════
   XES — shared base styles
   Loaded on every page. Contains:
     • CSS variables, reset, body baseline
     • Toasts, keyframes, scrollbar
     • Forms, buttons, modals
     • Top navigation
     • Video tile & grid (shared by lobby + room)
     • Setup-preview, pill toggle, auth panel
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    /* Accent colour — change these 3 lines to re-theme the whole site. */
    --primary: #ffb088;                          /* peach accent (was cyan) */
    --primary-rgb: 255, 176, 136;                /* same, as RGB for rgba() */
    --primary-hover: #ffc2a0;                    /* lighter peach */
    --primary-glow: rgba(var(--primary-rgb), 0.4);
    --accent: #6c63ff;
    --accent-glow: rgba(108, 99, 255, 0.5);
    --deep-blue: #1c4870;   /* cog hover + toggle ON — matches the chat 'mine' bubble */
    --bg-gradient-start: #0a0e27;
    --bg-gradient-end: #1a1d35;
    --dark-bg: #0d0d0d;
    --dark-panel: #15161d;
    --dark-border: #2a2d3a;
    --text-primary: #e0e0e0;
    --text-secondary: #808899;
    --success: #00ff88;
    --warning: #ffa500;
    --danger: #ff4757;
    --radius: 10px;
    --radius-sm: 5px;
    --radius-lg: 15px;
    --spacing: 15px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Exo 2", -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    background: #000;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.hidden { display: none !important; }

/* ── Keyframes ── */
@keyframes slideIn  { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } }
@keyframes shake    { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse    { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }
@keyframes callPulse { 0%,100% { box-shadow: 0 4px 20px rgba(245,158,11,0.4); } 50% { box-shadow: 0 4px 32px rgba(245,158,11,0.8); } }

/* ── Toasts ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(21, 22, 29, 0.98);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 15px 20px;
    color: var(--text-primary);
    box-shadow: 0 5px 20px var(--primary-glow), 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    min-width: 250px;
    max-width: 350px;
}
.toast.success { border-color: var(--success); box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3); }
.toast.error   { border-color: var(--danger);  box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3); }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* ── Form Elements ── */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 0.85em;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background: #15161d;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9em;
    transition: var(--transition);
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px #15161d inset;
    caret-color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow), inset 0 0 10px rgba(var(--primary-rgb), 0.05);
    background: linear-gradient(145deg, #121218, #1a1b22);
}

.field-error {
    display: none;
    color: var(--danger);
    font-size: 0.75em;
    margin-top: 4px;
    animation: shake 0.3s ease;
}

.label-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ── Buttons (modal/text variants — round action buttons live in lobby.css) ── */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent) 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn-full { width: 100%; }

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: underline;
}
.btn-text:hover { color: var(--text-primary); }

.btn-icon-only {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3em;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}
.btn-icon-only:hover { color: var(--primary); transform: scale(1.1); }

/* ── Modals ── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content {
    background: linear-gradient(160deg, #12141d 0%, #0a0c12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px -10px rgba(0, 0, 0, 0.85);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    font-family: "Exo 2", sans-serif;   /* default for all modal text */
    scrollbar-width: thin;
    scrollbar-color: var(--dark-border) transparent;
}
/* Subtle dark scrollbar in modals — overrides the global peach thumb (styles.css). */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #3a3d4a; }

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

.modal-header h2 { color: var(--primary); font-size: 1.2rem; font-weight: 700; }
.modal-body     { padding: 24px 22px; }
.modal-footer   { padding: 18px 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: flex-end; }
.modal-narrow   { max-width: 380px; }

/* ── Top Navigation (shared by lobby + room) ── */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(10, 11, 24, 0.985), rgba(5, 6, 14, 0.985));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 22px -14px rgba(0,0,0,0.85);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

/* Classy sharp sans across the bar; mono kept only for the profile label. */
.main-nav, .nav-item { font-family: "Exo 2", system-ui, sans-serif; }
.nav-profile-btn { font-family: 'Space Mono', ui-monospace, monospace; }

/* Centre group is absolutely pinned to the bar's true centre so it stays dead-
   centre regardless of side-zone content widths. Equal-flex alone drifts once one
   side (e.g. the left logo + presence readout) outgrows its half. .main-nav is
   position:sticky, so it anchors this absolute child. */
.nav-left   { display: flex; align-items: center; gap: 10px; min-width: 120px; flex: 1; }
.nav-center { display: flex; align-items: stretch; gap: 4px; position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
.nav-right  { display: flex; align-items: center; gap: 6px; min-width: 120px; justify-content: flex-end; padding-right: 2px; flex: 1; }
/* Extra breathing room to the left of the Profile chip so admin /
   mod nav items don't huddle right up against it. */
.nav-right #nav-profile { margin-left: 12px; }

/* In-app nav logo (lobby + room) — links back to landing home.
   ventlogo-outline.png is a transparent dark-stroke raster; we mask it and paint
   the brand cyan through, so it matches the theme and can glow on hover. */
.nav-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.nav-logo {
    display: block;
    width: 51px; height: 34px;                 /* PNG is 3:2 (1536×1024) */
    background: #fff;                           /* white */
    -webkit-mask: url(/ventlogo-outline.png?v=1) left center/contain no-repeat;
            mask: url(/ventlogo-outline.png?v=1) left center/contain no-repeat;
    transition: var(--transition);
}
.nav-logo-link:hover .nav-logo { filter: drop-shadow(0 0 5px rgba(255,255,255,0.45)); }

/* Presence — the live online count as a bare bordered pill: no fill, no dot.
   Online → green border + green number; queuing → both turn blue and flash. */
.nav-presence  {
    display: flex; align-items: center;
    margin-left: -2px;        /* pull left closer to brand */
}
.presence-stat {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    border-radius: 4px;                         /* square box, not a pill */
    background: rgba(255,255,255,0.08);    /* subtle faint box */
    border: none;
    box-shadow: none;
    line-height: 1;
}
.presence-stat[hidden] { display: none; }
.presence-val {
    display: inline-flex; align-items: center;
    font-family: "Exo 2", -apple-system, sans-serif;
    font-size: 0.68rem; font-weight: 300; color: #4ade80;
    text-shadow: none;
}
/* Queuing — number + border turn blue and gently pulse. */
.presence-stat.active .presence-val { color: var(--primary); text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.5); }
.presence-stat.active {
    animation: nav-queue-pulse 1.6s ease-in-out infinite;
    border-color: var(--primary);
    background: none;
    box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.45);
}
@keyframes nav-queue-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Games stays a standalone button; everything else lives in the "Menu" overflow,
   a dropdown anchored under its button on every screen size. */
/* The Menu sits in a folder-style tab: an SVG draws the bar's bottom edge so it
   flows down and around the hamburger (a continuous notch, not a detached box). */
.nav-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 32px;
}
.nav-more-btn  { display: flex; }
/* White text across the Games / Menu buttons. */
.nav-center .nav-item { color: var(--text-primary); }
.nav-more-btn { position: relative; }   /* anchor for the unread badge that now rides the Menu button */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-item:hover  { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-item.active { color: var(--primary); }
.nav-icon        { width: 18px; height: 18px; color: var(--text-primary); }
/* Menu is icon-only — white glyph with a pure grey shadow for depth. */
#nav-more .nav-icon { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 1px 4px rgba(60,60,60,0.6)); }
#nav-more { padding: 4px; background: none; }
#nav-more:hover { background: rgba(255, 255, 255, 0.07); }

/* Profile — a person glyph in the menu colour, no disc. Tighter horizontal
   padding so the icon's right edge lines up with the call timer / muted text
   (right: 30px) below it, not just the button box. */
.nav-profile-btn { position: relative; flex-direction: row; gap: 8px; padding: 6px 8px; }
.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
#nav-profile .nav-icon { width: 30px; height: 30px; color: #fff; }   /* white */
#nav-profile:hover { background: rgba(255,255,255,0.08); }

/* ── Video Grid (shared skeleton — page-specific containers position it) ── */
.video-grid {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 2px;
}

.video-grid[data-count="1"] { grid-template-columns: 1fr; }
.video-grid[data-count="2"] { grid-template-columns: 1fr 1fr; }
.video-grid[data-count="3"],
.video-grid[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-grid[data-count="5"],
.video-grid[data-count="6"],
.video-grid[data-count="7"],
.video-grid[data-count="8"] { grid-template-columns: repeat(3, 1fr); }

.video-tile {
    position: relative;
    background: #0a0c1a;
    overflow: hidden;
}

.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-tile.local { /* hook for page-specific local-tile styling */ }

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.participant-name {
    font-size: 0.78rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-indicators { display: flex; gap: 4px; }
.indicator        { font-size: 0.75rem; }
.indicator.muted  { color: var(--danger); }

.kick-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,71,87,0.85);
    border: none;
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.video-tile:hover .kick-btn { opacity: 1; }

/* ── Setup Preview (used by room.html setup gate) ── */
.setup-preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d10;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.setup-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

.setup-no-camera {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.6);
}

.setup-muted-row { margin-top: 4px; }

/* ── Pill Toggle (join-muted) ── */
.pill-toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}
.pill-toggle input { display: none; }

.pill-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 9px;
    transition: background 0.2s;
    cursor: pointer;
}
.pill-track::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.pill-toggle input:checked + .pill-track { background: var(--deep-blue); }
.pill-toggle input:checked + .pill-track::before { transform: translateX(16px); }

/* ── Auth Panel (login modal — shared) ── */
.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.auth-tab.active { background: var(--primary); color: #000; }
.auth-tab:not(.active):hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }

.auth-tab-content .form-group { margin-bottom: 10px; }
.auth-tab-content .form-group:first-child { margin-top: 0; }

/* Google sign-in button host + or-separator */
.google-signin-host {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    min-height: 40px;
}
.google-signin-host:empty { display: none; }
.google-signin-host:empty + .auth-sep { display: none; }

.auth-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-sep::before,
.auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-user-info  { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-user-badge { display: flex; align-items: center; gap: 10px; }
.auth-user-icon  { font-size: 1.4rem; }
.auth-user-details { display: flex; flex-direction: column; gap: 2px; }
.auth-username   { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.auth-user-type  { font-size: 0.75rem; font-weight: 500; border-radius: 4px; padding: 1px 6px; display: inline-block; }
.auth-user-type.guest   { color: var(--text-secondary); background: rgba(128,136,153,0.15); }
.auth-user-type.member  { color: var(--primary);        background: rgba(var(--primary-rgb), 0.1); }
.auth-user-type.premium { color: #ffd700;               background: rgba(255,215,0,0.1); }

.auth-offline-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 6px 0;
}

/* ── Shared mobile tweaks for nav ── */
@media (max-width: 800px) {
    .main-nav   { padding: 0 10px; }
    .nav-left   { min-width: 0; gap: 6px; }
    .nav-right  { min-width: 0; gap: 4px; }
    .nav-center { gap: 4px; }
    .nav-item span { display: none; }
    .nav-item   { padding: 8px 10px; }
    /* Mobile nav is tighter — a smaller inset than desktop. */
    .nav-logo { width: 42px; height: 28px; }
    .nav-presence { margin-left: 4px; }
    .presence-stat { padding: 2px 8px; }
    /* The span-hide above ([.nav-item span]) must NOT eat the profile glyph —
       only the username label. Re-show it (higher specificity). */
    .nav-item .nav-avatar { display: inline-flex; }
}

/* ============================================================
   Shared modal theming — must live in styles.css (loaded by both
   lobby.html and room.html). Both pages have a `class="modal-themed"`
   .modal-content for the profile, gender, room-setup, and in-room
   settings modals. Page-specific layout (widths, grids, scroll mode)
   stays in lobby.css / room.css.
   ============================================================ */
.modal-themed {
    background: linear-gradient(160deg, #14121d 0%, #0a0b12 100%);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 24px 70px -10px rgba(0, 0, 0, 0.85);
}
/* Peach hairline under the title (brand accent); plain hairline elsewhere. */
.modal-themed .modal-header { border-bottom-color: rgba(var(--primary-rgb), 0.28); }
.modal-themed .modal-footer { border-top-color: rgba(255, 255, 255, 0.08); }
.modal-themed .modal-header h2 {
    font-family: "Exo 2", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    font-size: 1.2rem;
}

/* ============================================================
   Shared themed action buttons. Same chassis (1px square box, no
   shadow, no transform on hover) for sign-in/out, save, upgrade,
   gender confirm and the room-join button. Per-button colour fills
   layered below: white for sign-in/out, green for confirm actions,
   amber for upgrade.
   ============================================================ */
#profile-signin-btn,
#profile-signout-btn,
#save-settings-btn,
#profile-donate-btn,
#gender-submit-btn,
#setup-join-btn,
#auth-login-btn,
#auth-register-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    overflow: visible;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
#profile-signin-btn:hover,
#profile-signout-btn:hover,
#save-settings-btn:hover,
#profile-donate-btn:hover,
#gender-submit-btn:hover:not(:disabled),
#setup-join-btn:hover:not(:disabled),
#auth-login-btn:hover:not(:disabled),
#auth-register-btn:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    transform: none;
    box-shadow: none;
}
/* Sign-in/out — subtle white wash on hover. */
#profile-signin-btn:hover,
#profile-signout-btn:hover {
    background: rgba(255, 255, 255, 0.07);
}
#profile-signin-btn:active,
#profile-signout-btn:active,
#save-settings-btn:active,
#profile-donate-btn:active,
#gender-submit-btn:active:not(:disabled),
#setup-join-btn:active:not(:disabled),
#auth-login-btn:active:not(:disabled),
#auth-register-btn:active:not(:disabled) {
    color: #fff;
    border-color: #fff;
    transform: none;
}
#profile-signin-btn:active,
#profile-signout-btn:active {
    background: rgba(255, 255, 255, 0.12);
}
/* Green-fill confirm — Save, gender Confirm, Join Room, Sign In, Create Account. */
#save-settings-btn,
#gender-submit-btn,
#setup-join-btn,
#auth-login-btn,
#auth-register-btn {
    background: rgba(16, 185, 129, 0.35);
    color: #fff;
}
#save-settings-btn:hover,
#gender-submit-btn:hover:not(:disabled),
#setup-join-btn:hover:not(:disabled),
#auth-login-btn:hover:not(:disabled),
#auth-register-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.55);
}
#save-settings-btn:active,
#gender-submit-btn:active:not(:disabled),
#setup-join-btn:active:not(:disabled),
#auth-login-btn:active:not(:disabled),
#auth-register-btn:active:not(:disabled) {
    background: rgba(16, 185, 129, 0.85);
}
#gender-submit-btn:disabled,
#setup-join-btn:disabled,
#auth-login-btn:disabled,
#auth-register-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* Donate button — amber fill for distinct, slightly-warm affordance. */
#profile-donate-btn {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}
#profile-donate-btn:hover {
    background: rgba(245, 158, 11, 0.5);
}
#profile-donate-btn:active {
    background: rgba(245, 158, 11, 0.8);
}
