/* DC design system — auth, account and subscribe pages on the main app.
   Tokens mirror value_board/static/css/dc.css ("Modern Upscale Unification");
   keep the two in sync when the palette moves. */

:root {
  --dc-bg: #EDEBE4;
  --dc-ink: #14130F;
  --dc-body-ink: #3A362E;
  --dc-muted: #6E6A60;
  --dc-faint: #A29C8F;
  --dc-hair: #DAD5CA;
  --dc-hair2: #F0ECE3;
  --dc-card-bd: rgba(20, 19, 15, .10);
  --dc-panel: #FAF9F5;
  --dc-paper: #F7F5F0;
  --dc-night: #0B0B0E;
  --dc-gold: #C7A24A;
  --dc-mint: #6EE7B7;
  --dc-green: #0A9E5F;
  --dc-green-ink: #0A6E4C;
  --dc-green-bg: #EAF6EF;
  --dc-green-bd: #C4E7D5;
  --dc-red: #B0432B;
  --dc-red-bg: #FBEDE8;
  --dc-red-bd: #F2D5CB;
  --f-disp: 'Anton', sans-serif;
  --f-head: 'Archivo', sans-serif;
  --f-body: 'Hanken Grotesk', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
body.dc { margin: 0; background: var(--dc-bg); color: var(--dc-ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
body.dc :focus-visible { outline: 2px solid var(--dc-ink); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { body.dc * { transition: none !important; } }

/* ---------------------------------------------------------------- header */
.dc-head { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 14, .92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dc-head-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 22px; }
.dc-brand { display: flex; align-items: center; text-decoration: none; }
.dc-brand img { height: 34px; width: auto; display: block; }
.dc-head-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-pill { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .5px; color: rgba(247, 245, 240, .9); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: border-color .15s ease; }
.hd-pill:hover { border-color: rgba(110, 231, 183, .55); }
.hd-pill.mint { background: var(--dc-mint); border-color: var(--dc-mint); color: #0B0B0E; }
.hd-pill.mint:hover { background: #5CDCA8; border-color: #5CDCA8; }

.dc-main { max-width: 920px; margin: 0 auto; padding: 26px 24px 80px; }

/* ---------------------------------------------------------------- flashes */
.dc-flash { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; }
.dc-flash b { font-weight: 700; }
.dc-flash a { font-weight: 700; }
.dc-flash.success { color: var(--dc-green-ink); background: var(--dc-green-bg); border: 1px solid var(--dc-green-bd); }
.dc-flash.warning { color: #7A5A12; background: #FFF7E0; border: 1px solid #F0DFAE; }
.dc-flash.danger, .dc-flash.error { color: var(--dc-red); background: var(--dc-red-bg); border: 1px solid var(--dc-red-bd); }
.dc-flash.info { color: var(--dc-body-ink); background: var(--dc-paper); border: 1px solid var(--dc-hair); }

/* ---------------------------------------------------------------- auth cards */
.auth-wrap { display: grid; grid-template-columns: 1.04fr .96fr; gap: 18px; max-width: 860px; margin: 22px auto 0; align-items: stretch; }
.auth-wrap.solo { grid-template-columns: 1fr; max-width: 460px; }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-card { background: #fff; border: 1px solid var(--dc-card-bd); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 16, 20, .04); padding: 26px 28px 24px; display: flex; flex-direction: column; }
.auth-eyebrow { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dc-faint); }
.auth-title { font-family: var(--f-disp); font-size: 26px; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 18px; }
.auth-sub { font-size: 13.5px; line-height: 1.55; color: var(--dc-muted); margin: -10px 0 18px; }

.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld label { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dc-muted); }
.fld input { height: 42px; background: var(--dc-panel); border: 1px solid var(--dc-hair); border-radius: 10px; padding: 0 13px; font-family: var(--f-body); font-size: 14.5px; color: var(--dc-ink); transition: border-color .15s ease; width: 100%; }
.fld input::placeholder { color: var(--dc-faint); }
.fld input:focus { outline: none; border-color: var(--dc-ink); }
.fld.err input { border-color: var(--dc-red); background: var(--dc-red-bg); }
.fld-err { font-family: var(--f-mono); font-size: 10px; color: var(--dc-red); line-height: 1.5; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; }
.auth-keep { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dc-body-ink); cursor: pointer; }
.auth-keep input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; background: var(--dc-panel); border: 1px solid var(--dc-hair); cursor: pointer; display: inline-grid; place-content: center; }
.auth-keep input:checked { background: var(--dc-mint); border-color: rgba(10, 110, 76, .4); }
.auth-keep input:checked::before { content: ""; width: 9px; height: 9px; background: #0A6E4C; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.auth-forgot { font-family: var(--f-mono); font-size: 11px; color: var(--dc-muted); text-decoration: none; border-bottom: 1px solid var(--dc-hair); padding-bottom: 1px; }
.auth-forgot:hover { color: var(--dc-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; font-family: var(--f-head); font-weight: 700; font-size: 14px; padding: 0 18px; height: 44px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.btn-mint { background: var(--dc-mint); color: #0B0B0E; width: 100%; }
.btn-mint:hover { background: #5CDCA8; }
.btn-night { background: var(--dc-night); color: #F7F5F0; }
.btn-night:hover { background: #1D1D23; }
.btn-ghost { background: #fff; border-color: var(--dc-card-bd); color: var(--dc-ink); font-weight: 600; }
.btn-ghost:hover { border-color: rgba(20, 19, 15, .25); }
.btn-danger { background: #fff; border-color: var(--dc-red-bd); color: var(--dc-red); font-weight: 600; }
.btn-danger:hover { background: var(--dc-red-bg); }
.btn-sm { height: 36px; font-size: 12.5px; padding: 0 14px; border-radius: 9px; }

.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dc-hair2); font-size: 13.5px; color: var(--dc-muted); }
.auth-alt a { font-weight: 700; color: var(--dc-ink); text-decoration: none; border-bottom: 2px solid var(--dc-mint); padding-bottom: 1px; }

.plan-hint { display: flex; align-items: center; gap: 10px; background: var(--dc-panel); border: 1px solid var(--dc-hair2); border-radius: 10px; padding: 9px 12px; margin: 2px 0 16px; }
.plan-hint .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--dc-gold); flex: none; }
.plan-hint p { margin: 0; font-family: var(--f-mono); font-size: 10px; line-height: 1.6; color: var(--dc-muted); }

/* night side-panel */
.auth-night { background: var(--dc-night); border-radius: 16px; padding: 26px 26px 22px; color: #EAF3EE; display: flex; flex-direction: column; gap: 14px; }
.an-eyebrow { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dc-mint); }
.an-title { font-family: var(--f-head); font-weight: 800; font-size: 21px; line-height: 1.15; margin: 0; letter-spacing: -.2px; }
.an-body { font-size: 13px; line-height: 1.6; color: rgba(234, 243, 238, .72); margin: 0; }
.an-feats { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 0; padding: 0; list-style: none; }
.an-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; color: rgba(234, 243, 238, .85); }
.an-feats .tick { flex: none; margin-top: 2px; width: 15px; height: 15px; border-radius: 99px; background: rgba(110, 231, 183, .14); border: 1px solid rgba(110, 231, 183, .35); display: inline-grid; place-content: center; }
.an-feats .tick::before { content: ""; width: 8px; height: 8px; background: var(--dc-mint); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.an-note { font-family: var(--f-mono); font-size: 9px; letter-spacing: .6px; line-height: 1.7; color: rgba(234, 243, 238, .45); margin-top: auto; text-transform: uppercase; }

/* centered confirmation card (verify email, payment result) */
.done-card { max-width: 430px; margin: 40px auto 0; text-align: center; }
.done-card .auth-title { margin-bottom: 8px; }
.done-ico { width: 52px; height: 52px; margin: 4px auto 14px; border-radius: 999px; background: var(--dc-green-bg); border: 1px solid var(--dc-green-bd); display: grid; place-content: center; }
.done-ico::before { content: ""; width: 22px; height: 22px; background: var(--dc-green); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.done-ico.sad { background: var(--dc-red-bg); border-color: var(--dc-red-bd); }
.done-ico.sad::before { clip-path: none; background: var(--dc-red); width: 4px; height: 18px; border-radius: 2px; box-shadow: 0 24px 0 0 var(--dc-red); height: 14px; }
.done-card p { font-size: 13.5px; line-height: 1.6; color: var(--dc-muted); margin: 0 0 18px; }

/* ---------------------------------------------------------------- account */
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.acct-title { font-family: var(--f-disp); font-size: 34px; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: 1; margin: 4px 0 0; }
.acct-who { display: flex; align-items: center; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.acct-email { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--dc-body-ink); background: #fff; border: 1px solid var(--dc-card-bd); border-radius: 999px; padding: 5px 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.chip-green { color: var(--dc-green-ink); background: var(--dc-green-bg); border: 1px solid var(--dc-green-bd); }
.chip-gold { color: #7A5A12; background: #FFF7E0; border: 1px solid #F0DFAE; }
.chip-mint { color: #0A6E4C; background: rgba(110, 231, 183, .18); border: 1px solid rgba(110, 231, 183, .5); }
.chip-red { color: var(--dc-red); background: var(--dc-red-bg); border: 1px solid var(--dc-red-bd); }
.acct-since { font-family: var(--f-mono); font-size: 10px; letter-spacing: .8px; color: var(--dc-faint); text-transform: uppercase; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--dc-card-bd); border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(16, 16, 20, .04); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-t { font-family: var(--f-disp); font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: .4px; }
.card-line { flex: 1; height: 1px; background: var(--dc-hair2); }
.card-note { font-family: var(--f-mono); font-size: 9.5px; color: var(--dc-faint); letter-spacing: .6px; }
.card-foot { font-family: var(--f-mono); font-size: 9px; letter-spacing: .5px; line-height: 1.7; color: var(--dc-faint); margin: 12px 0 0; text-transform: uppercase; }

.plan-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-name { font-family: var(--f-head); font-weight: 800; font-size: 24px; letter-spacing: -.3px; }
.plan-meta { display: flex; flex-direction: column; gap: 7px; margin: 13px 0 16px; }
.pm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--dc-hair2); padding-bottom: 7px; }
.pm-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-k { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dc-faint); }
.pm-v { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--dc-ink); font-variant-numeric: tabular-nums; }
.card-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.cancel-confirm { margin-top: 12px; background: #FFF7E0; border: 1px solid #F0DFAE; border-radius: 12px; padding: 12px 14px; }
.cancel-confirm p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #7A5A12; }
.cancel-confirm .card-btns { gap: 8px; }

.tk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tk-tile { background: var(--dc-panel); border: 1px solid var(--dc-hair2); border-radius: 10px; padding: 9px 11px; }
.tk-lab { font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dc-faint); }
.tk-val { font-family: var(--f-mono); font-size: 16px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tk-val.up { color: var(--dc-green); }
.tk-val.down { color: var(--dc-red); }
.tk-sync { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tk-empty { font-size: 13.5px; line-height: 1.6; color: var(--dc-muted); margin: 0 0 12px; }

.pref-lab { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dc-muted); margin: 0 0 8px; }
.reg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.reg-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; background: var(--dc-panel); border: 1px solid var(--dc-hair); border-radius: 999px; padding: 6px 12px; color: var(--dc-muted); cursor: pointer; transition: border-color .15s ease; }
.reg-chip:hover { border-color: rgba(20, 19, 15, .3); }
.reg-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.reg-chip.on { background: var(--dc-mint); border-color: var(--dc-mint); color: #0B0B0E; }

.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--dc-hair2); }
.sec-row:first-of-type { padding-top: 2px; }
.sec-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.sec-k { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sec-k b { font-size: 13.5px; font-weight: 700; }
.sec-k span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .5px; color: var(--dc-faint); overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- subscribe */
.sub-hero { text-align: center; max-width: 560px; margin: 26px auto 26px; }
.sub-hero .auth-eyebrow { color: var(--dc-gold); }
.sub-title { font-family: var(--f-disp); font-size: clamp(30px, 5vw, 42px); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; margin: 8px 0 10px; }
.sub-sub { font-size: 14.5px; line-height: 1.6; color: var(--dc-muted); margin: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; align-items: stretch; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan-card { position: relative; background: #fff; border: 1px solid var(--dc-card-bd); border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 16, 20, .04); padding: 24px 26px 22px; display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid var(--dc-ink); box-shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 18px 44px rgba(20, 18, 12, .10); }
.plan-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #0B0B0E; background: var(--dc-mint); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.plan-k { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dc-muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; }
.plan-price b { font-family: var(--f-mono); font-size: 40px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.plan-price span { font-family: var(--f-mono); font-size: 12px; color: var(--dc-faint); }
.plan-save { align-self: flex-start; margin: 4px 0 2px; }
.plan-blurb { font-size: 13px; line-height: 1.55; color: var(--dc-muted); margin: 6px 0 14px; }
.plan-feats { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--dc-hair2); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--dc-body-ink); }
.plan-feats .tick { flex: none; margin-top: 2px; width: 15px; height: 15px; border-radius: 99px; background: var(--dc-green-bg); border: 1px solid var(--dc-green-bd); display: inline-grid; place-content: center; }
.plan-feats .tick::before { content: ""; width: 8px; height: 8px; background: var(--dc-green); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.sub-note { text-align: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .6px; line-height: 1.8; color: var(--dc-faint); max-width: 520px; margin: 18px auto 0; text-transform: uppercase; }

.promo { max-width: 400px; margin: 26px auto 0; background: var(--dc-paper); border: 1px solid var(--dc-hair); border-radius: 14px; padding: 14px 16px; }
.promo label { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dc-muted); margin-bottom: 7px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; height: 38px; background: #fff; border: 1px solid var(--dc-hair); border-radius: 9px; padding: 0 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--dc-ink); }
.promo-row input:focus { outline: none; border-color: var(--dc-ink); }
.promo-note { font-family: var(--f-mono); font-size: 9px; line-height: 1.7; color: var(--dc-faint); margin: 8px 0 0; }

/* mobile */
@media (max-width: 560px) {
  .dc-head-in { padding: 0 16px; gap: 12px; }
  .dc-main { padding: 20px 16px 64px; }
  .auth-card { padding: 22px 20px 20px; }
  .acct-title { font-size: 29px; }
}
