/* ==========================================================================
   PLAY99EXCH PREMIUM RE-ENGINEERED DESIGN SYSTEM
   Royal Blue & 3D Gold Palette matching Official Brand Assets
   App-like Mobile Interface, Floating WhatsApp Rail, & High-Conversion CTAs
   ========================================================================== */

:root {
  /* Official Brand Palette from Uploaded Assets */
  --royal-blue: #0D2C7D;
  --royal-blue-dark: #081B52;
  --royal-blue-light: #1640AC;
  --royal-blue-subtle: #1E4ED8;
  
  --logo-gold: #FFC800;
  --logo-amber: #FF9E00;
  --logo-teal: #0A7075;
  --logo-teal-dark: #064E52;

  --wa-green: #25D366;
  --wa-green-hover: #1EBE5D;
  --wa-green-dark: #128C7E;

  --bg-page: #0A2268;
  --bg-dark-section: #071746;
  --bg-card: #FFFFFF;
  --bg-card-dark: #0E2974;

  --text-main: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light-muted: #A8BEE8;

  --border-light: rgba(255, 255, 255, 0.15);
  --border-dark: #E2E8F0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 14px rgba(37, 211, 102, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px; /* Space for mobile app bottom bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  color: var(--text-light-muted);
  text-wrap: pretty;
  margin-bottom: 1rem;
  max-width: 74ch;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 640px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Top App-like Navigation Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--royal-blue-dark);
  border-bottom: 2px solid rgba(255, 200, 0, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-right: auto;
}
.brand-logo-img {
  height: 2.75rem;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: all 0.2s ease;
}

.header-nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .header-nav-links {
    display: flex;
  }
}

.header-nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #E2E8F0;
  padding: 0.35rem 0.2rem;
  position: relative;
}
.header-nav-link:hover, .header-nav-link.active {
  color: var(--logo-gold);
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Primary WhatsApp CTA Button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
}
.btn-wa svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-login-hdr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--logo-gold);
  color: #0A1E4A !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.btn-login-hdr:hover {
  transform: translateY(-1px);
  background-color: #FFAE00;
}

/* Mobile Header Layout Rules */
@media (max-width: 768px) {
  .app-header {
    border-bottom: 1.5px solid rgba(255, 200, 0, 0.2);
  }
  .app-header-inner {
    height: 3.75rem;
    gap: 0.75rem;
  }
  .brand-logo-img {
    height: 2.15rem;
    max-width: 135px;
  }
  .header-action-group {
    gap: 0.45rem;
  }
  .btn-login-hdr {
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 6px;
  }
  .btn-wa {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    border-radius: 9999px;
  }
  .btn-wa svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
  }
}

@media (max-width: 440px) {
  .app-header-inner {
    height: 3.5rem;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 1.9rem;
    max-width: 110px;
  }
  .header-action-group {
    gap: 0.35rem;
  }
  .btn-login-hdr {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }
  .btn-wa {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }
  .btn-wa svg {
    width: 0.85rem !important;
    height: 0.85rem !important;
  }
}

@media (max-width: 350px) {
  .brand-logo-img {
    height: 1.7rem;
    max-width: 90px;
  }
  .btn-login-hdr {
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
  }
  .btn-wa {
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   HERO SECTION WITH EXACT SCREENSHOT REPLICA (FORM & 3D LOGO)
   ========================================================================== */
.hero-portal-section {
  background: radial-gradient(circle at 50% 20%, #153E9E 0%, #0A2268 70%);
  padding: 2.5rem 1rem 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border-bottom: 2px solid rgba(255, 200, 0, 0.2);
}

.hero-portal-logo {
  max-width: 440px;
  width: 90%;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Exact Login Card from User Screenshot */
.auth-portal-card {
  background-color: #FFFFFF;
  color: var(--text-dark);
  width: 100%;
  max-width: 375px;
  border-radius: 12px;
  padding: 1.85rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  text-align: center;
  position: relative;
}

.auth-card-title {
  color: var(--royal-blue);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}

.auth-input-group {
  position: relative;
  margin-bottom: 1rem;
  text-align: left;
}

.auth-input {
  width: 100%;
  height: 2.75rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 2.5rem 0 0.85rem;
  font-size: 0.9375rem;
  color: #1E293B;
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease;
}
.auth-input:focus {
  border-color: var(--royal-blue);
}

.auth-input-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #475569;
  pointer-events: none;
}

.btn-auth-submit {
  width: 100%;
  height: 2.85rem;
  background-color: #1E4ED8;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-auth-submit:hover {
  background-color: #163CB0;
  transform: translateY(-1px);
}

.btn-auth-demo {
  width: 100%;
  height: 2.85rem;
  background-color: #0F2D72;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-auth-demo:hover {
  background-color: #0A1F52;
  transform: translateY(-1px);
}

.auth-disclaimer {
  font-size: 0.7rem;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.auth-disclaimer a {
  color: #1E4ED8;
  text-decoration: underline;
}

.auth-support-email {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E4ED8;
  display: inline-block;
}

/* ==========================================================================
   FLOATING WHATSAPP STACK (AS SEEN IN REFERENCE SCREENSHOT)
   ========================================================================== */
.floating-wa-rail {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .floating-wa-rail {
    bottom: 2rem;
    left: 1.5rem;
    right: auto;
  }
}

@media (max-width: 768px) {
  .floating-wa-rail {
    right: 1rem;
    left: auto;
    bottom: 5.25rem;
    gap: 0.5rem;
  }
  .floating-wa-rail a:nth-child(n+2) {
    display: none;
  }
  .wa-bubble-btn {
    width: 2.85rem;
    height: 2.85rem;
  }
}

.wa-bubble-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border: 2px solid #FFFFFF;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulseWa 2.5s infinite;
}
.wa-bubble-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}
.wa-bubble-btn svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: #FFFFFF;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   5-SECOND 100% WELCOME BONUS POPUP MODAL
   ========================================================================== */
.bonus-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(6, 17, 50, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
.bonus-popup-overlay.is-active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bonus-popup-card {
  background: linear-gradient(165deg, #0E2974 0%, #071746 100%);
  border: 2px solid var(--logo-gold);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: popUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-size: 1.75rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
}
.popup-close-btn:hover {
  color: #FFFFFF;
}

.popup-badge {
  display: inline-block;
  background-color: var(--logo-gold);
  color: #0A1E4A;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.popup-title {
  font-size: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.popup-title span {
  color: var(--logo-gold);
}

.popup-text {
  font-size: 0.9375rem;
  color: #CBD5E1;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.popup-wa-btn {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 800;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  transition: transform 0.15s ease;
}
.popup-wa-btn:hover {
  transform: translateY(-2px);
}

.popup-secondary-btn {
  font-size: 0.8125rem;
  color: #94A3B8;
  text-decoration: underline;
}
.popup-secondary-btn:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MOBILE APP BOTTOM NAVIGATION BAR (APP INTERFACE FOR MOBILE)
   ========================================================================== */
.mobile-app-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #071746;
  border-top: 1px solid rgba(255, 200, 0, 0.25);
  z-index: 80;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

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

.app-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94A3B8;
  font-size: 0.6875rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
}
.app-bar-item.active, .app-bar-item:hover {
  color: var(--logo-gold);
}
.app-bar-icon {
  font-size: 1.25rem;
}

.app-bar-wa-center {
  position: relative;
  top: -12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #071746;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}
.app-bar-wa-center svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: #FFFFFF;
}

/* ==========================================================================
   MAIN CONTENT, HEADINGS, CALCULATOR, & DIRECTORY BELOW FORM
   ========================================================================== */
.main-seo-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-h1-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-h1-wrap h1 {
  font-size: 2.35rem;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}
.section-h1-wrap h1 span {
  color: var(--logo-gold);
}
.section-h1-lead {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 800px;
  margin: 0 auto;
}

/* Re-styled Calculator with Brand Colors */
.calc-card {
  background: linear-gradient(165deg, #0E2974 0%, #071746 100%);
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  max-width: 650px;
  margin: 0 auto 3rem auto;
}
.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.calc-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #06153E;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.calc-tab {
  padding: 0.55rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  transition: all 0.15s ease;
}
.calc-tab.active-back {
  background-color: #1E4ED8;
  color: #FFFFFF;
}
.calc-tab.active-lay {
  background-color: #E11D48;
  color: #FFFFFF;
}

.calc-field {
  margin-bottom: 1rem;
  text-align: left;
}
.calc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 0.35rem;
}
.calc-input {
  width: 100%;
  background-color: #06153E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
}
.calc-input:focus {
  border-color: var(--logo-gold);
}

.calc-results {
  background-color: #06153E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1.25rem;
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  color: #CBD5E1;
}
.calc-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-weight: 800;
  color: #FFFFFF;
}
.calc-val {
  font-family: var(--font-mono);
  font-weight: 700;
}
.calc-val.green {
  color: var(--wa-green);
}
.calc-val.amber {
  color: var(--logo-gold);
}

/* Category Grid */
.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.875rem;
  margin-bottom: 3rem;
}
.cat-tile {
  background-color: #0D266E;
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--logo-gold);
  background-color: #123494;
}
.cat-icon {
  font-size: 1.75rem;
}
.cat-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* 30-Game Directory */
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background-color: #0D266E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  transition: all 0.15s ease;
}
.filter-btn.active, .filter-btn:hover {
  background-color: var(--logo-gold);
  color: #071746;
  border-color: var(--logo-gold);
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.search-input {
  width: 100%;
  background-color: #0D266E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem 0.6rem 2.25rem;
  font-size: 0.875rem;
  color: #FFFFFF;
  outline: none;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.game-card {
  background: linear-gradient(165deg, #0E2974 0%, #071746 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--logo-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.game-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}
.game-card-desc {
  font-size: 0.8125rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.game-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.is-active {
  display: flex;
}
.modal-box {
  background: #0E2974;
  border: 2px solid var(--logo-gold);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: #CBD5E1;
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
}
.badge-gold {
  background: rgba(255, 200, 0, 0.2);
  color: var(--logo-gold);
  border: 1px solid var(--logo-gold);
}
.badge-blue {
  background: rgba(30, 78, 216, 0.3);
  color: #93C5FD;
  border: 1px solid #3B82F6;
}
.badge-green {
  background: rgba(37, 211, 102, 0.2);
  color: #4ADE80;
  border: 1px solid #22C55E;
}

/* TOC & Article */
.toc-card {
  background: #071746;
  border: 1px solid rgba(255, 200, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--logo-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem 1.5rem;
}
.toc-list li a {
  font-size: 0.875rem;
  color: #CBD5E1;
}
.toc-list li a:hover {
  color: var(--logo-gold);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: #071746;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2.5rem 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table th {
  background-color: #0E2974;
  color: #FFFFFF;
  font-weight: 800;
}
.comparison-table td.highlight {
  font-weight: 700;
  color: var(--logo-gold);
  background-color: rgba(255, 200, 0, 0.08);
}

/* FAQs */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.75rem 0 2.5rem 0;
}
.faq-item {
  background-color: #071746;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  text-align: left;
}
.faq-trigger:hover {
  color: var(--logo-gold);
}
.faq-item.is-open .faq-body {
  display: block;
}
.faq-body {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: #CBD5E1;
  line-height: 1.6;
}

/* Author Box */
.author-box {
  background: #071746;
  border: 1px solid rgba(255, 200, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
}
.author-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--logo-gold);
  background: #0E2974;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #040D28;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2rem 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--logo-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: #94A3B8;
}
.footer-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
