
:root {
  color-scheme: dark;
  --background: #111415;
  --surface: #111415;
  --surface-dim: #0f1213;
  --surface-low: #191c1d;
  --surface-lowest: #0c0f10;
  --surface-container: #1d2021;
  --surface-high: #282a2b;
  --primary-container: #0a192f;
  --ink: #e1e3e4;
  --muted: #c5c6cd;
  --faint: #8f9097;
  --line: #44474d;
  --gold: #e9c349;
  --gold-soft: #ffe088;
  --gold-deep: #af8d11;
  --on-gold: #342800;
  --primary: #b9c7e4;
  --gold-glow: rgba(255, 224, 136, .1);
  --shadow: 0 18px 46px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; display: block; }
.container { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(68,71,77,.3);
  background: #11141f;
}
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--gold-soft); font-weight: 700; font-size: 1.18rem; text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.brand span { color: var(--gold); }
.brand-logo { height: 56px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 46px; } }
.brand-badge-logo { background: #fff; padding: 4px; overflow: hidden; }
.brand-badge-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav details > summary {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}
.nav a:hover, .nav details[open] > summary, .nav details > summary:hover { background: rgba(233,195,73,.08); color: var(--gold-soft); }
.nav details { position: relative; }
.nav summary::-webkit-details-marker { display: none; }
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,224,136,.12);
  background: var(--surface-low);
  box-shadow: var(--shadow);
}
body[dir="rtl"] .dropdown { right: auto; left: 0; }
.dropdown a { display: block; padding: 8px 10px; }
.hero {
  color: var(--ink);
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 96px 0 64px;
  background:
    linear-gradient(180deg, rgba(17,20,21,.94) 0%, rgba(10,25,47,.82) 100%),
    url("/assets/generated/casino-hero.png") center / cover no-repeat,
    var(--primary-container);
}
.hero-mini {
  min-height: 360px;
  padding: 88px 0 48px;
  background:
    linear-gradient(180deg, rgba(17,20,21,.95) 0%, rgba(10,25,47,.86) 100%),
    url("/assets/generated/casino-hero.png") center / cover no-repeat,
    var(--primary-container);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 34px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 18px; max-width: 850px; font-weight: 700; }
.hero-mini h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.lead { font-size: clamp(1.04rem, 2vw, 1.13rem); max-width: 780px; color: var(--muted); margin: 0 0 20px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; color: var(--muted); font-size: .82rem; }
.pill { border: 1px solid rgba(255,224,136,.2); border-radius: 4px; padding: 6px 12px; background: rgba(255,224,136,.05); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: .72rem; }
.quick-panel {
  background: var(--surface-low);
  color: var(--ink);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--gold-glow);
  border-top: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
}
.quick-panel h2 { font-size: .78rem; margin: 0 0 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.top-three { display: grid; gap: 12px; }
.rank-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(68,71,77,.3);
  border-radius: 6px;
  background: var(--surface-dim);
  transition: border-color .2s;
}
.rank-card:first-child { border-color: rgba(233,195,73,.45); background: rgba(233,195,73,.05); }
.rank-card:hover { border-color: rgba(233,195,73,.5); }
.rank-head { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; }
.rank-meta { min-width: 0; }
.rank-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: var(--primary-container); color: var(--gold-soft); font-weight: 700; font-size: 1.05rem; }
.rank-logo { width: 84px; height: 48px; display: inline-grid; place-items: center; border-radius: 4px; background: #fff; padding: 5px; }
.rank-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rank-logo-fallback { background: var(--primary-container); color: var(--gold-soft); font-weight: 700; }
.rank-cta { width: 100%; }
.brand-name { font-weight: 700; color: var(--ink); }
.small { color: var(--muted); font-size: .85rem; }
.score { color: var(--gold-soft); font-weight: 700; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid #f7dd9a;
  background: linear-gradient(180deg, #ffe9a8 0%, #e9c349 45%, #c79a1e 100%);
  color: #2a2000;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,224,136,.25), 0 6px 18px rgba(233,195,73,.28), inset 0 1px 0 rgba(255,255,255,.55);
  transition: box-shadow .25s, transform .12s, filter .25s;
}
.btn:hover {
  color: #2a2000;
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255,224,136,.5), 0 0 22px rgba(233,195,73,.55), 0 8px 24px rgba(233,195,73,.4), inset 0 1px 0 rgba(255,255,255,.6);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn.secondary { color: var(--gold-soft); background: transparent; border-color: var(--gold-soft); box-shadow: none; }
.btn.secondary:hover { color: var(--on-gold); background: var(--gold-soft); filter: none; box-shadow: 0 0 18px rgba(233,195,73,.4); }
/* Toplist CTA: a touch larger + steady glow to read as the primary action */
.toplist-cta { min-height: 48px; padding: 12px 26px; font-size: .82rem; box-shadow: 0 0 0 1px rgba(255,224,136,.3), 0 0 16px rgba(233,195,73,.4), 0 6px 18px rgba(233,195,73,.3), inset 0 1px 0 rgba(255,255,255,.55); }
main { background: var(--background); }
section, .section { padding: 56px 0; }
.section-tight { padding: 34px 0; }
.content { width: min(860px, 100%); }
.content-wide { width: min(1080px, 100%); }
.content h2, .content-wide h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; font-weight: 600; }
.content h3, .content-wide h3 { font-size: 1.2rem; margin: 26px 0 8px; font-weight: 600; color: var(--gold-soft); }
.content p, .content-wide p { margin: 0 0 16px; color: var(--muted); }
.content li, .content-wide li { color: var(--muted); }
.content a:not(.btn), .content-wide a:not(.btn) { color: var(--primary); }
a.btn:not(.secondary), .content a.btn:not(.secondary), .content-wide a.btn:not(.secondary) { color: #2a2000; }
.content a.btn.secondary, .content-wide a.btn.secondary { color: var(--gold-soft); }
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr); gap: 30px; align-items: start; }
.notice {
  border-left: 4px solid var(--gold);
  background: rgba(233,195,73,.06);
  padding: 14px 16px;
  border-radius: 4px;
  margin: 18px 0;
  color: var(--muted);
}
body[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--gold); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface-container);
  border: 1px solid var(--gold-glow);
  border-radius: 8px;
  padding: 20px;
}
.card h3 { margin-top: 0; color: var(--gold-soft); }
.card p, .card li { color: var(--muted); }
.stat-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stat { background: var(--surface-high); border-radius: 4px; padding: 5px 10px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid rgba(68,71,77,.4); border-radius: 8px; background: var(--surface-low); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { text-align: left; padding: 14px 14px; border-bottom: 1px solid rgba(68,71,77,.25); vertical-align: top; color: var(--ink); }
body[dir="rtl"] th, body[dir="rtl"] td { text-align: right; }
th { background: var(--surface-lowest); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-lowest); }
.brand-badge {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: var(--primary-container);
  color: var(--gold-soft);
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}
body[dir="rtl"] .brand-badge { margin-right: 0; margin-left: 8px; }
.breadcrumb { font-size: .84rem; color: var(--faint); margin: 0 0 18px; }
.breadcrumb a { color: var(--faint); }
.faq details { background: var(--surface-container); border: 1px solid var(--gold-glow); border-radius: 8px; padding: 14px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.author-box { display: flex; gap: 14px; align-items: center; background: var(--surface-container); border: 1px solid var(--gold-glow); border-radius: 8px; padding: 16px; }
.avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--gold-soft); font-weight: 700; }
.site-footer { background: var(--surface-lowest); color: var(--muted); padding: 46px 0 24px; border-top: 1px solid rgba(233,195,73,.1); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.footer-col-title { color: var(--gold-soft); font-size: .82rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.site-footer a { color: var(--muted); display: block; text-decoration: none; margin: 6px 0; font-size: .9rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-strip { border-top: 1px solid rgba(68,71,77,.25); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: var(--faint); }
@media (max-width: 980px) {
  .hero-grid, .split, .grid.two, .grid.three, .footer-grid { grid-template-columns: 1fr; }
  .quick-panel { margin-top: 8px; }
}

/* Toplist table (homepage brand toplist) */
.toplist-table .col-rank { width: 50px; font-weight: 800; font-size: 1.15rem; color: var(--gold-soft); }
.toplist-row.highlight-row { background: rgba(233,195,73,.07); box-shadow: inset 4px 0 0 var(--gold); }
body[dir="rtl"] .toplist-row.highlight-row { box-shadow: inset -4px 0 0 var(--gold); }
.toplist-table .toplist-cta { white-space: nowrap; }
.toplist-brand { display: flex; align-items: center; gap: 12px; }
.toplist-logo { flex: 0 0 auto; width: 104px; height: 58px; display: inline-grid; place-items: center; border-radius: 6px; background: #fff; padding: 6px; }
.toplist-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.toplist-logo-fallback { background: var(--primary-container); color: var(--gold-soft); font-weight: 700; }
.toplist-lead { color: var(--muted); max-width: 760px; margin: 0 0 8px; }

/* Brand-logo review hero */
.hero-brand { margin: 0 0 16px; }
.hero-brand-logo, .hero-brand-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; padding: 8px 14px; height: 72px;
  max-width: 220px; object-fit: contain;
}
.hero-brand-fallback { width: 96px; color: var(--primary-container); font-weight: 800; font-size: 1.8rem; letter-spacing: .04em; }
.verdict-box { background: var(--surface-low); border: 1px solid var(--gold-soft); border-radius: 8px; padding: 18px 20px; margin: 18px 0; }
.verdict-box h2 { margin-top: 0; }
.byline { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.byline a { color: var(--gold-soft); }

/* Author hub avatars */
.author-portrait { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--gold-soft); font-weight: 800; font-size: 2.2rem; flex: 0 0 auto; }
.avatar-img, .author-portrait-img { overflow: hidden; padding: 0; }
.avatar-img img, .author-portrait-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Mobile hamburger nav */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold-soft); margin: 4px 0; border-radius: 2px; }
.nav-close { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 990; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .site-header { position: sticky; }
  .nav-wrap { min-height: 56px; }
  .nav-toggle { display: block; z-index: 1001; }
  .nav-toggle[aria-expanded="true"] { display: none; }
  .nav-close { display: block; position: absolute; top: 14px; right: 16px; background: transparent; border: 0; color: var(--gold-soft); font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
  body[dir="rtl"] .nav-close { right: auto; left: 16px; }
  .nav {
    position: fixed; inset: 0; transform: translateX(100%);
    transition: transform .25s ease; z-index: 1000;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 64px 20px 24px; overflow-y: auto;
    background: var(--surface-low); flex-wrap: nowrap;
  }
  body[dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.open { transform: translateX(0); }
  .nav a, .nav details > summary { font-size: 1.05rem; padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
  .dropdown { position: static; margin-top: 4px; box-shadow: none; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 54px; }
  h1 { font-size: 2rem; }
  section, .section { padding: 42px 0; }
  /* Hero Top Picks: show only the #1 pick on mobile to keep the fold tight */
  .top-three .rank-card:not(:first-child) { display: none; }
  .quick-panel h2::after { content: " — #1 pick"; }
  /* Toplist table -> vertical card reflow (brand toplist only, not data tables) */
  .table-wrap:has(.toplist-table) { overflow: visible; border: 0; background: transparent; }
  .toplist-table { min-width: 0; }
  .toplist-table thead { display: none; }
  .toplist-table, .toplist-table tbody, .toplist-table tr, .toplist-table td { display: block; width: 100%; }
  .toplist-table tr {
    border: 1.5px solid var(--line); border-radius: 14px; margin: 0 0 14px;
    padding: 16px 14px; background: var(--surface-dim); text-align: center;
  }
  .toplist-table tr.highlight-row { border-color: var(--gold); box-shadow: none; }
  .toplist-table td { border: 0; padding: 5px 0; text-align: center; }
  .toplist-table td::before { content: attr(data-label) ": "; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
  .toplist-table td[data-label]:first-child::before, .toplist-table td.toplist-action::before { content: ""; }
  .toplist-table .col-rank { font-size: 1rem; }
  .toplist-table .toplist-brand { flex-direction: column; align-items: center; gap: 8px; }
  .toplist-table .toplist-logo { width: 150px; height: 80px; }
  .toplist-table .toplist-action .btn { display: block; width: 100%; margin-top: 8px; }
  /* Generic data tables -> key/value card reflow (labels injected by JS from <thead>) */
  .table-wrap:has(table:not(.toplist-table)) { overflow: visible; border: 0; background: transparent; }
  table:not(.toplist-table) { min-width: 0; }
  table:not(.toplist-table) thead { display: none; }
  table:not(.toplist-table), table:not(.toplist-table) tbody,
  table:not(.toplist-table) tr, table:not(.toplist-table) td { display: block; width: 100%; }
  table:not(.toplist-table) tr {
    border: 1px solid rgba(68,71,77,.5); border-radius: 10px; margin: 0 0 12px;
    padding: 8px 14px; background: var(--surface-dim);
  }
  table:not(.toplist-table) td {
    border: 0; padding: 7px 0; display: flex; gap: 14px; align-items: baseline;
    justify-content: space-between; text-align: right; border-bottom: 1px solid rgba(68,71,77,.2);
  }
  table:not(.toplist-table) tr td:last-child { border-bottom: 0; }
  table:not(.toplist-table) td::before {
    content: attr(data-label); flex: 0 0 38%; text-align: left;
    color: var(--gold-soft); font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
  }
  body[dir="rtl"] table:not(.toplist-table) td { text-align: left; }
  body[dir="rtl"] table:not(.toplist-table) td::before { text-align: right; }
}
