/* ==========================================================================
   BDG Game / BDG Win - Bulletproof Mobile-First CSS Design System
   ========================================================================== */

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

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #eff6ff;
  
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fef3c7;
  
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0b1120;
  --bg-dark-card: #1e293b;
  --bg-dark-hover: #334155;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-dark: #334155;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 15px rgba(245, 158, 11, 0.45);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --max-w: 1200px;
  --header-height: 60px;
  --mobile-bar-height: 64px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Zero-Overflow Reset & Strict Mobile Body Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px) + 10px);
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
    --header-height: 72px;
  }
}

/* Strict Image & Media Resizing (Never overflows!) */
img, svg, video, iframe {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

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

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

li {
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  p { font-size: 1rem; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--bg-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.5rem, 5.5vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 4.2vw, 2rem); letter-spacing: -0.01em; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================================================
   SVG Icons Utility
   ========================================================================== */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.icon-sm {
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.1em;
}

.icon-lg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.22em;
}

.icon-badge {
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.1em;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100vw;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 42px;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: none;
}

@media (min-width: 992px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 20px;
  background: var(--bg-dark);
  border-radius: 2px;
}

/* Mobile Drawer Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer - Hidden strictly when closed to avoid horizontal scroll leak */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 310px;
  background: var(--bg-card);
  z-index: 1002;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

.mobile-close-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  touch-action: manipulation;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-link:active, .mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  touch-action: manipulation;
  user-select: none;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: var(--text-white) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a !important;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--text-white) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
  }
}

.btn-block {
  width: 100%;
}

.pulse-animation {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #0b1120 0%, #1e293b 100%);
  color: var(--text-white);
  padding: 1.75rem 0 2.25rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
  }
}

.hero-content {
  width: 100%;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.hero-title {
  color: var(--text-white);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.hero-highlight {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.invite-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 480px) {
  .invite-code-box {
    max-width: 380px;
  }
}

.invite-code-box span {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
}

.invite-code-box code {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1rem;
  text-align: center;
  width: 100%;
}

.stat-item h4 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin: 0;
}

@media (min-width: 768px) {
  .stat-item h4 {
    font-size: 1.5rem;
  }
}

.stat-item p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 100%;
}

.hero-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* ==========================================================================
   Quick Navigation / Mobile Touch Scroll Bar
   ========================================================================== */
.quick-nav-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.quick-nav-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  width: 100%;
}

.quick-nav-list::-webkit-scrollbar {
  display: none;
}

.quick-nav-pill {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  display: inline-block;
  flex-shrink: 0;
}

.quick-nav-pill:active, .quick-nav-pill:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* ==========================================================================
   Main Layout & Content Cards (Zero Overflow)
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    padding: 3rem 0;
  }
}

.content-body {
  background: var(--bg-card);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .content-body {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
  }
}

/* All images inside content-body scaled to 100% width */
.content-body img {
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  box-shadow: var(--shadow-md);
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* Section elements strictly constrained */
.content-body section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
  width: 100%;
}

@media (min-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.game-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.game-card-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 130px !important;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
}

@media (min-width: 768px) {
  .game-card-img {
    height: 150px !important;
  }
}

.game-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.game-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
  line-height: 1.5;
}

.game-card-body .btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
  width: 100%;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 0.85rem;
  border-radius: var(--radius-xs);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.feature-box h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--bg-dark);
}

.feature-box p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Callout Boxes */
.callout-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.callout-box.gold {
  border-left-color: var(--accent-gold);
  background: #fffbeb;
}

.callout-box.emerald {
  border-left-color: var(--accent-emerald);
  background: #ecfdf5;
}

.callout-box h4 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.callout-box p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Tables (Strictly contained with touch scrolling) */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: block;
  box-sizing: border-box;
}

table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

@media (min-width: 768px) {
  table {
    font-size: 0.95rem;
    min-width: 480px;
  }
}

thead {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: var(--text-white);
}

th {
  padding: 0.65rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  word-break: break-word;
}

tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Step Cards */
.steps-container {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.step-card {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
  width: 100%;
}

@media (min-width: 600px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.reviewer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
  margin: 1.75rem 0;
  width: 100%;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  background: var(--bg-card);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 0.85rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 0.5rem;
  touch-action: manipulation;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0.95rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 0.95rem;
}

/* Author Box */
.author-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.75rem 0 1rem;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .author-box {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
  }
}

.author-avatar {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  margin: 0 !important;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.author-info .author-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--primary-light);
}

.widget-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--text-white);
  border: 1px solid #334155;
  text-align: center;
}

.widget-cta .widget-title {
  color: var(--text-white);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.widget-cta p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar-links li {
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 0;
  margin: 0;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 2.25rem 0 1.5rem;
  border-top: 1px solid var(--border-dark);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.footer-col {
  width: 100%;
  min-width: 0;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.footer-disclaimer-box strong {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   Mobile Sticky Quick Bottom Bar (Ultra High Conversion)
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 0.75rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0.55rem));
  display: flex;
  gap: 0.55rem;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  min-height: 42px;
  white-space: nowrap;
}

/* ==========================================================================
   Toast Notification & Back to Top
   ========================================================================== */
.toast-msg {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-msg.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--mobile-bar-height) + 12px);
  right: 12px;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

@media (min-width: 992px) {
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
  }
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
