:root {
  --navy: #0a1f3c;
  --navy-soft: #14305a;
  --emerald: #0f7b5a;
  --emerald-soft: #14926e;
  --gold: #c5a572;
  --cream: #faf7f0;
  --ink: #1a1a1a;
  --muted: #5b6471;
  --line: #e3e1d8;
  --green-200: #d4ebde;
  --amber-200: #fbe9c4;
  --red-200: #f7d4d4;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(10,31,60,0.06), 0 6px 24px rgba(10,31,60,0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html[lang^="ar"] body {
  font-family: "Tajawal", "Cairo", "IBM Plex Sans Arabic", Tahoma, "Geeza Pro", "Segoe UI Arabic", sans-serif;
  line-height: 1.8;
}

a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--emerald-soft); }
a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* --- Top utility bar --- */
.utility {
  background: var(--navy);
  color: #cfd7e3;
  font-size: 0.82rem;
  padding: 8px 0;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.utility a { color: #e9eef6; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.age-badge {
  display: inline-block;
  background: var(--emerald);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  margin-inline-end: 8px;
}

/* --- Header / nav --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(10,31,60,0.20));
  transition: transform 200ms, filter 200ms;
}
.brand:hover .brand-mark {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 10px rgba(10,31,60,0.30));
}
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-size: 1.3rem;
}
.brand-wordmark-accent {
  color: var(--gold);
  margin-inline-start: 1px;
}
.brand-tagline {
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
/* Arabic tagline shouldn't be small-caps spaced — relax styling on RTL */
html[dir="rtl"] .brand-tagline {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-nav > a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav > a:hover { color: var(--emerald); }

/* Dropdown system via native <details>/<summary> — accessible, no JS */
.site-nav details.nav-item { position: relative; }
.site-nav details.nav-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-nav details.nav-item summary::-webkit-details-marker { display: none; }
.site-nav details.nav-item summary::after {
  content: "▾";
  font-size: 0.7em;
  color: var(--muted);
  transition: transform 150ms;
}
.site-nav details.nav-item[open] summary::after { transform: rotate(180deg); color: var(--emerald); }
.site-nav details.nav-item summary:hover { color: var(--emerald); }
.site-nav .nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: calc(100% + 18px);
  inset-inline-start: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(10,31,60,0.14);
  min-width: 250px;
  z-index: 60;
}
.site-nav .nav-dropdown li { margin: 0; padding: 0; }
.site-nav .nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}
.site-nav .nav-dropdown a:hover {
  background: var(--cream);
  color: var(--emerald);
}

/* Hamburger toggle (CSS-only checkbox pattern). Hidden on desktop. */
.nav-toggle-input { display: none; }
.nav-toggle-btn {
  display: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
  transition: background 120ms;
}
.nav-toggle-btn:hover { background: var(--cream); }
.nav-toggle-input:checked ~ .nav-toggle-btn { background: var(--navy); color: #fff; }
.lang-toggle {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none !important;
}
.lang-toggle:hover { background: var(--navy); color: #fff !important; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding-block: 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197,165,114,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lede { font-size: 1.15rem; color: #cfd7e3; max-width: 720px; margin-bottom: 24px; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #cfd7e3;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta strong { color: #fff; }

/* Byline avatar (author headshot) */
.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.45);
  vertical-align: middle;
  margin-inline-end: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* --- Hero two-column grid (content + featured pick card) --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.featured-pick {
  background:
    radial-gradient(circle at 100% 0%, rgba(244,196,65,0.30) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(20,146,110,0.55) 0%, transparent 55%),
    linear-gradient(135deg, #14926e 0%, #0a4d3c 60%, #073b2d 100%);
  border: 1px solid rgba(244,196,65,0.45);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(244,196,65,0.10),
    0 24px 64px rgba(0,0,0,0.45),
    0 0 80px rgba(20,146,110,0.35),
    0 0 24px rgba(244,196,65,0.20);
  color: #fff;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
.featured-pick::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(244,196,65,0.6), transparent 40%, transparent 60%, rgba(20,146,110,0.5));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}
html[dir="rtl"] .featured-pick { justify-self: start; }
@media (max-width: 920px) {
  .featured-pick { justify-self: stretch; max-width: none; }
}
.featured-pick .pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffd55a 0%, #f4c441 50%, #e0a83a 100%);
  color: #2a1f00;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  position: absolute;
  top: -16px;
  inset-inline-start: 32px;
  z-index: 2;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.25),
    0 2px 6px rgba(244,196,65,0.40),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.featured-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 22px;
}
.featured-logo {
  width: 76px;
  height: 76px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  object-fit: contain;
  border: 1px solid #d6d3c5;
  flex: 0 0 76px;
}
.featured-brand {
  font-size: 1.45rem;
  display: block;
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
}
.featured-sub {
  font-size: 0.9rem;
  color: #cfd7e3;
  display: block;
  margin-top: 5px;
}
.featured-bonus {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 22px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(15,123,90,0.18);
  border: 1px solid rgba(15,123,90,0.35);
  border-radius: 12px;
}
.featured-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.featured-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 16px;
}
.featured-pill .pill-label {
  display: block;
  color: #8d97a9;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.featured-pill .pill-value {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}
.featured-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #ffd55a 0%, #f4c441 50%, #e0a83a 100%);
  color: #1a1a1a !important;
  font-weight: 800;
  padding: 18px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  box-shadow:
    0 6px 20px rgba(244,196,65,0.40),
    0 2px 6px rgba(244,196,65,0.30),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 120ms, box-shadow 120ms;
}
.featured-cta:hover {
  background: linear-gradient(135deg, #ffe07a 0%, #ffd55a 50%, #e8b840 100%);
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(244,196,65,0.50),
    0 3px 8px rgba(244,196,65,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.featured-fine {
  text-align: center;
  font-size: 0.8rem;
  color: #8d97a9;
  margin: 0;
}

/* --- 21+ banner --- */
.banner-21 {
  background: var(--amber-200);
  border-block: 1px solid #e3c577;
  padding: 14px 0;
  font-size: 0.92rem;
  color: #5d4a14;
}
.banner-21 .container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.banner-21 strong { color: #3d3008; }
.banner-21-short { display: none; }
@media (max-width: 820px) {
  .banner-21-full { display: none; }
  .banner-21-short { display: inline; }
}

/* --- Sections --- */
section { padding-block: 56px; }
section.alt { background: #fff; border-block: 1px solid var(--line); }

/* --- Operator comparison table --- */
.operator-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.operator-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.4fr;
  gap: 16px;
  padding: 18px 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.operator-row:last-child { border-bottom: 0; }
.operator-row.head {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.operator-row.head h3, .operator-row.head { color: #fff; }
.op-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.op-name small { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-top: 2px; }
.op-row { display: flex; align-items: center; gap: 16px; }
.op-row .rank-num { color: var(--muted); font-weight: 700; min-width: 22px; font-size: 1.1rem; }
.op-row .op-logo {
  width: 150px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  border: 1px solid #d6d3c5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,31,60,0.04), 0 4px 12px rgba(10,31,60,0.06);
  flex: 0 0 150px;
}
.op-row .op-text { display: flex; flex-direction: column; line-height: 1.25; }
.op-row .op-text small { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-top: 3px; }

@media (max-width: 820px) {
  .op-row .op-logo { width: 130px; height: 88px; flex: 0 0 130px; padding: 10px; }
}
.licence-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.licence-pill.licensed { background: var(--green-200); color: #0d5a3f; }
.licence-pill.prelaunch { background: var(--amber-200); color: #6e5005; }
.licence-pill.offshore { background: var(--red-200); color: #7a1d1d; }
.btn {
  display: inline-block;
  background: var(--emerald);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.92rem;
  transition: background 120ms;
  text-align: center;
}
.btn:hover { background: var(--emerald-soft); }
.btn.ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
}
.btn.ghost:hover { background: var(--navy); color: #fff !important; }

@media (max-width: 820px) {
  /* --- Utility bar mobile compaction --- */
  .utility {
    padding: 6px 0;
    font-size: 0.76rem;
  }
  .utility .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }
  .utility .container > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .utility .age-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  /* --- Hamburger nav (mobile) --- */
  .nav-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .container { position: relative; flex-wrap: nowrap; padding-block: 12px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0;
    gap: 0;
    box-shadow: 0 14px 32px rgba(10,31,60,0.15);
    border-top: 1px solid var(--line);
    z-index: 49;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .site-nav > a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .site-nav > a:last-child { border-bottom: 0; }
  .site-nav .lang-toggle {
    margin: 10px 24px;
    text-align: center;
    border: 1px solid var(--navy);
  }
  /* Dropdown rendering on mobile — inline accordion, not floating panel */
  .site-nav details.nav-item summary {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    justify-content: space-between;
    width: 100%;
  }
  .site-nav details.nav-item[open] summary { background: var(--cream); }
  .site-nav .nav-dropdown {
    position: static;
    background: rgba(10,31,60,0.025);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    padding: 0;
  }
  .site-nav .nav-dropdown a {
    padding: 12px 24px;
    padding-inline-start: 44px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    white-space: normal;
  }
  .site-nav .nav-dropdown li:last-child a { border-bottom: 0; }

  /* --- Mobile hero compaction: lift affiliate table above the fold --- */
  .hero { padding-block: 28px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .hero .lede { display: none; }
  .hero-meta { display: none; }
  .featured-pick { display: none; }
  .hero-grid { gap: 0; grid-template-columns: 1fr; }
  .hero .byline { font-size: 0.85rem; margin: 4px 0 6px; }
  .banner-21 { padding: 10px 0; font-size: 0.85rem; }
  .banner-21 .container { gap: 8px; }
  section { padding-block: 32px; }
  section.alt:first-of-type { padding-block-start: 24px; }
  .lede { font-size: 1rem; }
  h2 { margin-top: 1em; }

  /* --- Mobile card layout: horizontal-flowing, selling-focused --- */
  .operator-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .operator-row.head { display: none; }
  .operator-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand   brand"
      "meta    licence"
      "bonus   bonus"
      "cta     cta";
    gap: 12px;
    padding: 18px 18px 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow:
      0 2px 6px rgba(10,31,60,0.06),
      0 12px 28px rgba(10,31,60,0.06);
    align-items: center;
  }
  .operator-row:last-child { margin-bottom: 0; }

  /* Hide the default data-label pseudo-element on every cell, then re-enable per-cell only where we want it. */
  .operator-cell::before { display: none; }

  /* --- Brand row (logo + rank + name) --- */
  .operator-cell.op-name { grid-area: brand; padding: 0; }
  .op-row { gap: 14px; align-items: center; }
  .op-row .rank-num { font-size: 1.15rem; color: var(--navy); min-width: 18px; }
  .op-row .op-logo { width: 120px; height: 78px; flex: 0 0 120px; padding: 10px; }
  .op-row .op-text { font-size: 1.2rem; color: var(--navy); font-weight: 800; line-height: 1.2; }

  /* --- Type meta (small secondary text under brand) --- */
  .operator-cell[data-label="Type"] {
    grid-area: meta;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0;
  }

  /* --- Licence pill (top-right) --- */
  .operator-cell[data-label="Licence"] {
    grid-area: licence;
    padding: 0;
    justify-self: end;
  }
  .operator-cell[data-label="Licence"] .licence-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  /* --- Welcome Bonus (hero stat, gold-tinted card) --- */
  .operator-cell[data-label="Welcome Bonus"] {
    grid-area: bonus;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    line-height: 1.3;
    padding: 14px 16px;
    background:
      linear-gradient(135deg, rgba(244,196,65,0.14) 0%, rgba(15,123,90,0.10) 100%);
    border: 1px solid rgba(244,196,65,0.40);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  }
  .operator-cell[data-label="Welcome Bonus"]::before {
    display: inline;
    content: "🎁 ";
    margin: 0 4px 0 0;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }
  html[dir="rtl"] .operator-cell[data-label="مكافأة ترحيبية"]::before {
    display: inline;
    content: "🎁 ";
    margin: 0 0 0 4px;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }
  /* AR-equivalent labels mapped */
  html[dir="rtl"] .operator-cell[data-label="مكافأة ترحيبية"] {
    grid-area: bonus;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    line-height: 1.3;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(244,196,65,0.14) 0%, rgba(15,123,90,0.10) 100%);
    border: 1px solid rgba(244,196,65,0.40);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  }
  html[dir="rtl"] .operator-cell[data-label="العلامة"] { grid-area: brand; padding: 0; }
  html[dir="rtl"] .operator-cell[data-label="النوع"] {
    grid-area: meta; font-size: 0.85rem; color: var(--muted); padding: 0;
  }
  html[dir="rtl"] .operator-cell[data-label="الترخيص"] {
    grid-area: licence; padding: 0; justify-self: end;
  }
  html[dir="rtl"] .operator-cell[data-label="العب الآن"] { grid-area: cta; padding: 0; }

  /* --- Play Now CTA (full-width, prominent) --- */
  .operator-cell[data-label="Play Now"] {
    grid-area: cta;
    padding: 0;
  }
  .operator-cell .btn[rel*="sponsored"] {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.08rem;
    text-align: center;
  }
}

/* === New dark-card affiliate table === */
section.alt.dark-affiliate {
  background: var(--navy);
  color: #fff;
}
section.alt.dark-affiliate .section-eyebrow { color: var(--gold); }
section.alt.dark-affiliate h2 { color: #fff; }
section.alt.dark-affiliate .lede { color: #cfd7e3; }
section.alt.dark-affiliate .lede strong { color: #fff; }
section.alt.dark-affiliate p.small.muted { color: #8d97a9; }
section.alt.dark-affiliate p.small.muted a { color: var(--gold); }

.dark-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.dark-cards .dark-row {
  display: grid;
  grid-template-columns: 48px 134px 1.4fr 1.1fr 1fr 1.4fr 1.1fr;
  gap: 18px;
  align-items: center;
  background: #14305a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 22px;
  color: #fff;
  transition: border-color 160ms, transform 160ms;
}
.dark-cards .dark-row:hover {
  border-color: rgba(244,196,65,0.35);
}
.dark-cards .rank-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ffd55a 0%, #f4c441 50%, #e0a83a 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #2a1f00;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(244,196,65,0.30), inset 0 1px 0 rgba(255,255,255,0.5);
}
.dark-cards .dc-logo {
  width: 134px;
  height: 92px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 1px solid #d6d3c5;
}
.dark-cards .dc-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dark-cards .dc-brand strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.dark-cards .dc-brand small {
  display: block;
  font-size: 0.82rem;
  color: #aab3c4;
  margin-top: 4px;
}
.dark-cards .dc-bonus {
  text-align: center;
}
.dark-cards .dc-bonus .bonus-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #5fd1a3;
  line-height: 1.25;
}
.dark-cards .dc-bonus .bonus-extra {
  font-size: 0.82rem;
  color: #aab3c4;
  margin-top: 5px;
}
.dark-cards .dc-rating {
  text-align: center;
}
.dark-cards .dc-rating .stars {
  color: #f4c441;
  font-size: 0.95rem;
  letter-spacing: 1px;
  line-height: 1;
}
.dark-cards .dc-rating .score {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-top: 6px;
}
.dark-cards .dc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}
.dark-cards .dc-tag {
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid;
}
.dark-cards .dc-tag.gold {
  background: rgba(244,196,65,0.16);
  color: #f4c441;
  border-color: rgba(244,196,65,0.40);
}
.dark-cards .dc-tag.emerald {
  background: rgba(20,146,110,0.18);
  color: #5fd1a3;
  border-color: rgba(20,146,110,0.40);
}
.dark-cards .dc-tag.purple {
  background: rgba(140,118,230,0.18);
  color: #b59cee;
  border-color: rgba(140,118,230,0.42);
}
.dark-cards .dc-cta {
  text-align: center;
}
.dark-cards .dc-play {
  display: block;
  background: linear-gradient(135deg, #ffd55a 0%, #f4c441 50%, #e0a83a 100%);
  color: #1a1a1a !important;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(244,196,65,0.30), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 120ms, box-shadow 120ms;
}
.dark-cards .dc-play:hover {
  background: linear-gradient(135deg, #ffe07a 0%, #ffd55a 50%, #e8b840 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244,196,65,0.40), inset 0 1px 0 rgba(255,255,255,0.6);
}
.dark-cards .dc-review {
  display: block;
  margin-top: 8px;
  color: #aab3c4;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 120ms;
}
.dark-cards .dc-review:hover { color: var(--gold); }

@media (max-width: 980px) {
  .dark-cards .dark-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "rank   brand"
      "logo   bonus"
      "tags   tags"
      "rating cta";
    gap: 14px 16px;
    padding: 18px;
  }
  .dark-cards .rank-badge { grid-area: rank; }
  .dark-cards .dc-brand { grid-area: brand; }
  .dark-cards .dc-logo { grid-area: logo; width: 100%; max-width: 200px; height: 80px; }
  .dark-cards .dc-bonus { grid-area: bonus; text-align: start; }
  .dark-cards .dc-rating { grid-area: rating; text-align: start; }
  .dark-cards .dc-tags { grid-area: tags; }
  .dark-cards .dc-cta { grid-area: cta; }
  .dark-cards .dc-play { padding: 12px 16px; font-size: 0.95rem; }
}
@media (max-width: 540px) {
  .dark-cards .dark-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rank"
      "logo"
      "brand"
      "bonus"
      "rating"
      "tags"
      "cta";
    text-align: center;
  }
  .dark-cards .rank-badge { justify-self: start; }
  .dark-cards .dc-logo { justify-self: center; }
  .dark-cards .dc-bonus, .dark-cards .dc-rating { text-align: center; }
  .dark-cards .dc-tags { justify-content: center; }
}

/* Affiliate "Play Now" CTAs — gold gradient pop. Targets only sponsored
   links inside operator-cells so featured-card CTA + GCGRA buttons are untouched. */
.operator-cell .btn[rel*="sponsored"] {
  background: linear-gradient(135deg, #ffd55a 0%, #f4c441 45%, #e0a83a 100%);
  color: #1a1a1a !important;
  border: none;
  font-weight: 800;
  padding: 11px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 14px rgba(244,196,65,0.45),
    0 1px 3px rgba(244,196,65,0.30),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 120ms, box-shadow 120ms, background 120ms;
}
.operator-cell .btn[rel*="sponsored"]:hover {
  background: linear-gradient(135deg, #ffe07a 0%, #ffd55a 45%, #e8b840 100%);
  transform: translateY(-1px);
  box-shadow:
    0 7px 20px rgba(244,196,65,0.55),
    0 2px 5px rgba(244,196,65,0.35),
    inset 0 1px 0 rgba(255,255,255,0.65);
}
.operator-cell .btn[rel*="sponsored"]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* --- Card grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

/* --- FAQ --- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--emerald);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 12px; color: #2c3340; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #c3cbd9;
  padding-block: 48px 24px;
  margin-top: 64px;
}
.site-footer a { color: #e9eef6; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8d97a9;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Utility --- */
.lede { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.aed {
  font-weight: 700;
  color: var(--navy);
  /* Isolate this span as its own BiDi run so the Arabic "د.إ" symbol and
     LTR digits ("100,000,000") render predictably and don't get reordered
     by the browser's bidirectional algorithm. */
  unicode-bidi: isolate;
  direction: ltr;
  white-space: nowrap;
}
/* On dark backgrounds (hero, footer, featured-pick card, etc.) the navy
   default would blend into the navy background. Switch to gold so AED
   figures remain legible — same brand palette, opposite contrast. */
.hero .aed,
.site-footer .aed,
.featured-pick .aed,
.featured-bonus .aed { color: var(--gold); }

.rg-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.rg-strip p { margin: 0; flex: 1 1 320px; }

/* --- RTL fine-tuning --- */
html[dir="rtl"] .hero::after {
  background: radial-gradient(circle at 20% 20%, rgba(197,165,114,0.18) 0%, transparent 50%);
}
html[dir="rtl"] .brand { letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .section-eyebrow { letter-spacing: 0.02em; }
html[dir="rtl"] .operator-row.head { letter-spacing: 0.04em; }

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