/* ==========================================================================
   CRICKET KI ID — CORE DESIGN SYSTEM (Oxblood Maroon & Gold)
   ========================================================================== */

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

:root {
  --ink-950: #140405;
  --ink-900: #1A0507;
  --ink-800: #25080B;
  --ink-700: #3E1013;
  --oxblood-700: #4A0D12;
  --oxblood-600: #5E1219;
  --red-600: #A81C22;
  --gold-600: #C9971F;
  --gold-500: #E8B23A;
  --gold-400: #F2C14E;
  --gold-300: #F8D98A;
  --cream-100: #FFF6E4;
  --cream-200: #F5E9D0;
  --paper: #FFFFFF;
  --slate-600: #52403C;
  --slate-300: #D9C4BC;
  --live: #E5383B;
  --odds-bg: #EAF6EE;
  --odds-text: #1F6B45;
  --wa: #25D366;
  --wa-dark: #128C7E;

  --font-display: 'Anton', 'Impact', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-gold: 0 8px 26px rgba(232, 178, 58, 0.3);
  --shadow-gold-lg: 0 12px 36px rgba(232, 178, 58, 0.45);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-300);
  background-color: var(--ink-950);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
  html {
    font-size: 17px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: var(--ink-950);
}

/* Accessibility Focus Ring */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.15;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.font-script {
  font-family: var(--font-script);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--gold-500);
  color: var(--ink-950);
  padding: 8px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(26, 5, 7, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-700);
  height: 68px;
  display: flex;
  align-items: center;
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-crown-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-500);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 0.9;
  color: var(--gold-400);
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-300);
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
  }
}

.nav-link {
  color: #EDE3E0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
  position: relative;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  color: var(--ink-950);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-lg);
}

.btn-gold:active {
  transform: translateY(1px);
  background: var(--gold-600);
}

.btn-outline {
  background: rgba(37, 8, 11, 0.6);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.btn-outline:hover {
  background: rgba(232, 178, 58, 0.15);
  color: #FFFFFF;
  border-color: var(--gold-300);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background: linear-gradient(135deg, #34E578 0%, #17A08F 100%);
  transform: translateY(-1px);
}

.btn-red {
  background: linear-gradient(135deg, var(--red-600) 0%, #7D1217 100%);
  color: #FFFFFF;
  border-color: var(--red-600);
}

.btn-red:hover {
  background: linear-gradient(135deg, #C2242B 0%, var(--red-600) 100%);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background-color: var(--ink-950);
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink-700);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-video, .hero-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.25) contrast(1.1);
}

.hero-radial-bloom {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232, 178, 58, 0.18) 0%, rgba(94, 18, 25, 0.4) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 4, 5, 0.96) 0%, rgba(20, 4, 5, 0.75) 45%, rgba(20, 4, 5, 0.3) 100%),
              linear-gradient(180deg, transparent 60%, var(--ink-950) 100%);
  z-index: 2;
}

.hero-content-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.t20-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--red-600) 0%, #5E1219 100%);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 193, 78, 0.3);
}

.hero-script-tag {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--gold-400);
  transform: rotate(-1.5deg);
  display: inline-block;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  color: var(--gold-400);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}

.hero-subline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .hero-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 8, 11, 0.7);
  border: 1px solid var(--ink-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #EDE3E0;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-artwork-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 1px solid var(--ink-700);
}

.hero-artwork-img {
  width: 100%;
  height: auto;
  display: block;
}

/* POPULAR TOURNAMENTS STRIP */
.tournaments-strip {
  background-color: var(--cream-100);
  color: var(--slate-600);
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tournaments-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tournaments-flex::-webkit-scrollbar {
  display: none;
}

.tournaments-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--red-600);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.league-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2D1E1B;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.league-item:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.league-badge-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* LIVE MATCHES SECTION */
.section-live-matches {
  padding: 48px 0;
  background-color: var(--ink-900);
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--live);
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-chips-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  color: var(--slate-300);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-chip.active, .filter-chip:hover {
  background: var(--gold-500);
  color: var(--ink-950);
  border-color: var(--gold-400);
}

.live-matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .live-matches-grid {
    grid-template-columns: 2.2fr 1fr;
  }
}

.match-cards-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.match-card:hover {
  border-color: var(--oxblood-600);
  transform: translateY(-2px);
}

.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.match-tournament-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-400);
}

.live-indicator-chip {
  background: var(--live);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.match-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.team-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-box.away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #140405;
  padding: 4px;
  border: 1px solid var(--ink-700);
}

.team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.match-score-center {
  text-align: center;
}

.current-score {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-400);
  line-height: 1;
}

.target-overs {
  font-size: 0.75rem;
  color: var(--slate-300);
  margin-top: 2px;
}

.match-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(62, 16, 19, 0.6);
  padding-top: 12px;
  flex-wrap: wrap;
}

.odds-chips-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.odds-chip {
  background: var(--odds-bg);
  color: var(--odds-text);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.odds-chip:hover {
  background: #D4ECD9;
  transform: scale(1.03);
}

/* BIG BASH LEAGUE PROMO CARD */
.bbl-promo-card {
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--oxblood-700) 100%);
  border: 1px solid var(--gold-600);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.promo-trophy-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 10px 20px rgba(232, 178, 58, 0.4));
}

.promo-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.promo-features {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #EDE3E0;
}

/* SPORTS MARKETS ROW */
.section-sports-markets {
  padding: 56px 0;
  background-color: var(--ink-950);
}

.sports-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .sports-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sports-grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.sport-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ink-700);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.sport-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
}

.sport-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}

.sport-photo-card:hover .sport-card-bg {
  transform: scale(1.08);
}

.sport-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,4,5,0.1) 0%, rgba(20,4,5,0.85) 75%, rgba(20,4,5,0.98) 100%);
  z-index: 2;
}

.sport-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.sport-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #FFFFFF;
  line-height: 1;
}

.sport-sub {
  font-size: 0.72rem;
  color: var(--gold-400);
  margin-top: 2px;
}

.sport-circle-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* WHY CHOOSE CRICKET KI ID BAND */
.section-why-choose {
  background: linear-gradient(135deg, var(--oxblood-700) 0%, var(--ink-900) 100%);
  border-top: 1px solid var(--ink-700);
  border-bottom: 1px solid var(--ink-700);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.why-items-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .why-items-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(232, 178, 58, 0.15);
  border: 1px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.why-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.why-item-desc {
  font-size: 0.76rem;
  color: var(--slate-300);
}

/* CONTENT SECTIONS & EDITORIAL (3,300+ words) */
.editorial-wrapper {
  background-color: var(--ink-950);
  padding: 64px 0;
}

.editorial-content {
  max-width: 900px;
  margin: 0 auto;
}

.editorial-section {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-700);
}

.editorial-section:last-child {
  border-bottom: none;
}

.editorial-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--gold-400);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.editorial-section h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-top: 24px;
  margin-bottom: 12px;
}

.editorial-section p {
  color: var(--slate-300);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.editorial-section ul, .editorial-section ol {
  margin: 16px 0 20px 24px;
  color: var(--slate-300);
}

.editorial-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* COMPARISON TABLE */
.table-responsive-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 28px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--oxblood-700);
  color: var(--gold-400);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-600);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-700);
  color: #EDE3E0;
}

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

.comparison-table tr:hover td {
  background: rgba(94, 18, 25, 0.25);
}

.check-green {
  color: var(--wa);
  font-weight: 700;
}

.cross-red {
  color: var(--live);
  font-weight: 700;
}

/* FAQ ACCORDION */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.faq-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: var(--gold-500);
}

.faq-question {
  font-size: 1.1rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--slate-300);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ARTICLE / GUIDE CARDS ROW */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

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

@media (min-width: 1024px) {
  .guides-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guide-card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.guide-card-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-card-snippet {
  color: var(--slate-300);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.guide-card-readmore {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FOOTER */
.site-footer {
  background-color: var(--ink-900);
  border-top: 1px solid var(--ink-700);
  padding: 56px 0 96px 0;
  color: var(--slate-300);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer-column h4 {
  font-size: 1rem;
  color: var(--gold-400);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links-list a {
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--gold-400);
}

.footer-bottom-bar {
  border-top: 1px solid var(--ink-700);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* MOBILE BOTTOM NAV BAR & FAB */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(26, 5, 7, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--ink-700);
  z-index: 900;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
  .site-footer {
    padding-bottom: 56px;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--gold-400);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 82px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 850;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}

.whatsapp-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@media (min-width: 1024px) {
  .whatsapp-fab {
    bottom: 28px;
    right: 28px;
  }
}

/* POPUP MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 2, 3, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal-dialog {
  background: linear-gradient(145deg, var(--ink-800) 0%, var(--oxblood-700) 100%);
  border: 1px solid var(--gold-500);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.modal-backdrop.is-active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--slate-300);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* ACCESSIBILITY & REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-dot, .whatsapp-fab-pulse {
    animation: none;
  }
}
