/* ===========================
   YEBO CASINO ZA — style.css
   Black #000 | Gold #EAB64A | Blue #2D3D8E
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

/* === VARIABLES === */
:root {
  --gold: #EAB64A;
  --gold-light: #F5CC70;
  --gold-dark: #C9962D;
  --blue: #2D3D8E;
  --blue-glow: rgba(45, 61, 142, 0.4);
  --bg: #000000;
  --bg-card: #0d0d0d;
  --bg-card2: #111118;
  --text: #ffffff;
  --text-muted: #9BA3AF;
  --text-dim: #6B7280;
  --border: rgba(234, 182, 74, 0.15);
  --border-hover: rgba(234, 182, 74, 0.4);
  --red: #e52d2d;
  --green: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-gold: 0 0 20px rgba(234, 182, 74, 0.2);
  --shadow-blue: 0 0 30px rgba(45, 61, 142, 0.3);
  --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #000; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
strong { color: var(--text); }

/* === LAYOUT === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

/* === HEADER === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo span { color: var(--text); }
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}


#main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(234, 182, 74, 0.08);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 182, 74, 0.35);
  color: #000;
}
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { display: block; padding: 12px 16px; border-radius: 8px; }

/* === HERO SECTION === */
.hero {
  position: relative;
  padding: 40px 0 80px;
  overflow: hidden;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.78) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(45, 61, 142, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(234, 182, 74, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 182, 74, 0.1);
  border: 1px solid rgba(234, 182, 74, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .gold { color: var(--gold); }
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-cta .btn-primary { font-size: 1rem; padding: 14px 32px; border-radius: 10px; }

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 2px; }
.rating-text { color: var(--text-muted); font-size: 0.9rem; }
.rating-num { color: var(--gold); font-weight: 700; font-size: 1rem; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  background: rgba(234, 182, 74, 0.04);
}
.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(234, 182, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { color: var(--text); margin-bottom: 10px; }
.card p { font-size: 0.9rem; margin: 0; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* === PROS/CONS === */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros-box, .cons-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pros-box { border: 1px solid rgba(34, 197, 94, 0.2); }
.cons-box { border: 1px solid rgba(229, 45, 45, 0.2); }
.pros-box h3 { color: var(--green); margin-bottom: 16px; }
.cons-box h3 { color: var(--red); margin-bottom: 16px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.check-list li:last-child { border-bottom: none; }
.check-list .icon { flex-shrink: 0; margin-top: 2px; }
.pros-box .icon { color: var(--green); }
.cons-box .icon { color: var(--red); }

/* === TABLES === */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: rgba(234, 182, 74, 0.08);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(234, 182, 74, 0.03); }
tbody td {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  vertical-align: middle;
}
tbody td strong { color: var(--text); }
.badge-green { color: var(--green); font-weight: 600; }
.badge-gold { color: var(--gold); font-weight: 600; }
.badge-red { color: var(--red); font-weight: 600; }

/* === CHART CONTAINER === */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.chart-container h3 { margin-bottom: 20px; }
canvas { max-height: 320px; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(234, 182, 74, 0.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 12px;
  user-select: none;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(234,182,74,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}
.faq-answer p { font-size: 0.9rem; margin: 0; }

/* === STEPS === */
.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.step-item:hover { border-color: var(--border-hover); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.step-content h4 { color: var(--text); margin-bottom: 6px; font-size: 1rem; }
.step-content p { font-size: 0.88rem; margin: 0; }

/* === BONUS CARDS === */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.bonus-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.bonus-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.bonus-title { font-weight: 700; color: var(--text); margin-bottom: 12px; }
.bonus-detail { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.bonus-card .btn-primary { margin-top: auto; width: 100%; justify-content: center; }
.bonus-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* === PAYMENT PILLS === */
.payment-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.payment-pill:hover {
  border-color: var(--border-hover);
  color: var(--gold);
}
.payment-pill .icon { font-size: 1.1rem; }

/* === AUTHOR BLOCK === */
.author-block {
  background: linear-gradient(135deg, rgba(45,61,142,0.12) 0%, rgba(234,182,74,0.05) 100%);
  border: 1px solid rgba(234, 182, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1180px;
  margin: 48px auto;
}
.author-block-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(234,182,74,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.author-block-label {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.author-block-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.author-block-bio { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.author-block-links { display: flex; gap: 12px; flex-wrap: wrap; }
.author-block-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(234,182,74,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}
.author-block-links a:hover { background: rgba(234,182,74,0.1); }

/* === ARTICLE CONTENT === */
.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.article-content h3 { margin-top: 28px; margin-bottom: 12px; color: var(--gold); }
.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.article-content li { margin-bottom: 6px; font-size: 0.95rem; }
.article-content ul { list-style: disc; }

/* Internal anchor links — underlined */
.article-content a,
.callout a,
.step-content a,
.faq-answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(234, 182, 74, 0.5);
  font-weight: 500;
}
.article-content a:hover,
.callout a:hover,
.step-content a:hover,
.faq-answer a:hover {
  text-decoration-color: var(--gold);
  color: var(--gold-light);
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.toc h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.toc ol { padding-left: 18px; counter-reset: none; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-muted); font-size: 0.9rem; }
.toc a:hover { color: var(--gold); }

/* Callout box */
.callout {
  display: flex;
  gap: 16px;
  background: rgba(234,182,74,0.05);
  border: 1px solid rgba(234,182,74,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.callout-icon { font-size: 1.5rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: 0.9rem; }

/* === FOOTER === */
#site-footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); margin: 0; }
.gambling-warning {
  background: rgba(229,45,45,0.08);
  border: 1px solid rgba(229,45,45,0.2);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.age-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* === MISC === */
.gold { color: var(--gold); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
.gap-8 { gap: 8px; }

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 16px 0 8px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gold); }

/* === page-hero (inner pages) === */
.page-hero {
  position: relative;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.78) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { font-size: 1rem; max-width: 640px; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-outline { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-block { flex-direction: column; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* === MOBILE OVERFLOW FIXES === */
@media (max-width: 768px) {
  /* Global overflow guard */
  body { overflow-x: hidden; }

  /* Logo in header — keep small */
  .logo-img { height: 40px !important; max-height: 40px !important; max-width: 130px !important; width: auto !important; }
  .header-inner { height: auto; min-height: 64px; padding: 8px 0; gap: 12px; }
  /* Hide login, keep PLAY NOW */
  .btn-outline { display: none !important; }
  .header-cta .btn-primary { font-size: 0.78rem; padding: 8px 14px; }

  /* Hero section on mobile — remove background image, use dark gradient */
  .hero {
    padding: 24px 0 48px;
    background-image: linear-gradient(135deg, #060610 0%, #0d0d1a 50%, #060610 100%) !important;
    background-size: cover !important;
  }
  .page-hero {
    padding: 20px 0 32px;
    background-image: linear-gradient(135deg, #060610 0%, #0d0d1a 50%, #060610 100%) !important;
    background-size: cover !important;
  }

  /* Tables: wrapper scrolls, don't set min-width on bare table */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .table-wrap > table { min-width: 560px; }

  /* Text overflow protection */
  p, li, h1, h2, h3, h4 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Hero stats: 2 cols */
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-value, .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }

  /* Charts */
  .chart-container { overflow: hidden; }
  canvas { max-width: 100% !important; }

  /* Sticky sidebar → static */
  [style*="position:sticky"], [style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }

  /* Pros/cons always 1 col */
  .pros-cons { grid-template-columns: 1fr !important; gap: 16px; }

  /* Container padding */
  .container { padding: 0 14px; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-sm { padding: 20px 0; }

  /* Grids → 1 col */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .bonus-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Steps */
  .steps-list { gap: 12px; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }

  /* Critical: prevent grid children from overflowing */
  .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; max-width: 100%; }

  /* Article content — word wrap but no overflow:hidden (breaks sticky) */
  .article-content { max-width: 100%; word-break: break-word; }
  .toc { max-width: 100%; }

  /* Non-logo images scale correctly */
  main img, footer img, .article-content img { max-width: 100% !important; height: auto !important; }

  /* Sidebar always static width */
  .sidebar, [class*="sidebar"] { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
}
