/* ==========================================================================
   PHOPEN DESIGN SYSTEM & MASTER STYLESHEET
   Adheres to /gambling-website-ui-ux-designer specifications
   Modern, Interactive, Proportional, Mobile-Friendly, High-Energy Casino Aesthetic
   ========================================================================== */

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

/* --- 1. CSS DESIGN TOKENS --- */
:root {
  /* Surface & Background Palette */
  --bg-darkest: #07090e;
  --bg-body: #0b0e14;
  --bg-surface: #101624;
  --bg-card: #151d2f;
  --bg-card-hover: #1c273e;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(16, 22, 36, 0.75);
  --bg-glass-strong: rgba(11, 14, 20, 0.88);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-purple: rgba(139, 92, 246, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);

  /* High-Energy Casino Accents */
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-glow: 0 0 25px rgba(245, 158, 11, 0.45);
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #d97706 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%);

  --purple-royal: #8b5cf6;
  --purple-vibrant: #a855f7;
  --purple-glow: 0 0 25px rgba(168, 85, 247, 0.4);
  --purple-gradient: linear-gradient(135deg, #a855f7 0%, #7928ca 100%);
  --purple-gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(121, 40, 202, 0.05) 100%);

  --cyan-neon: #06b6d4;
  --cyan-light: #38bdf8;
  --cyan-glow: 0 0 25px rgba(6, 182, 212, 0.4);

  --emerald-win: #10b981;
  --emerald-glow: 0 0 25px rgba(16, 185, 129, 0.4);
  --rose-hot: #f43f5e;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-gold: #fbbf24;

  /* Layout Proportions */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 30px rgba(245, 158, 11, 0.25);

  /* Transitions */
  --trans-fast: 0.18s ease;
  --trans-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* --- 3. TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.025rem;
  margin-bottom: 1.25rem;
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-purple-gradient {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- 4. CONTAINER PROPORTIONS & FLASHY SECTION STYLES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Vertical Rhythm Per Section */
.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

/* Flashy Casino Container Backgrounds */
.section-flashy-dark {
  background: radial-gradient(circle at 50% 0%, #151d2f 0%, #0b0e14 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.section-flashy-purple {
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, #0b0e14 70%);
  position: relative;
}
.section-flashy-purple::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

.section-flashy-gold {
  background: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, #0b0e14 70%);
  position: relative;
}
.section-flashy-gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}

.section-flashy-matrix {
  background: #0d121c;
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 0),
    radial-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Subtle Shimmer Animation for Casino Atmosphere */
@keyframes goldShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-badge {
  position: relative;
  overflow: hidden;
}
.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: goldShimmer 3s infinite;
}

/* --- 5. CASINO HERO (FIRST CONTAINER OF EVERY PAGE) --- */
.hero-container {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-glass);
}

/* Multi-layer contrast overlay ensures complete readability */
.hero-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(7, 9, 14, 0.82) 0%, 
    rgba(11, 14, 20, 0.90) 50%, 
    rgba(11, 14, 20, 0.98) 100%
  );
  z-index: 1;
}

/* Radial color accent overlay behind text */
.hero-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 40%, rgba(245, 158, 11, 0.2) 0%, transparent 60%),
              radial-gradient(circle at 75% 60%, rgba(139, 92, 246, 0.25) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 6. BUTTONS & INTERACTIVE TRIGGERS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--trans-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0e14;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-purple {
  background: var(--purple-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.55);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* --- 7. STRICT 3x2 GRID BOX & PLACECARDS (6 ITEMS PER VIEW) --- */
.grid-3x2-container {
  position: relative;
}

.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

@media (max-width: 640px) {
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
}

/* Placecard Styling */
.placecard {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.placecard:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.placecard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.placecard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-smooth);
}

.placecard:hover .placecard-img {
  transform: scale(1.06);
}

.placecard-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity var(--trans-normal);
  padding: 1rem;
}

.placecard:hover .placecard-overlay-actions {
  opacity: 1;
}

.placecard-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  z-index: 2;
}

.placecard-rtp {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.placecard-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 22, 36, 0.95) 100%);
}

.placecard-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.placecard-provider {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 0.85rem;
}

.placecard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.placecard-type {
  color: var(--cyan-light);
  font-weight: 600;
}

.placecard-link {
  color: var(--gold-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.placecard-link:hover {
  text-decoration: underline;
}

/* --- 8. CLIENT-SIDE INTERACTIVE PAGINATION --- */
.pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--gold-gradient);
  color: #0b0e14;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- 9. CATEGORY FILTER TABS --- */
.filter-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}
.filter-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--trans-fast);
}

.filter-tab:hover {
  background: var(--bg-elevated);
  color: #ffffff;
}

.filter-tab.active {
  background: var(--purple-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}

/* --- 10. CARD & CONTENT BUNDLES (E-E-A-T & SCORECARDS) --- */
/* E-E-A-T Author Card */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 2px solid var(--gold-light);
  box-shadow: var(--gold-glow);
}

.author-info h4 {
  font-size: 1.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Quick Takeaways Scorecard Bundle */
.scorecard-bundle {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.scorecard-item {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.scorecard-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.scorecard-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* --- 11. FEATURED & CONTEXTUAL IMAGE WRAPPERS --- */
.featured-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-hover);
  position: relative;
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contextual-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.25rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.contextual-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.contextual-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 14, 20, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- 12. STEP-BY-STEP VISUAL CARDS (FUNCTIONAL FLOW) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform var(--trans-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-neon);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-neon);
  color: #0b0e14;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--cyan-glow);
}

.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- 13. ACCESSIBLE FAQ ACCORDION --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.accordion-item.active {
  border-color: var(--border-gold);
}

.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
}

.accordion-trigger:hover {
  color: var(--gold-light);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--trans-normal);
  flex-shrink: 0;
  stroke: var(--gold-light);
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-smooth);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* --- 14. INTERACTIVE CALCULATOR (FUNCTIONAL PAGE) --- */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-control {
  margin-bottom: 1.25rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
}

.calc-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.calc-results {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-result-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-win);
}

/* --- 15. GLOBAL HEADER & STICKY NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .site-nav {
    display: none;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans-fast);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.lang-btn.active {
  font-weight: 900;
}

.lang-divider {
  color: var(--border-glass);
  user-select: none;
}

.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
}

@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-glass);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--trans-smooth);
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
}
.drawer-link:hover, .drawer-link.active {
  color: var(--gold-light);
}

/* --- 16. MOBILE STICKY BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 95;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.2rem;
  width: 20%;
  height: 100%;
}

.bottom-nav-item.active {
  color: var(--gold-light);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-deposit {
  position: relative;
  top: -8px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
}

/* --- 17. GLOBAL COMPLIANCE & 21+ FOOTER --- */
.site-footer {
  background: #06080c;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

/* Trust Badges & 21+ Compliance Row */
.footer-compliance-row {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.age-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.age-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--rose-hot);
  color: var(--rose-hot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
}

.trust-entities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.trust-entity-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--trans-fast);
}
.trust-entity-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* --- 18. ARTICLE & SPOKE CONTENT STYLING --- */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 992px) {
  .article-toc {
    display: none;
  }
}

.toc-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.toc-link:hover {
  color: var(--gold-light);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.article-body h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.article-body h3 {
  margin-top: 1.75rem;
  color: var(--gold-light);
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.callout-box p {
  margin-bottom: 0;
  color: #f1f5f9;
}
