/* ============================================================
   888betdownload.app - Main Stylesheet
   Original design system for Bangladesh market
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #0a0e1a;
  --color-bg-alt: #111729;
  --color-bg-card: #151d30;
  --color-bg-elevated: #1a2440;
  --color-primary: #e8a020;
  --color-primary-light: #f5c460;
  --color-primary-dark: #c4850a;
  --color-accent: #1b95e0;
  --color-accent-light: #47b3f5;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-text: #e8ecf4;
  --color-text-muted: #8b95a8;
  --color-text-dim: #5a6478;
  --color-border: rgba(232,160,32,0.18);
  --color-border-subtle: rgba(255,255,255,0.06);
  --color-glow: rgba(232,160,32,0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(232,160,32,0.2);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --max-width: 1180px;
  --header-h: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10,14,26,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 10px;
}

.brand-mark svg { width: 26px; height: 26px; }

.brand-text {
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

/* Primary Navigation */
.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
  overflow: visible;
  flex-wrap: nowrap;
}

.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color .25s, background .25s;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--color-primary);
  background: rgba(232,160,32,0.08);
}

/* More Menu */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-family: var(--font-stack);
  transition: all .25s;
}

.more-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: var(--radius-lg);
  z-index: 1200;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.more-menu[hidden] {
  display: none !important;
}

.nav-more.is-open .more-menu {
  display: grid;
  gap: 4px;
}

.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 14px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-decoration: none;
}

.more-menu a:hover {
  background: rgba(232,160,32,0.1);
  color: var(--color-primary);
}

/* Header Actions */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-stack);
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
}

.btn-register {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #0a0e1a;
}

.btn-register:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #0a0e1a;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text);
}

.btn-login:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-primary);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 20px;
  font-family: var(--font-stack);
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: radial-gradient(ellipse at 65% 35%, rgba(232,160,32,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(27,149,224,0.06) 0%, transparent 55%),
              linear-gradient(180deg, var(--color-bg) 0%, #0d1322 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-img-wrap {
  position: relative;
}

.hero-img-wrap img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  width: 100%;
}

.stat-pill {
  position: absolute;
  background: rgba(10,14,26,0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-glow);
  font-size: 13px;
  color: var(--color-text-muted);
}

.stat-pill.top-right { top: 16px; right: -12px; }
.stat-pill.bottom-left { bottom: 24px; left: -12px; }
.stat-pill .stat-number {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 18px;
  display: block;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.content-section {
  padding: 72px 0;
}

.bg-alt {
  background: var(--color-bg-alt);
}

.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-title .grad {
  color: var(--color-primary);
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 42px;
  line-height: 1.8;
}

.section-sub.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.glow-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.glow-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.glow-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.glow-card:hover::after { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.glow-card h3, .glow-card h5 {
  font-size: 16px;
  margin-bottom: 10px;
}

.glow-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   CONTENT / PROSE
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 40px;
  align-items: start;
}

.prose {
  max-width: 820px;
}

.prose p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: var(--color-text-muted);
}

.prose h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.25;
  margin: 42px 0 18px;
  color: var(--color-text);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 28px 0 12px;
  color: var(--color-text);
}

.prose h3 .hl { color: var(--color-primary); }

.prose ul, .prose ol {
  margin: 0 0 18px 24px;
  color: var(--color-text-muted);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.prose strong { color: var(--color-primary-light); }

.prose a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--color-accent); }

.prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  margin: 24px 0;
}

/* ============================================================
   IMAGE SHOWCASE
   ============================================================ */
.img-showcase {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 36px rgba(0,0,0,0.4);
  width: 100%;
  display: block;
  transition: transform .35s, box-shadow .35s;
}

.img-showcase:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
}

/* ============================================================
   STEPS
   ============================================================ */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
  counter-increment: step;
}

.step-num {
  min-width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  color: #0a0e1a;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--color-glow);
}

.step-body h5 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-body p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.compare-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-wrap table { width: 100%; border-collapse: collapse; }

.compare-wrap thead th {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.compare-wrap thead th:first-child { color: var(--color-text-muted); }
.compare-wrap thead th:nth-child(2) {
  background: rgba(232,160,32,0.08);
  color: var(--color-primary);
  text-align: center;
}
.compare-wrap thead th:nth-child(3) {
  color: var(--color-text-dim);
  text-align: center;
}

.compare-wrap tbody tr { border-top: 1px solid var(--color-border-subtle); }

.compare-wrap tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.compare-wrap tbody td:first-child { color: var(--color-text); font-weight: 500; }
.compare-wrap tbody td:nth-child(2) { text-align: center; color: var(--color-primary); font-weight: 600; }
.compare-wrap tbody td:nth-child(3) { text-align: center; color: var(--color-text-dim); }

.check-yes { color: var(--color-success); }
.check-no { color: var(--color-danger); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-stack);
  transition: color .25s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform .3s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

/* ============================================================
   HIGHLIGHT BOX / NOTICE
   ============================================================ */
.highlight-box {
  background: rgba(232,160,32,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.notice-box {
  background: rgba(27,149,224,0.06);
  border: 1px solid rgba(27,149,224,0.25);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice-box .notice-icon {
  font-size: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.notice-box h5 { color: var(--color-accent-light); margin-bottom: 6px; font-size: 15px; }
.notice-box p { color: var(--color-text-muted); font-size: 14px; margin: 0; line-height: 1.7; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  padding: 14px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-subtle);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.breadcrumb-list li { color: var(--color-text-dim); }
.breadcrumb-list li + li::before { content: '/'; margin-right: 6px; color: var(--color-text-dim); }
.breadcrumb-list a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--color-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #0a0e1a;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--color-glow);
  transition: all .3s;
  font-family: var(--font-stack);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--color-glow);
  color: #0a0e1a;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all .3s;
  font-family: var(--font-stack);
}

.btn-outline:hover {
  background: rgba(232,160,32,0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  height: 100%;
  transition: all .3s;
}

.testi-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.testi-stars { color: var(--color-primary); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { color: var(--color-text-muted); font-size: 14px; line-height: 1.75; margin-bottom: 16px; font-style: italic; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: #0a0e1a;
  flex-shrink: 0;
}

.testi-name { color: var(--color-text); font-weight: 600; font-size: 14px; }
.testi-city { color: var(--color-text-dim); font-size: 12px; }

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.rg-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all .3s;
}

.rg-card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
}

.rg-icon { font-size: 32px; color: var(--color-primary); margin-bottom: 14px; display: block; }
.rg-card h6 { font-size: 15px; margin-bottom: 8px; }
.rg-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.65; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-danger), #b91c1c);
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 16px rgba(239,68,68,0.35);
  margin-bottom: 14px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h5 {
  color: var(--color-primary);
  font-size: 15px;
  margin-bottom: 14px;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  font-size: 14px;
}

.sidebar-box li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060a14;
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-text {
  color: var(--color-text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-heading {
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }

.footer-links a {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color .25s;
}

.footer-links a:hover { color: var(--color-primary); }

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(232,160,32,0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--color-primary);
}

.footer-badge.danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p { color: var(--color-text-dim); font-size: 13px; margin: 0; }
.footer-bottom a { color: var(--color-accent); font-size: 13px; }

/* ============================================================
   ARTICLE / BLOG
   ============================================================ */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

.related-links {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

.related-links h4 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 10px; }
.related-links a { color: var(--color-accent-light); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
}

/* ============================================================
   RESPONSIVE - Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE - Mobile (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
  }

  .brand-wrap {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 48px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-text strong,
  .brand-text span {
    max-width: 86px;
  }

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    z-index: 999;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .primary-nav a:last-child { border-bottom: none; }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-more {
    display: block !important;
    width: 100%;
  }

  .nav-more .more-toggle {
    display: none;
  }

  .nav-more .more-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 0;
  }

  .nav-more .more-menu[hidden] {
    display: flex !important;
  }

  .nav-more .more-menu a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border-subtle);
    border-radius: 0;
  }

  .nav-more .more-menu a:last-child {
    border-bottom: none;
  }

  .hero-grid { grid-template-columns: 1fr; }

  .content-section { padding: 48px 0; }

  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .stat-pill { display: none; }

  .compare-wrap { overflow-x: auto; }
  .compare-wrap table { min-width: 480px; }

  .prose p { font-size: 16px; line-height: 1.85; }
  .prose h2 { font-size: 22px; }

  .step-item { flex-direction: column; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { width: 100%; justify-content: center; }
}
