/* md88malaysia.bet — .x8-* shell.
   Light long-scroll landing: a document, not a casino floor. Ink #10243F on #F7F9FC, warm gold
   #D8A13A for anything that is money or a call to action, deep teal #0E6E6B for section marks and
   ticks. Crisp 8px radii, one soft card shadow, real whitespace.
   Scale: 4 / 8 / 14 / 22 / 34 / 54 / 86. Nothing touches — every block carries its own bottom gap. */

:root {
  --pg: #f7f9fc;
  --cd: #ffffff;
  --hl: #dce3ec;
  --ik: #10243f;
  --mk: #5c6f86;
  --ac: #d8a13a;
  --ac2: #b9841f;
  --tl: #0e6e6b;
  --tl2: #e6f2f1;
  --sh: 0 2px 10px rgba(16, 36, 63, .07);
  --sh2: 0 10px 34px rgba(16, 36, 63, .13);
  --r: 8px;
  --w: 1140px;
  --bar: 58px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--pg);
  color: var(--ik);
  font: 400 16.5px/1.68 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 86px;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--tl); text-decoration: none; }

a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.22; font-weight: 700; letter-spacing: -.012em; }

h1 { font-size: clamp(29px, 4.4vw, 46px); }

h2 { font-size: clamp(23px, 2.9vw, 31px); }

h3 { font-size: 19px; }

p { margin: 0 0 14px; }

.w { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- buttons */
.x8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}

.x8-btn:hover { text-decoration: none; transform: translateY(-1px); }

.x8-btn.a { background: var(--ac); color: #231703; box-shadow: 0 3px 0 var(--ac2); }

.x8-btn.a:hover { box-shadow: 0 5px 0 var(--ac2); }

.x8-btn.o { background: #fff; color: var(--ik); border-color: var(--hl); box-shadow: var(--sh); }

.x8-btn.t { background: var(--tl); color: #eafaf9; }

.x8-btn.lg { min-height: 54px; padding: 0 30px; font-size: 16.5px; }

/* ---------------------------------------------------------------- header */
.x8-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 252, .94);
  backdrop-filter: saturate(150%) blur(9px);
  border-bottom: 1px solid var(--hl);
}

.x8-head .w { display: flex; align-items: center; gap: 18px; min-height: 66px; }

.x8-logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ik); }

.x8-logo:hover { text-decoration: none; }

.x8-logo svg { width: 36px; height: 36px; flex: 0 0 auto; }

.x8-logo .wm { display: flex; flex-direction: column; line-height: 1.04; min-width: 0; }

.x8-logo .wm b { font-size: 21px; letter-spacing: .035em; }

.x8-logo .wm small { font-size: 9.5px; letter-spacing: .22em; color: var(--mk); font-weight: 600; }

.x8-pills { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }

.x8-pills a {
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk);
}

.x8-pills a:hover { background: var(--tl2); color: var(--tl); text-decoration: none; }

.x8-lang { display: flex; gap: 2px; border: 1px solid var(--hl); border-radius: 99px; padding: 3px; background: #fff; }

.x8-lang a { padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--mk);  white-space: nowrap; }

.x8-lang a.on { background: var(--ik); color: #fff; }

.x8-lang a:hover { text-decoration: none; }

.x8-burger {
  display: none;
  background: #fff;
  border: 1px solid var(--hl);
  border-radius: var(--r);
  width: 44px;
  height: 44px;
  font-size: 19px;
  color: var(--ik);
  cursor: pointer;
}

.x8-drawer { display: none; flex-wrap: wrap; gap: 7px; padding: 0 22px 16px; }

.x8-drawer a {
  padding: 9px 14px;
  border: 1px solid var(--hl);
  border-radius: 99px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ik);
}

.x8-drawer.on { display: flex; }

/* ---------------------------------------------------------------- hero */
.x8-hero { padding: 46px 0 34px; }

.x8-hero.big { padding: 54px 0 38px; }

.x8-hero .w { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }

.x8-hero .bd { min-width: 0; }

.x8-hero .eb {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--tl2);
  color: var(--tl);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.x8-hero h1 { margin-bottom: 15px; }

.x8-hero .lead { font-size: 17.5px; color: var(--mk); margin-bottom: 22px; max-width: 54ch; }

.x8-hero .act { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.x8-hero .chips { display: flex; flex-wrap: wrap; gap: 9px; }

.x8-hero .chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 13px;
  border: 1px solid var(--hl);
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--mk);
}

.x8-hero .chips i { font-style: normal; color: var(--tl); font-weight: 700; }

.x8-hero > .w > img {
  min-width: 0;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--sh2);
  border: 6px solid #fff;
}

/* ---------------------------------------------------------------- generic section */
.x8-sec { padding: 0 0 46px; }

.x8-sec.pad { padding-top: 46px; }

.x8-sec .sh { margin-bottom: 22px; max-width: 70ch; }

.x8-sec .sh h2 { margin-bottom: 9px; }

.x8-sec .sh p { color: var(--mk); margin: 0; }

.x8-sec .note { display: block; margin-top: 14px; color: var(--mk); font-size: 13.5px; }

/* ---------------------------------------------------------------- offer strip */
.x8-offers {
  border: 1px solid var(--hl);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh);
  padding: 26px;
}

.x8-offers .hd { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }

.x8-offers .hd h2 { margin: 0; flex: 1 1 260px; min-width: 0; }

.x8-offers .gr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.x8-offers .of { padding: 18px; border-radius: var(--r); background: var(--pg); border: 1px solid var(--hl); }

.x8-offers .of b { display: block; font-size: 28px; color: var(--ac2); line-height: 1.05; }

.x8-offers .of em { display: block; margin: 7px 0 6px; font-style: normal; font-weight: 600; font-size: 14.5px; }

.x8-offers .of small { color: var(--mk); font-size: 13px; }

/* ---------------------------------------------------------------- stat strip */
.x8-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hl);
  border: 1px solid var(--hl);
  border-radius: 14px;
  overflow: hidden;
}

.x8-stats > div {min-width:0; background: #fff; padding: 22px 18px; text-align: center; }

.x8-stats b { display: block; font-size: 31px; color: var(--ik); line-height: 1.08; }

.x8-stats span { display: block; margin-top: 6px; color: var(--mk); font-size: 13.5px; }

.x8-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.x8-kpis > div {min-width:0;
  padding: 20px 18px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--hl);
  border-top: 3px solid var(--tl);
}

.x8-kpis b { display: block; font-size: 27px; line-height: 1.08; }

.x8-kpis span { display: block; margin-top: 5px; color: var(--mk); font-size: 13.5px; }

/* ---------------------------------------------------------------- numbered index */
.x8-index {
  border: 1px solid var(--hl);
  border-left: 4px solid var(--ac);
  border-radius: var(--r);
  background: #fff;
  padding: 22px 24px;
  box-shadow: var(--sh);
}

.x8-index > b {
  display: block;
  margin-bottom: 14px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mk);
}

.x8-index > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 26px; }

.x8-index a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
  color: var(--ik);
  font-weight: 600;
  font-size: 15px;
  padding: 3px 0;
}

.x8-index a em {
  flex: 0 0 auto;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ac2);
  font-weight: 800;
}

/* ---------------------------------------------------------------- tables */
.x8-tw { overflow-x: auto; border: 1px solid var(--hl); border-radius: 14px; background: #fff; box-shadow: var(--sh); }

.x8-tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }

.x8-tbl th {
  background: var(--ik);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
}

.x8-tbl td { padding: 13px 16px; border-top: 1px solid var(--hl); vertical-align: top; }

.x8-tbl tbody tr:nth-child(2n) td { background: #fbfcfe; }

.x8-tbl td:first-child { font-weight: 600; }

/* RTP bar column */
.x8-bar { display: block; height: 7px; border-radius: 99px; background: var(--hl); overflow: hidden; margin-top: 7px; }

.x8-bar i { display: block; height: 100%; background: var(--tl); }

/* ---------------------------------------------------------------- conversion band */
.x8-cband {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: 14px;
  background: linear-gradient(103deg, #f6e4bd, #fbf2de);
  border: 1px solid #e9d2a4;
}

.x8-cband .tx { flex: 1 1 320px; min-width: 0; }

.x8-cband b { display: block; font-size: 21px; line-height: 1.3; }

.x8-cband small { display: block; margin-top: 6px; color: #6b5420; font-size: 14px; }

/* ---------------------------------------------------------------- category cards */
.x8-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.x8-cats .cc {
  display: block;
  min-width: 0;
  border: 1px solid var(--hl);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sh);
  color: var(--ik);
}

.x8-cats .cc:hover { text-decoration: none; box-shadow: var(--sh2); }

.x8-cats .cc img { width: 100%; min-width: 0; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.x8-cats .cc .bd { padding: 18px 20px 22px; }

.x8-cats .cc b { display: block; margin-bottom: 7px; font-size: 18px; }

.x8-cats .cc p { margin: 0; color: var(--mk); font-size: 14.5px; }

/* ---------------------------------------------------------------- studio chips */
.x8-studios { display: flex; flex-wrap: wrap; gap: 10px; }

/* ONE uniform chip for every provider and payment mark, the mark in its own colour, nothing
   silhouetted. A faint neutral fill rather than pure white so a light mark still has an edge. */
.x8-studios .st {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 15px;
  border: 1px solid var(--hl);
  border-radius: 99px;
  background: #f1f4f9;
  font-size: 14px;
  font-weight: 600;
}

.x8-studios .st img { min-width: 0; flex: 0 1 auto; max-height: 20px; width: auto; }

.x8-studios .st em { font-style: normal; }

/* ---------------------------------------------------------------- timeline */
.x8-rail { position: relative; padding-left: 30px; }

.x8-rail:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--hl);
}

.x8-rail .rw { position: relative; padding-bottom: 24px; }

.x8-rail .rw:last-child { padding-bottom: 0; }

.x8-rail .dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tl);
}

.x8-rail .bd b { display: block; font-size: 17px; }

.x8-rail .bd em {
  display: inline-block;
  margin: 5px 0 7px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--tl2);
  color: var(--tl);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
}

.x8-rail .bd p { margin: 0; color: var(--mk); font-size: 14.5px; }

/* ---------------------------------------------------------------- KYC / tier cards */
.x8-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.x8-tiers .tc {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--hl);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh);
}

.x8-tiers .tc.pop { border-color: var(--ac); box-shadow: var(--sh2); }

.x8-tiers .rib {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--ik);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.x8-tiers .tc h3 { margin-bottom: 5px; }

.x8-tiers .tc .sub { color: var(--mk); font-size: 14px; margin-bottom: 14px; }

.x8-tiers .tc .chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: var(--r);
  background: var(--tl2);
  color: var(--tl);
  font-size: 13px;
  font-weight: 700;
}

.x8-tiers .tc ul { margin: 0; padding: 0; list-style: none; }

.x8-tiers .tc li { position: relative; padding: 5px 0 5px 24px; font-size: 14.5px; color: var(--mk); }

.x8-tiers .tc li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--tl);
  border-bottom: 2.5px solid var(--tl);
  transform: rotate(-45deg);
}

/* five VIP tiers need a tighter grid than the three KYC cards */
.x8-tiers.five { grid-template-columns: repeat(5, 1fr); }

.x8-tiers.five .tc { padding: 20px 16px; }

.x8-tiers.five .tc h3 { font-size: 17px; }

/* ---------------------------------------------------------------- splits */
.x8-split { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; margin-bottom: 34px; }

.x8-split:last-child { margin-bottom: 0; }

.x8-split.alt > img { order: 2; }

.x8-split > img { min-width: 0; width: 100%; border-radius: 14px; box-shadow: var(--sh); }

.x8-split .bd { min-width: 0; }

.x8-split .bd h3 { margin-bottom: 11px; font-size: 22px; }

.x8-split .bd p { margin: 0; color: var(--mk); }

/* ---------------------------------------------------------------- members */
.x8-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.x8-members .mb {
  padding: 22px;
  border: 1px solid var(--hl);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh);
}

.x8-members .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }

.x8-members .av {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tl2);
  display: grid;
  place-items: center;
  font-size: 21px;
}

.x8-members .hd > div { min-width: 0; flex: 1 1 auto; }

.x8-members .hd b { display: block; font-size: 15px; }

.x8-members .hd small { color: var(--mk); font-size: 13px; }

.x8-members .rt { flex: 0 0 auto; color: var(--ac); font-size: 13px; letter-spacing: .5px; }

.x8-members p { margin: 0; color: var(--mk); font-size: 14.5px; }

/* ---------------------------------------------------------------- prose */
.x8-prose { max-width: 820px; }

.x8-prose h2 { margin: 34px 0 13px; scroll-margin-top: 86px; }

.x8-prose h2:first-child { margin-top: 0; }

.x8-prose h3 { margin: 22px 0 9px; }

.x8-prose p { color: #2c3f58; }

.x8-prose ul, .x8-prose ol { margin: 0 0 14px; padding-left: 22px; color: #2c3f58; }

.x8-prose li { margin-bottom: 6px; }

/* Nothing touching: the prose column concatenates kpis, steps, blocks, a table and the FAQ with
   no wrapper between them, so each needs to carry its own gap or two of them render flush. */
.x8-prose .x8-tw, .x8-prose .x8-tiers, .x8-prose .x8-rail { margin: 22px 0; }

.x8-prose .x8-kpis, .x8-prose .x8-steps, .x8-prose .x8-faq { margin-bottom: 22px; }

.x8-prose .x8-kpis + .x8-steps { margin-top: 22px; }

.x8-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.x8-steps li {
  counter-increment: s;
  position: relative;
  padding: 15px 18px 15px 56px;
  border: 1px solid var(--hl);
  border-radius: var(--r);
  background: #fff;
  font-size: 15px;
}

.x8-steps li:before {
  content: counter(s);
  position: absolute;
  left: 17px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ik);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---------------------------------------------------------------- notice bar */
.x8-notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #e9d2a4;
  border-radius: var(--r);
  background: #fdf8ee;
  font-size: 14.5px;
  color: #5d4a1d;
}

.x8-notice i { flex: 0 0 auto; font-style: normal; font-size: 18px; }

/* ---------------------------------------------------------------- faq */
.x8-faq { display: grid; gap: 9px; }

.x8-faq details { border: 1px solid var(--hl); border-radius: var(--r); background: #fff; }

.x8-faq summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  list-style: none;
}

.x8-faq summary::-webkit-details-marker { display: none; }

.x8-faq summary:after { content: "+"; float: right; color: var(--ac2); font-weight: 800; }

.x8-faq details[open] summary:after { content: "\2212"; }

.x8-faq p { margin: 0; padding: 0 18px 16px; color: var(--mk); font-size: 15px; }

/* ---------------------------------------------------------------- closing band */
.x8-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  width: calc(100% - 44px);
  max-width: var(--w);
  margin: 0 auto 46px;
  padding: 30px 34px;
  border-radius: 16px;
  background: var(--ik);
  color: #fff;
}

.x8-band b { flex: 1 1 320px; min-width: 0; font-size: 20px; line-height: 1.38; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.x8-foot { border-top: 1px solid var(--hl); background: #fff; padding: 46px 0 22px; }

.x8-foot .top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; margin-bottom: 34px; }

.x8-foot .ab { min-width: 0; }

.x8-foot .ab p { margin: 13px 0 0; color: var(--mk); font-size: 14px; }

.x8-foot .top > div h4 { margin: 0 0 11px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--mk); }

.x8-foot .top > div a { display: block; padding: 4px 0; color: var(--ik); font-size: 14.5px; }

.x8-foot .pay, .x8-foot .trust { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.x8-foot .pay span, .x8-foot .trust span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--hl);
  border-radius: var(--r);
  background: #f1f4f9;
}

.x8-foot .pay img, .x8-foot .trust img { min-width: 0; flex: 0 1 auto; max-height: 22px; width: auto; }

.x8-foot .legal { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--hl); padding-top: 22px; }

.x8-foot .age {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ik);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13.5px;
}

.x8-foot .legal p { margin: 0 0 6px; font-size: 13.5px; color: var(--mk); }

.x8-foot .legal small { color: var(--mk); font-size: 12.5px; }

/* ---------------------------------------------------------------- sticky join bar (desktop) */
.x8-sticky {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 44px);
  max-width: 720px;
  padding: 12px 14px 12px 22px;
  border-radius: 99px;
  background: var(--ik);
  color: #fff;
  box-shadow: 0 14px 38px rgba(16, 36, 63, .3);
}

.x8-sticky > span { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; }

.x8-sticky .x8-btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

.x8-sticky .x { flex: 0 0 auto; background: none; border: 0; color: #7f93ad; font-size: 21px; cursor: pointer; padding: 0 4px; }

.x8-sticky.off { display: none; }

/* ---------------------------------------------------------------- mobile tab bar */
.x8-tabs { display: none; }

/* ---------------------------------------------------------------- entry modal */
.x8-pop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 22, 38, .62);
  display: grid;
  place-items: center;
  padding: 18px;
}

.x8-pop[hidden] { display: none; }

.x8-pop .bx {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(10, 22, 38, .4);
}

/* the close control lives INSIDE the card: .bx clips its own rounded corners, so a button
   sitting above the top edge has its upper half cut off */
.x8-pop .x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 36, 63, .62);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.x8-pop .bx > img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.x8-pop .bd { padding: 24px; }

.x8-pop .bd b { display: block; font-size: 22px; margin-bottom: 9px; }

.x8-pop .bd > p { color: var(--mk); font-size: 14.5px; }

/* one offer per screen: the panels are paged, never stacked */
.x8-pop .pg { display: none; }

.x8-pop .pg.on { display: block; }

.x8-pop .pg .big { display: block; font-size: 34px; color: var(--ac2); font-weight: 800; line-height: 1.05; }

.x8-pop .pg .lbl { display: block; margin: 7px 0 5px; font-weight: 650; font-size: 15.5px; }

.x8-pop .pg .nt { display: block; color: var(--mk); font-size: 13.5px; }

.x8-pop .nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; }

.x8-pop .nav button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hl);
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  color: var(--ik);
  cursor: pointer;
}

.x8-pop .nav .ct { font-variant-numeric: tabular-nums; color: var(--mk); font-size: 13.5px; font-weight: 700; }

.x8-pop .bd .x8-btn { width: 100%; }

.x8-pop .later {
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 9px;
  background: none;
  border: 0;
  color: var(--mk);
  font-size: 13.5px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .x8-hero .w { grid-template-columns: 1fr; gap: 30px; }
  .x8-hero > .w > img { order: -1; }
  .x8-offers .gr { grid-template-columns: repeat(2, 1fr); }
  .x8-cats, .x8-tiers, .x8-members { grid-template-columns: repeat(2, 1fr); }
  .x8-tiers.five { grid-template-columns: repeat(2, 1fr); }
  .x8-split { grid-template-columns: 1fr; gap: 22px; }
  .x8-split.alt > img { order: 0; }
  .x8-foot .top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(var(--bar) + 22px); }
  .x8-pills { display: none; }
  .x8-burger { display: block; margin-left: auto; }
  .x8-head .w { gap: 10px; }
  .x8-sec { padding-bottom: 34px; }
  .x8-hero { padding: 30px 0 22px; }
  .x8-hero.big { padding: 30px 0 22px; }
  .x8-stats, .x8-kpis { grid-template-columns: repeat(2, 1fr); }
  .x8-index > div { grid-template-columns: 1fr; }
  .x8-cats, .x8-tiers, .x8-members, .x8-tiers.five { grid-template-columns: 1fr; }
  .x8-offers { padding: 20px; }
  .x8-offers .gr { grid-template-columns: 1fr; }
  .x8-band { padding: 24px; margin-bottom: 34px; }
  .x8-cband { padding: 22px; }
  .x8-foot .top { grid-template-columns: 1fr; gap: 22px; }

  /* the thumb-zone CTA: a pinned bar, not a button at the top of the screen */
  .x8-sticky {
    left: 0;
    right: 0;
    bottom: var(--bar);
    transform: none;
    width: auto;
    max-width: none;
    border-radius: 0;
    padding: 10px 14px;
    gap: 10px;
  }
  .x8-sticky > span { display: none; }
  .x8-sticky .x8-btn { flex: 1 1 auto; }

  .x8-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--bar);
    background: var(--ik);
    border-top: 1px solid #1d3550;
  }
  .x8-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9fb2c8;
    font-size: 10.5px;
    font-weight: 600;
  }
  .x8-tabs a:hover { text-decoration: none; }
  .x8-tabs .i { font-size: 17px; line-height: 1; }
  .x8-tabs .mid { color: #231703; }
  .x8-tabs .mid .i {
    width: 42px;
    height: 42px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--ac);
    border: 3px solid var(--ik);
    display: grid;
    place-items: center;
    font-size: 21px;
  }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .w { padding: 0 16px; }
  .x8-band { width: calc(100% - 32px); }
  .x8-sticky { padding: 9px 12px; }
}

/* On a short phone the modal card ran past 92vh and pushed the claim button under the fold.
   A CTA you have to scroll to is the thing the one-offer-per-screen rule exists to prevent.
   Shorten the art and tighten the type instead. */
@media (max-height: 700px) {
  .x8-pop .bx > img { aspect-ratio: 21 / 9; }
  .x8-pop .bd { padding: 16px 18px 18px; }
  .x8-pop .bd b { font-size: 19px; margin-bottom: 6px; }
  .x8-pop .bd > p { font-size: 13.5px; margin-bottom: 10px; }
  .x8-pop .pg .big { font-size: 27px; }
  .x8-pop .pg .lbl { font-size: 14.5px; margin: 5px 0 4px; }
  .x8-pop .pg .nt { font-size: 12.5px; }
  .x8-pop .nav { margin: 12px 0 10px; }
  .x8-pop .nav button { width: 34px; height: 34px; }
  .x8-pop .later { margin-top: 7px; padding: 7px; }
}

@media (max-height: 560px) {
  .x8-pop .bx > img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
