/* ============================================================
   CakeCheats — design tokens from CakeCheats Mockups.dc.html
   ============================================================ */
:root {
  --bg:        #000;
  --panel:     #111;
  --panel-2:   #0a0a0a;
  --line:      #1d1d1d;
  --fg:        #fff;
  --muted:     #a0a0a0;
  --dim:       #5e5e5e;
  --accent:    #fff;
  --danger:    #f85149;
  --ok:        #3fb950;
  --warn:      #d29922;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
img { max-width: 100%; display: block; }
::selection { background: #fff; color: #000; }

input, select, button, textarea { font-family: inherit; color: var(--fg); }

/* ---- stage animations ---- */
@keyframes riseA { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

[data-stagger] > * { animation: riseA 460ms cubic-bezier(.2,.7,.2,1) both; }
[data-stagger] > *:nth-child(1) { animation-delay: 0ms; }
[data-stagger] > *:nth-child(2) { animation-delay: 90ms; }
[data-stagger] > *:nth-child(3) { animation-delay: 180ms; }
[data-stagger] > *:nth-child(4) { animation-delay: 270ms; }
[data-stagger] > *:nth-child(5) { animation-delay: 360ms; }
[data-stagger] > *:nth-child(6) { animation-delay: 450ms; }
[data-stagger] > *:nth-child(7) { animation-delay: 540ms; }
[data-stagger] > *:nth-child(n+8) { animation-delay: 620ms; }

/* ---- layout ---- */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-md { max-width: 760px;  margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 620px;  margin: 0 auto; padding: 0 32px; }
.wrap-xs { max-width: 560px;  margin: 0 auto; padding: 0 32px; }

/* ---- utility ---- */
.mono { font-family: var(--mono); }
.heading { font-family: var(--heading); }
.caps {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.dim { color: var(--muted); }
.very-dim { color: var(--dim); }
.ok { color: var(--ok); }
.danger { color: var(--danger); }
.warn { color: var(--warn); }

/* ---- topbar ---- */
header.topbar {
  position: sticky; top: 0; z-index: 40;
  background: #000;
  border-bottom: 1px solid var(--line);
}
header.topbar .inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.brand .name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.topnav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.topnav a:hover { color: var(--fg); }
.topnav a.active { color: var(--fg); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all .14s;
  border: 0;
}
.btn.primary { background: var(--fg); color: #000; }
.btn.primary:hover { background: #ddd; color: #000; }
.btn.secondary { border: 1px solid var(--line); color: var(--fg); background: transparent; }
.btn.secondary:hover { border-color: var(--fg); color: var(--fg); }
.btn.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--fg); }
.btn.sm { padding: 9px 16px; font-size: 13px; font-weight: 500; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.block-tight { width: 100%; padding: 13px; }

/* ---- cards / panels ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.panel-dark {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* ---- inputs ---- */
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color .14s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; }
.field .hint { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 6px; }
.field + .field { margin-top: 16px; }

.alert {
  background: var(--panel-2);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert.ok {
  border-color: var(--ok);
  color: var(--ok);
}

/* ---- hero landing ---- */
.hero-center {
  text-align: center;
  padding: 110px 0 0;
}
.hero-center h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 28px 0 0;
}
.hero-center p.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 28px 0 0;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }

@media (max-width: 720px) {
  .hero-center h1 { font-size: 56px; }
  .hero-center { padding: 72px 0 0; }
}

/* ---- feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 96px;
}
.feature-card { padding: 28px; }
.feature-card .n { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 16px; }
.feature-card .t { font-family: var(--heading); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.feature-card .d { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---- product cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.product-card { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.product-card .body { padding: 26px; }
.product-card .name { font-family: var(--heading); font-weight: 600; font-size: 21px; margin-bottom: 8px; }
.product-card .desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.product-card .from { font-family: var(--mono); font-size: 14px; margin-bottom: 22px; color: var(--fg); }
.product-card .ctas { display: flex; gap: 10px; }
.product-card .ctas .btn { flex: 1; padding: 12px; font-size: 13px; }

/* ---- section head ---- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sec-head h2 {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ---- product detail ---- */
.pd-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: start; }
.pd-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd-thumbs div { aspect-ratio: 16/9; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.pd-title { font-family: var(--heading); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
.pd-price .amt { font-family: var(--mono); font-size: 38px; font-weight: 500; }
.pd-price .suf { font-size: 15px; color: var(--dim); }
.pd-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }

.plan-pills { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.plan-pill {
  display: inline-flex; gap: 8px; align-items: baseline;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all .14s;
}
.plan-pill:hover { border-color: #444; color: var(--fg); }
.plan-pill.active { border-color: #fff; color: var(--fg); background: #161616; }
.plan-pill .mono-price { font-family: var(--mono); color: var(--fg); }

/* ---- copy box ---- */
.copybox {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .14s;
}
.copybox:hover { border-color: #444; }
.copybox .val { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copybox .val.sm { font-size: 12px; color: var(--muted); }
.copybox .cp { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: transparent; cursor: pointer; }

/* ---- kv rows ---- */
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.kv .v { font-family: var(--mono); word-break: break-all; text-align: right; }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.danger { color: var(--danger); border-color: var(--danger); }
.badge.warn { color: var(--warn); border-color: var(--warn); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.pulse { animation: dotPulse 1.5s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---- tables ---- */
table.std { width: 100%; border-collapse: collapse; font-size: 13px; }
table.std th, table.std td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.std th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 400; }

/* ---- faq ---- */
.faq { border-top: 1px solid var(--line); margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 16px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq .a { font-size: 14px; color: var(--muted); line-height: 1.7; padding: 0 0 24px; max-width: 620px; }

/* ---- auth split hero ---- */
.auth-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 69px);
}
.auth-left {
  border-right: 1px solid var(--line);
  padding: 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-left .big {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 76px;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.auth-left .sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 28px;
  max-width: 360px;
}
.auth-right { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-box { width: 100%; max-width: 360px; }
.auth-form-box h1 { font-family: var(--heading); font-weight: 600; font-size: 26px; margin: 0 0 8px; }
.auth-form-box .top-sub { font-size: 14px; color: var(--muted); margin: 0 0 32px; }
.auth-form-box .alt { font-size: 13px; color: var(--dim); margin-top: 48px; }
.auth-form-box .alt a { color: var(--fg); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { padding: 56px 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-left .big { font-size: 56px; }
  .auth-right { padding: 56px 32px; }
}

/* ---- dashboard sidebar ---- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 69px); }
.dash .side { border-right: 1px solid var(--line); padding: 20px; }
.dash .side .me {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 600; font-size: 15px;
  flex: none;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.side-nav a:hover { background: var(--panel-2); color: var(--fg); }
.side-nav a.active { background: var(--panel); color: var(--fg); border: 1px solid var(--line); }
.dash .body { padding: 40px 32px 80px; min-width: 0; }
.dash-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.dash-head h1 { font-family: var(--heading); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; margin: 0; }
.dash-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.dash-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.dash-stat .v { font-family: var(--mono); font-size: 22px; font-weight: 500; }

@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .dash .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .dash .body { padding: 32px; }
}

/* ---- footer ---- */
footer.site {
  margin-top: 110px;
  border-top: 1px solid var(--line);
}
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 56px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
footer.site .cols .col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 400; }
footer.site .cols .col div { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
footer.site .copy { border-top: 1px solid var(--line); }
footer.site .copy .inner { max-width: 1200px; margin: 0 auto; padding: 20px 32px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ---- QR box (pay page) ---- */
.qr {
  width: 200px; height: 200px;
  margin: 0 auto 28px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.qr img { width: 100%; height: 100%; border-radius: 10px; }

/* ---- progress bar ---- */
.progress { height: 3px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.progress > div { height: 100%; background: var(--muted); transition: width .4s; }

/* ---- status pill ---- */
.wait-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }

/* ---- divider ---- */
.div-h { height: 1px; background: var(--line); margin: 18px 0; }

/* ---- 404 ---- */
.nf { text-align: center; padding: 120px 0; }
.nf h1 { font-family: var(--heading); font-weight: 700; font-size: 96px; letter-spacing: -0.03em; margin-top: 16px; }
