/* ==========================================================================
   AllPanel777 — Control Center Design System
   Brand: AllPanel777  |  allpanels777.live
   "All your panels. One control center."
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Core brand palette */
  --primary: #0891b2;         /* cyan */
  --primary-dark: #0e7490;
  --primary-darker: #155e75;
  --accent: #22d3ee;          /* bright cyan */
  --accent-soft: #67e8f9;
  --gold: #f59e0b;            /* orange from logo 777 */
  --gold-dark: #d97706;
  --gold-soft: #fbbf24;

  --bg-body: #ecfeff;         /* very light cyan */
  --bg-panel: #ffffff;
  --bg-soft: #f0fdff;
  --bg-dark: #164e63;         /* dark teal */
  --bg-darker: #0c3a49;
  --bg-deepest: #082a35;

  --text: #164e63;            /* dark teal text */
  --text-strong: #0b3543;
  --text-muted: #4b7688;
  --text-invert: #ecfeff;
  --text-invert-muted: #9fd4e2;

  --border: #cbeef4;
  --border-strong: #a5e0ea;
  --border-dark: rgba(103, 232, 249, 0.18);

  /* Effects */
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 28px rgba(34, 211, 238, 0.28);
  --glow-gold: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 0 24px rgba(245, 158, 11, 0.3);
  --shadow-sm: 0 2px 8px rgba(22, 78, 99, 0.06);
  --shadow-md: 0 8px 28px rgba(22, 78, 99, 0.10);
  --shadow-lg: 0 20px 50px rgba(22, 78, 99, 0.16);
  --shadow-dark: 0 20px 60px rgba(4, 22, 30, 0.5);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing rhythm */
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --container: 1200px;

  /* Type */
  --font-head: 'Michroma', 'Segoe UI', sans-serif;
  --font-body: 'Inclusive Sans', 'Segoe UI', system-ui, sans-serif;

  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--text-strong);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-muted); }
strong { color: var(--text-strong); font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 900px; }
.section { padding-block: var(--space-section); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(900px 600px at 100% 110%, rgba(8,145,178,.22), transparent 55%),
    linear-gradient(160deg, var(--bg-dark), var(--bg-deepest));
  color: var(--text-invert);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--text-invert-muted); }

/* grid texture overlay usable on dark sections */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(103,232,249,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,232,249,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* ---------- Section heading block ---------- */
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(8,145,178,.09);
  border: 1px solid var(--border-strong);
  padding: .4rem .85rem; border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}
.section--dark .eyebrow { color: var(--accent); background: rgba(34,211,238,.1); border-color: var(--border-dark); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.section-head p { font-size: 1.08rem; margin-top: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .82rem; letter-spacing: .04em;
  padding: .95rem 1.6rem; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap; text-align: center; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-darker)); color: #fff; box-shadow: 0 8px 22px rgba(8,145,178,.32); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(8,145,178,.45); }

.btn--gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark)); color: #3a2500; box-shadow: 0 8px 22px rgba(245,158,11,.35); }
.btn--gold:hover { color: #3a2500; box-shadow: 0 12px 30px rgba(245,158,11,.5); }

.btn--wa { background: linear-gradient(135deg, #25d366, #128c4b); color: #fff; box-shadow: 0 8px 22px rgba(18,140,75,.32); }
.btn--wa:hover { color: #fff; box-shadow: 0 12px 30px rgba(18,140,75,.45); }

.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--primary-dark); border-color: var(--primary); background: rgba(8,145,178,.06); }
.section--dark .btn--ghost { color: #fff; border-color: var(--border-dark); }
.section--dark .btn--ghost:hover { background: rgba(34,211,238,.12); color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: .9rem; }
.btn--sm { padding: .65rem 1.1rem; font-size: .72rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

/* ---------- Panel (core control-center card) ---------- */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.panel--pad { padding: clamp(1.4rem, 2.6vw, 2.1rem); }
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* corner brackets accent */
.panel--bracket::before, .panel--bracket::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.panel--bracket::before { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 4px; }
.panel--bracket::after { bottom: 10px; right: 10px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); border-bottom-right-radius: 4px; }

/* panel header bar with LED + window dots */
.panel__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border-radius: var(--r-md) var(--r-md) 0 0;
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-darker);
}
.panel__led { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 2.4s ease-in-out infinite; }
.panel__dots { margin-left: auto; display: flex; gap: 5px; }
.panel__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.panel__dots span:nth-child(1){ background: var(--accent);}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

/* dark variant panel for hero/dashboards */
.panel--dark {
  background: linear-gradient(165deg, rgba(22,78,99,.9), rgba(8,42,53,.95));
  border: 1px solid var(--border-dark);
  color: var(--text-invert);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(4px);
}
.panel--dark .panel__bar { background: rgba(12,58,73,.6); border-color: var(--border-dark); color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(236, 254, 255, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__links a {
  font-family: var(--font-head);
  font-size: .74rem; letter-spacing: .03em;
  color: var(--text); padding: .6rem .85rem; border-radius: var(--r-sm);
  position: relative; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--primary-dark); background: rgba(8,145,178,.07); }
.nav__links a.active { color: var(--primary-dark); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px;
}
.nav__cta { margin-left: .6rem; }
.nav__links .btn--wa { display: none; } /* only surfaces inside the mobile menu */
.nav__toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center;
}
.nav__toggle span { position: relative; width: 20px; height: 2px; background: var(--primary-darker); border-radius: 2px; transition: .3s; display: block; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--primary-darker); border-radius: 2px; transition: .3s; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg-body); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem; margin: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.16,1,.3,1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .9rem 1rem; font-size: .82rem; border-radius: var(--r-md); }
  .nav__links a.active::after { display: none; }
  .nav__links a.active { background: rgba(8,145,178,.09); }
  .nav__links .btn { margin-top: .6rem; }
  .nav__links .btn--wa { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); background: rgba(34,211,238,.1); border: 1px solid var(--border-dark);
  padding: .45rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.3rem;
}
.hero__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-soft) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: 1.12rem; max-width: 46ch; margin-bottom: 1.8rem; }
.hero .btn-row { margin-bottom: 1.9rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero__stat { }
.hero__stat b { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; }
.hero__stat span { font-size: .8rem; color: var(--text-invert-muted); letter-spacing: .02em; }

/* Hero dashboard mock */
.dashboard {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
  padding: 1.1rem; border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(22,78,99,.55), rgba(8,42,53,.75));
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-dark);
}
.dashboard::after {
  content: "AllPanel777 • CONTROL CENTER"; position: absolute; top: -11px; left: 18px;
  font-family: var(--font-head); font-size: .58rem; letter-spacing: .18em;
  background: var(--gold); color: #3a2500; padding: .2rem .7rem; border-radius: var(--r-pill);
}
.dash-tile {
  background: linear-gradient(160deg, rgba(12,58,73,.9), rgba(8,42,53,.9));
  border: 1px solid var(--border-dark); border-radius: var(--r-md);
  padding: 1rem; min-height: 108px; position: relative; overflow: hidden;
}
.dash-tile h5 { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.dash-tile .big { font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.dash-tile .sub { font-size: .72rem; color: var(--text-invert-muted); }
.dash-tile--wide { grid-column: span 2; min-height: auto; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 40px; margin-top: .4rem; }
.dash-bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--primary)); border-radius: 3px 3px 0 0; opacity: .85; animation: rise 1.6s ease both; }
@keyframes rise { from { height: 0; } }
.dash-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .64rem; color: var(--text-invert); background: rgba(34,211,238,.14); border: 1px solid var(--border-dark); padding: .25rem .55rem; border-radius: var(--r-pill); }
.dash-tile .led { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { text-align: center; padding: 1.4rem 1rem; }
.stat-card b { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--primary-darker); display: block; }
.stat-card span { font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }
@media (max-width: 620px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.feature { padding: 1.6rem 1.5rem; }
.feature__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(34,211,238,.16), rgba(8,145,178,.12));
  border: 1px solid var(--border-strong); margin-bottom: 1.1rem; color: var(--primary-darker);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.feature p { font-size: .95rem; }
.feature--gold .feature__icon { background: linear-gradient(140deg, rgba(251,191,36,.2), rgba(245,158,11,.12)); border-color: rgba(245,158,11,.4); color: var(--gold-dark); }

/* ---------- Showcase cards (with images) ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.show-card { overflow: hidden; }
.show-card__media { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: var(--bg-dark); }
.show-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.show-card:hover .show-card__media img { transform: scale(1.06); }
.show-card__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-family: var(--font-head); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(12,58,73,.82); color: var(--accent); padding: .3rem .7rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-dark);
}
.show-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.show-card__body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.show-card__body p { font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.6rem 1.4rem; position: relative; }
.step__num {
  font-family: var(--font-head); font-size: 1rem; color: #fff;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-darker));
  box-shadow: 0 6px 16px rgba(8,145,178,.3); margin-bottom: 1rem;
}
.step:nth-child(4n) .step__num { background: linear-gradient(140deg, var(--gold-soft), var(--gold-dark)); box-shadow: 0 6px 16px rgba(245,158,11,.3); color: #3a2500; }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { font-size: .92rem; }

/* ---------- Split / info rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); width: 100%; }
.split__copy > p { margin-bottom: 1rem; }
.split__copy > p:last-of-type { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: .8rem; margin-top: 1.2rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--text-muted); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  background: rgba(34,211,238,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
  border: 1px solid var(--border-strong);
}
.section--dark .check-list li { color: var(--text-invert-muted); }
.section--dark .check-list li::before { background-color: rgba(34,211,238,.18); border-color: var(--border-dark); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  font-family: var(--font-head); font-size: .92rem; color: var(--text-strong);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--primary); line-height: 1; font-family: var(--font-body);
  transition: transform .3s ease; flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { font-size: .96rem; }
.faq__a p + p { margin-top: .7rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .panel--dark { padding: clamp(2.2rem, 5vw, 3.5rem); border-radius: var(--r-xl); }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { max-width: 55ch; margin: 0 auto 1.8rem; }

/* ---------- Forms (login / signup) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }
.form-panel { padding: clamp(1.6rem, 3vw, 2.4rem); }
.form-panel h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.form-panel .muted { font-size: .95rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-head); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-darker); margin-bottom: .5rem; }
.field input, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg-soft); color: var(--text-strong);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #8fb6c2; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.16); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px){ .field--row { grid-template-columns: 1fr; } }
.field__hint { font-size: .78rem; color: var(--text-muted); margin-top: .4rem; }
.field__error { font-size: .78rem; color: #dc2626; margin-top: .4rem; display: none; }
.field.invalid input, .field.invalid select { border-color: #f87171; background: #fff5f5; }
.field.invalid .field__error { display: block; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }
.form-aside { display: grid; gap: 1rem; }
.mini-panel { padding: 1.3rem 1.4rem; }
.mini-panel h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .04em; margin-bottom: .7rem; color: var(--text-strong); }
.mini-panel ol, .mini-panel ul { color: var(--text-muted); font-size: .92rem; display: grid; gap: .5rem; }
.form-alert {
  display: none; align-items: flex-start; gap: .6rem; padding: .9rem 1.1rem; border-radius: var(--r-sm);
  background: rgba(34,211,238,.1); border: 1px solid var(--border-strong); font-size: .9rem; color: var(--text-strong); margin-bottom: 1.2rem;
}
.form-alert.show { display: flex; }
.form-alert svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }

/* password reveal */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); padding: .35rem; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--primary); }

/* ---------- Tools shared ---------- */
.tool { padding: clamp(1.5rem, 3vw, 2.3rem); }
.tool__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tool__icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(140deg, var(--primary), var(--primary-darker)); color: #fff; flex-shrink: 0; }
.tool__icon svg { width: 24px; height: 24px; }
.tool__head h3 { font-size: 1.25rem; }
.tool__head p { font-size: .9rem; margin-top: .2rem; }

/* Panel Customizer (draggable) */
.customizer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
@media (max-width: 780px) { .customizer { grid-template-columns: 1fr; } }
.drag-list { display: grid; gap: .8rem; list-style: none; padding: 0; }
.drag-item {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  background: var(--bg-soft); border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  cursor: grab; transition: box-shadow .2s, border-color .2s, transform .15s, background .2s; user-select: none;
}
.drag-item:hover { border-color: var(--primary); background: #fff; }
.drag-item.dragging { opacity: .55; cursor: grabbing; box-shadow: var(--shadow-md); border-style: dashed; }
.drag-item.drag-over { border-color: var(--gold); box-shadow: var(--glow-gold); }
.drag-item__handle { color: var(--primary); flex-shrink: 0; display: grid; gap: 3px; }
.drag-item__handle i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.drag-item__rank { font-family: var(--font-head); font-size: .8rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(8,145,178,.12); color: var(--primary-darker); flex-shrink: 0; }
.drag-item__body { flex: 1; }
.drag-item__body b { display: block; font-family: var(--font-head); font-size: .82rem; color: var(--text-strong); }
.drag-item__body span { font-size: .82rem; color: var(--text-muted); }
.drag-item__emoji { font-size: 1.4rem; }
.customizer__preview { padding: 1.3rem; }
.customizer__preview h4 { font-family: var(--font-head); font-size: .8rem; margin-bottom: 1rem; color: var(--accent); }
.preview-stack { display: grid; gap: .6rem; }
.preview-slot { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: var(--r-sm); background: rgba(34,211,238,.08); border: 1px solid var(--border-dark); font-size: .82rem; color: var(--text-invert); transition: .3s; }
.preview-slot span.i { font-size: 1.1rem; }
.preview-slot b { font-family: var(--font-head); font-size: .72rem; }
.preview-slot small { margin-left: auto; color: var(--accent); font-size: .68rem; }

/* Multi-Bet Calculator */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
@media (max-width: 680px) { .calc-grid { grid-template-columns: 1fr; } }
.bet-slip { padding: 1.1rem; background: var(--bg-soft); border: 1.5px solid var(--border-strong); border-radius: var(--r-md); }
.bet-slip__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.bet-slip__top b { font-family: var(--font-head); font-size: .74rem; letter-spacing: .06em; color: var(--primary-darker); }
.bet-toggle { font-size: .7rem; font-family: var(--font-head); padding: .3rem .6rem; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: #fff; color: var(--primary); }
.bet-toggle.off { opacity: .45; }
.bet-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.bet-fields label { font-size: .66rem; font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: .3rem; }
.bet-fields input { width: 100%; padding: .6rem .7rem; border-radius: var(--r-sm); border: 1.5px solid var(--border-strong); background: #fff; font-size: .95rem; color: var(--text-strong); }
.bet-fields input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.bet-return { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--border-strong); display: flex; justify-content: space-between; font-size: .82rem; }
.bet-return b { font-family: var(--font-head); color: var(--primary-darker); }
.bet-slip.disabled { opacity: .5; }
.bet-slip.disabled .bet-fields { pointer-events: none; }
.calc-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 560px){ .calc-total { grid-template-columns: 1fr; } }
.calc-total__cell { text-align: center; padding: 1.1rem; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(12,58,73,.95), rgba(8,42,53,.95)); border: 1px solid var(--border-dark); }
.calc-total__cell span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .35rem; }
.calc-total__cell b { font-family: var(--font-head); font-size: 1.4rem; color: #fff; }
.calc-total__cell.gold { background: linear-gradient(160deg, var(--gold), var(--gold-dark)); border-color: var(--gold-soft); }
.calc-total__cell.gold span { color: #3a2500; }
.calc-total__cell.gold b { color: #fff; }

/* Panel Quiz */
.quiz { max-width: 720px; margin-inline: auto; }
.quiz__progress { height: 8px; background: var(--border); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 1.4rem; }
.quiz__bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: var(--r-pill); transition: width .4s ease; }
.quiz__step { display: none; animation: fade .4s ease; }
.quiz__step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none; } }
.quiz__count { font-family: var(--font-head); font-size: .68rem; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; margin-bottom: .6rem; }
.quiz__q { font-family: var(--font-head); font-size: 1.15rem; color: var(--text-strong); margin-bottom: 1.3rem; line-height: 1.35; }
.quiz__opts { display: grid; gap: .7rem; }
.quiz__opt {
  display: flex; align-items: center; gap: .8rem; text-align: left; width: 100%;
  padding: .95rem 1.1rem; border-radius: var(--r-md); border: 1.5px solid var(--border-strong);
  background: var(--bg-soft); color: var(--text); font-size: .96rem; transition: .2s;
}
.quiz__opt:hover { border-color: var(--primary); background: #fff; transform: translateX(3px); }
.quiz__opt.sel { border-color: var(--primary); background: rgba(34,211,238,.12); box-shadow: var(--glow-cyan); }
.quiz__opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; }
.quiz__opt.sel .dot { border-color: var(--primary); }
.quiz__opt.sel .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.quiz__opt .emoji { font-size: 1.3rem; }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.quiz__result { display: none; text-align: center; animation: fade .5s ease; }
.quiz__result.active { display: block; }
.result-emoji { font-size: 3.4rem; margin-bottom: .5rem; }
.result-name { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary-darker); margin-bottom: .3rem; }
.result-tag { display: inline-block; font-family: var(--font-head); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.35); padding: .3rem .8rem; border-radius: var(--r-pill); margin-bottom: 1rem; }
.result-desc { max-width: 48ch; margin: 0 auto 1.6rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose .updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .9rem; }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose ul, .prose ol { margin-bottom: 1rem; color: var(--text-muted); display: grid; gap: .5rem; }
.prose li { padding-left: .2rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-strong); }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.3rem 1.5rem; margin-bottom: 2.2rem; }
.toc h4 { font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-darker); margin-bottom: .8rem; }
.toc ol { display: block; columns: 2; column-gap: 2.5rem; font-size: .92rem; }
.toc li { margin-bottom: .55rem; break-inside: avoid; }
@media (max-width: 560px){ .toc ol { columns: 1; } }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(2.5rem, 5vw, 3.8rem); position: relative; overflow: hidden; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--text-invert-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { opacity: .6; }
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero p { max-width: 60ch; font-size: 1.05rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 720px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .ci { width: 46px; height: 46px; border-radius: var(--r-md); background: linear-gradient(140deg, rgba(34,211,238,.16), rgba(8,145,178,.12)); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--primary-darker); flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-head); font-size: .82rem; margin-bottom: .3rem; }
.contact-card p, .contact-card a { font-size: .92rem; color: var(--text-muted); word-break: break-word; }
.contact-card a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(34,211,238,.1), transparent 60%),
    linear-gradient(180deg, var(--bg-darker), var(--bg-deepest));
  color: var(--text-invert-muted); padding-block: clamp(2.8rem, 5vw, 4rem) 1.8rem;
  position: relative; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 42ch; color: var(--text-invert-muted); }
.footer-brand .btn { margin-top: 1.2rem; }
.footer-col h4 { font-family: var(--font-head); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--text-invert-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.footer-badge { font-family: var(--font-head); font-size: .58rem; letter-spacing: .06em; padding: .35rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--border-dark); color: var(--accent); background: rgba(34,211,238,.08); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .82rem; color: var(--text-invert-muted); }
.footer-bottom .fine { font-size: .74rem; max-width: 65ch; line-height: 1.6; }
.age-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-soft); font-family: var(--font-head); font-size: .7rem; flex-shrink: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.divider-note { text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
