/* Shared styles for the app pages (login, register, dashboard, checkout).
   Same tokens and look as the landing page, with a lightweight CSS-only background. */
:root {
  --bg: #030B1E;
  --bg-deep: #01040D;
  --panel: rgba(9,22,48,0.86);
  --panel-2: rgba(14,32,66,0.9);
  --line: rgba(120,180,255,0.12);
  --line-2: rgba(120,180,255,0.22);
  --text: #F5F5F7;
  --muted: rgba(225,235,250,0.66);
  --faint: rgba(225,235,250,0.4);
  --blue: #0A84FF;
  --blue-hi: #3399FF;
  --cyan: #64D2FF;
  --ok: #30D158;
  --warn: #FFD60A;
  --bad: #FF453A;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --title-grad: linear-gradient(180deg, #F4F6FB 0%, #DDE3F0 40%, #A9BDEF 75%, #7E9FEC 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Animated page-to-page transitions (Chrome/Edge/Opera; other browsers just switch pages normally).
   The leaving page fades and settles back, the arriving one fades in from slightly larger. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.97); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.03); } }
html { background: var(--bg-deep); }
body {
  min-height: 100vh; color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Background: fixed sky, soft glow and two static star layers (no canvas, no per-frame work) */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, #0B3A7A 0%, rgba(11,58,122,0) 70%),
    radial-gradient(900px 600px at 100% 40%, rgba(100,210,255,0.10), transparent 70%),
    radial-gradient(900px 600px at 0% 75%, rgba(10,132,255,0.12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #041127 45%, var(--bg-deep) 100%);
}
.sky::before, .sky::after {
  content: ''; position: absolute; inset: 0; background-repeat: repeat;
}
.sky::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 37% 62%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.4px 1.4px at 68% 28%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 84% 74%, rgba(100,210,255,0.7), transparent),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 56% 8%, rgba(255,255,255,0.65), transparent);
  background-size: 520px 520px;
}
.sky::after {
  background-image:
    radial-gradient(1px 1px at 8% 44%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 46% 34%, rgba(100,210,255,0.5), transparent),
    radial-gradient(1px 1px at 74% 52%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.4), transparent);
  background-size: 300px 300px;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: 0.35; } }
.glow {
  position: absolute; top: 0; left: 0; right: 0; height: 560px; z-index: -1; pointer-events: none; overflow: hidden;
}
.glow::before {
  content: ''; position: absolute; top: -300px; left: 0; right: 0; height: 640px; opacity: 0.5;
  background:
    radial-gradient(ellipse 34% 60% at 40% 45%, rgba(10,132,255,0.85), rgba(10,132,255,0.3) 40%, rgba(10,132,255,0.06) 70%, transparent),
    radial-gradient(ellipse 34% 60% at 60% 45%, rgba(100,210,255,0.4), rgba(100,210,255,0.14) 40%, transparent 72%);
}

/* Navbar pill (same as the landing page) */
.top { position: sticky; top: 14px; z-index: 50; padding: 14px 16px 0; margin-top: -14px; }
.navbar {
  max-width: 900px; height: 60px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 10px 0 16px; border-radius: 999px;
  background: rgba(4,9,20,0.94); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 32px -12px rgba(0,0,0,0.6);
}
.brand { justify-self: start; display: flex; }
.brand img { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: rgba(225,235,250,0.55); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(225,235,250,0.6); text-decoration: none; transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.icon-btn svg { width: 20px; height: 20px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 18px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pill-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); }
.pill-btn svg { width: 15px; height: 15px; color: rgba(225,235,250,0.75); }

/* Layout */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.page { min-height: calc(100vh - 74px); padding: 56px 0 80px; }
.center { display: grid; place-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  background-image: var(--title-grad); padding-bottom: 0.06em;
}
.sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Panels */
/* Near-black card, 1:1 with the current legitcheats.lol dashboard ("field-card edge-lit"): dark diagonal
   gradient, faint white border, a 1px light line along the top edge */
.panel, .panel.bright {
  position: relative; border-radius: 14px; padding: 32px;
  background-image: linear-gradient(152deg, rgba(23,27,36,0.88) 0%, #0a0c11 52%, rgba(6,7,10,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px rgba(255,255,255,0.1), 0 24px 60px -30px rgba(0,0,0,0.8);
}
.panel h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.panel .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Forms */
.auth-card { width: 100%; max-width: 440px; }
.auth-card .logo { width: 52px; height: 52px; margin-bottom: 18px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(200,222,255,0.85); margin-bottom: 4px; }
.field label small { color: var(--faint); font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 12.5px; }
/* Underline field, same as the sign-in page: no box, just a line that lights up while typing */
.input {
  width: 100%; height: 50px; padding: 0 4px; border-radius: 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(160,200,255,0.2);
  color: var(--text); font-size: 17px; font-weight: 500; outline: none;
  transition: border-color 0.25s;
}
.input::placeholder { color: rgba(140,175,230,0.55); }
.input[type=password]::placeholder { letter-spacing: 0.01em; }
.input:focus { border-bottom-color: rgba(100,210,255,0.75); }
.input.mono { font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  background: var(--blue); border: 1px solid rgba(160,205,255,0.7);
  color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s, opacity 0.2s;
}
.btn:hover { background: var(--blue-hi); box-shadow: 0 12px 30px -10px rgba(10,132,255,0.8); }
.btn:disabled { opacity: 0.55; cursor: progress; box-shadow: none; }
.btn.block { width: 100%; margin-top: 24px; }
.btn.ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); box-shadow: none; }
.btn.small { height: 42px; font-size: 14px; padding: 0 18px; }
.btn.discord { background: #5865F2; border-color: rgba(190,196,255,0.6); }
.btn.discord:hover { background: #6d78f5; box-shadow: 0 12px 30px -10px rgba(88,101,242,0.8); }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.msg { min-height: 20px; margin-top: 14px; font-size: 14px; }
.msg.err { color: #ff8a80; }
.msg.ok { color: #6ee7a0; }
.alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.alt a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.alt a:hover { text-decoration: underline; }

.discord-ok {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(48,209,88,0.35); background: rgba(48,209,88,0.07);
}
.discord-ok img { width: 38px; height: 38px; border-radius: 50%; }
.discord-ok .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); font-weight: 600; }
.discord-ok .v { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-ok .grow { flex: 1; min-width: 0; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.wait { display: none; margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.wait.on { display: block; }
.req { margin-top: 8px; font-size: 12px; color: var(--faint); text-align: center; }

/* Dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dash-grid .wide { grid-column: 1 / -1; }
.lic { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lic + .lic { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.lic .name { font-weight: 600; font-size: 16px; }
.lic .when { color: var(--muted); font-size: 14px; margin-top: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--muted);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.badge.on { color: #b9f6cb; border-color: rgba(48,209,88,0.35); background: rgba(48,209,88,0.08); }
.badge.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge.off { color: #ffc2bd; border-color: rgba(255,69,58,0.3); background: rgba(255,69,58,0.07); }
.badge.off i { background: var(--bad); }
.dl-box {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(100,210,255,0.4);
  background: rgba(10,132,255,0.06); font-size: 14px; color: var(--muted);
}
.dl-box code { font-family: var(--mono); font-size: 16px; color: var(--text); letter-spacing: 0.05em; user-select: all; }
.steps-list { margin-top: 14px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; padding-left: 18px; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Checkout */
.tiers { display: grid; gap: 10px; margin-top: 22px; }
.tier {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(1,4,13,0.35);
  transition: border-color 0.2s, background 0.2s;
}
.tier:hover { border-color: rgba(255,255,255,0.2); }
.tier.sel { border-color: rgba(100,210,255,0.6); background: rgba(10,132,255,0.1); }
.tier input { accent-color: var(--blue); width: 17px; height: 17px; }
.tier .n { flex: 1; }
.tier .n b { display: block; font-size: 15px; }
.tier .n span { font-size: 13px; color: var(--muted); }
.tier .p { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.keybox {
  margin: 22px 0 12px; padding: 18px; border-radius: 14px; border: 1px dashed rgba(100,210,255,0.5);
  background: rgba(10,132,255,0.07); font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.06em;
  text-align: center; user-select: all; word-break: break-all;
}
.ok-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: rgba(48,209,88,0.15); color: var(--ok); }
.ok-icon svg { width: 28px; height: 28px; }

/* Entrance: panels rise and settle (transform/opacity only) */
.rise { animation: rise 0.9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.98); } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: rgba(9,22,48,0.96); border: 1px solid var(--line-2);
  font-size: 14px; box-shadow: 0 20px 40px rgba(1,4,13,0.6); transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .navbar { grid-template-columns: 1fr auto; height: 56px; padding: 0 8px 0 12px; }
  .brand img { height: 32px; }
  .top { padding: 10px 12px 0; top: 10px; margin-top: -10px; }
  .wrap { padding: 0 16px; }
  .panel { padding: 24px 20px; }
  .page { padding: 36px 0 60px; }
}
/* Small phones: shrink the logo and drop the button arrow so the bar fits */
@media (max-width: 380px) {
  .navbar { padding: 0 6px 0 14px; }
  .brand img { height: 26px; }
  .nav-actions { gap: 2px; }
  .icon-btn { width: 34px; height: 34px; }
  .pill-btn { padding: 0 12px; }
  .pill-btn svg { display: none; }
}
