:root {
  --bg: #07131a; --panel: #0e2230; --line: #1c3a4a; --text: #e6f1f5;
  --muted: #8fb0bd; --cyan: #19e3e3; --green: #22c55e; --red: #ef4444;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #04080c; min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.55; }
/* Ambient glow lives on a FIXED layer anchored to the viewport, not on the
   content. So the cyan/violet glow stays put in the corners no matter how
   little content a page has or how the window is resized -- the page never
   looks like it "collapses" upward. Sits behind everything (z-index -1),
   including the landing page's particle canvas (z-index 0). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(25,227,227,.10), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124,92,255,.08), transparent 60%);
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
a { color: var(--cyan); text-decoration: none; }

/* Dark scrollbar so no white strip cuts into the dark theme. */
html { scrollbar-color: #1c3a4a #07131a; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07131a; }
::-webkit-scrollbar-thumb { background: #1c3a4a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2a5468; }

/* Animated background canvas on non-landing pages (login/register): sits
   behind all content, never captures clicks. */
.bgfx-fixed { position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; }

.topbar { display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 22px; background: #061019;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 80; }
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.brand span { color: var(--cyan); }
.brand-logo { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }
.topbar nav { display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: .85rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 22px; }
.flash { background: rgba(25,227,227,.12); border: 1px solid var(--cyan); color: var(--cyan);
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; word-break: break-word; }

.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; cursor: pointer;
  background: #16384a; color: var(--text); border: 1px solid var(--line); font-size: .9rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease,
              border-color .15s ease; }
.btn:hover { filter: brightness(1.15); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25,227,227,.15); border-color: var(--cyan); }
.btn:active { transform: translateY(0); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(25,227,227,.4); }
.btn.primary { background: var(--cyan); color: #042; border-color: transparent; font-weight: 700; }
.btn.small { padding: 5px 10px; font-size: .78rem; }
.btn.big { padding: 13px 26px; font-size: 1.05rem; white-space: nowrap; }
.btn.danger { border-color: var(--red); color: var(--red); background: transparent; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 10px; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.cta { display: flex; gap: 12px; justify-content: center; }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 30px 0; }
.features .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features h3 { color: var(--cyan); margin: 0 0 6px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 12px; color: var(--cyan); font-size: 1.1rem; }
/* ---------------- auth pages (login / register) ---------------- */
.auth-wrap { display: flex; justify-content: center; padding: 44px 14px 64px; }
.auth-card { width: 100%; max-width: 410px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px;
  text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.45);
  animation: authIn .5s cubic-bezier(.22,.9,.35,1) both;
  transition: opacity .25s ease; }
@keyframes authIn {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
/* While the form is posting: card dims, button becomes a spinner. */
.auth-card.submitting { opacity: .75; pointer-events: none; }
.auth-submit.loading { color: transparent; position: relative; }
.auth-submit.loading::after { content: ""; position: absolute; inset: 0;
  margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(4,34,34,.3); border-top-color: #042;
  animation: authSpin .7s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-logo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  margin-bottom: 10px; animation: logoFloat 3.2s ease-in-out infinite; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.auth-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.auth-sub { color: var(--muted); margin: 0 0 22px; font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: block; }
.field-label { display: block; font-size: .8rem; color: var(--muted);
  margin-bottom: 6px; }
.field-label .opt { font-style: normal; opacity: .7; }
.auth-card input { width: 100%; padding: 12px 14px; font-size: 16px;
  border-radius: 10px; border: 1px solid var(--line); background: #08171f;
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.auth-card input:focus { outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,227,227,.15); }
/* Chrome autofill paints inputs white on dark themes; keep them dark. */
.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #08171f inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease;
}
/* Inline auth errors: red note under the fields, red borders on the inputs. */
.form-error { color: var(--red); font-size: .85rem; text-align: left;
  margin: -4px 0 0; }
.auth-card input.input-error { border-color: var(--red); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 8px; border-radius: 8px; transition: color .15s ease; }
.pw-eye:hover { color: var(--cyan); }
/* Google renders the widget at a fixed 304x78; scale it down so it sits
   lighter in the form, left-aligned with the input fields (negative margin
   trims the leftover layout space the transform leaves behind). */
.captcha-box { display: flex; justify-content: flex-start; }
.captcha-box > div { transform: scale(.6); transform-origin: left center;
  margin: -16px 0; }
/* Required indication: red outline around the widget itself, no banner. */
.captcha-box.captcha-error > div { outline: 2px solid var(--red);
  outline-offset: 3px; border-radius: 4px; }
.captcha-box.captcha-error { animation: capShake .3s ease; }
@keyframes capShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.auth-submit { width: 100%; padding: 13px; font-size: 1rem; font-weight: 700;
  margin-top: 4px; }
.auth-alt { margin-top: 18px; font-size: .9rem; }

/* ---------------- customer area (app shell) ---------------- */
/* Full-width page (no centered wrap) with a fixed, full-height left sidebar
   flush against the viewport edge, like a real dashboard app. */
.wrap-full { max-width: none; padding: 0; margin: 0; }
/* Wide-but-padded variant (admin dashboard tables). */
.wrap.wrap-wide { max-width: 1560px; }
/* License codes never wrap mid-key. */
td.code-cell { white-space: nowrap; }
.cust-side { position: fixed; left: 0; top: 64px; bottom: 0; width: 225px;
  background: #071219; border-right: 1px solid var(--line);
  padding: 16px 10px; overflow-y: auto; z-index: 60; }
.cust-side nav { display: flex; flex-direction: column; gap: 3px; }
.cust-side a { display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem;
  transition: background .15s ease, color .15s ease; }
.cust-side a:hover { background: #102838; color: var(--text); }
.cust-side a.active { background: rgba(25,227,227,.12); color: var(--cyan);
  box-shadow: inset 3px 0 0 var(--cyan); }
.side-ic { width: 17px; height: 17px; flex: 0 0 auto; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.side-sep { height: 1px; background: var(--line); margin: 10px 6px; }
/* Topbar hamburger: hidden on desktop (the fixed sidebar shows everything);
   on mobile it slides the sidebar in as a drawer over the content. */
.cust-menu-toggle { display: none; }
.cust-backdrop { position: fixed; inset: 0; top: 64px; z-index: 65;
  background: rgba(2, 8, 12, .6); }
.cust-main { margin-left: 225px; padding: 26px 30px 60px; max-width: 1180px;
  min-height: calc(100vh - 64px); }   /* fill below the 64px top bar, so a short
                                         page keeps the sidebar full-height look */
.cust-main h1 { margin: 0 0 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; }
.kpi b { display: block; font-size: 2rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .84rem; }
.kpi .k-green { color: var(--green); }
.kpi .k-cyan { color: var(--cyan); }

/* Admin dashboard: side-by-side generation cards with labeled forms. */
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.gen-card h2 { margin: 0 0 8px; }
.gen-card > .muted { font-size: .9rem; line-height: 1.55; margin: 0; }
.gen-form { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: .82rem;
  font-weight: 600; color: var(--muted); }
.fl .opt { font-weight: 400; opacity: .75; }
.fl input, .fl select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #08171f; color: var(--text); font-size: 15px; font-weight: 400; }
.fl input:focus, .fl select:focus { outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,227,227,.15); }
.gen-form .btn { align-self: flex-start; margin-top: 2px; }
.how-steps { margin: 14px 0 0; padding-left: 20px; display: flex;
  flex-direction: column; gap: 10px; font-size: .92rem; line-height: 1.55;
  color: var(--muted); }
.how-steps b { color: var(--text); }
@media (max-width: 820px) { .gen-grid { grid-template-columns: 1fr; } }

/* License table: filter chips, pagination, transferred tag. */
.lic-head { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.lic-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.03);
  transition: color .15s ease, border-color .15s ease, background .15s ease; }
.chip:hover { color: var(--text); border-color: var(--cyan); }
.chip.on { background: rgba(25,227,227,.14); color: var(--cyan); border-color: var(--cyan); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.tag-xfer { display: inline-block; font-size: .66rem; text-transform: uppercase; letter-spacing: .3px;
  color: var(--cyan); border: 1px solid rgba(25,227,227,.4); border-radius: 6px; padding: 1px 6px; }
/* Bulk select + actions. */
.chk-col { width: 34px; text-align: center; }
.row-check, #selectAll { width: 16px; height: 16px; cursor: pointer; accent-color: var(--cyan); }
.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px;
  padding: 10px 12px; border: 1px solid var(--cyan); border-radius: 10px;
  background: rgba(25,227,227,.08); }
.bulk-bar[hidden] { display: none; }
.bulk-bar #bulkCount { margin-right: 6px; font-weight: 600; color: var(--text); }
.bulk-email { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #08171f; color: var(--text); font-size: 13px; margin-left: auto; }
.bulk-email:focus { outline: none; border-color: var(--cyan); }

#unitsMap { height: 340px; border-radius: 12px; border: 1px solid var(--line);
  background: #0a1620;
  /* Isolate Leaflet's internal z-indexes (up to ~1000) so the map can never
     paint above the mobile drawer backdrop or modal overlays. */
  position: relative; z-index: 0; }
/* Online/offline indicators (map legend + active-licenses table). */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle; }
.dot-on { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.7); }
.dot-off { background: #64748b; }
.map-legend { color: var(--muted); margin: 10px 0 0; display: flex; gap: 8px;
  align-items: center; }
.map-legend .dot { margin-left: 10px; }
.map-legend .dot:first-child { margin-left: 0; }
#pickMap { height: 300px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a1620; margin: 8px 0;
  position: relative; z-index: 0; }   /* same Leaflet z-index isolation */

.copy-btn { background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); cursor: pointer; padding: 3px 6px; margin-left: 6px;
  vertical-align: -2px; transition: color .15s ease, border-color .15s ease; }
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; z-index: 90;
  padding: 14px; }
/* Critical: author display beats the hidden attribute, so make hidden real -
   otherwise the closed modal invisibly covers the page and eats every click. */
.modal-wrap[hidden] { display: none; }
.modal-card-lg { background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; width: 100%; max-width: 560px; }
.modal-card-lg h3 { margin: 0 0 10px; }
/* Small modal (e.g. the license transfer email prompt). */
.modal-card { background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; width: 100%; max-width: 380px; }
.modal-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.modal-card input { width: 100%; padding: 11px 12px; margin: 10px 0 4px;
  border-radius: 10px; border: 1px solid var(--line); background: #08171f;
  color: var(--text); font-size: 15px; }
.modal-card input:focus { outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,227,227,.15); }
.modal-actions { justify-content: flex-end; margin-top: 8px; }

@media (max-width: 820px) {
  /* Topbar hamburger appears; the sidebar becomes an off-canvas drawer that
     slides in over the content (same look as the desktop sidebar). */
  .cust-menu-toggle { display: inline-flex; align-items: center;
    justify-content: center; width: 40px; height: 40px; flex: 0 0 auto;
    border: none; border-radius: 10px; background: none; color: var(--text);
    cursor: pointer; }
  .cust-menu-toggle:hover { background: #102838; }
  .cust-menu-toggle svg { width: 22px; height: 22px; fill: none;
    stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .cust-side { z-index: 70; width: 240px; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 14px 0 40px rgba(0,0,0,.45); }
  .cust-side.open { transform: translateX(0); }
  .cust-main { margin-left: 0; padding: 18px 14px 50px; min-height: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  #unitsMap { height: 260px; }
}
/* Desktop safety: a drawer/backdrop left open while rotating to a wide screen
   must never dim or cover the normal layout. */
@media (min-width: 821px) {
  .cust-backdrop { display: none !important; }
}

/* ---------------- downloads page ---------------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-top: 18px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-align: center; }
.dl-card h3 { margin: 12px 0 6px; }
.dl-img { width: 100%; height: 150px; object-fit: contain; border-radius: 10px;
  background: #08171f; }
.dl-img-fallback { display: flex; align-items: center; justify-content: center;
  font-size: 3rem; }
/* Admin-only: set/update a board's download link. */
.dl-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; }
.dl-edit input { width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: #08171f; color: var(--text);
  font-size: 13px; }
.dl-edit input:focus { outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,227,227,.15); }
.dl-edit .btn { align-self: center; }

/* "or" divider + Google button between the form and the footer link. */
.or-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px;
  color: var(--muted); font-size: .8rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px;
  background: var(--line); }
.gsi-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.fb-wrap { display: flex; justify-content: center; margin-top: 8px; }
.fb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 22px; border-radius: 999px; border: none; cursor: pointer;
  background: #1877f2; color: #fff; font-weight: 600; font-size: .95rem;
  font-family: inherit; transition: filter .15s ease, transform .15s ease; }
.fb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fb-btn:active { transform: translateY(0); }

input, select { padding: 9px; border-radius: 8px; border: 1px solid var(--line);
  background: #08171f; color: var(--text); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: .86rem; }
th { color: var(--muted); white-space: nowrap; }
.tscroll { overflow-x: auto; }
.mono { font-family: ui-monospace, monospace; }
.small { font-size: .78rem; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline { display: inline-flex; gap: 4px; }

.pill { padding: 2px 9px; border-radius: 999px; font-size: .72rem; text-transform: uppercase; }
.pill.active, .pill.fulfilled { background: rgba(34,197,94,.2); color: var(--green); }
.pill.unassigned, .pill.pending { background: rgba(143,176,189,.2); color: var(--muted); }
.pill.revoked, .pill.expired { background: rgba(239,68,68,.2); color: var(--red); }

.pricing table { max-width: 560px; }
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: stretch; }
}

/* Phones: compact header, roomy auth card. */
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; }
  .brand { font-size: 1rem; }
  .brand-logo { height: 28px; width: 28px; }
  .topbar nav { gap: 8px; }
  .who { display: none; }             /* email/role text is too wide on phones */
  .auth-wrap { padding: 22px 10px 40px; }
  .auth-card { padding: 24px 18px; }
}

/* ---------------- marketing landing ---------------- */
html { scroll-behavior: smooth; }
/* (.landing shares the body background defined at the top of this file.) */
.bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Content above the canvas, but don't override the sticky nav's positioning
   or the fixed intro curtain (which must stay above everything). */
.landing > *:not(.bgfx):not(.lnav):not(.intro) { position: relative; z-index: 1; }
/* 3-column grid: equal flexible sides keep the links centered on the page
   itself, not merely between the (unequal) brand and Login widths. */
.lnav { position: sticky; top: 0; z-index: 50; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 18px; padding: 14px 28px; background: rgba(4,8,12,.92);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.lnav .brand { font-size: 1.25rem; justify-self: start; }
.lnav-links { display: flex; gap: 20px; justify-self: center; }
.lnav-links a { color: var(--muted); font-weight: 600; position: relative;
  padding-bottom: 3px; transition: color .15s ease; }
.lnav-links a::after { content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.lnav-links a:hover { color: var(--cyan); }
.lnav-links a:hover::after { transform: scaleX(1); }
.lnav-cta { display: flex; gap: 10px; justify-self: end; }
/* Just the icon, no box. What made this look big was not the icon but the
   filled, bordered square around it -- that reads as a button competing with
   the brand. The touch area stays a comfortable ~40px through padding, so it
   is still easy to hit while being visually quiet. */
.lnav-toggle { display: none; cursor: pointer;
  background: none; border: none; padding: 10px;
  color: var(--muted); border-radius: 8px;
  transition: color .15s ease, background .15s ease; }
.lnav-toggle:hover { color: var(--text); background: rgba(28, 58, 74, .45); }
.lnav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; }
.lnav-toggle .ic-close { display: none; }
/* Dims only the area the drawer covers. Starting at 0 would grey out the
   header as well, which is the opposite of keeping the bar readable while the
   menu is open. Falls back to full height where --lnav-h is not set. */
.lnav-backdrop { position: fixed; top: var(--lnav-h, 0px); left: 0; right: 0; bottom: 0;
  z-index: 110; background: rgba(2, 8, 12, .6); }

.landing section { scroll-margin-top: 72px; }
.hero { text-align: center; padding: 80px 22px 60px; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; line-height: 1.1; margin: 0 0 18px; }
.hero h1 span { color: var(--cyan); }
.hero .lead { font-size: 1.05rem; }
.cta { margin-top: 26px; }

.section { max-width: 1080px; margin: 0 auto; padding: 64px 22px; }
.section.alt, .section.contact { background: rgba(8,18,26,.45); max-width: none; }
.section.alt > *, .section.contact > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section h2 { text-align: center; font-size: 1.9rem; color: #fff; margin: 0 0 6px; }
.center { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.grid .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.grid .card:hover { transform: translateY(-5px); border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(0,0,0,.4); }
/* Feature/contact icons: one consistent line-icon style instead of emoji. */
.card-ic { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 10px; }
.cicon { display: flex; justify-content: center; margin-bottom: 6px; }
.cicon svg { width: 30px; height: 30px; color: var(--cyan); }
.grid .card h3 { margin: 0 0 8px; font-size: 1rem; }
.grid .card p { color: var(--muted); font-size: .9rem; margin: 0; }

.dl-cards, .price-grid, .social-grid { display: grid; gap: 16px; margin-top: 28px; }
.dl-cards { grid-template-columns: repeat(3, 1fr); }
.dl-cards .card { text-align: center; }
.price-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.price-card { background: var(--panel); border: 1px solid var(--cyan); border-radius: 16px; padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(25,227,227,.16); }
.dl-cards .card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.dl-cards .card:hover { transform: translateY(-5px); border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(0,0,0,.4); }

/* ------------- landing content animations (reveal + shine) ------------- */
/* Scroll reveal: elements start lower + invisible, glide in when scrolled to.
   The .rev classes are added and later removed by JS so the reveal transition
   never interferes with the normal hover transitions. */
.landing .rev { opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease; }
.landing .rev-in { opacity: 1; transform: none; }

/* Light sweep gliding across primary buttons every few seconds. */
.landing .btn.primary { position: relative; overflow: hidden; }
.landing .btn.primary::after { content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  animation: btnshine 4.2s ease-in-out infinite; }
@keyframes btnshine {
  0%, 55%    { transform: translateX(0) skewX(-20deg); }
  85%, 100%  { transform: translateX(480%) skewX(-20deg); }
}

/* ------------- intro rocket launch + floating brand logo ------------- */
/* A branded rocket carrying the logo rises onto the pad, shakes as it ignites,
   then blasts off the top of the screen; the curtain fades to reveal the page.
   Timing is pure CSS so it always clears even if scripts don't run. */
.intro { position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(600px 520px at 50% 58%, rgba(25,227,227,.12), transparent 62%), #04080c;
  animation: introOut .6s ease 2.35s forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.intro-inner { position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; gap: 14px; }
.intro-stars { position: absolute; inset: 0; pointer-events: none;
  animation: starTwinkle 2.2s ease-in-out infinite;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 22%, #bfefff, transparent),
    radial-gradient(1.5px 1.5px at 66% 64%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 34% 74%, #cdefff, transparent),
    radial-gradient(2px 2px at 50% 44%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 12% 60%, #9fe6ff, transparent),
    radial-gradient(1.5px 1.5px at 88% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 74% 40%, #fff, transparent); }
@keyframes starTwinkle { 0%, 100% { opacity: .3; } 50% { opacity: .75; } }

.rocket { position: relative; width: 150px; height: 263px;
  animation: rocketLaunch 2.6s both; }
.rocket-svg { width: 150px; height: auto; display: block;
  filter: drop-shadow(0 0 14px rgba(25,227,227,.35)); }
.rocket-svg .hull { fill: #eaf6f8; stroke: #19e3e3; stroke-width: 3; }
.rocket-svg .fin { fill: #0bb6c6; }
.rocket-svg .port { fill: #07131a; stroke: #19e3e3; stroke-width: 3; }
.rocket-svg .nozzle { fill: #0bb6c6; }
.rocket-logo { position: absolute; left: 50%; top: 39%; width: 50px; height: 50px;
  transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; }
.rocket-flame { position: absolute; left: 50%; top: 89%; width: 26px; height: 46px;
  transform: translateX(-50%); transform-origin: top center;
  border-radius: 50% 50% 46% 46% / 26% 26% 74% 74%;
  background: radial-gradient(ellipse at 50% 18%, #fff, #ffd24a 32%, #ff7a00 62%, rgba(255,90,0,0) 78%);
  filter: blur(1px); animation: flameBuild 2.6s ease-in both, flameFlicker .12s ease-in-out infinite; }
.rocket-smoke { position: absolute; left: 50%; top: 90%; width: 130px; height: 130px;
  transform: translateX(-50%) scale(0); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(226,244,248,.55), rgba(226,244,248,0) 66%);
  filter: blur(7px); animation: smokePuff 2.6s ease-out both; }
@keyframes rocketLaunch {
  0%   { transform: translateY(92px) scale(.9); opacity: 0; }
  10%  { transform: translateY(0) scale(1); opacity: 1; }
  14%  { transform: translate(-3px, 0); }
  18%  { transform: translate(3px, 0); }
  22%  { transform: translate(-2px, 0); }
  26%  { transform: translate(2px, 0); }
  30%  { transform: translate(0, 0); }
  50%  { transform: translateY(-6px) scale(1.02); }
  55%  { transform: translateY(-2px) scale(1); animation-timing-function: cubic-bezier(.55, 0, .9, .25); }
  100% { transform: translateY(-150vh) scale(.55); opacity: 1; }
}
@keyframes flameBuild {
  0%, 45% { transform: translateX(-50%) scaleY(.55) scaleX(.85); }
  55%     { transform: translateX(-50%) scaleY(1.2) scaleX(1.05); }
  100%    { transform: translateX(-50%) scaleY(2.7) scaleX(1.25); }
}
@keyframes flameFlicker { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes smokePuff {
  0%, 47% { transform: translateX(-50%) scale(0); opacity: 0; }
  60%     { transform: translateX(-50%) scale(1); opacity: .75; }
  100%    { transform: translateX(-50%) scale(2.2); opacity: 0; }
}
.intro-word { font-weight: 800; font-size: 1.4rem; letter-spacing: .3px; color: var(--text);
  opacity: 0; animation: introFade .6s ease .25s forwards; }
.intro-word span { color: var(--cyan); }
.intro-tag { color: var(--muted); font-size: .9rem; opacity: 0;
  animation: introFade .6s ease .45s forwards; }
@keyframes introFade { to { opacity: 1; } }

/* Gentle floating brand logo in the nav, with a soft cyan glow pulse. */
.lnav .brand-logo { animation: navFloat 3.6s ease-in-out infinite; will-change: transform; }
@keyframes navFloat {
  0%, 100% { transform: translateY(0);   filter: drop-shadow(0 0 3px rgba(25,227,227,.35)); }
  50%      { transform: translateY(-5px); filter: drop-shadow(0 0 9px rgba(25,227,227,.70)); }
}

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
  .btn, .grid .card, .price-card, .dl-cards .card, .lnav-links a::after { transition: none; }
  .btn:hover, .grid .card:hover, .price-card:hover, .dl-cards .card:hover { transform: none; }
  .landing .rev { opacity: 1; transform: none; transition: none; }
  .landing .btn.primary::after { animation: none; display: none; }
  .auth-card { animation: none; }
  .auth-logo { animation: none; }
  .intro { display: none; }
  .lnav .brand-logo { animation: none; filter: none; }
  .lnav-links, .lnav-cta, .cust-side { transition: none; }
  .lnav-toggle svg { transition: none; }
  .lnav.open .lnav-toggle { animation: none; }
}
/* Desktop safety: a landing drawer/backdrop left open while rotating to a
   wide screen must never dim or cover the normal horizontal nav. */
@media (min-width: 861px) {
  .lnav-backdrop { display: none !important; }
}
.price-card h3 { text-align: center; color: var(--cyan); font-size: 1.4rem; margin: 0 0 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--line); }
.price-card li b { color: var(--cyan); }
.price-card li.free { color: var(--green); justify-content: center; border-bottom: none; }
.section .cta, .section .center { margin-top: 26px; }

/* Social: brand-tinted channel cards (icon chip + name + descriptor) rather
   than a row of look-alike buttons. Each card carries its platform colour via
   a --brand custom property set inline. */
.social-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin-inline: auto; }
.social-card { display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.social-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform .2s ease; }
.social-card:hover { transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 14px 30px rgba(0,0,0,.42); }
.social-card:hover::before { transform: scaleY(1); }
.social-chip { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: #12303f; border: 1px solid var(--line);
  transition: background .18s ease, border-color .18s ease; }
.social-chip { background: color-mix(in srgb, var(--brand) 15%, transparent);
  border-color: color-mix(in srgb, var(--brand) 32%, transparent); }
.social-chip svg { width: 23px; height: 23px; display: block; }
.social-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.social-meta b { font-size: .98rem; }
.social-meta small { color: var(--muted); font-size: .78rem; }

/* Contact: one unified panel with a cyan hairline accent and column dividers,
   left-aligned rows with an icon chip + micro-label + value. */
.contact-panel { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; position: relative; }
.contact-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.contact-item { display: flex; align-items: flex-start; gap: 14px; padding: 26px 24px; }
.contact-item + .contact-item { border-left: 1px solid var(--line); }
.contact-chip { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(25,227,227,.1); border: 1px solid rgba(25,227,227,.26); }
.contact-chip svg { width: 21px; height: 21px; }
.contact-body { min-width: 0; }
.contact-label { display: block; font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-value { margin: 0; font-size: .96rem; line-height: 1.55; word-break: break-word; }
.lfoot { text-align: center; padding: 26px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  /* Hamburger + off-canvas drawer. The drawer occupies the screen BELOW the
     header rather than sliding up behind it: the bar stays fully visible and
     undimmed, and the close button remains part of the bar instead of sitting
     on the drawer's panel. --lnav-h is the bar's own height (12px padding +
     34px brand + 12px padding + 1px border), and the drawer, its Login footer
     and the backdrop all measure from it so they can never drift apart. */
  .landing { --lnav-h: 59px; }
  .lnav { display: flex; justify-content: space-between; align-items: center;
    gap: 10px; padding: 12px 16px;
    /* Above the drawer, so the bar and its close button stay on top. */
    z-index: 130;
    /* backdrop-filter would make the header the containing block for the
       fixed drawer/backdrop (trapping them inside its 59px box); the bar is
       92% opaque so the blur is invisible on phones anyway. */
    backdrop-filter: none; }
  /* The toggle is pinned to the corner and stacked ABOVE the drawer. On open
     it rides in with the drawer edge (same 250px travel, same easing) while
     the burger rotates/fades into an X; closing morphs it back in place. */
  /* Header is 12px padding + 34px brand + 12px padding. The button's box is
     20px icon + 10px padding each side = 40px, so 9px centres it. `right` is
     the 16px gutter minus the 10px padding, so the icon itself lines up with
     the brand rather than its invisible padding doing so. */
  .lnav-toggle { display: grid; place-items: center;
    position: fixed; top: 9px; right: 6px; z-index: 2; }
  .lnav-toggle svg { grid-area: 1 / 1;
    transition: opacity .22s ease, transform .22s ease; }
  .lnav-toggle .ic-close { display: block; opacity: 0; transform: rotate(-90deg); }
  .lnav.open .lnav-toggle { animation: toggleRide .22s ease; color: var(--text); }
  .lnav.open .lnav-toggle .ic-menu { opacity: 0; transform: rotate(90deg); }
  .lnav.open .lnav-toggle .ic-close { opacity: 1; transform: rotate(0deg); }
  /* The drawer slides in from the RIGHT, matching where the hamburger sits. */
  .lnav-links { position: fixed; top: var(--lnav-h); bottom: 0; right: 0; width: 250px;
    z-index: 120; display: flex; flex-direction: column; gap: 2px;
    padding: 14px 14px 88px; background: #071219;
    border-left: 1px solid var(--line); overflow-y: auto;
    transform: translateX(100%); transition: transform .22s ease;
    box-shadow: -14px 0 40px rgba(0,0,0,.45); }
  .lnav-links a { padding: 12px; border-radius: 10px; }
  .lnav-links a::after { display: none; }
  .lnav-links a:hover { background: #102838; }
  .lnav-cta { position: fixed; right: 0; bottom: 0; width: 250px; z-index: 121;
    display: flex; padding: 14px; background: #071219;
    border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: translateX(100%); transition: transform .22s ease; }
  .lnav-cta .btn { flex: 1; text-align: center; }
  .lnav.open .lnav-links, .lnav.open .lnav-cta { transform: translateX(0); }

  .hero h1 { font-size: 2rem; }
  .grid, .dl-cards, .price-grid, .social-grid, .contact-panel { grid-template-columns: 1fr; }
  /* Stacked contact rows: dividers run across instead of between columns. */
  .contact-item + .contact-item { border-left: none; border-top: 1px solid var(--line); }
  /* Hero buttons stack full-width so labels don't wrap awkwardly. */
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; text-align: center; }
}
/* Toggle ride-in: matches the drawer's width and easing so the button looks
   glued to the sliding menu edge. */
@keyframes toggleRide {
  from { transform: translateX(250px); }
  to   { transform: translateX(0); }
}

/* ---- legal pages (privacy, terms, data deletion) ------------------------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 70px; line-height: 1.65; }
.legal-wrap h1 { font-size: 1.9rem; margin: 0 0 6px; }
.legal-wrap h2 { color: var(--cyan); font-size: 1.05rem; margin: 30px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--text); }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a { color: var(--cyan); }
.legal-back { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.lfoot-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 8px; }
.lfoot-links a { color: var(--muted); font-size: .85rem; }
.lfoot-links a:hover { color: var(--cyan); }

/* Sign-up provider tags on the developer dashboard. */
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  justify-content: space-between; }
.prov-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.prov { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; }
.prov b { font-weight: 800; }
.prov-password { background: rgba(25,227,227,.13); color: var(--cyan); border-color: rgba(25,227,227,.32); }
.prov-google   { background: rgba(234,67,53,.14);  color: #ff8a7a; border-color: rgba(234,67,53,.34); }
.prov-facebook { background: rgba(24,119,242,.15); color: #7ab6ff; border-color: rgba(24,119,242,.36); }
.prov-unknown  { background: rgba(143,176,189,.12); color: var(--muted); border-color: var(--line); }
.k-violet { color: #a78bfa; }
