:root {
  --ink: #070b14;
  --ink-2: #0d1424;
  --panel: #121a2e;
  --line: rgba(125, 211, 252, 0.14);
  --text: #eef3ff;
  --muted: #93a4c3;
  --blue: #2f6bff;
  --blue-2: #38bdf8;
  --blue-deep: #1d4ed8;
  --glow: rgba(47, 107, 255, 0.45);
  --danger: #f87171;
  --ok: #34d399;
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(56, 189, 248, 0.16), transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 45%, #08101c 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(47, 107, 255, 0.45));
  flex-shrink: 0;
}
.brand-sm .brand-logo { width: 28px; height: 28px; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 0 24px var(--glow);
  transform: rotate(12deg);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  text-transform: uppercase;
}
.brand-text span { color: var(--blue-2); }
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 42px; height: 42px; border-radius: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border-radius: 999px; padding: 0.8rem 1.25rem; font-weight: 700;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35);
}
.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn-wide { width: 100%; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,.35), rgba(47,107,255,.08) 55%, transparent 70%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(-30px, 40px) rotate(12deg); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--blue-2); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.78rem; margin-bottom: 1.2rem;
}
.eyebrow i { font-size: 0.65rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 10ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-2), #fff 55%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-side {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,26,46,0.9), rgba(7,11,20,0.55));
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.live-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.live-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
}
.big-stat {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}
.big-stat small { color: var(--muted); font-size: 0.4em; font-weight: 700; }
.hero-side p { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }

.section { padding: 4.5rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); max-width: 34rem; }

.player-rail {
  display: flex; gap: 0.65rem; overflow-x: auto; padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.player-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 46, 0.75);
  font-weight: 600;
  white-space: nowrap;
}
.player-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #041018; font-size: 0.75rem; font-weight: 800;
}
.player-empty { color: var(--muted); }

.metrics {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0.9rem;
}
.metric, .panel {
  border: 1px solid var(--line);
  background: rgba(18, 26, 46, 0.72);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.metric h3, .panel h3 {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.metric .val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}
.chart-wrap { height: 220px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(47,107,255,0.08), rgba(18,26,46,0.85));
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(56,189,248,0.35); }
.card .date { color: var(--blue-2); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .by { margin-top: 1rem; color: var(--muted); font-size: 0.8rem; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.staff {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18,26,46,0.7);
}
.staff .icon {
  width: 58px; height: 58px; margin: 0 auto 0.8rem;
  border-radius: 18px; display: grid; place-items: center;
  font-size: 1.35rem;
}
.staff h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.staff span {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 0.9rem; }

/* Auth / UCP */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid; place-items: center;
  padding: 2rem 0 3rem;
}
.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: rgba(18,26,46,0.88);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0.4rem 0 0.3rem;
}
.auth-card .sub { color: var(--muted); margin-bottom: 1.4rem; }
.label { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.95rem;
  outline: none;
}
.field:focus { border-color: rgba(47,107,255,0.7); box-shadow: 0 0 0 3px rgba(47,107,255,0.18); }
.alert {
  border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.9rem;
}
.alert-err { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); color: #fecaca; }
.alert-ok { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35); color: #a7f3d0; }

.ucp {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0 3rem;
  min-height: calc(100vh - 72px);
}
.ucp-side {
  border: 1px solid var(--line);
  background: rgba(18,26,46,0.8);
  border-radius: 22px;
  padding: 1.2rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.ucp-user { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.2rem; }
.ucp-user .av {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #041018; font-weight: 800;
}
.ucp-user strong { display: block; }
.ucp-user span { color: var(--muted); font-size: 0.85rem; }
.ucp-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.ucp-nav a {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  display: flex; gap: 0.65rem; align-items: center;
}
.ucp-nav a.is-active, .ucp-nav a:hover {
  background: rgba(47,107,255,0.14);
  color: var(--text);
}
.ucp-main { display: flex; flex-direction: column; gap: 1rem; }
.ucp-hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  background:
    linear-gradient(120deg, rgba(47,107,255,0.22), transparent 45%),
    rgba(18,26,46,0.85);
}
.ucp-hero h1 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 0.35rem; }
.ucp-hero p { color: var(--muted); }
.ucp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.ucp-stat .val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.list { display: grid; gap: 0.7rem; }
.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(18,26,46,0.7);
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
}
.list-row .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(47,107,255,0.15); color: var(--blue-2);
}
.list-row h4 { font-size: 1rem; }
.list-row p { color: var(--muted); font-size: 0.85rem; }
.badge {
  border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--line); color: var(--blue-2); background: rgba(47,107,255,0.1);
}

.rules, .premium { padding: 2.5rem 0 4rem; }
.rules h1, .premium h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.8rem; }
.acc { display: grid; gap: 0.7rem; }
.acc details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18,26,46,0.75);
  padding: 0.2rem 1rem;
}
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 700;
}
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary { color: var(--blue-2); }
.acc .body { color: var(--muted); padding: 0 0 1rem; }
.acc ul { padding-left: 1.1rem; }
.acc li { margin: 0.45rem 0; }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.pkg {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(18,26,46,0.8);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.pkg h3 { color: var(--blue-2); }
.pkg .pts { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.pkg .price { color: var(--muted); margin-bottom: 0.4rem; }

.status {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 0.28rem 0.7rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .02em;
}
.status-pending { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.35); }
.status-accepted { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid rgba(52,211,153,.35); }
.status-denied { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid rgba(248,113,113,.35); }

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.req-form label.label { margin-top: 0.2rem; }
.req-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-ok {
  background: rgba(52,211,153,.16);
  border: 1px solid rgba(52,211,153,.4);
  color: #a7f3d0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-deny {
  background: rgba(248,113,113,.14);
  border: 1px solid rgba(248,113,113,.4);
  color: #fecaca;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
@media (max-width: 960px) {
  .req-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .metrics, .cards, .ucp, .ucp-grid { grid-template-columns: 1fr; }
  .ucp-side { position: static; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(7,11,20,0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav .btn { width: 100%; }
}
