:root {
  --bg: #060a13;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.18);
  --text: #eef2f8;
  --muted: #94a0b4;
  --accent: #34d399;
  --accent2: #22d3ee;
  --grad: linear-gradient(135deg, #34d399, #22d3ee);
  --danger: #fb7185;
  --radius: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(52, 211, 153, 0.14), transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(800px 700px at 50% 110%, rgba(129, 140, 248, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(6, 10, 19, 0.65);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav a.navlink { color: var(--muted); text-decoration: none; margin-left: 24px; font-size: 0.9rem; transition: color .15s; }
nav a.navlink:hover { color: var(--text); }

.hero { text-align: center; padding: 64px 0 36px; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.1; }
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 580px; margin: 14px auto 0; font-size: 1.02rem; }

.country-switch { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.active-pill {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(34, 211, 238, 0.16));
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.region-switch { display: inline-flex; gap: 6px; align-items: center; }
.pill-sm { padding: 6px 13px !important; font-size: 0.8rem; }

.geo-banner {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.14), rgba(34, 211, 238, 0.12));
  border-bottom: 1px solid var(--border);
  padding: 9px 44px 9px 16px;
  text-align: center; font-size: 0.85rem; color: var(--text);
}
.geo-banner a { color: var(--accent2); font-weight: 600; text-decoration: none; }
.geo-banner a:hover { text-decoration: underline; }
.geo-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.geo-close:hover { color: var(--text); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin: 36px 0; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 30px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
input[type="number"], input[type="email"], select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
select option { background: #10182a; color: var(--text); }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill {
  padding: 9px 16px; border-radius: 99px; cursor: pointer; user-select: none;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 0.88rem; color: var(--muted); font-weight: 500;
  transition: all .15s;
}
.pill:hover { border-color: var(--border-bright); color: var(--text); }
.pill-group input:checked + .pill {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(34, 211, 238, 0.16));
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}
.sr-select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.slider { margin-top: 12px; accent-color: var(--accent); height: 4px; cursor: pointer; }

.results-card { position: sticky; top: 80px; }
.net-big {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.net-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { text-align: right; color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 10px; }
th:first-child, td:first-child { text-align: left; }
td { padding: 10px 0; border-top: 1px solid var(--border); }
td:nth-child(2), td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.negative { color: var(--danger); }
.net-row td { border-top: 2px solid transparent; border-image: var(--grad) 1; font-weight: 700; }
.net-row td:first-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.effective {
  margin-top: 20px; padding: 13px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 0.92rem; display: flex; justify-content: space-between; align-items: center;
}

.compare-box {
  margin-top: 14px; padding: 13px 16px; border-radius: 12px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.25);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.92rem;
}
.compare-box strong { color: var(--accent2); }

.hidden { display: none; }

.actions { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  background: var(--grad); color: #04150d; font-weight: 700;
  padding: 13px 24px; border-radius: 12px; text-decoration: none; white-space: nowrap;
  display: inline-block; border: none; cursor: pointer; font-size: 0.95rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(52, 211, 153, 0.35); }
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); font-weight: 600;
  padding: 11px 18px; border-radius: 12px; cursor: pointer;
  font-size: 0.88rem; transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:focus-visible, .btn-secondary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ad-slot {
  margin: 44px auto; max-width: 728px; min-height: 90px;
  border: 1px dashed var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface), rgba(34, 211, 238, 0.06));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; margin: 44px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

.content { padding: 32px 0; max-width: 720px; }
.content h2 { margin: 30px 0 12px; font-size: 1.45rem; letter-spacing: -0.02em; }
.content p { color: var(--muted); margin-bottom: 14px; }
.content ul { color: var(--muted); margin: 0 0 14px 20px; }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 15px 20px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; }

.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 32px 0; }
.state-grid a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 17px; text-decoration: none; color: var(--text); font-size: 0.92rem;
  transition: border-color .15s, transform .15s;
}
.state-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.state-grid a small { color: var(--muted); display: block; }

.print-header { display: none; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price-card .price { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; }
.price-card .price strong { font-size: 2.1rem; color: var(--text); letter-spacing: -0.03em; }
.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.price-card.featured { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 50px rgba(52, 211, 153, 0.12); }
.badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--grad); color: #04150d;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 99px;
}

pre {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; overflow-x: auto; font-size: 0.82rem; line-height: 1.55; margin: 12px 0 24px;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 48px; color: var(--muted); font-size: 0.85rem; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #000; }
  .calc-grid { grid-template-columns: 1fr; }
  .results-card { position: static; border: none; background: #fff; padding: 0; box-shadow: none; backdrop-filter: none; }
  .card.results-card * { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .print-header { display: block !important; font-weight: 700; font-size: 1rem; margin-bottom: 12px; border-bottom: 2px solid #000; padding-bottom: 6px; }
  .net-row td { border-top: 2px solid #000; }
  table td { border-color: #ccc; }
}
