/* ==========================================
   ZZPROXY INDEX STYLESHEET
   ========================================== */

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* SVG Icon Helper */
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  display: inline-block;
}

/* ==========================================
   TOPBAR & NAVIGATION
   ========================================== */
.topbar {
  background: var(--bg-dark);
  color: #A1A1AA;
  font-size: 13px;
  text-align: center;
  padding: 10px 16px;
  font-weight: 500;
  border-bottom: 1px solid #18181B;
}

.topbar a {
  color: #F4F4F5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar a:hover {
  color: var(--primary);
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  word-break: keep-all;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

.logo-text {
  white-space: nowrap;
  flex-shrink: 0;
  word-break: keep-all;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
  list-style: none;
}

.nav-links > li {
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  white-space: nowrap;
}

.nav-caret {
  font-size: 10px;
  margin-left: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-main);
}

.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--text-inverse) !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  transition: background var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.lang-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* MOBILE MENU DRAWER */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-main);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-logo {
  font-size: 20px;
  font-weight: 800;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.mobile-cta {
  background: var(--primary);
  color: white !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #F4F8FD 0%, #FFFFFF 70%);
  padding: 48px 24px 52px;
  overflow: hidden;
}

.hero-beacon {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.45;
  animation: floatPulse 8s infinite alternate ease-in-out;
}

.hero-beacon.b1 { top: -100px; left: -100px; width: 350px; height: 350px; background: rgba(0, 113, 227, 0.25); }
.hero-beacon.b2 { top: 20%; right: -80px; width: 300px; height: 300px; background: rgba(56, 189, 248, 0.2); animation-delay: -2s; }
.hero-beacon.b3 { bottom: -50px; left: 20%; width: 280px; height: 280px; background: rgba(99, 102, 241, 0.15); animation-delay: -4s; }

@keyframes floatPulse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, 20px) scale(1.1); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #34C759;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero h1 span {
  background: linear-gradient(135deg, #0071E3 0%, #4299E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 640px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-blue {
  background: var(--primary);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-blue:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.btn-outline {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.hero-stat .lbl {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 500;
}

/* HERO HIGHLIGHT CARD */
.hero-card {
  background: var(--bg-dark);
  color: white;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0071E3, #38BDF8);
}

.hero-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A1A1AA;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.price-big {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: white;
  line-height: 1.15;
  white-space: nowrap;
}

.price-plus {
  display: inline-block;
  margin: 0 2px;
  color: #A1A1AA;
  font-weight: 600;
}

.price-period {
  flex: 1 1 100%;
  font-size: 15px;
  color: #A1A1AA;
  line-height: 1.45;
}

.price-save {
  display: inline-block;
  background: rgba(36, 138, 61, 0.2);
  color: #4ADE80;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin: 10px 0 20px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.price-features li {
  font-size: 14px;
  color: #E4E4E7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: #38BDF8;
  font-weight: 800;
}

.btn-buy {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-buy:hover {
  background: var(--primary-hover);
}

/* ==========================================
   TRUSTBAR SECTION - INFINITE MARQUEE TICKER (ALIGNED TO 1200px PAGE WIDTH)
   ========================================== */
.trustbar-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 24px;
}

.trustbar {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.trustbar::before, .trustbar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.trustbar::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

.trustbar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.trustbar-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trustMarquee 38s linear infinite;
}

.trustbar-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.trustbar-track:hover {
  animation-play-state: paused;
}

@keyframes trustMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .comp-detector-grid {
    grid-template-columns: 1fr !important;
  }
}
/* DYNAMIC ANIMATIONS FOR CHECK-CC DETECTOR CARD */
@keyframes pulseCardGlow {
  0% { box-shadow: 0 0 15px rgba(248, 113, 113, 0.2), inset 0 0 10px rgba(248, 113, 113, 0.05); }
  50% { box-shadow: 0 0 30px rgba(248, 113, 113, 0.45), inset 0 0 20px rgba(248, 113, 113, 0.12); }
  100% { box-shadow: 0 0 15px rgba(248, 113, 113, 0.2), inset 0 0 10px rgba(248, 113, 113, 0.05); }
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

@keyframes radarBeam {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.detector-card.active-animated {
  animation: pulseCardGlow 3.5s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.radar-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, #F87171, transparent);
  animation: radarBeam 2.5s infinite linear;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #F87171;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 8px #F87171;
  animation: liveDotBlink 1.5s infinite ease-in-out;
}

.live-dot.safe {
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.detector-card {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-dark);
  position: relative;
}

.detector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.d-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A1A1AA;
  font-weight: 700;
}

.d-ip-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #38BDF8;
  margin: 4px 0;
}

.d-geo {
  font-size: 14px;
  color: #E4E4E7;
  font-weight: 500;
}

.detector-risk-ring {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  text-align: center;
  min-width: 140px;
}

.risk-score-val {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #4ADE80;
}

.risk-score-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #A1A1AA;
  margin-top: 2px;
}

.detector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.det-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.det-item-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.det-item-title {
  font-size: 12px;
  color: #A1A1AA;
  font-weight: 600;
}

.det-item-val {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-top: 2px;
}

.detector-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.trust-icon {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

/* ==========================================
   SECTION COMMON LAYOUT
   ========================================== */
section {
  padding: 48px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   FEATURES / COMPARISON SECTION
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================
   LOCATIONS / COUNTRIES SECTION
   ========================================== */
.country-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
}

.country-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
}

.country-search {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.country-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.country-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.country-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.country-flag {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.country-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.country-isp {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cc-hidden {
  display: none !important;
}

.country-empty-msg {
  display: none;
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.show-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.show-more-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.show-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: white;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.price-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 100%);
}

.best-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.pc-period {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pc-amount {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.pc-amount sup {
  font-size: 22px;
  top: -12px;
  font-family: var(--font-sans);
}

.pc-per {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 16px;
}

.pc-save {
  display: inline-block;
  align-self: flex-start;
  background: var(--success-bg);
  color: var(--success-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.pc-unlimited {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  border-y: 1px solid var(--border-light);
  margin-top: auto;
  margin-bottom: 12px;
  font-weight: 500;
}

.pc-route {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: #166534;
  margin-bottom: 16px;
}

.pc-route.no-transit {
  color: #9A3412;
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 8px 10px;
}

.price-card.no-transit {
  border-color: #F59E0B;
}

.pc-btn {
  width: 100%;
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.price-card.featured .pc-btn,
.pc-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==========================================
   HOW IT WORKS (STEPS)
   ========================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step-item {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   REVIEWS & FAQ
   ========================================== */
.reviews-summary {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.rs-score {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  font-family: var(--font-mono);
}

.rs-stars {
  color: #F59E0B;
  font-size: 20px;
  margin: 6px 0;
}

.rs-count {
  font-size: 13px;
  color: var(--text-muted);
}

.rs-divider {
  width: 1px;
  height: 60px;
  background: var(--border-color);
}

.rs-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.rs-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.rs-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rs-bar-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: var(--radius-full);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-name {
  font-size: 15px;
  font-weight: 700;
}

.review-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.review-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-tag {
  font-size: 12px;
  color: var(--success-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.rc-hidden {
  display: none !important;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--primary-border);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--bg-dark);
  color: #A1A1AA;
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #18181B;
}

footer a {
  color: #F4F4F5;
  text-decoration: none;
  margin: 0 6px;
}

footer a:hover {
  color: var(--primary);
}

/* ==========================================
   PAYMENT / ORDER MODAL WIZARD
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-close-btn {
  background: var(--bg-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* WIZARD STEP BAR */
.step-bar {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
}

.sbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sbar-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbar-num.active {
  background: var(--primary);
  color: white;
}

.sbar-num.done {
  background: var(--success-color);
  color: white;
}

.sbar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.sbar-label.active {
  color: var(--text-main);
}

.sbar-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 12px;
}

.sbar-line.done {
  background: var(--success-color);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.mstep {
  display: none;
}

.mstep.active {
  display: block;
}

.modal-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-step-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* PROTOCOL / ISP BUTTONS */
.proto-group, .isp-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.proto-btn, .isp-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.proto-btn.selected, .isp-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* PLAN SELECTION CARDS IN MODAL */
.plan-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.plan-opt {
  background: var(--bg-alt);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plan-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.plan-opt-name {
  font-weight: 700;
  font-size: 14px;
}

.plan-opt-price {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  margin: 4px 0;
}

.plan-opt-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.plan-opt-cn2 {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #86EFAC;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.plan-opt-note {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.no-transit-notice {
  background: #FFF7ED;
  border: 2px solid #F59E0B;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
  color: #7C2D12;
}

.no-transit-notice-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  color: #9A3412;
}

.no-transit-notice-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* QUANTITY STEPPER */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.qty-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  min-width: 24px;
  text-align: center;
}

/* ORDER SUMMARY */
.order-summary-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}

.order-item .ok { color: var(--text-muted); }
.order-item .ov { font-weight: 700; }

/* PAYMENT TABS */
.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-tab {
  flex: 1;
  padding: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.pay-tab.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pay-panel {
  display: none;
  text-align: center;
}

.pay-panel.active {
  display: block;
}

.pay-qr-locked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#alipayUnlocked [data-pay-qr-fetch],
#wechatUnlocked [data-pay-qr-fetch] {
  margin-top: 12px;
}

.pay-qr-still-locked-hint {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: #B45309;
  margin-top: 10px;
}

.pay-qr-still-locked-hint.is-visible {
  display: block;
}

.btn-blue:disabled,
.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 10px 0;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* AUTH MODAL TABS & FORMS */
.auth-tabs {
  display: flex;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.btn-auth-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition-fast);
}

.btn-auth-submit:hover {
  background: var(--primary-hover);
}

/* ADMIN PANEL STYLES */
.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--bg-alt);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.status-badge.active {
  background: var(--success-bg);
  color: var(--success-color);
}

.status-badge.disabled {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.btn-admin-action {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-admin-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1280px) {
  .nav-links { gap: 16px; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .plan-options { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; text-align: center; }
  .rs-divider { display: none; }
}

/* ==========================================
   IPHONE & MOBILE SCREEN LAYOUT OPTIMIZATIONS
   ========================================== */
@media (max-width: 768px) {
  /* Prevent awkward heading line breaks on iPhone */
  .hero h1 br {
    display: none;
  }
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.35 !important;
    word-break: keep-all;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
    word-break: normal;
  }

  /* Comp Detector Grid: Stack vertically on mobile instead of squishing 50:50 */
  .comp-detector-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Detector Card Mobile Spacing & Text Flow */
  .detector-card {
    padding: 16px !important;
  }

  /* Detector Grid: 2 columns on mobile instead of 3 squished columns */
  .detector-card div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Prevent awkward text wrapping inside detector metric tags */
  .detector-card div[style*="background:rgba(255,255,255,0.03)"] {
    padding: 8px 10px !important;
  }

  .detector-card div[style*="font-size:10px; color:#A1A1AA;"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #detAsnType, #detIpv6Status, #detTzMatch, #detWebRtc, #detDnsMatch, #detOsMatch {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px !important;
  }

  /* Long IPv6 & IPv4 responsive fitting */
  #detIp {
    font-size: 15px !important;
    word-break: break-all;
  }

  #detIpv6 {
    font-size: 11px !important;
    word-break: break-all;
  }

  /* Trust Bar & Items */
  .trust-bar {
    gap: 10px 16px !important;
    justify-content: center !important;
  }

  .trust-item {
    white-space: nowrap;
    font-size: 12px !important;
  }

  /* Section Titles on iPhone */
  .section-title {
    font-size: 24px !important;
    word-break: keep-all;
  }

  .section-sub {
    font-size: 13px !important;
    word-break: normal;
  }

  /* Pricing Cards Mobile Layout */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Modal Wizard Mobile Padding */
  .modal-card {
    padding: 16px !important;
    width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .step-bar {
    gap: 4px !important;
  }

  .sbar-label {
    font-size: 11px !important;
  }
}

/* ==========================================
   CUSTOMER SERVICE FLOATING WIDGET & DRAWER PANEL
   ========================================== */
.chat-widget-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  animation: cs-btn-glow-pulse 3s infinite ease-in-out;
}

.chat-widget-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.chat-btn-icon {
  font-size: 18px;
  display: inline-block;
  animation: cs-icon-bounce 4s infinite ease-in-out;
}

/* 在线状态呼吸灯 */
.chat-online-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 10px;
  height: 10px;
}

.chat-online-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 8px #10b981;
  animation: cs-online-green-pulse 2s infinite ease-in-out;
}

@keyframes cs-online-green-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(0.95);
  }
}

@keyframes cs-btn-glow-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 0 rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.65), 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

@keyframes cs-icon-bounce {
  0%, 80%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  85% {
    transform: translateY(-4px) rotate(-6deg);
  }
  90% {
    transform: translateY(0) rotate(6deg);
  }
  95% {
    transform: translateY(-2px) rotate(-3deg);
  }
}

.chat-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chat-drawer {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 440px;
  max-width: calc(100vw - 32px);
  height: min(640px, 70vh);
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.chat-drawer.drawer-shake {
  animation: csDrawerShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes csDrawerShake {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  20% { transform: translateY(-4px) scale(1.02) rotate(-1.5deg); }
  40% { transform: translateY(2px) scale(1.02) rotate(1.5deg); }
  60% { transform: translateY(-2px) scale(1.01) rotate(-1deg); }
  80% { transform: translateY(1px) scale(1.01) rotate(0.5deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-drawer-header {
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
}

.chat-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}

.chat-drawer-header .modal-close-btn {
  color: #64748b;
}
.chat-drawer-header .modal-close-btn:hover {
  color: #0f172a;
}

.chat-drawer-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.chat-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-drawer-body {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 0;
}

.chat-tab-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.chat-tab-panel.active {
  display: flex;
}

/* FAQ Accordion - Light Mode */
.chat-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.chat-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-height: 42px;
}

.chat-faq-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
}

.chat-faq-q {
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
  min-height: 42px;
  box-sizing: border-box;
}

.chat-faq-a {
  display: none;
  padding: 0 12px 12px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  border-top: 1px dashed #cbd5e1;
  margin-top: 4px;
  padding-top: 8px;
}

.chat-faq-item.active .chat-faq-a {
  display: block;
}

/* Chat Messages - Light Mode */
.chat-messages-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

#chat-tab-content-ticket form {
  flex-shrink: 0;
}

.btn-trial-apply {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  cursor: pointer;
}

.btn-trial-apply:hover:not(:disabled) {
  background: #dbeafe;
}

.btn-trial-apply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-msg-item {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg-item.user {
  align-self: flex-end;
}

.chat-msg-item.support {
  align-self: flex-start;
}

.chat-msg-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg-item.user .chat-msg-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.chat-msg-item.support .chat-msg-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
}

.chat-msg-bubble:has(.chat-msg-image) {
  padding: 6px;
}

.chat-msg-bubble .chat-msg-image {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

.chat-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.86);
}

.chat-image-lightbox.is-open {
  display: flex;
}

.chat-image-lightbox-img {
  display: block;
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

.chat-image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.chat-image-lightbox-close:hover {
  background: #e2e8f0;
}

.chat-msg-bubble a {
  color: inherit;
  text-decoration: underline;
}

.chat-msg-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.chat-msg-item.user .chat-msg-time {
  text-align: right;
}

/* Ticket Tab Form Inputs in Light Mode */
#chat-tab-content-ticket .form-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
#chat-tab-content-ticket .form-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Contact Cards - Light Mode */
.chat-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  flex-shrink: 0;
}

.chat-contact-icon {
  width: 36px;
  height: 36px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chat-widget-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
  }

  .chat-drawer {
    bottom: 72px;
    right: 12px;
    width: calc(100vw - 24px);
    height: min(640px, calc(100vh - 96px));
  }
}

    @keyframes btnBounce {
      0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
      40% {transform: translateY(-20px);}
      60% {transform: translateY(-10px);}
    }
    .bounce-anim {
      animation: btnBounce 1s infinite;
    }

/* ==========================================
   GUIDE / EXPLAINER PAGES
   ========================================== */
a.lang-btn {
  text-decoration: none;
}

a.auth-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.guide-page {
  background: var(--bg-main);
}

.guide-hero {
  padding: 48px 24px 28px;
  background:
    radial-gradient(900px 280px at 12% -10%, rgba(0, 113, 227, 0.08), transparent 60%),
    var(--bg-main);
}

.guide-hero-inner,
.guide-body,
.guide-related-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.guide-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

.guide-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.guide-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark, #1d4ed8);
  background: var(--primary-light, #EAF4FE);
  border: 1px solid var(--primary-border, #BFDBFE);
  border-radius: 999px;
  padding: 4px 10px;
}

.guide-body {
  padding: 8px 24px 56px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}

.guide-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.guide-card p,
.guide-card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.guide-card p + p,
.guide-card ul + p,
.guide-card p + ul {
  margin-top: 12px;
}

.guide-card ul {
  padding-left: 1.2em;
}

.guide-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.guide-card a:hover {
  text-decoration: underline;
}

.guide-note,
.guide-dont {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.guide-note {
  background: linear-gradient(135deg, var(--primary-light), #EAF4FE);
  border: 1px solid var(--primary-border);
}

.guide-dont {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.guide-note h2,
.guide-dont h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.guide-note h2 { color: var(--primary-dark, #1d4ed8); }
.guide-dont h2 { color: #991B1B; }

.guide-note p,
.guide-dont p,
.guide-dont li {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.guide-dont ul {
  padding-left: 1.2em;
  margin-top: 8px;
}

.guide-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-related a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-related a span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.guide-related a:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.guide-cta-row .btn-blue,
.guide-cta-row .btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.guide-page .faq-list {
  max-width: none;
}

.guide-page .faq-item.open .faq-a {
  max-height: 800px;
}

@media (max-width: 720px) {
  .guide-hero h1 { font-size: 28px; }
  .guide-card { padding: 22px 18px; }
  .guide-related { grid-template-columns: 1fr; }
}
