/* ============================================================
   BADGER for Business — on-brand (dark · vivid blue · gold)
   Mirrors the app design system (badger-theme.css tokens).
   ============================================================ */
:root {
  /* surfaces */
  --bg: #07090F;
  --bg-2: #0C111B;
  --card: #121A28;
  --card-hi: #1A2536;
  --fill: #1A2536;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  /* brand */
  --brand: #2563EB;
  --brand-deep: #0E3A86;
  --blue-2: #4A93FF;
  --cyan: #3FD7F2;
  --plum: #4A93FF;
  --gold: #E6B45C;
  --gold-2: #F3D079;
  --sunset: #F3D079;

  /* ink */
  --text: #EAF0F8;
  --text-2: #9BA6BA;
  --text-3: #5F6B80;

  /* gradients */
  --grad: linear-gradient(135deg, #3FD7F2 0%, #2563EB 100%);
  --grad-cyan: linear-gradient(135deg, #3FD7F2 0%, #2563EB 100%);
  --grad-gold: linear-gradient(135deg, #F3D079 0%, #C68A32 100%);
  --grad-sunset: linear-gradient(120deg, #3FD7F2 0%, #4A93FF 45%, #F3D079 100%);
  --grid-color: rgba(118,168,235,0.10);

  --radius: 18px;
  --r-card: 22px;
  --shadow: 0 12px 32px rgba(0,0,0,0.45);
  --glow-blue: 0 0 28px rgba(63,215,242,0.40);
  --glow-gold: 0 0 30px rgba(243,208,121,0.36);

  --font-title: "Avenir Next", "Nunito Sans", system-ui, sans-serif;
  --font-body: "SF Pro Rounded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,0.20), transparent),
              radial-gradient(900px 500px at -10% 10%, rgba(63,215,242,0.14), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
h1, h2, h3, h4 { font-family: var(--font-title); font-style: italic; letter-spacing: -0.015em; }
input, select, textarea {
  font-family: inherit; width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--fill); border: 1px solid transparent; color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,215,242,0.18); }
label { font-size: 12px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* brand type helpers (mirrors app) */
.b-display { font-family: var(--font-title); font-style: italic; font-weight: 800; letter-spacing: -0.02em; line-height: 0.98; }
.b-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }

/* GPS-grid background layer (mirrors app WelcomeScreen) */
.b-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
}

/* glow + animation utilities */
.glow { box-shadow: var(--glow-blue); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes b-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes b-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 60%,100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }
.pop { animation: pop .5s cubic-bezier(.2,.8,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .fade-up, .pop { animation: none !important; } }

/* top nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px); background: rgba(7,9,15,0.72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 20px; }
.nav .brand { flex-shrink: 0; }
.brand .logo { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.brand .logo svg { width: 36px; height: 36px; }
.nav .right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav .right .btn { flex-shrink: 0; }
/* On narrow screens collapse the brand to just the logo so the action buttons always fit */
@media (max-width: 560px) {
  .nav { padding: 13px 14px; }
  .nav .brand-name { display: none; }
  .nav .right { gap: 8px; }
  .nav .right .btn.sm { padding: 8px 12px; font-size: 12.5px; }
}

.container { max-width: 1080px; margin: 0 auto; padding: 28px; }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; color: var(--text-3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 20px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  background: var(--fill); color: var(--text); transition: transform .12s, filter .2s, box-shadow .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #04101F; box-shadow: var(--glow-blue); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.cyan { background: var(--grad-cyan); color: #04121a; }
.btn.gold { background: var(--grad-gold); color: #2A1B05; box-shadow: var(--glow-gold); }
.btn.ghost { background: rgba(14,20,32,0.5); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(26,37,54,0.7); }
.btn.sm { padding: 9px 15px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { color: #ff7a9c; }

/* cards */
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } .row { flex-direction: column; } }

/* hero (landing mirrors app WelcomeScreen) */
.hero { text-align: center; padding: 64px 20px 44px; position: relative; overflow: hidden; }
.hero h1 { font-size: 50px; font-weight: 800; line-height: 1.0; }
.hero h1 .grad { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 18px auto 28px; line-height: 1.5; }
.hero .cta { display: flex; gap: 12px; justify-content: center; }
.hero .heroglow { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 440px; height: 440px; pointer-events: none;
  background: radial-gradient(circle, rgba(63,215,242,0.22), rgba(37,99,235,0.10) 42%, transparent 66%); }
.hero .herologo { position: relative; display: inline-grid; place-items: center; overflow: hidden; border-radius: 28px; padding: 6px; }
.hero .herologo svg { width: 104px; height: 104px; }
.hero .herologo .sheen { position: absolute; top: 0; bottom: 0; width: 40px; background: rgba(255,255,255,0.30); filter: blur(6px); animation: b-sheen 4.5s ease-in-out infinite 1s; }
/* smaller mark for the closing "get the app" card */
.herologo.ctamark { display: inline-grid; place-items: center; position: relative; overflow: hidden; border-radius: 18px; padding: 4px; }
.herologo.ctamark svg { width: 52px; height: 52px; }
.herologo.ctamark .sheen { position: absolute; top: 0; bottom: 0; width: 22px; background: rgba(255,255,255,0.30); filter: blur(6px); animation: b-sheen 4.5s ease-in-out infinite 1s; }
.badges-float { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.badges-float .b {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #04101F; opacity: .9; animation: b-float 5s ease-in-out infinite;
}
.badges-float .b svg { width: 24px; height: 24px; }
/* keep the headline, logo and copy above the floating badge pins */
.hero .herologo, .hero .b-eyebrow, .hero h1, .hero p, .hero .cta { position: relative; z-index: 2; }

/* pills / chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.gold { background: rgba(230,180,92,0.16); color: var(--gold-2); }
.chip.cyan { background: rgba(63,215,242,0.14); color: var(--cyan); }
.chip.active { background: rgba(45,226,160,0.16); color: #2de2a0; }
.chip.draft { background: rgba(155,166,186,0.14); color: var(--text-2); }

/* app-accurate minted badge (matches in-app BadgeEmblem) */
.appbadge { display: inline-grid; place-items: center; line-height: 0; }
.appbadge svg { display: block; }

/* staggered "world worth exploring" rows that slide in from alternating sides */
.zz { display: flex; flex-direction: column; gap: 64px; margin: 30px auto 18px; max-width: 720px; }
.zz-row { display: flex; align-items: center; justify-content: center; gap: 30px; }
.zz-row.alt { flex-direction: row-reverse; }
.zz-art { flex: 0 0 150px; display: grid; place-items: center; position: relative; height: 150px; }
.zz-art .zz-halo { position: absolute; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,215,242,0.18), rgba(37,99,235,0.07) 45%, transparent 68%); }
.zz-art .appbadge { position: relative; }
.zz-text { flex: 0 1 430px; }
.zz-text h3 { color: var(--text); }
@media (max-width: 720px) {
  .zz { max-width: 460px; }
  .zz-row, .zz-row.alt { flex-direction: column; text-align: center; gap: 12px; }
  .zz-art { flex-basis: auto; height: 140px; }
  .zz-text { flex-basis: auto; }
  .zz-text p { margin-left: auto; margin-right: auto; }
}

/* reveal-on-scroll: slide in (zz rows from their side, others gently up) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.zz-row.reveal { transform: translateX(-46px); }
.zz-row.reveal.alt { transform: translateX(46px); }
/* `.in` must out-specify .zz-row.reveal.alt so rows settle back to centered, not offset */
.reveal.in, .zz-row.reveal.in, .zz-row.reveal.alt.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* tiers */
.tier { text-align: center; position: relative; transition: transform .2s, border-color .2s; }
.tier:hover { transform: translateY(-4px); border-color: var(--cyan); }
.tier .price { font-family: var(--font-title); font-style: italic; font-size: 38px; font-weight: 800; margin: 8px 0; }
.tier .price small { font-size: 15px; color: var(--text-2); font-weight: 600; font-style: normal; }
.tier.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), var(--shadow); }
.tier .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color:#04101F; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; }

/* table-ish list */
.camp { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--card-hi); border: 1px solid var(--line); transition: transform .15s; }
.camp:hover { transform: translateX(3px); }
.camp .meta { flex: 1; }
.camp .meta h4 { font-size: 16px; }
.camp .meta p { color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* stats */
.stat { text-align: center; padding: 18px; }
.stat .n { font-family: var(--font-title); font-style: italic; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(4,8,15,0.72); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fadeUp .25s both; }
.modal { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 4px; }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps .s { flex: 1; height: 5px; border-radius: 999px; background: var(--fill); }
.steps .s.on { background: var(--grad); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04101F; padding: 14px 22px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); z-index: 80; animation: pop .4s both; }

.section-title { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin: 36px 0 14px; }

/* footer (shared cross-nav between business / app pages) */
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 24px 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.footer .footlinks { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .footlinks a { color: var(--text-2); font-weight: 600; font-size: 14px; }
.footer .footlinks a:hover, .footer .footlinks a.on { color: var(--cyan); }
.footer .tiny { color: var(--text-3); }
/* rich multi-column footer (consumer + policy pages) */
.footer-rich { border-top: 1px solid var(--line); margin-top: 24px; padding: 30px 4px 28px; }
.footcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 22px; }
.footcol { display: flex; flex-direction: column; gap: 9px; }
.footcol .foothead { font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.footcol a { color: var(--text-2); font-weight: 600; font-size: 14px; }
.footcol a:hover, .footcol a.on { color: var(--cyan); }
.footbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.footbar .tiny { color: var(--text-3); }
@media (max-width: 720px) { .footcols { grid-template-columns: repeat(2, 1fr); } }

.center { text-align: center; }
.spacer { height: 24px; }
.swatch { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; }
.swatch.on { border-color: #fff; }
.symbol-pick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.symbol-pick .s { aspect-ratio: 1; border-radius: 10px; background: var(--fill); display: grid; place-items: center; }
.symbol-pick .s.on { background: var(--grad); }
.symbol-pick .s svg { width: 20px; height: 20px; color: #fff; }

/* partner dashboard tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 6px 0 24px; }
.tab { padding: 12px 16px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; }
.tab.on { color: var(--text); border-bottom-color: var(--cyan); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.check input { width: auto; }

/* ============================================================
   ADMIN CONSOLE — professional, restrained, on-brand SaaS theme.
   Scoped to .admin; light surface with brand blue/cyan accents.
   ============================================================ */
.admin {
  --a-bg: #f1f5f9; --a-surface: #ffffff; --a-line: #e2e8f0; --a-line-2: #eef2f7;
  --a-text: #0C1320; --a-muted: #566074; --a-faint: #8A93A6;
  --a-accent: #2563EB; --a-accent-weak: #e8f0ff;
  --a-green: #16a34a; --a-green-bg: #dcfce7; --a-amber: #b45309; --a-amber-bg: #fef3c7;
  --a-red: #dc2626; --a-red-bg: #fee2e2; --a-cyan: #0E96C8; --a-cyan-bg: #d6f4fb;
  display: flex; min-height: 100vh; background: var(--a-bg); color: var(--a-text);
  font-family: var(--font-body);
}
.admin .side {
  width: 232px; flex-shrink: 0; padding: 20px 14px; display: flex; flex-direction: column; gap: 3px;
  background: var(--a-surface); border-right: 1px solid var(--a-line); position: sticky; top: 0; height: 100vh;
}
.admin .side .brand { font-size: 17px; color: var(--a-text); margin-bottom: 16px; padding: 0 6px; }
.admin .side .brand .logo { width: 30px; height: 30px; }
.admin .side .brand .logo svg { width: 30px; height: 30px; }
.admin .side .brand .muted { color: var(--a-faint); }
.admin .navlink {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 9px;
  color: var(--a-muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.admin .navlink:hover { background: var(--a-line-2); color: var(--a-text); }
.admin .navlink.on { background: var(--a-accent-weak); color: var(--a-accent); }
.admin .navlink .pill { background: var(--a-accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.admin-main { flex: 1; padding: 30px 38px; max-width: 1100px; }
.admin .ah { margin-bottom: 22px; }
.admin .ah h1 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.admin .ah .muted { margin-top: 3px; color: var(--a-muted); font-size: 14px; }

/* admin component overrides (calm versions of the shared classes) */
.admin .card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 18px; }
.admin .muted { color: var(--a-muted); }
.admin .tiny { color: var(--a-faint); }
.admin .stat { text-align: left; padding: 16px 18px; }
.admin .stat .n { font-size: 26px; font-weight: 800; color: var(--a-text); background: none; -webkit-text-fill-color: currentColor; }
.admin .stat .l { color: var(--a-muted); font-size: 13px; margin-top: 2px; }
.admin .stat.alert { border-color: #bfdbfe; }
.admin .stat.alert .n { color: var(--a-accent); }
.admin .btn { border-radius: 9px; font-weight: 600; font-size: 14px; }
.admin .btn.primary { background: var(--a-accent); color: #fff; box-shadow: none; }
.admin .btn.primary:hover { filter: brightness(1.06); }
.admin .btn.ghost { background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text); }
.admin .btn.ghost:hover { background: var(--a-line-2); }
.admin .btn.ghost.danger, .admin .btn.danger { color: var(--a-red); }
.admin .btn.sm { padding: 7px 12px; font-size: 13px; }
.admin .btn.on { background: var(--a-accent); color: #fff; border-color: var(--a-accent); }
.admin input, .admin select, .admin textarea { background: var(--a-surface); border: 1px solid var(--a-line); color: var(--a-text); }
.admin input:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-weak); }
.admin .chip { font-weight: 600; }
.admin .chip.active { background: var(--a-green-bg); color: var(--a-green); }
.admin .chip.cyan { background: var(--a-cyan-bg); color: var(--a-cyan); }
.admin .chip.gold { background: var(--a-amber-bg); color: var(--a-amber); }
.admin .chip.draft { background: #f1f5f9; color: var(--a-muted); }
.admin .section-title { color: var(--a-faint); }

.admin .toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin .search { max-width: 360px; }

.admin .tbl { width: 100%; border-collapse: collapse; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.admin .tbl th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--a-faint); padding: 12px 16px; border-bottom: 1px solid var(--a-line); background: #f8fafc; }
.admin .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--a-line-2); font-size: 14px; vertical-align: middle; }
.admin .tbl tr:last-child td { border-bottom: none; }
.admin .tbl tr:hover td { background: #f8fafc; }
.admin .tbl .actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.admin .flagdot { background: var(--a-red-bg); color: var(--a-red); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 12px; }
.admin .claimrow { display: flex; align-items: center; gap: 16px; }
.admin .claimrow .meta { flex: 1; }
.admin .claimrow .meta p { color: var(--a-muted); font-size: 13px; margin-top: 3px; }
.admin a { color: var(--a-accent); }
.admin .bar { height: 8px; border-radius: 999px; background: var(--a-line); overflow: hidden; }
.admin .bar > span { display: block; height: 100%; background: var(--a-accent); }
.admin .kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 820px) { .admin .kpi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .admin .side { width: 60px; } .admin .side .brand span, .admin .navlink span:not(.pill) { display: none; } .admin-main { padding: 16px; } }
