/* ==========================================================================
   VEER GAME - OFFICIAL GAMING & GUIDE PORTAL
   Author: Veer Game Editorial Team
   Theme: Veergameee.com Clean White Theme (Dark Navbar, Emerald Green & Gold)
   Version: 4.0.0
   ========================================================================== */

/* 1. CSS Reset & Variables */
:root {
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --bg-drawer: #141414;
  --border-subtle: #e2e8f0;
  --border-card: #e5e7eb;
  --border-focus: #f59e0b;
  --border-green: #00c853;

  /* Brand Colors */
  --header-bg: #141414;
  --green-main: #00c853;
  --green-dark: #009624;
  --green-gradient: linear-gradient(180deg, #00c853 0%, #009624 100%);
  --gold-accent: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --cyan-main: #0ea5e9;
  --cyan-gradient: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  --danger-red: #ef4444;

  /* Typography Colors for White Background */
  --text-pure: #0f172a;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-gold: #d97706;
  --text-green: #15803d;

  /* Typography Families */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Dimensions & Spacing */
  --container-max: 1140px;
  --container-narrow: 860px;
  --header-height: 66px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-green: 0 4px 14px rgba(0, 200, 83, 0.3);
  --shadow-gold: 0 4px 14px rgba(245, 158, 11, 0.25);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* 2. Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

a {
  color: var(--text-green);
  text-decoration: none;
  transition: color var(--transition-fast);
  touch-action: manipulation;
  font-weight: 500;
}

a:hover {
  color: var(--gold-accent);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3.8vw, 2rem); margin-top: 2rem; color: #0f172a; }
h3 { font-size: clamp(1.15rem, 2.8vw, 1.45rem); margin-top: 1.4rem; color: #1e293b; }
h4 { font-size: 1.1rem; }

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

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--green-gradient);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* 3. Header & Navigation (Dark Bar with Gold Border) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 3px solid var(--gold-accent);
  z-index: 999;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.header-logo-img {
  height: 44px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.site-logo:hover .header-logo-img {
  transform: scale(1.03);
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Animated Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  background: #262626;
  border: 1px solid #404040;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
  padding: 9px;
  position: relative;
  z-index: 1002;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--gold-accent);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--gold-accent);
}

/* Mobile Drawer Overlay Backdrop */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Button Component Library */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 42px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1.05rem;
  min-height: 46px;
}

/* Primary Green Button (Veergameee style) */
.btn-green, .btn-gold {
  background: var(--green-gradient);
  color: #ffffff !important;
  box-shadow: var(--shadow-green);
}

.btn-green:hover, .btn-green:active,
.btn-gold:hover, .btn-gold:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.btn-cyan {
  background: var(--cyan-gradient);
  color: #ffffff !important;
}

.btn-cyan:hover, .btn-cyan:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
}

.header-actions .btn-outline {
  background: transparent;
  border-color: #475569;
  color: #f8fafc;
}

.btn-outline:hover, .btn-outline:active {
  background: #f1f5f9;
  border-color: var(--green-main);
  color: var(--green-main);
  transform: translateY(-2px);
}

.header-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  padding: 40px 0 28px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 16px;
  max-width: 90%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-main);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-main);
  animation: pulseAnimation 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(1.85rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #0f172a;
}

.hero-title span {
  color: #d97706;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 12px;
  line-height: 1.65;
}

.hero-subtitle strong,
.hero-guide-intro strong {
  color: var(--text-dark);
}

.hero-guide-intro {
  font-size: clamp(0.9rem, 2.2vw, 1.02rem);
  color: #475569;
  max-width: 840px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Hero Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--green-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: #00873a;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 5. Game Mode Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin: 24px 0 40px;
}

.game-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-subtle);
  transition: background var(--transition-fast);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-main);
  box-shadow: var(--shadow-md);
}

.game-card:hover::before {
  background: var(--green-gradient);
}

.game-card.featured::before {
  background: var(--gold-gradient);
}

.game-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
  color: #0f172a;
}

.game-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.game-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.tag-hot { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tag-live { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.tag-new { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.tag-vip { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

.game-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f172a;
}

.game-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* 6. Main Content Area & Sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin: 28px 0 45px;
}

.article-main {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-sticky {
  position: sticky;
  top: 82px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.widget-title svg {
  width: 18px;
  height: 18px;
  color: #d97706;
}

/* Table of Contents */
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 24px 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-heading);
}

.toc-header svg {
  width: 18px;
  height: 18px;
  color: #d97706;
}

.toc-list {
  list-style: none;
  margin-top: 12px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li {
  font-size: 0.92rem;
}

.toc-list li.toc-h3 {
  padding-left: 18px;
  font-size: 0.86rem;
}

.toc-list a {
  color: #475569;
  display: inline-block;
  padding: 4px 0;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--green-main);
  font-weight: 600;
  transform: translateX(4px);
}

/* 7. Rich Article Content Box */
.content-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Callout Box */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid;
}

.callout-info {
  border-color: #0ea5e9;
  background: #f0f9ff;
  color: #0369a1;
}

.callout-info p {
  color: #0c4a6e;
}

.callout-warning {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.callout-warning p {
  color: #78350f;
}

.callout-danger {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.callout-danger p {
  color: #7f1d1d;
}

.callout-success {
  border-color: #00c853;
  background: #f0fdf4;
  color: #15803d;
}

.callout-success p {
  color: #14532d;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-title svg {
  width: 18px;
  height: 18px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Step-by-Step Card Flow */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0;
}

.step-card {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all var(--transition-fast);
}

.step-card:hover {
  border-color: var(--green-main);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--green-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
}

.step-body h4 {
  margin-top: 2px;
  margin-bottom: 4px;
  color: #0f172a;
}

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

/* Feature Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.custom-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.custom-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-family: var(--font-heading);
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: #1e293b;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

.badge-yes { color: #15803d; font-weight: 700; }
.badge-no { color: #dc2626; font-weight: 700; }

/* Copy Box for Referral Code & Gift Code */
.code-copy-box {
  background: #f8fafc;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.code-details {
  display: flex;
  flex-direction: column;
}

.code-title {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.code-string {
  font-family: monospace;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: #d97706;
  letter-spacing: 2px;
  word-break: break-all;
}

/* Interactive Martingale Calculator Widget */
.calc-box {
  background: #f8fafc;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.calc-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.calc-input:focus {
  border-color: var(--green-main);
}

.calc-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.calc-results-table th,
.calc-results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  text-align: left;
}

.calc-results-table th {
  color: #0f172a;
}

/* 8. Interactive Accordion (FAQs) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-trigger {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 48px;
}

.faq-icon-svg {
  width: 18px;
  height: 18px;
  color: #d97706;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-content {
  display: none;
  padding: 0 18px 18px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
}

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

/* 9. Rating & Review Widget */
.review-widget {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 26px 0;
  text-align: center;
}

.stars-interactive {
  display: inline-flex;
  gap: 6px;
  margin: 10px 0;
  cursor: pointer;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.1s, color 0.15s;
  padding: 4px;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.star-btn.active,
.star-btn:hover,
.star-btn.hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.rating-score-display {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 10. Author Card & Related Articles */
.author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--green-main);
  color: var(--green-main);
}

.author-avatar svg {
  width: 26px;
  height: 26px;
}

.author-info h4 {
  margin-bottom: 4px;
  color: #0f172a;
}

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

/* Related Guides Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}

.related-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--green-main);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
}

.related-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
}

/* 11. Breadcrumbs */
.breadcrumb-nav {
  padding: 14px 0 8px;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.breadcrumb-list li a {
  color: #475569;
}

.breadcrumb-list li a:hover {
  color: var(--green-main);
}

.breadcrumb-separator {
  color: var(--text-subtle);
}

/* 12. Footer (Dark Background) */
.site-footer {
  background: #141414;
  border-top: 3px solid var(--gold-accent);
  padding: 48px 0 24px;
  margin-top: auto;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger-red);
  color: #f87171;
  font-weight: 800;
  font-size: 0.82rem;
}

.badge-ssl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-disclaimer {
  background: #1e1e1e;
  border: 1px solid #333333;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #262626;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 16px;
  left: 16px;
  max-width: 380px;
  margin: 0 auto;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 13. Responsive Breakpoints */
@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sidebar-sticky {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .header-actions {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-logo-img {
    height: 38px;
    max-width: 135px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-drawer);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 20px) 18px 30px;
    gap: 6px;
    border-left: 1px solid #333333;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    display: flex;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
  }

  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333333;
  }

  .nav-drawer-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 62px;
  }

  .header-logo-img {
    height: 34px;
    max-width: 120px;
  }

  .container, .container-narrow {
    padding: 0 14px;
  }

  .content-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .calc-box {
    padding: 18px 14px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-section {
    padding: 26px 0 18px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .code-copy-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .code-copy-box .btn {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-card {
    padding: 14px;
    gap: 12px;
  }

  .step-number {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
