/* Hotbox Operator — brand theme
   Palette extracted from the Hotbox family of sites:
   near-black backgrounds, electric-cyan primary, emerald for Distro,
   Space Grotesk headings + Inter body. */

:root {
  --bg: #07080d;
  --bg-2: #0a0c13;
  --surface: #0f111a;
  --surface-2: #141826;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(0, 194, 255, 0.22);

  --text: #f3f6f8;
  --muted: #9aa6b2;
  --muted-2: #687180;

  --accent: #00c2ff;   /* electric cyan (parent Vending brand) */
  --accent-2: #00e5c8; /* teal */
  --accent-ink: #03121a;
  --emerald: #10b981;  /* Distro */
  --emerald-2: #34d399;
  --purple: #7c3aed;
  --danger: #f87171;
  --warn: #f5a524;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(0, 194, 255, 0.45), 0 12px 44px rgba(0, 194, 255, 0.20);
  --glow-emerald: 0 0 0 1px rgba(16, 185, 129, 0.45), 0 12px 44px rgba(16, 185, 129, 0.20);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* layered radial glows for depth */
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(0, 194, 255, 0.10), transparent 60%),
    radial-gradient(760px 460px at 10% 4%, rgba(124, 58, 237, 0.08), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.78em 1.3em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn-primary:hover { background: #2cd0ff; }
.btn-emerald { background: var(--emerald); color: #04140d; box-shadow: var(--glow-emerald); }
.btn-emerald:hover { background: var(--emerald-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: rgba(0, 194, 255, 0.07); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { font-size: 1.05rem; padding: 0.95em 1.6em; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --- Top navigation ----------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
  display: grid; place-items: center;
  color: var(--accent-ink); font-weight: 800; font-size: 0.95rem;
}
.brand .op { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a.navlink { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a.navlink:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 86px 0 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid var(--line-2);
  padding: 0.4em 0.9em; border-radius: 999px;
  margin-bottom: 1.3rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; max-width: 18ch; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--emerald-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 56ch; margin-top: 0.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* --- Sections ----------------------------------------------------------- */
section { padding: 60px 0; }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* --- Vertical cards ----------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
.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 {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1rem;
  background: rgba(0, 194, 255, 0.10); border: 1px solid var(--line-2);
}
.card.distro .icon { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.card h3 { font-size: 1.25rem; }
.card .price { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--accent); margin: 0.2rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-cta { margin-top: 1.1rem; }

.badge {
  display: inline-block; font-family: var(--font-head); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.34em 0.7em; border-radius: 999px;
}
.badge-soon { color: var(--warn); background: rgba(245, 165, 36, 0.12); border: 1px solid rgba(245, 165, 36, 0.3); }
.badge-live { color: var(--emerald-2); background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.card.soon { opacity: 0.92; }
.card.soon::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(255,255,255,0.012) 9px, rgba(255,255,255,0.012) 18px);
  pointer-events: none;
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }

/* --- Tax package feature panel ------------------------------------------ */
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.panel.highlight { border-color: var(--line-2); box-shadow: var(--glow); }
.tax-single { max-width: 640px; margin: 0 auto; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--text); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: rgba(0, 194, 255, 0.14); color: var(--accent);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.price-tag { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.2rem 0 0.4rem; }
.price-tag .amt { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--text); }
.price-tag .per { color: var(--muted); }
.addon-note { font-size: 0.92rem; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0 1.2rem; }
.buy-head { font-size: 1.15rem; margin-bottom: 0.2rem; }
.secure-note { font-size: 0.82rem; margin-top: 0.7rem; text-align: center; }

/* Stripe buy-button host */
.stripe-host { margin-top: 1.2rem; }
.stripe-placeholder {
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  padding: 1.1rem; text-align: center; color: var(--muted); font-size: 0.92rem;
  background: rgba(0, 194, 255, 0.04);
}

/* --- Forms -------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8em 0.9em; font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert { border-radius: var(--radius-sm); padding: 0.8em 1em; font-size: 0.94rem; margin-bottom: 1rem; }
.alert-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4); color: var(--emerald-2); }
.hidden { display: none !important; }

/* --- Auth pages --------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .panel { padding: 2rem; }
.auth-card h1 { font-size: 1.7rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.4rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: 0.94rem; }

/* --- Dashboard ---------------------------------------------------------- */
.dash-header { padding: 40px 0 10px; }
.dash-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.dash-locations {
  margin-top: 1.4rem; border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 2.4rem; text-align: center; color: var(--muted);
  background: rgba(0, 194, 255, 0.03);
}
.dash-locations .big { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin-bottom: 0.4rem; }

/* --- Success page ------------------------------------------------------- */
.success-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--emerald-2); background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); }

/* --- Admin -------------------------------------------------------------- */
.admin-stats { display: flex; gap: 12px; margin-top: 1.4rem; flex-wrap: wrap; }
.admin-stats .metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1.4rem; min-width: 96px; }
.admin-stats .m-label { color: var(--muted); font-size: 0.8rem; }
.admin-stats .m-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.leads-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
.leads-table th, .leads-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads-table thead th { font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--bg-2); }
.leads-table tbody tr:last-child td { border-bottom: 0; }
.leads-table tbody tr:hover { background: rgba(0, 194, 255, 0.04); }
.leads-table a { color: var(--accent); }

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 40px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.disclaimer { font-size: 0.82rem; color: var(--muted-2); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.4rem; max-width: 80ch; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0.6rem 22px 1.2rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a.navlink { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.7rem; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .dash-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 36px; }
}
