/* ================================================================
   OnlineCasinoSverige.com — Premium Dark Theme v3
   Full rewrite: fixed guide grid, casino cards, mobile layout
   ================================================================ */

/* ----------------------------------------------------------------
   1. RESET & CSS VARIABLES
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0d1117;
  --bg-card:      #161b22;
  --bg-card-2:    #1c2330;
  --bg-section:   #0f1520;
  --accent:       #f0c040;
  --accent-h:     #f5cc55;
  --accent-dim:   #c49a10;
  --text:         #e6edf3;
  --text-2:       #8b949e;
  --text-3:       #6e7681;
  --border:       #30363d;
  --border-2:     #21262d;
  --tag-bg:       #0d2818;
  --tag:          #3fb950;
  --tag-b:        #238636;
  --red:          #f85149;
  --r-sm:         6px;
  --r-md:         12px;
  --r-lg:         18px;
  --sh-card:      0 4px 24px rgba(0, 0, 0, 0.45);
  --sh-hover:     0 10px 48px rgba(0, 0, 0, 0.65);
  --sh-gold:      0 4px 24px rgba(240, 192, 64, 0.22);
  --tr:           0.2s ease;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:        1220px;
  --header-h:     64px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover {
  color: var(--accent-h);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.35rem;
}

/* Utility: prevent text overflow in flex/grid children */
.truncate { min-width: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ----------------------------------------------------------------
   2. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr), color var(--tr);
  white-space: nowrap;
  line-height: 1;
}

.btn-gold {
  background: linear-gradient(135deg, #f0c040, #dda820);
  color: #0d1117;
  box-shadow: var(--sh-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f5cc50, #eab830);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 192, 64, 0.4);
  color: #0d1117;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(240, 192, 64, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-lg {
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
  border-radius: var(--r-md);
}


/* ----------------------------------------------------------------
   3. HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  transition: box-shadow var(--tr), border-color var(--tr);
}
.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.logo em { color: var(--accent); font-style: normal; }
.logo-icon { font-size: 1.25rem; }
.footer-logo { font-size: 0.9rem; }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color var(--tr), background var(--tr);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.45rem 1.1rem;
  font-size: 0.84rem;
  margin-left: 0.5rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ----------------------------------------------------------------
   4. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background: var(--bg);
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(
    ellipse at 50% 25%,
    rgba(240, 192, 64, 0.11) 0%,
    rgba(240, 120, 0, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.15), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.25);
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.6px;
}

.h1-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.94rem, 2.4vw, 1.1rem);
  color: var(--text-2);
  margin: 0 auto 0.85rem;
  max-width: 660px;
  line-height: 1.65;
}

.hero-disclaimer {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.5rem;
}
.hero-disclaimer a { color: var(--text-3); text-decoration: underline; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-bottom: 2.4rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.stat-icon { font-size: 1rem; }

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ----------------------------------------------------------------
   5. SECTION HEADERS (shared)
   ---------------------------------------------------------------- */
.section-header { margin-bottom: 1.25rem; }

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
}


/* ----------------------------------------------------------------
   6. TOPPLISTA
   ---------------------------------------------------------------- */
.topplista-section { padding: 4.5rem 0 3rem; }

.topplista-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  font-size: 0.77rem;
  color: var(--text-3);
  margin-bottom: 1.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
}
.meta-sep { color: var(--border); }

/* Casino List */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---- Casino Card ---- */
.casino-card {
  display: grid;
  /* rank | logo | info | cta */
  grid-template-columns: 68px 108px minmax(0, 1fr) 168px;
  grid-template-rows: 1fr;
  column-gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

/* Gold left accent bar */
.casino-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  transition: background var(--tr);
}

.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-hover);
  border-color: rgba(240, 192, 64, 0.25);
}
.casino-card:hover::before {
  background: var(--accent);
}

/* #1 card special */
.casino-card--top {
  border-color: rgba(240, 192, 64, 0.35);
  background: linear-gradient(135deg, #161b22 0%, #1a2333 100%);
  box-shadow: 0 2px 20px rgba(240, 192, 64, 0.07);
}
.casino-card--top::before { background: var(--accent); }
.casino-card--top:hover {
  border-color: rgba(240, 192, 64, 0.55);
  box-shadow: 0 10px 50px rgba(240, 192, 64, 0.16);
}

/* Rank column */
.casino-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  flex-shrink: 0;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.casino-card--top .rank-number { font-size: 1.75rem; }

.rank-badge {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-best     { background: var(--accent); color: #0d1117; }
.badge-paynplay { background: #1a56db; color: #fff; }
.badge-new      { background: #16a34a; color: #fff; }

/* Logo column */
.casino-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.casino-logo {
  width: 100px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 900;
  font-family: var(--font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  user-select: none;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--tr), box-shadow var(--tr);
}
.casino-card:hover .casino-logo {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.logo-abbr  { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.5px; }
.logo-abbr2 { font-size: 0.63rem; font-weight: 800; opacity: 0.9; }

/* Per-brand logo colors */
.logo-betmgm  { background: linear-gradient(135deg, #002d72, #003f9f); }
.logo-betmgm .logo-abbr  { color: #fff; }
.logo-betmgm .logo-abbr2 { color: #c8a951; }
.logo-speedy  { background: linear-gradient(135deg, #ff5a00, #cc3a00); color: #fff; }
.logo-speedy .logo-abbr { font-size: 0.63rem; letter-spacing: 1px; }
.logo-expekt  { background: linear-gradient(135deg, #c00020, #900018); color: #fff; }
.logo-expekt .logo-abbr { font-size: 0.63rem; letter-spacing: 1px; }
.logo-jubla   { background: linear-gradient(135deg, #5b21b6, #4c1d95); color: #ddd6fe; }
.logo-jubla .logo-abbr { font-size: 0.68rem; letter-spacing: 1px; }
.logo-otto    { background: linear-gradient(135deg, #0d9488, #0a6e66); color: #fff; }
.logo-otto .logo-abbr { font-size: 0.8rem; letter-spacing: 2px; }
.logo-mrvegas { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.logo-mrvegas .logo-abbr  { color: #fff; font-size: 0.7rem; }
.logo-mrvegas .logo-abbr2 { color: #fcd34d; }
.logo-voodoo  { background: linear-gradient(135deg, #3b0764, #581c87); color: #c4b5fd; }
.logo-voodoo .logo-abbr { font-size: 0.83rem; letter-spacing: 1px; }
.logo-1x2     { background: linear-gradient(135deg, #166534, #14532d); color: #86efac; }
.logo-1x2 .logo-abbr { font-size: 0.88rem; letter-spacing: 2px; }
.logo-mega    { background: linear-gradient(135deg, #78350f, #92400e); color: #fde68a; }
.logo-mega .logo-abbr { font-size: 0.68rem; letter-spacing: 2px; }
.logo-cherry  { background: linear-gradient(135deg, #be123c, #9f1239); color: #fff; }
.logo-cherry .logo-abbr { font-size: 1.1rem; }

/* Info column */
.casino-info {
  min-width: 0; /* critical: prevents grid blowout */
}

.casino-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.3rem;
}

.casino-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casino-stars {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.stars      { color: var(--accent); font-size: 0.82rem; letter-spacing: 1px; }
.rating-num { font-size: 0.78rem; font-weight: 700; color: var(--text-2); }

.casino-bonus {
  margin-bottom: 0.22rem;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bonus-label { color: var(--text-2); margin-right: 0.25rem; }
.bonus-value { color: var(--accent); font-weight: 700; }

.casino-wagering {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.casino-wagering strong { color: var(--text-2); }

.casino-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag);
  border: 1px solid var(--tag-b);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.17rem 0.48rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* CTA column */
.casino-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex-shrink: 0;
  text-align: center;
}
.casino-cta .btn { width: 100%; font-size: 0.86rem; }

.casino-review-link {
  font-size: 0.72rem;
  color: var(--text-3);
  text-decoration: underline;
  text-align: center;
}
.casino-review-link:hover { color: var(--text-2); }

.casino-disclaimer {
  font-size: 0.62rem;
  color: var(--text-3);
  line-height: 1.4;
  text-align: center;
}
.casino-disclaimer a { color: var(--text-3); text-decoration: underline; }

/* Affiliate notice */
.affiliate-notice {
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
}
.affiliate-notice p {
  font-size: 0.73rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ----------------------------------------------------------------
   7. WHY US
   ---------------------------------------------------------------- */
.why-us-section {
  background: var(--bg-section);
  padding: 4rem 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
  border-color: rgba(240, 192, 64, 0.2);
}
.why-icon        { font-size: 2.25rem; margin-bottom: 0.9rem; display: block; }
.why-us-card h3  { font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.why-us-card p   { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }


/* ----------------------------------------------------------------
   8. GUIDE SECTION  ← MAIN FIX: explicit grid-column placement
   ---------------------------------------------------------------- */
.guide-section { padding: 4.5rem 0 3.5rem; }

/*
  Layout: 3 grid children in a 2-column grid.
  Using explicit grid placement so each child lands in the right spot:
  - .guide-toc    → col 1, row 1
  - .guide-content → col 1, row 2
  - .guide-sidebar → col 2, row 1 to end (sticky on right)
*/
.guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-rows: auto auto;
  column-gap: 3rem;
  row-gap: 0;
  align-items: start;
}

/* TOC: top of left column */
.guide-toc {
  grid-column: 1;
  grid-row: 1;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.15);
  border-radius: var(--r-md);
  padding: 1.4rem;
  margin-bottom: 2.25rem;
}

/* Main article: bottom of left column */
.guide-content {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* Sidebar: right column, spans both rows, sticky */
.guide-sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

/* TOC internals */
.toc-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
  letter-spacing: 0.3px;
}
.toc-list { padding-left: 1.1rem; }
.toc-list li { margin-bottom: 0.38rem; }
.toc-list a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--tr);
}
.toc-list a:hover { color: var(--accent); text-decoration: underline; }

/* Guide content typography */
.guide-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-2);
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.guide-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-content h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.guide-content p {
  color: var(--text-2);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.82;
}
.guide-content p strong { color: var(--text); }

.guide-content ul,
.guide-content ol {
  margin-bottom: 1rem;
  color: var(--text-2);
  font-size: 0.92rem;
}
.guide-content li { margin-bottom: 0.45rem; line-height: 1.7; }
.guide-content a  { color: var(--accent); }
.guide-content a:hover { color: var(--accent-h); }
.guide-content em { font-style: italic; color: var(--text); }

/* Step list */
.step-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.step-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--tr);
}
.step-list li:hover { border-color: rgba(240, 192, 64, 0.2); }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1117;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-list li > div strong {
  color: var(--text);
  font-size: 0.91rem;
  display: block;
  margin-bottom: 0.22rem;
}
.step-list li > div p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.83rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.comparison-table thead { background: rgba(240, 192, 64, 0.08); }
.comparison-table th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-2);
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td strong { color: var(--text); }
.comparison-table tbody tr:hover td { background: rgba(240, 192, 64, 0.03); }

/* RG warning box */
.rg-box {
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
}
.rg-box p { margin: 0; color: var(--text-2); font-size: 0.87rem; }
.rg-box p + p { margin-top: 0.55rem; }
.rg-box a { color: var(--accent); }

/* Sidebar boxes */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem;
}
.sidebar-box h3 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { margin-bottom: 0.4rem; }
.sidebar-box ul li a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
}
.sidebar-box ul li a:hover { color: var(--accent); }

.sidebar-toplist {}
.sidebar-casino-mini {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-2);
}
.sidebar-casino-mini:last-child { border-bottom: none; padding-bottom: 0; }
.scm-rank { font-size: 0.78rem; font-weight: 900; color: var(--accent); min-width: 22px; }
.scm-name { font-size: 0.8rem; font-weight: 600; color: var(--text); flex: 1; }
.scm-cta {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d1117;
  background: var(--accent);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--tr);
  flex-shrink: 0;
}
.scm-cta:hover { background: var(--accent-h); color: #0d1117; text-decoration: none; }

.sidebar-box--rg {
  border-color: rgba(240, 192, 64, 0.2);
  background: rgba(240, 192, 64, 0.03);
}
.sidebar-rg-text {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.8rem;
  line-height: 1.5;
}


/* ----------------------------------------------------------------
   9. FAQ
   ---------------------------------------------------------------- */
.faq-section {
  background: var(--bg-section);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-2);
}

.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item.open { border-color: rgba(240, 192, 64, 0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.91rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--tr), background var(--tr);
}
.faq-question:hover { color: var(--accent); background: rgba(240, 192, 64, 0.04); }
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-2);
  font-size: 0.87rem;
  line-height: 1.75;
  animation: fadeIn 0.2s ease;
}
.faq-answer a { color: var(--accent); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------------
   10. RG FOOTER BAR
   ---------------------------------------------------------------- */
.rg-footer {
  background: #06101a;
  border-top: 1px solid rgba(240, 192, 64, 0.12);
  padding: 0.75rem 0;
}
.rg-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.rg-footer-inner a { color: var(--text-3); text-decoration: underline; }
.rg-footer-inner strong { color: var(--text-2); }
.rg-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border-2);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-2);
}

.footer-tagline {
  font-size: 0.79rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-trust-logos { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trust-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.age-badge {
  background: rgba(248, 81, 73, 0.15);
  border-color: var(--red);
  color: var(--red);
}

.footer-nav h4,
.footer-license h4 {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.footer-nav ul,
.footer-license ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li,
.footer-license li { margin-bottom: 0.45rem; }
.footer-nav a,
.footer-license a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-license a:hover { color: var(--accent); }
.footer-license span { font-size: 0.82rem; color: var(--text-2); }

.footer-disclaimer {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border-2);
}
.footer-disclaimer p {
  font-size: 0.71rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 960px;
}
.footer-disclaimer a { color: var(--text-3); text-decoration: underline; }

.footer-copyright { padding: 1rem 1.5rem; }
.footer-copyright p {
  font-size: 0.72rem;
  color: var(--text-3);
  text-align: center;
}


/* ================================================================
   12. RESPONSIVE BREAKPOINTS
   Mobile-first corrections applied top to bottom
   ================================================================ */

/* --- Tablet large: ≤1100px --- */
@media (max-width: 1100px) {
  .casino-card {
    grid-template-columns: 60px 96px minmax(0, 1fr) 152px;
    column-gap: 0.85rem;
    padding: 1rem 1.1rem;
  }
  .casino-logo { width: 90px; height: 42px; }
  .guide-inner { column-gap: 2rem; }
  .guide-sidebar { grid-column: 2; }
}

/* --- Tablet: ≤900px --- */
@media (max-width: 900px) {
  /* Guide: collapse to single column */
  .guide-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .guide-toc    { grid-column: 1; grid-row: 1; margin-bottom: 1.75rem; }
  .guide-content { grid-column: 1; grid-row: 2; }
  .guide-sidebar {
    grid-column: 1;
    grid-row: 3;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* --- Tablet small: ≤768px --- */
@media (max-width: 768px) {
  /* Casino card: hide logo column */
  .casino-card {
    grid-template-columns: 56px minmax(0, 1fr) 148px;
    column-gap: 0.75rem;
    padding: 0.9rem 1rem;
  }
  .casino-logo-wrap { display: none; }
}

/* --- Mobile nav: ≤640px --- */
@media (max-width: 640px) {
  /* Show hamburger, hide desktop nav + header CTA */
  .nav-toggle   { display: flex; }
  .header-cta   { display: none; }

  /* Mobile nav overlay */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 14, 0.98);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.2rem;
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-2);
  }
  .main-nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row .btn { width: 100%; max-width: 300px; }
  .hero-stats { gap: 0.5rem 1.25rem; }

  /* Casino cards: stack info + CTA below rank */
  .casino-card {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.65rem;
    row-gap: 0.7rem;
    padding: 0.85rem 0.9rem;
  }
  .casino-logo-wrap { display: none; }  /* already hidden at 768 */
  .casino-rank  {
    grid-column: 1;
    grid-row: 1 / 3; /* span both rows */
    align-self: start;
    padding-top: 0.15rem;
  }
  .casino-info {
    grid-column: 2;
    grid-row: 1;
  }
  .casino-cta {
    grid-column: 2;
    grid-row: 2;
    align-items: stretch;
    min-width: 0;
  }
  .casino-cta .btn { width: 100%; }
  .rank-number { font-size: 1.3rem; }
  .casino-card--top .rank-number { font-size: 1.5rem; }

  /* Guide sidebar back to flex row */
  .guide-sidebar {
    grid-template-columns: 1fr;
  }

  /* Why us */
  .why-us-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  /* FAQ */
  .faq-question { font-size: 0.84rem; padding: 0.95rem 1.1rem; }

  /* Tables */
  .comparison-table th,
  .comparison-table td { padding: 0.55rem 0.7rem; font-size: 0.76rem; }
}

/* --- Small mobile: ≤400px --- */
@media (max-width: 400px) {
  h1 { font-size: 1.7rem; }
  .hero-badge { font-size: 0.65rem; }
  .casino-name { font-size: 0.9rem; }
  .bonus-value { font-size: 0.82rem; }
  .rank-number { font-size: 1.2rem; }
  .casino-card--top .rank-number { font-size: 1.35rem; }
  .casino-cta .btn { font-size: 0.82rem; padding: 0.6rem 1rem; }
}
