/* ============================================================
   开环Canvas — Deep Space design system
   Void black · starfield · aurora blue · glass · gradient hairlines
   ============================================================ */

:root {
  /* void surface stack */
  --bg: #05060a;
  --bg-2: #0a0c14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #f6f7fb;
  --text-2: #a6acba;
  --text-3: #6a7184;

  /* accent — electric blue → ice cyan (matches logo) */
  --accent: #0091ea;
  --accent-2: #5ec8ff;
  --accent-3: #a5f2ff;
  --accent-glow: rgba(0, 145, 234, 0.5);
  --ember: #ffd23f;
  --teal: #5eead4;
  --spark: #ff00b0;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --maxw: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

/* ambient aurora — deep space blue/cyan */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(620px 480px at 80% -5%, rgba(0, 145, 234, 0.20), transparent 60%),
    radial-gradient(520px 420px at 12% 8%, rgba(94, 200, 255, 0.12), transparent 55%),
    radial-gradient(700px 600px at 60% 110%, rgba(165, 242, 255, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }

/* deep space starfield — fixed full-screen canvas */
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 6, 9, 0.55);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: 0.3px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; position: relative; flex-shrink: 0;
  background: url('/logo.png') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(0, 145, 234, 0.4));
  transition: filter .3s;
}
.brand:hover .mark { filter: drop-shadow(0 0 16px rgba(0, 145, 234, 0.6)); }
.brand .name { font-size: 16.5px; letter-spacing: 0.4px; }
.brand .name b { color: var(--accent-2); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.muted { color: var(--text-2); font-size: 14px; transition: color .2s; position: relative; }
.nav-links a.muted:hover { color: var(--text); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 12px 24px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .3s ease, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 34px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: 0 16px 48px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--hairline-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); background: var(--surface-2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: herozoom 20s ease-in-out infinite alternate; }
@keyframes herozoom { to { transform: scale(1.14); } }

/* flowing light beam through the prism — spectrum sweep */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(165,242,255,0.08) 38%,
    rgba(94,200,255,0.18) 46%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,210,63,0.10) 54%,
    rgba(255,0,176,0.06) 60%,
    transparent 75%
  );
  background-size: 300% 100%;
  animation: lightbeam 9s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* one-shot intro sweep: the beam shoots through the prism brighter & faster on load */
.hero-bg.intro::after {
  animation: lightbeam-intro 2.6s cubic-bezier(.2,.7,.2,1), lightbeam 9s linear 2.6s infinite;
}
@keyframes lightbeam {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes lightbeam-intro {
  0%   { background-position: 200% 0; opacity: 0; filter: brightness(1); }
  25%  { opacity: 1; filter: brightness(2.2); }
  100% { background-position: -200% 0; opacity: 0.7; filter: brightness(1); }
}

/* prism flash at the impact point during intro */
.hero-bg.intro::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 52% 42%, rgba(255,255,255,0.5) 0%, rgba(165,242,255,0.32) 22%, transparent 42%);
  opacity: 0;
  animation: prismFlash 2.4s ease-out forwards;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes prismFlash {
  0%, 100% { opacity: 0; transform: scale(0.85); }
  35%      { opacity: 1; transform: scale(1); }
  70%      { opacity: 0.35; transform: scale(1.12); }
}

/* subtle hue rotation on the prism image for living light */
.hero-bg { animation: herozoom 20s ease-in-out infinite alternate, huefloat 30s ease-in-out infinite; }
@keyframes huefloat {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  33%      { filter: hue-rotate(12deg) brightness(1.05); }
  66%      { filter: hue-rotate(-8deg) brightness(0.97); }
}
.hero-shade { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(6,6,9,.97) 0%, rgba(6,6,9,.82) 36%, rgba(6,6,9,.32) 66%, rgba(6,6,9,.55) 100%),
    linear-gradient(0deg, rgba(6,6,9,.92) 0%, transparent 42%),
    radial-gradient(120% 80% at 80% 10%, transparent 40%, rgba(6,6,9,.5) 100%); }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0.28; }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-inner { max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-3); border: 1px solid var(--hairline-2);
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero h1 {
  font-size: clamp(44px, 5.8vw, 82px); line-height: 1.02; letter-spacing: -2.5px;
  font-weight: 500; margin: 24px 0 20px;
}
.hero h1 .glow {
  background: linear-gradient(110deg, var(--accent-3) 10%, var(--accent-2) 45%, var(--ember) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 0 0 34px; font-weight: 300; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 34px; }
.hero-meta .m { color: var(--text-3); font-size: 12.5px; letter-spacing: .3px; }
.hero-meta .m b { display: block; color: var(--text); font-weight: 600; font-size: 22px; letter-spacing: -.5px; margin-bottom: 2px; }
.hero-meta .m b.accent { color: var(--accent-3); }

/* hero visual: mock generation card */
.gen-card {
  position: relative; border-radius: 22px; padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--hairline-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.gen-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(0,145,234,.6), transparent 40%, rgba(255,178,122,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.gen-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.gen-bar .dots { display: flex; gap: 6px; }
.gen-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.gen-bar .prompt { flex: 1; font-size: 13px; color: var(--text-2); font-family: var(--mono); background: rgba(0,0,0,.3); border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gen-canvas {
  aspect-ratio: 4 / 3; border-radius: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 25% 30%, #ff7ad9 0%, transparent 40%),
    radial-gradient(circle at 75% 25%, #0091ea 0%, transparent 42%),
    radial-gradient(circle at 60% 80%, #5eead4 0%, transparent 45%),
    linear-gradient(135deg, #1a1030, #0a0a14);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { 0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; } 100% { background-position: 60% 40%, 30% 60%, 80% 30%, 0 0; } }
.gen-canvas::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0,145,234,.4), transparent 55%);
  mix-blend-mode: screen;
}
.gen-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 2px; }
.gen-foot .tag { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.gen-foot .pill { font-size: 11px; color: var(--teal); border: 1px solid rgba(94,234,212,.3); background: rgba(94,234,212,.08); padding: 3px 10px; border-radius: 999px; }
.gen-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.gen-thumbs .t { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--hairline); opacity: .8; }
.gen-thumbs .t:nth-child(1){ background: linear-gradient(135deg,#ff7ad9,#0091ea); }
.gen-thumbs .t:nth-child(2){ background: linear-gradient(135deg,#5eead4,#3b82f6); }
.gen-thumbs .t:nth-child(3){ background: linear-gradient(135deg,#ffb27a,#ff5e8a); }

/* ---------------- sections ---------------- */
.section { padding: 86px 0; position: relative; z-index: 2; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { color: var(--accent-3); font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -1px; margin: 14px 0 12px; font-weight: 650; line-height: 1.08; }
.section-head p { color: var(--text-2); font-weight: 300; margin: 0; font-size: 16px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(140deg, rgba(0,145,234,.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { border-color: transparent; transform: translateY(-4px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(0,145,234,.25), rgba(94,200,255,.1));
  border: 1px solid var(--hairline-2); margin-bottom: 18px; font-size: 20px;
  box-shadow: 0 0 24px -6px var(--accent-glow);
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; font-weight: 300; line-height: 1.6; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card .big-num { font-size: 40px; font-weight: 650; letter-spacing: -1.5px; background: linear-gradient(120deg,var(--accent-3),var(--ember)); -webkit-background-clip:text; background-clip:text; color: transparent; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { position: relative; padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent-3); letter-spacing: 1px; }
.step h4 { margin: 14px 0 8px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 300; }
.step .line { position: absolute; top: 40px; right: -14px; width: 28px; height: 1px; background: linear-gradient(90deg, var(--hairline-2), transparent); }

/* CTA band */
.cta-band { position: relative; z-index: 2; padding: 70px 0; }
.cta-inner {
  border-radius: 26px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,145,234,.16), rgba(255,178,122,.08));
  border: 1px solid var(--hairline-2);
}
.cta-inner::before {
  content:""; position:absolute; inset:0; border-radius:26px; padding:1px;
  background: linear-gradient(140deg, rgba(0,145,234,.7), transparent 50%, rgba(255,178,122,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;
}
.cta-inner h2 { font-size: clamp(28px,3.4vw,40px); font-weight: 650; letter-spacing: -.8px; margin: 0 0 12px; position: relative; z-index: 1; }
.cta-inner p { color: var(--text-2); margin: 0 0 26px; font-weight: 300; position: relative; z-index: 1; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ---------------- auth ---------------- */
.center-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 2;
  background: url('/hero.png') center / cover no-repeat fixed;
}
.center-screen::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,6,9,.72), rgba(6,6,9,.88)), radial-gradient(80% 60% at 50% 0%, rgba(0,145,234,.18), transparent 60%);
}
.auth-card {
  width: 100%; max-width: 410px; position: relative; z-index: 2;
  border-radius: 22px; padding: 36px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box,
    linear-gradient(140deg, rgba(0,145,234,.55), transparent 50%) border-box;
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}

/* (auth-card gradient border is handled inline via background) */
.auth-card .brand { justify-content: center; margin-bottom: 24px; }
.auth-card h2 { text-align: center; font-size: 23px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.5px; }
.auth-card .sub { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 0 26px; font-weight: 300; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 14.5px;
  background: rgba(0,0,0,.4); color: var(--text);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,145,234,.16); }
.alert { display: none; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.alert.err { display: block; background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.35); color: #ff9b9b; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--accent-3); }

/* ---------------- admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; position: relative; z-index: 2; }
.side {
  border-right: 1px solid var(--hairline); padding: 24px 16px;
  background: rgba(10,11,17,.6); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 6px;
}
.side .brand { margin-bottom: 22px; padding-left: 6px; }
.side a.tab {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  color: var(--text-2); font-size: 14px; cursor: pointer; transition: all .2s; border: 1px solid transparent;
}
.side a.tab:hover { background: var(--surface); color: var(--text); }
.side a.tab.active { background: var(--surface-2); color: #fff; border-color: var(--hairline-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.side a.tab .t-ic { font-size: 16px; }
.side .spacer { flex: 1; }
.side .side-foot { font-size: 12px; color: var(--text-3); padding: 0 12px; }
.side .side-foot button { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; margin-top: 4px; }

.admin-main { padding: 30px 34px; overflow: auto; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-head h1 { font-size: 24px; margin: 0; letter-spacing: -.5px; font-weight: 650; }
.admin-head .who { font-size: 13px; color: var(--text-2); }
.admin-head .who b { color: var(--text); }

.panel { display: none; }
.panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* mini stat tiles (users panel top) */
.mini-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.mini { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.mini .k { font-size: 12.5px; color: var(--text-3); letter-spacing: .3px; }
.mini .v { font-size: 30px; font-weight: 650; margin-top: 4px; letter-spacing: -1px; }
.mini .v.accent { color: var(--accent-3); }
.mini .v.teal { color: var(--teal); }
.mini .v.ember { color: var(--ember); }

/* stat tiles (stats panel) */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.tile .k { font-size: 12.5px; color: var(--text-3); letter-spacing: .4px; }
.tile .v { font-size: 34px; font-weight: 650; margin-top: 6px; letter-spacing: -1px; }
.tile .v.accent { color: var(--accent-3); }
.tile .v.ember { color: var(--ember); }
.tile .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* table */
.table-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
th { color: var(--text-3); font-weight: 500; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; background: rgba(255,255,255,.02); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(0,145,234,.05); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.badge { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hairline-2); color: var(--text-2); }
.badge.admin { color: var(--accent-3); border-color: rgba(0,145,234,.4); background: rgba(0,145,234,.1); }
.badge.on { color: var(--teal); border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.08); }
.badge.off { color: var(--text-3); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* forms */
.toolbar { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 18px; }
.toolbar .field { margin: 0; }
.toolbar label { font-size: 11.5px; color: var(--text-3); letter-spacing: .3px; text-transform: uppercase; }
.toolbar input, .toolbar select {
  padding: 10px 12px; font-family: inherit; font-size: 14px; background: rgba(0,0,0,.4);
  color: var(--text); border: 1px solid var(--hairline); border-radius: var(--radius-xs); outline: none; min-width: 150px;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent); }
.section-title { font-size: 14px; color: var(--text-3); margin: 28px 0 12px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }

/* settings */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--hairline); }
.setting-row:last-of-type { border-bottom: none; }
.setting-row .label { font-size: 14.5px; font-weight: 500; }
.setting-row .desc { font-size: 13px; color: var(--text-3); margin-top: 3px; font-weight: 300; }
.setting-row input {
  padding: 10px 12px; font-family: inherit; font-size: 14px; min-width: 320px;
  background: rgba(0,0,0,.4); color: var(--text); border: 1px solid var(--hairline); border-radius: var(--radius-xs); outline: none;
}
.setting-row input:focus { border-color: var(--accent); }
.status-pill { font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--hairline-2); }
.status-pill.env { color: var(--ember); border-color: rgba(255,178,122,.4); background: rgba(255,178,122,.06); }
.status-pill.admin { color: var(--accent-3); border-color: rgba(0,145,234,.4); background: rgba(0,145,234,.08); }
.status-pill.none { color: var(--text-3); }

.empty { padding: 44px; text-align: center; color: var(--text-3); font-size: 14px; }

/* admin generation thumbnails */
.gen-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--hairline-2); cursor: zoom-in; transition: transform .15s; }
.gen-thumb:hover { transform: scale(1.5); z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.thumb-empty { color: var(--text-3); }
.thumb-expired { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* hide empty alert so the red stripe never appears */
.alert:empty { display: none !important; }
.alert:not(.err):empty { display: none; }

/* hero split-text character reveal (cinematic title entrance) */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: charReveal .65s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--char-index) * .045s);
}
.split-text .char.wd { min-width: .28em; }
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* card mouse spotlight (glass cathedral halo) */
.spotlight-card {
  position: relative; overflow: hidden; transform: translateZ(0);
}
.spotlight-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,145,234,.22), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
  mix-blend-mode: screen;
  z-index: 1;
}
.spotlight-card:hover::after { opacity: 1; }

/* CTA ambient glow pulse */
.cta-inner .glow-aura {
  position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0,145,234,.22), transparent 55%);
  animation: auraPulse 5s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.12); opacity: .85; }
}

/* particle twinkle enhancement */
.pulse-dot {
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* hero parallax-ready layers */
.hero-inner { will-change: transform, opacity; }

/* subtle nav link underline sweep */
.nav-links a.muted::after {
  content: "";
  position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent-3), transparent);
  transition: width .3s ease;
}
.nav-links a.muted:hover::after { width: 100%; }

footer.foot { border-top: 1px solid var(--hairline); padding: 34px 0; color: var(--text-3); font-size: 13px; position: relative; z-index: 2; }
footer.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
footer.foot .brand { opacity: .8; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .gen-card { max-width: 460px; }
  .bento { grid-template-columns: repeat(2,1fr); }
  .card.span-3, .card.span-2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .step .line { display: none; }
  .stats, .mini-stats { grid-template-columns: repeat(2,1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--hairline); }
  .side .spacer { display: none; }
  .nav-links a.muted { display: none; }
}
