/* ===========================================================================
   Hotbox Partnership — global theme
   Dark, premium, cyan-flame accent. Matches the Hotbox family of sites.
   =========================================================================== */

:root {
  --bg:        #070b11;
  --bg-2:      #0b111a;
  --panel:     #101824;
  --panel-2:   #141d2b;
  --line:      #1c2738;
  --border:    #243349;
  --text:      #e9f0f7;
  --muted:     #8ba0b6;
  --muted-2:   #65788c;
  --accent:    #34d6f0;
  --accent-2:  #1aa9c6;
  --accent-ink:#04222b;
  --good:      #34d399;
  --good-bg:   #0f3026;
  --warn:      #fbbf24;
  --warn-bg:   #3a2e07;
  --danger:    #f87171;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.6);
  --ring:      0 0 0 3px rgba(52,214,240,.25);
  --maxw:      1140px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* ambient flame glow */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(52,214,240,.13), transparent 60%),
    radial-gradient(700px 500px at 8% 0%, rgba(26,169,198,.10), transparent 55%),
    linear-gradient(180deg, #070b11 0%, #060a10 100%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* ---------- Eyebrow / pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(52,214,240,.08);
  border: 1px solid rgba(52,214,240,.22);
  padding: .42em .9em; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 999px;
  background: var(--good-bg); color: var(--good); border: 1px solid rgba(52,211,153,.3);
}
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(251,191,36,.3); }
.badge.muted { background: #16202f; color: var(--muted); border-color: var(--border); }
.badge.location { background: rgba(52,214,240,.1); color: var(--accent); border-color: rgba(52,214,240,.3); }
.badge.advertiser { background: rgba(167,139,250,.12); color: #c4b5fd; border-color: rgba(167,139,250,.3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; letter-spacing: .01em;
  padding: .82em 1.35em; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #46dcf3, #19acca);
  color: var(--accent-ink); border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 30px -12px rgba(52,214,240,.6);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(52,214,240,.75); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #33455f; }
.btn-block { width: 100%; }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-sm { padding: .55em .9em; font-size: .86rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7,11,17,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; letter-spacing: -.02em; font-size: 1.06rem; }
.brand svg, .brand img { height: 30px; width: auto; }
.brand .sub { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 42px; height: 38px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 70px; position: relative; }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 56ch; color: #b5c6d8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.hero-meta b { color: var(--text); display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card.feature { padding: 30px; }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(52,214,240,.1); border: 1px solid rgba(52,214,240,.25);
  font-size: 1.4rem; margin-bottom: 18px;
}
.path-card { display: flex; flex-direction: column; gap: 6px; transition: transform .15s ease, border-color .2s ease; overflow: hidden; }
.path-card:hover { transform: translateY(-4px); border-color: #33586e; }
.path-card .ic { width: 54px; height: 54px; font-size: 1.6rem; }
.path-card h3 { font-size: 1.4rem; }
.path-card .btn { margin-top: 18px; align-self: flex-start; }
.path-card::after {
  content:""; position:absolute; inset:auto -40% -60% auto; width:60%; height:120%;
  background: radial-gradient(circle, rgba(52,214,240,.10), transparent 60%); pointer-events:none;
}

/* numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: var(--accent); background: rgba(52,214,240,.1);
  border: 1px solid rgba(52,214,240,.25); margin-bottom: 14px;
}

/* ---------- Forms ---------- */
.form-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: #b9c8d8; margin-bottom: 7px; }
.field .req { color: var(--accent); }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1.4fr .8fr .8fr; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #0b1320; border: 1px solid var(--border); border-radius: 11px;
  padding: .8em .9em; transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ba0b6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.help { font-size: .8rem; color: var(--muted-2); margin-top: 6px; }
.checkrow { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); }
.checkrow input { width: auto; margin-top: 3px; }

/* form result / alerts */
.alert { border-radius: 12px; padding: 14px 16px; font-size: .92rem; margin-bottom: 16px; border: 1px solid; }
.alert.ok { background: var(--good-bg); color: #a7f3d0; border-color: rgba(52,211,153,.35); }
.alert.err { background: #371616; color: #fecaca; border-color: rgba(248,113,113,.4); }
.alert.info { background: #0e2230; color: #bae6fd; border-color: rgba(52,214,240,.3); }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: #0b1320; border: 1px solid var(--border); border-radius: 14px; }
.tab { padding: .6em 1.1em; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; font: inherit; transition: all .15s; }
.tab.active { background: linear-gradient(180deg,#46dcf3,#19acca); color: var(--accent-ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; background: #060a10; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.disclaimer { font-size: .78rem; color: var(--muted-2); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 22px; max-width: 92ch; }
.warning { color: #d7b36b; font-weight: 600; }

/* ---------- App shell (portal / admin) ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar { position: sticky; top: 0; z-index: 40; background: rgba(7,11,17,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.app-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.app-main { flex: 1; padding: 36px 0 80px; }
.who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#19acca,#46dcf3); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.kpi .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.kpi .val { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.kpi .delta { font-size: .82rem; margin-top: 6px; color: var(--muted); }
.kpi .delta.up { color: var(--good); } .kpi .delta.down { color: var(--danger); }

.panel { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 13px 16px; background: #0c1422; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chart-box { position: relative; height: 300px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .ic { font-size: 2.4rem; margin-bottom: 10px; }

.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.18); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-screen { min-height: 70vh; display: grid; place-items: center; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .form-card { padding: 34px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo svg, .auth-logo img { height: 50px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* list rows (leads/partners in admin) */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px; background: #0c1422; border: 1px solid var(--border); border-radius: 12px; }
.list-row .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row .meta .t { font-weight: 700; }
.list-row .meta .d { font-size: .84rem; color: var(--muted); }
.list-row .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(3,6,10,.7); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-bg.open { display: grid; }
.modal { width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { margin: 0; }
.x { background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 18px 22px; gap: 16px; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .page-head { align-items: flex-start; }
}
