:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #1a1a1a;
  --line-strong: #262626;
  --card: #0d0d0d;
  --radius: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.scrolled {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0,0,0,.6);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
}
.nav.open { background: #000; border-bottom-color: var(--line); }

.nav-item { position: static; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  color: #fff; font: inherit; font-size: 14px; font-weight: 600; opacity: .9;
  transition: opacity .2s var(--ease);
}
.nav-trigger .chev { opacity: .7; transition: transform .25s var(--ease); }
.nav-item:hover .nav-trigger, .nav-item.active .nav-trigger { opacity: 1; }
.nav-item.active .chev { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #000; border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-item.active .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 492px 1fr; padding: 28px 22px 44px; }
.mega-col { display: flex; flex-direction: column; }
.mega-label { color: var(--muted); font-size: 13px; font-weight: 500; margin: 0 0 14px; }
.mega-big { color: #fff; text-decoration: none; font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.55; transition: opacity .2s; }
.mega-small { color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 2.05; transition: opacity .2s; }
.mega-big:hover, .mega-small:hover { opacity: .6; }
.nav-left { display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; }
.brand img { height: 68px; margin: -21px -12px; width: auto; display: block; mix-blend-mode: lighten; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-lg { padding: 10px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #fff 0%, #e4e4e4 100%); color: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.4); }
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #fff 0%, #d8d8d8 100%); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: #141414; border-color: #333; }

/* HERO */
.hero {
  text-align: center;
  margin-top: -62px;
  padding: 120px 24px 80px;
  min-height: calc(100vh + 62px);
  display: flex; align-items: center; justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }

.hero-clouds {
  position: absolute; inset: 0; pointer-events: none;
  opacity: var(--clouds, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.cl {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,var(--a, .07)), rgba(255,255,255,0));
  filter: blur(32px);
  animation: var(--k, drift) var(--t, 20s) ease-in-out infinite alternate;
  will-change: transform;
}
.cl1 { width: 70vw; height: 45vh; left: -15vw; top: -10vh; --a: .17; --t: 18s; }
.cl2 { width: 60vw; height: 40vh; right: -15vw; top: 5vh; --a: .14; --t: 22s; --k: drift2; animation-delay: -6s; }
.cl3 { width: 55vw; height: 35vh; left: 20vw; top: 30vh; --a: .12; --t: 26s; animation-delay: -10s; }
.cl4 { width: 45vw; height: 30vh; left: -5vw; top: 50vh; --a: .11; --t: 20s; --k: drift2; animation-delay: -3s; }
.cl5 { width: 50vw; height: 32vh; right: -10vw; top: 45vh; --a: .12; --t: 24s; animation-delay: -15s; }
.cl6 { width: 35vw; height: 22vh; left: 35vw; top: -5vh; --a: .16; --t: 16s; --k: drift2; animation-delay: -8s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(12vw, 6vh, 0) scale(1.2) rotate(8deg); }
  66%  { transform: translate3d(-6vw, 10vh, 0) scale(.9) rotate(-6deg); }
  100% { transform: translate3d(-12vw, -4vh, 0) scale(1.1) rotate(4deg); }
}
@keyframes drift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg); }
  33%  { transform: translate3d(-14vw, 4vh, 0) scale(.92) rotate(-10deg); }
  66%  { transform: translate3d(8vw, -8vh, 0) scale(1.22) rotate(6deg); }
  100% { transform: translate3d(10vw, 6vh, 0) scale(1) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .cl { animation: none; } }

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 600; letter-spacing: -.035em;
  line-height: 1.02; margin: 10px 0 20px;
  color: #fff;
}
.hero-sub { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto 32px; }
.hero-cta { display:flex; gap: 12px; justify-content: center; margin-bottom: 80px; }


/* SECTIONS */
section { padding: 96px 0; }
.section-title { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.025em; text-align: center; margin: 0 0 12px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 56px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: #121212; }
.card-icon { font-size: 28px; margin-bottom: 14px; color: #fff; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* STATS STRIP */
.stats-strip { background: #0a0a0a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; color: #fff; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 12px; font-weight: 600; letter-spacing: -.025em; }
.cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 13px; }

/* AUTH */
.auth-body { background: #000; min-height: 100vh; }
.auth { display:flex; justify-content:center; padding: 80px 24px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing:-.02em; }
.muted { color: var(--muted); }
.auth-card label { display:block; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-card input {
  width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #0a0a0a;
  color: #fff;
  transition: border-color .2s, background .2s;
}
.auth-card input:focus { outline: none; border-color: #fff; background: #111; }
.auth-card button { margin-top: 24px; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: #fff; }
.error { background:#1a0a0a; color:#ff8080; border:1px solid #3a1414; padding:10px 12px; border-radius:10px; font-size: 14px; margin-top: 14px; }

/* DASHBOARD */
.dash-body { background: #000; min-height: 100vh; }
.dash { padding: 48px 0 80px; flex: 1; min-width: 0; }
.dash .container { max-width: 1200px; padding: 0 40px; }
.dash-layout { display: flex; align-items: flex-start; }

.sidebar {
  position: sticky; top: 62px; height: calc(100vh - 62px);
  width: 248px; flex-shrink: 0; overflow-y: auto;
  padding: 24px 14px 8px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.side-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; font: inherit;
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 10px; border-radius: 8px; text-align: left;
  transition: background .2s var(--ease);
}
.side-head:hover { background: #111; }
.side-direct { text-decoration: none; }
.side-direct.active { background: #151515; }
.side-direct.active .side-icon { color: #fff; }
.side-disabled { color: #4a4a4e; cursor: not-allowed; }
.side-disabled:hover { background: none; }
.side-disabled .side-icon, .side-head.side-disabled:hover .side-icon { color: #3a3a3e; }
.soon-tag {
  margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  background: #141416; color: #6e6e73; border: 1px solid #1f1f22;
}
.side-head .chev { margin-left: auto; opacity: .5; transition: transform .25s var(--ease); }
.side-group.open .side-head .chev { transform: rotate(180deg); }
.side-icon { width: 17px; height: 17px; flex-shrink: 0; color: #a1a1a6; transition: color .2s; }
.side-head:hover .side-icon, .side-group.open .side-icon { color: #fff; }
.side-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.side-items > div { overflow: hidden; display: flex; flex-direction: column; }
.side-group.open .side-items { grid-template-rows: 1fr; }
.side-link {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  padding: 7px 10px 7px 36px; border-radius: 8px; position: relative;
  transition: color .2s, background .2s;
}
.side-link:hover { color: #fff; background: #0d0d0d; }
.side-link.active { color: #fff; background: #151515; }
.side-link.active::before { content: ""; position: absolute; left: 18px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.side-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); position: relative; }
.account-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: 0; padding: 6px 8px; border-radius: 10px; cursor: pointer;
  color: #fff; font: inherit; transition: background .2s var(--ease);
}
.account-btn:hover, .side-foot.open .account-btn { background: #111; }
.account-btn .chev { margin-left: auto; opacity: .5; flex-shrink: 0; }
.account-text { min-width: 0; }
.account-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
  background: #0d0d0d; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.side-foot.open .account-menu { opacity: 1; visibility: visible; transform: none; }
.account-menu form { margin: 0; }
.account-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #ddd; text-decoration: none;
  padding: 8px 10px; border-radius: 8px; transition: background .15s, color .15s;
}
.account-item:hover { background: #181818; color: #fff; }
.account-item.danger { color: #ff7a7a; }
.account-item.danger:hover { background: #1f0d0d; color: #ff9a9a; }
.side-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1f1f1f; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.side-name { margin: 0; font-size: 13px; font-weight: 600; }
.side-email { margin: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

@media (max-width: 900px) { .sidebar { display: none; } .dash .container { padding: 0 24px; } }
.dash-header { display:flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.dash-header h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin: 4px 0 0; }

.panel { background: var(--card); border:1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.panel-head { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.meta { display:grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 0; }
.meta dt { color: var(--muted); font-size: 14px; }
.meta dd { margin: 0; font-size: 14px; color: #fff; }

/* SCROLL: hero */
.hero-content { will-change: transform, opacity; }

/* SCROLL: pinned zoom */
.zoom-stage {
  transform: scale(var(--zoom, 1.5));
  will-change: transform;
}

/* Split feature section */
.split { padding: 120px 0; }
.split-inner {
  width: min(1240px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center;
}
.split-title { margin: 0 0 22px; font-size: clamp(36px, 4vw, 54px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; color: #f5f5f7; }
.split-text { margin: 0 0 32px; color: #a1a1a6; font-size: 17px; line-height: 1.6; max-width: 500px; }
.split-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 18px; border-radius: 16px; background: #141414; border: 1px solid #1c1c1c;
  color: #fff; font-size: 15px; font-weight: 600; cursor: default; user-select: none;
}
.pill svg { opacity: .9; }

.split-visual {
  position: relative; aspect-ratio: 1.6; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(40% 50% at 15% 85%, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(40% 50% at 90% 10%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(160deg, #1a1a1c, #0a0a0b);
  border: 1px solid #222;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.ghost {
  position: absolute; width: 16%; aspect-ratio: 1; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05);
  filter: blur(2px); transform: rotate(var(--r));
}
.g1 { left: 4%; top: 6%; --r: -14deg; }
.g2 { right: 3%; top: 4%; --r: 12deg; width: 13%; }
.g3 { left: 46%; top: -6%; --r: 8deg; }
.g4 { right: 8%; bottom: -4%; --r: -10deg; }
.g5 { left: 22%; bottom: -8%; --r: 16deg; width: 12%; }

.fcard {
  position: absolute; width: 22%; padding: 10px;
  border-radius: 14px; background: linear-gradient(180deg, #1b1b1d, #0e0e10);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(255,255,255,.08);
  transform: rotate(var(--r)) translateY(0);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transition: box-shadow .3s var(--ease);
}
@keyframes float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-10px); }
}
.fcard.big { width: 29%; z-index: 2; }
.c1 { left: 20%; top: 18%; --r: -6deg; --d: -1s; }
.c2 { left: 39%; top: 13%; --r: -3deg; --d: -3s; }
.c3 { right: 6%; top: 19%; --r: 8deg; --d: -2s; }
.c4 { left: 8%; top: 52%; --r: -9deg; --d: -4s; }
.c5 { right: 13%; top: 54%; --r: -5deg; --d: -5s; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px);
}
.badge-light { background: #fff; color: #000; }
.fc-art {
  height: 64px; border-radius: 9px; margin-bottom: 8px; overflow: hidden;
  background: linear-gradient(160deg, #2c2c2e, #121214);
  display: flex; align-items: flex-end; padding: 8px;
}
.fcard.big .fc-art { height: 92px; }
.fc-art svg { width: 100%; height: 60%; }
.fc-num { align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(160deg, #e9e9eb, #8a8a8e); color: #0a0a0a; }
.fc-bars { gap: 5px; }
.fc-bars i { flex: 1; height: calc(var(--h) * 100%); background: linear-gradient(#fff, #666); border-radius: 3px 3px 1px 1px; }
.fc-ring { justify-content: center; align-items: center; }
.fc-ring svg { width: 48px; height: 48px; }
.fc-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-content: center; }
.fc-dots i { aspect-ratio: 1; border-radius: 3px; background: #fff; }
.fc-sub { margin: 0; font-size: 9px; color: #8e8e93; }
.fc-title { margin: 1px 0 6px; font-size: 11px; font-weight: 700; color: #fff; line-height: 1.2; }
.fcard.big .fc-title { font-size: 14px; }
.fc-meta { margin: 0; font-size: 9px; color: #8e8e93; }
.fc-meta b { color: #d1d1d6; }

.split-reverse { padding-top: 0; }
.split-reverse .split-inner { grid-template-columns: 1.25fr 1fr; }

.pcard {
  position: absolute; width: 21%; padding: 14px 12px 12px; text-align: center;
  border-radius: 16px; background: linear-gradient(180deg, #1c1c1f, #0d0d0f);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(255,255,255,.07);
  transform: rotate(var(--r));
  animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: box-shadow .3s var(--ease);
}
.pcard.big { width: 30%; z-index: 2; padding: 20px 16px 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 70px rgba(0,0,0,.7), 0 0 70px rgba(255,255,255,.16); }
.p1 { left: 11%; top: 24%; --r: 4deg; --d: -1s; }
.p2 { left: 34%; top: 15%; --r: 3deg; --d: -3s; }
.p3 { left: 64%; top: 6%; --r: 6deg; --d: -2s; opacity: .55; filter: blur(1px); }
.p4 { left: 64%; top: 46%; --r: -5deg; --d: -4s; }
.p5 { left: 88%; top: 30%; --r: 7deg; --d: -5s; opacity: .7; }
.p6 { left: -6%; top: 56%; --r: 9deg; --d: -2.5s; opacity: .7; }

.pc-avatar {
  width: 38%; aspect-ratio: 1; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; color: #0a0a0a;
  background: radial-gradient(circle at 35% 30%, #fff, #a5a5aa 60%, #5a5a5f);
  box-shadow: 0 0 0 3px #1a1a1d, 0 0 0 4px rgba(255,255,255,.12);
}
.pcard.big .pc-avatar { font-size: 26px; }
.pc-avatar { position: relative; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.pc-verified {
  position: absolute; right: -2px; bottom: -2px; width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #000; box-shadow: 0 0 0 2px #151517;
}
.pc-verified svg { width: 60%; height: 60%; }
.pc-id { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pc-id svg { width: 9px; height: 9px; }
.pcard.big .pc-id svg { width: 11px; height: 11px; }
.pc-chips { display: flex; justify-content: center; gap: 5px; margin: -4px 0 9px; }
.chip {
  font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: #232326; color: #c7c7cc; border: 1px solid rgba(255,255,255,.06);
}
.chip-on { background: #fff; color: #000; }
.pcard.big .chip { font-size: 10px; padding: 3px 9px; }
.pc-name { margin: 0; font-size: 11px; font-weight: 700; color: #fff; }
.pcard.big .pc-name { font-size: 16px; }
.pc-id { margin: 2px 0 10px; font-size: 9px; color: #8e8e93; }
.pcard.big .pc-id { font-size: 11px; }
.pc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.pc-actions span {
  display: grid; place-items: center; height: 22px; border-radius: 7px;
  background: #232326; color: #d1d1d6;
}
.pcard.big .pc-actions span { height: 30px; border-radius: 9px; }
.pc-actions svg { width: 11px; height: 11px; }
.pcard.big .pc-actions svg { width: 14px; height: 14px; }
.pc-launch {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 26px; border-radius: 9px; background: linear-gradient(180deg, #f2f2f4, #c9c9ce);
  color: #0a0a0a; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden;
}
.pcard.big .pc-launch { height: 36px; font-size: 14px; border-radius: 11px; }
.pc-launch svg { width: 10px; height: 10px; }
.pcard.big .pc-launch svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .split-inner, .split-reverse .split-inner { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: -1; }
}

/* Monolith bars */
.bars-pin .pinned-sticky {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 40px; padding: 110px 52px 48px;
}
.bars-head { width: 100%; position: relative; z-index: 2; }
.bars-head .eyebrow, .bars-head .display-title {
  opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.bars-head .display-title { transition-delay: .15s; }
.bars-head.in .eyebrow, .bars-head.in .display-title { opacity: 1; transform: none; filter: none; }
.eyebrow { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: #86868b; letter-spacing: -.01em; }
.display-title {
  margin: 0; font-size: clamp(44px, 6.4vw, 88px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.02; color: #f5f5f7;
}
.bars-stage { width: 100%; flex: 1; min-height: 0; display: flex; transform-origin: 50% 85%; perspective: 2200px; }
.bars-scene {
  position: relative; flex: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.bars-grid, .bars { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; }
.bars-grid { display: flex; flex-direction: column; justify-content: space-between; opacity: var(--gridOp, 0); }
.bars-grid i { display: block; border-top: 1px dashed rgba(255,255,255,.07); }
.bars { display: flex; align-items: flex-end; gap: 1.8%; padding: 0 1%; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bar {
  position: relative;
  height: calc(var(--h) * var(--g, 0) * 100%);
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(90deg, #3c3c3c 0%, #1e1e1e 45%, #0e0e0e 100%);
  box-shadow: inset 1px 0 rgba(255,255,255,.16), inset 0 1px rgba(255,255,255,.3);
}
.bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,calc(.04 + var(--g, 0) * .14)), transparent 75%);
}
.bar::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0;
  height: calc(var(--h) * var(--g, 0) * 40%); border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent);
}
.bar-peak {
  background: linear-gradient(90deg, #f4f4f4 0%, #a8a8a8 45%, #4a4a4a 100%);
  box-shadow: 0 0 80px rgba(255,255,255,calc(var(--g, 0) * .28)), inset 0 1px #fff;
  overflow: hidden;
}
.bar-label {
  position: absolute; bottom: -26px; left: 0; right: 0; text-align: center;
  font-size: 11px; font-weight: 500; color: #4a4a4a; letter-spacing: .02em;
}
.bar-col:last-child .bar-label { color: #fff; }
.bars-floor {
  position: absolute; left: -6%; right: -6%; bottom: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.bars-glow {
  position: absolute; left: 50%; top: 50%; width: 110vw; height: 90vh; transform: translate(-50%, -40%);
  background: radial-gradient(closest-side, rgba(255,255,255,.10), rgba(255,255,255,.04) 50%, transparent 100%);
  opacity: var(--glow, 0); pointer-events: none;
}

/* App preview (pinned) */
.app-pin { height: 340vh; }
.app-pin .app-head { position: relative; z-index: 1; }
.app-pin .app-stage { position: relative; z-index: 3; }
.app-pin .pinned-sticky {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 40px; padding: 110px 52px 48px;
}
.app-head { text-align: right; }
.app-stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  perspective: 1800px;
}
.app-window {
  position: relative; height: 100%; max-height: 560px; aspect-ratio: 852 / 522; max-width: 100%;
  border-radius: calc(14px * var(--lift, 0) / var(--app-scale, 1)); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,calc(var(--lift, 0) * .1)), 0 40px 120px rgba(0,0,0,.8), 0 0 90px rgba(255,255,255,calc(var(--lift, 0) * .08));
  transform: translate3d(0, var(--dy, 0px), 0) scale(var(--app-scale, 1))
    rotateY(calc(var(--ry, 0deg) * var(--lift, 0))) rotateX(calc(var(--rx, 0deg) * var(--lift, 0)));
  transform-origin: 50% 50%;
  will-change: transform;
}
.app-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 60%);
  opacity: var(--shine, 0); transition: opacity .3s;
}
.app-reflection {
  width: min(70%, 700px); height: 40px; margin-top: 18px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 70%);
  filter: blur(10px); opacity: var(--lift, 0);
}
.app-glow {
  position: absolute; left: 50%; top: 55%; width: 100vw; height: 80vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent);
  opacity: var(--lift, 0); pointer-events: none;
}
@media (max-width: 720px) {
  .app-pin .pinned-sticky { padding: 96px 20px 40px; gap: 28px; }
  .app-window { height: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .app-pin { height: auto; }
  .app-window { transform: none; }
}

.pinned { height: 320vh; padding: 0; }
.pinned-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
}
.pinned-sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, #000 95%);
  opacity: var(--vignette, 1);
}

@media (max-width: 720px) {
  .bar-label { font-size: 9px; }
  .bars-pin .pinned-sticky { padding: 96px 20px 40px; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-stage { transform: none; }
  .bar { --g: 1; }
  .bars-grid { opacity: 1; }
  .bars-head .eyebrow, .bars-head .display-title { opacity: 1; transform: none; filter: none; }
  .pinned { height: auto; }
  .pinned-sticky { position: static; height: auto; padding: 80px 24px; }
}

/* ANNOUNCEMENT MODAL */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.modal-backdrop.show { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(460px, 100%); background: #111113; border: 1px solid #1f1f22; border-radius: 18px;
  padding: 20px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.97); transition: transform .35s var(--ease);
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; margin-bottom: 18px; }
.modal-head h3 { margin: 0; padding: 0 48px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.modal-close {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: #232326; color: #fff; transition: background .2s;
}
.modal-close:hover { background: #2e2e32; }
.modal-img { display: block; width: 100%; aspect-ratio: 2.5; object-fit: cover; border-radius: 12px; margin-bottom: 18px; background: #1a1a1d; }
.modal-starts { margin: 0 0 12px; font-size: 13px; color: #a1a1a6; }
.modal-starts b { color: #fff; font-weight: 500; }
.modal-body { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #d1d1d6; }
.modal-cta {
  display: block; padding: 13px; border-radius: 999px; background: #fff; color: #000;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s;
}
.modal-cta:hover { background: #e6e6e6; }
.modal-foot { margin: 14px 0 0; font-size: 12px; color: #8e8e93; }

/* FORMS & ADMIN */
.form-grid { display: grid; gap: 16px; max-width: 520px; }
.form-2col { grid-template-columns: 1fr 1fr; max-width: none; }
.form-2col .span-2 { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid input:not([type=checkbox]), .form-grid textarea {
  padding: 11px 13px; font: inherit; font-size: 14px; color: #fff;
  background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: #fff; }
.form-grid label.check { flex-direction: row; align-items: center; gap: 10px; color: #d1d1d6; }
.form-msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; max-width: 520px; }
.form-error { background: #1a0a0a; color: #ff8080; border: 1px solid #3a1414; }
.form-success { background: #0d1a10; color: #8fe0a0; border: 1px solid #16361f; }
.ann-list { display: flex; flex-direction: column; }
.ann-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ann-row:first-child { border-top: 0; }
.ann-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ann-title { margin: 0; font-weight: 600; font-size: 15px; }
.ann-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.ann-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ann-actions form { margin: 0; }
.status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #1f1f22; color: #8e8e93; flex-shrink: 0; }
.status.on { background: #fff; color: #000; }
.btn-danger { color: #ff8080; }
@media (max-width: 720px) {
  .form-2col { grid-template-columns: 1fr; }
  .ann-row { flex-direction: column; align-items: flex-start; }
}

/* API KEYS */
.keys-page { padding: 0; }
.keys-wrap { min-height: calc(100vh - 62px); }
.keys-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 26px; border-bottom: 1px solid var(--line);
}
.keys-head h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.keys-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px solid #333; background: transparent; color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.tbtn:hover { background: #1a1a1a; }
.tbtn-muted { background: #1c1c1c; border-color: #1c1c1c; color: #d1d1d6; }
.tbtn-muted:hover { background: #262626; }
.tbtn-primary { background: #fff; color: #000; border-color: #fff; }
.tbtn-primary:hover { background: #e6e6e6; }
.tbtn-outline { border-radius: 999px; color: #d1d1d6; }
.tbtn-danger { border-color: #4a1818; color: #ff8080; }
.tbtn-danger:hover { background: #1f0d0d; }
.tbtn[hidden] { display: none; }

.keys-toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 26px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px; width: 230px; height: 32px; padding: 0 12px;
  border: 1px solid #333; border-radius: 999px; color: #8e8e93;
}
.search:focus-within { border-color: #666; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 13.5px; }
.result-count { font-size: 13px; color: #a1a1a6; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-filter {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px;
  border-radius: 999px; background: #1c1c1c; font-size: 12px; color: #d1d1d6;
}
.chip-filter button { border: 0; background: none; color: #8e8e93; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.chip-filter button:hover { color: #fff; }

.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 190px; padding: 6px;
  background: #141416; border: 1px solid #262629; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.keys-head-actions .menu { left: auto; right: 0; }
.dropdown.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu button {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px;
  background: none; color: #d1d1d6; font: inherit; font-size: 13px; cursor: pointer;
}
.menu button:hover { background: #1f1f22; color: #fff; }
.menu button.on { color: #fff; font-weight: 600; }
.menu-label { margin: 6px 10px 4px; font-size: 11px; color: #6e6e73; text-transform: uppercase; letter-spacing: .04em; }

.table-scroll { overflow-x: auto; scrollbar-color: #333 transparent; scrollbar-width: thin; }
.keys-table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.keys-table th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: #d1d1d6;
  background: #111; padding: 9px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.keys-table td { padding: 12px; border-bottom: 1px solid #141414; color: #d1d1d6; }
.keys-table tbody tr[data-row]:hover td { background: #0c0c0c; }
.keys-table .col-check { width: 40px; padding-left: 26px; }
.keys-table .col-actions { text-align: right; padding-right: 26px; }
.keys-table .num { text-align: right; }
.keys-table .name { color: #fff; font-weight: 500; }
.keys-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.tid { margin-right: 6px; }
.info {
  display: inline-grid; place-items: center; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%;
  border: 1px solid #8e8e93; color: #8e8e93; font-size: 8px; font-weight: 700; font-style: normal; cursor: help; vertical-align: 1px;
}
.cb {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #4a4a4e; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle;
  transition: background .15s, border-color .15s;
}
.cb:hover { border-color: #8e8e93; }
.cb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cb::after { content: ""; width: 10px; height: 10px; background: #000; opacity: 0;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%); }
.cb:checked, .cb:indeterminate { background: #fff; border-color: #fff; }
.cb:checked::after { opacity: 1; }
.cb:indeterminate::after { opacity: 1; height: 2px; clip-path: none; border-radius: 1px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: #a1a1a6; cursor: pointer; vertical-align: middle; transition: background .15s, color .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: #1c1c1e; color: #fff; }
.icon-btn.danger { color: #ff453a; }
.icon-btn.danger:hover { background: #2a1010; color: #ff6961; }
.mono .icon-btn { width: 26px; height: 26px; }
.mono .icon-btn svg { width: 14px; height: 14px; }
.col-actions .icon-btn + .icon-btn { margin-left: 2px; }
.st { font-size: 13px; }
.st-active { color: #d1d1d6; }
.st-revoked { color: #ff8080; }
.st-expired { color: #8e8e93; }
.empty-row td { text-align: center; color: #8e8e93; padding: 48px 12px; }

.modal-form { text-align: left; }
.modal-form h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.modal-form .form-grid { max-width: none; }
.modal-form select, .form-grid select {
  padding: 10px 12px; font: inherit; font-size: 14px; color: #fff;
  background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 10px;
}
.modal-form .form-msg { margin: 0; }
.modal-form .form-msg[hidden] { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.modal-note { font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.modal-note b { color: #fff; font-weight: 600; }
.secret-box {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px;
  background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 8px;
}
.secret-box code { flex: 1; min-width: 0; overflow-x: auto; font-size: 12.5px; color: #fff; white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* OAUTH CONSENT */
.oauth .auth-card { text-align: center; }
.oauth-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.oauth-app, .oauth-cloudy {
  width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-strong); background: #141416;
}
.oauth-app { display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.oauth-cloudy { object-fit: contain; padding: 8px; }
.oauth-dots { display: flex; gap: 4px; }
.oauth-dots i { width: 4px; height: 4px; border-radius: 50%; background: #4a4a4e; }
.oauth .auth-card h1 { margin-bottom: 4px; }
.oauth-sub { margin: 0 0 22px; }
.oauth-account {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 20px;
}
.oauth-label { text-align: left; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.oauth-scopes { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.oauth-scopes li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; border-top: 1px solid var(--line); }
.oauth-scopes li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 6px; margin-top: -5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.oauth-note { text-align: left; font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.oauth-note b { color: #fff; }
.oauth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth-actions .btn { width: 100%; }
.oauth-foot { margin: 18px 0 0; font-size: 12px; color: #6e6e73; }

/* PROJECTS */
.created-panel { border-color: #3a3a3e; background: #121214; }
.mono-sm { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.howto { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.howto summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #d1d1d6; }
.howto ol { margin: 12px 0 0; padding-left: 20px; color: #a1a1a6; font-size: 13.5px; line-height: 1.6; }
.howto li { margin-bottom: 10px; }
.howto code {
  display: block; margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: #0a0a0a;
  border: 1px solid var(--line); color: #fff; font-size: 12px; white-space: pre-wrap; word-break: break-all;
}
.howto li > code:only-child, .howto p code { display: inline; padding: 1px 5px; }
.inline-link { color: #fff; text-underline-offset: 3px; }
.menu a {
  display: block; padding: 7px 10px; border-radius: 6px; color: #d1d1d6; font-size: 13px; text-decoration: none;
}
.menu a:hover { background: #1f1f22; color: #fff; }
.menu a.on { color: #fff; font-weight: 600; }
.menu-right { left: auto; right: 0; }
.empty-state { max-width: 420px; margin: 80px auto; text-align: center; padding: 0 24px; }
.empty-state h2 { margin: 0 0 8px; font-size: 22px; }
.empty-state p { margin: 0 0 20px; }

/* ADMIN USERS */
.keys-head .result-count { margin-left: auto; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d1d1d6; cursor: pointer; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .side-avatar { width: 28px; height: 28px; font-size: 12px; }
.ip-cell { display: flex; align-items: center; gap: 8px; }
.flag { width: 20px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background-size: cover; }
.flag-none { display: inline-grid; place-items: center; background: #1c1c1e; color: #8e8e93; font-size: 10px; }
.ip-blur { filter: blur(5px); user-select: none; transition: filter .2s var(--ease); outline: none; }
.ip-blur:hover, .ip-blur:focus { filter: none; user-select: text; }
.alt-badge {
  border: 1px solid #5a3a12; background: #241708; color: #ffb35c; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.alt-badge:hover { background: #2f1e0a; }
.proj-chips { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.proj-chip { white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #1c1c1e; color: #d1d1d6; }
.proj-cloudy { background: #fff; color: #000; }
.users-table td { vertical-align: middle; }
.users-table tbody tr[data-user-row] { cursor: pointer; }
.users-table tbody tr[data-user-row]:hover td { background: #0c0c0c; }
.users-table tbody tr.selected td { background: #141416; }
.users-table tbody tr[data-user-row]:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.proj-more {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px;
  border-radius: 999px; border: 1px solid #3a3a3e; background: #141416; color: #d1d1d6;
  font-size: 11px; font-weight: 700; cursor: help;
}

/* USER DRAWER */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer-backdrop.show { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(420px, 100vw);
  background: #0b0b0c; border-left: 1px solid #1f1f22; box-shadow: -30px 0 80px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 14px; font-weight: 600; color: #a1a1a6; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; scrollbar-color: #333 transparent; scrollbar-width: thin; }
.dr-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dr-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 20px; font-weight: 700; color: #000; background: radial-gradient(circle at 35% 30%, #fff, #a5a5aa 60%, #5a5a5f);
}
.dr-name-row { display: flex; align-items: center; gap: 8px; }
.dr-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.dr-email { margin: 2px 0 0; font-size: 13px; color: var(--muted); word-break: break-all; }
.dr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.dr-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #111113; }
.dr-stat b { font-size: 18px; font-weight: 700; }
.dr-stat span { font-size: 11px; color: var(--muted); }
.dr-section { padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.dr-label { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: #6e6e73; text-transform: uppercase; letter-spacing: .05em; }
.dr-kv { display: grid; grid-template-columns: 110px 1fr; gap: 9px 12px; margin: 0; font-size: 13.5px; }
.dr-kv dt { color: var(--muted); }
.dr-kv dd { margin: 0; color: #e5e5ea; min-width: 0; }
.dr-ip { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-ip .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.dr-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: none; color: #fff; font: inherit; text-align: left;
}
.dr-row-btn { cursor: pointer; transition: background .15s, border-color .15s; }
.dr-row-btn:hover { background: #141416; border-color: #2a2a2e; }
.dr-row .side-avatar { width: 28px; height: 28px; font-size: 12px; }
.dr-row-text { min-width: 0; flex: 1; }
.dr-row-title { margin: 0; font-size: 13.5px; font-weight: 600; }
.dr-row-sub { margin: 1px 0 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-chev { color: #6e6e73; font-size: 18px; }
.dr-exec { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.1; }
.dr-exec b { font-size: 14px; }
.dr-exec small { font-size: 10px; color: #6e6e73; }
.exec-num { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.dr-empty { font-size: 13px; margin: 0 0 6px; }
.dr-ban-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.dr-ban-ip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dr-ban-ip .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dr-danger .dr-label { color: #ff6961; }
.dr-danger-text { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #a1a1a6; }
.dr-danger-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tbtn-danger-solid { background: #ff453a; border-color: #ff453a; color: #fff; }
.tbtn-danger-solid:hover { background: #ff6961; }
.tbtn:disabled { opacity: .4; cursor: not-allowed; }
.ban-reason { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.banned-card { text-align: center; }
.banned-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,69,58,.12); color: #ff6961; }
.banned-icon svg { width: 28px; height: 28px; }
.banned-reason { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #141416; font-size: 13.5px; color: #d1d1d6; }

/* DASHBOARD CHARTS */
.dash-wide { max-width: 1320px; }
.card {
  position: relative; background: #0d0d0d; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: #232326; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-sub { margin: 3px 0 0; font-size: 12.5px; color: #6e6e73; }
.card-ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fff; color: #000; }
.card.loading .chart-box canvas, .card.loading .heatmap, .card.loading .kpi-grid { opacity: .45; transition: opacity .2s; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: #161618; border: 1px solid #1f1f22; border-radius: 9px; }
.seg button {
  border: 0; background: none; color: #8e8e93; font: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s;
}
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: #000; }

.kpi-card { margin-bottom: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.exec-total { color: #fff; font-weight: 600; }
.chart-empty code { font-size: 11px; background: #1c1c1e; padding: 1px 5px; border-radius: 4px; color: #d1d1d6; }
.kpi2 { padding: 4px 20px 0; border-left: 1px solid var(--line); min-width: 0; }
.kpi2:first-child { border-left: 0; padding-left: 0; }
.kpi2-label { font-size: 12.5px; color: #8e8e93; }
.kpi2-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.kpi2-value { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.kpi2-note { margin: 0; font-size: 12px; color: #6e6e73; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.delta.up { background: rgba(48,209,88,.12); color: #30d158; }
.delta.down { background: rgba(255,69,58,.12); color: #ff6961; }
.delta.flat { background: #1c1c1e; color: #8e8e93; }
.spark { height: 46px; margin: 0 -4px; }

.chart-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.chart-box { position: relative; height: 260px; }
.chart-box-donut { height: 280px; }
.chart-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(rgba(13,13,13,.75), rgba(13,13,13,.92)); border-radius: 10px;
}
.chart-empty[hidden] { display: none; }
.chart-empty p { margin: 0; max-width: 260px; font-size: 13px; color: #8e8e93; line-height: 1.5; }
.chart-empty a { color: #fff; }

.chart-grid > .card { min-width: 0; }
.heatmap { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 4px; }
.hm-hour { font-size: 10px; color: #6e6e73; text-align: center; height: 14px; overflow: visible; white-space: nowrap; }
.hm-day { font-size: 11px; color: #8e8e93; align-self: center; }
.hm-cell {
  aspect-ratio: 1.6; border-radius: 4px; background: rgba(255,255,255,var(--o));
  animation: hmIn .5s var(--ease) both; cursor: default; transition: transform .15s, box-shadow .15s;
}
.hm-cell:hover { transform: scale(1.18); box-shadow: 0 0 0 1px #fff; }
@keyframes hmIn { from { opacity: 0; transform: scale(.6); } }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 12px; font-size: 11px; color: #6e6e73; }
.heat-legend i { width: 14px; height: 10px; border-radius: 3px; background: rgba(255,255,255,var(--o)); }
.heat-legend span { margin: 0 4px; }
.hm-tip {
  position: fixed; z-index: 300; transform: translate(-50%, -100%); pointer-events: none;
  background: #fff; color: #000; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.hm-tip.show { opacity: 1; }

/* Full-bleed dashboard: edge-to-edge panels divided by hairlines, like the API keys table */
.dash-flush .chart-grid { gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.dash-flush .card { background: #000; border: 0; border-radius: 0; padding: 20px 26px 22px; }
.dash-flush .card:hover { background: #050505; transform: none; }
.dash-flush .kpi-card { margin: 0; }
.todo-card .card-head { margin-bottom: 12px; }
.todo-card .icon-btn svg { width: 14px; height: 14px; }
.todo-progress { height: 2px; background: #1a1a1c; margin-bottom: 16px; }
.todo-progress i { display: block; height: 100%; background: #fff; transition: width .4s var(--ease); }
.todo-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.todo { display: flex; gap: 12px; padding: 14px 16px; border-left: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s; }
.todo:first-child { border-left: 0; }
.todo:hover { background: #0c0c0c; }
.todo-check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid #3a3a3e; border-radius: 50%; }
.todo-check svg { width: 10px; height: 10px; }
.todo.done .todo-check { background: #fff; border-color: #fff; color: #000; }
.todo-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.todo-text b { font-size: 13.5px; font-weight: 600; color: #fff; }
.todo-text small { font-size: 12px; color: #6e6e73; line-height: 1.4; }
.todo.done .todo-text b { color: #6e6e73; text-decoration: line-through; }
@media (max-width: 1100px) {
  .todo-list { grid-template-columns: 1fr; }
  .todo { border-left: 0; border-top: 1px solid var(--line); }
  .todo:first-child { border-top: 0; }
}
.dash-flush .card-head h2 { font-size: 14px; }
.dash-flush .card-sub { font-size: 12px; }
.dash-flush .seg { border-radius: 6px; }
.dash-flush .seg button { border-radius: 4px; }
.dash-flush .chart-empty { border-radius: 0; background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.92)); }
.dash-flush .hm-cell, .dash-flush .heat-legend i { border-radius: 2px; }

/* Full-bleed content pages: panels become edge-to-edge sections split by hairlines */
.page-flush .panel { background: #000; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 22px 26px 26px; }
.page-flush .panel-head { gap: 16px; flex-wrap: wrap; }
.page-flush .panel-head h2 { font-size: 14px; }
.page-flush .panel-head .muted { font-size: 12.5px; }
.page-flush .created-panel { background: #0c0c0c; }
.page-flush .form-grid input:not([type=checkbox]), .page-flush .form-grid textarea, .page-flush .form-grid select { border-radius: 6px; }
.page-flush .form-grid label.event-pick, .page-flush .code-block, .page-flush .howto code, .page-flush .hook-icon { border-radius: 6px; }
.page-flush .btn { border-radius: 8px; }
.page-flush .redeem-input { border-radius: 6px; }
.page-flush .panel .form-msg { max-width: 620px; }
.page-flush .reveal { opacity: 1; transform: none; }

/* BILLING */
.bill-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.bill-cell { padding: 20px 26px; border-left: 1px solid var(--line); }
.bill-cell:first-child { border-left: 0; }
.bill-label { margin: 0; font-size: 12.5px; color: #8e8e93; }
.bill-value { margin: 6px 0 4px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.bill-note { margin: 0; font-size: 12px; color: #6e6e73; }
.bill-of { font-size: 15px; font-weight: 500; color: #6e6e73; letter-spacing: 0; }
.meter { height: 3px; margin-top: 10px; background: #1a1a1c; }
.meter i { display: block; height: 100%; background: #fff; }
.meter.full i { background: #ff6961; }
.usage-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: #8e8e93; }
.usage-line b { font-size: 20px; font-weight: 600; color: #fff; }
.plan-table th.num, .plan-table td.num { width: 22%; }
.plan-current, .plan-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border: 1px solid #3a3a3e; border-radius: 4px; color: #d1d1d6; text-transform: uppercase; letter-spacing: .04em; }
.dash-flush .card .table-scroll { margin: 0 -26px -22px; }
.dash-flush .card .keys-table td:first-child, .dash-flush .card .keys-table th:first-child { padding-left: 26px; }
.dash-flush .card .keys-table td:last-child, .dash-flush .card .keys-table th:last-child { padding-right: 26px; }
.keys-table .sub { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: #6e6e73; }
.admin-totals { margin: -20px -26px -22px; border-bottom: 0; }
/* DOWNLOADS */
.dl-intro { margin: 0 0 16px; max-width: 680px; font-size: 13.5px; line-height: 1.6; }
.page-flush .panel .dl-intro + .table-scroll { margin: 0 -26px -26px; }
.dl-steps { margin: 0; padding-left: 20px; color: #a1a1a6; font-size: 13.5px; line-height: 1.7; }
.dl-steps li { margin-bottom: 6px; }
.dl-steps b { color: #fff; font-weight: 600; }
.dl-steps code { font-size: 12px; background: #111; border: 1px solid #1f1f22; padding: 1px 5px; border-radius: 4px; color: #e5e5ea; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tbtn:disabled { opacity: .45; cursor: not-allowed; }
.dl-latest { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: #050505; }
.dl-latest-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-latest-info b { font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.dl-latest-info .muted { font-size: 13px; }
.dl-notes { margin: 4px 0 0; font-size: 13px; color: #c7c7cc; max-width: 560px; }
.dl-hash { margin-top: 4px; font-size: 11.5px; color: #6e6e73; word-break: break-all; }
.dl-hash code { font-size: 11px; color: #8e8e93; }
.dl-latest .btn { display: inline-flex; align-items: center; gap: 8px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; max-width: 720px;
  padding: 30px 20px; margin-bottom: 18px; text-align: center; cursor: pointer;
  border: 1px dashed #3a3a3e; border-radius: 6px; background: #050505; transition: border-color .15s, background .15s;
}
.dropzone svg { width: 26px; height: 26px; color: #6e6e73; margin-bottom: 4px; }
.dropzone b { font-size: 14px; font-weight: 600; color: #fff; }
.dropzone small { font-size: 12.5px; color: #6e6e73; }
.dropzone:hover, .dropzone.over { border-color: #fff; background: #0c0c0c; }
.dropzone.has-file { border-style: solid; border-color: #fff; }
.dropzone.has-file svg { color: #fff; }
.upload-form textarea { padding: 11px 13px; font: inherit; font-size: 14px; color: #fff; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 6px; resize: vertical; }
.upload-actions { display: flex; align-items: center; gap: 14px; }
.upload-progress { flex: 1; max-width: 300px; height: 3px; background: #1a1a1c; }
.upload-progress i { display: block; width: 0; height: 100%; background: #fff; transition: width .15s; }

/* API DOCS */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.docs-toc { position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 62px); overflow-y: auto; padding: 22px 16px 40px 26px; border-right: 1px solid var(--line); }
.docs-toc-group { margin: 18px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73; }
.docs-toc-group:first-child { margin-top: 0; }
.docs-toc a { display: block; padding: 5px 10px; margin: 0 -10px; border-radius: 4px; font-size: 13px; color: #8e8e93; text-decoration: none; transition: color .15s, background .15s; }
.docs-toc a:hover { color: #fff; }
.docs-toc a.on { color: #fff; background: #111; }
.docs-body { padding: 26px 40px 80px; max-width: 880px; font-size: 14px; line-height: 1.65; color: #c7c7cc; }
.docs-body section { scroll-margin-top: 80px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.docs-body h2 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.docs-body h2.docs-part { margin: 12px 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6e6e73; }
.docs-body h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #fff; }
.docs-body p { margin: 0 0 12px; }
.docs-body b { color: #fff; font-weight: 600; }
.docs-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: #111; border: 1px solid #1f1f22; padding: 1px 5px; border-radius: 4px; color: #e5e5ea; }
.docs-body .code-block { margin: 0 0 12px; border-radius: 6px; white-space: pre; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.55; }
.docs-body .code-block.res { background: #050505; color: #a1a1a6; }
.docs-body .code-block .c { color: #5a5a5f; }
.docs-note, .docs-warn { margin: 0 0 28px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #0a0a0a; font-size: 13.5px; }
.docs-warn { margin: 4px 0 0; border-left: 2px solid #fff; }
.docs-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 13px; }
.docs-table th { text-align: left; font-weight: 600; color: #8e8e93; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.docs-table td { padding: 9px 10px; border-bottom: 1px solid #141414; vertical-align: top; }
.ep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #0a0a0a; }
.ep + .ep { margin-top: -6px; }
.ep-method { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; }
.ep-get { background: #1c1c1e; color: #d1d1d6; }
.ep-post { background: #fff; color: #000; }
.docs-body .ep-path { background: none; border: 0; padding: 0; font-size: 13px; color: #fff; }
.ep-keys { margin-left: auto; font-size: 11.5px; color: #6e6e73; }
@media (max-width: 1000px) {
  .docs { grid-template-columns: 1fr; }
  .docs-toc { display: none; }
  .docs-body { padding: 22px 20px 60px; }
}
.buy-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 10px; }
.buy-term { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: #050505; margin: 0; }
.buy-term .tbtn { margin-top: 8px; justify-content: center; }
.buy-term.short { opacity: .6; }
.buy-len { font-size: 12.5px; color: #8e8e93; }
.buy-price { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.buy-hint { margin: 14px 0 0; font-size: 13px; }
.usage-row + .usage-row { margin-top: 16px; }
.head-balance { color: #fff; font-weight: 600; margin-left: 4px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; max-width: 640px; }
.check-row .cb { margin-top: 2px; }
.check-row span { display: flex; flex-direction: column; gap: 3px; }
.check-row b { font-size: 14px; font-weight: 600; color: #fff; }
.check-row small { font-size: 12.5px; color: #8e8e93; line-height: 1.45; }
.voucher-form input[type=number] { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .buy-terms { grid-template-columns: 1fr; } }
.upgrade-panel h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.upgrade-panel p { margin: 0 0 18px; max-width: 560px; }
.pay-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay-mark {
  width: 72px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid #1f1f22; border-radius: 6px; background: #0a0a0a; color: #d1d1d6;
  transition: border-color .15s, color .15s, background .15s;
}
.pay-mark:hover { border-color: #3a3a3e; background: #111; color: #fff; }
.pay-mark svg { width: 100%; height: 100%; }
.pay-coin svg { width: 24px; height: 24px; }
.pay-toggle { position: relative; cursor: pointer; }
.pay-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pay-toggle .pay-mark { color: #4a4a4f; }
.pay-toggle input:checked + .pay-mark { border-color: #fff; color: #fff; background: #111; }
.pay-toggle input:focus-visible + .pay-mark { outline: 2px solid #fff; outline-offset: 2px; }
.cfg-grid { max-width: 720px; }
.proj-form { max-width: 720px; margin-top: 4px; }
.howto .proj-form { margin-top: 14px; }
.proj-hint { margin: 0; font-size: 12.5px; }
.proj-hint code { font-size: 12px; background: #0a0a0a; border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: #d1d1d6; }
.payout-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 10px; }
.payout-method { cursor: pointer; }
.payout-method input { position: absolute; opacity: 0; pointer-events: none; }
.payout-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: #050505; transition: border-color .15s, background .15s; }
.payout-card b { font-size: 14px; font-weight: 600; color: #fff; }
.payout-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.payout-icons .pay-mark { width: 48px; height: 32px; }
.payout-icons .pay-coin svg { width: 18px; height: 18px; }
.payout-method input:checked + .payout-card { border-color: #fff; background: #0e0e0e; }
.payout-method input:focus-visible + .payout-card { outline: 2px solid #fff; outline-offset: 2px; }
.coin-picks { margin-bottom: 18px; }
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; }
.cfg-grid select:disabled { opacity: .5; }
@media (max-width: 600px) { .payout-methods { grid-template-columns: 1fr; } }
.seg-link { color: #8e8e93; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-decoration: none; transition: background .15s, color .15s; }
.seg-link:hover { color: #fff; }
.seg-link.on { background: #fff; color: #000; }
.rev-summary { display: flex; align-items: baseline; gap: 12px; margin: -4px 0 16px; }
.rev-summary b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.rev-change { font-size: 12.5px; color: #8e8e93; }
.cfg-grid select { padding: 11px 13px; font: inherit; font-size: 14px; color: #fff; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 6px; }
.pay-sep { width: 1px; height: 28px; margin: 0 6px; background: var(--line); }
.page-flush .panel .table-scroll { margin: 0 -26px -26px; }

@media (max-width: 1100px) {
  .bill-row { grid-template-columns: repeat(2, 1fr); }
  .bill-cell:nth-child(3) { border-left: 0; }
  .bill-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .kpi2:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi2:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi2 { border-left: 0; padding-left: 0; }
  .heatmap { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .hm-hour { font-size: 8px; }
}

/* WEBHOOKS */
.field-label { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.event-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 1200px) { .event-picks { grid-template-columns: repeat(2, 1fr); } }
.form-grid label.event-pick {
  flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; transition: border-color .15s, background .15s;
}
.event-pick:has(input:checked) { border-color: #fff; background: #111; }
.event-pick span { display: flex; flex-direction: column; gap: 2px; }
.event-pick b { color: #fff; font-size: 14px; font-weight: 600; }
.event-pick small { color: #8e8e93; font-size: 12px; line-height: 1.4; }
.hook-list { display: flex; flex-direction: column; }
.hook { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.hook:first-child { border-top: 0; padding-top: 4px; }
.hook-main { display: flex; gap: 14px; min-width: 0; }
.hook-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: #1c1c1e; color: #d1d1d6; }
.hook-icon svg { width: 20px; height: 20px; }
.hook-icon.is-discord { background: #fff; color: #000; }
.hook-text { min-width: 0; }
.hook-title-row { display: flex; align-items: center; gap: 8px; }
.hook-name { font-weight: 600; font-size: 15px; }
.hook-sub { margin: 3px 0 8px; font-size: 12.5px; color: var(--muted); }
.hook-sub .mono, .hook-secret .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.hook-events { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.hook-delivery, .hook-secret { margin: 4px 0 0; font-size: 12px; color: #8e8e93; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #30d158; }
.dot-bad { background: #ff453a; }
.hook-actions { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.hook-actions form { margin: 0; }
.small-text { font-size: 13.5px; line-height: 1.6; }
.small-text code, .howto p code { background: #161618; padding: 1px 6px; border-radius: 5px; color: #fff; font-size: 12px; }
.code-block {
  margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: #0a0a0a; border: 1px solid var(--line);
  font-size: 12.5px; color: #d1d1d6; overflow-x: auto;
}
@media (max-width: 900px) {
  .event-picks { grid-template-columns: 1fr; }
  .hook { flex-direction: column; }
}

/* LICENSES */
.lic-messages { padding: 16px 26px 0; }
.lic-messages .form-msg { max-width: none; margin-bottom: 0; }
.created-keys { margin-top: 12px; padding: 14px 16px; border: 1px solid #2a2a2e; border-radius: 12px; background: #0f0f11; }
.created-keys-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: #d1d1d6; font-weight: 600; }
.created-keys-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; }
.created-keys-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #fff;
  padding: 5px 9px; border-radius: 7px; background: #1a1a1d; border: 1px solid #26262a;
}
.seg button span { opacity: .55; margin-left: 3px; font-weight: 500; }
.lic-key { letter-spacing: .02em; }
.lic-note { margin: 4px 0 0; font-family: inherit; font-size: 11.5px; color: #6e6e73; }
.lic-status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #1c1c1e; color: #8e8e93; }
.lic-active { background: rgba(48,209,88,.12); color: #30d158; }
.lic-unused { background: #1c1c1e; color: #d1d1d6; }
.lic-expired { background: #1c1c1e; color: #8e8e93; }
.lic-revoked { background: rgba(255,69,58,.12); color: #ff6961; }
.inline-form { display: inline; margin: 0; }
.col-actions .inline-form + .inline-form { margin-left: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input:disabled { opacity: .4; }
.modal-hint { font-size: 12.5px; margin: 0; line-height: 1.5; }

.redeem-form { display: flex; gap: 10px; max-width: 620px; }
.redeem-input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #fff; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 12px;
}
.redeem-input:focus { outline: none; border-color: #fff; }
.redeem-input::placeholder { color: #48484a; }
.lic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lic-card { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, #141416, #0b0b0c); }
.lic-card-active { border-color: #2c2c30; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.lic-card-expired, .lic-card-revoked { opacity: .6; }
.lic-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lic-project { font-size: 13px; color: #a1a1a6; font-weight: 600; }
.lic-tier { margin: 14px 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.lic-expiry { margin: 0 0 12px; font-size: 13px; color: #8e8e93; }
.lic-meta { margin: 0; font-size: 11.5px; color: #6e6e73; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .redeem-form { flex-direction: column; } }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

::selection { background: #fff; color: #000; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .meta { grid-template-columns: 1fr; }
}
