/*
Theme Name: AFUN México Oficial
Theme URI: https://afun.lat/
Author: AFUN México SEO Team
Author URI: https://afun.lat/sobre-nosotros/
Description: Tema oficial de alto rendimiento SEO para AFUN México (afun.lat) - Casino en Línea, Tragamonedas 777 y Apuestas Deportivas Liga MX. Optimizado para Core Web Vitals, Mobile-First UX, Schema JSON-LD y arquitectura Silo 100% Internal Links.
Version: 2.3.0
Text Domain: afun-mexico
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: #162033;
  --bg-card-hover: #1e2b45;
  --border-color: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(245, 158, 11, 0.45);
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --max-w: 1260px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 8px 25px -4px rgba(245, 158, 11, 0.35);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.68;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

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

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

/* =========================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================= */
.top-bar {
  background: linear-gradient(90deg, #064e3b 0%, #0f172a 50%, #78350f 100%);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  padding: 6px 0;
  color: #e2e8f0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.top-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.badge-18 {
  background: var(--accent-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

/* =========================================================
   2. STICKY MAIN HEADER (100% FIT ON ALL VIEWPORTS)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.42rem;
  letter-spacing: -0.5px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #090d16;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.brand-logo span.gold {
  color: var(--accent-gold-light);
}

.brand-logo span.mx-tag {
  font-size: 0.68rem;
  background: #065f46;
  color: #6ee7b7;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Desktop Navigation */
.desktop-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.12);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #090d16 !important;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(245, 158, 11, 0.55);
  filter: brightness(1.05);
}

.btn-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.btn-green:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.98rem;
  border-radius: 10px;
}

/* Hamburger Menu Button (Hidden on Large Desktop, Shown < 1080px) */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Quick Scrollable Pill Bar */
.mobile-quick-bar {
  display: none;
  background: #0d1322;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 0;
}

.mobile-quick-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-quick-scroll::-webkit-scrollbar {
  display: none;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.quick-pill.active,
.quick-pill:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* Slide-down Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  background: #0d1424;
  border-top: 1px solid var(--border-gold);
  border-bottom: 2px solid var(--accent-gold);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 16px 0 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-drawer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.mobile-drawer-links a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(22, 32, 51, 0.75);
  border: 1px solid var(--border-color);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.92rem;
}

.mobile-drawer-links a.active,
.mobile-drawer-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.1);
}

/* =========================================================
   3. HERO SECTION
   ========================================================= */
.hero-section {
  position: relative;
  padding: 42px 0 40px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              linear-gradient(180deg, #0d1424 0%, #090d16 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
}

.hero-content,
.hero-promo-card {
  min-width: 0;
  max-width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
  overflow-wrap: break-word;
}

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

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-bottom: 22px;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

.trust-item span.icon {
  color: var(--accent-green);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Hero Promo Card */
.hero-promo-card {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.promo-tag {
  background: var(--accent-green);
  color: #052e16;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.promo-amount {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 900;
  color: var(--accent-gold-light);
  line-height: 1.15;
  margin-bottom: 8px;
}

.promo-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.promo-steps {
  list-style: none;
  margin-bottom: 18px;
}

.promo-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: #e2e8f0;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.76rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   4. BREADCRUMBS & MAIN LAYOUT (ZERO GRID BLOWOUT)
   ========================================================= */
.breadcrumbs-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

.breadcrumbs-list li+li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
}

.main-wrapper {
  padding: 36px 0 70px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

/* Critical fix: prevent grid children from expanding past viewport */
.seo-article,
.sidebar-sticky {
  min-width: 0;
  max-width: 100%;
}

.seo-article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.seo-article h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.22;
}

.seo-article h2 {
  font-size: clamp(1.28rem, 2.1vw, 1.68rem);
  font-weight: 800;
  color: #ffffff;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.3;
}

.seo-article h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--accent-gold);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 4px;
}

.seo-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin: 24px 0 10px;
  line-height: 1.35;
}

.seo-article p {
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.99rem;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 20px 20px;
  color: var(--text-light);
}

.seo-article li {
  margin-bottom: 8px;
  font-size: 0.97rem;
}

.seo-article strong {
  color: #ffffff;
  font-weight: 700;
}

.seo-article code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-gold-light);
  word-break: break-all;
}

.seo-article a {
  color: var(--accent-gold-light);
  font-weight: 600;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.5);
}

.seo-article a:hover {
  color: #34d399;
  border-bottom-color: #34d399;
}

.seo-article a.btn {
  border-bottom: none;
}

/* =========================================================
   5. TABLES, CARDS, TOC, BONUS CALCULATOR & FAQ
   ========================================================= */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.afun-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

.afun-table th {
  background: #1e293b;
  color: var(--accent-gold-light);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-gold);
}

.afun-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  background: rgba(22, 32, 51, 0.6);
  vertical-align: top;
}

.afun-table tr:hover td {
  background: rgba(30, 43, 69, 0.9);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: inline-block;
}

.info-card h3 {
  margin-top: 0 !important;
  font-size: 1.1rem;
  color: #fff;
}

.info-card p {
  font-size: 0.91rem;
  margin-bottom: 12px;
}

/* Table of Contents */
.toc-box {
  background: rgba(22, 32, 51, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 18px 0 28px;
}

.toc-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-gold-light);
  margin-bottom: 12px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 18px;
  list-style: none !important;
  margin: 0 !important;
}

.toc-list li {
  margin: 0 !important;
}

.toc-list a {
  color: var(--text-light);
  font-size: 0.89rem;
  border-bottom: none !important;
  display: block;
  padding: 3px 0;
}

.toc-list a:hover {
  color: var(--accent-gold-light);
}

/* Callout Box */
.callout-box {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
  margin: 22px 0;
}

.callout-box h4 {
  color: var(--accent-gold-light);
  font-size: 1.02rem;
  margin-bottom: 6px;
}

/* Interactive Bonus Calculator */
.bonus-calc-widget {
  background: linear-gradient(145deg, #162033 0%, #0f172a 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 24px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.calc-input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.94rem;
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent-gold);
  margin: 10px 0;
  cursor: pointer;
  height: 8px;
}

.calc-result-box {
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.calc-total {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-green);
}

/* FAQ Accordion */
.faq-container {
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--accent-gold-light);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  color: var(--text-light);
  font-size: 0.93rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* =========================================================
   6. SIDEBAR & FOOTER
   ========================================================= */
.sidebar-sticky {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-widget h3 {
  font-size: 1.06rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.silo-nav-list {
  list-style: none;
}

.silo-nav-list li {
  margin-bottom: 7px;
}

.silo-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.88rem;
}

.silo-nav-list a:hover,
.silo-nav-list a.current {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.09);
}

.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 90px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

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

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold-light);
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.pay-pill {
  background: #162033;
  border: 1px solid var(--border-color);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Mobile Floating Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 13, 22, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  padding: 9px 12px;
  z-index: 1000;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.65);
}

/* =========================================================
   7. RESPONSIVE BREAKPOINTS (LAPTOP, TABLET & MOBILE)
   ========================================================= */

/* Compact Laptop Viewports (1080px - 1220px): keep header 100% single line */
@media (max-width: 1200px) {
  .main-nav a {
    font-size: 0.83rem;
    padding: 6px 9px;
  }
  .btn {
    padding: 8px 13px;
    font-size: 0.84rem;
  }
  .brand-logo {
    font-size: 1.28rem;
  }
}

/* Tablet & Mobile Navigation Switch (< 1040px) */
@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-quick-bar {
    display: block;
  }
  .hide-md {
    display: none !important;
  }
  .top-bar-inner {
    justify-content: center;
  }
  .hero-grid,
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .sidebar-sticky {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Phones (< 680px) */
@media (max-width: 680px) {
  .container {
    padding: 0 14px;
  }
  .hide-sm {
    display: none !important;
  }
  .top-bar {
    font-size: 0.73rem;
    padding: 5px 0;
  }
  .header-inner {
    height: 58px;
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.18rem;
    gap: 6px;
  }
  .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .btn-header-login {
    display: none;
  }
  .btn-header-register {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .hero-section {
    padding: 24px 0 28px;
  }
  .hero-title {
    font-size: 1.62rem;
    line-height: 1.22;
  }
  .hero-lead {
    font-size: 0.94rem;
    margin-bottom: 18px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
  }
  .hero-trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-promo-card {
    padding: 18px 16px;
  }
  .main-wrapper {
    padding: 20px 0 60px;
  }
  .seo-article {
    padding: 20px 15px;
    border-radius: 12px;
  }
  .seo-article h1 {
    font-size: 1.48rem;
  }
  .seo-article h2 {
    font-size: 1.22rem;
    margin: 28px 0 12px;
  }
  .seo-article h3 {
    font-size: 1.06rem;
  }
  .seo-article p,
  .seo-article li {
    font-size: 0.94rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .toc-box {
    padding: 15px 16px;
  }
  .toc-list {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .mobile-bottom-bar {
    display: grid;
  }
  .mobile-bottom-bar .btn {
    padding: 11px 12px;
    font-size: 0.88rem;
  }
}

/* Extra Small Phones (320px - 360px) */
@media (max-width: 360px) {
  .brand-logo span.mx-tag {
    display: none;
  }
  .btn-header-register {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}
