/* Big Dawg Leads — luxury black / gold / ivory / navy.
   Dark is the default theme; [data-theme="light"] flips to ivory. */

:root, [data-theme="dark"] {
  --bg: #0a0e1a;
  --bg2: #101830;
  --surface: #131c38;
  --surface2: #182242;
  --text: #f3ecd9;
  --muted: #b9b09a;
  --gold: #c9a227;
  --gold2: #e6c65c;
  --border: #2a3560;
  --navy: #0d1530;
  --danger: #e0655f;
  --ok: #7fc97f;
}
[data-theme="light"] {
  --bg: #f6f1e3;
  --bg2: #efe7d2;
  --surface: #fffdf4;
  --surface2: #f3ecd9;
  --text: #10172e;
  --muted: #5d5a4c;
  --gold: #a07d14;
  --gold2: #c9a227;
  --border: #d8cdb0;
  --navy: #10172e;
  --danger: #b3372f;
  --ok: #2e7d32;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.hidden { display: none !important; }
.serif { font-family: 'Cinzel', serif; letter-spacing: .02em; }
.gold { color: var(--gold2); }
a { color: var(--gold2); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; color: var(--gold2);
  background: var(--navy);
}
.brand-name { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .14em; }
.brand-name em { color: var(--gold2); font-style: normal; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 8px; padding: 9px 18px;
  border: 1px solid transparent; text-decoration: none; display: inline-block;
}
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #14100a; }
.btn-gold:hover { filter: brightness(1.07); }
.btn-outline { border-color: var(--gold); color: var(--gold2); background: transparent; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-lg { padding: 13px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* Landing */
.landing-nav, .portal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg2); position: sticky; top: 0; z-index: 20;
}
.nav-actions, .header-right { display: flex; gap: 10px; align-items: center; }
.hero { text-align: center; padding: 84px 20px 54px; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 14px; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 30px; }
.pricing { max-width: 1060px; margin: 0 auto; padding: 20px 20px 10px; }
.section-title { text-align: center; font-size: 32px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; text-align: center;
}
.price-card .price { font-size: 44px; font-weight: 700; color: var(--gold2); }
.price-card .price span { font-size: 16px; color: var(--muted); }
.fineprint { color: var(--muted); text-align: center; max-width: 760px; margin: 22px auto; font-size: 14px; }
.auth-wrap { display: flex; justify-content: center; padding: 30px 16px 60px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px; width: 100%; max-width: 520px;
}
.auth-card h2 { margin-top: 0; }
label { display: block; margin: 12px 0; font-size: 14px; font-weight: 500; }
input, select, textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.form-error { color: var(--danger); min-height: 20px; font-size: 14px; }
.switch-line { text-align: center; color: var(--muted); font-size: 14px; }
.states-fieldset { border: 1px solid var(--border); border-radius: 10px; margin: 14px 0; }
.states-fieldset legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; padding: 6px; }
.state-check { display: flex; align-items: center; gap: 5px; font-size: 13px; margin: 0; }
.state-check input { width: auto; margin: 0; }
.landing-footer { text-align: center; color: var(--muted); padding: 26px; border-top: 1px solid var(--border); font-size: 13px; }

/* Portal */
.agent-chip { color: var(--gold2); font-weight: 600; font-size: 14px; }
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 22px 0;
  border-bottom: 1px solid var(--border); background: var(--bg2);
}
.tab {
  font: inherit; font-weight: 600; cursor: pointer; background: transparent;
  color: var(--muted); border: none; border-bottom: 3px solid transparent;
  padding: 10px 14px;
}
.tab.active { color: var(--gold2); border-bottom-color: var(--gold); }
.portal-main { max-width: 1120px; margin: 0 auto; padding: 26px 20px 70px; }
.tab-panel h2 { font-family: 'Cinzel', serif; margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-card .stat-num { font-size: 32px; font-weight: 700; color: var(--gold2); }
.stat-card .stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card h3 { margin-top: 0; font-family: 'Cinzel', serif; }
.progress { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; margin: 10px 0; border: 1px solid var(--border); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.meta-row strong { color: var(--text); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--gold); color: var(--gold2); text-transform: uppercase; letter-spacing: .06em; }
.pill.done { border-color: var(--ok); color: var(--ok); }
.pill.wait { border-color: var(--muted); color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .07em; }
.empty { color: var(--muted); text-align: center; padding: 34px 10px; }

/* Modal + delivery sheet */
.modal { position: fixed; inset: 0; background: rgba(4, 6, 14, .72); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 30px 14px; z-index: 50; }
.modal-card { background: var(--surface); border: 1px solid var(--gold); border-radius: 14px; padding: 28px; width: 100%; max-width: 520px; position: relative; }
.modal-card.sheet { max-width: 680px; }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.sheet-head { text-align: center; border-bottom: 2px solid var(--gold); padding-bottom: 14px; margin-bottom: 18px; }
.sheet-head .serif { font-size: 26px; margin: 0; }
.sheet-head p { color: var(--muted); margin: 4px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sheet-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-bottom: 18px; font-size: 15px; }
.sheet-contact .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; display: block; }
.pain { background: var(--surface2); border-left: 3px solid var(--gold); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; }
.pain .q { color: var(--muted); font-size: 13px; }
.pain .a { font-weight: 600; font-size: 16px; }
.ip-preview { background: var(--surface2); border-radius: 8px; padding: 10px 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar h2 { margin: 0; }
