/* VPN cat Mirror Site — style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  /* VPN cat dark theme — measured from vpncat.net */
  --primary: #22CE96;
  --primary-dark: #1AAD80;
  --accent-ink: #1C1B24;
  --gold: #22CE96;
  --dark: #1C1B24;
  --header-bg: rgba(28,27,36,0.85);
  --bg: #1C1B24;
  --surface: #2A2835;
  --surface-2: rgba(255,255,255,0.06);
  --text: #F5F4F8;
  --text-muted: #A9A7B8;
  --green: #22CE96;
  --red: #E03C31;
  --border: rgba(245,244,248,0.12);
  --blue: #4A8FE8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 2px 16px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --transition: 0.18s ease;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; } /* clip, NOT hidden: hidden breaks the sticky header (M9) */
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: var(--space-sm);
  flex-shrink: 0; margin-left: auto;
}

/* mobile-only language row inside the menu; hidden on desktop */
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85); padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition);
}
.lang-btn:hover { border-color: rgba(255,255,255,.7); }
.lang-btn i { font-size: 11px; }

/* ─── CTA BUTTON ─── */
.btn-cta {
  background: var(--primary); color: var(--accent-ink);
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }

.btn-cta-lg {
  background: var(--primary); color: var(--accent-ink);
  padding: 16px 36px; border-radius: var(--radius-lg);
  font-size: 18px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-lg:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: var(--bg);
  background-image: url('/assets/images/stars-512.png');
  background-repeat: repeat;
  background-size: 512px 512px;
  color: #fff;
  padding: calc(var(--space-xl) * 1.4) var(--space-sm);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 0%, rgba(34,206,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,206,150,.12); border: 1px solid rgba(34,206,150,.3);
  color: var(--primary); padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.hero h1 { font-size: clamp(30px, 4vw, 54px); font-weight: 700; margin-bottom: var(--space-sm); color: #fff; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); margin-bottom: var(--space-lg); max-width: 480px; }
.hero-cta-group { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-price { margin-top: var(--space-md); font-size: 14px; color: rgba(255,255,255,.6); }

/* ─── PHONE MOCKUP ─── */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  --ph: clamp(190px, 60vw, 280px);
  width: calc(var(--ph) + 20px);
  padding: 10px;
  border-radius: calc(var(--ph) * .16);
  background: rgb(16, 16, 24);
  box-shadow: rgba(0,0,0,.35) 0px 30px 60px, rgb(44,44,54) 0px 0px 0px 2px inset;
}
.screen {
  position: relative;
  width: var(--ph);
  height: calc(var(--ph) * 2.164);
  border-radius: calc(var(--ph) * .13);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  color: var(--control-label, #fff);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  font-size: calc(var(--ph) * .043);
  background-image: url('/assets/images/backdrop-dark.webp');
}
.screen::before {
  content: "";
  position: absolute;
  top: calc(var(--ph) * .04);
  left: 50%; transform: translateX(-50%);
  width: calc(var(--ph) * .33);
  height: calc(var(--ph) * .085);
  border-radius: 999px;
  background: rgb(16, 16, 24);
}
.statusbar {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--ph) * .045) calc(var(--ph) * .085) 0;
  font-weight: 600;
  font-size: calc(var(--ph) * .05);
}
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons svg { height: calc(var(--ph) * .04); width: auto; }
.picker {
  margin-top: calc(var(--ph) * .085);
  width: calc(var(--ph) * .66);
  height: calc(var(--ph) * .1);
  border-radius: 999px;
  background: rgba(142,142,147,.3);
  display: flex; align-items: center;
  gap: calc(var(--ph) * .03);
  padding: 0 calc(var(--ph) * .035);
  font-weight: 500;
}
.picker img { width: calc(var(--ph) * .1); height: calc(var(--ph) * .075); border-radius: 2px; }
.picker span { flex: 1 1 0%; }
.picker svg { width: calc(var(--ph) * .05); height: calc(var(--ph) * .05); }
.disc {
  position: relative;
  width: calc(var(--ph) * .6);
  height: calc(var(--ph) * .6);
  margin: auto 0 0;
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url('/assets/images/disc-dark.webp');
}
.disc img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.app-status {
  margin: calc(var(--ph) * .05) 0 auto;
  min-height: calc(var(--ph) * .12);
  padding: 0 calc(var(--ph) * .08);
  text-align: center;
  font-weight: 600;
  font-size: calc(var(--ph) * .043);
}
.app-button {
  width: calc(var(--ph) * .41);
  height: calc(var(--ph) * .2);
  margin-bottom: calc(var(--ph) * .05 + var(--ph) * .18);
  border-radius: calc(var(--ph) * .04);
  background: rgba(255,66,69,.3);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: calc(var(--ph) * .043);
  text-align: center;
  box-shadow: rgba(255,255,255,.12) 0px 0px 0px 1px inset;
  color: #fff;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 28px; font-weight: 800; color: var(--primary);
  display: block; line-height: 1;
}
.trust-label {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-top: 6px; display: block;
}
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: var(--space-xs);
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-sm); text-align: center; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); text-align: center; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-sm); color: var(--primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── SPLIT ROW ─── */
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 320px; object-fit: cover; }
.split-content .section-title { font-size: clamp(22px, 3vw, 34px); }
.check-list { margin: var(--space-sm) 0 var(--space-md); }
.check-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); border-width: 2px;
  box-shadow: 0 0 0 4px rgba(0,111,207,.08);
}
.pricing-card:hover { box-shadow: var(--shadow-card); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.pricing-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }
.pricing-features li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '\2715'; color: var(--border); }
.pricing-cta { width: 100%; padding: 13px; border-radius: var(--radius-md); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: var(--space-sm); display: block; text-align: center; transition: all var(--transition); background: var(--primary); color: #fff; border: none; }
.pricing-cta:hover { background: var(--primary-dark); text-decoration: none; }
.pricing-card.popular .pricing-cta { background: var(--primary); }

/* ─── IMAGE STRIP ─── */
.image-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
}
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── AWARDS ─── */
.awards-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.award-item { text-align: center; }
.award-icon { font-size: 40px; color: var(--gold); margin-bottom: 8px; }
.award-title { font-size: 14px; font-weight: 700; }
.award-sub { font-size: 12px; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }
.social-links { display: flex; gap: 12px; }
.social-links a { color: rgba(255,255,255,.5); font-size: 18px; transition: color var(--transition); }
.social-links a:hover { color: #fff; text-decoration: none; }

/* ─── PLATFORM ICONS ─── */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm); text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.platform-card i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); }
.platform-card span { font-size: 14px; font-weight: 600; display: block; }

/* ─── GUARANTEE BANNER ─── */
.guarantee-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
  padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-xl);
  margin: var(--space-lg) 0;
}
.guarantee-banner h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #fff; }
.guarantee-banner p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, #12122a 0%, #1e2a5e 100%);
  color: #fff; text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 14px 32px; border-radius: var(--radius-md); font-size: 16px; font-weight: 700;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--primary-dark); }

/* ─── PROSE (privacy/terms) ─── */
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 8px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    height: auto; max-height: none;
    overflow: visible;
    background: var(--header-bg);
    box-shadow: 0 8px 16px rgba(0,0,0,.24);
    padding: 12px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { display: block; width: 100%; padding: 14px 0; font-size: 17px; }

  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  /* Lang switcher INSIDE mobile menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
    width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    color: rgba(255,255,255,.75);
  }
  .nav-links li.mobile-lang a.active { color: var(--gold); font-weight: 700; }

  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .phone-wrap { order: -1; }
  .hero-cta-group { justify-content: center; }

  .btn-cta-lg, .btn-cta, .hero-cta-group a {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .awards-row { flex-direction: column; gap: var(--space-md); }
}

/* ─── UTILITY ─── */
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.tag {
  display: inline-block; background: var(--surface-2); color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ═══ COMMON-MISTAKE RULES (website-quality-standards.md §26, checked by qa_mistakes.py) ═══ */
/* M9 sticky header everywhere */
.site-header { position: sticky; top: 0; z-index: 1000; }
/* M3/M4/M8 nav dropdown (device/product pages grouped): hover-intent on desktop, tap-toggle on mobile */
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }
.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; padding: 8px 12px;
}
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }
/* footer column titles are not headings (keeps H1→H2→H3 order intact, M17) */
.footer-heading { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
/* M14 device/product cards on the download hub */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md); display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.device-card .device-icon { font-size: 36px; width: 40px; height: 40px; line-height: 40px; color: var(--primary); } /* M22 one size */
.device-card h3 { margin: 0; font-size: 20px; }
.device-card h3 a { color: inherit; }
.device-card ul { margin: 0; padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-cta { margin-top: auto; align-self: flex-start; }
/* M13 payment methods, M24 comparison table, M19 bullet lists */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 600; background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.compare-table .highlight { background: var(--surface); font-weight: 700; }
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 6px 0; }
.section-sub { max-width: 720px; margin: 0 auto var(--space-md); text-align: center; color: var(--text-muted); }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }                                  /* M7 not flush to the edges */
  .nav-links .dropdown { width: 100%; text-align: center; }
  .nav-links .dropdown-toggle { width: 100%; padding: 14px 0; font-size: 17px; }
  .nav-links .dropdown-panel { position: static; padding-top: 0; min-width: 0; }
  .nav-links .dropdown:hover > .dropdown-panel,
  .nav-links .dropdown:focus-within > .dropdown-panel { display: none; }
  .nav-links .dropdown.open > .dropdown-panel { display: block; }     /* M4 open / M8 close on tap */
  .nav-links .dropdown-panel-inner { background: rgba(255,255,255,.06); border: 0; box-shadow: none; }
  .nav-links .dropdown-panel a { color: rgba(255,255,255,.85); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 two footer columns */
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }            /* M21 stays two columns on phones */
}

/* ─── WHAT YOU GET — 4-card grid (matching original vpncat.net) ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.card {
  background: rgb(42,40,53);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card .icon {
  width: 40px; height: 40px;
  color: var(--primary);
  stroke: var(--primary);
  margin-bottom: 16px;
  display: block;
  flex-shrink: 0;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}

/* ─── WORLD MAP (servers section) ─── */
.section-map { background: rgb(42,40,53); padding-left: 0; padding-right: 0; }
.section-map .container { padding: 0 var(--space-sm); }
/* .map is the new wrapper name used by content.py; .world-map-wrap kept for legacy */
.map,
.world-map-wrap {
  width: 100%;
  margin: var(--space-md) 0;
  /* no overflow:hidden, no border-radius — original has none */
}
.world {
  width: 100%; height: auto; display: block;
}
.world .land {
  fill: none; stroke: rgba(245,244,248,0.15); stroke-linecap: round;
}
.world .land-on {
  fill: none; stroke: var(--primary); stroke-linecap: round; opacity: 0.5;
}
.world .pin-disc {
  fill: rgb(42,40,53); stroke: rgba(245,244,248,0.12); stroke-width: 1.5;
}
.world .pin-label {
  fill: var(--text); font-size: 11px; font-weight: 600;
}
.world .leader {
  stroke: rgba(245,244,248,0.4); stroke-width: 1;
}

/* Country chips — flex wrap centered pills (matching original .chips layout) */
.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: var(--space-sm);
  padding: 0;
  list-style: none;
}
.country-item {
  display: flex; align-items: center; gap: 8px;
  background: rgb(28, 27, 36);
  border: none;
  border-radius: 999px;
  padding: 6px 13px 6px 8px;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.country-item img { flex-shrink: 0; border-radius: 2px; }
.star-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: var(--space-xs); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; color: var(--text); margin-bottom: var(--space-xs); }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 600px; margin: 0 auto var(--space-md); }

/* Dark dropdown panel */
.dropdown-panel-inner { background: var(--surface) !important; border-color: var(--border) !important; }
.dropdown-panel a { color: var(--text) !important; }
.dropdown-panel a:hover { background: rgba(255,255,255,0.06) !important; }

/* Link color */
a { color: var(--primary); }
a:hover { text-decoration: underline; color: var(--primary-dark); }

/* Pricing CTA dark-theme fix */
.pricing-cta { color: var(--accent-ink) !important; }

@media (max-width: 640px) {
  /* chips wrap naturally on narrow screens */
}

/* ─── PLANS SECTION (matching vpncat.net original) ─── */
.plans-section { background: var(--bg); }
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.plan-free,
.store {
  background: rgb(42,40,53);
  border-radius: var(--radius-lg);
}
.plan-free { padding: 24px; }
.store { padding: 32px 24px 24px; position: relative; }

.plan-free h3,
.store h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.plan-price { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li {
  padding: 7px 0; font-size: 15px; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
  border-bottom: 1px solid rgba(245,244,248,0.08);
}
.ticks li::before { content: '\2713'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.ticks li:last-child { border-bottom: none; }

/* Free plan CTA — pill shaped, blue (matches original App Store button style) */
.plan-free .btn-cta {
  display: block; width: 100%; text-align: center;
  background: #1e6bd0; color: #fff;
  border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700;
}
.plan-free .btn-cta:hover { background: #185dba; }

.store-badge {
  display: inline-flex; align-items: center;
  color: var(--primary); margin-bottom: 12px;
}
.store-features { list-style: none; padding: 0; margin: 0 0 24px; }
.store-features li {
  padding: 8px 0; font-size: 14px; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
}
/* The inline SVG .check circles are blue */
.store-features .check { flex-shrink: 0; color: #1e6bd0; width: 20px; height: 20px; }
.store-features li span { display: flex; flex-direction: column; }
.store-features li span strong { font-size: 14px; font-weight: 600; }
.store-features li span small { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.plan-card {
  background: rgba(255,255,255,0.06);
  border: 0.8px solid rgba(245,244,248,0.12);
  border-radius: var(--radius-lg); padding: 14px;
  position: relative; transition: border-color var(--transition);
}
.plan-card.selected { border-color: #1e6bd0; }
.ribbon {
  display: inline-block;
  background: #1e6bd0; color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; margin-bottom: 8px; letter-spacing: .4px;
}
.plan-name { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 0 0 4px; }
.plan-per-month { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; margin: 0 0 2px; }
.plan-caption { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.plan-saving { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
.save { color: var(--primary); font-weight: 700; }

.purchase { margin-bottom: 16px; }
/* Premium CTA — blue pill, full width block */
.purchase .btn-cta {
  display: block; width: 100%; text-align: center;
  background: #1e6bd0; color: #fff;
  border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700;
}
.purchase .btn-cta:hover { background: #185dba; text-decoration: none; }

.terms { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; text-align: center; }
.storefront-note {
  font-size: 12px; color: var(--text-muted); text-align: center;
  border-top: 1px solid rgba(245,244,248,0.08); padding-top: 12px; margin: 0;
}

@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
}

/* ─── SECTION-LEVEL CTA CENTERING ─── */
.section .hero-cta-group { justify-content: center; }
.section > .container > .btn-cta,
.section > .container > .btn-cta-lg { display: block; margin: 0 auto; width: max-content; text-align: center; }
