/* =====================================================================
   ONE MILLION CREATORS, platform design system
   Light (white) default + dark theme. Brand: black/white/bright-gold,
   Wisteria display serif + Schibsted Grotesk. Self-contained, no build.
   ===================================================================== */

@font-face {
  font-family: 'Wisteria';
  src: url('/fonts/wisteria.woff') format('woff'),
       url('/fonts/wisteria.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* shared, theme-independent */
  --container: 1200px;
  --radius: 9px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Wisteria', 'Schibsted Grotesk', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* z-scale */
  --z-sticky: 100;
  --z-overlay: 200;

  /* ===== LIGHT THEME (default, clean white, gold foil) ===== */
  --bg:           #FFFFFF;
  --bg-2:         #F6F6F4;   /* faint neutral band (not warm beige) */
  --surface:      #FFFFFF;
  --surface-2:    #F3F2EF;   /* recessed wells (inputs, chips) */
  --nav-solid:    rgba(255,255,255,.82);

  --text:         #1A1712;   /* near-black ink ~16:1 */
  --muted:        #585247;   /* ~7:1 */
  --faint:        #655F4E;   /* ~5.8:1 on white (AA) */

  --gold:         #835A0F;   /* deep gold, AA on white + light wells */
  --gold-2:       #9A6B12;
  --gold-deep:    #6B4A0C;
  --on-gold:      #FFFFFF;   /* text on a gold fill */
  --gold-wash:    rgba(154,107,18,.10);
  --gold-line:    rgba(154,107,18,.30);

  --border:        rgba(20,18,12,.12);
  --border-strong: rgba(20,18,12,.22);
  --green:        #3F7D34;
  --red:          #C0392B;
  --shadow-sm:    0 1px 2px rgba(20,18,12,.05);
  --shadow:       0 1px 2px rgba(20,18,12,.04), 0 12px 32px rgba(20,18,12,.08);

  /* legacy aliases (safety net for inline styles in old markup) */
  --purple: var(--gold); --purple-light: var(--gold-2); --purple-dark: var(--gold-deep);
  --gold-light: var(--gold-2); --charcoal: var(--text); --white: var(--surface);
  --gray-50: var(--bg-2); --gray-100: var(--border); --gray-200: var(--border);
  --gray-500: var(--faint); --gray-700: var(--muted);
}

/* ===== DARK THEME ===== */
html[data-theme="dark"] {
  --bg:        #0A0A0A;
  --bg-2:      #050505;
  --surface:   #151515;
  --surface-2: #000000;
  --nav-solid: rgba(10,10,10,.82);

  --text:   #FFFFFF;
  --muted:  #C9C9C9;
  --faint:  #8E8E8E;

  --gold:      #F2C24E;
  --gold-2:    #FFD777;
  --gold-deep: #C99A2E;
  --on-gold:   #0A0A0A;
  --gold-wash: rgba(242,194,78,.10);
  --gold-line: rgba(242,194,78,.36);

  --border:        rgba(255,255,255,.13);
  --border-strong: rgba(255,255,255,.24);
  --green: #84D08F;
  --red:   #F0938C;
  --shadow-sm: none;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 14px 36px rgba(0,0,0,.55);

  --charcoal: #0A0A0A; --white: #FFFFFF;
}

/* sections that stay dark regardless of theme (hero / footer / CTA bands) */
.invert-dark {
  --bg: #0A0A0A; --bg-2:#050505; --surface:#151515; --surface-2:#000;
  --text:#FFFFFF; --muted:#C9C9C9; --faint:#8E8E8E;
  --gold:#F2C24E; --gold-2:#FFD777; --gold-deep:#C99A2E; --on-gold:#0A0A0A;
  --gold-wash:rgba(242,194,78,.10); --gold-line:rgba(242,194,78,.36);
  --border:rgba(255,255,255,.13); --border-strong:rgba(255,255,255,.24);
  --green:#84D08F; --red:#F0938C; --shadow:none; --shadow-sm:none;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; }
::selection { background: var(--gold); color: var(--on-gold); }

/* film-grain texture (subtle on light, richer on dark) */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .022; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
html[data-theme="dark"] .grain { opacity: .05; mix-blend-mode: normal; }

/* ---- typography ---- */
h1, h2, h3, h4, h5, h6 {
  margin: 0; color: var(--text); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.005em; }
h3, h4, h5, h6 { font-family: var(--font); }
p { margin: 0; }
.tnum, .tabular { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 400; }
.text-gold, .gold { color: var(--gold); }
.text-muted, .muted { color: var(--muted); }
.text-faint { color: var(--faint); }

/* ---- layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.container-sm { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.container-md { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label, .eyebrow { display: inline-block; color: var(--gold); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .85rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 60ch; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.6; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .82rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .12s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary, .btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-2); }
.btn-primary:active, .btn-gold:active { transform: translateY(1px); }
.btn-ghost, .btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--gold-line); color: var(--gold); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- cards / panels ---- */
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card-hover { transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-hover:hover { border-color: var(--gold-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.well { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---- forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.form-input, .form-select, .form-textarea,
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=search], input[type=tel], input[type=date], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background-color: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .82rem 1rem; transition: border-color .2s, box-shadow .2s; outline: none;
}
::placeholder { color: var(--faint); }
.form-input:focus, .form-select:focus, .form-textarea:focus,
input:focus, select:focus, textarea:focus { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-wash); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A6B12' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 16px;
}
html[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E9BB54' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 6rem; }
.form-error, .form-hint.error { color: var(--red); font-size: .85rem; margin-top: .4rem; }
.form-hint { color: var(--faint); font-size: .85rem; margin-top: .4rem; }

/* ---- alerts ---- */
.alert { padding: .9rem 1.15rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .95rem; border: 1px solid var(--border); }
.alert-success { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.alert-error   { background: color-mix(in srgb, var(--red) 10%, transparent);   color: var(--red);   border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.alert-warning { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--gold-line); }
.alert-info    { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* ---- badges / chips ---- */
.badge, .chip, .pill { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border-radius: 100px; font-size: .8rem; font-weight: 600; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.badge-gold, .chip-gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-wash); }
.creator-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--gold-wash); color: var(--gold); border: 1px solid var(--gold-line); padding: .3rem .8rem; border-radius: 100px; font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.creator-badge .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* ---- icons ---- */
.ico, [data-lucide] { display: inline-flex; }
svg.lucide { width: 1em; height: 1em; stroke-width: 1.75; vertical-align: -0.125em; }

/* =====================================================================
   NAV  (solid by default; overlay+transparent over a hero via .nav-over)
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--nav-solid); border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; backdrop-filter: saturate(140%) blur(14px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1.25rem; }
.nav-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: auto; width: auto; max-height: 2.9rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .94rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: .85rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .25rem; }

/* logo swap: white/gold lockup on dark backings, dark-ink lockup on light */
.logo-on-light { display: none; }
.logo-on-dark  { display: block; }
html[data-theme="light"] .nav:not(.nav-over) .logo-on-dark,
html[data-theme="light"] .nav.nav-over.scrolled .logo-on-dark { display: none; }
html[data-theme="light"] .nav:not(.nav-over) .logo-on-light,
html[data-theme="light"] .nav.nav-over.scrolled .logo-on-light { display: block; }

/* overlay mode: transparent over the hero, light text, until scrolled */
.nav.nav-over { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav.nav-over.scrolled { position: fixed; background: var(--nav-solid); border-bottom-color: var(--border); backdrop-filter: saturate(140%) blur(14px); }
.nav.nav-over:not(.scrolled) .nav-links a:not(.btn) { color: rgba(255,255,255,.86); }
.nav.nav-over:not(.scrolled) .nav-links a:not(.btn):hover { color: #fff; }
.nav.nav-over:not(.scrolled) .nav-toggle { color: #fff; }
.nav.nav-over:not(.scrolled) .btn-primary { background: #F2C24E; color: #0A0A0A; }
.nav.nav-over:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.nav.nav-over:not(.scrolled) .theme-toggle { color: #fff; border-color: rgba(255,255,255,.3); }

/* theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.theme-toggle:hover { color: var(--gold); border-color: var(--gold-line); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: inline-flex; }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2.5rem; margin-top: 0; background: var(--bg); border-top: 1px solid var(--border); color: var(--muted); }
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--gold); }
.foot-logo img { height: 3rem; width: auto; margin-bottom: 1rem; }
.foot-col-title { font-weight: 600; color: var(--text); margin-bottom: .85rem; font-size: .92rem; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1rem; color: var(--faint); font-size: .85rem; }

/* =====================================================================
   COMMON PAGE PRIMITIVES
   ===================================================================== */
.features-grid, .grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-card:hover { border-color: var(--gold-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold); margin-bottom: 1.2rem; }
.feature-icon svg { width: 1.3rem; height: 1.3rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

.steps { display: flex; flex-direction: column; gap: 1.75rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-number { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.step-content h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.step-content p { color: var(--muted); font-size: .95rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.stat .lab { color: var(--faint); font-size: .9rem; margin-top: .5rem; }

.big-number { font-family: var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--faint); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.tbl tr:hover td { background: var(--gold-wash); }

.hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* pagination (Laravel) */
nav[role="navigation"] svg { width: 1.1rem; height: 1.1rem; }

/* =====================================================================
   MOTION
   ===================================================================== */
.js [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { transform: none !important; opacity: 1 !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-links {
    display: none; position: absolute; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    background: var(--nav-solid); backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav.nav-over .nav-links.open { background: #0c0c0c; }
  .nav.nav-over:not(.scrolled) .nav-links.open a:not(.btn) { color: rgba(255,255,255,.86); }
}
@media (max-width: 560px) {
  .nav-logo img { max-height: 2.3rem; }
  .step { gap: 1rem; }
}

/* =====================================================================
   AUTH (two-column, no header/footer)
   ===================================================================== */
.auth-body { min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* left: brand panel (always dark, image) */
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3.25rem); }
.auth-brand::before { content:''; position:absolute; inset:0; background: url('/img/creators/wall-3.jpg') center/cover; opacity:.4; }
.auth-brand::after { content:''; position:absolute; inset:0; background: linear-gradient(150deg, rgba(10,10,10,.92) 12%, rgba(10,10,10,.7) 55%, rgba(10,10,10,.85) 100%), radial-gradient(60% 60% at 80% 0%, rgba(242,194,78,.16), transparent 60%); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .ab-logo img { height: 2.9rem; width: auto; }
.auth-brand-body { max-width: 46ch; }
.auth-brand-body h1 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.12; text-wrap: balance; }
.auth-brand-body h1 .gold { color: var(--gold); }
.auth-brand-body p { margin-top: 1rem; max-width: 42ch; color: rgba(255,255,255,.74); font-size: 1.05rem; line-height: 1.6; text-wrap: pretty; }
.auth-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .85rem; }
.auth-points li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.86); font-size: .98rem; }
.auth-points .pi { width: 1.7rem; height: 1.7rem; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold); }
.auth-points .pi svg { width: .95rem; height: .95rem; }
.auth-brand-foot { display: flex; align-items: center; gap: .85rem; color: rgba(255,255,255,.7); font-size: .9rem; }
.auth-brand-foot .faces { display: flex; }
.auth-brand-foot .faces img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; border: 2px solid #0d0d0d; margin-left: -.55rem; }
.auth-brand-foot .faces img:first-child { margin-left: 0; }
.auth-brand-foot b { color: #fff; }

/* right: form panel */
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: var(--bg); position: relative; }
.auth-form-wrap { width: 100%; max-width: 480px; }
.auth-mini-logo { display: none; margin-bottom: 1.75rem; }
.auth-mini-logo img { height: 2.6rem; width: auto; }
html[data-theme="light"] .auth-mini-logo .logo-on-dark { display: none; }
html[data-theme="light"] .auth-mini-logo .logo-on-light { display: block; }
.auth-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--faint); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .82rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; transition: border-color .2s var(--ease), background .2s var(--ease); }
.social-btn:hover { border-color: var(--gold-line); }
.auth-foot { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: var(--gold); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; font-size: .875rem; color: var(--muted); }
.auth-row label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.auth-row input { width: auto; }
.auth-toggle-float { position: absolute; top: 1.1rem; right: 1.25rem; z-index: 2; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mini-logo { display: block; }
}

/* =====================================================================
   SOCIAL, follow / subscribe buttons + counts
   ===================================================================== */
.social-stats { display: flex; gap: 1.5rem; margin: .75rem 0; }
.social-stat { display: flex; flex-direction: column; }
.social-stat b { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); line-height: 1; }
.social-stat span { font-size: .78rem; color: var(--faint); margin-top: .25rem; }
.social-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-following { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.btn-following:hover { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn-subscribed { background: var(--gold-wash); color: var(--gold); border-color: var(--gold-line); }

/* =====================================================================
   SETTINGS, tab navigation shared across Profile / Activity / Subscription
   ===================================================================== */
.settings-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.settings-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; font-size: .92rem; font-weight: 600; color: var(--faint); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease); }
.settings-tab svg { width: 1rem; height: 1rem; }
.settings-tab:hover { color: var(--text); }
.settings-tab.active { color: var(--gold); border-color: var(--gold); }

/* saved card row */
.card-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .65rem; }
.card-row .cico { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.card-row .cico svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.card-row .cbody { flex: 1; min-width: 0; }
.card-row .clabel { font-weight: 600; font-size: .92rem; }
.card-row .cmeta { font-size: .78rem; color: var(--faint); margin-top: .15rem; }
.card-row .cactions { display: flex; gap: .5rem; flex-shrink: 0; }

.membership-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(1.75rem,4vw,2.25rem); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.membership-card::before { content:''; position:absolute; inset:0; background: radial-gradient(70% 130% at 0% 0%, rgba(242,194,78,.16), transparent 60%); pointer-events:none; }
.membership-card > * { position: relative; z-index: 1; }
.membership-status { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 100px; font-size: .82rem; font-weight: 700; }
.membership-status.active { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.membership-status.expired { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.membership-status.none { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

/* =====================================================================
   MESSAGING, conversation list + chat thread + voice recorder
   ===================================================================== */
.msg-layout { display: grid; grid-template-columns: 300px minmax(0, 640px); justify-content: center; max-width: 1000px; margin: 0 auto; min-height: calc(100vh - 4.5rem); border-inline: 1px solid var(--border); border-top: 1px solid var(--border); }
@media (max-width: 1000px) { .msg-layout { grid-template-columns: 300px 1fr; max-width: none; border-inline: 0; } }
@media (max-width: 860px) { .msg-layout { grid-template-columns: 1fr; } .msg-layout.thread-open .msg-sidebar { display: none; } .msg-layout .msg-thread { display: flex; } }

.msg-sidebar { border-right: 1px solid var(--border); overflow-y: auto; max-height: calc(100vh - 4.5rem); }
.msg-sidebar-head { padding: 1.25rem 1.35rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1.05rem; }
.msg-convo { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.35rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); transition: background .15s var(--ease); }
.msg-convo:hover { background: var(--gold-wash); }
.msg-convo.active { background: var(--gold-wash); border-left: 2px solid var(--gold); }
.msg-convo .mav { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.msg-convo .mav-fallback { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; flex: none; }
.msg-convo .mbody { flex: 1; min-width: 0; }
.msg-convo .mname { font-weight: 600; font-size: .92rem; }
.msg-convo .mpreview { font-size: .82rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-convo .munread { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.msg-empty-list { padding: 3rem 1.5rem; text-align: center; color: var(--faint); }
.msg-empty-list svg { width: 2rem; height: 2rem; margin: 0 auto .75rem; opacity: .5; }

.msg-thread { display: flex; flex-direction: column; height: calc(100vh - 4.5rem); }
.msg-thread-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--border); }
.msg-thread-head .mav, .msg-thread-head .mav-fallback { width: 38px; height: 38px; }
.msg-thread-body { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: min(420px, 78%); padding: .7rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; line-height: 1.5; }
.bubble-row.mine .bubble { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.bubble-time { font-size: .68rem; opacity: .6; margin-top: .3rem; display: block; }
.bubble-voice { display: flex; align-items: center; gap: .6rem; min-width: 220px; }
.bubble-voice audio { flex: 1; height: 34px; }

.msg-composer { border-top: 1px solid var(--border); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .6rem; }
.msg-composer input[type=text] { flex: 1; }
.msg-record-btn { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; flex: none; transition: all .2s var(--ease); }
.msg-record-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.msg-record-btn.recording { background: var(--red); color: #fff; border-color: var(--red); animation: pulse-rec 1.2s infinite; }
@keyframes pulse-rec { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.4); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.msg-record-indicator { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--red); font-weight: 600; }
.msg-record-indicator .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse-rec 1s infinite; }

/* =====================================================================
   AUDIO POSTS, forum
   ===================================================================== */
.audio-post-player { display: flex; align-items: center; gap: .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .9rem; margin: .5rem 0; }
.audio-post-player audio { flex: 1; height: 34px; }
.audio-badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--gold-wash); color: var(--gold); border: 1px solid var(--gold-line); border-radius: 100px; padding: .15rem .6rem; font-size: .7rem; font-weight: 700; }
.post-type-toggle { display: flex; gap: .5rem; margin-bottom: 1rem; }
.post-type-btn { flex: 1; padding: .65rem; text-align: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); }
.post-type-btn.active { border-color: var(--gold-line); background: var(--gold-wash); color: var(--gold); }
.audio-record-panel { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.audio-record-panel audio { width: 100%; margin-top: .85rem; display: none; }

/* =====================================================================
   ONBOARDING, Creator Assessment (5-step flow)
   ===================================================================== */
.ob-wrap { max-width: 640px; margin: 0 auto; padding: clamp(2.5rem,6vw,4rem) 1.5rem 4rem; }
.ob-wrap.ob-wide { max-width: 760px; }

.ob-progress { margin-bottom: 2.25rem; }
.ob-progress-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .6rem; }
.ob-progress-track { height: 6px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.ob-progress-fill { height: 100%; width: 100%; background: var(--gold); border-radius: 100px; transform-origin: left; transition: transform .4s var(--ease); }

.ob-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold); display: grid; place-items: center; margin-bottom: 1.5rem; }
.ob-icon svg { width: 1.6rem; height: 1.6rem; }
.ob-icon.ob-icon-center { margin-left: auto; margin-right: auto; }

.ob-headline { font-size: clamp(1.7rem,4vw,2.4rem); margin-bottom: .85rem; text-wrap: balance; }
.ob-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }

.ob-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.ob-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .97rem; color: var(--text); }
.ob-list li svg { width: 1.15rem; height: 1.15rem; color: var(--gold); flex: none; margin-top: .15rem; }

.ob-q { margin-bottom: 2rem; }
.ob-q-label { font-size: 1.05rem; font-weight: 600; margin-bottom: .3rem; }
.ob-q-hint { font-size: .85rem; color: var(--faint); margin-bottom: .9rem; }
.ob-q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: .65rem; }

/* score bars (report screen) */
.ob-score-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.ob-score-row:last-child { margin-bottom: 0; }
.ob-score-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.ob-score-track { height: 10px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.ob-score-fill { height: 100%; border-radius: 100px; background: var(--gold); }
.ob-score-fill.ob-score-high { background: var(--green); }
.ob-score-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); min-width: 3.5ch; text-align: right; }

.ob-result-card { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,2rem); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.ob-result-card .ob-result-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.ob-result-card .ob-result-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }

/* benefit cards grid (solution screen) */
.ob-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin: 1.75rem 0 2.25rem; }
.ob-benefit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.ob-benefit-card .ob-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: .85rem; }
.ob-benefit-card .ob-icon svg { width: 1.15rem; height: 1.15rem; }
.ob-benefit-card h3 { font-size: .97rem; margin-bottom: .3rem; }
.ob-benefit-card p { font-size: .85rem; color: var(--muted); line-height: 1.55; }

/* flywheel (solution screen) */
.ob-flywheel { display: grid; gap: .5rem; margin: 1.75rem 0 2.25rem; }
.ob-flywheel-step { display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: .92rem; font-weight: 600; }
.ob-flywheel-step .num { font-family: var(--font-display); color: var(--gold); font-size: 1.1rem; min-width: 1.5ch; }
.ob-flywheel-arrow { text-align: center; color: var(--gold); font-size: .85rem; }

/* join screen */
.ob-why-card { background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,2rem); text-align: center; margin-bottom: 1.5rem; }
.ob-why-card p { margin-bottom: .5rem; color: var(--text); }
.ob-why-card p:last-child { margin-bottom: 0; font-weight: 700; color: var(--gold); }

.ob-urgency { background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,1.85rem); margin-bottom: 1.5rem; }
.ob-urgency h3 { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.ob-urgency p { color: rgba(255,255,255,.88); font-size: .92rem; line-height: 1.6; margin-bottom: .5rem; }
.ob-urgency p:last-child { margin-bottom: 0; }

.ob-final { text-align: center; margin: 2rem 0; }
.ob-final p { color: var(--muted); font-size: .97rem; line-height: 1.7; margin-bottom: .4rem; }

.ob-skip-link { text-align: center; margin-top: 1.5rem; }
.ob-skip-link a { color: var(--faint); font-size: .88rem; }
.ob-skip-link a:hover { color: var(--muted); }
