/* DARKFIX VERSION 2026-05-11-02 - use with Sign-up-darkfix.php */
html, body { background:#0C0A08; color:#F5F0E8; }
html[data-theme="dark"], html.dark-mode { color-scheme: dark; }
html[data-theme="light"], html.light-mode { color-scheme: light; }
/* =========================================
   SIGN UP — ADBELIV
   Aligned with Index premium style
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    /* DARK MODE IS THE DEFAULT FALLBACK.
       This prevents the page from getting stuck in light mode if JS loads late or localStorage is unavailable. */
    --bg-primary:   #0C0A08;
    --bg-secondary: #131109;
    --bg-tertiary:  #1A1710;
    --bg-raised:    #221E14;

    --text-primary:   #F5F0E8;
    --text-secondary: rgba(245,240,232,0.52);
    --text-faint:     rgba(245,240,232,0.26);
    --text-form-faint: rgba(245,240,232,0.38);

    --gold:            #E8B820;
    --gold-light:      #F5CC40;
    --gold-bright:     #FFE066;
    --gold-border:     rgba(232,184,32,0.26);
    --gold-border-mid: rgba(232,184,32,0.38);
    --gold-accent:     #E8B820;
    --gold-gradient: linear-gradient(135deg,#8C6400 0%,#D4960C 22%,#F0C030 42%,#F0C030 58%,#D4960C 78%,#8C6400 100%);

    --border-subtle:  rgba(232,184,32,0.12);
    --border-mid:     rgba(232,184,32,0.26);
    --border-input:   rgba(245,240,232,0.12);
    --section-border: rgba(245,240,232,0.05);
    --shadow-mid:     rgba(0,0,0,0.50);
    --shadow-gold:    rgba(232,184,32,0.24);

    --input-bg:       rgba(245,240,232,0.04);
    --input-focus-bg: rgba(232,184,32,0.055);
    --placeholder:    rgba(245,240,232,0.22);
    --navbar-bg:      rgba(12,10,8,0.94);
    --left-bg:        #131109;
    --right-bg:       #0C0A08;
    --cta-text:       #0A0800;

    --font-display: 'EB Garamond', serif;
    --font-body:    'Manrope', sans-serif;
    --transition:   0.38s cubic-bezier(0.25,0.46,0.45,0.94);
}

html.light-mode,
body.light-mode {
    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary:  #F0F0F2;
    --bg-raised:    #E5E5EA;

    --text-primary:   #1D1D1F;
    --text-secondary: rgba(29,29,31,0.56);
    --text-faint:     rgba(29,29,31,0.32);
    --text-form-faint: rgba(29,29,31,0.42);

    --gold:            #B8860B;
    --gold-light:      #D4A017;
    --gold-bright:     #F0C030;
    --gold-border:     rgba(212,160,23,0.25);
    --gold-border-mid: rgba(212,160,23,0.38);
    --gold-accent:     #B8860B;
    --gold-gradient: linear-gradient(135deg,#7A5800 0%,#C8940A 22%,#E8B820 42%,#E8B820 58%,#C8940A 78%,#7A5800 100%);

    --border-subtle:  rgba(212,160,23,0.14);
    --border-mid:     rgba(212,160,23,0.28);
    --border-input:   rgba(29,29,31,0.14);
    --section-border: rgba(0,0,0,0.05);
    --shadow-mid:     rgba(10,8,4,0.08);
    --shadow-gold:    rgba(212,160,23,0.22);

    --input-bg:       rgba(29,29,31,0.025);
    --input-focus-bg: rgba(212,160,23,0.045);
    --placeholder:    rgba(29,29,31,0.28);
    --navbar-bg:      rgba(12,10,8,0.96);
    --left-bg:        #F5F5F7;
    --right-bg:       #FFFFFF;
    --cta-text:       #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, color 0.5s ease;
}
main { flex: 1; }

/* ── THEME TOGGLE ───────────────────────── */
.theme-toggle {
    position: fixed; bottom: 32px; right: 32px; z-index: 99999;
    width: 54px; height: 54px; border-radius: 12px;
    border: 1px solid var(--gold-border-mid);
    background: var(--bg-raised);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-mid);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
    outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { transform: scale(1.06); border-color: var(--gold); box-shadow: 0 8px 32px var(--shadow-mid), 0 0 20px var(--shadow-gold); }
.theme-toggle:active { transform: scale(0.93); }
.toggle-icon { position: relative; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.toggle-icon svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: var(--gold-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.34,1.56,0.64,1); }
.toggle-icon .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.toggle-icon .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
html.light-mode .toggle-icon .icon-moon, body.light-mode .toggle-icon .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
html.light-mode .toggle-icon .icon-sun, body.light-mode .toggle-icon .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
html.dark-mode .toggle-icon .icon-moon, body.dark-mode .toggle-icon .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html.dark-mode .toggle-icon .icon-sun, body.dark-mode .toggle-icon .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle::after { content: attr(data-tooltip); position: absolute; right: 60px; bottom: 50%; transform: translateY(50%); background: var(--bg-raised); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--gold-border); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.theme-toggle:hover::after { opacity: 1; }
@keyframes togglePulse { 0% { box-shadow: 0 0 0 0 rgba(212,160,23,0.35); } 70% { box-shadow: 0 0 0 14px rgba(212,160,23,0); } 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); } }
.theme-toggle.pulse { animation: togglePulse 0.65s ease-out; }

/* ── NAVBAR — matched to Index ─────────── */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; border-bottom: 2px solid rgba(0,0,0,0.18); transition: background var(--transition), backdrop-filter var(--transition), border-color 0.4s ease; }
header.scrolled, html.dark-mode body header, body.dark-mode header { background: var(--navbar-bg); backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid var(--gold-border-mid); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 52px; height: 68px; }
.navbar .left, .navbar .right { flex: 1; display: flex; align-items: center; gap: 4px; }
.navbar .right { justify-content: flex-end; gap: 8px; }
.navbar .left a { font-family: var(--font-body); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: #1D1D1F; text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: color 0.22s ease, background 0.22s ease; }
.navbar .left a:hover { color: #000; background: rgba(0,0,0,0.05); }
header.scrolled .navbar .left a, html.dark-mode body .navbar .left a, body.dark-mode .navbar .left a { color: rgba(245,240,232,0.72) !important; }
header.scrolled .navbar .left a:hover, html.dark-mode body .navbar .left a:hover, body.dark-mode .navbar .left a:hover { color: rgba(245,240,232,1) !important; background: rgba(245,240,232,0.07) !important; }
.nav-sep { color: rgba(0,0,0,0.30); font-size: 1rem; user-select: none; line-height: 1; }
header.scrolled .nav-sep, html.dark-mode body .nav-sep, body.dark-mode .nav-sep { color: rgba(245,240,232,0.25) !important; }
.logo { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; height: 100%; }
.logo img { height: 56px; max-height: 56px; width: auto; transition: opacity 0.3s ease; display: block; }
.logo:hover img { opacity: 0.75; }
.right .get-started-btn { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; padding: 9px 18px; border-radius: 8px; transition: all 0.22s ease; display: inline-block; color: #1D1D1F; border: 1px solid rgba(0,0,0,0.30); background: transparent; }
.right .get-started-btn:hover { color: #000; border-color: rgba(0,0,0,0.50); background: rgba(0,0,0,0.04); }
header.scrolled .right .get-started-btn, html.dark-mode body .right .get-started-btn, body.dark-mode .right .get-started-btn { color: rgba(245,240,232,0.62) !important; border-color: rgba(245,240,232,0.16) !important; background: transparent !important; }
header.scrolled .right .get-started-btn:hover, html.dark-mode body .right .get-started-btn:hover, body.dark-mode .right .get-started-btn:hover { color: rgba(245,240,232,0.95) !important; border-color: rgba(245,240,232,0.30) !important; background: rgba(245,240,232,0.07) !important; }
.right .get-started-btn:last-of-type, header.scrolled .right .get-started-btn:last-of-type, html.dark-mode body .right .get-started-btn:last-of-type, body.dark-mode .right .get-started-btn:last-of-type { color: #FFFFFF !important; border-color: transparent !important; background: var(--gold) !important; }
.right .get-started-btn:last-of-type:hover { background: var(--gold-light) !important; box-shadow: 0 4px 20px var(--shadow-gold); transform: translateY(-1px); }
.language-selector { margin-left: 12px !important; }
.lang-dropdown { background: transparent; border: 1px solid rgba(29,29,31,0.16); color: rgba(29,29,31,0.55); font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.07em; padding: 6px 10px; border-radius: 6px; cursor: pointer; outline: none; transition: border-color 0.22s ease, color 0.22s ease; }
.lang-dropdown:hover, .lang-dropdown:focus { border-color: var(--gold); color: rgba(29,29,31,0.9); }
.lang-dropdown option { background: #1A1710; color: #F5F0E8; }
header.scrolled .lang-dropdown, html.dark-mode body .lang-dropdown, body.dark-mode .lang-dropdown { color: rgba(245,240,232,0.6) !important; border-color: rgba(245,240,232,0.2) !important; }

/* ── SIGNUP LAYOUT ─────────────────────── */
.signup-wrapper { display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr); min-height: 100vh; background: var(--bg-primary); }
.signup-left { background: var(--left-bg); border-right: 1px solid var(--section-border); display: flex; flex-direction: column; justify-content: center; padding: 132px 72px 84px; position: relative; overflow: hidden; transition: background 0.5s ease, border-color 0.5s ease; }
.signup-left::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 68% 58% at 16% 20%, rgba(212,160,23,0.10), transparent 64%); pointer-events: none; }
.signup-left::after { content: ''; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold-border-mid), transparent); }
.signup-left > * { position: relative; z-index: 2; }
.signup-eyebrow { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s 0.1s forwards; }
.signup-heading { font-family: var(--font-display); font-size: clamp(3rem, 5.2vw, 5.8rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.85s 0.25s forwards; max-width: 640px; }
.signup-heading .highlight { font-style: italic; font-weight: 700; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.signup-subtext { font-family: var(--font-body); font-size: 1rem; font-weight: 300; color: var(--text-secondary); line-height: 1.85; max-width: 440px; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.85s 0.4s forwards; }
.type-toggle { display: flex; gap: 12px; margin-bottom: 18px; opacity: 0; animation: fadeUp 0.85s 0.52s forwards; flex-wrap: wrap; }
.type-btn { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--border-input); background: transparent; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.type-btn.active { background: var(--gold); border-color: transparent; color: #FFFFFF; box-shadow: 0 4px 18px var(--shadow-gold); }
html.dark-mode body .type-btn.active, body.dark-mode .type-btn.active { color: #0A0800; }
.type-btn:hover:not(.active) { border-color: var(--gold-accent); color: var(--text-primary); background: rgba(212,160,23,0.06); }
.type-description { opacity: 0; animation: fadeUp 0.85s 0.62s forwards; }
.type-description p { font-family: var(--font-body); font-size: 0.88rem; font-weight: 300; color: var(--text-faint); font-style: italic; max-width: 440px; }
.signup-right { display: flex; align-items: center; justify-content: center; padding: 132px 72px 84px; background: var(--right-bg); transition: background 0.5s ease; }

/* ── FORM ──────────────────────────────── */
.signup-form { width: 100%; max-width: 460px; opacity: 0; animation: fadeUp 0.9s 0.25s forwards; padding: 44px; border: 1px solid var(--border-subtle); border-radius: 18px; background: color-mix(in srgb, var(--bg-secondary) 58%, transparent); box-shadow: 0 24px 70px var(--shadow-mid); }
.signup-form h2 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--text-primary); margin-bottom: 28px; letter-spacing: -0.01em; }
.btn-google { font-family: var(--font-body, 'Manrope', sans-serif) !important; border-radius: 8px !important; padding: 13px 18px !important; color: var(--text-primary) !important; }
.or-divider span { font-family: var(--font-body, 'Manrope', sans-serif) !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-family: var(--font-body); font-size: 0.70rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.field-group input { width: 100%; background: var(--input-bg); border: 1px solid var(--border-input); border-radius: 8px; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 300; color: var(--text-primary); outline: none; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), color 0.5s ease; }
.field-group input::placeholder { color: var(--placeholder); }
.field-group input:focus { border-color: var(--gold-accent); background: var(--input-focus-bg); box-shadow: 0 0 0 3px rgba(212,160,23,0.10); }
.field-group input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--bg-secondary) inset; -webkit-text-fill-color: var(--text-primary); }
button[type="submit"] { width: 100%; background: var(--gold); color: #FFFFFF; border: none; border-radius: 8px; padding: 16px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); margin-top: 8px; }
html.dark-mode body button[type="submit"], body.dark-mode button[type="submit"] { color: #0A0800; }
button[type="submit"]:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px var(--shadow-gold); }
.form-footer { font-family: var(--font-body); font-size: 0.82rem; font-weight: 300; color: var(--text-form-faint); margin-top: 20px; text-align: center; }
.form-footer a { color: var(--gold-accent); text-decoration: none; transition: color var(--transition); }
.form-footer a:hover { color: var(--gold-light); }
.pwd-rules { border-radius: 8px !important; font-family: var(--font-body) !important; }
.pwd-rules li { font-family: var(--font-body, 'Manrope', sans-serif) !important; }
#error-message { border-radius: 8px !important; }

/* ── FOOTER — clean centered layout ─────── */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 34px 48px; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 8px !important; text-align: center; transition: background 0.5s ease, border-color 0.5s ease; }
footer p { font-family: var(--font-body); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.11em; color: var(--text-faint); text-transform: uppercase; line-height: 1.7; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 100%; }
.footer-legal a { color: var(--text-faint); text-decoration: none; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--gold-accent); }

/* ── MOBILE NAV ─────────────────────────── */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid rgba(201,168,76,0.35); border-radius: 8px; cursor: pointer; padding: 4px; z-index: 10001; transition: border-color 0.3s ease, background 0.3s ease; }
.hamburger:hover { border-color: var(--gold-accent); background: rgba(201,168,76,0.08); }
.hamburger span { display: block; width: 20px; height: 1.5px; background: #f8f6f2; border-radius: 2px; transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease; transform-origin: center; }
.hamburger.open { border-color: var(--gold-accent); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold-accent); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold-accent); }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(10,10,10,0.97); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 0; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(201,168,76,0.4); border-radius: 8px; cursor: pointer; color: var(--gold-accent); font-size: 1.4rem; line-height: 1; transition: background 0.25s ease, border-color 0.25s ease; }
.mobile-nav a { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 400; letter-spacing: 0.04em; color: rgba(248,246,242,0.75); text-decoration: none; padding: 16px 0; transition: color 0.25s ease, transform 0.25s ease; text-align: center; width: 100%; display: block; }
.mobile-nav a:hover { color: var(--gold-accent); transform: translateX(4px); }
.mobile-nav .mobile-divider { width: 32px; height: 1px; background: rgba(201,168,76,0.25); margin: 8px 0; }
.mobile-nav .mobile-cta { margin-top: 32px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #0A0800 !important; background: var(--gold-accent); padding: 14px 40px !important; border-radius: 8px; width: auto !important; transition: background 0.3s ease, transform 0.25s ease !important; }
.mobile-nav .mobile-lang { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.mobile-nav .mobile-lang select { background: transparent; border: 1px solid rgba(201,168,76,0.35); color: rgba(248,246,242,0.6); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; padding: 8px 14px; border-radius: 8px; cursor: pointer; outline: none; }
.mobile-nav .mobile-lang select option { background: #1a1a1a; color: #f8f6f2; }
@keyframes mobileNavFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav.open a, .mobile-nav.open .mobile-divider, .mobile-nav.open .mobile-lang { animation: mobileNavFade 0.4s ease forwards; }

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

@media (max-width: 1100px) {
    .signup-left, .signup-right { padding-left: 48px; padding-right: 48px; }
    .signup-form { padding: 36px; }
}
@media (max-width: 900px) {
    .signup-wrapper { grid-template-columns: 1fr; min-height: auto; }
    .signup-left { min-height: auto; padding: 122px 40px 56px; border-right: none; border-bottom: 1px solid var(--section-border); }
    .signup-left::after { display: none; }
    .signup-right { padding: 56px 40px 72px; }
}
@media (max-width: 768px) {
    .navbar .left, .navbar .right { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }
    .navbar { padding: 0 20px; height: 60px; justify-content: space-between; }
    .logo { flex: 0 0 auto; }
    .logo img { height: 34px; max-height: 34px; }
    .signup-left { padding: 110px 24px 46px; }
    .signup-right { padding: 42px 24px 60px; }
    .signup-form { max-width: 100%; padding: 28px; border-radius: 16px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .theme-toggle { bottom: 20px; right: 20px; width: 46px; height: 46px; }
    .theme-toggle::after { display: none; }
    footer { padding: 30px 24px; }
}
@media (max-width: 480px) {
    .navbar { padding: 0 16px; height: 56px; }
    .logo img { height: 30px; max-height: 30px; }
    .signup-heading { font-size: clamp(2.7rem, 14vw, 4rem); }
    .signup-subtext { font-size: 0.94rem; }
    .type-toggle { flex-direction: column; align-items: stretch; }
    .type-btn { justify-content: center; }
    .signup-form { padding: 24px 20px; }
    .signup-form h2 { font-size: 2.1rem; }
    .footer-legal { display: block; line-height: 2; }
}

/* =====================================================
   THEME SYNC FIX 2026-05-11
   Works when the theme class is on either <html> or <body>.
   Dark is the default; light only applies when light-mode is explicit.
   ===================================================== */
html.dark-mode,
body.dark-mode,
html[data-theme="dark"],
body[data-theme="dark"] {
    --bg-primary:   #0C0A08;
    --bg-secondary: #131109;
    --bg-tertiary:  #1A1710;
    --bg-raised:    #221E14;
    --text-primary:   #F5F0E8;
    --text-secondary: rgba(245,240,232,0.52);
    --text-faint:     rgba(245,240,232,0.26);
    --text-form-faint: rgba(245,240,232,0.38);
    --gold:            #E8B820;
    --gold-light:      #F5CC40;
    --gold-accent:     #E8B820;
    --gold-border:     rgba(232,184,32,0.26);
    --gold-border-mid: rgba(232,184,32,0.38);
    --border-subtle:  rgba(232,184,32,0.12);
    --border-mid:     rgba(232,184,32,0.26);
    --border-input:   rgba(245,240,232,0.12);
    --input-bg:       rgba(245,240,232,0.04);
    --input-focus-bg: rgba(232,184,32,0.055);
    --placeholder:    rgba(245,240,232,0.22);
    --navbar-bg:      rgba(12,10,8,0.94);
    --left-bg:        #131109;
    --right-bg:       #0C0A08;
    --cta-text:       #0A0800;
    --shadow-mid:     rgba(0,0,0,0.50);
    --shadow-gold:    rgba(232,184,32,0.24);
}

html.light-mode,
body.light-mode,
html[data-theme="light"],
body[data-theme="light"] {
    --bg-primary:   #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary:  #F0F0F2;
    --bg-raised:    #E5E5EA;
    --text-primary:   #1D1D1F;
    --text-secondary: rgba(29,29,31,0.56);
    --text-faint:     rgba(29,29,31,0.32);
    --text-form-faint: rgba(29,29,31,0.42);
    --gold:            #B8860B;
    --gold-light:      #D4A017;
    --gold-accent:     #B8860B;
    --gold-border:     rgba(212,160,23,0.25);
    --gold-border-mid: rgba(212,160,23,0.38);
    --border-subtle:  rgba(212,160,23,0.14);
    --border-mid:     rgba(212,160,23,0.28);
    --border-input:   rgba(29,29,31,0.14);
    --input-bg:       rgba(29,29,31,0.035);
    --input-focus-bg: rgba(212,160,23,0.06);
    --placeholder:    rgba(29,29,31,0.28);
    --navbar-bg:      rgba(12,10,8,0.96);
    --left-bg:        #F5F5F7;
    --right-bg:       #FFFFFF;
    --cta-text:       #FFFFFF;
    --shadow-mid:     rgba(10,8,4,0.08);
    --shadow-gold:    rgba(212,160,23,0.22);
}

html.dark-mode body,
body.dark-mode { background: var(--bg-primary) !important; color: var(--text-primary) !important; }
html.light-mode body,
body.light-mode { background: var(--bg-primary) !important; color: var(--text-primary) !important; }


/* ===== HARD THEME OVERRIDES - last in file so nothing can override them accidentally ===== */
html:not([data-theme="light"]),
html[data-theme="dark"],
html.dark-mode,
body:not([data-theme="light"]),
body[data-theme="dark"],
body.dark-mode {
    --bg-primary: #0C0A08 !important;
    --bg-secondary: #131109 !important;
    --bg-tertiary: #1A1710 !important;
    --bg-raised: #221E14 !important;
    --text-primary: #F5F0E8 !important;
    --text-secondary: rgba(245,240,232,0.52) !important;
    --text-faint: rgba(245,240,232,0.26) !important;
    --text-form-faint: rgba(245,240,232,0.38) !important;
    --gold: #E8B820 !important;
    --gold-light: #F5CC40 !important;
    --gold-accent: #E8B820 !important;
    --gold-border: rgba(232,184,32,0.26) !important;
    --gold-border-mid: rgba(232,184,32,0.38) !important;
    --border-subtle: rgba(232,184,32,0.12) !important;
    --border-mid: rgba(232,184,32,0.26) !important;
    --border-input: rgba(245,240,232,0.12) !important;
    --input-bg: rgba(245,240,232,0.04) !important;
    --input-focus-bg: rgba(232,184,32,0.055) !important;
    --placeholder: rgba(245,240,232,0.22) !important;
    --navbar-bg: rgba(12,10,8,0.94) !important;
    --left-bg: #131109 !important;
    --right-bg: #0C0A08 !important;
    --cta-text: #0A0800 !important;
}
html[data-theme="light"],
html.light-mode,
body[data-theme="light"],
body.light-mode {
    --bg-primary: #FFFFFF !important;
    --bg-secondary: #F5F5F7 !important;
    --bg-tertiary: #F0F0F2 !important;
    --bg-raised: #E5E5EA !important;
    --text-primary: #1D1D1F !important;
    --text-secondary: rgba(29,29,31,0.56) !important;
    --text-faint: rgba(29,29,31,0.32) !important;
    --text-form-faint: rgba(29,29,31,0.42) !important;
    --gold: #B8860B !important;
    --gold-light: #D4A017 !important;
    --gold-accent: #B8860B !important;
    --gold-border: rgba(212,160,23,0.25) !important;
    --gold-border-mid: rgba(212,160,23,0.38) !important;
    --border-subtle: rgba(212,160,23,0.14) !important;
    --border-mid: rgba(212,160,23,0.28) !important;
    --border-input: rgba(29,29,31,0.14) !important;
    --input-bg: rgba(29,29,31,0.035) !important;
    --input-focus-bg: rgba(212,160,23,0.06) !important;
    --placeholder: rgba(29,29,31,0.28) !important;
    --navbar-bg: rgba(12,10,8,0.96) !important;
    --left-bg: #F5F5F7 !important;
    --right-bg: #FFFFFF !important;
    --cta-text: #FFFFFF !important;
}
html:not([data-theme="light"]) body,
html[data-theme="dark"] body,
body[data-theme="dark"],
body.dark-mode {
    background: #0C0A08 !important;
    color: #F5F0E8 !important;
}
html[data-theme="light"] body,
body[data-theme="light"],
body.light-mode {
    background: #FFFFFF !important;
    color: #1D1D1F !important;
}


/* =========================================
   SIGNUP AGREEMENTS + OPTIONAL PREFERENCES
   ========================================= */
.signup-consent-panel {
    margin-top: 17px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-raised) 62%, transparent);
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.signup-consent-panel--required {
    padding: 15px;
}

.signup-consent-panel--required.consent-missing {
    border-color: rgba(255,77,77,.72);
    box-shadow: 0 0 0 3px rgba(255,77,77,.09);
}

.signup-consent-heading,
.signup-consent-panel--optional summary {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.signup-consent-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    background: rgba(232,184,32,.07);
    color: var(--gold-accent);
    font-size: .72rem;
}

.signup-consent-heading h3,
.signup-consent-panel--optional summary strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.35;
    text-transform: uppercase;
}

.signup-consent-heading p,
.signup-consent-panel--optional summary small {
    display: block;
    margin-top: 4px;
    color: var(--text-form-faint);
    font-family: var(--font-body);
    font-size: .69rem;
    font-weight: 400;
    line-height: 1.5;
}

.consent-check-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0,1fr);
    gap: 9px;
    align-items: start;
    margin-top: 12px;
    cursor: pointer;
}

.consent-check-row[hidden] {
    display: none !important;
}

.consent-check-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-box {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1px solid var(--border-input);
    border-radius: 5px;
    background: var(--input-bg);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.consent-check-row:hover .consent-box,
.consent-check-row input:focus-visible + .consent-box {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212,160,23,.09);
}

.consent-check-row input:checked + .consent-box {
    border-color: var(--gold-accent);
    background: var(--gold-accent);
}

.consent-check-row input:checked + .consent-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #0A0800;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

html.light-mode .consent-check-row input:checked + .consent-box::after,
body.light-mode .consent-check-row input:checked + .consent-box::after {
    border-color: #FFFFFF;
}

.consent-copy {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: .73rem;
    font-weight: 400;
    line-height: 1.55;
}

.consent-copy a {
    color: var(--gold-accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-border-mid);
}

.consent-copy a:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.signup-consent-panel--optional {
    overflow: hidden;
}

.signup-consent-panel--optional summary {
    position: relative;
    align-items: center;
    padding: 13px 15px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.signup-consent-panel--optional summary::-webkit-details-marker {
    display: none;
}

.optional-chevron {
    margin-left: auto;
    color: var(--gold-accent);
    font-size: .68rem;
    transition: transform .22s ease;
}

.signup-consent-panel--optional[open] .optional-chevron {
    transform: rotate(180deg);
}

.optional-consent-body {
    padding: 0 15px 15px;
    border-top: 1px solid var(--section-border);
}

.signup-consent-panel--optional .consent-check-row {
    padding-top: 11px;
}

@media (max-width: 480px) {
    .signup-consent-panel--required {
        padding: 13px;
    }

    .signup-consent-panel--optional summary {
        padding: 12px 13px;
    }

    .optional-consent-body {
        padding: 0 13px 13px;
    }

    .consent-copy {
        font-size: .70rem;
    }
}


/* =========================================
   OPTIONAL CONSENTS — ALWAYS VISIBLE
   ========================================= */
.signup-consent-panel--optional {
    padding: 15px;
    overflow: visible;
}

.signup-consent-heading--optional {
    position: relative;
    padding-right: 70px;
}

.signup-consent-heading--optional h3 {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.35;
    text-transform: uppercase;
}

.signup-consent-heading--optional p {
    display: block;
    margin-top: 4px;
    color: var(--text-form-faint);
    font-family: var(--font-body);
    font-size: .69rem;
    font-weight: 400;
    line-height: 1.5;
}

.optional-label {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(232,184,32,.07);
    color: var(--gold-accent);
    font-family: var(--font-body);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}

.signup-consent-panel--optional .optional-consent-body {
    margin-top: 11px;
    padding: 0;
    border-top: 1px solid var(--section-border);
}

.signup-consent-panel--optional .consent-check-row {
    padding-top: 11px;
}

@media (max-width: 480px) {
    .signup-consent-panel--optional {
        padding: 13px;
    }

    .signup-consent-heading--optional {
        padding-right: 0;
    }

    .optional-label {
        position: static;
        margin-left: auto;
        flex: 0 0 auto;
    }
}
