/* Chat widget */
.vpn-chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: inherit; }
.vpn-chat-toggle { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #5b8cff, #8b6dff); color: #fff; border: 0; padding: 12px 18px; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 30px rgba(91,140,255,.4); font-weight: 600; }
.vpn-chat-toggle:hover { transform: translateY(-1px); }
.vpn-chat-toggle-icon { font-size: 18px; }
.vpn-chat-panel { width: 360px; max-height: 520px; background: rgba(15,17,21,0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.5); position: absolute; right: 0; bottom: 60px; }
/* The panel is display:flex, which overrides the HTML `hidden` attribute's
   default `display:none`. Without this rule the close (×) button and toggle
   set `panel.hidden = true` but the panel stays visible. Honor [hidden]. */
.vpn-chat-panel[hidden] { display: none !important; }
.vpn-chat-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.vpn-chat-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; opacity: .7; }
.vpn-chat-close:hover { opacity: 1; }
.vpn-chat-log { padding: 12px 16px; overflow-y: auto; flex: 1; min-height: 200px; max-height: 380px; display: flex; flex-direction: column; gap: 8px; }
.vpn-chat-msg { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; max-width: 85%; color: #fff; word-wrap: break-word; }
.vpn-chat-msg.bot { background: rgba(91,140,255,.15); align-self: flex-start; }
.vpn-chat-msg.user { background: rgba(255,255,255,.12); align-self: flex-end; }
.vpn-chat-msg.pending { opacity: .6; }
.vpn-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.vpn-chat-form input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; padding: 8px 12px; border-radius: 8px; }
.vpn-chat-form input:focus { outline: none; border-color: #5b8cff; }

.admin-subnav { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 24px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 24px; align-items: center; justify-content: space-between; }
.admin-subnav-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-subnav-tabs a { color: rgba(255,255,255,.7); text-decoration: none; padding: 6px 14px; border-radius: 8px; transition: background .15s, color .15s; font-size: 14px; }
.admin-subnav-tabs a.active, .admin-subnav-tabs a:hover { background: rgba(91,140,255,.15); color: #fff; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.admin-user .role-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.admin-user .role-owner    { background: rgba(34,197,94,.15);  color: #86efac; }
.admin-user .role-support  { background: rgba(91,140,255,.15); color: #c1d4ff; }
.admin-user .role-readonly { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.admin-user-email { font-family: inherit; }
.btn.xs { padding: 2px 8px; font-size: 11px; }
.inline { display: inline-block; }

/* Auth page */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: rgba(20,24,38,0.85); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 36px 32px; box-shadow: 0 25px 60px rgba(0,0,0,.4); }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { margin: 14px 0 8px; font-size: 22px; }
.auth-logo { width: 40px; height: 40px; margin: 0 auto; border-radius: 10px; background: linear-gradient(135deg, #5b8cff, #8b6dff); box-shadow: 0 10px 30px rgba(91,140,255,.4); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label span { color: rgba(255,255,255,.65); font-size: 13px; }
.auth-form input { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.auth-form input:focus { outline: none; border-color: #5b8cff; box-shadow: 0 0 0 3px rgba(91,140,255,.18); }
.auth-form .btn.lg { padding: 11px 16px; font-size: 14px; }
.auth-bootstrap { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); }
.auth-bootstrap summary { cursor: pointer; color: rgba(255,255,255,.6); font-size: 13px; }
.auth-bootstrap .small { font-size: 12px; }
.auth-bootstrap .auth-form { margin-top: 12px; }
.role-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: inline-block; }
.role-owner    { background: rgba(34,197,94,.15);  color: #86efac; }
.role-support  { background: rgba(91,140,255,.15); color: #c1d4ff; }
.role-readonly { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; }
.grid-form label.full { grid-column: 1 / -1; }
.grid-form input, .grid-form select, .grid-form textarea { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; padding: 8px 10px; border-radius: 6px; }
.grid-form span { color: rgba(255,255,255,.6); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255,255,255,.06); border-radius: 6px; color: rgba(255,255,255,.85); font-size: 13px; }
.chip-mini { padding: 2px 8px; background: rgba(91,140,255,.15); border-radius: 999px; color: rgba(255,255,255,.7); font-size: 11px; margin-right: 4px; }
.flash { padding: 12px 24px; margin: 12px 24px; border-radius: 8px; }
.flash.ok { background: rgba(34,197,94,.15); color: #86efac; }
.flash.err { background: rgba(239,68,68,.15); color: #fca5a5; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.status-pill.bad { background: rgba(239,68,68,.2); color: #fca5a5; }

:root {
  --bg: #0a0c12;
  --bg-2: #0e1119;
  --panel: #141826;
  --panel-2: #1a1f30;
  --panel-3: #232a40;
  --text: #f1f4f9;
  --muted: #99a3b8;
  --muted-2: #6c768e;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --accent: #5b8cff;
  --accent-2: #8b6dff;
  --accent-glow: rgba(91, 140, 255, 0.4);
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Animated mesh background — fixed, parallax-ish */
.bg-mesh {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(800px 500px at 80% -10%, rgba(91,140,255,0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 30%, rgba(139,109,255,0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(34,197,94,0.06), transparent 60%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 1; }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 0.85; }
}

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
.stagger-init { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.stagger-in { opacity: 1; transform: translateY(0); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #80aaff; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Consolas, monospace; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; color: var(--text); border: 1px solid var(--border); }
.muted { color: var(--muted); }
.muted.small { font-size: 11px; }
.lead { color: var(--muted); font-size: 17px; margin: 8px 0 0; max-width: 720px; line-height: 1.6; }
.small { font-size: 12px; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
h4 { font-size: 13px; font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
p { margin: 8px 0; }

/* ---- Header ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid transparent;
  background: rgba(10,12,18, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  transition: padding 0.2s, background 0.2s, border-color 0.2s;
}
.site-header.scrolled {
  padding: 10px 32px;
  background: rgba(10,12,18, 0.85);
  border-color: var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.logo-mark {
  display: block; width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.logo.small .logo-mark { width: 24px; height: 24px; }
.logo-mark .lm-cloud-float { transform-box: fill-box; transform-origin: center; animation: lm-float 5.5s ease-in-out infinite; }
@keyframes lm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
.logo-mark .lm-sweep { animation: lm-sweep 4.6s ease-in-out infinite; }
@keyframes lm-sweep {
  0%, 18%  { transform: translateX(-60px); }
  55%,100% { transform: translateX(60px); }
}
.logo-mark .lm-keyhole { transform-box: fill-box; transform-origin: center; animation: lm-glow 3.2s ease-in-out infinite; }
@keyframes lm-glow { 0%,100% { opacity: 0.92; } 50% { opacity: 0.62; } }
.logo-mark .lm-orbit { transform-box: fill-box; transform-origin: 24px 24px; animation: lm-orbit 7s linear infinite; }
@keyframes lm-orbit { 100% { transform: rotate(360deg); } }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: all 0.15s;
}
.site-header nav a:hover { color: var(--text); background: var(--panel); }
.site-header nav a.active { color: var(--text); background: var(--panel); }
.header-cta { padding: 8px 16px !important; font-size: 13px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; line-height: 1;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--panel); color: var(--text);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; color: #fff;
  box-shadow: 0 4px 14px -4px var(--accent-glow);
}
.btn.primary:hover { box-shadow: 0 6px 20px -4px var(--accent-glow); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

main { padding: 0; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 32px; max-width: 1100px; margin: 0 auto; }

/* ---- Hero ---- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 80px 32px 60px;
  align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg {
  position: absolute; inset: -100px -100px -60px -100px;
  background:
    radial-gradient(700px 400px at var(--mx, 80%) var(--my, 50%), rgba(91,140,255,0.28), transparent 60%),
    radial-gradient(500px 280px at 20% 80%, rgba(139,109,255,0.18), transparent 60%);
  pointer-events: none;
  transition: background-position 0.4s ease;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34,197,94, 0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); }
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; min-width: 5ch;
}
.typing-target::after {
  content: '|'; color: var(--accent);
  animation: blink 1s infinite;
  -webkit-text-fill-color: var(--accent);
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.hero h1 {
  font-size: 52px; line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #b6c0d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.025em;
}
.hero-sub { font-size: 18px; color: var(--muted); margin: 20px 0 28px; max-width: 560px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row {
  display: flex; gap: 18px; margin-top: 28px;
  color: var(--muted); font-size: 13px; flex-wrap: wrap;
}
.trust-row.small { margin-top: 14px; gap: 14px; font-size: 12px; }

.hero-mock {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.hero-mock.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-8px) rotate(0.3deg); }
}
.hero-mock::before {
  content: ''; position: absolute; inset: -2px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,140,255,0.4), rgba(139,109,255,0.4), transparent 60%);
  z-index: -1;
  filter: blur(20px); opacity: 0.6;
}
.signal-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-left: auto;
}
.signal-bars span {
  width: 3px; background: var(--ok); border-radius: 1px;
  animation: bar 1.4s ease-in-out infinite;
}
.signal-bars span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.signal-bars span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.signal-bars span:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.signal-bars span:nth-child(4) { height: 18px; animation-delay: 0.45s; }
@keyframes bar { 0%, 100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); transform-origin: bottom; } }
.live-stat { color: var(--accent); }
.mini-graph { margin-top: 16px; opacity: 0.85; }
.mini-graph svg { width: 100%; height: 60px; display: block; }
.window-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.window-chrome .dot { width: 12px; height: 12px; border-radius: 50%; }
.window-chrome .dot.red { background: #ff5f57; }
.window-chrome .dot.yellow { background: #febc2e; }
.window-chrome .dot.green { background: #28c940; }
.window-chrome .title { margin-left: auto; font-size: 12px; color: var(--muted); }
.window-body { padding: 24px; }
.window-status {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: 8px;
  margin-bottom: 16px;
}
.window-status .status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
}
.window-status .status-title { font-weight: 600; }
.window-status .status-sub { color: var(--muted); font-size: 12px; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.window-rows { display: flex; flex-direction: column; gap: 0; }
.window-rows .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.window-rows .row:last-child { border-bottom: 0; }
.window-rows .row span:first-child { color: var(--muted); }
.window-rows .row strong.ok { color: var(--ok); font-weight: 500; font-size: 12px; }

/* ---- Stats / counters ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
  padding: 40px 32px;
}
.stat {
  text-align: center;
  padding: 20px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s, border-color 0.2s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat-num {
  font-size: 38px; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #b6c0d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---- Logo marquee ---- */
.logo-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0 0;
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-size: 16px; font-weight: 600; color: var(--muted-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Section head ---- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .lead { margin: 12px auto 0; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(91,140,255,0.08);
  border: 1px solid rgba(91,140,255,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; }

/* ---- Workflow ---- */
.workflow {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 0;
  margin-top: 32px;
}
.wf-step {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.wf-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 50%;
  font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px -4px var(--accent-glow);
}
.wf-step h3 { margin-bottom: 6px; }
.wf-step p { color: var(--muted); font-size: 13px; margin: 0; }
.wf-line {
  flex: 0 0 24px;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  background-size: 200% 100%;
  position: relative;
}
.workflow.flowing .wf-line { animation: flow 2.5s linear infinite; }
@keyframes flow { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- Features ---- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 32px;
}
.feat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feat {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(0,0,0,0.4); }
.feat-ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91,140,255,0.15), rgba(139,109,255,0.1));
  border-radius: 10px;
  margin-bottom: 14px;
  color: var(--accent);
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* ---- Compare ---- */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  background: var(--panel-2);
  font-weight: 600; font-size: 13px;
}
.compare-table th:first-child { color: var(--muted); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.ok { color: var(--ok); font-weight: 600; font-size: 16px; }
.compare-table td.bad { color: var(--muted-2); }
.compare-table td:nth-child(2) { color: var(--accent); font-weight: 500; }

/* ---- CTA band ---- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(139,109,255,0.10));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 40px 48px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band-glow {
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 100%, rgba(91,140,255,0.4), transparent 60%);
  pointer-events: none;
  animation: glow-pan 8s ease-in-out infinite alternate;
}
@keyframes glow-pan {
  0% { transform: translateX(0); }
  100% { transform: translateX(40%); }
}
.cta-band > div, .cta-band > .cta-row { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; }

/* ---- Pricing ---- */
.page-header {
  padding: 60px 32px 20px;
  text-align: center;
  max-width: 1100px; margin: 0 auto;
}
.page-header h1 {
  font-size: 44px;
  background: linear-gradient(180deg, #fff 0%, #b6c0d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-header .lead { margin: 12px auto 0; }

.trial-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(91,140,255,0.05));
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 12px;
  padding: 18px 24px;
  max-width: 1100px; margin: 16px auto 32px;
}
.trial-name { font-size: 16px; font-weight: 600; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.plan-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.plan-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -8px var(--accent-glow);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(91,140,255,0.04) 100%);
}
.popular-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-blurb { color: var(--muted); font-size: 13px; margin: 4px 0 16px; min-height: 36px; }
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 8px 0 4px;
}
.price-amount { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price-suffix { color: var(--muted); font-size: 14px; }
.plan-tier {
  display: inline-block;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 4px;
  font-size: 11px; color: var(--muted);
  margin: 6px 0 18px;
  align-self: flex-start;
}
.plan-features { padding: 0; margin: 0 0 22px; list-style: none; flex: 1; }
.plan-features li {
  position: relative; padding-left: 22px;
  margin-bottom: 8px;
  color: var(--muted); font-size: 13px;
}
.plan-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--ok); font-weight: 700;
}
.plan-buy { display: flex; flex-direction: column; gap: 6px; }
.buy-link { width: 100%; }

/* ---- Team / Enterprise (multi-seat) cards ---- */
.plan-card.team-card {
  border-color: rgba(91,140,255,0.28);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(91,140,255,0.05) 100%);
}
.plan-seats-big {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 2px 0 2px;
}
.plan-seats-big span {
  font-size: 13px; font-weight: 600; color: var(--muted);
  -webkit-text-fill-color: var(--muted); margin-left: 4px;
}

/* ---- Add-ons table ---- */
.addons-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin-top: 16px;
}
.addons-table th, .addons-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.addons-table th { background: var(--panel-2); font-weight: 600; font-size: 13px; color: var(--muted); }
.addons-table tr:last-child td { border-bottom: 0; }
.addons-table td:last-child { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- FAQ ---- */
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.faq details:hover { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; font-weight: 600;
  list-style: none; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 4px; font-size: 14px; line-height: 1.6; }

/* ---- Checkout ---- */
.checkout-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
  max-width: 1100px; margin: 0 auto;
  padding: 60px 32px;
  min-width: 0;
}
.ck-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  height: fit-content;
  position: sticky; top: 88px;
  min-width: 0;
}
.ck-summary h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.ck-rows { display: flex; flex-direction: column; gap: 0; }
.ck-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  min-width: 0;
}
.ck-row:last-of-type { border-bottom: 0; }
.ck-row > *:first-child { color: var(--muted); flex: 0 0 auto; }
.ck-row > *:nth-child(2) {
  flex: 1 1 auto; min-width: 0;
  text-align: right;
  word-break: break-word; overflow-wrap: anywhere;
}
.ck-row > *:nth-child(2) code { display: inline-block; margin: 2px 0 2px 4px; }
.ck-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 18px;
  border-top: 1px solid var(--border-strong);
  font-size: 14px;
}
.ck-total-amount { font-size: 26px; font-weight: 700; }
.ck-meta { font-size: 12px; margin-top: 12px; }

.ck-form-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  min-width: 0;
}
.ck-form-wrap h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 20px; }
.ck-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ck-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-field input, .ck-field select { width: 100%; min-width: 0; }
.ck-field span { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.ck-field input, .ck-field select, .card-form input, .card-form select {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px; border-radius: 8px;
  font-size: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ck-field input:focus, .card-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,0.18); }
.ck-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.ck-row-two .ck-field { min-width: 0; }
.card-block {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin: 6px 0 8px;
  background: var(--bg-2);
  min-width: 0;
}
.card-block legend { padding: 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.demo-tag { background: rgba(245,158,11,0.15); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-size: 10px; margin-left: 6px; letter-spacing: 0; text-transform: none; }

.card-visual {
  background: linear-gradient(135deg, #232938 0%, #161922 100%);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 0; max-width: 100%;
}
.card-number { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-visual::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  border-radius: 50%;
}
.card-brand { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.95); }
.card-number { font-size: 18px; letter-spacing: 0.18em; color: #fff; margin-top: auto; }
.card-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.card-row > div { font-size: 13px; color: rgba(255,255,255,0.95); }
.msg.err { color: var(--err); font-size: 13px; }

/* ---- Receipt / success ---- */
.success {
  max-width: 640px; margin: 80px auto;
  text-align: center;
  padding: 0 32px;
}
.success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--ok), #16a34a);
  border-radius: 50%;
  font-size: 38px; color: #fff; font-weight: 700;
  box-shadow: 0 12px 32px -8px rgba(34,197,94,0.5);
  margin-bottom: 24px;
}
.success-check.fail { background: linear-gradient(135deg, var(--err), #b91c1c); box-shadow: 0 12px 32px -8px rgba(239,68,68,0.5); }
.success h1 { font-size: 36px; }
.success .lead { margin: 12px auto 32px; }
.receipt-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.receipt-card.no-shadow { box-shadow: none; margin: 0; }
.receipt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span:first-child { color: var(--muted); }
.receipt-row code.big {
  font-size: 17px; font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--panel-2);
  padding: 6px 12px;
  user-select: all;
  border: 1px solid var(--accent);
  color: var(--text);
}
.next-steps { text-align: left; margin: 28px 0; padding: 20px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.next-steps h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.next-steps ol { color: var(--muted); padding-left: 22px; line-height: 1.8; }
.next-steps ol li { margin-bottom: 4px; }

/* ---- Account / forms ---- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 16px auto; max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-form {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin: 0 auto 16px; max-width: 520px;
  display: flex; flex-direction: column; gap: 14px;
}
.card-form h3 { margin-bottom: 8px; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.status-pill.live { background: rgba(34,197,94,0.15); color: var(--ok); }
.status-pill.demo { background: rgba(245,158,11,0.15); color: var(--warn); }
.status-pill.trial { background: rgba(245,158,11,0.15); color: var(--warn); }
.status-pill.bad { background: rgba(239,68,68,0.15); color: var(--err); }

/* ---- Downloads ---- */
.downloads-list { list-style: none; padding: 0; max-width: 800px; margin: 0 auto; }
.dl-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  margin-bottom: 10px;
}
.dl-icon {
  background: var(--panel-2); border-radius: 8px;
  padding: 6px 8px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.dl-meta { display: flex; flex-direction: column; gap: 4px; }
.dl-meta strong { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.dl-meta .muted { font-size: 12px; }

/* ---- Admin ---- */
.admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; padding: 0 32px; }
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } }

.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; padding: 0 32px; margin-bottom: 24px;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px;
  position: relative; overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-card .stat-num {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #b6c0d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: center; gap: 8px;
}
.stat-card .stat-num .dot.live {
  -webkit-text-fill-color: var(--ok); color: var(--ok);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); display: inline-block;
  box-shadow: 0 0 0 0 rgba(34,197,94, 0.5);
  animation: pulse-dot 2s infinite;
}
.stat-card .stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; }

.dash-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 0 32px; margin-bottom: 24px;
}
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .bar-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar { background: var(--panel-2); height: 8px; border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.bar-row .bar-fill.alt { background: linear-gradient(90deg, var(--ok), var(--accent)); }
.bar-row .bar-count { font-family: 'JetBrains Mono', monospace; font-weight: 600; text-align: right; }

.dash-table { font-size: 12px; }
.dash-table code { font-size: 11px; }

.dash-form { padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.dash-form:first-of-type { border-top: 0; padding-top: 0; }
.dash-form h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .dash-cols { grid-template-columns: 1fr; padding: 0 16px; }
  .dash-stats { padding: 0 16px; }
}

/* ---- Guide ---- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 0 32px; }
.guide-grid .card ol { color: var(--muted); padding-left: 22px; }
.guide-grid .card ol li { margin: 6px 0; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 80px;
  padding: 48px 32px 24px;
  border-top: 1px solid var(--border);
}
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto 32px;
}
.footer-cols h4 { color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* ---- Media ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px; }
  .hero h1 { font-size: 32px; }
  .checkout-grid { grid-template-columns: 1fr; padding: 32px 16px; gap: 16px; }
  .ck-summary { position: relative; top: 0; padding: 20px; }
  .ck-form-wrap { padding: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 14px 16px; }
  .site-header nav { display: none; }
  .workflow { flex-direction: column; }
  .wf-line { width: 2px; height: 24px; flex: 0 0 24px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .stats { grid-template-columns: 1fr 1fr; padding: 32px 16px; }
  .section { padding: 60px 16px; }
  .section-head h2 { font-size: 26px; }
  .page-header { padding: 40px 16px 16px; }
  .page-header h1 { font-size: 32px; }
  .plan-grid { padding: 0 16px; gap: 14px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .addons-table { font-size: 12px; display: block; overflow-x: auto; }
  .cta-band { padding: 28px 24px; }
  .trial-banner { padding: 14px 18px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .header-cta { padding: 6px 12px !important; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- World map ---- */
.globe-body { padding: 0; position: relative; }
.world-map { display: block; width: 100%; height: auto; }
.globe-legend {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(20,24,38, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
}
.leg-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--muted); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.world-map .arc {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: arc-draw 4s ease-in-out infinite;
}
.world-map .arc.a2 { animation-delay: 0.4s; }
.world-map .arc.a3 { animation-delay: 0.8s; }
.world-map .arc.a4 { animation-delay: 1.2s; }
.world-map .arc.a5 { animation-delay: 1.6s; }
@keyframes arc-draw {
  0% { stroke-dashoffset: 200; opacity: 0; }
  20% { opacity: 1; }
  60% { stroke-dashoffset: -200; opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}
.world-map .ring {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  transform-origin: center; transform-box: fill-box;
  animation: node-pulse 2.4s ease-out infinite;
}
.world-map .node circle:first-child { filter: drop-shadow(0 0 6px currentColor); }
.world-map .node:nth-child(1) .ring { color: #5b8cff; animation-delay: 0s; }
.world-map .node:nth-child(2) .ring { color: #8b6dff; animation-delay: 0.4s; }
.world-map .node:nth-child(3) .ring { color: #22c55e; animation-delay: 0.8s; }
.world-map .node:nth-child(4) .ring { color: #f59e0b; animation-delay: 1.2s; }
.world-map .node:nth-child(5) .ring { color: #5b8cff; animation-delay: 1.6s; }
.world-map .node.home .ring { color: #fff; }
.world-map .node.home .ring.slow { animation-duration: 4s; opacity: 0.4; }
@keyframes node-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ---- Terminal section ---- */
.terminal-section { max-width: 1100px; margin: 0 auto; padding: 80px 32px; }
.terminal {
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(91,140,255,0.06);
}
.terminal-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.terminal-chrome .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-chrome .dot.red { background: #ff5f57; }
.terminal-chrome .dot.yellow { background: #febc2e; }
.terminal-chrome .dot.green { background: #28c940; }
.terminal-title { margin-left: auto; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.terminal-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 22px 24px;
  color: #d6dbe6;
}
.terminal-body .line { white-space: nowrap; overflow: hidden; }
.terminal-body .prompt { color: var(--accent); margin-right: 8px; }
.terminal-body .cmd { color: #fff; }
.terminal-body .muted { color: var(--muted-2); }
.terminal-body .ok { color: var(--ok); }
.terminal-body .accent { color: var(--accent); word-break: break-all; white-space: normal; }
.terminal-body .cursor { background: var(--accent); color: var(--accent); animation: blink 1s steps(2) infinite; }

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 32px;
}
.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.testimonial::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(280px 200px at var(--mx, 50%) var(--my, 50%), rgba(91,140,255,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.testimonial:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.testimonial:hover::before { opacity: 1; }
.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #d6dbe6;
  font-style: italic;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.testimonial figcaption strong { display: block; }
.testimonial figcaption .muted { font-size: 11px; }

/* ---- Security section ---- */
.security-section { max-width: 1100px; margin: 0 auto; }
.security-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.security-grid h2 { font-size: 32px; margin: 12px 0 18px; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 28px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--ok), #16a34a);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.check-list li strong { color: var(--text); }
.security-visual {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  position: relative;
  padding: 30px 0;
}
.security-visual .layer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  width: 100%;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.security-visual .layer.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--panel) 0%, rgba(91,140,255,0.08) 100%);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -8px var(--accent-glow);
}
.security-visual .link {
  width: 2px; height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  background-size: 100% 200%;
  animation: link-flow 2s linear infinite;
}
@keyframes link-flow { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
.security-visual .aside {
  margin-top: 24px;
  font-size: 11px; color: var(--muted);
  background: var(--panel-2);
  padding: 8px 14px; border-radius: 999px;
  border: 1px dashed var(--border);
}

/* ---- Magnetic transitions ---- */
.btn.magnetic { transition: transform 0.18s ease-out, box-shadow 0.18s; }

/* ---- Billing toggle ---- */
.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin: 18px auto 0;
  position: relative;
}
.bt-opt {
  background: transparent; border: none; color: var(--muted);
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: 999px;
  position: relative; z-index: 1;
  transition: color 0.2s;
}
.bt-opt.active { color: #fff; }
.bt-pill {
  position: absolute; left: 4px; top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.bt-opt:nth-child(2).active ~ .bt-pill { transform: translateX(100%); }
.billing-toggle:has(.bt-opt:nth-child(2).active) .bt-pill { transform: translateX(100%); }
.bt-save { display: inline-block; margin-left: 6px; font-size: 10px; padding: 2px 6px; background: rgba(255,255,255,0.18); border-radius: 4px; color: #fff; }
.bt-opt:not(.active) .bt-save { background: rgba(34,197,94,0.18); color: var(--ok); }

/* ---- Feature matrix ---- */
.matrix-wrap { overflow-x: auto; max-width: 1100px; margin: 0 auto; }
.feature-matrix {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin-top: 24px;
  font-size: 14px;
}
.feature-matrix th, .feature-matrix td {
  padding: 14px 18px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.feature-matrix th { background: var(--panel-2); font-weight: 600; font-size: 13px; color: var(--muted); }
.feature-matrix th:first-child, .feature-matrix td:first-child { text-align: left; }
.feature-matrix th.popular-col { background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(139,109,255,0.08)); color: var(--text); }
.feature-matrix td.popular-col { background: rgba(91,140,255,0.04); }
.feature-matrix td.ok { color: var(--ok); font-size: 16px; font-weight: 600; }
.feature-matrix td.bad { color: var(--muted-2); }
.feature-matrix tr:last-child td { border-bottom: 0; }

/* ---- Section padding helper ---- */
.testimonial-grid + .section, .testimonials + .section { margin-top: 0; }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 24px; }
  .terminal-body { font-size: 11px; padding: 16px 16px; }
  .terminal-body .line { white-space: normal; }
}

/* ============================================================
   End-user portal — bell, gift banner, message list
   ============================================================ */
.portal-wrap { padding: 60px 24px; max-width: 980px; margin: 0 auto; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.portal-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.portal-actions { display: flex; gap: 10px; align-items: center; }
.portal-tip { margin-top: 14px; }

/* Bell with unread badge */
.portal-bell {
  position: relative; display: inline-flex; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  align-items: center; justify-content: center; text-decoration: none;
  color: #b8c1d4; font-size: 18px; transition: background 0.15s, transform 0.15s;
}
.portal-bell:hover { background: rgba(255,255,255,0.06); transform: scale(1.05); }
.portal-bell-badge {
  position: absolute; top: -6px; right: -6px; background: #ef4444; color: white;
  font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
  animation: portal-bell-pulse 1.4s ease-out infinite;
}
@keyframes portal-bell-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Gift banner — celebratory, slides in */
.portal-gift-banner {
  position: relative; max-width: 980px; margin: 24px auto 0;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: white; border-radius: 14px; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.35);
  animation: gift-slide-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
@keyframes gift-slide-in {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.portal-gift-banner.portal-gift-dismissed {
  animation: gift-slide-out 0.35s ease-in forwards;
}
@keyframes gift-slide-out {
  from { transform: translateY(0);    opacity: 1; max-height: 200px; padding-top: 20px; padding-bottom: 20px; margin-top: 24px; }
  to   { transform: translateY(-30px); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; }
}
.portal-gift-headline { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.portal-gift-subject { font-size: 14px; opacity: 0.9; margin-top: 4px; }
.portal-gift-text { flex: 1; }
.portal-gift-actions { display: flex; gap: 10px; }
.portal-gift-actions .btn.primary { background: rgba(255,255,255,0.95); color: #1f2937; border-color: transparent; }
.portal-gift-actions .btn.primary:hover { background: white; }
.portal-gift-actions .btn.ghost { color: white; border-color: rgba(255,255,255,0.4); }
.portal-gift-actions .btn.ghost:hover { background: rgba(255,255,255,0.1); }
/* Tiny confetti dots */
.portal-gift-confetti { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; }
.portal-gift-confetti::before, .portal-gift-confetti::after {
  content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: white;
  animation: gift-confetti 1.8s ease-out infinite;
}
.portal-gift-confetti::before { top: 30%; left: 10%; animation-delay: 0s; }
.portal-gift-confetti::after  { top: 60%; left: 88%; background: #fef3c7; animation-delay: 0.4s; }
@keyframes gift-confetti {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(40px) scale(1); opacity: 0; }
}

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state h2 { font-size: 20px; font-weight: 500; margin: 0 0 8px; }

/* Message list */
.msg-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.msg-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 18px 22px; transition: background 0.2s, border-color 0.2s;
}
.msg-card.msg-unread { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.3); }
.msg-card.msg-read { opacity: 0.78; }
.msg-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.msg-icon { font-size: 22px; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); }
.msg-meta { flex: 1; }
.msg-subject { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.msg-sub { margin-top: 2px; }
.msg-unread-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
  animation: msg-dot-pulse 2s ease-in-out infinite;
}
@keyframes msg-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}
.msg-body {
  margin: 0; padding: 12px 16px; background: rgba(0,0,0,0.25); border-radius: 8px;
  font-family: inherit; font-size: 14px; line-height: 1.55; color: #d4dae5;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg-footer { margin-top: 12px; }
.btn.xs { padding: 4px 12px; font-size: 12px; }

/* Portal: license activity timeline */
.portal-activity { margin: 48px 0 32px; }
.portal-activity h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.act-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.act-timeline::before { content: ''; position: absolute; left: 19px; top: 16px; bottom: 16px; width: 1px; background: rgba(255,255,255,0.1); }
.act-item { display: flex; gap: 16px; padding: 12px 0; align-items: flex-start; position: relative; }
.act-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(124, 58, 237, 0.15); color: #c4a8ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; position: relative; z-index: 1;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.act-body { flex: 1; padding-top: 2px; }
.act-summary { font-size: 14px; color: #d4dae5; line-height: 1.5; }
.act-summary strong { color: #fff; font-weight: 600; }
.act-meta { margin-top: 4px; }
