/* FacePrivacy affiliate portal. Same tokens as the main site's dark theme. */
:root {
  /* Light theme, same values as the main site's html[data-theme='light'].
     Token names keep the site's meaning: void = page, obsidian = card,
     white = ink (headings), primary-light = purple text on light. */
  --void: #f7f7fb; --obsidian: #ffffff; --graphite: #e2e2ec;
  --silver: #5d5d70; --fog: #3c3c4e; --cloud: #22222e; --white: #15151e;
  --primary: #7c3aed; --primary-light: #6d28d9;
  --success: #047857; --warning: #b45309; --danger: #dc2626;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--void) radial-gradient(ellipse at 80% 0%, rgba(124,58,237,0.08), transparent 55%) no-repeat;
  color: var(--fog); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary-light); }
h1 { color: var(--white); font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; margin: 0 0 8px; }
h2 { color: var(--cloud); font-size: 1.05rem; margin: 0 0 8px; }
code { background: rgba(124,58,237,0.09); color: var(--primary-light); padding: 1px 6px; border-radius: 5px; font-size: 0.85em; }
[hidden] { display: none !important; }

.top { background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--graphite); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand em { font-style: normal; color: var(--primary-light); font-weight: 600; }
.top__nav { display: flex; align-items: center; gap: 18px; font-size: 0.9rem; flex-wrap: wrap; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { text-decoration: underline; }
.top__who { color: var(--silver); }

.main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 16px 56px; }
.card { background: var(--obsidian); border: 1px solid var(--graphite); border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: 0 24px 50px -36px rgba(35,20,70,0.28); }
.card--narrow { max-width: 440px; margin: 0 auto; }
.dash-head { margin-bottom: 20px; }
.muted { color: var(--silver); font-size: 0.92rem; margin: 0 0 16px; }
.tight { margin-bottom: 8px; }
.small { font-size: 0.8rem; }
.center { text-align: center; }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--cloud); font-weight: 500; }
label small { color: var(--silver); font-weight: 400; font-size: 0.78rem; }
input[type=text], input[type=email], input[type=password] {
  background: var(--void); color: var(--white); border: 1px solid var(--graphite); border-radius: 8px;
  padding: 11px 12px; font: inherit; font-size: 0.95rem; width: 100%; min-width: 0;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
input[readonly] { background: #fbfaff; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--fog); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); flex-shrink: 0; }
.check--small { font-size: 0.85rem; margin-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--ghost { background: transparent; color: var(--cloud); border: 1px solid var(--graphite); }
.alt { font-size: 0.88rem; margin: 14px 0 0; color: var(--silver); }

.msg { font-size: 0.88rem; margin: 0; color: var(--success); }
.msg--err { color: var(--danger); }

.field-row { display: flex; gap: 8px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 20px 0 10px; }
.stat { background: var(--void); border: 1px solid var(--graphite); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.stat strong { color: var(--white); font-size: 1.25rem; line-height: 1.1; }
.stat span { font-size: 0.72rem; color: var(--silver); line-height: 1.35; }
.stat em { font-style: normal; color: var(--fog); }
.stat--ok strong { color: var(--success); }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silver); padding: 4px 8px 6px 0; border-bottom: 1px solid var(--graphite); }
td { padding: 7px 8px 7px 0; border-bottom: 1px solid rgba(128,128,150,0.12); }
td strong { color: var(--cloud); }
.st-ready td:last-child, .st-paid td:last-child { color: var(--success); }
.st-reversed td { color: var(--silver); text-decoration: line-through; }
.st-reversed td:last-child { text-decoration: none; }

.blurb { display: block; width: 100%; text-align: left; background: var(--void); color: var(--fog); border: 1px dashed var(--graphite); border-radius: 10px; padding: 12px 14px; margin-top: 8px; font: inherit; font-size: 0.88rem; line-height: 1.55; cursor: pointer; }
.blurb:hover { border-color: var(--primary); color: var(--cloud); }

.foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 20px 16px 28px; border-top: 1px solid var(--graphite); font-size: 0.82rem; }
.foot a { color: var(--silver); text-decoration: none; }
.foot a:hover { color: var(--cloud); }

@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .main { padding-top: 28px; }
  .card { padding: 18px; }
  .field-row { flex-direction: column; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
.warn { color: var(--warning); }
