:root {
  --bg-main: #0E0E0E;
  --bg-nebula: #1A1A1A;
  --bg-card: #1F2227;
  --bg-panel: rgba(20, 22, 26, 0.94);
  --orange-main: #FC8F00;
  --orange-bright: #FFB534;
  --gold-light: #FFD800;
  --slate-header: #333333;
  --slate-dark: #21252B;
  --red-promo: #FF4435;
  --green-neon: #18FF59;
  --text-main: #FFFFFF;
  --text-body: #F5F6F8;
  --text-muted: #D7D7D7;
  --grad-header-top: linear-gradient(180deg, #1E2024 0%, #333333 100%);
  --grad-orange-btn: linear-gradient(0deg, #FC8F01 0%, #FFB534 100%);
  --grad-dark-btn: linear-gradient(180deg, #2B3038 0%, #1C2026 100%);
  --grad-orange-text: linear-gradient(180deg, #FFF3B0 0%, #FFB534 48%, #FC8F00 100%);
  --grad-divider: linear-gradient(90deg, transparent, #FC8F00 25%, #FFD800 50%, #FC8F00 75%, transparent);
  --shadow-card: 0 10px 26px rgba(0, 0, 0, 0.82);
  --shadow-orange-glow: 0 0 15px rgba(252, 143, 0, 0.48);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 47px;
  --container-max: 1200px;
}

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

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

body {
  font-family: 'Noto Sans Thai', 'Kanit', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(252, 143, 0, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 85% 16%, rgba(255, 181, 52, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(252, 143, 0, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0E0E0E 0%, #1A1A1A 50%, #0E0E0E 100%);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.hero-grid > *,
.quick-strip-grid > *,
.grid-cards > *,
.trust-badges > *,
.footer-grid > *,
.main-nav > * {
  min-width: 0;
  max-width: 100%;
}

a {
  color: var(--orange-bright);
  text-decoration: none;
  transition: all 0.22s ease;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gold-divider {
  width: 100%;
  height: 2px;
  background: var(--grad-divider);
}

/* Top Hot-News Bar matching 78900116.vip (#1a1a1a + border-bottom #ffd470) */
.announcement-bar {
  background: linear-gradient(90deg, #121316 0%, #242830 50%, #121316 100%);
  border-bottom: 1px solid #FFD470;
  padding: 0.38rem 0;
  font-size: 0.85rem;
  color: #FFD470;
  text-align: center;
  font-weight: 600;
}

/* Sticky Header matching 78900116.vip (.header-top { background: #333 }) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--grad-header-top);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9);
}

.header-top {
  padding: 0.55rem 0;
}

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

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 155px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(252, 143, 0, 0.45));
}

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

.brand-text-title {
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: #FFD470;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-menu-toggle {
  display: none;
}

.mobile-box-title {
  display: none;
}

/* Navigation Bar on Desktop */
.header-nav-bar {
  background: linear-gradient(180deg, #21252B 0%, #14161A 100%);
  border-top: 1px solid rgba(252, 143, 0, 0.4);
  border-bottom: 3px solid var(--orange-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  flex-wrap: wrap;
  padding: 0.48rem 0;
}

.main-nav a {
  color: #FFFFFF;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(252, 143, 0, 0.28);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--grad-orange-btn);
  color: #000000;
  border-color: #FFE082;
  box-shadow: var(--shadow-orange-glow);
}

.main-nav a:hover .nav-label,
.main-nav a.active .nav-label {
  color: #000000;
}

/* Official 789BET Pill Buttons (.btns .login { color:#000; background:#f49a25 } & .btns .reg { color:#fc8f00; border:1px solid #fc8f00; background:#21252b }) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-register,
.btn-primary {
  background: var(--grad-orange-btn);
  color: #000000 !important;
  border: 2px solid #FFE082;
  box-shadow: var(--shadow-orange-glow);
}

.btn-register:hover,
.btn-primary:hover {
  background: linear-gradient(0deg, #FFA000 0%, #FFD54F 100%);
  color: #000000 !important;
  transform: translateY(-2px);
}

.btn-login,
.btn-outline {
  background: #21252B;
  color: #FC8F00 !important;
  border: 2px solid #FC8F00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.btn-login:hover,
.btn-outline:hover {
  background: #FC8F00;
  color: #000000 !important;
  transform: translateY(-2px);
}

.btn-hero-pill {
  background: var(--grad-orange-btn);
  color: #000000 !important;
  border: 2px solid #FFE082;
  border-radius: var(--radius-pill);
  padding: 0.92rem 2.35rem;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 6px 24px rgba(252, 143, 0, 0.55);
}

.btn-hero-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Breadcrumb Bar */
.breadcrumb-bar {
  background: #121417;
  border-bottom: 1px solid rgba(252, 143, 0, 0.25);
  padding: 0.62rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--orange-bright);
}

/* Hero Section matching 78900116.vip */
.hero-section {
  position: relative;
  padding: 2.7rem 0 2.3rem;
  background:
    radial-gradient(circle at 18% 25%, rgba(252, 143, 0, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 82% 30%, rgba(255, 181, 52, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #21252B 0%, #14161A 60%, #0E0E0E 100%);
  border-bottom: 4px solid var(--orange-main);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(252, 143, 0, 0.22) 0%, rgba(33, 37, 43, 0.95) 100%);
  border: 1px solid var(--orange-bright);
  color: #FFD470;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-orange-glow);
}

/* 789BET Orange-Gold Headings */
h1, h2 {
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  background: var(--grad-orange-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  line-height: 1.32;
}

h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.48rem);
  margin-bottom: 0.95rem;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.86rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  font-size: 1.2rem;
  color: var(--orange-bright);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.hero-lead {
  font-size: 1.03rem;
  color: var(--text-body);
  margin-bottom: 1.4rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-subnote {
  font-size: 0.92rem;
  color: #FFD470;
  font-weight: 600;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.trust-item {
  background: linear-gradient(180deg, #262A32 0%, #15171C 100%);
  border: 1px solid rgba(252, 143, 0, 0.55);
  border-bottom: 4px solid var(--orange-main);
  border-radius: 14px;
  padding: 0.7rem 0.55rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.trust-item strong {
  display: block;
  font-size: 1.12rem;
  color: var(--orange-bright);
}

.trust-item span {
  font-size: 0.78rem;
  color: #FFFFFF;
}

/* Quick Category Tile Strip matching 78900116.vip */
.quick-strip {
  background: linear-gradient(180deg, #14161A 0%, #1F2329 100%);
  padding: 1.45rem 0;
  border-bottom: 2px solid rgba(252, 143, 0, 0.35);
}

.quick-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.95rem;
}

.quick-pill-card {
  background: linear-gradient(180deg, #2A2E37 0%, #16181D 100%);
  border: 1px solid rgba(252, 143, 0, 0.5);
  border-bottom: 4px solid var(--orange-main);
  border-radius: 16px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, background 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.quick-pill-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, #3A3F4B 0%, #242830 100%);
  border-color: var(--gold-light);
}

.quick-pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--grad-orange-btn);
  color: #000000;
}

.quick-pill-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Zero CLS Media Frame */
figure.media-frame {
  margin: 1.4rem 0;
  background: #121417;
  border: 2px solid var(--orange-main);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 14px rgba(252, 143, 0, 0.28);
}

figure.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

figure.media-frame figcaption {
  padding: 0.68rem 1rem;
  font-size: 0.86rem;
  color: #FFD470;
  background: linear-gradient(180deg, #21252B 0%, #14161A 100%);
  border-top: 1px solid rgba(252, 143, 0, 0.35);
  text-align: center;
}

/* Content Panels */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: rgba(24, 27, 32, 0.85);
  border-top: 2px solid rgba(252, 143, 0, 0.32);
  border-bottom: 2px solid rgba(252, 143, 0, 0.32);
}

.content-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(252, 143, 0, 0.35);
  border-top: 4px solid var(--orange-main);
  border-bottom: 5px solid var(--orange-bright);
  border-radius: 24px;
  padding: 2.1rem;
  box-shadow: var(--shadow-card);
}

.direct-answer {
  background: linear-gradient(90deg, rgba(252, 143, 0, 0.16) 0%, rgba(28, 31, 38, 0.96) 100%);
  border-left: 4px solid var(--orange-main);
  border-top: 1px solid rgba(252, 143, 0, 0.35);
  border-right: 1px solid rgba(252, 143, 0, 0.35);
  border-bottom: 1px solid rgba(252, 143, 0, 0.35);
  border-radius: 0 14px 14px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.4rem;
  color: #FFFFFF;
}

/* Review Verdict Box */
.review-verdict-box {
  margin: 1.4rem 0;
  background: linear-gradient(180deg, #262A32 0%, #15171C 100%);
  border: 1px solid var(--orange-bright);
  border-left: 5px solid var(--orange-main);
  border-radius: 18px;
  padding: 1.3rem 1.45rem;
  box-shadow: var(--shadow-orange-glow);
}

.review-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(252, 143, 0, 0.3);
}

.review-verdict-title {
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 1.08rem;
}

.review-score-badge {
  background: var(--grad-orange-btn);
  color: #000000;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.26rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* 3x2 Symmetrical Grid Cards with 1:1 Fitted Artwork */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.45rem;
  margin-top: 1.4rem;
}

.card {
  background: linear-gradient(180deg, #252930 0%, #14161A 100%);
  border: 1px solid rgba(252, 143, 0, 0.42);
  border-bottom: 5px solid var(--orange-main);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-orange-glow);
}

.card-media-1x1 {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 0.95rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #121417;
  border: 2px solid var(--orange-main);
}

.card-img-1x1 {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--grad-orange-btn);
  color: #000000;
  border: 1px solid #FFE082;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.22rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-body);
  font-size: 0.94rem;
  margin-bottom: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--orange-bright);
  margin-top: auto;
}

/* Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border-radius: 16px;
  border: 1px solid var(--orange-main);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #16181D;
  min-width: 620px;
}

th {
  background: linear-gradient(90deg, #2B303A 0%, #3E2B14 60%, #7A4500 100%);
  color: #FFD470;
  font-weight: 800;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--orange-main);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(252, 143, 0, 0.16);
  color: var(--text-body);
}

tr:hover td {
  background: rgba(252, 143, 0, 0.1);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.feature-list li {
  background: #1B1E24;
  border: 1px solid rgba(252, 143, 0, 0.3);
  border-left: 4px solid var(--orange-main);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.faq-item {
  background: linear-gradient(180deg, #22262E 0%, #15171C 100%);
  border: 1px solid rgba(252, 143, 0, 0.35);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}

.faq-question {
  color: var(--orange-bright);
  font-weight: 700;
  font-size: 1.04rem;
  margin-bottom: 0.4rem;
}

.faq-answer {
  color: var(--text-body);
  font-size: 0.95rem;
}

.author-box {
  margin-top: 1.8rem;
  background: linear-gradient(180deg, #252932 0%, #14161A 100%);
  border: 1px solid var(--orange-main);
  border-radius: 18px;
  padding: 1.25rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.author-box strong {
  color: var(--orange-bright);
  font-size: 1.02rem;
}

/* Footer matching 78900116.vip (.footer { background: #0e0e0e }) */
.site-footer {
  background: linear-gradient(180deg, #1E2229 0%, #121417 45%, #0E0E0E 100%);
  border-top: 4px solid var(--orange-main);
  padding: 2.8rem 0 0;
  margin-top: 2.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-title {
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 1.04rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.footer-links a {
  color: #F5F6F8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--orange-bright);
}

.footer-bottom {
  background: #0A0A0C;
  padding: 1.05rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(252, 143, 0, 0.25);
}

/* ==========================================================================
   📱 TABLET & MOBILE 4x2 3D BOXED MENU + RESPONSIVE DESIGN (<= 1100px)
   ========================================================================== */
@media (max-width: 1100px) {
  .site-header {
    position: relative;
  }

  .header-top {
    position: sticky;
    top: 0;
    z-index: 1010;
    background: linear-gradient(180deg, #1E2024 0%, #333333 100%);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--orange-main);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  }

  .header-top-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .brand-logo-wrap {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand-logo-img {
    width: 120px;
    height: 42px;
    flex-shrink: 0;
  }

  .brand-text-title {
    font-size: 1.24rem;
  }

  .brand-text-sub {
    font-size: 0.65rem;
    letter-spacing: 0.4px;
  }

  .header-auth {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .header-auth .btn {
    padding: 0.46rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
  }

  /* Orange-Gold Box Menu Toggle Button for Tablet & Mobile */
  .btn-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.46rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #2C313A 0%, #181B20 100%);
    border: 1.5px solid var(--orange-main);
    color: #FFD470;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .btn-menu-toggle.active,
  .btn-menu-toggle:hover {
    background: var(--grad-orange-btn);
    color: #000000;
  }

  .toggle-icon {
    font-size: 1.05rem;
    line-height: 1;
  }

  /* Boxed Menu Container for Tablet & Mobile */
  .header-nav-bar {
    display: none;
    background:
      radial-gradient(circle at 50% 0%, rgba(252, 143, 0, 0.18) 0%, transparent 70%),
      linear-gradient(180deg, #1E2229 0%, #101215 100%);
    padding: 0.75rem 0 0.95rem;
    border-top: none;
    border-bottom: 4px solid var(--orange-main);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 6px 18px rgba(0, 0, 0, 0.8);
  }

  .header-nav-bar.is-open {
    display: block;
  }

  .mobile-box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, rgba(252, 143, 0, 0.25) 0%, rgba(33, 37, 43, 0.92) 100%);
    border: 1px solid rgba(252, 143, 0, 0.45);
    border-left: 4px solid var(--orange-main);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFD470;
  }

  .mobile-box-hint {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.55);
    color: var(--orange-bright);
    border: 1px solid rgba(252, 143, 0, 0.35);
  }

  /* 4x2 Symmetrical 3D Orange-Gold Box Grid Menu */
  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0;
  }

  .main-nav a,
  .main-nav a.nav-box-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.28rem;
    padding: 0.65rem 0.35rem;
    min-height: 72px;
    background: linear-gradient(180deg, #2B303A 0%, #191C22 65%, #111317 100%);
    border: 1.5px solid rgba(252, 143, 0, 0.65);
    border-bottom: 3.5px solid var(--orange-main);
    border-radius: 14px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 224, 130, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .main-nav a .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(252, 143, 0, 0.38);
    box-shadow: inset 0 0 6px rgba(252, 143, 0, 0.25);
  }

  .main-nav a .nav-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    white-space: nowrap;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: linear-gradient(180deg, #FFE082 0%, #FFB534 48%, #FC8F00 100%);
    border-color: #FFFFFF;
    border-bottom-color: #21252B;
    box-shadow: 0 0 16px rgba(252, 143, 0, 0.72);
    transform: translateY(-2px);
  }

  .main-nav a:hover .nav-icon,
  .main-nav a.active .nav-icon {
    background: rgba(20, 22, 26, 0.9);
    border-color: #FFFFFF;
  }

  .main-nav a:hover .nav-label,
  .main-nav a.active .nav-label {
    color: #000000;
    font-weight: 900;
  }

  /* Tablet Layout Refinements */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .content-panel {
    padding: 1.6rem 1.35rem;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   📱 MOBILE VIEWPORT POLISH (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .announcement-bar {
    font-size: 0.72rem;
    padding: 0.28rem 0;
  }

  .announcement-inner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .brand-logo-wrap {
    gap: 0.35rem;
  }

  .brand-logo-img {
    width: 96px;
    height: 34px;
  }

  .brand-text-title {
    font-size: 0.94rem;
  }

  .brand-text-sub {
    display: none;
  }

  .header-auth {
    gap: 0.25rem;
  }

  .header-auth .btn {
    padding: 0.36rem 0.5rem;
    font-size: 0.73rem;
    border-radius: 8px;
    border-width: 1.5px;
  }

  .btn-menu-toggle {
    padding: 0.35rem 0.48rem;
    font-size: 0.73rem;
    border-radius: 8px;
    gap: 0.2rem;
  }

  .mobile-box-title {
    padding: 0.32rem 0.55rem;
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
  }

  .mobile-box-hint {
    font-size: 0.66rem;
    padding: 0.1rem 0.42rem;
  }

  /* 4x2 Boxed Menu Grid on Mobile */
  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.38rem;
    width: 100%;
  }

  .main-nav a,
  .main-nav a.nav-box-item {
    padding: 0.46rem 0.15rem;
    min-height: 62px;
    border-radius: 11px;
    width: 100%;
  }

  .main-nav a .nav-icon {
    width: 28px;
    height: 28px;
    font-size: 1.12rem;
    border-radius: 7px;
  }

  .main-nav a .nav-label {
    font-size: 0.74rem;
  }

  /* Mobile Hero Section */
  .hero-section {
    padding: 1.25rem 0 1.4rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    padding: 0.24rem 0.65rem;
    margin-bottom: 0.6rem;
    max-width: 100%;
    white-space: normal;
  }

  h1 {
    font-size: 1.38rem;
    line-height: 1.34;
    margin-bottom: 0.65rem;
    word-wrap: break-word;
  }

  h2 {
    font-size: 1.2rem;
    line-height: 1.35;
    word-wrap: break-word;
  }

  h3 {
    font-size: 1.05rem;
  }

  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.62;
    margin-bottom: 1rem;
  }

  /* Side-by-side symmetrical CTA buttons on Mobile */
  .hero-cta-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-bottom: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-hero-pill {
    width: 100%;
    padding: 0.68rem 0.35rem;
    font-size: 0.8rem;
    border-radius: 11px;
    text-align: center;
    white-space: nowrap;
  }

  .hero-subnote {
    font-size: 0.76rem;
    text-align: center;
    background: rgba(252, 143, 0, 0.14);
    border: 1px solid rgba(252, 143, 0, 0.35);
    border-radius: 10px;
    padding: 0.42rem 0.5rem;
  }

  /* 2x2 Boxed Trust Badges on Mobile */
  .trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    margin-top: 0.9rem;
  }

  .trust-item {
    padding: 0.55rem 0.35rem;
    border-radius: 11px;
  }

  .trust-item strong {
    font-size: 0.96rem;
  }

  .trust-item span {
    font-size: 0.72rem;
  }

  /* 3x2 Quick Category Box Grid on Mobile */
  .quick-strip {
    padding: 1rem 0;
  }

  .quick-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .quick-pill-card {
    padding: 0.58rem 0.25rem;
    border-radius: 12px;
  }

  .quick-pill-badge {
    font-size: 0.62rem;
    padding: 0.1rem 0.38rem;
  }

  .quick-pill-title {
    font-size: 0.8rem;
  }

  /* Mobile Content Panels & Cards */
  .section {
    padding: 1.65rem 0;
  }

  .content-panel {
    padding: 1.15rem 0.95rem;
    border-radius: 16px;
  }

  .direct-answer {
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
  }

  .review-verdict-box {
    padding: 1rem 0.95rem;
    border-radius: 14px;
  }

  .review-verdict-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .review-verdict-title {
    font-size: 0.96rem;
  }

  .grid-cards {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .card {
    padding: 1.05rem;
    border-radius: 16px;
  }

  figure.media-frame {
    margin: 1.05rem 0;
    border-radius: 13px;
  }

  figure.media-frame figcaption {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }

  th, td {
    padding: 0.68rem 0.75rem;
    font-size: 0.86rem;
  }

  .feature-list li {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .faq-item {
    padding: 0.9rem 1rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.88rem;
  }

  .author-box {
    padding: 1rem 1.05rem;
    font-size: 0.88rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}
