/* Rocket Service — dashboard theme */
:root {
  --space: #040A16;
  --space-2: #071226;
  --panel: #0A1830;
  --panel-2: #0E2040;
  --line: #17305A;
  --blue: #12B0FF;
  --blue-deep: #0A6BFF;
  --ice: #CDEFFF;
  --white: #FFFFFF;
  --text: #E8F4FF;
  --muted: #8AA3C7;
  --ok: #2EE6A6;
  --warn: #FFB547;
  --err: #FF5C7A;
  --flame: #FF7AD9;
  --glow: 0 0 18px rgba(18, 176, 255, .55), 0 0 42px rgba(18, 176, 255, .25);
  --glow-soft: 0 0 24px rgba(18, 176, 255, .18);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--space);
  color: var(--text);
  font: 15px/1.55 var(--body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ice); }
::selection { background: var(--blue); color: var(--space); }

/* Starfield behind everything */
.stars, .stars::before, .stars::after {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat;
}
.stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 80px, rgba(205,239,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 160px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 260px, rgba(205,239,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 220px, rgba(255,255,255,.7) 50%, transparent 51%);
  background-size: 380px 300px;
  opacity: .35;
  animation: drift 120s linear infinite;
}
.stars::before {
  content: "";
  background-image:
    radial-gradient(1px 1px at 50px 120px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 210px 40px, rgba(18,176,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 200px, #fff 50%, transparent 51%);
  background-size: 520px 420px;
  opacity: .6;
  animation: drift 200s linear infinite reverse;
}
.stars::after {
  content: "";
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(10,107,255,.22), transparent 70%),
    radial-gradient(600px 400px at -10% 110%, rgba(18,176,255,.12), transparent 70%);
}
@keyframes drift { to { background-position: -380px 300px, -380px 300px, -380px 300px, -380px 300px, -380px 300px; } }

/* ---------- Layout ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, rgba(10,24,48,.92), rgba(4,10,22,.92));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(18,176,255,.6)); }
.wordmark {
  font: italic 900 21px/0.95 var(--display);
  letter-spacing: -.5px; transform: skewX(-6deg);
  color: var(--white);
  text-shadow: 0 0 12px rgba(18,176,255,.75), 0 0 28px rgba(18,176,255,.35);
}
.wordmark span { display: block; color: var(--blue); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  color: var(--muted); font-weight: 600;
  transition: color .15s, background .15s, box-shadow .2s;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { color: var(--white); background: rgba(18,176,255,.07); }
.nav a.on {
  color: var(--white);
  background: linear-gradient(90deg, rgba(18,176,255,.22), rgba(18,176,255,.04));
  box-shadow: inset 3px 0 0 var(--blue), var(--glow-soft);
}
.nav a.on svg { color: var(--blue); filter: drop-shadow(0 0 6px var(--blue)); }

.server {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--r-md); background: rgba(18,176,255,.06); border: 1px solid var(--line);
}
.server img, .server .ph { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.server .ph { display: grid; place-items: center; background: var(--panel-2); font-weight: 800; color: var(--blue); }
.server b { display: block; font-size: 13px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server small { color: var(--muted); font-size: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.me img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blue); box-shadow: var(--glow-soft); }
.me span { flex: 1; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.me button:hover { color: var(--err); background: rgba(255,92,122,.1); }

.main { padding: 34px 42px 60px; min-width: 0; max-width: 1240px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head h1 {
  margin: 0; font: italic 900 38px/1 var(--display); letter-spacing: -1px;
  color: var(--white); transform: skewX(-6deg); transform-origin: left;
  text-shadow: 0 0 22px rgba(18,176,255,.45);
}
.head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.btn.menu-btn { display: none; margin-bottom: 14px; }

/* ---------- Surfaces ---------- */
.card {
  background: linear-gradient(180deg, rgba(14,32,64,.75), rgba(10,24,48,.75));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; position: relative;
}
.card h2 { margin: 0 0 4px; font: 800 17px/1.3 var(--display); color: var(--white); }
.card > .hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Stat tiles */
.stat { overflow: hidden; }
.stat .k { color: var(--muted); font-weight: 600; font-size: 14px; }
.stat .v {
  font: italic 900 44px/1.1 var(--display); color: var(--white); margin-top: 6px;
  letter-spacing: -1px; text-shadow: 0 0 20px rgba(18,176,255,.4);
}
.stat .v small { font-size: 18px; color: var(--muted); font-style: normal; font-weight: 700; margin-left: 4px; letter-spacing: 0; text-shadow: none; }
.stat.hero { border-color: rgba(18,176,255,.55); box-shadow: var(--glow-soft), inset 0 0 40px rgba(18,176,255,.08); }
.stat.hero .v { color: var(--blue); text-shadow: var(--glow); }
.stat .icon { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(18,176,255,.12); color: var(--blue); }
.stat .icon svg { width: 20px; height: 20px; }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar i {
  display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  box-shadow: 0 0 14px rgba(18,176,255,.45);
  height: calc((100% - 26px) * var(--p, 0)); min-height: 3px; flex: none;
  transform-origin: bottom; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 40ms);
  position: relative;
}
.bar i[data-n="0"] { background: var(--line); box-shadow: none; }
.bar i:hover::after {
  content: attr(data-n); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--space); font: 800 12px var(--body); padding: 2px 7px; border-radius: 6px;
}
.bar span { font-size: 11px; color: var(--muted); white-space: nowrap; height: 16px; line-height: 16px; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Lists & tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 13px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid rgba(23,48,90,.6); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(18,176,255,.05); }
.num { font: italic 800 15px var(--display); color: var(--ice); }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 26px; height: 26px; border-radius: 50%; }
.scroll-x { overflow-x: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.open { color: var(--ok); background: rgba(46,230,166,.1); }
.pill.closed { color: var(--muted); background: rgba(138,163,199,.1); }
.pill.closed::before { box-shadow: none; }
.pill.low { color: #2EE6A6; background: rgba(46,230,166,.08); }
.pill.normal { color: var(--blue); background: rgba(18,176,255,.1); }
.pill.high { color: var(--warn); background: rgba(255,181,71,.1); }
.pill.urgent { color: var(--err); background: rgba(255,92,122,.12); }

.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty b { display: block; color: var(--white); font-size: 16px; margin-bottom: 4px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 700; font-size: 14px; color: var(--white); }
.field > small { color: var(--muted); font-size: 13px; margin-top: -2px; }
input[type=text], input[type=number], input[type=url], input[type=time], input[type=password], select, textarea {
  width: 100%; background: var(--space-2); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; font: 500 14px var(--body); outline: none;
  transition: border-color .15s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,176,255,.18), var(--glow-soft); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type=color] { width: 48px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--space-2); cursor: pointer; }
.color-row { display: flex; gap: 10px; align-items: center; }

/* Toggle */
.toggle { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; padding: 12px 0; border-bottom: 1px solid rgba(23,48,90,.6); }
.toggle:last-child { border-bottom: 0; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { flex: none; width: 44px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s, box-shadow .2s; margin-top: 1px; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .25s cubic-bezier(.3,1.4,.5,1), background .2s; }
.toggle input:checked + .sw { background: var(--blue); box-shadow: var(--glow); }
.toggle input:checked + .sw::after { transform: translateX(20px); background: var(--white); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--ice); outline-offset: 2px; }
.toggle b { display: block; color: var(--white); font-size: 14px; }
.toggle small { color: var(--muted); font-size: 13px; }

/* Role / option chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--space-2); color: var(--muted); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .15s; user-select: none;
}
.chip span i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip input:checked + span { color: var(--white); border-color: var(--blue); background: rgba(18,176,255,.14); box-shadow: var(--glow-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 800 14px var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: var(--space); background: linear-gradient(180deg, #5DCBFF, var(--blue)); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 6px 22px rgba(18,176,255,.35); }
.btn-primary:hover { color: var(--space); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, var(--glow); }
.btn-ghost { color: var(--text); background: rgba(18,176,255,.06); border-color: var(--line); }
.btn-ghost:hover { color: var(--white); border-color: var(--blue); box-shadow: var(--glow-soft); }
.btn-danger { color: var(--err); background: rgba(255,92,122,.08); border-color: rgba(255,92,122,.3); }
.btn-danger:hover { color: var(--white); background: var(--err); box-shadow: 0 0 20px rgba(255,92,122,.45); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Save bar: sticks to the bottom of long forms */
.savebar {
  position: sticky; bottom: 18px; z-index: 5; margin-top: 18px;
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px; border-radius: var(--r-lg);
  background: rgba(7,18,38,.85); border: 1px solid var(--line); backdrop-filter: blur(10px);
}

/* Toast */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 380px;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: var(--r-md); font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--blue); color: var(--white); box-shadow: var(--glow);
  animation: toast-in .45s cubic-bezier(.2,1.3,.4,1) both, toast-out .4s ease 4.2s forwards;
}
.toast.err { border-color: var(--err); box-shadow: 0 0 22px rgba(255,92,122,.4); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.toast.err svg { color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); visibility: hidden; } }

/* Discord-style preview for panels */
.preview { background: #313338; border-radius: var(--r-md); padding: 14px; font-family: "gg sans", var(--body); }
.preview .embed { background: #2B2D31; border-left: 4px solid var(--c, var(--blue)); border-radius: 4px; padding: 12px 14px; }
.preview .embed b { color: #fff; display: block; margin-bottom: 6px; }
.preview .embed p { margin: 0; color: #DBDEE1; font-size: 14px; white-space: pre-wrap; }
.preview .embed img { max-width: 100%; border-radius: 4px; margin-top: 10px; }
.preview .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preview .dbtn { padding: 6px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #fff; background: #5865F2; }
.preview .dbtn.Secondary { background: #4E5058; } .preview .dbtn.Success { background: #248046; } .preview .dbtn.Danger { background: #DA373C; }
.preview .dsel { margin-top: 8px; padding: 9px 12px; background: #1E1F22; border-radius: 4px; color: #949BA4; font-size: 14px; }

details.panel-edit > summary { list-style: none; cursor: pointer; }
details.panel-edit > summary::-webkit-details-marker { display: none; }
details.panel-edit[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; }

.kbd { font-family: ui-monospace, Consolas, monospace; background: var(--space-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; color: var(--ice); }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; align-items: center; }

/* ---------- Login ---------- */
.login {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; place-items: center; padding: 32px 16px; text-align: center;
}
.launch { display: flex; flex-direction: column; align-items: center; }
.launch .rocket {
  width: 230px; height: 230px;
  filter: drop-shadow(0 0 22px rgba(18,176,255,.55));
  animation: liftoff 1.4s cubic-bezier(.2,.9,.25,1) both, hover 4s ease-in-out 1.4s infinite;
}
@keyframes liftoff { from { opacity: 0; transform: translate(-60px, 90px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes hover { 50% { transform: translate(4px, -8px); } }
.login .wordmark-xl {
  margin: 4px 0 0; font: italic 900 clamp(46px, 9vw, 96px)/.9 var(--display); letter-spacing: -3px;
  transform: skewX(-8deg); color: var(--blue);
  background: linear-gradient(180deg, #E9F8FF 0%, #6FD3FF 38%, var(--blue) 62%, #0E8BE0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(18,176,255,.6));
  animation: wordmark-in .9s cubic-bezier(.2,.9,.25,1) .35s both;
}
@keyframes wordmark-in { from { opacity: 0; letter-spacing: 12px; filter: blur(8px); } }
.login .sub { margin: 18px 0 30px; color: var(--muted); font-size: 16px; animation: fade .8s ease .8s both; }
.login .box { width: min(420px, 100%); animation: fade .8s ease 1s both; }
.btn-discord {
  width: 100%; padding: 16px 20px; font-size: 16px; border-radius: 14px;
  color: var(--white); background: linear-gradient(180deg, #2B8BFF, var(--blue-deep));
  border: 1px solid rgba(205,239,255,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 34px rgba(10,107,255,.45);
  position: relative; overflow: hidden;
}
.btn-discord::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  animation: sheen 3.5s ease-in-out 2s infinite;
}
.btn-discord:hover { color: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 26px rgba(18,176,255,.75), 0 0 60px rgba(18,176,255,.35); }
.btn-discord svg { width: 24px; height: 24px; }
@keyframes sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.login .error { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; color: var(--white); background: rgba(255,92,122,.12); border: 1px solid rgba(255,92,122,.4); font-weight: 600; font-size: 14px; }
.login .fine { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.9,.25,1); }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .main { padding: 20px 16px 50px; }
  .btn.menu-btn { display: inline-flex; }
  .g2, .g3, .g-wide { grid-template-columns: 1fr; }
  .bar:not(:first-child):not(:last-child) span { visibility: hidden; }
  .head h1 { font-size: 30px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .stat .v { font-size: 34px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Store / portal (license server) ---------- */
.site { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 22px 20px 70px; }
.topbar { display: flex; align-items: center; gap: 16px; }
.topbar .brand img { width: 46px; height: 46px; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; }
.topbar nav a { color: var(--muted); font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.topbar nav a:hover, .topbar nav a.on { color: var(--white); background: rgba(18,176,255,.08); }

.store-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 46px 0 34px; }
.store-hero h1 {
  margin: 0; font: italic 900 clamp(52px, 8vw, 104px)/.88 var(--display); letter-spacing: -3px; transform: skewX(-8deg); transform-origin: left;
  background: linear-gradient(180deg, #E9F8FF 0%, #6FD3FF 38%, var(--blue) 62%, #0E8BE0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(18,176,255,.55));
  animation: wordmark-in .9s cubic-bezier(.2,.9,.25,1) .2s both;
}
.store-hero p { margin: 22px 0 0; font-size: 18px; color: var(--muted); max-width: 46ch; animation: fade .8s ease .6s both; }
.store-hero .rocket { width: min(380px, 100%); filter: drop-shadow(0 0 30px rgba(18,176,255,.5)); justify-self: center; animation: liftoff 1.4s cubic-bezier(.2,.9,.25,1) both, hover 4s ease-in-out 1.4s infinite; }

.product { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; padding: 0; overflow: hidden; border-color: rgba(18,176,255,.45); box-shadow: var(--glow-soft); }
.product .info { padding: 30px; }
.product .buy { padding: 30px; background: linear-gradient(180deg, rgba(18,176,255,.12), rgba(10,107,255,.05)); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.product h2 { font: italic 900 32px/1 var(--display); letter-spacing: -1px; transform: skewX(-6deg); transform-origin: left; color: var(--white); margin: 0 0 10px; }
.price { font: italic 900 56px/1 var(--display); color: var(--blue); text-shadow: var(--glow); letter-spacing: -2px; }
.price small { font-size: 18px; color: var(--muted); font-style: normal; letter-spacing: 0; text-shadow: none; margin-left: 6px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23040A16' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 10px rgba(18,176,255,.6); }
.coins { color: var(--muted); font-size: 13px; }
.form-err { color: var(--err); font-weight: 700; font-size: 14px; min-height: 1px; }
.keybox {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--blue); background: var(--space-2);
  font: 800 clamp(16px, 3vw, 22px) ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--white);
  box-shadow: var(--glow); word-break: break-all;
}
.steps { display: grid; gap: 12px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--body); color: var(--space); background: var(--blue); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 1s linear infinite; box-shadow: var(--glow-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { margin-top: 50px; color: var(--muted); font-size: 13px; text-align: center; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 1px solid transparent; color: var(--muted); font: 700 14px var(--body); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.tabs button.on { color: var(--white); border-color: var(--blue); background: rgba(18,176,255,.12); box-shadow: var(--glow-soft); }
@media (max-width: 860px) {
  .store-hero, .product { grid-template-columns: 1fr; }
  .store-hero .rocket { order: -1; width: 220px; }
  .product .buy { border-left: 0; border-top: 1px solid var(--line); }
  .checks { grid-template-columns: 1fr; }
  .topbar nav a { padding: 8px 10px; }
}

/* ---------- Customer dashboard ---------- */
.product-card { border-color: rgba(18,176,255,.35); }
.pc-head { display: flex; align-items: center; gap: 14px; }
.pc-head h2 { font: italic 900 24px/1.1 var(--display); letter-spacing: -.5px; transform: skewX(-6deg); transform-origin: left; margin: 0 0 2px; }
.pc-icon { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 0 10px rgba(18,176,255,.55)); }
.keybox.key-sm { font-size: 16px; padding: 10px 12px 10px 16px; box-shadow: var(--glow-soft); }
.pc-facts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.pc-facts .muted { font-size: 13px; margin-bottom: 4px; }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.changelog { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.changelog summary { cursor: pointer; font-weight: 800; color: var(--blue); list-style: none; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::after { content: " +"; }
.changelog[open] summary::after { content: " −"; }
.cl-ver { margin-top: 12px; font-weight: 800; color: var(--white); }
.changelog ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.navbar-user { display: inline-flex; align-items: center; gap: 8px; }
.navbar-user img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue); }
@media (max-width: 860px) { .pc-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .keybox.key-sm { flex-direction: column; align-items: stretch; font-size: 14px; letter-spacing: .3px; } .keybox.key-sm .row { justify-content: flex-end; } }

/* ---------- Footer + document pages (guide, terms, refunds, privacy) ---------- */
.site-foot { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; margin-bottom: 10px; }
.site-foot .links a { color: var(--muted); font-weight: 700; }
.site-foot .links a:hover { color: var(--white); }
.site-foot p { margin: 0; }

.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-top: 34px; align-items: start; }
.doc-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.doc-toc b { color: var(--white); font-size: 13px; margin-bottom: 8px; }
.doc-toc a { color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--white); background: rgba(18,176,255,.06); }
.doc-toc a.on { color: var(--white); border-left-color: var(--blue); background: rgba(18,176,255,.08); }
.doc { max-width: 72ch; min-width: 0; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.doc pre code { overflow-wrap: normal; }
.doc h1 {
  margin: 0 0 6px; font: italic 900 clamp(34px, 6vw, 52px)/1 var(--display); letter-spacing: -1px; transform: skewX(-6deg); transform-origin: left;
  color: var(--white); text-shadow: 0 0 22px rgba(18,176,255,.45);
}
.doc .lede { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.doc .meta { color: var(--muted); font-size: 13px; margin-top: 10px; }
.doc h2 { font: 800 22px/1.3 var(--display); color: var(--white); margin: 44px 0 10px; scroll-margin-top: 20px; }
.doc h3 { font: 800 17px/1.4 var(--body); color: var(--white); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--white); }
.doc pre { background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, Consolas, monospace; color: var(--ice); }
.doc code { background: var(--space-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font: 13.5px ui-monospace, Consolas, monospace; color: var(--ice); }
.doc pre code { border: 0; padding: 0; background: none; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 700; }
.callout { border: 1px solid rgba(18,176,255,.4); background: rgba(18,176,255,.07); border-radius: var(--r-md); padding: 14px 16px; margin: 18px 0; font-size: 15px; }
.callout.warn { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.07); }
.callout b { color: var(--white); }
.gsteps { list-style: none; padding: 0; counter-reset: g; margin: 18px 0; }
.gsteps > li { counter-increment: g; position: relative; padding-left: 50px; margin: 0 0 26px; }
.gsteps > li::before {
  content: counter(g); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: italic 900 15px var(--display); color: var(--space); background: var(--blue); box-shadow: var(--glow-soft);
}
.gsteps > li > b:first-child { display: block; color: var(--white); font-size: 17px; margin-bottom: 4px; padding-top: 4px; }
@media (max-width: 860px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 10px; }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .doc-toc b { width: 100%; margin: 0; }
  .doc-toc a { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
}
@media (max-width: 520px) {
  .topbar { gap: 8px; }
  .topbar .brand img { width: 36px; height: 36px; }
  .topbar .wordmark { font-size: 16px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 8px 7px; font-size: 14px; }
}
