/* DNS Proxyon — Phase 2A v2 */

:root {
  --bg: #060b12;
  --bg-elevated: #0c1420;
  --bg-card: #101a28;
  --border: #1c2d42;
  --border-hover: #2a4564;
  --text: #edf4fb;
  --text-muted: #9bb0c4;
  --text-dim: #6d8298;
  --accent: #4ADE80;
  --accent-hover: #22C55E;
  --accent-dim: #166534;
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 12px rgba(0,0,0,.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 48px; margin-bottom: 16px; }
h2 { font-size: 36px; margin-bottom: 14px; }
h3 { font-size: 24px; margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 10px; }
p { margin-bottom: 12px; }

/* Header — fixed so logo / language / menu stay on screen while scrolling */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
  background: rgba(10,20,16,.92); backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
  gap: 12px; position: relative;
}
.logo-link { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo-link:hover { color: var(--text); }
.logo { width: 48px; height: 48px; border-radius: 0; object-fit: contain; background: transparent !important; box-shadow: none; display: block; image-rendering: auto; mix-blend-mode: normal; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; order: 3; }
.main-nav { display: flex; align-items: center; gap: 8px; order: 2; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 500; font-size: 14px; }
.main-nav a:hover { color: var(--text); background: var(--bg-card); }
.main-nav a.active { color: var(--accent); }
.nav-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text) !important; }
.nav-btn:hover { border-color: var(--accent); background: var(--bg-elevated); }
.nav-btn-primary { background: var(--accent); border-color: var(--accent); color: #001810 !important; font-weight: 600; }
.nav-btn-primary:hover { background: var(--accent-hover); color: #001810 !important; }
.nav-lang-mobile { display: none; }
.lang-switch { position: relative; z-index: 5; }
.lang-switch-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; list-style: none; }
.lang-switch-btn::-webkit-details-marker { display: none; }
.lang-switch-btn::marker { content: ''; }
.lang-switch-btn:hover { border-color: var(--accent); }
.lang-switch-code { font-size: 11px; letter-spacing: .4px; color: var(--accent); }
.lang-switch-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch-chevron { width: 14px; height: 14px; opacity: .7; transition: transform .15s; }
.lang-switch[open] .lang-switch-chevron { transform: rotate(180deg); }
.lang-switch-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; max-height: 320px; overflow-y: auto; background: var(--bg-elevated, #0e1622); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 300; padding: 6px; }
.lang-switch[open] > .lang-switch-menu,
.lang-switch.open .lang-switch-menu { display: block; }
.lang-switch-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-muted); font-size: 13px; }
.lang-switch-item small { color: var(--text-muted); font-size: 11px; opacity: .8; }
.lang-switch-item:hover { background: var(--bg-card); color: var(--text); }
.lang-switch-item.is-active { color: var(--accent); background: rgba(74,222,128,.08); }
html[dir="rtl"] .lang-switch-menu { right: auto; left: 0; }
html[dir="rtl"] { text-align: right; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 6; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
body.nav-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .mobile-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-content { min-height: calc(100vh - 200px); }

/* Flash */
.flash-message { max-width: 1200px; margin: 16px auto; padding: 14px 20px; border-radius: var(--radius); font-weight: 500; }
.flash-success { background: rgba(16,185,129,.15); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(239,68,68,.15); border: 1px solid var(--danger); color: var(--danger); }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; background: radial-gradient(ellipse at top, rgba(74,222,128,.08), transparent 70%); }
.hero h1 {
  font-size: 56px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .tagline { font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #001810; }
.btn-primary:hover { background: var(--accent-hover); color: #001810; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 16px; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; background: rgba(74,222,128,.12); border-radius: 12px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Service mini cards on homepage */
.svc-icon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.svc-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: all .2s;
}
.svc-card:hover { border-color: var(--accent); }
.svc-card-emoji { font-size: 32px; margin-bottom: 8px; }
.svc-card h4 { font-size: 15px; margin-bottom: 4px; }
.svc-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Pricing tabs */
.pricing-tabs {
  display: flex; gap: 6px; background: rgba(15, 28, 22, .72);
  padding: 6px; border-radius: 14px; width: max-content; margin: 0 auto 36px;
  overflow-x: auto; max-width: 100%; border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pricing-tabs::-webkit-scrollbar { display: none; }
.pricing-tab {
  padding: 11px 18px; border-radius: 10px; background: transparent; border: none;
  color: var(--text-muted); font-weight: 650; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap; font-size: 13.5px; letter-spacing: .01em;
}
.pricing-tab.active {
  background: linear-gradient(180deg, #5ee9a0 0%, var(--accent) 100%);
  color: #001810; box-shadow: 0 6px 18px rgba(74,222,128,.22);
}
.pricing-tab:hover:not(.active) { color: var(--text); background: rgba(74,222,128,.06); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  align-items: stretch;
}
.pricing-panel { animation: pricingFade .28s ease; }
@keyframes pricingFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-card {
  background: linear-gradient(180deg, rgba(22,36,28,.92) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 22px 22px; text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; display: flex; flex-direction: column; height: 100%;
}
.price-card:hover { border-color: rgba(74,222,128,.35); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.price-card.featured {
  border-color: rgba(74,222,128,.55);
  box-shadow: 0 0 0 1px rgba(74,222,128,.25), 0 18px 40px rgba(74,222,128,.1);
}
.price-card .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #001810; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px;
  white-space: nowrap;
}
.price-card .duration {
  color: var(--text); font-size: 15px; margin-bottom: 10px; font-weight: 700; letter-spacing: -.01em;
}
.price-card .price {
  font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 4px;
  letter-spacing: -.6px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.price-card .price .currency {
  font-size: 16px; font-weight: 700; opacity: .9; margin-right: 2px;
  vertical-align: super; letter-spacing: 0;
}
.price-card .price-suffix { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.price-card .features {
  text-align: left; margin-bottom: 18px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid rgba(74,222,128,.12);
}
.price-card .features li {
  list-style: none; padding: 7px 0 7px 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.45;
  display: flex; gap: 8px; align-items: flex-start;
}
.price-card .features li::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px;
  background: rgba(74,222,128,.14); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234ade80' stroke-width='2'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.price-card .btn { margin-top: auto; }

.plan-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.plan-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.plan-table td { padding: 9px 10px; border-bottom: 1px solid rgba(74,222,128,.08); font-size: 13px; color: var(--text-muted); vertical-align: middle; }
.plan-table td.plan-price { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.plan-table td.plan-cb { color: #86efac; font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-table tr:last-child td { border-bottom: none; }
.price-card.plan-card { text-align: left; padding: 22px 18px 18px; }
.price-card.plan-card .duration { font-size: 17px; color: var(--text); margin-bottom: 4px; font-weight: 750; text-align: left; }
.price-card.plan-card .price-from { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.price-card.plan-card .price-from strong { color: var(--accent); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.pricing-table, .gb-table {
  width: 100%; max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(22,36,28,.9), var(--bg-elevated));
  border-radius: 14px; border-collapse: collapse; overflow: hidden;
  border: 1px solid var(--border);
}
.pricing-table th, .gb-table th {
  padding: 14px 18px; text-align: left; background: rgba(74,222,128,.06);
  font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim);
}
.pricing-table th:last-child, .gb-table th:last-child,
.pricing-table td:last-child, .gb-table td:last-child { text-align: right; }
.pricing-table td, .gb-table td {
  padding: 14px 18px; border-top: 1px solid rgba(74,222,128,.08);
  font-size: 14px; color: var(--text-muted);
}
.pricing-table td:last-child, .gb-table td:last-child {
  color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Notice box (Cheap Proxy warning by default; .notice-info for green tips) */
.notice-box {
  max-width: 860px; margin: 0 auto 24px; padding: 14px 16px; border-radius: 12px;
  background: rgba(245, 158, 11, .1); border: 1px solid var(--warning); color: var(--warning);
  font-size: 13.5px; line-height: 1.55;
}
.notice-box strong { color: var(--warning); }
.notice-box.notice-info {
  background: rgba(74,222,128,.07); border-color: rgba(74,222,128,.28); color: var(--text-muted);
}
.notice-box.notice-info strong { color: var(--accent); }

/* Auth pages */
.auth-wrapper {
  min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px;
  background:
    linear-gradient(180deg, rgba(7,14,11,.88) 0%, var(--bg) 100%),
    url('/img/bg/bg-grid.png') center / cover no-repeat;
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px;
}
.auth-card .auth-header { text-align: center; margin-bottom: 28px; }
.auth-card .auth-header img { width: 96px; height: 96px; border-radius: 0; object-fit: contain; background: transparent !important; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto; box-shadow: none; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card .auth-subtitle { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.form-input {
  width: 100%; padding: 12px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  font-size: 14px; transition: all .2s; font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,222,128,.1); }
.form-input::placeholder { color: var(--text-dim); }

/* Password field with eye icon */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 44px; }
.password-toggle {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--text-muted); display: grid; place-items: center;
}
.password-toggle:hover { color: var(--accent); }
.password-toggle svg { width: 20px; height: 20px; display: block; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-showing .eye-on { display: none; }
.password-toggle.is-showing .eye-off { display: block; }

.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-help { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 18px; }
.form-checkbox input { cursor: pointer; }
.form-checkbox label { font-size: 13px; color: var(--text-muted); cursor: pointer; }

.auth-divider { display: flex; align-items: center; margin: 20px 0; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider::before { margin-right: 14px; }
.auth-divider::after { margin-left: 14px; }

.auth-footer { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text); user-select: none; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--text-muted); display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 0; object-fit: contain; background: transparent; display: block; }
.footer-brand span {
  display: inline-block !important;
  font-weight: 800; font-size: 17px; letter-spacing: -.3px; color: var(--text);
}
.footer-tagline { color: var(--text-muted); font-size: 14px; }
.footer-col h4 { font-size: 13px; color: var(--text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.footer-col .footer-social a {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  transition: all .2s; padding: 0; overflow: hidden;
}
.footer-social a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: var(--accent); display: block; }
.footer-social .fs-ig svg { fill: #E1306C; }
.footer-social .fs-tt svg { fill: #ffffff; }
.footer-social .fs-fb svg { fill: #1877F2; }
.footer-social .fs-wa svg { fill: #25D366; }
.footer-social .fs-tg svg { fill: #2AABEE; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13px; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 38px; }
  .hero .tagline { font-size: 16px; }
  .hero { padding: 60px 0 50px; }
  .hero-grid { padding-top: 20px; padding-bottom: 8px; }
  .header-inner { padding: 10px 16px; gap: 8px; }
  .logo { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-switch-btn { padding: 7px 10px; font-size: 12px; }
  .lang-switch-name { max-width: 72px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .mobile-toggle { display: flex; }
  .header-actions .lang-switch { display: flex; }
  .nav-lang-mobile { display: none; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(8, 14, 24, .98);
    border-bottom: 1px solid var(--border); padding: 16px; gap: 4px;
    display: none; z-index: 250;
    max-height: calc(100vh - 66px); overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,.45);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 769px) {
  .header-actions .mobile-toggle { display: none; }
  .header-actions { order: 3; margin-left: 0; }
  .main-nav { margin-left: auto; }
  .header-actions .lang-switch { display: flex; }
  .nav-lang-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  h1 { font-size: 30px; }
  .hero h1 { font-size: 32px; }
}

/* ===== Landing page (enhanced) ===== */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 1000px; margin: 0 auto; }
.stat-item { background: var(--bg-elevated); padding: 28px 16px; text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-muted); }
@media (max-width: 720px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } .stat-num { font-size: 26px; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-grid-clean {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.product-card {
  --pc: #4ade80;
  --pc-soft: rgba(74,222,128,.16);
  --pc-wash: rgba(74,222,128,.22);
  --pc-border: rgba(74,222,128,.45);
  --pc-base: #0b121c;
  background:
    linear-gradient(145deg, var(--pc-wash) 0%, transparent 42%),
    linear-gradient(180deg, #141e2e, var(--pc-base)) !important;
  border: 1px solid var(--pc-border) !important;
  border-radius: 18px;
  padding: 20px 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  min-height: 132px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.28);
}
.product-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-radius: 18px 0 0 18px; background: var(--pc);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--pc) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px var(--pc-border);
}
.product-card .pc-tag {
  display: inline-block; align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pc); background: var(--pc-soft);
  border: 1px solid var(--pc-border);
  padding: 4px 9px; border-radius: 999px; margin: 0 0 12px 6px;
}
.product-card h3 {
  font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
  margin: 0 0 auto 6px; color: var(--pc);
}
/* Named products: vertical pill + bold title (Elite/Diamond/Golden/GB/Daily/Cheap/DC/SMS) */
.product-card.pc-named::before { display: none; }
.product-card.pc-named {
  padding: 22px 20px 18px;
  min-height: 128px;
  justify-content: space-between;
}
.product-card.pc-named .pc-title-row {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
}
.product-card.pc-named .pc-bar {
  flex: 0 0 auto;
  width: 8px; height: 28px; border-radius: 99px;
  background: var(--pc);
  box-shadow: 0 0 16px color-mix(in srgb, var(--pc) 55%, transparent);
}
.product-card.pc-named h3 {
  margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em;
  line-height: 1.2; color: var(--pc);
}
.product-card.pc-named .pc-meta { margin: 0; }
.product-card .pc-meta {
  display: flex; align-items: baseline; gap: 7px; margin: 16px 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.product-card .pc-meta b {
  font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: #f8fafc;
}
.product-card .pc-meta span {
  font-size: 12px; font-weight: 650; color: var(--text-muted); letter-spacing: .02em;
}
.product-card .pc-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.18); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.product-card .pc-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.product-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; flex: 1; line-height: 1.55; }
.product-card .pc-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.14);
  font-size: 12.5px; color: var(--text-muted); line-height: 1.35;
}
.product-card .pc-price .pc-from { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.product-card .pc-price b, .product-card .pc-price .pc-amt {
  font-size: 20px; color: var(--accent); font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.product-card .pc-price .pc-unit { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.product-card .pc-price .pc-note { width: 100%; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.product-card .pc-badge {
  position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(74,222,128,.12); color: var(--accent); border: 1px solid rgba(74,222,128,.2);
}
.pc-link {
  font-size: 14px; font-weight: 650; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
}
.pc-link:hover { gap: 10px; }

/* Distinct product tones */
.pc-elite {
  --pc: #f0c94a; --pc-soft: rgba(240,201,74,.22); --pc-wash: rgba(240,201,74,.28); --pc-border: rgba(240,201,74,.55); --pc-base: #1a1408;
}
.pc-diamond {
  --pc: #7dd3fc; --pc-soft: rgba(125,211,252,.22); --pc-wash: rgba(56,189,248,.24); --pc-border: rgba(125,211,252,.55); --pc-base: #07141f;
}
.pc-golden {
  --pc: #ff8a3d; --pc-soft: rgba(255,138,61,.22); --pc-wash: rgba(255,138,61,.26); --pc-border: rgba(255,138,61,.55); --pc-base: #1a0e08;
}
.pc-gb { --pc: #4ade80; --pc-soft: rgba(74,222,128,.2); --pc-wash: rgba(74,222,128,.22); --pc-border: rgba(74,222,128,.5); --pc-base: #07140e; }
.pc-daily { --pc: #2dd4bf; --pc-soft: rgba(45,212,191,.2); --pc-wash: rgba(45,212,191,.22); --pc-border: rgba(45,212,191,.5); --pc-base: #071614; }
.pc-cheap { --pc: #a3e635; --pc-soft: rgba(163,230,53,.2); --pc-wash: rgba(163,230,53,.2); --pc-border: rgba(163,230,53,.48); --pc-base: #101408; }
.pc-ipv4 {
  --pc: #60a5fa; --pc-soft: rgba(96,165,250,.2); --pc-wash: rgba(96,165,250,.24); --pc-border: rgba(96,165,250,.5); --pc-base: #08101c;
}
.pc-ipv4:not(.pc-named) h3 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 17px; letter-spacing: 0; }
.pc-ipv6 {
  --pc: #34d399; --pc-soft: rgba(52,211,153,.2); --pc-wash: rgba(52,211,153,.22); --pc-border: rgba(52,211,153,.5); --pc-base: #071612;
}
.pc-ipv6:not(.pc-named) h3 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 17px; letter-spacing: 0; }
.pc-isp { --pc: #94a3b8; --pc-soft: rgba(148,163,184,.18); --pc-wash: rgba(148,163,184,.16); --pc-border: rgba(148,163,184,.42); --pc-base: #0e1218; }
.pc-vps { --pc: #38bdf8; --pc-soft: rgba(56,189,248,.2); --pc-wash: rgba(56,189,248,.22); --pc-border: rgba(56,189,248,.5); --pc-base: #07131c; }
.pc-sms { --pc: #f472b6; --pc-soft: rgba(244,114,182,.2); --pc-wash: rgba(244,114,182,.2); --pc-border: rgba(244,114,182,.48); --pc-base: #160a12; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.why-card { padding: 24px; }
.why-card .why-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(74,222,128,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.cta-band { text-align: center; padding: 70px 24px; background: radial-gradient(ellipse at center, rgba(74,222,128,.1), transparent 70%); border: 1px solid var(--border); border-radius: var(--radius); margin: 40px 0; }
.cta-band h2 { font-size: 32px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

.section-pad { padding: 70px 0; }
.hero-trust { font-size: 14px; color: var(--text-dim); margin-top: 20px; }

/* ===== v3 — Professional redesign ===== */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }

/* Hero with aurora background */
.hero {
  position: relative;
  padding: 120px 0 90px;
  background:
    linear-gradient(180deg, rgba(7,14,11,.78) 0%, rgba(7,14,11,.66) 45%, var(--bg) 100%),
    url('/img/bg/bg-aurora.png') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero h1 { letter-spacing: -1.2px; }
.hero .tagline { color: #c3d4c9; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.25); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Stats bar riding on hero bottom */
.stats-bar { backdrop-filter: none; }
.stat-item { background: rgba(19,31,24,.92); }

/* SVG icon badges (replaces emoji icons) */
.pc-icon svg, .why-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature-icon { color: var(--accent); }
.why-icon { background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.18); }
.pc-icon { background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.18); }

/* Free trial band — LED dots background */
.trial-band {
  display: block; text-decoration: none; position: relative; overflow: hidden;
  border: 1px solid rgba(74,222,128,.4); border-radius: var(--radius-lg);
  padding: 44px 32px; text-align: center;
  background:
    linear-gradient(135deg, rgba(4,24,16,.93) 0%, rgba(6,30,22,.88) 100%),
    url('/img/bg/bg-dots.png') center / cover no-repeat;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  transition: all .25s ease;
}
.trial-band:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 20px 56px rgba(6,95,70,.3); }
.trial-pill {
  display: inline-block; background: var(--accent); color: #022c22;
  font-weight: 800; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px; margin-bottom: 16px;
}
.trial-band h2 { margin: 0 0 10px; font-size: 30px; color: #fff; font-weight: 800; line-height: 1.2; }
.trial-band p { margin: 0 auto 22px; color: #b9d9c6; font-size: 16px; max-width: 640px; line-height: 1.6; }
.trial-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #022c22; font-weight: 700; font-size: 15px;
  padding: 13px 30px; border-radius: var(--radius);
}

/* Why-us section — curtain background */
.why-section {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(9,18,26,.42) 18%, rgba(9,18,26,.42) 82%, var(--bg) 100%),
    linear-gradient(rgba(7,14,11,.82), rgba(7,14,11,.82)),
    url('/img/bg/bg-curtain.png') center / cover no-repeat;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.why-card { background: rgba(19,31,24,.94); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: none; transition: all .2s; }
.why-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* How it works — numbered steps */
.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: 16px;
}

/* CTA band — blue streaks background */
.cta-band {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6,12,10,.9) 0%, rgba(8,14,22,.82) 100%),
    url('/img/bg/bg-streaks.png') center / cover no-repeat;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
}
.cta-band h2 { color: #fff; }

/* Page hero for inner public pages (pricing, faq...) — grid background */
.page-hero {
  position: relative; text-align: center; padding: 72px 0 56px;
  background:
    linear-gradient(180deg, rgba(7,14,11,.86) 0%, var(--bg) 100%),
    url('/img/bg/bg-grid.png') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 38px; letter-spacing: -.8px; margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 16px; max-width: 620px; margin: 0 auto; }

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .trial-band { padding: 32px 20px; }
  .trial-band h2 { font-size: 24px; }
  .page-hero { padding: 52px 0 40px; }
  .page-hero h1 { font-size: 30px; }
}

/* ===== v4 — digital professional polish ===== */
.hero h1 {
  letter-spacing: -1.4px;
  background: linear-gradient(135deg, #fff 20%, #9ff3c0 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline { color: #c5d4e4; max-width: 560px; margin-left: 0; margin-right: 0; }
.hero-cta { justify-content: flex-start; }
.hero-trust { color: #8aa0b5; }
.hero-trust-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.22);
  color: #d7eee0; font-size: 13px; font-weight: 600;
}
.hero-chip svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; }

.stats-bar {
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 14px;
}
.stat-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.2);
  margin-bottom: 4px;
}
.stat-ico svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.how-section {
  background:
    linear-gradient(180deg, rgba(6,11,18,.7), rgba(6,11,18,.86)),
    url('/img/bg/bg-tech-grid.png') center / cover no-repeat;
  border-top: 1px solid var(--border);
}

.pc-icon, .why-icon, .feature-icon {
  box-shadow: 0 0 0 1px rgba(74,222,128,.12), 0 8px 20px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
  .hero { text-align: center !important; min-height: 0; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust-row { justify-content: center; }
}

.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compare-grid-clean { gap: 12px; }
.compare-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  padding: 26px 22px; border-radius: var(--radius-lg);
  background: rgba(12,20,32,.88); border: 1px solid rgba(74,222,128,.14);
  transition: border-color .2s, transform .2s;
}
.compare-grid-clean .compare-card {
  min-height: 108px; padding: 20px 18px; justify-content: center;
}
.compare-grid-clean .compare-card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.compare-grid-clean .compare-card ul,
.compare-grid-clean .compare-card p,
.compare-grid-clean .compare-card .pc-link { display: none; }
.cc-fiveg { border-color: rgba(232,197,71,.45); }
.cc-fiveg .compare-kicker, .cc-fiveg h3 { color: #e8c547; }
.cc-res { border-color: rgba(74,222,128,.45); }
.cc-res .compare-kicker, .cc-res h3 { color: #4ade80; }
.cc-vps { border-color: rgba(56,189,248,.45); }
.cc-vps .compare-kicker, .cc-vps h3 { color: #38bdf8; }
.compare-card:hover { border-color: rgba(74,222,128,.45); transform: translateY(-3px); color: inherit; }
.compare-kicker { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.compare-card h3 { font-size: 20px; margin-bottom: 8px; }
.compare-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.compare-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.7; flex: 1; }
.compare-card .pc-link { margin-top: auto; }

.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use-card { padding: 22px 18px; border-radius: var(--radius); background: rgba(12,20,32,.88); border: 1px solid rgba(74,222,128,.12); }
.use-card h3 { font-size: 16px; margin-bottom: 8px; }
.use-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }

.strip-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 16px;
  border: 1px solid rgba(74,222,128,.14); background: rgba(12,20,32,.7);
}
.strip-row span {
  font-size: 13px; font-weight: 600; color: #d7eee0;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.18);
}

.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-card {
  background: rgba(12,20,32,.88); padding: 32px; border-radius: 16px;
  border: 1px solid rgba(74,222,128,.12); line-height: 1.7;
}
.legal-card h3 { font-size: 18px; }
.legal-card p { color: var(--text-muted); }

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .use-grid { grid-template-columns: 1fr; }
}

/* ===== Landing polish: hero panel, coverage, social proof ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-copy { max-width: 640px; }
.hero-panel { display: flex; justify-content: flex-end; }
.hero-panel-card {
  width: 100%; max-width: 380px;
  background: rgba(8, 16, 28, .92);
  border: 1px solid rgba(74,222,128,.22);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(74,222,128,.06);
  backdrop-filter: none;
}
.hero-panel-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.hero-panel-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.hero-panel-dot:nth-child(2) { background: #f59e0b; }
.hero-panel-dot:nth-child(3) { background: #4ade80; }
.hero-panel-title { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.hero-panel-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(74,222,128,.1);
  font-size: 13px; color: var(--text-muted);
}
.hero-panel-row strong { color: var(--text); font-weight: 600; }
.hero-panel-row strong.ok { color: var(--accent); }
.hero-panel-code {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px dashed rgba(74,222,128,.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #9fe7bf; word-break: break-all;
}
.hero-panel-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 14px;
}
.hero-panel-metrics div {
  text-align: center; padding: 10px 6px; border-radius: 10px;
  background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.12);
}
.hero-panel-metrics b { display: block; color: var(--accent); font-size: 16px; }
.hero-panel-metrics small { color: var(--text-muted); font-size: 11px; }

.coverage-strip { padding: 8px 0 28px; }
.coverage-label {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px;
}
html[lang="bn"] .coverage-label,
html[lang="ar"] .coverage-label,
html[lang="ru"] .coverage-label,
html[lang="hi"] .coverage-label,
html[lang="zh"] .coverage-label,
html[lang="ja"] .coverage-label {
  text-transform: none;
  letter-spacing: .02em;
}
.coverage-flags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.coverage-flags span,
.coverage-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(12,20,32,.85); border: 1px solid rgba(74,222,128,.14);
}
.coverage-flags .cflag,
.coverage-flag .cflag {
  margin-right: 0; width: 18px; height: 14px; vertical-align: middle;
}

.proof-section { padding-top: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.proof-card {
  margin: 0; padding: 22px 20px; border-radius: 16px;
  background: rgba(12,20,32,.88); border: 1px solid rgba(74,222,128,.14);
}
.proof-card p { font-size: 14px; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.proof-card footer { font-size: 12px; color: var(--text-muted); }
.proof-card footer strong { color: var(--accent); }
.pay-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pay-chip {
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 8px 14px; border-radius: 10px; color: #d7eee0;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-panel { justify-content: center; }
  .hero-copy { max-width: none; }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-panel { display: flex; }
}

/* Country flags (PNG — Windows-safe) */
img.cflag{display:inline-block;vertical-align:-2px;width:20px;height:15px;object-fit:cover;border-radius:2px;margin-right:4px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.cflag-select{position:relative;width:100%}
.cflag-select>select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.cflag-select-btn{width:100%;display:flex;align-items:center;gap:8px;text-align:left;padding:11px 14px;border:1px solid var(--line,#d0d7e2);border-radius:8px;background:#fff;color:inherit;font-size:14px;cursor:pointer;font-family:inherit}
.cflag-select-list{display:none;position:absolute;z-index:80;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line,#d0d7e2);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.12)}
.cflag-select.is-open .cflag-select-list{display:block}
.cflag-select-search{width:100%;box-sizing:border-box;padding:10px 12px;border:0;border-bottom:1px solid var(--line,#d0d7e2);background:#f8fafc;color:inherit;font-size:13px;outline:none;font-family:inherit}
.cflag-select-opt{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:13px}
.cflag-select-opt:hover,.cflag-select-opt.is-active{background:#f0f7ff}

/* Performance: paint off-screen sections lazily; less scroll jank */
.section,
.section-pad,
.why-section,
.cta-band,
.trial-band,
.page-hero,
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Homepage: estimator + code preview */
.infra-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.infra-card {
  background: rgba(12, 20, 32, .88); border: 1px solid rgba(74,222,128,.14);
  border-radius: 16px; padding: 26px 24px;
}
.infra-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.infra-card h2 { font-size: 24px; margin-bottom: 8px; }
.infra-lead { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.infra-range-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.infra-range-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
#gbSlider { width: 100%; accent-color: #4ade80; margin-bottom: 16px; }
.infra-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.infra-estimate div { padding: 12px; border-radius: 12px; background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.12); }
.infra-estimate span { display: block; font-size: 12px; color: var(--text-muted); }
.infra-estimate b { font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.code-tab {
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 650; cursor: pointer; font-family: inherit;
}
.code-tab.is-on { color: #04140c; background: var(--accent); border-color: var(--accent); }
.code-pane {
  display: none; margin: 0 0 14px; padding: 14px; border-radius: 12px;
  background: #070d14; border: 1px solid rgba(74,222,128,.16);
  color: #b7f7d0; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.55; overflow-x: auto; white-space: pre;
}
.code-pane.is-on { display: block; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-row span {
  font-size: 12px; font-weight: 600; color: #d7eee0;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.18);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* DNS Proxyon — professional digital surfaces
   Chosen assets: hex mesh (hero), LED grid, wireframe, tech grid, flow streaks, pillars, stars */

:root {
  --bg: #060b12;
  --bg-elevated: #0c1420;
  --bg-card: #101a28;
  --border: #1c2d42;
  --border-hover: #2a4564;
  --text: #edf4fb;
  --text-muted: #9bb0c4;
  --text-dim: #6d8298;
}

html, body {
  background-color: #060b12 !important;
  background-image: none !important;
  background-attachment: scroll !important;
  pointer-events: auto !important;
}
/* Fixed wallpaper as a non-interactive layer so it never steals taps */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(6,11,18,.72) 0%, rgba(6,11,18,.82) 100%),
    url('/img/bg/bg-stars.png') center / cover no-repeat;
}

/* Header — solid frosted tone (no live blur; blur vs fixed wallpaper causes scroll jank) */
.site-header {
  background: rgba(6, 12, 20, .92) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(74, 222, 128, .14) !important;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(6,11,18,.78), rgba(4,8,14,.9)),
    url('/img/bg/bg-tech-grid.png') center / cover no-repeat !important;
  border-top: 1px solid rgba(74, 222, 128, .12) !important;
}

.main-content {
  background: transparent;
}

/* Hero — hexagonal network, copy on the dark left */
.hero {
  text-align: left !important;
  padding: 108px 0 96px !important;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(5,10,18,.94) 0%, rgba(5,10,18,.78) 42%, rgba(5,10,18,.28) 100%),
    url('/img/bg/bg-hex.png') right center / cover no-repeat !important;
  border-bottom: 1px solid rgba(74,222,128,.12) !important;
}
.hero .container { max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
@media (min-width: 980px) {
  .hero .container.hero-grid { margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
}

.trial-band {
  background:
    linear-gradient(135deg, rgba(4,18,28,.88) 0%, rgba(6,22,36,.78) 100%),
    url('/img/bg/bg-led.png') center / cover no-repeat !important;
}

.why-section {
  background:
    linear-gradient(180deg, rgba(6,11,18,.82) 0%, rgba(6,11,18,.7) 50%, rgba(6,11,18,.86) 100%),
    url('/img/bg/bg-wire.png') center bottom / cover no-repeat !important;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(5,12,22,.82) 0%, rgba(8,16,32,.7) 100%),
    url('/img/bg/bg-flow.png') center / cover no-repeat !important;
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(6,11,18,.78) 0%, rgba(6,11,18,.92) 100%),
    url('/img/bg/bg-tech-grid.png') center / cover no-repeat !important;
}

.auth-wrapper {
  background:
    linear-gradient(180deg, rgba(6,11,18,.55) 0%, rgba(6,11,18,.82) 100%),
    url('/img/bg/bg-hex.png') center / cover no-repeat !important;
  background-attachment: scroll;
  position: relative;
  z-index: 1;
}

/* Dashboard / admin — no fixed-attachment layers (they steal clicks in Chromium) */
.app .sidebar {
  background:
    linear-gradient(180deg, rgba(8,14,24,.96), rgba(6,11,18,.98)) !important;
  border-right-color: rgba(74,222,128,.12) !important;
}

.app .topbar {
  background: rgba(8, 14, 24, .94) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(74,222,128,.1) !important;
}

.app .main,
.app .content {
  background: transparent !important;
  background-attachment: scroll !important;
  pointer-events: auto !important;
}

.site-footer,
.main-content,
.app,
.hero,
.section,
.section-pad,
.auth-wrapper {
  position: relative;
  z-index: 1;
}

/* Keep header always visible while scrolling (fixed beats sticky when ancestors break it) */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}
/* Only public marketing pages use .site-header — don't pad dashboard/admin */
body.public-site {
  padding-top: 64px !important;
}
@media (min-width: 769px) {
  body.public-site {
    padding-top: 72px !important;
  }
}
/* Hero already had large top padding for old in-flow header — tighten it */
body.public-site .hero {
  padding-top: 48px !important;
}
body.public-site .page-hero {
  padding-top: 28px !important;
}
@media (max-width: 768px) {
  body.public-site .main-nav {
    top: 64px !important;
    z-index: 999 !important;
  }
}

.card,
.feature-card,
.why-card,
.auth-card,
.price-card,
.stat-item,
.faq-item,
.compare-card,
.use-card,
.legal-card {
  background: rgba(12, 20, 32, .88) !important;
  border-color: rgba(74, 222, 128, .12) !important;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* product-card: keep per-tone colors from app.css — do not flatten */

a, button, input, select, textarea, label, .btn, .nav-link, .toggle-switch {
  pointer-events: auto !important;
}

.feature-card:hover,
.why-card:hover,
.price-card:hover,
.compare-card:hover,
.use-card:hover {
  border-color: rgba(74, 222, 128, .45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(74,222,128,.12);
}

.app .sidebar,
.app .topbar,
.app .main,
.app .content {
  --bg: #060b12;
  --bg-2: #0a1018;
  --surface: rgba(14, 22, 34, .78);
  --surface-2: rgba(18, 28, 42, .82);
  --surface-3: #182436;
  --border: #1c2d42;
  --border-2: #2a3f58;
  --text: #edf4fb;
  --text-2: #9bb0c4;
  --text-3: #9bb0c4;
}


/* DNS Proxyon — glass / live infrastructure layer (loads last)
   Scroll perf: no backdrop-filter on scrolling cards (blur vs fixed wallpaper = jank).
   Look stays glass via opaque panels; header uses solid frosted tone without live blur. */

body.public-site {
  --glass: rgba(12, 20, 34, .94);
  --glass-2: rgba(10, 22, 40, .95);
  --line: rgba(148, 163, 184, .16);
  --cyan: #22d3ee;
}

body.public-site::before {
  background:
    radial-gradient(ellipse 80% 50% at 80% 8%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(74, 222, 128, .12), transparent 50%),
    linear-gradient(180deg, rgba(4, 8, 16, .55) 0%, rgba(4, 8, 16, .72) 100%),
    url('/img/bg/bg-stars.png') center / cover no-repeat !important;
  transform: translateZ(0);
  contain: paint;
  backface-visibility: hidden;
}

.site-header {
  background: rgba(5, 10, 18, .92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(125, 211, 252, .16) !important;
  transform: translateZ(0);
}

body.public-site .hero {
  overflow: hidden;
  min-height: 86vh !important;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(34, 211, 238, .14), transparent 42%),
    linear-gradient(105deg, rgba(4, 8, 16, .55) 0%, rgba(4, 8, 16, .18) 58%, transparent 100%) !important;
  border-bottom: 1px solid rgba(125, 211, 252, .12) !important;
  contain: layout paint style;
}

.hero-copy { position: relative; z-index: 2; }
.hero-panel { position: relative; z-index: 2; }

.net-stage {
  position: absolute;
  inset: -8% -4% 0;
  pointer-events: none;
  z-index: 0;
  opacity: .38;
  contain: strict;
  transform: translateZ(0);
}
.net-stage svg { width: 100%; height: 100%; display: block; }
.net-arc {
  fill: none;
  stroke: url(#netGrad);
  stroke-width: 1.2;
  stroke-dasharray: 6 110;
  animation: net-dash 5.5s linear infinite;
}
.net-arc.d2 { animation-duration: 7.2s; animation-delay: -1.4s; opacity: .7; }
.net-arc.d3 { animation-duration: 4.4s; animation-delay: -2.1s; opacity: .85; }
.net-node {
  fill: #4ade80;
  /* drop-shadow filters re-rasterize every frame during scroll — skip */
  animation: net-pulse 2.4s ease-in-out infinite;
}
.net-node.n2 { animation-delay: .4s; fill: #22d3ee; }
.net-node.n3 { animation-delay: .9s; }
.net-halo {
  fill: none;
  stroke: rgba(74, 222, 128, .45);
  stroke-width: 1;
  animation: net-halo 2.8s ease-out infinite;
}
.net-stage.is-off .net-arc,
.net-stage.is-off .net-node,
.net-stage.is-off .net-halo { animation: none !important; }
@keyframes net-dash { to { stroke-dashoffset: -116; } }
@keyframes net-pulse {
  0%, 100% { r: 3.2; opacity: 1; }
  50% { r: 4.4; opacity: .7; }
}
@keyframes net-halo {
  0% { r: 3; opacity: .7; }
  100% { r: 16; opacity: 0; }
}

.hero-panel-card,
.infra-card,
.compare-card,
.why-card,
.use-card,
.proof-card,
.faq-item,
.stat-item,
.trial-band,
.cta-band,
.legal-card,
.auth-card,
.price-card,
.feature-card {
  background: var(--glass) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}
/* product-card keeps per-tone gradients from app.css — do not flatten */

.hero-panel-card {
  background: linear-gradient(180deg, rgba(8, 18, 34, .92), rgba(6, 12, 24, .88)) !important;
  max-width: 420px;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: live-ping 1.6s ease-out infinite;
  display: inline-block;
}
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.live-feed {
  margin-top: 14px;
  border-top: 1px solid rgba(125, 211, 252, .14);
  padding-top: 12px;
  height: 92px;
  overflow: hidden;
  position: relative;
}
.live-feed-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #c9e7d6;
  padding: 5px 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  opacity: 0;
  transform: translateY(8px);
  animation: feed-in .45s ease forwards;
}
.live-feed-row b { color: #7dd3fc; font-weight: 600; }
.live-feed-row em { color: #6d8298; font-style: normal; font-size: 11px; }
@keyframes feed-in { to { opacity: 1; transform: none; } }

.live-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(125, 211, 252, .1);
  border-bottom: 1px solid rgba(125, 211, 252, .1);
  background: rgba(6, 12, 22, .88);
  backdrop-filter: none;
}
.live-marquee {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 32s linear infinite;
  font-size: 13px;
  color: #b7c9d8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  will-change: transform;
}
.live-marquee span { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.live-marquee .ok { color: #4ade80; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats-bar {
  background: transparent !important;
  border: 0 !important;
  gap: 12px !important;
  backdrop-filter: none;
}
.stat-item {
  border-radius: 16px !important;
  padding: 26px 16px !important;
}
.stat-num { color: #4ade80 !important; }

.footer-col .footer-social a {
  display: inline-flex !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
}

.coverage-flag {
  background: rgba(8, 16, 30, .9) !important;
  backdrop-filter: none;
  border-color: rgba(125, 211, 252, .16) !important;
}

.strip-row {
  background: rgba(8, 16, 30, .9) !important;
  backdrop-filter: none;
  border-color: rgba(125, 211, 252, .16) !important;
}

.compare-card:hover,
.why-card:hover,
.infra-card:hover {
  border-color: rgba(34, 211, 238, .45) !important;
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .38), 0 0 0 1px rgba(34, 211, 238, .16) !important;
}

.btn-secondary {
  background: rgba(8, 16, 30, .88) !important;
  backdrop-filter: none;
  border: 1px solid rgba(125, 211, 252, .28) !important;
}

/* Off-screen sections skip paint while scrolling */
.coverage-strip,
.section-pad,
.why-section,
.proof-section,
.how-section,
.faq-section,
.cta-band,
.trial-band {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

@media (max-width: 768px) {
  .hero-panel { display: block !important; }
  .net-stage { opacity: .45; }
  body.public-site .hero { min-height: 0 !important; }
  .net-arc, .net-node, .net-halo { animation: none !important; }
}

.app .card {
  background: rgba(10, 16, 28, .92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.app .topbar {
  background: rgba(8, 14, 24, .94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .net-arc, .net-node, .net-halo, .live-dot, .live-marquee { animation: none !important; }
}
