:root {
  /* Brand + surface tokens now defer to the per-tenant theme layer
     (worker/site-settings.js buildThemeCss), which injects a
     <style id="tenant-theme"> block after all these files load.
     The value on the right of each var() is only a fallback for
     when that theme block fails to render, not the live default. */
  --primary: var(--theme-primary, #D4AF37);          /* was #6c5ce7 */
  --primary-dark: var(--theme-primary-hover, #B8952E); /* was #5a4bd1 */
  --surface-dark: var(--theme-surface, #000000);       /* was #1a1a2e */

/*  --primary: var(--theme-primary, #6c5ce7);
  --primary-dark: var(--theme-primary-hover, #5a4bd1);
*/
  /* --dark = TEXT color only (see --surface-dark below for backgrounds) */
  --dark: var(--theme-text, #1a1a2e);
  /* --surface-dark = dark chrome BACKGROUNDS (header, footer, dark panels) */
/*  --surface-dark: var(--theme-surface, #1a1a2e);*/
  --dark-2: var(--theme-surface-alt, #16213e);

  --gray: var(--theme-text-muted, #64748b);
  --light-gray: var(--theme-border, #e3e6ef);        /* nudged toward a cooler blue-gray */
  --bg: var(--theme-background, #f5f7fc);            /* faint blue-lavender tint instead of flat gray */
  --white: #fff;

  /* Semantic status colors stay fixed — not part of tenant branding */
  --success: #06a674;    /* was #00b894 -- shifted a touch toward forest-green */
  --danger: #e74c3c;
  --warning: #fdcb6e;

  --radius: var(--theme-card-radius, 12px);
  --btn-radius: var(--theme-button-radius, 14px);    /* was 8px -- buttons now rounder than cards */
  --shadow: 0 2px 8px rgba(15,23,42,0.12);           /* was rgba(0,0,0,0.08) -- slate-tinted, more depth */
  --shadow-lg: 0 10px 34px rgba(15,23,42,0.16);      /* was 0 8px 30px rgba(0,0,0,0.12) */
  --container: var(--theme-container-width, 1200px);

  /* Spacing scale — did not exist anywhere in the codebase before.
     Consumers should prefer these over ad-hoc px values. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Typography scale — headings previously had weight/line-height
     rules but no controlled font-size anywhere, relying on browser
     UA defaults. clamp() keeps them fluid instead of jumping at
     breakpoints. */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.93rem + 0.1vw, 1rem);
  --text-lg: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --text-xl: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --text-2xl: clamp(1.4rem, 1.25rem + 0.75vw, 1.75rem);
  --text-3xl: clamp(1.7rem, 1.45rem + 1.25vw, 2.25rem);
  --text-4xl: clamp(2.1rem, 1.7rem + 2vw, 3rem);
  --text-5xl: clamp(2.6rem, 2rem + 3vw, 3.75rem);
}

:root {
  --theme-primary: #EE9F28 !important;
  --theme-primary-hover: #D8840D !important;
  --theme-accent: #EE9F28 !important;

  --theme-surface: #14172b !important;      /* was pure #000000 -- navy-tinted black */
  --theme-surface-alt: #1b2040 !important;  /* was #0A0A0A -- lifted, slightly blue */

  --primary: var(--theme-primary, #EE9F28);
  --primary-dark: var(--theme-primary-hover, #D8840D);
  --surface-dark: var(--theme-surface, #000000);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--btn-radius); font-weight: 600;
  font-size: 14px; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn--secondary {
  background: var(--dark-2);
  color: var(--white);
}
.btn--secondary:hover {
  background: var(--surface-dark);
  text-decoration: none;
}
.btn--ghost { background: transparent; border: 2px solid var(--light-gray); color: var(--dark); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn--success { background: var(--success); color: var(--white); }
.btn--success:hover { filter: brightness(0.92); text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { filter: brightness(0.92); text-decoration: none; }
.btn--sm { padding: 6px 12px; font-size: 12px; }

.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* Header */
.site-header {
  background: var(--surface-dark); color: var(--white);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 20px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo-icon{
    width:40px;
    height:40px;
    object-fit:contain;
}

.logo-text{
    font-family:Orbitron,sans-serif;
    font-size:1.2rem;
    font-weight:700;
    letter-spacing:0;
    color:#fff;
}

.logo-dot{
    color:#ffffff;
}

.logo-accent{
    color: var(--theme-accent, #A855F7);
}
.logo:hover { text-decoration: none; }

.main-nav { display: none; gap: 24px; }
.main-nav a { color: var(--light-gray); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--white); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto;}

/* Search */
.search-box { position: relative; }
.search-box input {
  padding: 8px 14px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.1); color: var(--white); width: 200px; font-size: 13px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; max-height: 400px; overflow-y: auto;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--light-gray); cursor: pointer;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 32px; height: 32px; border-radius: 6px; }

.nav-toggle { display: block; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }


/* Layout */
.layout-wrapper {
  display: grid; grid-template-columns: 1fr 300px; gap: 30px;
  max-width: var(--container); margin: 30px auto; padding: 0 20px;
}
.main-content { min-width: 0; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 20px; font-size: 13px; color: var(--gray); }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--dark-2) 100%);
  color: var(--white); padding: 60px 0; text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: 0.85; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   Dynamic homepage hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
}

.hero-content--left {
  margin-right: auto;
  text-align: left;
}

.hero-content--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-content--right {
  margin-left: auto;
  text-align: right;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.hero-subtitle {
  margin-bottom: 12px;
}

.hero-description {
  margin-bottom: 24px;
}

/* Sections */
.section { padding: 50px 0; }
.section--alt { background: var(--white); }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px;
}
.section-header h2 { font-size: 28px; }
.link { font-size: 14px; font-weight: 600; }


/* Bonus title */

.bonus-title {
  color: #596579;

  font-size: clamp(10px, .8vw, 12px);

  line-height: 1.25;

  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* Bonus value */

.bonus-value {
  min-width: 0;

  color: #4f3cc9;

  font-size: clamp(16px, 1.25vw, 20px);

  line-height: 1.2;

  font-weight: 850;

  letter-spacing: -.015em;

  overflow-wrap: anywhere;
  word-break: break-word;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;

  overflow: hidden;
}


/* ============================================================
   GENERAL CARD CONTENT PROTECTION
   Fix: the ':is(' opener was missing here, making this whole rule
   invalid CSS — browsers silently dropped it, so long titles/values
   in these cards had no overflow protection in production.
   ============================================================ */
.feature-card :is(h3, span, div, a, strong, small, label),
.news-card :is(h3, span, div, a, strong, small, label),
.info-card :is(h3, span, div, a, strong, small, label),
.review-card :is(h3, span, div, a, strong, small, label) {
  max-width: 100%;

  overflow-wrap: anywhere;
  word-break: break-word;
}

/* .casino-grid / .casino-card: see casino.css — the documented
   single source of truth for that namespace. A dead, never-live
   commented-out copy previously sat here; removed. */

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card { text-align: center; padding: 30px 20px; }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 14px; }


/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-2px); }
.news-card h3 { font-size: 18px; margin-bottom: 8px; }
.news-card p { color: var(--gray); font-size: 14px; }
.news-card .news-date { font-size: 12px; color: var(--gray); margin-top: 12px; }

/* Sidebar */
/*.sidebar { display: flex; flex-direction: column; gap: 20px; }*/
.sidebar {
  display: flex; flex-direction: column; gap: 20px;
  align-self: start;               /* stop stretching to match main content's height */
  position: sticky;
  top: 84px;                       /* 64px header + 20px breathing room */
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-block {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-block h3 { font-size: 16px; margin-bottom: 14px; }
.sidebar-casinos { display: flex; flex-direction: column; gap: 10px; }
.sidebar-casino {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 8px; transition: background 0.2s;
}
.sidebar-casino:hover { background: var(--bg); text-decoration: none; }
.sidebar-casino img { width: 32px; height: 32px; border-radius: 6px; }
.sidebar-casino strong { font-size: 14px; color: var(--dark); }
.sidebar-casino .rating { font-size: 12px; color: var(--warning); }

.chip {
  display: inline-block; padding: 6px 14px; background: var(--bg);
  border-radius: 20px; font-size: 13px; margin: 3px; color: var(--dark);
  border: 1px solid var(--light-gray);
}
.chip:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.country-chips, .category-list { display: flex; flex-wrap: wrap; }

/* .site-footer / .footer-grid / .footer-col / .footer-bottom base
   rules consolidated into the single footer section further down
   this file (search "Footer — consolidated"). This file previously
   had 3 separate, partially-conflicting copies. */

/* Casino Detail */
/* Casino Detail */
.casino-hero {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); margin-bottom: 30px; flex-wrap: wrap; gap: 20px;
}
.casino-hero__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.casino-hero__logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--light-gray);
  padding: 8px;
}
.casino-hero__left > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.casino-hero__left h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rating-stars {
  color: var(--warning);
  font-size: 18px;
  letter-spacing: 2px;
}
.casino-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}
.bonus-box {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--bg)), var(--bg));
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--light-gray));
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.bonus-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 4px;
}
.bonus-amount {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--primary);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .casino-hero__left { flex-wrap: wrap; }
  .casino-hero__logo { width: 64px; height: 64px; }
  .bonus-box { max-width: 100%; }
}

/*
.casino-hero {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); margin-bottom: 30px; flex-wrap: wrap; gap: 20px;
}
.casino-hero__left { display: flex; align-items: center; gap: 16px; }
.casino-hero__logo { width: 80px; height: 80px; border-radius: 12px; object-fit: contain; }
.casino-hero__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bonus-box {
  background: var(--bg); border-radius: var(--radius); padding: 12px 20px;
  text-align: center;
}
.bonus-label { display: block; font-size: 12px; color: var(--gray); text-transform: uppercase; }
.bonus-amount { display: block; font-size: 22px; font-weight: 700; color: var(--primary); }
.rating-stars { color: var(--warning); font-size: 16px; }
*/
/* Casino Detail */

/*.casino-body { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }*/
/* casino-body just stacks its children (top/bottom components + the two-column area) in a single column */
.casino-body { display: flex; flex-direction: column; gap: 30px; }
/* casino-columns is the only part that splits into main content + sidebar */
.casino-columns { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.info-block { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.info-block h2, .info-block h3 { margin-bottom: 14px; }
.features-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag { background: var(--bg); padding: 6px 14px; border-radius: 20px; font-size: 13px; border: 1px solid var(--light-gray); }

.info-card { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.info-card h4 { margin-bottom: 12px; }
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.info-card dt { color: var(--gray); }
.info-card dd { font-weight: 600; text-align: right; word-break: break-all; }



/* Review */
.review-detail { padding: 40px 0; }
.review-header { margin-bottom: 30px; }
.review-header h1 { font-size: 32px; }
.review-meta { margin-top: 8px; color: var(--gray); }
.review-content { font-size: 16px; line-height: 1.8; }
.review-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.pros-cons-block { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pros-cons-block.pros { border-left: 4px solid var(--success); }
.pros-cons-block.cons { border-left: 4px solid var(--danger); }
.pros-cons-block h3 { margin-bottom: 12px; }
.pros-cons-block ul { list-style: none; }
.pros-cons-block li { padding: 6px 0; font-size: 14px; }
.pros-cons-block li::before { margin-right: 8px; }
.pros li::before { content: "\2713"; color: var(--success); }
.cons li::before { content: "\2717"; color: var(--danger); }
.review-cta { text-align: center; margin: 40px 0; }

/* News Detail */
.news-detail { padding: 40px 0; }
.news-header { margin-bottom: 30px; }
.news-content { font-size: 16px; line-height: 1.8; }

/* Auth */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 0; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.auth-card h1 { text-align: center; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border: 1px solid var(--light-gray); border-radius: 8px; font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.auth-footer { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-lead { text-align: center; color: var(--gray); font-size: 14px; margin-bottom: 20px; }

/* ===== FIX: Auth pages — full width, no sidebar (Issue #8) ===== */
.layout-wrapper:has(.auth-page) {
  grid-template-columns: 1fr;
}
.layout-wrapper:has(.auth-page) .sidebar {
  display: none;
}
.auth-page .container {
  display: flex;
  justify-content: center;
}

/* ===== FIX: Admin dashboard — full width, no public sidebar ===== */
.layout-wrapper:has(.admin-wrapper) {
  grid-template-columns: 1fr;
}
.layout-wrapper:has(.admin-wrapper) .sidebar {
  display: none;
}
/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-top: 16px; }
.alert--error { background: #fee; color: var(--danger); }
.alert--success { background: #e6fff5; color: var(--success); }

/* 404 */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 72px; color: var(--primary); }

/* Utilities */
.muted { color: var(--gray); }
.page-content { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }


.btn--secondary {
  background: var(--dark-2);
  color: var(--white);
}
.btn--secondary:hover {
  background: var(--surface-dark);
  text-decoration: none;
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 600;
}


/*.site-header .btn--ghost {
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 3px;
    line-height: 1;
} */
.site-header .btn--ghost {
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 5px;
    line-height: 1;
}

.site-header .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}

.site-header .btn--ghost:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.hero .btn--ghost:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}


.main-nav {
  display: none;
}

.main-nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  right: 20px;
  width: 240px;
  background: var(--surface-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  gap: 12px;
  z-index: 1000;
}

.main-nav.active a {
  color: var(--white);
}

.main-nav.active a:hover {
  color: var(--primary);
}

/* ===== PATCH: Geo availability badge ===== */
.geo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.geo-badge__flag {
  font-size: 28px;
  line-height: 1;
}
.geo-badge__icon {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff;
  line-height: 1;
}
.geo-badge--allowed .geo-badge__icon { color: #00b894; }
.geo-badge--blocked .geo-badge__icon { color: #e74c3c; }
.compliance-row { margin-bottom: 4px; }
.compliance-label { color: var(--gray); font-weight: 600; }
.compliance-value { color: var(--dark); }
.compliance-link { color: var(--primary); font-size: 12px; }

/* ===== PATCH: Footer sticky to bottom ===== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.layout-wrapper {
  flex: 1 0 auto;
}
/* .footer-compliance (no "-box") removed — dead CSS. The real
   template (footer.html) uses class="footer-compliance-box", styled
   in the consolidated footer section below; this class never
   matched any element. .site-footer{flex-shrink:0} folded in there
   too. */

/* ===== PATCH: Mobile search toggle ===== */
.mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.mobile-search-container {
  display: none;
  padding: 10px 20px;
  background: var(--surface-dark);
  position: relative;
}
.mobile-search-container.active {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-search-container input {
  flex: 1;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 14px;
}
.mobile-search-container input::placeholder { color: rgba(255,255,255,0.5); }
.mobile-search-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ===== PATCH: Geo availability on review page ===== */
.geo-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
/* geo-allowed/blocked/unknown + geo-badge--unknown icon color now live
   only in casino.css (the documented single source of truth for the
   casino card/badge system) — this file previously had 3 duplicate/
   conflicting copies of these rules. Removed. */

@media (max-width: 768px) {
  .mobile-search-btn { display: block; }
  .search-box { display: none !important; }
}


/* ===== Page Content Styles ===== */
.page-content h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}
.page-content h2:first-of-type {
  margin-top: 0;
}
.page-content p {
  margin-bottom: 14px;
  line-height: 1.8;
}
.page-content ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.page-content ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.page-content strong {
  font-weight: 700;
}
.page-content a {
  color: var(--primary);
  text-decoration: underline;
}
.page-content a:hover {
  color: var(--primary-dark);
}


/* ===== About Page Styles ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.about-card {
  background: var(--bg);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
}
.about-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.about-card h2 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--primary);
}
.about-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}
.about-standards {
  background: var(--white);
  border: 1px dashed var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}
.about-standards h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.about-standards > p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 14px;
  line-height: 1.7;
}
.about-metrics {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.about-metrics li {
  background: var(--bg);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.about-cta {
  text-align: center;
  padding: 20px 0;
}
.about-cta p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-standards {
    padding: 24px 16px;
  }
}


/* ===== Document Page Styles (Privacy, Terms, Cookies) ===== */
.toc-box {
  background: var(--bg);
  border: 1px dashed var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.toc-box h3 {
  font-size: 16px;
  margin-bottom: 14px;
}
.toc-box ul {
  list-style: none;
  padding: 0;
  column-count: 2;
  column-gap: 30px;
}
.toc-box li {
  margin-bottom: 8px;
  font-size: 14px;
}
.toc-box li a {
  color: var(--primary);
  text-decoration: none;
}
.toc-box li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .toc-box ul {
    column-count: 1;
  }
}


/* ===== Responsible Gambling Page ===== */
.rg-checklist {
  background: var(--bg);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.rg-checklist h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary);
}
.rg-checklist ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.rg-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--light-gray);
}
.rg-checklist li:last-child {
  border-bottom: none;
}
.rg-checklist li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.help-card {
  background: var(--bg);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.help-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.help-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}
.help-card p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ===== Footer — consolidated =====
   This file previously had 3 separate, partially-conflicting
   .site-footer/.footer-grid/.footer-col definitions plus a dead
   .footer-compliance class; this is the single remaining copy.
   Text-color specifics (p/li/a/h4 etc.) are governed by the
   higher-specificity "FOOTER — MAXIMUM READABILITY" section in
   supportive.css, which always wins regardless of what's set here —
   values below are the structural/layout rules plus a sane fallback
   if that file fails to load. */
.site-footer {
  background: var(--surface-dark);
  color: var(--light-gray);
  margin-top: 30px;
  flex-shrink: 0;
}

/* Compliance Section */
.footer-compliance-box {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0 20px;
  margin-bottom: 32px;
}
.compliance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.compliance-logos img {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.compliance-logos a:hover img {
  opacity: 1;
}
.rg-text {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  line-height: 1.6;
}
.rg-text a {
  color: var(--primary);
  text-decoration: underline;
}
.rg-text a:hover {
  color: var(--white);
}
.disclaimer-text {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.disclaimer-text strong {
  color: rgba(255,255,255,0.5);
}

/* Newsletter signup */
.footer-newsletter {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-newsletter h4 {
  margin-bottom: var(--space-2);
}
.footer-newsletter-text {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: var(--space-4);
}
.footer-newsletter-row {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  flex-wrap: wrap;
}
.footer-newsletter-row input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
}
.footer-newsletter-row input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter-message {
  margin-top: var(--space-3);
  font-size: 13px;
}
.newsletter-message--success { color: var(--success); }
.newsletter-message--error { color: var(--danger); }

/* Link Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--light-gray);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

/* Trustpilot */
.trustpilot-review-box {
  text-align: center;
  padding: 24px 0 16px;
}
.trustpilot-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--light-gray);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.trustpilot-review-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.trustpilot-review-btn svg {
  color: #00b67a;
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
}

/* ===== Review Summary ===== */

.review-summary{
    background:#fff;
    border:1px solid var(--light-gray);
    border-radius:14px;
    padding:24px;
    margin:24px 0 32px;
    box-shadow:var(--shadow);
}

.review-summary h2{
    margin:0 0 18px;
    font-size:24px;
}

.review-summary-table{
    width:100%;
    border-collapse:collapse;
}

.review-summary-table th,
.review-summary-table td{
    padding:12px 10px;
    border-bottom:1px solid #ececec;
    text-align:left;
    vertical-align:top;
}

.review-summary-table th{
    width:180px;
    font-weight:700;
    color:#555;
}

.review-summary-table tr:last-child th,
.review-summary-table tr:last-child td{
    border-bottom:none;
}

@media(max-width:768px){

.review-summary-table,
.review-summary-table tbody,
.review-summary-table tr,
.review-summary-table th,
.review-summary-table td{

display:block;

}

.review-summary-table th{
width:100%;
padding-bottom:4px;
}

.review-summary-table td{
padding-top:0;
padding-bottom:16px;
}

}


/* ===== FAQ ===== */

.faq-accordion{
margin:40px 0;
}

.faq-item{
background:#fff;
border:1px solid var(--light-gray);
border-radius:12px;
margin-bottom:14px;
overflow:hidden;
box-shadow:var(--shadow);
}

.faq-question{
width:100%;
background:#fff;
border:none;
padding:18px 22px;
font-size:17px;
font-weight:700;
text-align:left;
cursor:pointer;
position:relative;
}

.faq-question::after{
content:"+";
position:absolute;
right:22px;
font-size:22px;
color:var(--primary);
}

.faq-item.active .faq-question::after{
content:"−";
}

.faq-answer{
display:none;
padding:0 22px 20px;
line-height:1.8;
font-size:15px;
}

.faq-item.active .faq-answer{
display:block;
}


/* ===== Component Engine Styles ===== */
.component-author {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  align-items: flex-start;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info h3 { margin-bottom: 4px; }
.author-title { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.author-bio { color: var(--gray); font-size: 14px; line-height: 1.7; }
.author-social { margin-top: 10px; display: flex; gap: 12px; }
.component-faq { margin: 30px 0; }
.component-text { margin: 20px 0; }
.component-text .text-content { line-height: 1.8; color: var(--dark); }
.component-text .text-content p { margin: 0 0 16px; }
.component-text .text-content p:last-child { margin-bottom: 0; }

.component-cta { text-align: center; padding: 40px 20px; background: var(--bg); border-radius: var(--radius); margin: 20px 0; }
.component-cta .cta-content { margin-bottom: 20px; font-size: 16px; }
.component-html { margin: 20px 0; }
.component-html .html-content { line-height: 1.8; }
.component-banner { margin: 20px 0; }
.component-casino-grid { margin: 30px 0; }
.component-news-feed { margin: 30px 0; }
.component-comparison-table { margin: 30px 0; }
.component-hero { margin: 0; }
.review-block { margin: 30px 0; }
.review-block h2 { margin-bottom: 14px; }
.review-block-content { line-height: 1.8; font-size: 16px; }


/* ===== Sidebar Enhancements ===== */
.sidebar-news { display: flex; flex-direction: column; gap: 10px; }
.sidebar-news-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border-radius: 8px; transition: background 0.2s;
}
.sidebar-news-item:hover { background: var(--bg); text-decoration: none; }
.sidebar-news-item strong { font-size: 14px; color: var(--dark); }
.sidebar-news-item .news-date { font-size: 12px; color: var(--gray); }

.sidebar-search { margin-bottom: 12px; }
.sidebar-search input {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--light-gray); font-size: 13px;
}
.sidebar-search input:focus { outline: none; border-color: var(--primary); }

.btn--block { width: 100%; }


/* ===== Banners ===== */
.site-banner {
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 99;
}
.site-banner strong { margin-right: 8px; }
.site-banner .banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-banner .banner-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.banner-dismiss {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
}
.banner-dismiss:hover { opacity: 1; }


/* ===== FIX: Horizontal overflow prevention (Issues #2, #11) ===== */
html {
  overflow-x: hidden;
}

/* Grid children must allow shrinking below content size */

.main-content,
.casino-body > *,
.casino-columns > *,
.casino-main,
.casino-aside {
  min-width: 0;
}

/* Scrollable containers for wide content (tables, structured data) */
.casino-main,
.info-block,
.info-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tables scroll within their container, never stretch the page */
.casino-main table,
.info-block table,
.review-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

/* Text/features wrap downward, never stretch sideways */
.casino-description,
.info-card dd,
.info-card a,
.features-list,
.review-content p {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ===== FIX: Auth pages — full width, no sidebar (Issue #8) ===== */
.layout-wrapper:has(.auth-page) {
  grid-template-columns: 1fr;
}
.layout-wrapper:has(.auth-page) .sidebar {
  display: none;
}
.auth-page .container {
  display: flex;
  justify-content: center;
}


.cf-turnstile {
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateX(-1px);
}

.auth-page {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-page .container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  box-sizing: border-box;
}


/* ===== Level.casino Sitemap ===== */

.sitemap-page {
    padding-bottom: 60px;
    background: #050505;
    color: #fff;
    font-family: Outfit, sans-serif;
}


.sitemap-hero {
    padding: 70px 20px;
    text-align: center;
    background:
    radial-gradient(circle at top,
    rgba(168,85,247,.25),
    transparent 60%);
}


.sitemap-hero h1 {
    font-family: Orbitron, sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg,#a855f7,#ec4899);
    background-clip:text;
    color:transparent;
}


.sitemap-hero p {
    max-width:700px;
    margin:auto;
    color:#a1a1aa;
    font-size:18px;
}


.sitemap-grid {

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;
}


.sitemap-card {

    background:
    linear-gradient(
    145deg,
    rgba(168,85,247,.12),
    rgba(255,255,255,.03)
    );

    border:1px solid rgba(168,85,247,.25);

    border-radius:20px;

    padding:30px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.45);

    backdrop-filter:blur(12px);

    transition:.25s ease;

}


.sitemap-card:hover {

    transform:translateY(-5px);

    border-color:#ec4899;

    box-shadow:
    0 20px 50px rgba(168,85,247,.25);

}


.sitemap-icon {

    font-size:35px;
    margin-bottom:15px;

}


.sitemap-card h2 {

    font-family:Orbitron,sans-serif;
    font-size:22px;
    margin-bottom:10px;

}


.sitemap-card p {

    color:#a1a1aa;
    margin-bottom:20px;

}


.sitemap-card ul {

    list-style:none;
    padding:0;

    max-height:350px;
    overflow:auto;

}


.sitemap-card li {

    margin-bottom:10px;

}


.sitemap-card a {

    color:#d4d4d8;
    text-decoration:none;
    transition:.2s;

}


.sitemap-card a:hover {

    color:#c084fc;
    padding-left:5px;

}


@media(max-width:600px){

.sitemap-hero h1 {

font-size:34px;

}

.sitemap-card {

padding:22px;

}

}


.summary-preview{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.6;
    max-height: 6.4em; /* 4 × 1.6 */
    max-width: 420px;
}


.review-nav{
    position:sticky;
    top:70px;
    z-index:100;
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:14px;
    margin:24px 0;
    background:#111;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    scrollbar-width:none;
}

.review-nav::-webkit-scrollbar{
    display:none;
}

.review-nav a{
    flex:0 0 auto;
    padding:10px 18px;
    border-radius:999px;
    text-decoration:none;
    color:#fff;
    background:#222;
    transition:.25s;
    white-space:nowrap;
    font-size:.95rem;
    font-weight:600;
}

.review-nav a:hover{
    background:#7c3aed;
}

.review-nav a.active{
    background:#ec4899;
    color:#fff;
}

@media(max-width:768px){

.review-nav{
    top:60px;
    margin:18px 0;
    padding:10px;
}

.review-nav a{
    font-size:.85rem;
    padding:9px 16px;
}

}


/* Breadcrumbs */

.breadcrumbs {
    margin: 16px 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: "/";
    margin: 0 8px;
    color: #888;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: #777;
}


/* =====================================================
   PLATFORM UPDATES
   ===================================================== */

.updates-page {
  padding: 40px 0 80px;
}

.updates-header {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: center;
}

.updates-header .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .7;
}

.updates-header h1 {
  margin: 0 0 15px;
  font-size: 42px;
  line-height: 1.15;
}

.updates-header p {
  margin: 0 auto;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
  opacity: .75;
}

.updates-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.update-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(127, 127, 127, .2);
  background: var(--card-bg, #fff);
}

.update-card-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.update-card-body {
  padding: 22px;
}

.update-card-label,
.update-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .65;
}

.update-card h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.update-card h2 a {
  text-decoration: none;
}

.update-card p {
  margin: 0 0 16px;
  line-height: 1.6;
  opacity: .8;
}

.update-card-meta {
  font-size: 13px;
  opacity: .6;
}

.update-page {
  padding: 40px 0 80px;
}

.update-detail {
  max-width: 900px;
  margin: 0 auto;
}

.update-header {
  margin-bottom: 40px;
}

.update-header h1 {
  margin: 10px 0 18px;
  font-size: 46px;
  line-height: 1.12;
}

.update-excerpt {
  font-size: 20px;
  line-height: 1.6;
  opacity: .75;
  margin-bottom: 24px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  opacity: .7;
}

.update-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-author img {
  border-radius: 50%;
  object-fit: cover;
}

.update-content {
  font-size: 18px;
  line-height: 1.8;
}

.update-content img {
  max-width: 100%;
  height: auto;
}

.update-content h2,
.update-content h3 {
  margin-top: 35px;
}

@media (max-width: 700px) {

  .updates-header h1,
  .update-header h1 {
    font-size: 34px;
  }

  .update-excerpt {
    font-size: 18px;
  }

  .update-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

}


.homepage-section__header--left {
  text-align: left;
}

.homepage-section__header--center {
  text-align: center;
}

.homepage-section__header--right {
  text-align: right;
}

.homepage-section__content--left {
  text-align: left;
}

.homepage-section__content--center {
  text-align: center;
}

.homepage-section__content--right {
  text-align: right;
}

.homepage-section__paragraph {
  margin: 0 0 16px;
}

.homepage-section__paragraphs {
  margin-top: 20px;
}

.homepage-section__subtitle {
  margin-top: 8px;
}

.homepage-section__description {
  margin-top: 10px;
}

.homepage-section__actions {
  margin-top: 24px;
}

.feature-icon--image img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* News grid (shared) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* News list page */
.news-list-page .news-grid > article {
  display: flex;
  flex-direction: column;
}

.news-list-page .news-grid > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* News article page */
.news-detail .news-excerpt {
  font-size: 20px;
  color: var(--gray);
  line-height: 1.6;
  margin: 16px 0 20px;
}

.news-detail .news-featured img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
}

.news-detail .news-featured figcaption {
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  margin-top: 8px;
}

/* Tags */
.news-tags-section {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--light-gray);
}

.news-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--light-gray);
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}


/* Related articles */
.news-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--light-gray);
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.news-related-grid > article {
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-related-grid > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.news-related-grid > article > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.news-related-grid > article img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.news-related-grid > article h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Large tablets / smaller desktops */
@media (max-width: 1200px) {
  .news-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .news-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .news-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-related-grid > article {
    width: 100%;
  }

  .news-related-grid > article > a {
    width: 100%;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .news-related-grid {
    gap: 14px;
  }

  .news-related-grid > article h3 {
    font-size: 18px !important;
  }

  .news-related-grid > article p {
    font-size: 14px !important;
  }
}

/* ============================================================
   NEWS SYSTEM — RESPONSIVE CARD GRID
   ============================================================ */

.news-list-page .news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  align-items: stretch;
}

.news-list-page .news-grid > article {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.news-list-page .news-grid > article > a {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.news-list-page .news-grid > article img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.news-list-page .news-grid > article h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-list-page .news-grid > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Large tablets / smaller desktops */
@media (max-width: 1200px) {
  .news-list-page .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .news-list-page .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .news-list-page .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }

  .news-list-page .news-grid > article {
    width: 100%;
  }

  .news-list-page .news-grid > article > a {
    width: 100%;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .news-list-page .news-grid {
    gap: 14px;
  }

  .news-list-page .news-grid > article > a > div {
    padding: 15px !important;
  }

  .news-list-page .news-grid h3 {
    font-size: 18px !important;
  }

  .news-list-page .news-grid p {
    font-size: 14px !important;
  }
}


/* =====================================================
   Homepage News Cards
   ===================================================== */

#homeNews .news-card {
  overflow: hidden;
  padding: 0;
}

#homeNews .news-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

#homeNews .news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
}

#homeNews .news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

#homeNews .news-card:hover .news-card__image img {
  transform: scale(1.03);
}

#homeNews .news-card__body {
  padding: 18px 20px 20px;
}

#homeNews .news-card__body h3 {
  margin: 0 0 8px;
}

#homeNews .news-card__body p {
  margin: 0;
}

#homeNews .news-card__body .news-date {
  display: block;
  margin-top: 12px;
}

/* Tag chips inside the featured news card */
#homeNews .news-card__tags,
.component-news-feed .news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

#homeNews .news-card__tags .news-tag,
.component-news-feed .news-card__tags .news-tag {
  padding: 3px 10px;
  font-size: 12px;
}

.mobile-bottom-nav {
  background: #000000 !important;
  border-top-color: rgba(255,255,255,0.09) !important;
}
.mobile-nav-item,
.mobile-nav-item .mobile-nav-icon,
.mobile-nav-item .mobile-nav-label {
  color: #ffffff !important;
  opacity: 1 !important;
}

.mobile-nav-item.active {
  color: #EE9F28 !important;  /* gold, so the active tab still stands out */
}


/* Button text visibility: dark text on gold (primary) buttons for
   contrast, solid white text on dark/ghost/secondary buttons. */
.btn--primary {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.btn--ghost,
.site-header .btn--ghost,
.hero .btn--ghost,
.btn--secondary,
.btn--outline {
  color: #ffffff!important;
}

.btn--outline:hover {
  color: #1a1a1a !important;  /* stays readable when it fills gold on hover */
}


.site-header,
.main-nav a,
.site-header .logo-text {
  color: #ffffff !important;
}

.main-nav a:hover {
  color: #EE9F28 !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer dd,
.site-footer dt,
.site-footer span,
.site-footer small,
.footer-col a,
.footer-col h4,
.rg-text,
.disclaimer-text,
.footer-bottom {
  color: rgba(255,255,255,0.92) !important;
}

.footer-col a:hover {
  color: #EE9F28 !important;
}


--theme-text: #ffffff !important;        /* main text -> pure white */
--theme-text-muted: #d0d0d0 !important;   /* secondary/gray text -> bright light gray */


.admin-nav a,
.rg-text,
.disclaimer-text,
.footer-bottom {
  color: rgba(255,255,255,0.85) !important;
}

.search-box input::placeholder,
.mobile-search-container input::placeholder {
  color: rgba(255,255,255,0.7) !important;
}



/* Header: explicit deep gold, decoupled from --theme-surface so it
   doesn't also change the footer/dark panels. !important beats the
   header-style variants (solid/glass/transparent) in site-settings.js
   since none of those declare !important themselves. */

.site-header {
  background:#000000 !important; /* was  #B8860B8;  deep gold */
} 
/*.site-header {
  background: linear-gradient(
    to right,
    #000000 0%,
    #000000 50%,
    #EE9F28 50%,
    #EE9F28 100%
  ) !important;
}*/

/* Footer stays black independently of the header now that header
   no longer reads --theme-surface for this purpose. */
:root {
  --theme-footer-background: #000000 !important;
}


/* Admin buttons: Add / View / Edit -> deep gold.
   Scoped to .admin-content so header/hero/cancel ghost buttons
   elsewhere on the site are unaffected. */
.admin-content .btn--primary,
.admin-content .btn--ghost {
  background: #EE9F28 !important;
  border-color: #EE9F28 !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.admin-content .btn--primary:hover,
.admin-content .btn--ghost:hover {
  background: #996515 !important;
  border-color: #996515 !important;
  color: #1a1a1a !important;
}

.link {
  color: #EE9F28 !important;
}

.link:hover {
  color: #996515 !important;
}


#loadMoreBtn {
  background: #EE9F28 !important;
  border-color: ##EE9F28 !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

#loadMoreBtn:hover {
  background: #996515 !important;
  border-color: #996515 !important;
  color: #1a1a1a !important;
}




/* ==========================================================
   HOMEPAGE TOP COMPONENTS
   Immediately below hero — zero external whitespace
   ========================================================== */

.hero + .component,
.hero + [class*="component-"] {
    margin-top: 0 !important;
}

/* Homepage components themselves must not create large gaps */
.component {
    margin-top: 0 !important;
}

/* Compact CTA spacing */
.component-cta {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Remove unnecessary first/last element margins */
.component-cta > :first-child {
    margin-top: 0 !important;
}

.component-cta > :last-child {
    margin-bottom: 0 !important;
}

/* =====================================================
   SEO LANDING PAGES (country_custom / category_country)
   Additive only — does not modify any existing selector.
   ===================================================== */

.seo-landing__parent { margin-bottom: 4px; }
.seo-landing__parent a { text-decoration: none; }
.seo-landing__intro { margin: 12px 0; line-height: 1.6; }
.seo-landing__byline { margin-top: 4px; }
.seo-landing__sections { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }

.seo-section__title { margin-bottom: 4px; }
.seo-section__subtitle { margin-top: 0; margin-bottom: 12px; }
.seo-section__body { line-height: 1.7; }
.seo-section__body img { max-width: 100%; height: auto; }
.seo-section--image img { max-width: 100%; border-radius: 10px; }

.seo-section--links .seo-section__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }

.seo-section--cta { padding: 28px; border-radius: 12px; background: var(--panel-bg, #f5f7fa); text-align: center; }
.seo-section--cta .btn { margin-top: 10px; }

.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item__question { margin-bottom: 4px; }
.faq-item__answer { line-height: 1.6; }

/* /en/country directory page — dedicated template (country-list.html),
   not shared with category.html. See migrations/0022_country_directory_tiers.sql. */
.country-directory__featured { margin: 30px 0 40px; }
.country-directory__featured h2,
.country-directory__all h2 { margin-bottom: 16px; }
.country-directory__featured-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.feature-card--country { display: block; text-decoration: none; color: inherit; border-radius: 10px; background: var(--panel-bg, #f5f7fa); transition: background 0.15s ease; }
.feature-card--country:hover { background: var(--panel-bg-hover, #e9edf2); }
.feature-card--country h3 { margin: 0; font-size: 16px; }

.feature-card--payment-method { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.payment-method-card__icon { width: 48px; height: 48px; object-fit: contain; }

.country-directory__search-wrap { margin-bottom: 20px; }
.country-directory__search { width: 100%; max-width: 360px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border, #dde2e8); font-size: 15px; }

.country-directory__alpha-groups { display: flex; flex-direction: column; gap: 24px; }
.country-directory__letter { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray, #7a828e); margin: 0 0 10px; border-bottom: 1px solid var(--border, #eceff2); padding-bottom: 6px; }
.country-directory__empty { text-align: center; color: var(--gray, #7a828e); padding: 20px 0; }


.gpwa-seal-standalone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 24px 0;
}
.gpwa-seal-standalone img {
  max-width: 100%;
}
