/* ===== NodrixVpn — Professional SaaS Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand + accents (cyan / emerald) */
  --brand: #06B6D4;
  --brand-600: #22D3EE;
  --brand-700: #0891B2;
  --accent: #10B981;
  --accent-600: #34D399;
  --accent-700: #059669;
  /* Dark surfaces — refined slate instead of pure black */
  --bg: #0F1419;
  --bg-soft: #161B22;
  --bg-tint: #1A2029;
  --bg-card: #161B22;
  --bg-elevated: #1C232E;
  --text: #E6EDF3;
  --text-soft: #B1BAC4;
  --muted: #7D8590;
  --border: #232A35;
  --border-soft: #2D3441;
  /* Status */
  --success: #3FB950;
  --danger: #F85149;
  --warn: #D29922;
  --info: #58A6FF;
  /* Radius + shadows — lighter, more subtle */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .12);
  --shadow: 0 2px 8px rgba(0, 0, 0, .12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .2);
  --glow: 0 0 0 3px rgba(6, 182, 212, .12);
  --maxw: 1140px;
  --maxw-narrow: 720px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --grad: linear-gradient(135deg, #06B6D4 0%, #0891B2 50%, #10B981 100%);
  --grad-soft: linear-gradient(135deg, rgba(6,182,212,.08), rgba(16,185,129,.08));
  --grad-danger: linear-gradient(135deg, #F85149, #DA3633);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  /* Sidebar specific */
  --sidebar-bg: #131820;
  --sidebar-hover: #1A2029;
  --sidebar-active: rgba(6, 182, 212, .12);
}
[data-theme="dark"] {
  --bg: #0F1419;
  --bg-soft: #161B22;
  --bg-tint: #1A2029;
  --text: #E6EDF3;
  --text-soft: #B1BAC4;
  --muted: #7D8590;
  --border: #232A35;
  --shadow: 0 2px 8px rgba(0, 0, 0, .15);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .25);
}
[data-theme="light"] {
  --bg: #FAFBFC;
  --bg-soft: #F3F4F8;
  --bg-tint: #EEF0F4;
  --bg-card: #FFFFFF;
  --bg-elevated: #F6F7FA;
  --text: #1A1D23;
  --text-soft: #52596B;
  --muted: #8B90A0;
  --border: #E5E7EB;
  --border-soft: #D1D5DB;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .08);
  --sidebar-bg: #F7F8FA;
  --sidebar-hover: #EEF0F4;
  --sidebar-active: rgba(6, 182, 212, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

/* ── Dark scrollbar (global) ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border-soft) var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-600); }
code { background: var(--bg-tint); padding: 2px 7px; border-radius: 5px; font-size: .88em; color: var(--brand-600); border: 1px solid var(--border); }
code.big { font-size: 1.05em; padding: 5px 10px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-soft); line-height: 1.65; }

/* ---------- Gradient text helper ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(15, 20, 25, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .3s var(--ease);
}
[data-theme="light"] .site-header { background: rgba(255, 255, 255, .85); }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--brand); transition: opacity .2s var(--ease); }
.logo:hover { opacity: .85; }
.logo-img { display: block; border-radius: 6px; flex-shrink: 0; transition: transform .4s var(--ease); }
.logo:hover .logo-img { transform: rotate(-4deg) scale(1.05); }
.logo .accent { color: var(--accent); }
.logo-tag { margin-left: 6px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: var(--brand); color: #fff; vertical-align: middle; }
.logo-sm { font-size: 17px; }
.main-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-link { color: var(--text-soft); font-size: .9rem; font-weight: 500; position: relative; transition: color .15s var(--ease); }
.nav-link:after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--brand); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--brand); }
.nav-link:hover:after { width: 100%; }
.lang-switch { display: flex; gap: 2px; padding: 2px; background: var(--bg-tint); border-radius: 6px; border: 1px solid var(--border); }
.lang-switch a { font-size: .72rem; color: var(--muted); padding: 3px 8px; border-radius: 4px; transition: all .15s var(--ease); font-weight: 600; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.active { color: #fff; background: var(--brand); }
.nav-toggle {
  display: none;
  background: none; border: 0; font-size: 20px; color: var(--text);
  cursor: pointer; padding: 8px 10px; border-radius: 8px;
  transition: background .15s var(--ease), color .15s var(--ease);
  flex-shrink: 0; line-height: 1;
}
.nav-toggle:hover { background: var(--bg-tint); color: var(--brand); }
.nav-toggle.active { background: var(--bg-tint); color: var(--brand); }
.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle .bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle.active .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.active .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Nav overlay (mobile) ---------- */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 49; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.nav-overlay.show { display: block; animation: fade-in .2s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; font-size: .875rem; font-weight: 600;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), opacity .15s var(--ease);
  text-decoration: none; line-height: 1.4; white-space: nowrap;
}
.btn:active { opacity: .8; }
.btn-primary {
  background: var(--brand);
  color: #04141a; font-weight: 700;
}
.btn-primary:hover { background: var(--brand-600); color: #04141a; }
.btn-primary:after { display: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: rgba(6, 182, 212, .04); }
.btn-link { background: transparent; color: var(--text-soft); padding: 4px 8px; }
.btn-link:hover { color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DA3633; color: #fff; }
.btn-lg { padding: 11px 24px; font-size: .95rem; }
.btn-sm { padding: 5px 11px; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 100px 0 80px;
  background: radial-gradient(circle at 20% 20%, rgba(6,182,212,.08), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(16,185,129,.06), transparent 45%),
              var(--bg);
  text-align: center; overflow: hidden;
}
.hero:before, .hero:after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: .25; pointer-events: none; z-index: 0;
}
.hero:before { width: 320px; height: 320px; background: var(--brand); top: -80px; left: 8%; }
.hero:after { width: 280px; height: 280px; background: var(--accent); top: 40px; right: 10%; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0 0 14px; letter-spacing: -0.03em; line-height: 1.05;
  animation: hero-in .6s var(--ease) both;
}
.hero .lead {
  max-width: 640px; margin: 0 auto 30px;
  animation: hero-in .6s var(--ease) .1s both;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: hero-in .6s var(--ease) .2s both; }
.hero-badges {
  margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  color: var(--text-soft); font-size: .85rem; animation: hero-in .6s var(--ease) .3s both;
}
.hero-badges span {
  padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; font-size: .8rem; font-weight: 500;
  transition: border-color .2s var(--ease);
}
.hero-badges span:hover { border-color: var(--border-soft); }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-soft); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-align: center; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 700; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: .95rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero h1,.hero .lead,.hero-cta,.hero-badges { animation: none; } }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-soft); }
.feature-card:hover:before { transform: scaleX(1); }
.feature-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  font-size: 24px; border-radius: 10px; background: var(--grad-soft); margin-bottom: 14px;
  transition: transform .3s var(--ease);
}
.feature-card:hover .feature-ic { transform: scale(1.08); }
.feature-card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: .9rem; line-height: 1.6; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-soft); box-shadow: var(--shadow); }
.plan-card-popular {
  border-color: var(--brand);
}
.plan-card-popular:before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .65rem; padding: 4px 12px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.plan-card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.price, .price .currency { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: initial; color: var(--text); }
.currency { font-size: 1rem; color: var(--text-soft); }
.interval { color: var(--muted); margin-bottom: 20px; font-size: .85rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; }
.plan-features li { padding: 7px 0 7px 26px; position: relative; color: var(--text-soft); font-size: .9rem; }
.plan-features li:before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
blockquote {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  margin: 0; position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
blockquote:hover { transform: translateY(-2px); border-color: var(--border-soft); }
blockquote:before { content: "\201C"; position: absolute; top: 6px; left: 14px; font-size: 3rem; line-height: 1; color: var(--brand); opacity: .1; font-family: Georgia, serif; }
blockquote p { margin: 0 0 12px; font-style: italic; position: relative; color: var(--text-soft); font-size: .92rem; }
blockquote footer { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-category { margin-bottom: 36px; }
.faq-cat-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.faq-cat-icon { font-size: 1.3rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 14px 20px; transition: border-color .2s var(--ease); }
.faq-item:hover { border-color: var(--border-soft); }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400; transition: transform .25s var(--ease); }
.faq-item[open] summary:after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--text-soft); font-size: .9rem; line-height: 1.6; animation: faq-in .2s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.post-card:hover { transform: translateY(-3px); border-color: var(--border-soft); }
.post-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.post-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.post-body h2 { font-size: 1.3rem; margin-top: 28px; }
.post-body h3 { font-size: 1.1rem; margin-top: 22px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.form input, .form select, .form textarea {
  padding: 9px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text); font-size: .9rem; font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237D8590' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6, 182, 212, .12); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
/* Force dark background on native select dropdowns (Windows) */
select option { background: #1e293b; color: #e6edf3; }
select option:checked { background: var(--brand); color: #fff; }
.form-row { display: flex; justify-content: space-between; align-items: center; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-inline label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.form-inline input, .form-inline select {
  padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text); font-size: .9rem; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-inline select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237D8590' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.form-inline input:focus, .form-inline select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6, 182, 212, .12); }
.form-inline input::placeholder { color: var(--muted); }
.link-muted { color: var(--muted); font-size: .85rem; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-top: 40px; }

/* ---------- Alerts ---------- */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .88rem; display: flex; align-items: center; gap: 8px; border-width: 1px; border-style: solid; }
.alert-error { background: rgba(248, 81, 73, .06); color: var(--danger); border-color: rgba(248, 81, 73, .2); }
.alert-success { background: rgba(63, 185, 80, .06); color: var(--success); border-color: rgba(63, 185, 80, .2); }

/* ---------- Auth pages ---------- */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: stretch; padding: 0; background: var(--bg-soft); }
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; min-height: calc(100vh - 60px); border-radius: 0; overflow: hidden; background: var(--bg); }
.auth-aside { position: relative; background: var(--grad); color: #fff; padding: 48px 40px; display: flex; align-items: center; overflow: hidden; }
.auth-aside-inner { position: relative; z-index: 1; width: 100%; max-width: 380px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: #fff; margin-bottom: 36px; }
.auth-logo .accent { color: rgba(255,255,255,.7); }
.auth-logo svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
.auth-quote { font-size: 1.85rem; font-weight: 800; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.auth-quote-sub { font-size: 1rem; opacity: .92; margin: 0 0 32px; line-height: 1.55; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-points li { display: flex; align-items: center; gap: 14px; font-size: .95rem; opacity: .95; }
.auth-points li > span { flex: 0 0 auto; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15); backdrop-filter: blur(4px); }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .3; pointer-events: none; z-index: 0; }
.auth-blob.a1 { width: 220px; height: 220px; background: rgba(255,255,255,.25); top: -70px; right: -50px; }
.auth-blob.a2 { width: 180px; height: 180px; background: rgba(6,182,212,.3); bottom: -50px; left: -40px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-card { background: transparent; border: 0; box-shadow: none; margin: 0; width: 100%; max-width: 360px; padding: 0; animation: card-in .5s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
/* Auth field stagger */
.auth-form .field:nth-of-type(1) { animation: field-in .5s var(--ease) .1s both; }
.auth-form .field:nth-of-type(2) { animation: field-in .5s var(--ease) .2s both; }
@keyframes field-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
/* Auth button slide-in */
.auth-form .btn-primary { animation: btn-slide-in .5s var(--ease) .35s both; }
@keyframes btn-slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Auth logo pulse */
.auth-logo svg { animation: auth-logo-glow 3s ease-in-out infinite; }
@keyframes auth-logo-glow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
  50% { filter: drop-shadow(0 2px 16px rgba(6,182,212,.4)); }
}
/* Auth points stagger */
.auth-points li { animation: point-in .5s var(--ease) both; }
.auth-points li:nth-child(1) { animation-delay: .3s; }
.auth-points li:nth-child(2) { animation-delay: .4s; }
.auth-points li:nth-child(3) { animation-delay: .5s; }
@keyframes point-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: .95; transform: none; } }
/* Loading state for submit button */
.btn-loading { pointer-events: none; position: relative; overflow: hidden; }
.btn-loading::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }
.auth-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 24px; font-size: .9rem; }
.auth-form { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; transition: color .15s var(--ease); }
.input-wrap input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text); font-size: .9rem; font-family: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); -webkit-appearance: none; appearance: none; }
.input-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6, 182, 212, .12); }
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap:focus-within .input-ic { color: var(--brand); }
.toggle-pass { position: absolute; right: 10px; background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 4px; opacity: .5; transition: opacity .15s var(--ease); }
.toggle-pass:hover { opacity: 1; }
.auth-form .form-row { justify-content: flex-end; margin-top: -4px; }
.auth-form .btn-primary { margin-top: 4px; }
.auth-alt { text-align: center; color: var(--muted); font-size: .88rem; margin: 20px 0 0; }
.auth-alt a { font-weight: 600; }
.pw-strength { margin-top: 6px; }
.pw-bar { height: 3px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.pw-bar span { display: block; height: 100%; width: 0; background: var(--danger); border-radius: 999px; transition: width .3s var(--ease), background .3s var(--ease); }
.pw-bar.weak span { width: 33%; background: var(--danger); }
.pw-bar.medium span { width: 66%; background: var(--warn); }
.pw-bar.strong span { width: 100%; background: var(--success); }
.pw-strength small { color: var(--muted); font-size: .76rem; }
.auth-success { text-align: center; padding: 16px 0; }
.auth-success-ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; box-shadow: 0 8px 24px rgba(63, 185, 80, .3); animation: pop .4s var(--ease-bounce) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.auth-success p { color: var(--text-soft); margin: 0 0 20px; }

/* ---------- Panel ---------- */
.panel { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
body.sidebar-collapsed .panel { grid-template-columns: 64px 1fr; }
body.sidebar-collapsed .panel-sidebar .panel-brand span,
body.sidebar-collapsed .panel-sidebar .panel-brand-tag,
body.sidebar-collapsed .panel-sidebar .panel-user,
body.sidebar-collapsed .panel-sidebar .panel-nav-label,
body.sidebar-collapsed .panel-sidebar .panel-nav a span,
body.sidebar-collapsed .panel-sidebar .panel-nav-foot { display: none; }
body.sidebar-collapsed .panel-sidebar .panel-nav a { text-align: center; padding: 10px; }
body.sidebar-collapsed .panel-sidebar .panel-brand { justify-content: center; }
.sidebar-toggle { background: var(--bg-tint); border: 1px solid var(--border); color: var(--text-soft); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: none; align-items: center; justify-content: center; transition: all .15s var(--ease); margin-bottom: 12px; font-size: .9rem; }
.sidebar-toggle:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 860px) { .sidebar-toggle { display: inline-flex; } }
.panel-sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; display: flex; flex-direction: column; transition: width .2s var(--ease); }
.panel-sidebar::-webkit-scrollbar { width: 4px; }
.panel-sidebar::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }
.admin-sidebar { background: var(--sidebar-bg); }
[data-theme="dark"] .admin-sidebar { background: var(--sidebar-bg); }
.panel-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--brand); padding: 0 4px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.panel-brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--grad-soft); }
.panel-brand-icon.admin { background: rgba(6, 182, 212, .12); }
.panel-brand .accent { color: var(--accent); }
.panel-brand-tag { margin-left: auto; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; background: var(--bg-tint); color: var(--muted); }
.panel-brand-tag.admin { background: var(--brand); color: #fff; }
.panel-user { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.panel-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.panel-avatar.admin { background: var(--accent); }
.panel-name { font-weight: 600; font-size: .88rem; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a {
  padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: .88rem; font-weight: 500;
  transition: background .12s var(--ease), color .12s var(--ease); position: relative;
  display: flex; align-items: center; gap: 10px;
}
.panel-nav a .nav-ic { font-size: 1.1rem; flex: 0 0 auto; opacity: .6; transition: opacity .15s var(--ease); }
.panel-nav a:hover { background: var(--sidebar-hover); color: var(--brand); }
.panel-nav a:hover .nav-ic { opacity: 1; }
.panel-nav a.active { background: var(--sidebar-active); color: var(--brand); font-weight: 600; }
.panel-nav a.active .nav-ic { opacity: 1; }
.panel-nav a.active:before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--brand); border-radius: 0 2px 2px 0; }
.panel-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.panel-nav-group { margin-bottom: 10px; }
.panel-nav-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }
.panel-content { padding: 28px 32px; }
.panel-title { margin: 0 0 20px; font-size: 1.45rem; letter-spacing: -0.02em; font-weight: 700; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-head .panel-title { margin: 0; }

/* ---------- Cards / stats ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  margin-bottom: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--border-soft); box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card .big { font-size: 1.1rem; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px;
  position: relative; overflow: hidden;
  transition: border-color .2s var(--ease);
}
.stat:hover { border-color: var(--border-soft); }
.stat-label { color: var(--muted); font-size: .78rem; margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
.table th { background: var(--bg-soft); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: var(--bg-tint); }
.table tr:last-child td { border-bottom: none; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 4px 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; transition: none; border: 1px solid transparent; }
.badge:hover { transform: none; }
.badge-active { background: rgba(63, 185, 80, .1); color: var(--success); border-color: rgba(63, 185, 80, .2); }
.badge-suspended, .badge-past_due { background: rgba(248, 81, 73, .08); color: var(--danger); border-color: rgba(248, 81, 73, .2); }
.badge-cancelled, .badge-expired { background: var(--bg-tint); color: var(--muted); border-color: var(--border); }
.badge-open { background: rgba(88, 166, 255, .1); color: var(--info); border-color: rgba(88, 166, 255, .2); }
.badge-answered { background: rgba(63, 185, 80, .1); color: var(--success); border-color: rgba(63, 185, 80, .2); }
.badge-closed { background: var(--bg-tint); color: var(--muted); border-color: var(--border); }
.badge-deleted { background: rgba(248, 81, 73, .08); color: var(--danger); border-color: rgba(248, 81, 73, .2); }

/* ---------- Tickets ---------- */
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ticket-msg { max-width: 80%; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--border); }
.ticket-msg.user { background: var(--bg-tint); align-self: flex-start; }
.ticket-msg.admin { background: var(--bg-card); align-self: flex-end; border-color: var(--brand); }
.ticket-author { font-weight: 600; font-size: .8rem; margin-bottom: 4px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); margin: 0 0 10px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--brand); z-index: 100; transition: width .1s linear; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: fixed; bottom: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; font-size: 17px;
  box-shadow: var(--shadow); z-index: 60;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  color: var(--text-soft);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; animation: fade-in .15s var(--ease); }
.modal-overlay.show { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); animation: modal-in .2s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: scale(.98) translateY(8px); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text); font-size: .9rem; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6, 182, 212, .12); }

/* ---------- Subscription detail ---------- */
.sub-detail { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.sub-detail-main { flex: 1; min-width: 240px; }
.sub-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Help center ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.help-item { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); text-decoration: none; }
.help-item:hover { border-color: var(--brand); background: rgba(6, 182, 212, .04); transform: translateY(-1px); }
.help-ic { font-size: 1.3rem; }

/* ---------- Danger card ---------- */
.card-danger { border-color: rgba(248, 81, 73, .25); }

/* ---------- QR section ---------- */
.qr-section { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------- Legal ---------- */
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--text-soft); }

/* ---------- Dashboard layout ---------- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.hero-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--grad-soft); border-color: transparent; position: relative; overflow: hidden;
}
.hero-upsell:after {
  content: ""; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-upsell h3 { margin: 0 0 4px; }
.hero-upsell .muted { margin: 0; }

/* ---------- KPI stat cards ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.kpi-tile:hover { border-color: var(--border-soft); transform: translateY(-2px); }
.kpi-tile .kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi-tile .kpi-ic {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex: 0 0 auto;
}
.kpi-tile .kpi-badge {
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; flex: 0 0 auto;
}
.kpi-tile .kpi-badge.ok { background: rgba(63,185,80,.1); color: var(--success); }
.kpi-tile .kpi-badge.bad { background: rgba(248,81,73,.1); color: var(--danger); }
.kpi-tile .kpi-ic.brand { background: rgba(6,182,212,.1); color: var(--brand); }
.kpi-tile .kpi-ic.green { background: rgba(16,185,129,.1); color: var(--accent); }
.kpi-tile .kpi-ic.amber { background: rgba(210,153,34,.1); color: var(--warn); }
.kpi-tile .kpi-ic.blue  { background: rgba(88,166,255,.1); color: var(--info); }
.kpi-tile .kpi-ic.red   { background: rgba(248,81,73,.1); color: var(--danger); }
.kpi-tile .kpi-label { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-tile .kpi-val { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-tile .kpi-sub { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.kpi-tile .kpi-sub.ok { color: var(--success); }
.kpi-tile .kpi-sub.warn { color: var(--warn); }
.kpi-tile .kpi-sub.bad { color: var(--danger); }

/* Finance mini */
.finance-mini { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 12px; }
.finance-mini > div { display: flex; flex-direction: column; gap: 2px; }
.finance-mini strong { font-size: 1.1rem; font-weight: 700; }
.spark { margin: 8px 0; min-height: 56px; }

/* Security mini */
.sec-mini { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
.sec-item { display: flex; align-items: center; gap: 10px; }
.sec-item strong { font-size: 1rem; font-weight: 600; }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.sec-dot.bad { background: var(--danger); }

/* Mini rows */
.bar-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.bar-row:last-child { border-bottom: none; }
.key-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: .88rem; }
.tx-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.tx-row:last-child { border-bottom: none; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .88rem; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; flex: 0 0 auto; }

/* ---------- Client connect button + charts + KPIs ---------- */
.connect-card { text-align: center; padding: 32px; }
.connect-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.connect-btn {
  width: 140px; height: 140px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: .03em;
  background: var(--grad-danger); box-shadow: 0 8px 30px rgba(248, 81, 73, .3);
  transition: all .3s var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.connect-btn.connected { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 8px 30px rgba(16, 185, 129, .3); }
.connect-btn:hover { transform: scale(1.04); }
.connect-btn:active { transform: scale(.97); }
.connect-btn.connecting { animation: pulse-ring 1.2s ease-out infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, .4), 0 8px 30px rgba(6, 182, 212, .25); }
  100% { box-shadow: 0 0 0 20px rgba(6, 182, 212, 0), 0 8px 30px rgba(6, 182, 212, .25); }
}
.connect-btn .ic { font-size: 2.2rem; line-height: 1; }
.connect-status { font-size: 1.25rem; font-weight: 800; }
.connect-sub { color: var(--muted); font-size: .88rem; }
.session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 20px; }
.session-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.session-item .label { color: var(--muted); font-size: .75rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.session-item .value { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.session-item .value.mono { font-family: 'Inter', monospace; font-size: .92rem; }
.chart-wrap { width: 100%; min-height: 180px; margin-top: 12px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.chart-legend span:before { content: ""; width: 12px; height: 3px; border-radius: 2px; }
.chart-legend .lg-cyan:before { background: #06B6D4; }
.chart-legend .lg-emerald:before { background: #10B981; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; transition: border-color .2s var(--ease); }
.kpi-card:hover { border-color: var(--border-soft); }
.kpi-card .kpi-icon { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--bg-tint); color: var(--text-soft); }
.kpi-card .kpi-label { color: var(--muted); font-size: .78rem; margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card .kpi-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.kpi-card .kpi-trend { font-size: .76rem; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.activity-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.activity-list::-webkit-scrollbar { width: 4px; }
.activity-list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; transition: background .12s var(--ease); }
.activity-item:hover { background: var(--bg-tint); }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.activity-dot.ok { background: var(--success); }
.activity-dot.warn { background: var(--warn); }
.activity-dot.bad { background: var(--danger); }
.activity-text { flex: 1; font-size: .85rem; color: var(--text-soft); }
.activity-text strong { color: var(--text); font-weight: 600; }
.activity-time { color: var(--muted); font-size: .72rem; white-space: nowrap; }

/* ---------- Client dashboard extras ---------- */
.cred-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.cred-row code { width: fit-content; }
.progress-ring { height: 5px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 1s var(--ease); }
.device-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .88rem; }
.device-ic { font-size: 1.3rem; }
.app-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.app-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; }
.app-ic { font-size: 1rem; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.ok { background: var(--success); }

.text-danger { color: var(--danger); }

/* ---------- VPN setup page ---------- */
.vpn-section { margin-bottom: 28px; }
.vpn-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.vpn-section-head h2 { font-size: 1.2rem; margin: 0 0 2px; letter-spacing: -0.01em; font-weight: 700; }
.vpn-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; box-shadow: 0 4px 12px rgba(6,182,212,.3); }
.app-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.app-download-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); text-decoration: none; color: var(--text); }
.app-download-item:hover { border-color: var(--brand); background: rgba(6, 182, 212, .04); transform: translateY(-2px); }
.app-ic-lg { font-size: 2.2rem; line-height: 1; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cred-box { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s var(--ease); }
.cred-box:hover { border-color: var(--brand); }
.cred-box .big { word-break: break-all; font-weight: 600; }
.btn-xs { padding: 3px 9px; font-size: .72rem; margin-top: 4px; }

/* server table */
.server-table-wrap { overflow-x: auto; }
.server-table th, .server-table td { white-space: nowrap; }
.server-table td:first-child { white-space: normal; }
.server-table tbody tr { transition: background .12s var(--ease); }
.server-table tbody tr:hover { background: var(--bg-tint); }
.flag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 20px; border-radius: 4px; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; margin-right: 8px; vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ping-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .76rem; font-weight: 700; }
.ping-good { background: rgba(63, 185, 80, .12); color: var(--success); }
.ping-ok { background: rgba(210, 153, 34, .12); color: var(--warn); }
.ping-high { background: rgba(248, 81, 73, .12); color: var(--danger); }
.load-bar { height: 5px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; min-width: 60px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.load-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s var(--ease); }
.proto-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.proto-chip { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--bg-tint); font-size: .66rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .02em; }
.proto-chip.wg { background: rgba(6,182,212,.1); color: var(--brand); }
.proto-chip.udp, .proto-chip.tcp { background: rgba(88,166,255,.1); color: var(--info); }
.proto-chip.ikev { background: rgba(16,185,129,.1); color: var(--accent); }
.server-table .btn-xs { margin-right: 3px; }

/* guides */
.guides-grid { display: flex; flex-direction: column; gap: 10px; }
.guide-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; transition: border-color .2s var(--ease); background: var(--bg-card); }
.guide-item:hover { border-color: var(--border-soft); }
.guide-item[open] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6,182,212,.08); }
.guide-item summary { cursor: pointer; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary:after { content: "+"; font-size: 1.2rem; color: var(--brand); transition: transform .25s var(--ease); }
.guide-item[open] summary:after { transform: rotate(45deg); }
.guide-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); animation: faq-in .2s var(--ease); }
.guide-body ol { margin: 0; padding-left: 20px; color: var(--text-soft); line-height: 1.7; font-size: .9rem; }

/* device counter */
.device-counter { margin-bottom: 12px; padding: 10px 14px; background: var(--bg-tint); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

/* Tablet landscape (1024px) — tighten nav, prep for hamburger */
@media (max-width: 1024px) {
  .container.nav { padding: 0 20px; }
  .nav { gap: 10px; height: 56px; }
  .main-nav { gap: 14px; }
  .nav-link { font-size: .84rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
}

/* Tablet portrait (900px) — hamburger menu kicks in */
@media (max-width: 900px) {
  .site-header { position: sticky; top: 0; overflow: visible; }
  .container.nav { padding: 0 16px; }
  .nav { height: 56px; flex-wrap: nowrap; padding: 0; overflow: visible; position: relative; }
  .logo { font-size: 18px; }
  .logo svg { width: 24px; height: 24px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    z-index: 48;
  }
  .main-nav.open { display: flex; animation: nav-slide-down .22s var(--ease); }

  /* Nav links section */
  .main-nav .nav-link {
    padding: 14px 16px;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 10px;
    border-bottom: none;
    transition: background .12s var(--ease), color .12s var(--ease);
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link:active {
    background: var(--bg-tint);
    color: var(--brand);
  }

  /* Divider before buttons */
  .main-nav .btn-btn-ghost,
  .main-nav > .btn-ghost { margin-top: 4px; }
  .main-nav::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
    order: 5;
  }

  /* Buttons */
  .main-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: .9rem;
    margin: 3px 0;
    border-radius: 10px;
  }

  /* Language switch */
  .main-nav .lang-switch {
    margin: 8px 4px 4px;
    align-self: stretch;
    justify-content: center;
    padding: 4px;
  }
  .main-nav .lang-switch a { padding: 6px 14px; font-size: .78rem; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
}

@keyframes nav-slide-down {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .auth-page { min-height: auto; }
  .auth-split { grid-template-columns: 1fr; min-height: auto; border-radius: 0; }
  .auth-aside { padding: 32px 24px; min-height: auto; }
  .auth-logo { margin-bottom: 16px; font-size: 20px; }
  .auth-logo svg { width: 32px; height: 32px; }
  .auth-quote { font-size: 1.4rem; margin-bottom: 8px; }
  .auth-quote-sub { font-size: .92rem; margin-bottom: 18px; }
  .auth-points { gap: 10px; }
  .auth-points li { font-size: .88rem; gap: 10px; }
  .auth-points li > span { width: 34px; height: 34px; font-size: 1.1rem; }
  .auth-blob { display: none; }
  .auth-main { padding: 32px 24px; }
}
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .panel-nav-foot { margin-top: 14px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  .section { padding: 40px 0; }
  .panel-content { padding: 20px 16px; }
}

/* ── WireGuard keys table ── */
.empty-state { border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.wg-key-row code { font-family: monospace; font-size: .78rem; }
.form-inline select { min-width: 160px; }
@media (max-width: 760px) {
  .form-inline { flex-direction: column; gap: 10px; }
  .form-inline label { width: 100%; }
  .cred-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   NEW SECTIONS — Frontend improvements (Aug 2026)
   ═══════════════════════════════════════════════════════ */

/* ---------- Stats bar ---------- */
.stats-bar {
  padding: 32px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.stats-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stats-bar-item {
  text-align: center;
  padding: 0 28px;
  flex: 1;
  min-width: 120px;
}
.stats-bar-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}
.stats-bar-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: 4px;
}
.stats-bar-divider {
  width: 1px;
  height: 40px;
  background: var(--border-soft);
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .stats-bar-grid { gap: 16px; }
  .stats-bar-divider { display: none; }
  .stats-bar-item { padding: 8px; min-width: 100px; }
  .stats-bar-num { font-size: 1.7rem; }
}

/* ---------- How it works (steps) ---------- */
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 182, 212, .3);
}
.step-ic {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 14px;
  margin-top: 6px;
}
.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}
.step-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--brand);
  opacity: .5;
  flex: 0 0 auto;
  transition: opacity .2s var(--ease);
}
.step-arrow:hover { opacity: 1; }
@media (max-width: 768px) {
  .step-arrow { display: none; }
  .step-card { max-width: none; }
}

/* ---------- Testimonial stars ---------- */
.testimonial-stars {
  color: #FBBF24;
  font-size: .9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ---------- Plan save badge ---------- */
.plan-save {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* (badge positions handled in Discount badge section below) */

/* ---------- Early Adopter pricing layout ---------- */
.plan-total { margin-bottom: 10px; }
.plan-total .price-real {
  display: inline-block; font-size: 1rem; color: var(--danger);
  text-decoration: line-through; text-decoration-color: var(--danger);
  text-decoration-thickness: 2px; margin-bottom: 6px; opacity: .8;
  font-weight: 600;
}
.plan-total .price-promo { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.plan-total .price {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plan-total .interval { font-size: .85rem; color: var(--muted); margin-left: 4px; }

.plan-billed {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  background: var(--bg-tint); border-radius: var(--radius-sm);
  padding: 8px 14px; margin-bottom: 12px; border: 1px solid var(--border);
}
.plan-billed-label { font-size: .72rem; color: var(--text-soft); }
.plan-billed-real {
  font-size: .72rem; color: var(--danger); opacity: .7;
  text-decoration: line-through; text-decoration-color: var(--danger);
}
.plan-billed-value { font-size: .82rem; font-weight: 600; color: var(--text); }

.plan-renewal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  background: rgba(6,182,212,.06); border: 1px solid rgba(6,182,212,.18);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px;
}
.plan-frozen-icon { font-size: .9rem; }
.plan-renewal-label { font-size: .75rem; color: var(--text-soft); }
.plan-renewal-value { font-size: .85rem; font-weight: 600; color: var(--brand); }
.plan-frozen-tag {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 4px;
}

/* ---------- Discount badge ---------- */
.plan-discount-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: .03em; box-shadow: 0 2px 8px rgba(248,81,73,.35);
  z-index: 3; white-space: nowrap;
}
/* Popular card: badge right, discount center, save left — no overlap */
.plan-card-popular .plan-badge { left: auto; right: 16px; top: -12px; transform: none; z-index: 2; }
.plan-card-popular .plan-save { left: 16px; right: auto; top: -12px; transform: none; z-index: 2; }
/* Non-popular: save badge right, discount center — no overlap */
.plan-save { top: -12px; z-index: 2; }
/* Add top padding so badges don't overlap h3 */
.plan-card h3 { margin-top: 10px; }

/* ---------- Promo banner with countdown ---------- */
.promo-banner {
  position: relative; max-width: 720px; margin: 0 auto 28px; text-align: center;
  background: linear-gradient(135deg, rgba(6,182,212,.1), rgba(99,102,241,.08));
  border: 1px solid rgba(6,182,212,.25); border-radius: var(--radius);
  padding: 24px 28px; overflow: hidden;
}
.promo-banner-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(6,182,212,.06), transparent 60%);
  animation: promo-glow-move 6s ease-in-out infinite;
}
@keyframes promo-glow-move {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(15%, 10%); }
}
.promo-badge {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--brand); margin-bottom: 8px;
}
.promo-badge-star { animation: star-spin 3s ease-in-out infinite; display: inline-block; }
@keyframes star-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.2); }
}
.promo-text { position: relative; font-size: .88rem; color: var(--text-soft); line-height: 1.5; margin: 0 0 16px; }

/* ---------- Countdown timer ---------- */
.promo-countdown {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.countdown-block {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; min-width: 56px;
}
.countdown-num {
  font-size: 1.5rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-label { font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.countdown-sep { font-size: 1.2rem; font-weight: 700; color: var(--border-soft); }

/* ---------- Plan card glow for popular ---------- */
.plan-card-glow {
  animation: plan-glow-pulse 3s ease-in-out infinite;
}
@keyframes plan-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(6,182,212,.12); }
  50% { box-shadow: 0 0 30px rgba(6,182,212,.25); }
}

/* ---------- Pulsing CTA button ---------- */
.btn-pulse {
  position: relative;
  animation: btn-pulse-glow 2.5s ease-in-out infinite;
}
@keyframes btn-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,.3); }
  50% { box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

/* ---------- Guarantee box ---------- */
.guarantee-box {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 620px; margin: 32px auto 0; padding: 18px 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.guarantee-icon { font-size: 1.8rem; }
.guarantee-text { text-align: left; }
.guarantee-text strong { display: block; font-size: .92rem; color: var(--text); margin-bottom: 2px; }
.guarantee-text span { font-size: .82rem; color: var(--text-soft); }

/* ---------- Final CTA banner ---------- */
.cta-banner-section {
  padding: 60px 0 80px;
}
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(6, 182, 212, .25);
}
.cta-banner-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  filter: blur(60px);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.cta-banner p {
  position: relative;
  font-size: 1.05rem;
  opacity: .92;
  margin: 0 0 28px;
}
.cta-banner .btn {
  position: relative;
  background: #fff;
  color: var(--brand-700);
  font-weight: 800;
  padding: 14px 32px;
  font-size: 1rem;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.cta-banner .btn:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
@media (max-width: 640px) {
  .cta-banner { padding: 40px 24px; border-radius: 14px; }
  .cta-banner-section { padding: 40px 0 60px; }
}

/* ---------- Footer social icons ---------- */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all .2s var(--ease);
}
.footer-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* ---------- Stagger grid for steps ---------- */
.steps-grid .step-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.steps-grid .step-card.in {
  opacity: 1;
  transform: none;
}
.steps-grid .step-card:nth-child(1) { transition-delay: .1s; }
.steps-grid .step-card:nth-child(3) { transition-delay: .2s; }
.steps-grid .step-card:nth-child(5) { transition-delay: .3s; }