/* ============================================================
   LUVEEDU CLOUD - MAIN STYLESHEET
   Tailwind-first. Custom CSS only where Tailwind can't reach.
   ============================================================ */

/* ===== UI LIBRARY FONTS (files.luveedu.com) ===== */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://files.luveedu.com/ui-library/fonts/bricolage-grotesque-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://files.luveedu.com/ui-library/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://files.luveedu.com/ui-library/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'TASA Orbiter';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://files.luveedu.com/ui-library/fonts/tasa-orbiter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'TASA Orbiter';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://files.luveedu.com/ui-library/fonts/tasa-orbiter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body { font-family: 'Bricolage Grotesque', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'TASA Orbiter', 'Bricolage Grotesque', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HERO ===== */
.hero-bg {
  background: #080520;
  background-image:
    radial-gradient(ellipse 80% 55% at 55% -5%, rgba(30,64,175,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(37,99,235,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 95% 80%, rgba(29,78,216,0.2) 0%, transparent 55%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ===== HERO STARS ===== */
.hero-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: starPulse var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes starPulse {
  0%,100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.6); }
}
@keyframes starDrift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-60px) translateX(20px); opacity: 0; }
}
.star-drift {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: starDrift var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* ===== GRADIENT TEXT ===== */
.text-gradient {
  background: linear-gradient(90deg, #93c5fd 0%, #e0e7ff 60%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.blink { animation: blink 2s infinite; }

/* ===== UPTIME BAR ===== */
.uptime-bar { height: 3px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.uptime-fill { height: 100%; width: 99.99%; background: #2563eb; border-radius: 6px; }

/* ===== SPEED BARS ===== */
.speed-track { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.speed-fill-us { height: 100%; background: linear-gradient(90deg,#2563eb,#1e40af); border-radius: 6px; }
.speed-fill-other { height: 100%; background: rgba(255,255,255,0.18); border-radius: 6px; }
/* Light bg variant */
.speed-track-light { flex: 1; height: 4px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.speed-fill-light { height: 100%; background: #d1d5db; border-radius: 6px; }

/* ===== AMCHARTS MAP ===== */
#amcharts-map { border-radius: 6px; overflow: hidden; }

/* ===== PLAN FEATURED ===== */
.plan-featured {
  background: linear-gradient(155deg, #2563eb 0%, #1d4ed8 60%, #1e40af 100%) !important;
  border-color: transparent !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.plan-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.35);
}

/* ===== VPS ROW FEATURED ===== */
.vps-row-featured {
  background: linear-gradient(155deg, #2563eb 0%, #1d4ed8 60%, #1e40af 100%);
  border-color: transparent !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.vps-row-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.35);
}

/* ===== DOMAIN SECTION ===== */
.domain-bg {
  background: #06041a;
  background-image:
    radial-gradient(ellipse 60% 70% at 50% -10%, rgba(30,64,175,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(37,99,235,0.25) 0%, transparent 55%);
}
.domain-torch {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(59,130,246,0.35) 0%, rgba(30,64,175,0.15) 40%, transparent 70%);
  animation: torchPulse 4s ease-in-out infinite;
}
@keyframes torchPulse {
  0%,100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); }
}

/* ===== FOOTER ===== */
.site-footer {
  background:
    radial-gradient(900px 440px at 6% -12%, rgba(30,64,175,0.22), transparent 62%),
    radial-gradient(760px 400px at 102% 8%, rgba(29,78,216,0.16), transparent 62%),
    #080520;
}
.footer-wordmark {
  font-family: 'TASA Orbiter', 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.8;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.03) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}
.footer-link {
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  transition: color 0.18s ease;
}
.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(147,197,253,0.45);
  text-underline-offset: 3px;
}

/* ===== SECURITY RING ===== */
.security-ring {
  width: 148px; height: 148px; border-radius: 50%;
  background: conic-gradient(#1e40af 0%, #2563eb 50%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(30,64,175,0.4);
}
.security-ring-inner {
  width: 114px; height: 114px; background: #0d0f1a; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ===== PLAN TAB ===== */
.plan-tab.active { background: #2563eb; color: #fff; }
.plan-tab:not(.active):hover { color: #2563eb; background: #eff6ff; }

/* ===== PRICE SKELETON ===== */
.lc-skel {
  background: linear-gradient(90deg, #eef1f6 25%, #e2e8f0 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: lc-shimmer 1.3s ease-in-out infinite;
}
@keyframes lc-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-skel { animation: none; }
}

/* ===== BILLING TAB ===== */
.billing-tab.active,
.billing-tab-ag.active,
.billing-tab-vps.active,
.billing-tab-wvps.active,
.billing-tab-rs.active,
.billing-tab-eh.active { background: #2563eb; color: #fff; }
.billing-tab:not(.active):hover,
.billing-tab-ag:not(.active):hover,
.billing-tab-vps:not(.active):hover,
.billing-tab-wvps:not(.active):hover,
.billing-tab-rs:not(.active):hover,
.billing-tab-eh:not(.active):hover { color: #2563eb; background: #eff6ff; }

/* ===== CURRENCY SWITCH ===== */
.currency-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 3px;
}
.cur-opt {
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #6b7280; padding: 6px 12px; border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.cur-opt:hover { color: #2563eb; background: #eff6ff; }
.cur-opt.active { background: #2563eb; color: #fff; }
.cur-opt.active:hover { background: #2563eb; color: #fff; }
.currency-switch-sm { padding: 2px; border-radius: 6px; }
.currency-switch-sm .cur-opt { padding: 5px 8px; font-size: 12px; border-radius: 6px; min-width: 26px; text-align: center; }
.currency-switch-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.currency-switch-dark .cur-opt { color: rgba(255,255,255,0.6); }
.currency-switch-dark .cur-opt:hover { color: #fff; background: rgba(255,255,255,0.08); }
.currency-switch-dark .cur-opt.active { background: #fff; color: #2563eb; }
.currency-switch-dark .cur-opt.active:hover { background: #fff; color: #2563eb; }

/* ===== COMPARE TABLE (legacy, kept for other pages) ===== */
.col-us { background: rgba(37,99,235,0.04); }
.compare-table th.col-us { background: #2563eb; color: rgba(255,255,255,0.85) !important; }

/* ===== SERVICES MASONRY GRID ===== */
/*
  New order: Hosting first, then CDN/DNS/Security/Email/Domain/AI
  Layout:
  Row 1: [1: Shared Hosting col1/4 wide] [2: Cloud col4] [3: WordPress col4 row2]
  Row 2: [4: Managed VPS col1/3 wide] [5: CDN col4]
  Row 3: [6: DNS col1] [7: Security col2/4 wide] [8: Email col4]
  Row 4: [9: Domain Reg col1] [10: Domain Mgr col2] [11: AI col3] - 3 equal cols + empty col4
*/
.services-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}
/* Row 1 */
.services-masonry > .svc-card:nth-child(1)  { grid-column: 1 / 4; grid-row: 1; } /* Shared Hosting - wide */
.services-masonry > .svc-card:nth-child(2)  { grid-column: 4;     grid-row: 1; } /* Cloud Hosting */
/* Row 2 */
.services-masonry > .svc-card:nth-child(3)  { grid-column: 4;     grid-row: 2; } /* WordPress */
.services-masonry > .svc-card:nth-child(4)  { grid-column: 1 / 4; grid-row: 2; } /* Managed VPS - wide */
/* Row 3 */
.services-masonry > .svc-card:nth-child(5)  { grid-column: 1;     grid-row: 3; } /* Global CDN */
.services-masonry > .svc-card:nth-child(6)  { grid-column: 2;     grid-row: 3; } /* Anycast DNS */
.services-masonry > .svc-card:nth-child(7)  { grid-column: 3 / 5; grid-row: 3; } /* Ultra Security - wide */
/* Row 4 */
.services-masonry > .svc-card:nth-child(8)  { grid-column: 1;     grid-row: 4; } /* Business Email */
.services-masonry > .svc-card:nth-child(9)  { grid-column: 2;     grid-row: 4; } /* Domain Registration */
.services-masonry > .svc-card:nth-child(10) { grid-column: 3;     grid-row: 4; } /* Domain Manager */
.services-masonry > .svc-card:nth-child(11) { grid-column: 4;     grid-row: 4; } /* AI Engine */

/* Tablet: 2-col, auto flow */
@media (max-width: 1023px) {
  .services-masonry { grid-template-columns: repeat(2, 1fr); }
  .services-masonry > .svc-card { grid-column: unset !important; grid-row: unset !important; }
}
/* Mobile: single col */
@media (max-width: 639px) {
  .services-masonry { grid-template-columns: 1fr; }
  .services-masonry > .svc-card { grid-column: 1 !important; grid-row: unset !important; }
}

/* ===== REVIEW SLIDER ===== */
.reviews-slider-track {
  animation: reviewsScroll 45s linear infinite;
  will-change: transform;
}
.reviews-slider-track.col-2 { animation-duration: 58s; }
.reviews-slider-track:hover { animation-play-state: paused; }
@keyframes reviewsScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
/* Fade mask - hides bottom seam */
.reviews-slider-outer {
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

/* ===== ICON BOX - no shadow by default ===== */
.no-icon-shadow { box-shadow: none !important; }

/* ===== COMPARISON BARS ===== */
.cmp-bar { transition: width 1s cubic-bezier(0.4,0,0.2,1); }

/* ===== SECTION BADGE ===== */
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.07); border: 1px solid rgba(37,99,235,0.15);
  color: #2563eb; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-badge-dark {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 8px rgba(0,0,0,0.18);
}

/* Glass badge for dark backgrounds */
.badge-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 6px rgba(0,0,0,0.15);
}
/* Glass card for dark backgrounds */
.card-glass-dark {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.2);
}
/* Hero stat card glass - open bottom for seamless merge with content below */
.hero-stat-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.12);
}
.card-hover-dark {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-hover-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,64,175,0.25);
}

/* ===== FEATURE CARD SHINE ===== */
@keyframes card-shine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}
.feature-shine {
  position: relative;
  overflow: hidden;
}
.feature-shine::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-15deg);
  animation: card-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}
.feature-shine:nth-child(2)::after  { animation-delay: 0.3s; }
.feature-shine:nth-child(3)::after  { animation-delay: 0.6s; }
.feature-shine:nth-child(4)::after  { animation-delay: 0.9s; }
.feature-shine:nth-child(5)::after  { animation-delay: 1.2s; }
.feature-shine:nth-child(6)::after  { animation-delay: 1.5s; }
.feature-shine:nth-child(7)::after  { animation-delay: 1.8s; }
.feature-shine:nth-child(8)::after  { animation-delay: 2.1s; }
.feature-shine:nth-child(9)::after  { animation-delay: 2.4s; }
.feature-shine:nth-child(10)::after { animation-delay: 2.7s; }
.feature-shine:nth-child(11)::after { animation-delay: 3.0s; }
.feature-shine:nth-child(12)::after { animation-delay: 3.3s; }
.feature-shine:nth-child(13)::after { animation-delay: 0.15s; }
.feature-shine:nth-child(14)::after { animation-delay: 0.45s; }
.feature-shine:nth-child(15)::after { animation-delay: 0.75s; }
.feature-shine:nth-child(16)::after { animation-delay: 1.05s; }
.feature-shine:nth-child(17)::after { animation-delay: 1.35s; }
.feature-shine:nth-child(18)::after { animation-delay: 1.65s; }
.feature-shine:nth-child(19)::after { animation-delay: 1.95s; }
.feature-shine:nth-child(20)::after { animation-delay: 2.25s; }

/* ===== TECH STACK SECTION ===== */
.tech-bg { background: #f7f8fc; }
.tech-terminal {
  background: #0d0f1a; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.tech-terminal-bar {
  background: #1a1c2e; padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tech-terminal-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ===== HEADER ===== */
.header-root {
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.header-root.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 0;
}
.header-logo { display: flex; align-items: center; gap: 9px; }
.header-logo img { height: 34px; width: auto; display: block; }
.header-divider {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin: 0 10px;
  flex-shrink: 0;
}

/* Nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #374151;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: #111827; background: #f3f4f6; }
.nav-link-active { color: #2563eb !important; font-weight: 600; }
.nav-chevron {
  opacity: 0.4;
  transition: transform 0.2s ease, opacity 0.15s;
  flex-shrink: 0;
}
.has-dropdown:hover .nav-chevron { transform: rotate(180deg); opacity: 0.65; }

/* Buttons */
.btn-header-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-header-secondary:hover { background: #f9fafb; border-color: #9ca3af; color: #111827; }
.btn-header-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-header-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.btn-mobile-toggle:hover { background: #f3f4f6; border-color: #d1d5db; }
.btn-mobile-toggle .nav-icon-close { display: none; }
.btn-mobile-toggle.is-open .nav-icon-menu { display: none; }
.btn-mobile-toggle.is-open .nav-icon-close { display: block; }

/* ===== DROPDOWN ===== */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 400;
  min-width: 272px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Right-anchored variant */
.dropdown-panel-right {
  left: auto;
  right: 0;
  transform: translateY(-6px);
}
.dropdown-panel-right.is-open {
  transform: translateY(0);
}
.dropdown-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.11);
  padding: 8px;
  position: relative;
}
/* Caret */
.dropdown-inner::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.dropdown-inner-no-caret::before { display: none; }
.dropdown-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 4px 10px 6px;
  margin: 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 6px;
  transition: background 0.12s;
  text-decoration: none;
}
.dropdown-item:hover { background: #eff6ff; }
.dropdown-item.is-active { background: #dbeafe; }
.dropdown-icon {
  width: 34px; height: 34px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  transition: background 0.12s, color 0.12s;
}
.dropdown-item:hover .dropdown-icon,
.dropdown-item.is-active .dropdown-icon { background: #2563eb; color: #fff; }
.dropdown-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.dropdown-item-desc {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 1px;
  line-height: 1.35;
}
.dropdown-item:hover .dropdown-item-title { color: #2563eb; }

/* Simple dropdown item - no description, used for login dropdown */
.dropdown-item-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  transition: background 0.12s;
  text-decoration: none;
}
.dropdown-item-simple:hover { background: #eff6ff; }
.dropdown-item-simple:hover .dropdown-item-title { color: #2563eb; }
.dropdown-icon-sm {
  width: 30px; height: 30px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  transition: background 0.12s, color 0.12s;
}
.dropdown-item-simple:hover .dropdown-icon-sm { background: #2563eb; color: #fff; }

/* Dropdown divider */
.dropdown-divider {
  height: 1px;
  background: #dbeafe;
  margin: 4px 0;
}

/* Dropdown badge */
.dropdown-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-left: 6px;
}
.dropdown-badge-red { background: #ef4444; color: #fff; }
.dropdown-badge-blue { background: #2563eb; color: #fff; }
.dropdown-badge-green { background: #16a34a; color: #fff; }
.dropdown-badge-amber { background: #d97706; color: #fff; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu > .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}
.mobile-nav-link {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
}
.mobile-nav-link:hover { background: #f3f4f6; color: #111827; }
.mobile-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.1s;
}
.mobile-group-btn:hover { background: #f3f4f6; }
.mobile-group-btn i { transition: transform 0.2s ease; opacity: 0.5; }
.mobile-group-btn.open i { transform: rotate(180deg); }
.mobile-group-body {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 12px;
}
.mobile-group-body.open { display: flex; }
.mobile-sub-link {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #4b5563;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
}
.mobile-sub-link:hover { background: #eff6ff; color: #2563eb; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* ===== POLICY PAGES ===== */
/* Plain bullet lists inside policy content (no icon glyphs) */
.policy-list {
  list-style: disc;
  padding-left: 1.15rem;
  margin-bottom: 1.25rem;
}
.policy-list > li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}
.policy-list > li:last-child { margin-bottom: 0; }
.policy-list > li::marker {
  color: #2563eb;
  font-size: 0.9em;
}

/* Thin scrollbar for the section navigator */
.policy-toc { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.policy-toc::-webkit-scrollbar { width: 5px; }
.policy-toc::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 6px; }
.policy-toc::-webkit-scrollbar-track { background: transparent; }

/* Section navigator items */
.policy-toc-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 7px 9px 7px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4b5563;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.policy-toc-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.15s ease;
}
.policy-toc-num {
  flex: 0 0 16px;
  text-align: right;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #9ca3af;
  transition: color 0.15s ease;
}
.policy-toc-link:hover { background: #f4f6fa; color: #111827; }
.policy-toc-link:hover .policy-toc-num { color: #2563eb; }
.policy-toc-link.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}
.policy-toc-link.is-active::before { background: #2563eb; }
.policy-toc-link.is-active .policy-toc-num { color: #2563eb; }
.policy-toc-result { margin-bottom: 2px; }

/* Print-only header, hidden on screen */
.policy-print-header { display: none; }

/* ===== PRINT / SAVE AS PDF ===== */
@media print {
  @page { size: A4; margin: 16mm 14mm; }

  /* Scroll-reveal elements start at opacity:0 until they enter the viewport.
     Force them visible so off-screen sections still print with their text. */
  body.policy-page .reveal,
  body.policy-page .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  body.policy-page,
  body.policy-page .policy-body {
    overflow: visible !important;
  }

  body.policy-page {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.policy-page .header-root,
  body.policy-page .site-footer,
  body.policy-page .policy-hero,
  body.policy-page .policy-nav,
  body.policy-page .policy-sidebar,
  body.policy-page .policy-print-hide,
  body.policy-page .policy-toc {
    display: none !important;
  }

  body.policy-page .policy-body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  body.policy-page .policy-body .wrap {
    max-width: none;
    padding: 0;
  }
  body.policy-page .policy-grid {
    display: block !important;
  }

  body.policy-page .policy-print-header {
    display: block !important;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 2px solid #2563eb;
  }
  body.policy-page .policy-print-header h1,
  body.policy-page .policy-print-header .policy-print-title {
    font-family: 'TASA Orbiter', 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 20pt;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
  }
  body.policy-page .policy-print-header p {
    font-size: 8.5pt;
    color: #4b5563;
    margin: 0;
  }

  body.policy-page article {
    border: 0 !important;
    padding: 0 0 12px !important;
    margin: 0 0 12px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.policy-page article h2 {
    font-size: 12.5pt;
    color: #111827;
    margin-bottom: 6px;
    break-after: avoid;
    page-break-after: avoid;
  }
  body.policy-page article h4 {
    font-size: 9.5pt;
    color: #111827;
    margin-top: 9px;
    margin-bottom: 3px;
    break-after: avoid;
    page-break-after: avoid;
  }
  body.policy-page article p,
  body.policy-page article li {
    font-size: 9pt;
    line-height: 1.5;
    color: #374151;
  }
  body.policy-page article a {
    color: #1d4ed8;
    text-decoration: none;
  }
  body.policy-page .policy-list > li::marker { color: #2563eb; }

  /* Keep the grievance block readable on white paper */
  body.policy-page section:last-of-type {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.policy-page section:last-of-type > .wrap > div {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    padding: 14px 16px !important;
  }
  body.policy-page section:last-of-type > .wrap > div > div:first-child {
    display: none !important;
  }
  body.policy-page section:last-of-type * { color: #111827 !important; }
  body.policy-page section:last-of-type h2 { font-size: 13pt; margin-bottom: 4px; }
  body.policy-page section:last-of-type p,
  body.policy-page section:last-of-type span,
  body.policy-page section:last-of-type a { font-size: 9pt !important; }
  body.policy-page section:last-of-type .badge-glass {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    box-shadow: none !important;
  }
  body.policy-page section:last-of-type .card-glass-dark {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
  }
  body.policy-page section:last-of-type .badge-glass[class*="rounded-full"] { display: none !important; }
}

/* ===== DESKTOP: mobile navigation must never appear ===== */
@media (min-width: 1024px) {
  .btn-mobile-toggle,
  #mobile-menu,
  #mobile-menu.open {
    display: none !important;
  }
}

