/* ============================================================
   1xbet KR — Unique dark neon theme (built from scratch)
   Style: sports-arena vibe, glow accents, glass panels
   ============================================================ */

:root {
  --bg-0: #05070d;
  --bg-1: #0b1020;
  --bg-2: #111a30;
  --bg-3: #1a2547;
  --line: rgba(120, 160, 220, 0.14);
  --line-2: rgba(120, 160, 220, 0.28);
  --text: #e6edf7;
  --text-dim: #8ea0bd;
  --text-mute: #6a7a95;
  --accent: #16f0a3;         /* neon green */
  --accent-2: #3aa4ff;       /* neon blue  */
  --accent-3: #ff3d68;       /* neon red   */
  --gold: #ffd043;
  --gold-deep: #b0791d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); }

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(58, 164, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(22, 240, 163, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 61, 104, 0.10), transparent 60%),
    linear-gradient(180deg, #05070d 0%, #06091a 50%, #05070d 100%);
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px rgba(22, 240, 163, 0.55);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; color: #051021; font-size: 15px;
}
.brand span.brand-x { color: var(--accent); }

.nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(120, 160, 220, 0.08); }
.nav a.is-active { color: var(--accent); background: rgba(22, 240, 163, 0.10); }

.cta-top {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #051021;
  background: linear-gradient(135deg, var(--accent) 0%, #6fffcf 100%);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(22, 240, 163, 0.35), inset 0 0 0 1px rgba(255,255,255,0.35);
  transition: transform .12s;
  white-space: nowrap;
}
.cta-top:hover { transform: translateY(-1px); }

/* ===== Container / wrappers ===== */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
}
.layout .content { min-width: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 240px at 12% 0%, rgba(22, 240, 163, 0.20), transparent 60%),
    radial-gradient(700px 300px at 90% 100%, rgba(58, 164, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(17, 26, 48, 0.92), rgba(11, 16, 32, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}
.hero::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(22,240,163,0.6), rgba(58,164,255,0.3) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(22, 240, 163, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #a6b6d6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #6fffcf 100%);
  color: #051021;
  box-shadow: 0 12px 32px rgba(22, 240, 163, 0.35), inset 0 0 0 1px rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(22, 240, 163, 0.5); }
.btn-ghost {
  background: rgba(120, 160, 220, 0.06);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(120, 160, 220, 0.12); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #ffb01a 100%);
  color: #3a2500;
  box-shadow: 0 12px 32px rgba(255, 208, 67, 0.35), inset 0 0 0 1px rgba(255,255,255,0.4);
}
.btn-gold:hover { transform: translateY(-2px); }

/* Promo chip */
.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 208, 67, 0.4);
  background: rgba(255, 208, 67, 0.08);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}
.promo-chip code {
  background: linear-gradient(135deg, var(--gold) 0%, #ffb01a 100%);
  color: #3a2500;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 15px;
}

/* Hero stat bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed var(--line-2);
}
.hero-stats .st .num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.hero-stats .st .lbl {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ===== Sidebar TOC ===== */
.side {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(10px);
}
.side h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.side ul { list-style: none; }
.side li { margin-bottom: 4px; }
.side a {
  display: block;
  padding: 8px 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.side a:hover { color: var(--text); background: rgba(120,160,220,0.06); border-left-color: var(--accent-2); }
.side .side-cta {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22,240,163,0.12), rgba(58,164,255,0.10));
  border: 1px solid var(--line-2);
  text-align: center;
}
.side .side-cta .code {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--gold);
  color: #3a2500;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 15px;
  margin: 6px 0 10px;
}
.side .side-cta .cta {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #6fffcf);
  color: #051021;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

/* ===== Content typography ===== */
.content h2 {
  position: relative;
  font-size: 30px;
  font-weight: 800;
  margin: 60px 0 18px;
  padding-left: 20px;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.content h2::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(22,240,163,0.55);
}
.content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 12px;
  color: #d5deee;
}
.content p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 16px;
}
.content p strong, .content li strong { color: var(--text); font-weight: 700; }
.content ul, .content ol { margin: 12px 0 20px 24px; color: var(--text-dim); }
.content li { margin-bottom: 8px; font-size: 15.5px; }

.content code {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  background: rgba(255, 208, 67, 0.14);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid rgba(255, 208, 67, 0.25);
}

.content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 44px 0;
}

/* Cards / Panels */
.panel {
  background: linear-gradient(180deg, rgba(17,26,48,0.7), rgba(11,16,32,0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 18px 0;
}

.panel-accent { border-left: 3px solid var(--accent); }
.panel-blue   { border-left: 3px solid var(--accent-2); }
.panel-red    { border-left: 3px solid var(--accent-3); }
.panel-gold   { border-left: 3px solid var(--gold); }

.panel h4 { color: #fff; font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.panel p { margin-bottom: 6px; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}
.f-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,26,48,0.55), rgba(11,16,32,0.55));
  transition: transform .15s, border-color .15s;
}
.f-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.f-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: rgba(22, 240, 163, 0.12);
  border: 1px solid rgba(22, 240, 163, 0.25);
}
.f-card.blue .ico { background: rgba(58,164,255,0.12); border-color: rgba(58,164,255,0.3); }
.f-card.gold .ico { background: rgba(255,208,67,0.14); border-color: rgba(255,208,67,0.35); }
.f-card.red  .ico { background: rgba(255,61,104,0.12); border-color: rgba(255,61,104,0.3); }
.f-card.purple .ico { background: rgba(160, 100, 255, 0.12); border-color: rgba(160,100,255,0.3); }
.f-card h4 { color: #fff; font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.f-card p { font-size: 14px; margin: 0; }
.f-card .cluster-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(120,160,220,0.08);
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.f-card a.f-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.f-card a.f-link:hover { text-decoration: underline; }

/* Timeline / steps */
.steps { margin: 24px 0; position: relative; padding-left: 28px; }
.steps::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.4;
}
.step-item {
  position: relative;
  padding: 14px 18px 14px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17,26,48,0.5);
}
.step-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(22,240,163,0.7), 0 0 0 4px rgba(22,240,163,0.15);
}
.step-item .step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.step-item .step-title { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.step-item .step-desc { color: var(--text-dim); font-size: 14.5px; }

/* Table */
.tbl-wrap { overflow-x: auto; margin: 20px 0 26px; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  min-width: 520px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11,16,32,0.5);
}
thead th {
  background: linear-gradient(135deg, rgba(22,240,163,0.14), rgba(58,164,255,0.12));
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  letter-spacing: 0.4px;
}
tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
tbody tr:hover td { background: rgba(120,160,220,0.05); color: var(--text); }
tbody td strong { color: var(--text); }

/* Callouts */
.callout {
  padding: 18px 22px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(22,240,163,0.08), rgba(22,240,163,0.02));
}
.callout.warn { border-left-color: var(--accent-3); background: linear-gradient(90deg, rgba(255,61,104,0.10), rgba(255,61,104,0.02)); }
.callout.info { border-left-color: var(--accent-2); background: linear-gradient(90deg, rgba(58,164,255,0.10), rgba(58,164,255,0.02)); }
.callout.gold { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255,208,67,0.10), rgba(255,208,67,0.02)); }
.callout p { color: var(--text); margin: 0; }
.callout strong { color: #fff; }

/* FAQ (details) */
.faq { margin: 20px 0; }
.faq details {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11,16,32,0.55);
  overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text);
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  transition: transform .15s;
}
.faq details[open] summary::after { content: '−'; }
.faq .faq-body {
  padding: 4px 20px 18px;
  color: var(--text-dim);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

/* Big promo band */
.promo-band {
  position: relative;
  margin: 60px 0 40px;
  padding: 44px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,208,67,0.35);
  background:
    radial-gradient(500px 220px at 20% 0%, rgba(255,208,67,0.22), transparent 60%),
    linear-gradient(135deg, rgba(58,25,0,0.4), rgba(20,10,0,0.7));
  overflow: hidden;
  text-align: center;
}
.promo-band::before {
  content: '🎁';
  position: absolute; right: 24px; top: -30px;
  font-size: 200px; opacity: 0.08;
  pointer-events: none;
}
.promo-band .kick {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}
.promo-band h3 {
  font-size: 30px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.promo-band .code-big {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #ffb01a);
  color: #3a2500;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 900;
  letter-spacing: 6px;
  font-size: 30px;
  margin: 16px 0 20px;
  box-shadow: 0 12px 30px rgba(255,208,67,0.4), inset 0 0 0 2px rgba(255,255,255,0.45);
}
.promo-band .desc {
  color: #f0d9a0;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 20px;
}

/* Related pages */
.related {
  margin: 40px 0 0;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,26,48,0.55), rgba(11,16,32,0.55));
}
.related h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 800;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.related-grid a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11,16,32,0.65);
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .15s;
}
.related-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}
.related-grid a .arrow { float: right; color: var(--accent); font-weight: 800; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 24px 30px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  background: rgba(5,7,13,0.6);
}
.foot .fdisc { max-width: 800px; margin: 0 auto 12px; line-height: 1.7; }
.foot .fnav a { color: var(--text-dim); margin: 0 10px; text-decoration: none; font-size: 13px; }
.foot .fnav a:hover { color: var(--accent); }
.foot .fbrand { color: var(--text); font-weight: 800; margin-bottom: 8px; }
.foot .age {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-3);
  color: var(--accent-3);
  font-weight: 900;
  line-height: 30px;
  margin: 8px 0 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 720px) {
  .wrap { padding: 24px 16px 40px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .content h2 { font-size: 22px; margin-top: 40px; }
  .content h3 { font-size: 17px; }
  .promo-band { padding: 28px 20px; }
  .promo-band h3 { font-size: 22px; }
  .promo-band .code-big { font-size: 22px; letter-spacing: 4px; padding: 12px 20px; }
  .topbar-inner { padding: 12px 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .cta-top { padding: 8px 14px; font-size: 13px; }
}
