/* ==========================================================
   1xBet Egypt — affiliate guide
   Palette taken from the 1xBet header (dark navy + blue + green)
   ========================================================== */
:root {
  --bg: #0c2440;            /* page background */
  --bg-deep: #081a2f;       /* footer / deepest */
  --top: #1a4b77;           /* top header bar */
  --nav: #133a5f;           /* secondary nav bar */
  --nav-2: #0f2f4f;
  --surface: #133556;       /* cards */
  --surface-2: #19426a;     /* raised / hover */
  --line: #24527f;          /* borders */
  --blue: #2c6aa6;          /* "تسجيل الدخول" / icon buttons */
  --blue-hover: #3479bb;
  --green: #84b431;         /* "التسجيل" */
  --green-hover: #93c63b;
  --green-text: #8fc93a;    /* $ icon / accents */
  --text: #ffffff;
  --muted: #a8bfd6;
  --muted-2: #7f9bb8;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* ---------- Buttons (exact look of the header buttons) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 700; color: #fff;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-hover); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline:hover { background: var(--surface-2); }
.btn-lg { height: 52px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--blue); color: #fff;
  transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--blue-hover); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.is-money { color: var(--green-text); font-size: 22px; font-weight: 800; }
.icon-btn .badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--top);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.topbar { background: var(--top); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  font-family: "Arial Black", "Cairo", sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -.5px;
  direction: ltr; color: #fff;
}
.logo-mark b { color: var(--green-text); }
.logo-sub { font-size: 12px; color: var(--muted); line-height: 1.2; border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.burger { display: none; background: var(--blue); }

/* Secondary navigation bar */
.navbar {
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.navbar .container { display: flex; align-items: center; height: 50px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.navbar .container::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px;
  font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-link:hover { background: rgba(255, 255, 255, .06); }
.nav-link.is-active { border-bottom-color: var(--green); background: rgba(255, 255, 255, .05); }
.nav-link .chev { width: 12px; height: 12px; opacity: .8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(132, 180, 49, .18), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(44, 106, 166, .45), transparent 60%),
    linear-gradient(180deg, #123659 0%, var(--bg) 100%);
  padding: 56px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4.4vw, 46px); }
.hero h1 span { color: var(--green-text); }
.hero p.lead { font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--green-text); }

.page-hero { padding: 40px 0 44px; }
.breadcrumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.breadcrumbs a:hover { color: #fff; }

/* Bonus card in hero */
.bonus-card {
  position: relative;
  background: linear-gradient(160deg, #1d4e7c 0%, #133556 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); text-align: center;
}
.bonus-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: rgba(132, 180, 49, .16); color: var(--green-text); font-size: 13px; font-weight: 700;
}
.bonus-card .amount { font-size: clamp(38px, 5vw, 54px); font-weight: 900; line-height: 1.1; margin: 14px 0 4px; }
.bonus-card .amount small { font-size: .45em; color: var(--muted); font-weight: 700; }
.bonus-card .sub { color: var(--muted); margin-bottom: 18px; }

.promo {
  display: flex; align-items: stretch; margin-bottom: 14px;
  border: 1px dashed var(--green); border-radius: var(--radius); overflow: hidden;
}
.promo-label { padding: 0 12px; display: flex; align-items: center; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, .15); }
.promo-code { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; letter-spacing: 2px; direction: ltr; }
.promo-copy { border: 0; border-radius: 0; height: 46px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #0e2a48; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.section-head p { margin: 6px 0 0; }
.eyebrow { color: var(--green-text); font-size: 13px; font-weight: 800; letter-spacing: .5px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); background: var(--surface-2); border-color: #2f659a; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
}
.card .ico svg { width: 26px; height: 26px; }
.card .ico.green { background: var(--green); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green-text); font-weight: 700; font-size: 14px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 900; color: #fff; }
.stat span { color: var(--muted); font-size: 14px; }

/* Game tiles */
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .15s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5, 18, 33, .85)); }
.tile > * { position: relative; }
.tile .emoji { position: absolute; top: 14px; inset-inline-start: 16px; font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.tile b { font-size: 17px; }
.tile small { color: var(--muted); }
.tile .live { position: absolute; top: 14px; inset-inline-end: 14px; background: #e23c3c; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.t1 { background: linear-gradient(135deg, #2c6aa6, #0f2f4f); }
.t2 { background: linear-gradient(135deg, #84b431, #1a4b77); }
.t3 { background: linear-gradient(135deg, #8a3fd1, #133556); }
.t4 { background: linear-gradient(135deg, #e0752d, #133556); }
.t5 { background: linear-gradient(135deg, #d3354a, #133556); }
.t6 { background: linear-gradient(135deg, #1fa6a0, #133556); }

/* Match rows (sports) */
.match {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.match + .match { margin-top: 8px; }
.match .league { font-size: 12px; color: var(--muted-2); }
.match .teams { font-weight: 700; }
.odds { display: flex; gap: 6px; }
.odd {
  min-width: 62px; padding: 6px 10px; border-radius: var(--radius); text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.3;
}
.odd small { display: block; color: var(--muted-2); font-size: 11px; }
.odd b { color: #fff; }
.odd:hover { background: var(--blue); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 16px; inset-inline-start: 22px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.step h3 { font-size: 17px; }

/* Lists & tables */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; color: var(--muted); }
.check li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check li b { color: #fff; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: var(--top); font-weight: 800; }
td { color: var(--muted); }
td:first-child { color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: rgba(132, 180, 49, .16); color: var(--green-text); }

/* Article content */
.content { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.content > * { min-width: 0; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
.note {
  border-inline-start: 4px solid var(--green); background: rgba(132, 180, 49, .08);
  padding: 14px 18px; border-radius: var(--radius); margin: 1.4em 0; color: var(--muted);
}
.note b { color: #fff; }
.sidebar { position: sticky; top: 130px; display: grid; gap: 16px; }
.toc a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: #fff; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green-text); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(100deg, var(--top) 0%, #12365a 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; }

/* Forms (login / registration mock) */
.form-card { max-width: 460px; margin-inline: auto; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--radius); margin-bottom: 18px; }
.tabs button { height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tabs button.is-active { background: var(--blue); color: #fff; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: #fff; font: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue-hover); outline-offset: 0; }

/* App page phone mock */
.phone {
  width: 260px; height: 520px; margin-inline: auto; border-radius: 36px; padding: 12px;
  background: #050f1c; box-shadow: var(--shadow), inset 0 0 0 2px #24527f;
}
.phone-screen { height: 100%; border-radius: 26px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone-top { background: var(--top); padding: 14px; display: flex; justify-content: space-between; align-items: center; }
.phone-top .logo-mark { font-size: 18px; }
.phone-nav { background: var(--nav); padding: 8px 14px; font-size: 12px; font-weight: 700; display: flex; gap: 14px; }
.phone-body { padding: 10px; display: grid; gap: 8px; }
.phone-body .match { padding: 10px; grid-template-columns: 1fr; gap: 6px; font-size: 12px; }
.phone-body .odd { min-width: 0; flex: 1; padding: 4px; }

.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px;
  background: #050f1c; border: 1px solid var(--line); border-radius: 10px;
}
.store-btn svg { width: 28px; height: 28px; }
.store-btn small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.store-btn b { display: block; font-size: 16px; line-height: 1.2; }
.store-btn:hover { background: var(--surface-2); }

/* Payment logos */
.pay { display: flex; align-items: center; gap: 12px; }
.pay-logo { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; flex-shrink: 0; direction: ltr; }

/* ---------- 1xGames ---------- */
.game-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: #2f659a; background: var(--surface-2); }
.game-thumb { aspect-ratio: 16 / 10; padding: 10px; display: flex; align-items: center; justify-content: center; }
.game-thumb svg, .game-visual svg { width: 100%; height: 100%; }
.game-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.game-meta b { display: block; font-size: 18px; direction: ltr; text-align: right; }
.game-meta small { color: var(--muted-2); font-size: 13px; }
.game-card p { padding: 0 16px 16px; margin: 0; font-size: 14px; }

.game-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow);
}
.game-visual { aspect-ratio: 16 / 11; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.game-thumb, .game-visual { background-blend-mode: normal; }
.game-thumb.t1, .game-visual.t1, .game-thumb.t2, .game-visual.t2, .game-thumb.t3, .game-visual.t3,
.game-thumb.t4, .game-visual.t4, .game-thumb.t5, .game-visual.t5, .game-thumb.t6, .game-visual.t6 {
  background-image: radial-gradient(circle at 80% 0%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, #0f2f4f, #081a2f);
  border-bottom: 3px solid var(--accent, var(--green));
}
.t1 { --accent: #2c6aa6; } .t2 { --accent: #84b431; } .t3 { --accent: #8a3fd1; }
.t4 { --accent: #e0752d; } .t5 { --accent: #e23c3c; } .t6 { --accent: #1fa6a0; }
.game-visual { border: 1px solid var(--line); border-bottom-width: 3px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.facts div { background: var(--bg); border-radius: var(--radius); padding: 10px 12px; }
.facts small { display: block; font-size: 12px; color: var(--muted-2); }
.facts b { font-size: 15px; }

.prose .steps { grid-template-columns: 1fr 1fr; }
.prose table a { color: #fff; text-decoration: none; }
table td a { color: #fff; }
table td a:hover { color: var(--green-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding: 48px 0 24px; margin-top: 0; border-top: 1px solid #12304f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.site-footer h4 { font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); font-size: 14px; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #12304f; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center;
  font-size: 13px; color: var(--muted-2);
}
.age { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #e23c3c; color: #fff; font-weight: 900; font-size: 13px; }
.disclaimer { font-size: 13px; color: var(--muted-2); }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s ease; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 290px; max-width: 85%;
  background: var(--nav-2); padding: 16px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel .nav-link { display: flex; height: 48px; border-bottom: 1px solid var(--line); border-radius: 0; }
.drawer-panel .nav-link.is-active { border-bottom-color: var(--line); color: var(--green-text); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .content { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .header-actions .icon-btn:not(.burger), .logo-sub { display: none; }
  .burger { display: inline-flex; }
  .navbar { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .steps, .prose .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .btn { height: 36px; padding: 0 12px; font-size: 14px; }
  .topbar .btn-blue { display: none; }
  .section { padding: 40px 0; }
  .match { grid-template-columns: 1fr; }
  .odd { flex: 1; min-width: 0; }
  .section-head { flex-direction: column; align-items: stretch; }
  .cta-band { padding: 24px; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
    padding: 10px 16px; background: var(--top); box-shadow: 0 -6px 18px rgba(0,0,0,.3);
  }
  .mobile-cta .btn { flex: 1; }
  body { padding-bottom: 64px; }
}

/* ---------- App download page ---------- */
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.eyebrow svg { width: 15px; height: 15px; vertical-align: -2px; }
.hero-sub { font-size: 18px; font-weight: 700; color: #fff; margin-top: -4px; }
.hero-warn { font-size: 13px; color: var(--muted-2); margin: 14px 0 0; }
.hero .lead + p, .hero .lead + p + p { max-width: 560px; }

.phone-dl {
  position: relative; display: flex; align-items: center; gap: 8px; overflow: hidden;
  padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; direction: ltr;
}
.phone-dl svg { width: 18px; height: 18px; color: var(--green-text); }
.phone-dl i { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--green); }

.app-card h3 { margin-bottom: 10px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.app-meta span { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); }
.app-card .store-btns { display: grid; gap: 8px; }
.store-btn { color: #fff; }
.store-btn svg { color: var(--green-text); }
.store-btn:last-child svg { color: #fff; }

ol.num { list-style: none; counter-reset: n; padding: 0; margin: 0 0 1em; }
ol.num li { counter-increment: n; position: relative; padding-inline-start: 38px; margin-bottom: 10px; color: var(--muted); min-height: 26px; }
ol.num li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.prose .steps { margin-bottom: 1em; }
.prose .step p { margin: 0; }
.inline-cta { margin: 1.4em 0; }
.prose .grid { margin: 1.2em 0 1.6em; }
.prose .card h3 { margin-top: 0; font-size: 17px; }
.prose .card p { font-size: 15px; margin-bottom: .7em; }
.prose .card .check li, .prose .card ol.num li { font-size: 15px; }
.feature .ico, .prose .card .ico { width: 42px; height: 42px; margin-bottom: 12px; }
.problem { border-inline-start: 3px solid #e0752d; }
.spec td:first-child { width: 45%; }
.note.warn { border-inline-start-color: #e23c3c; background: rgba(226, 60, 60, .08); margin-top: 20px; font-size: 14px; }
.download-band .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .btn-lg { white-space: normal; height: auto; min-height: 52px; padding: 10px 18px; text-align: center; line-height: 1.4; }
  .hero-cta .btn, .inline-cta .btn, .download-band .btn { width: 100%; }
}
.cta-band > * { min-width: 0; max-width: 100%; }

/* ---------- Markdown-driven pages ---------- */
.prose-sec + .prose-sec { margin-top: 8px; }
.prose h4 { font-size: 17px; margin: 1.2em 0 .5em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0 1.4em; }
.prose a.btn { color: #fff; text-decoration: none; }
.feature-grid .feature h4 { margin: 0 0 6px; }
.feature-grid .feature p { margin: 0; font-size: 15px; }
.step h4 { margin: 0 0 6px; font-size: 16px; }
.faq-a { padding: 0 18px 16px; }
.faq-a p { padding: 0; margin: 0 0 .6em; }
.faq-a a { color: var(--green-text); }
.figure { margin: 1.4em 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.ph-box {
  aspect-ratio: 16 / 9; border: 2px dashed #2f659a; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, rgba(44,106,166,.08) 0 12px, transparent 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center; color: var(--muted);
}
.ph-box svg { width: 40px; height: 40px; color: #2f659a; }
.ph-box b { color: #fff; font-size: 15px; }
.ph-box small { font-size: 12px; color: var(--muted-2); max-width: 520px; }
.hero-visual { min-width: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic .game-thumb { border-radius: 12px; border: 1px solid var(--line); }
.mosaic .game-thumb:nth-child(2) { transform: translateY(18px); }
.mosaic .game-thumb:nth-child(4) { transform: translateY(18px); }
.account-visual svg, .game-panel svg { width: 100%; }
.account-visual svg { max-width: 380px; display: block; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.game-tag { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; }
.game-tag b { font-size: 20px; }
.game-tag span { color: var(--muted-2); font-size: 14px; }
.side-cta { display: grid; gap: 8px; }
.side-cta h3 { margin-bottom: 4px; }
.side-cta .btn { height: auto; min-height: 44px; white-space: normal; text-align: center; line-height: 1.4; padding: 8px 14px; }
.table-wrap.spec table { min-width: 0; }
.hero p a, .cta-band p a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { th, td { padding: 11px 12px; font-size: 14px; } }
.prose-sec + .prose-sec { margin-top: 2.4em; padding-top: 2em; border-top: 1px solid rgba(36, 82, 127, .5); }
.prose .table-wrap + p, .prose .table-wrap + .note { margin-top: 1em; }

/* ---------- href-less download / referral buttons ---------- */
button.btn, button.store-btn, button.link-btn { font: inherit; cursor: pointer; }
button.store-btn { color: #fff; text-align: start; }
.hero .store-btns { margin-top: 14px; }
.cta-stack .store-btns { display: grid; gap: 10px; }
.link-btn {
  display: inline; padding: 0; border: 0; background: none;
  color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 700;
}
.link-btn:hover { color: #fff; }
.app-card .store-btn { width: 100%; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- real images ---------- */
.figure { text-align: center; }
.figure img { width: auto; max-width: 100%; height: auto; display: inline-block; vertical-align: top; }
.figure.portrait img { max-height: 620px; max-width: min(100%, 360px); }
.hero-img { text-align: center; }
.hero-img img { width: auto; max-width: 100%; max-height: 540px; height: auto; }
@media (max-width: 820px) { .hero-img img { max-height: 440px; } }

/* ---------- 404 ---------- */
.error-hero { padding: 72px 0 64px; }
.error-box { max-width: 720px; margin-inline: auto; text-align: center; }
.error-box .hero-cta { justify-content: center; }
.error-box .lead { margin-inline: auto; }
.error-code {
  font-size: clamp(96px, 18vw, 180px); font-weight: 900; line-height: 1; letter-spacing: 4px; direction: ltr;
  background: linear-gradient(180deg, #fff 30%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}

/* ---------- table of contents: open on desktop, collapsible on top of the article on mobile ---------- */
.toc summary { list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary h3 { margin: 0 0 8px; }
@media (min-width: 1025px) { .toc summary { pointer-events: none; } }
@media (max-width: 1024px) {
  .content .sidebar { order: -1; gap: 12px; }
  .sidebar .side-cta { display: none; }
  .toc { padding: 0; }
  .toc summary { cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
  .toc summary h3 { margin: 0; font-size: 17px; }
  .toc summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green-text); transition: transform .2s ease; }
  .toc[open] summary::after { transform: rotate(45deg); }
  .toc nav { padding: 0 18px 10px; }
  .app-card { padding: 16px 18px; }
}

/* center images (img is display:block globally, so text-align alone does not center them) */
.hero-img img, .figure img { display: block; margin-inline: auto; }
.hero-visual .phone, .hero-visual .account-visual svg, .hero-visual .casino-visual svg { margin-inline: auto; }
