/* ═══════════════════════════════════════════════════
   MAGIC365 CASINO CANADA — Design System
   Brand: Electric Blue #1E8BF0, Dark Navy, Gold
   ═══════════════════════════════════════════════════ */

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

/* ── CSS Variables ── */
:root {
  --blue:        #1E8BF0;
  --blue-dark:   #1570CC;
  --blue-light:  #4BA3F5;
  --gold:        #F5C518;
  --gold-dark:   #D4A012;
  --navy:        #0A0E1A;
  --navy-2:      #0D1528;
  --navy-3:      #111B35;
  --card-bg:     #141D38;
  --card-border: rgba(30,139,240,0.15);
  --white:       #FFFFFF;
  --gray-100:    #F0F4FF;
  --gray-300:    #B0BCDA;
  --gray-500:    #6B7CA4;
  --border:      rgba(255,255,255,0.08);
  --border-blue: rgba(30,139,240,0.3);
  --blue-glow:   rgba(30,139,240,0.25);
  --gold-glow:   rgba(245,197,24,0.2);
  --grad-blue:   linear-gradient(135deg, #1E8BF0 0%, #0D5BBF 100%);
  --grad-magic:  linear-gradient(135deg, #1E8BF0 0%, #7B2FF7 100%);
  --grad-gold:   linear-gradient(135deg, #F5C518, #D4A012);
  --grad-hero:   linear-gradient(135deg, #0A0E1A 0%, #0D1528 50%, #111B35 100%);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-display:'Outfit', 'Inter', sans-serif;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --max-w:       1240px;
  --section-pad: 96px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--gray-300);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

em { color: var(--blue); font-style: normal; }
strong { color: var(--white); font-weight: 700; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.section { padding: var(--section-pad) 0; overflow: hidden; }
.section-sm { padding: 60px 0; overflow: hidden; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(30,139,240,0.1);
  border: 1px solid rgba(30,139,240,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.section-heading span { color: var(--blue); }
.section-heading .gold { color: var(--gold); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 620px;
  line-height: 1.7;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 0 24px rgba(30,139,240,0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(30,139,240,0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: 0 0 24px rgba(245,197,24,0.3);
}
.btn-gold:hover {
  box-shadow: 0 0 40px rgba(245,197,24,0.5);
  transform: translateY(-2px);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(30,139,240,0.08);
}

.btn-lg { padding: 17px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(30,139,240,0.35);
  box-shadow: 0 8px 40px rgba(30,139,240,0.12);
}

.card-gold { border-color: rgba(245,197,24,0.2); }
.card-gold:hover { border-color: rgba(245,197,24,0.4); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-blue  { background: rgba(30,139,240,0.12); color: var(--blue); border: 1px solid rgba(30,139,240,0.3); }
.badge-gold  { background: rgba(245,197,24,0.1); color: var(--gold); border: 1px solid rgba(245,197,24,0.3); }
.badge-green { background: rgba(0,200,100,0.10); color: #00C864; border: 1px solid rgba(0,200,100,0.3); }
.badge-purple{ background: rgba(123,47,247,0.1); color: #A07BF7; border: 1px solid rgba(123,47,247,0.3); }

/* ── Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

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

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-300);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-login:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

.btn-register {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--grad-gold);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(245,197,24,0.3);
}
.btn-register:hover {
  box-shadow: 0 0 36px rgba(245,197,24,0.5);
  transform: translateY(-1px);
  color: var(--navy);
}

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(10,14,26,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px 28px;
}

.mobile-menu.open { display: block; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.mobile-menu nav a {
  color: var(--gray-300);
  font-size: 1rem;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  display: block;
  transition: all 0.2s;
}
.mobile-menu nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Hero ── */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.9) 40%, rgba(10,14,26,0.6) 100%);
}

.hero-inner { position: relative; z-index: 2; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,139,240,0.12);
  border: 1px solid rgba(30,139,240,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-label .dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title { margin-bottom: 20px; }
.hero-title .line-blue { color: var(--blue); display: block; }
.hero-title .line-gold { color: var(--gold); display: block; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.trust-item .icon { font-size: 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.hero-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat .num.gold { color: var(--gold); }

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Decorative elements ── */
.magic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-blue { background: rgba(30,139,240,0.15); }
.orb-purple { background: rgba(123,47,247,0.12); }
.orb-gold { background: rgba(245,197,24,0.08); }

/* ── Bonus Bar ── */
.bonus-bar {
  background: linear-gradient(90deg, rgba(30,139,240,0.15) 0%, rgba(123,47,247,0.1) 50%, rgba(245,197,24,0.08) 100%);
  border-top: 1px solid rgba(30,139,240,0.2);
  border-bottom: 1px solid rgba(30,139,240,0.2);
  padding: 14px 0;
  overflow: hidden;
}

.bonus-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.bonus-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-300);
}

.bonus-bar-item strong { color: var(--white); }
.bonus-bar-item .sep { color: rgba(255,255,255,0.2); }

/* ── Feature cards ── */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  border-color: rgba(30,139,240,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(30,139,240,0.12);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(30,139,240,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(30,139,240,0.2);
}

.feature-icon.gold-icon {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.2);
}

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}
.check-item .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-magic {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.9rem;
}

.table-magic th {
  background: rgba(30,139,240,0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-blue);
}

.table-magic td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-300);
  vertical-align: middle;
}

.table-magic tr:last-child td { border-bottom: none; }
.table-magic tr:hover td { background: rgba(255,255,255,0.025); }
.table-magic td strong { color: var(--white); }

/* ── Callout ── */
.callout {
  background: rgba(30,139,240,0.07);
  border: 1px solid rgba(30,139,240,0.2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
}

.callout-gold {
  background: rgba(245,197,24,0.06);
  border-color: rgba(245,197,24,0.2);
  border-left-color: var(--gold);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--white); }

/* ── Author Box ── */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.author-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--blue);
}

.author-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.author-info .role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}
.author-info h4 { font-size: 1.1rem; margin-bottom: 6px; }
.author-info p { font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ── Step List ── */
.step-list { display: flex; flex-direction: column; gap: 20px; }
.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 20px rgba(30,139,240,0.35);
}
.step-content { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.step-content h4 { color: var(--white); margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; margin: 0; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(30,139,240,0.3); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--card-bg);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  user-select: none;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(30,139,240,0.06); }

.faq-chevron {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(30,139,240,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.92rem;
  color: var(--gray-300);
  line-height: 1.7;
  padding-top: 16px;
}
.faq-item.open .faq-a { display: block; }

/* ── Progress bar (for chart alternative) ── */
.progress-bar-wrap { display: flex; flex-direction: column; gap: 16px; }
.progress-item {}
.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.88rem;
}
.progress-label .name { color: var(--white); font-weight: 500; }
.progress-label .pct { color: var(--blue); font-weight: 700; }
.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--grad-blue);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.gold { background: var(--grad-gold); }

/* ── Rating Stars ── */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star { color: var(--gold); font-size: 1rem; }
.rating-num { font-size: 1rem; font-weight: 700; color: var(--white); margin-left: 4px; }

/* ── Footer ── */
footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {}
.footer-logo-img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 280px;
  margin-bottom: 16px;
}
.footer-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 2px solid var(--gray-500);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--blue); }

.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.82rem; color: var(--gray-500); margin: 0; }

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-bottom-links a:hover { color: var(--blue); }

.gamble-warning {
  background: rgba(245,197,24,0.04);
  border-top: 1px solid rgba(245,197,24,0.1);
  padding: 14px 0;
}
.gamble-warning p {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}
.gamble-warning strong { color: var(--gray-300); }

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,26,0.6) 0%, rgba(10,14,26,0.95) 100%);
}

.page-hero-inner { position: relative; z-index: 2; }

/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.float { animation: float 4s ease-in-out infinite; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: none; }

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .main-nav { display: none; }
  .header-cta .btn-register { display: none; }
  .header-cta .btn-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--grad-gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 18px rgba(245,197,24,0.3);
    transition: all 0.2s;
  }
  .burger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: block; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .author-box { flex-direction: column; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .section-header.center .section-sub { font-size: 0.95rem; }
  .reveal-left, .reveal {
    transform: none !important;
    opacity: 0;
  }
  .reveal-left.visible, .reveal.visible { opacity: 1; }
  p, h1, h2, h3, h4, li, td, th { overflow-wrap: break-word; word-break: break-word; }
  .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
  .table-wrap { overflow-x: auto; }
  .table-magic { min-width: 520px; }
}

/* ── Bonus hero card layout ── */
.bonus-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.bonus-price-block {
  text-align: center;
  min-width: 200px;
}

@media (max-width: 700px) {
  .bonus-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bonus-price-block {
    min-width: 0;
    text-align: center;
    border-top: 1px solid rgba(245,197,24,0.2);
    padding-top: 20px;
  }
  .bonus-price-block .btn {
    width: 100%;
    justify-content: center;
  }
}


