:root {
  --bg-1: #050817;
  --bg-2: #07132d;
  --bg-3: #0b1b3c;
  --surface: rgba(17, 25, 52, .76);
  --surface-soft: rgba(12, 20, 42, .66);
  --surface-strong: #10182f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef3ff;
  --text-soft: #aebcdf;
  --text-dim: #8392b9;
  --primary: #2575fc;
  --primary-2: #5a91ff;
  --accent: #6b4eff;
  --success: #24c97b;
  --warning: #ffb547;
  --danger: #ff5c7a;
  --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(107, 78, 255, .28), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(37, 117, 252, .22), transparent 24%),
    radial-gradient(circle at 80% 85%, rgba(12, 76, 180, .20), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 48%, #03142a 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
code, pre { font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 14, 32, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-logo { width: auto; height: 38px; max-width: 180px; object-fit: contain; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #244cff, #69a0ff);
  box-shadow: 0 10px 30px rgba(37, 117, 252, .30);
}
.nav { display: flex; align-items: center; gap: 12px; }
.nav > a:not(.btn) { color: var(--text-soft); padding: 10px 8px; font-weight: 500; }
.nav > a:not(.btn):hover { color: #fff; }
.nav-toggle {
  display: none; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); color: #fff; padding: 10px 12px;
}

main { padding-bottom: 40px; }
.flashes { padding-top: 16px; }
.alert {
  margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent;
  background: rgba(255,255,255,.05);
}
.alert-success { border-color: rgba(36, 201, 123, .34); background: rgba(36, 201, 123, .10); }
.alert-error { border-color: rgba(255, 92, 122, .34); background: rgba(255, 92, 122, .10); }
.alert-info { border-color: rgba(37, 117, 252, .34); background: rgba(37, 117, 252, .10); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 117, 252, .28);
}
.btn-outline { border-color: rgba(255,255,255,.24); background: transparent; color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,.4); }
.btn-secondary, .btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: #fff;
}
.btn-light { background: #fff; color: #111827; }
.btn-danger { background: rgba(255, 92, 122, .14); border-color: rgba(255, 92, 122, .28); color: #ffd7df; }
.btn-danger:hover { background: rgba(255, 92, 122, .20); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: .92rem; }
.btn-block { width: 100%; }

.hero-centered {
  padding: 44px 0 28px;
  text-align: center;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 999px; background: rgba(107, 78, 255, .14);
  color: #cfbeff; border: 1px solid rgba(126, 103, 255, .22);
  font-size: .84rem; font-weight: 700;
}
.hero-title {
  margin: 18px auto 10px; max-width: 920px;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -.04em;
}
.hero-subtitle {
  margin: 0 auto; max-width: 760px; color: var(--text-soft); font-size: 1.06rem;
}
.pricing-grid {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 28px;
}
.plan-card {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 37, 70, .94), rgba(14, 22, 44, .96));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  text-align: left;
}
.plan-card.featured {
  background: linear-gradient(180deg, rgba(25, 43, 73, .96), rgba(14, 22, 44, .98));
  border-color: rgba(119, 150, 255, .28);
}
.plan-badge {
  position: absolute; right: 22px; top: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(111, 94, 255, .20); border: 1px solid rgba(168, 159, 255, .18);
  color: #cfc9ff; font-size: .76rem; font-weight: 800;
}
.plan-name { margin: 0 0 14px; font-size: 1.05rem; color: #f4f7ff; }
.plan-price {
  margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 900; letter-spacing: -.05em;
}
.plan-legend { margin: 0 0 18px; color: var(--text-dim); font-size: 1.05rem; }
.feature-list { list-style: none; margin: 0 0 24px; padding: 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #d9e4ff;
}
.feature-list li::before {
  content: "✓"; color: var(--success); font-weight: 900; line-height: 1;
}
.plan-card .btn + .btn { margin-top: 10px; }
.plan-card .login-link {
  display: block; margin-top: 16px; text-align: center; color: var(--text-soft); font-weight: 500;
}
.plan-card .login-link strong { color: #fff; font-weight: 700; }

.section { padding: 34px 0; }
.section-title { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.section-subtitle { margin: 0; color: var(--text-soft); max-width: 760px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(16px);
}
.card h2, .card h3, .card h4, .card p:first-child { margin-top: 0; }
.grid-2, .grid-3, .grid-4, .dashboard-grid, .doc-grid, .stats-grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--text-soft); }
.small { font-size: .92rem; }
.kicker { color: #b9b2ff; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
.metric { font-size: 2.15rem; font-weight: 900; letter-spacing: -.04em; }
.metric-card { display: grid; gap: 10px; }
.metric-label { color: var(--text-dim); font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; }
.metric-note { color: var(--text-soft); font-size: .92rem; }
.inline-code, .code, pre {
  background: #091120; border: 1px solid rgba(79, 118, 190, .24); color: #dff5ff;
  border-radius: 18px; overflow: auto;
}
.inline-code { padding: 3px 8px; border-radius: 999px; display: inline-block; }
.code, pre { padding: 16px 18px; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); color: var(--text-soft); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  border: 1px solid transparent;
}
.badge-success { background: rgba(36, 201, 123, .12); border-color: rgba(36, 201, 123, .30); color: #8ff2be; }
.badge-warning { background: rgba(255, 181, 71, .12); border-color: rgba(255, 181, 71, .30); color: #ffd48d; }
.badge-danger { background: rgba(255, 92, 122, .12); border-color: rgba(255, 92, 122, .30); color: #ffafbf; }
.badge-neutral { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dce6ff; }

.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 40px 0 30px; }
.auth-card { width: min(760px, 100%); }
.auth-card h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 9px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .92rem; font-weight: 700; color: #e7efff; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 13, 28, .86); color: #fff; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(90, 145, 255, .55); box-shadow: 0 0 0 4px rgba(37, 117, 252, .12); }

.panel-shell { padding: 28px 0 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.panel-subtitle { margin: 8px 0 0; color: var(--text-soft); }
.tab-nav {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px;
}
.tab-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text-soft); font-weight: 700;
}
.tab-link.active { background: rgba(37,117,252,.16); border-color: rgba(90,145,255,.36); color: #fff; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel-grid-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: grid; gap: 18px; }
.data-table-wrap { overflow: auto; }
.table {
  width: 100%; border-collapse: collapse; min-width: 720px;
}
.table th, .table td {
  padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top;
}
.table th { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.table td { color: var(--text-soft); }
.table td strong { color: #fff; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { max-width: 120px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.preview-tile { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.preview-media { display: grid; place-items: center; min-height: 110px; border-radius: 14px; background: rgba(7, 12, 24, .72); border: 1px dashed rgba(255,255,255,.10); overflow: hidden; }
.preview-media img { max-height: 72px; width: auto; object-fit: contain; }
.help-text { color: var(--text-dim); font-size: .88rem; margin-top: -2px; }

.doc-shell {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 30px 0 36px;
}
.doc-sidebar, .doc-main { position: sticky; top: 94px; }
.doc-sidebar { align-self: start; }
.doc-sidebar .card { padding: 18px; }
.doc-nav-title { margin: 0 0 14px; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.doc-nav a {
  display: block; padding: 10px 12px; border-radius: 12px; color: var(--text-soft); font-weight: 600;
}
.doc-nav a:hover, .doc-nav a.active { background: rgba(255,255,255,.05); color: #fff; }
.doc-main { display: grid; gap: 18px; }
.doc-section { scroll-margin-top: 100px; }
.doc-section h2 { margin-bottom: 10px; }
.endpoint-card { padding: 0; overflow: hidden; }
.endpoint-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
}
.http-method {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 32px;
  border-radius: 999px; background: rgba(36, 201, 123, .16); border: 1px solid rgba(36, 201, 123, .28); color: #95f4c2; font-size: .82rem; font-weight: 900;
}
.endpoint-url { font-weight: 800; letter-spacing: -.02em; word-break: break-all; }
.endpoint-body { padding: 20px; display: grid; gap: 16px; }
.doc-params { display: grid; gap: 10px; }
.param-row {
  display: grid; grid-template-columns: 1.2fr .7fr .7fr 2fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.param-row > div:first-child { color: #fff; font-weight: 700; }
.doc-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.endpoint-links { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-note { color: var(--text-dim); font-size: .88rem; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08); background: rgba(6, 12, 28, .66);
}
.footer-grid { padding: 28px 0 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid p, .footer-grid a, .footer-grid span { color: var(--text-soft); display: block; margin: 7px 0; }

.center { text-align: center; }
.hidden-mobile { display: block; }

@media (max-width: 1180px) {
  .doc-shell { grid-template-columns: 240px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .pricing-grid, .grid-2, .grid-3, .grid-4, .stats-grid, .panel-grid, .panel-grid-equal, .footer-grid, .doc-shell, .doc-meta-grid, .preview-grid, .showcase-grid { grid-template-columns: 1fr; }
  .doc-sidebar, .doc-main { position: relative; top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .param-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 74px; right: 16px; width: min(320px, calc(100% - 32px));
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(9, 14, 30, .98);
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .plan-price { font-size: 2.3rem; }
  .panel-head { display: block; }
  .table { min-width: 640px; }
}


.showcase-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.showcase-widget { min-height: 280px; }
.showcase-widget api-sports-widget { display: block; width: 100%; }
.showcase-code { margin-top: 14px; color: var(--text-soft); font-size: .9rem; word-break: break-all; }
.widget-frame { border-radius: 18px; overflow: hidden; }
.demo-list { display: grid; gap: 10px; }
.demo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.demo-item strong { color: #fff; font-size: .94rem; }
.demo-item span { color: var(--text-soft); font-size: .88rem; text-align: right; }
.demo-empty {
  padding: 16px; border-radius: 14px; color: var(--text-soft);
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.10);
}

.odds-widget-list { display: grid; gap: 14px; margin-top: 16px; }
.odds-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.odds-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.odds-match { color: #fff; font-size: 1rem; font-weight: 700; }
.odds-meta { color: var(--text-soft); font-size: .88rem; margin-top: 4px; }
.odds-badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(118,188,33,.30);
  background: rgba(118,188,33,.12);
  color: #d9ffb0;
  font-size: .78rem;
  white-space: nowrap;
}
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.odd-box {
  padding: 12px 10px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.odd-box small {
  display: block;
  color: var(--text-soft);
  font-size: .78rem;
  margin-bottom: 6px;
}
.odd-box strong {
  color: #fff;
  font-size: 1.15rem;
}
.odds-missing {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.10);
  color: var(--text-soft);
}
@media (max-width: 720px) {
  .odds-head { flex-direction: column; align-items: flex-start; }
}


.widget-demo-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.widget-panel { min-height: 220px; }
.widget-panel-main { min-height: 640px; }
.widget-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 16px; }
.widget-side-list, .widget-games-list { display:grid; gap: 12px; margin-top: 14px; }
.widget-side-item, .widget-game-card {
  width: 100%; text-align:left; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: #fff; border-radius: 18px; padding: 14px; cursor: pointer; transition: .2s ease;
}
.widget-side-item:hover, .widget-game-card:hover { border-color: rgba(90,145,255,.38); transform: translateY(-1px); }
.widget-side-item.active, .widget-game-card.active { border-color: rgba(90,145,255,.52); box-shadow: 0 0 0 1px rgba(90,145,255,.18) inset; }
.widget-side-item.static { cursor: default; }
.widget-side-item.static:hover { transform: none; }
.widget-side-item span, .widget-game-card span { display:block; }
.widget-side-item strong, .widget-game-card strong { color:#fff; }
.widget-side-item small { display:block; color: var(--text-soft); margin-top: 4px; }
.widget-pill {
  display:inline-flex; align-items:center; justify-content:center; min-height: 30px; padding: 0 10px;
  border-radius: 999px; background: rgba(90,145,255,.14); border:1px solid rgba(90,145,255,.28);
  color:#d8e4ff; font-size:.76rem; font-weight:800;
}
.widget-game-card { display:grid; gap: 12px; }
.widget-game-top { display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; }
.widget-game-league { color:#fff; font-weight:700; }
.widget-game-meta { color: var(--text-soft); font-size: .86rem; margin-top: 4px; }
.widget-teams { display:grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items:center; }
.widget-teams span { font-weight:700; }
.widget-teams span:last-child { text-align:right; }
.widget-teams strong { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.widget-odd-row { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.widget-detail-card { display:grid; gap: 16px; margin-top: 14px; }
.widget-detail-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.widget-detail-meta { color: var(--text-soft); }
.widget-detail-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.widget-detail-grid div { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.widget-detail-grid span { display:block; color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.widget-detail-grid strong { color:#fff; }
@media (max-width: 1080px) {
  .widget-demo-shell { grid-template-columns: 1fr; }
  .widget-panel-main { min-height: 0; }
}
@media (max-width: 640px) {
  .widget-detail-grid { grid-template-columns: 1fr; }
  .widget-odd-row { grid-template-columns: 1fr; }
  .widget-game-top { flex-direction: column; }
}
