/* ============================================================
   ForexVPS Pro — Component & Page Styles
   ============================================================ */

/* ---------- Ambient page background ---------- */
body {
  position: relative;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: -18vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 32%, color-mix(in srgb, var(--brand-500) 10%, transparent) 0, transparent 34%),
    radial-gradient(circle at 76% 68%, color-mix(in srgb, var(--accent-500) 8%, transparent) 0, transparent 36%);
  opacity: .65;
  animation: bg-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-4); position: relative; }
.nav-dash .nav-inner { max-width: 100%; padding: 0 var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: var(--fw-bold); font-size: var(--fs-lg); white-space: nowrap; flex-shrink: 0; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: flex; align-items: center; justify-content: center;
  color: #04140E; font-weight: var(--fw-black);
  box-shadow: 0 4px 16px rgba(0,229,168,.3);
  flex-shrink: 0;
}
.brand-name { letter-spacing: -.02em; white-space: nowrap; }
.brand-name span { color: var(--brand-500); }

.nav-links { display: flex; gap: var(--s-1); align-items: center; flex-wrap: nowrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover { color: var(--text-1); background: var(--bg-subtle); }
.nav-link.active { color: var(--brand-500); background: rgba(0,229,168,.08); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { color: var(--brand-500); border-color: var(--brand-500); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.lang-toggle {
  height: 40px;
  padding: 3px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  transition: all var(--t-fast) var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}
.lang-toggle:hover {
  border-color: var(--brand-500);
}
.lang-toggle .lang-opt {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-3);
  line-height: 1.2;
  transition: all var(--t-fast) var(--ease);
}
.lang-toggle .lang-opt.active {
  background: var(--brand-500);
  color: #04140E;
  box-shadow: 0 2px 8px rgba(0,229,168,.25);
}

.nav-toggle { display: none; }
.nav-mobile-extra { display: none; }
.nav-mobile-group { display: none; }
@media (max-width: 960px) {
  .nav-inner { gap: var(--s-2); }
  .brand { font-size: var(--fs-base); gap: var(--s-2); }
  .brand-logo { width: 32px; height: 32px; font-size: var(--fs-sm); }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-top: var(--s-2);
    padding-top: var(--s-3);
    border-top: 1px solid var(--border);
  }
  .nav-mobile-group {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    margin-top: var(--s-2);
    padding-top: var(--s-2);
    border-top: 1px solid var(--border);
  }
  .nav-group-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    font-weight: var(--fw-semibold);
    padding: var(--s-1) var(--s-4);
  }
  .nav-toggle { display: flex; }
  .nav-actions { gap: var(--s-2); }
  .nav-actions .btn:not(.theme-toggle):not(.btn-icon) { display: none; }
}
@media (max-width: 640px) {
  .nav-inner.container,
  .nav-dash .nav-inner { padding-left: var(--s-3); padding-right: var(--s-3); }
  .nav-actions { gap: var(--s-1); }
  .brand { font-size: var(--fs-sm); }
  .theme-toggle,
  .lang-toggle,
  .nav-toggle { min-width: 40px; min-height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 80% -10%, rgba(79,140,255,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(0,229,168,.14), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: var(--s-7); align-items: center;
  position: relative;
}
.hero h1 {
  font-size: var(--fs-4xl); font-weight: var(--fw-black);
  line-height: 1.05; letter-spacing: -.025em;
  margin: var(--s-5) 0 var(--s-4);
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: var(--fs-md); color: var(--text-2); max-width: 540px; margin-bottom: var(--s-6); }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--s-7); margin-top: var(--s-7); flex-wrap: wrap; }
.hero-stat .v { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--text-1); }
.hero-stat .l { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }

/* Hero terminal mockup */
.hero-terminal {
  background: #0B1220;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: #d6e1ff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.hero-terminal-header { display: flex; align-items: center; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: var(--s-4); }
.hero-terminal-header .dots { display: flex; gap: 6px; }
.hero-terminal-header .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.hero-terminal-header .dots span:nth-child(1) { background: #ff5f57; }
.hero-terminal-header .dots span:nth-child(2) { background: #febc2e; }
.hero-terminal-header .dots span:nth-child(3) { background: #28c840; }
.hero-terminal-header .title { color: #7A8AA8; font-size: var(--fs-xs); margin-left: var(--s-2); }
.hero-terminal pre { margin: 0; line-height: 1.7; overflow-x: auto; }
.hero-terminal .prompt { color: var(--brand-500); }
.hero-terminal .ok { color: #28c840; }
.hero-terminal .warn { color: #febc2e; }

@media (max-width: 960px) {
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-terminal { order: 1; }
}
@media (max-width: 640px) {
  .hero { padding: var(--s-5) 0 var(--s-5); }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2rem); line-height: 1.18; margin: var(--s-3) 0; }
  .hero-lead { font-size: var(--fs-base); margin-bottom: var(--s-4); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin-top: var(--s-5);
  }
  .hero-terminal { padding: var(--s-4); font-size: 12px; }
  .trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    padding: var(--s-4) 0;
  }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust-icon { width: 24px; height: 24px; color: var(--accent-500); flex-shrink: 0; margin-bottom: 2px; }
.trust-item .v { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--brand-500); }
.trust-item .l { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-sans); }

.social-proof-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
.social-proof-bar .trust-item { min-width: 0; text-align: center; }
.social-proof-bar .trust-item .l { text-align: center; word-break: break-word; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .social-proof-bar { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (max-width: 640px) {
  #liveSupportWidget { bottom: 72px; right: 10px; }
  #liveSupportTrigger { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  #liveSupportTrigger span { display: none; }
  #liveSupportTrigger i { font-size: 20px; }
}
.trust-visual {
  display: block;
  width: min(120px, 100%);
  height: 70px;
  margin-bottom: var(--s-2);
  overflow: visible;
  color: var(--accent-500);
}
.globe-location,
.network-node-core,
.network-node-outer,
.uptime-sweep circle,
.trust-uptime-visual > circle:last-of-type,
.support-mic { fill: var(--brand-500); }
.globe-location { filter: drop-shadow(0 0 5px var(--brand-500)); }
.trust-globe-visual .globe-location:nth-of-type(1) { animation-delay: 0s; }
.trust-globe-visual .globe-location:nth-of-type(2) { animation-delay: -.35s; }
.trust-globe-visual .globe-location:nth-of-type(3) { animation-delay: -.7s; }
.trust-globe-visual .globe-location:nth-of-type(4) { animation-delay: -1.05s; }
.trust-globe-visual .globe-location:nth-of-type(5) { animation-delay: -1.4s; }
.trust-globe-visual .globe-location:nth-of-type(6) { animation-delay: -1.75s; }
.trust-network-visual .flow-line,
.uptime-arc { stroke: var(--accent-500); }
.network-node-core { filter: drop-shadow(0 0 7px var(--brand-500)); }
.network-node-outer { fill: var(--bg-surface); stroke: var(--accent-500); stroke-width: 3; }
.trust-network-visual .network-node-outer:nth-of-type(2) { animation-delay: -.35s; }
.trust-network-visual .network-node-outer:nth-of-type(3) { animation-delay: -.8s; }
.trust-network-visual .network-node-outer:nth-of-type(4) { animation-delay: -1.25s; }
.trust-network-visual .network-node-outer:nth-of-type(5) { animation-delay: -1.7s; }
.route-packet-a { --packet-x: 39px; --packet-y: -20px; animation-duration: 1.55s; }
.route-packet-b { --packet-x: -40px; --packet-y: 21px; animation-duration: 1.8s; animation-delay: -.75s; }
.uptime-sweep {
  transform-box: view-box;
  transform-origin: 60px 35px;
  animation: stat-sweep 2.1s linear infinite;
}
.uptime-reading {
  fill: var(--text-1);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--fw-bold);
}
.support-wave {
  transform-box: fill-box;
  transform-origin: left center;
  animation: support-wave 1.8s ease-out infinite;
}
.support-wave-two { animation-delay: -.6s; }
.support-wave-three { animation-delay: -1.2s; }

@keyframes stat-sweep {
  to { transform: rotate(360deg); }
}
@keyframes support-wave {
  0% { opacity: 0; transform: translateX(-5px) scale(.72); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translateX(8px) scale(1.18); }
}

@keyframes number-breathe {
  0%, 100% { opacity: .9; text-shadow: 0 0 3px color-mix(in srgb, var(--brand-500) 18%, transparent); }
  50% { opacity: 1; text-shadow: 0 0 10px color-mix(in srgb, var(--brand-500) 42%, transparent); }
}
.social-proof-bar .trust-item .v { animation: number-breathe 3.2s ease-in-out infinite; }
.social-proof-bar .trust-item:nth-child(2) .v { animation-delay: -.8s; }
.social-proof-bar .trust-item:nth-child(3) .v { animation-delay: -1.6s; }
.social-proof-bar .trust-item:nth-child(4) .v { animation-delay: -2.4s; }

@property --risk-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes risk-border-sweep {
  to { --risk-angle: 360deg; }
}
@keyframes risk-card-breathe {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 12px color-mix(in srgb, var(--brand-500) 8%, transparent); }
  50% { box-shadow: var(--shadow-sm), 0 0 24px color-mix(in srgb, var(--brand-500) 16%, transparent); }
}
.risk-card {
  --risk-angle: 0deg;
  animation: risk-card-breathe 4.2s ease-in-out infinite;
}
.risk-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: center;
  gap: var(--s-7);
}
.risk-card-content { min-width: 0; }
.risk-visual {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  color: var(--brand-500);
}
.risk-visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.risk-protection-ring {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: protection-ring 2.6s ease-out infinite;
}
.risk-protection-ring-two {
  stroke: var(--accent-500);
  animation-delay: -1.3s;
}
.risk-flow-line {
  stroke: var(--accent-500);
  stroke-width: 2;
}
.risk-packet { fill: var(--brand-500); animation-duration: 1.7s; }
.risk-packet-left-top { --packet-x: 77px; --packet-y: 0; }
.risk-packet-right-top { --packet-x: -77px; --packet-y: 0; animation-delay: -.4s; }
.risk-packet-left-bottom { --packet-x: 77px; --packet-y: 0; animation-delay: -.8s; }
.risk-packet-right-bottom { --packet-x: -77px; --packet-y: 0; animation-delay: -1.2s; }
.risk-shield {
  fill: color-mix(in srgb, var(--brand-500) 10%, var(--bg-surface));
  stroke: var(--brand-500);
  stroke-width: 4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--brand-500) 45%, transparent));
}
.risk-server { fill: var(--bg-surface); stroke: var(--accent-500); stroke-width: 3; }
.risk-server-line { stroke: var(--border-strong); stroke-width: 2; }
.risk-server-led { fill: var(--success-500); filter: drop-shadow(0 0 5px var(--success-500)); }
.risk-server-led-two { animation-delay: -.7s; }
.risk-server-led-three { animation-delay: -1.4s; }
.risk-check {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes protection-ring {
  0% { opacity: 0; transform: scale(.72) rotate(0deg); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.28) rotate(90deg); }
}
.risk-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--risk-angle), var(--border), var(--brand-500), var(--accent-500), var(--border), var(--border));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: risk-border-sweep 6s linear infinite;
}
.risk-card .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-500) 30%, transparent);
}

@media (max-width: 768px) {
  .social-proof-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-card-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .risk-visual { max-width: 300px; }
}
@media (max-width: 420px) {
  .social-proof-bar { grid-template-columns: 1fr; }
  .trust-visual { width: 120px; }
  .risk-card { padding: var(--s-5) !important; }
}

.latency-trust .trust-bar {
  display: grid;
  grid-template-columns: minmax(118px, .85fr) repeat(6, minmax(96px, 1fr));
  gap: var(--s-3);
}
.trust-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.35;
}
.trust-live > span:last-child { display: flex; flex-direction: column; }
.trust-live strong { color: var(--brand-500); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; }
.trust-live-dot,
.trust-value-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}
.trust-live-dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 14%, transparent); }
.trust-value-row { display: inline-flex; align-items: center; gap: 6px; }
.trust-value-dot { width: 5px; height: 5px; animation-delay: var(--trust-delay, 0s); }
.trust-spark {
  height: 12px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}
.trust-spark i {
  display: block;
  width: 3px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--brand-500) 70%, var(--accent-500));
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.trust-spark i:nth-child(1) { height: 5px; animation-delay: -.2s; }
.trust-spark i:nth-child(2) { height: 9px; animation-delay: -.6s; }
.trust-spark i:nth-child(3) { height: 7px; animation-delay: -1s; }
.trust-spark i:nth-child(4) { height: 12px; animation-delay: -1.4s; }
.trust-spark i:nth-child(5) { height: 8px; animation-delay: -1.7s; }
.latency-trust .trust-item:nth-child(3n) { --trust-delay: -.7s; }
.latency-trust .trust-item:nth-child(3n + 1) { --trust-delay: -1.3s; }
.trust-caption {
  margin: var(--s-3) 0 0;
  text-align: center;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

@media (max-width: 960px) {
  .latency-trust .trust-bar { grid-template-columns: repeat(3, 1fr); }
  .latency-trust .trust-live { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .latency-trust .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .latency-trust .trust-item .l { font-size: 9px; letter-spacing: .04em; text-align: center; }
}

/* ---------- Feature card ---------- */
.feature-card { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,168,.1);
  color: var(--brand-500);
}
.feature-icon.accent { background: rgba(79,140,255,.1); color: var(--accent-500); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: var(--fs-lg); }
.feature-card p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; line-height: var(--lh-base); }
.feature-visual {
  width: 100%;
  height: 96px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: var(--s-1) 0;
  border: 1px solid color-mix(in srgb, var(--brand-500) 18%, var(--border));
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 6%, transparent), color-mix(in srgb, var(--accent-500) 5%, transparent)),
    var(--bg-subtle);
}
.feature-visual svg { display: block; width: 100%; height: 100%; max-width: 320px; }
.feature-latency-visual,
.feature-cpu-visual,
.feature-support-visual { border-color: color-mix(in srgb, var(--accent-500) 22%, var(--border)); }
.ai-chat-visual,
.ai-data-visual,
.ai-process-visual,
.ai-storage-visual { border-color: color-mix(in srgb, var(--accent-500) 22%, var(--border)); }
.ai-llm-visual,
.ai-uptime-visual { border-color: color-mix(in srgb, var(--brand-500) 22%, var(--border)); }
.ai-data-visual .packet,
.ai-storage-visual .packet {
  fill: var(--brand-500);
  filter: drop-shadow(0 0 4px var(--brand-500));
}
.feature-latency-visual .packet {
  fill: var(--accent-500);
  filter: drop-shadow(0 0 4px var(--accent-500));
}
.feature-cpu-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: feature-bar-breathe 2.5s ease-in-out infinite;
}

@keyframes feature-bar-breathe {
  0%, 100% { transform: scaleY(.76); opacity: .72; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Dual-use animated cards ---------- */
.dual-visual {
  width: 100%;
  max-height: 180px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background:
    linear-gradient(color-mix(in srgb, var(--text-3) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-3) 6%, transparent) 1px, transparent 1px),
    var(--bg-subtle);
  background-size: 24px 24px;
}
.dual-visual svg { display: block; width: 100%; height: auto; max-height: 180px; }
.mini-live-badge {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--brand-500) 34%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  color: var(--brand-500);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
}
.mini-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
.candlestick {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: candle-in 3.4s var(--ease) infinite;
}
.dual-chart-visual .dual-trend {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: trend-draw 3.4s var(--ease) infinite;
}
.dual-network-visual .flow-line { animation-duration: 1.8s; }

/* ---------- Distinct solution visuals ---------- */
.solution-card { --solution-accent: var(--brand-500); }
.solution-card.solution-power { --solution-accent: var(--warn-500); }
.solution-card.solution-route { --solution-accent: var(--accent-500); }
.solution-card.solution-deploy { --solution-accent: color-mix(in srgb, var(--accent-500) 58%, var(--danger-500)); }
.solution-card .solution-icon {
  color: var(--solution-accent);
  background: color-mix(in srgb, var(--solution-accent) 12%, transparent);
}
.solution-visual {
  width: 100%;
  height: 90px;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--solution-accent) 22%, var(--border));
  border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--solution-accent) 8%, transparent), var(--bg-subtle));
}
.solution-visual svg { display: block; width: 100%; height: 100%; }
.solution-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 7px var(--warn-500));
  animation-duration: 1.8s;
}
.solution-route-visual .packet {
  fill: var(--accent-500);
  filter: drop-shadow(0 0 5px var(--accent-500));
}
.solution-latency-tag {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  color: var(--accent-500);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-bold);
}
.solution-deploy-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-4);
}
.solution-terminal-line { display: flex; gap: 5px; }
.solution-terminal-line span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--solution-accent);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.solution-terminal-line span:nth-child(2) { animation-delay: -.5s; }
.solution-terminal-line span:nth-child(3) { animation-delay: -1s; }
.solution-progress {
  height: 9px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
}
.solution-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--solution-accent), color-mix(in srgb, var(--solution-accent) 45%, var(--brand-500)), var(--solution-accent));
}
.solution-progress-fill.shimmer {
  animation: deploy-fill 3.4s var(--ease) infinite, bar-shimmer 1.8s linear infinite;
}
.solution-online {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--solution-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
}
.solution-online span { width: 7px; height: 7px; border-radius: 50%; background: var(--solution-accent); }

@media (max-width: 640px) {
  .dual-visual { max-height: 150px; }
  .dual-visual svg { max-height: 150px; }
  .solution-visual { height: 82px; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); align-items: stretch; }
.pricing-card {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  position: relative;
  min-width: 0; max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base) var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-500); }
.pricing-card.featured {
  border-color: var(--brand-500);
  background: linear-gradient(180deg, rgba(0,229,168,.04) 0%, var(--bg-surface) 50%);
  box-shadow: var(--shadow-glow);
}
.pricing-card .plan-name { font-size: var(--fs-sm); color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-weight: var(--fw-semibold); }
.pricing-card .plan-price { font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: var(--fw-black); margin: var(--s-2) 0; letter-spacing: -.02em; }
.pricing-card .plan-price .currency { font-size: var(--fs-lg); color: var(--text-3); vertical-align: top; margin-right: 2px; }
.pricing-card .plan-price .period { font-size: var(--fs-sm); color: var(--text-3); font-weight: var(--fw-medium); font-family: var(--font-sans); }
.pricing-card .plan-tagline { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--s-5); min-height: 40px; }
.plan-features { display: flex; flex-direction: column; gap: var(--s-3); }
.plan-features li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.plan-features li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand-500); margin-top: 2px; }
.pricing-card .plan-features { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-5) 0; flex: 1; }
.pricing-card .plan-features li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.pricing-card .plan-features li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand-500); margin-top: 2px; }
.pricing-card .featured-ribbon {
  position: absolute; top: -1px; right: var(--s-5);
  background: var(--brand-500); color: #04140E;
  padding: 4px var(--s-3); border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.pricing-card .specs-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  padding: var(--s-4); background: var(--bg-subtle); border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.specs-mini .spec { display: flex; flex-direction: row; align-items: baseline; gap: var(--s-2); white-space: normal; min-width: 0; }
.specs-mini .spec .k { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.specs-mini .spec .v { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: var(--fs-base); }
@media (max-width: 640px) {
  .specs-mini { grid-template-columns: 1fr; }
  .specs-mini .spec { grid-column: span 1 !important; }
}

.pricing-toggle {
  display: inline-flex; padding: 4px; background: var(--bg-subtle); border-radius: var(--r-pill); border: 1px solid var(--border);
}
.pricing-toggle button { padding: var(--s-2) var(--s-5); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2); transition: all var(--t-fast); }
.pricing-toggle button.active { background: var(--brand-500); color: #04140E; }

@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: min(480px, 100%); margin: 0 auto; } }

/* ---------- Latency showcase ---------- */
.latency-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.latency-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(0,229,168,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,168,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.latency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); position: relative; }
.latency-bar-list { display: flex; flex-direction: column; gap: var(--s-4); }
.latency-bar-row { display: flex; align-items: center; gap: var(--s-4); }
.latency-bar-row .broker { width: 130px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2); }
.latency-bar-row .bar { flex: 1; height: 28px; background: var(--bg-subtle); border-radius: var(--r-xs); position: relative; overflow: hidden; }
.latency-bar-row .bar-fill {
  height: 100%;
  min-width: 68px;
  background: linear-gradient(110deg, var(--success-500) 0%, var(--brand-500) 38%, rgba(255,255,255,.48) 50%, var(--brand-500) 62%, var(--success-500) 100%);
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 var(--s-3);
  color: #04140E; font-weight: var(--fw-bold); font-size: var(--fs-xs);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.latency-bar-row .bar-fill.medium { background: linear-gradient(110deg, var(--warn-500) 0%, #ff7a45 38%, rgba(255,255,255,.48) 50%, #ff7a45 62%, var(--warn-500) 100%); }
.latency-bar-row .bar-fill.slow { background: linear-gradient(110deg, var(--danger-500) 0%, #ff8a3c 38%, rgba(255,255,255,.48) 50%, #ff8a3c 62%, var(--danger-500) 100%); }

@media (max-width: 960px) { .latency-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .latency-section { padding: var(--s-5) var(--s-4); border-radius: var(--r-lg); }
  .latency-bar-row { gap: var(--s-2); }
  .latency-bar-row .broker { width: 92px; font-size: var(--fs-xs); }
}

/* ---------- Motion / animated illustrations ---------- */
@keyframes bg-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}
.flow-line {
  stroke-dasharray: 5 9;
  animation: dash-flow 1.3s linear infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.62); }
}
.pulse-dot {
  animation: pulse-dot 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(0,229,168,.35)); }
  50% { filter: drop-shadow(0 0 9px rgba(0,229,168,.7)); }
}
.glow-pulse {
  animation: glow-pulse 2.2s ease-in-out infinite;
}
.pulse-dot.glow-pulse {
  animation: pulse-dot 2.2s ease-in-out infinite, glow-pulse 2.2s ease-in-out infinite;
}

@keyframes packet-move {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--packet-x, 120px), var(--packet-y, 0)); }
}
.packet {
  fill: var(--brand-500);
  filter: drop-shadow(0 0 4px rgba(0,229,168,.9));
  animation: packet-move 2.4s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: center;
}

@keyframes bar-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.shimmer {
  background-size: 220% 100% !important;
  animation: bar-shimmer 2.2s linear infinite;
}

@keyframes candle-in {
  0%, 8% { opacity: 0; transform: scaleY(.15); }
  24%, 78% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}
@keyframes trend-draw {
  0%, 12% { stroke-dashoffset: 360; opacity: .25; }
  55%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: .2; }
}
@keyframes deploy-fill {
  0%, 10% { width: 8%; }
  72%, 88% { width: 100%; }
  100% { width: 8%; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-6); margin-bottom: var(--s-7); }
.footer-col h5 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: var(--s-4); font-weight: var(--fw-semibold); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: var(--fs-sm); color: var(--text-2); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--brand-500); }
.footer-brand p { color: var(--text-3); font-size: var(--fs-sm); margin: var(--s-4) 0; max-width: 320px; }
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--t-fast); }
.footer-social a:hover { background: var(--brand-500); color: #04140E; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard layout ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: var(--s-5) var(--s-4);
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: var(--s-5); }
.sidebar-section h6 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: var(--fw-semibold); margin: var(--s-3) var(--s-3) var(--s-2); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--bg-subtle); color: var(--text-1); }
.sidebar-link.active { background: rgba(0,229,168,.1); color: var(--brand-500); }
.sidebar-link .badge { margin-left: auto; padding: 2px 8px; font-size: 10px; }

.dash-main { padding: var(--s-6) var(--s-7); min-width: 0; max-width: 1560px; width: 100%; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-6); }
.dash-title { flex: 1; min-width: 280px; }
.dash-title h1 { font-size: var(--fs-2xl); line-height: 1.25; }
.dash-title p { color: var(--text-3); font-size: var(--fs-sm); margin-top: 6px; line-height: 1.5; }

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .dash-grid { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dash-main { padding: var(--s-4); padding-bottom: 132px; }
  .dash-header { align-items: stretch; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
  .dash-title h1 { font-size: var(--fs-xl); }
}
@media (max-width: 640px) {
  .dash-title { min-width: 0; }
  .dash-header .btn { width: 100%; }
  .dash-header > .flex,
  .dash-header > .flex-between { width: 100%; flex-direction: column; align-items: stretch; gap: var(--s-2); }
}
@media (max-width: 560px) {
  .dash-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .stat { padding: var(--s-3) var(--s-4); }
  .stat-value { font-size: var(--fs-lg); }
}
@media (max-width: 400px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- Balance card (wallet) ---------- */
.balance-card {
  position: relative;
  background: linear-gradient(135deg, #0B1220 0%, #131C30 60%, #1A2540 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
}
.balance-card::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,168,.25), transparent 60%);
  pointer-events: none;
}
.balance-card .label { color: rgba(255,255,255,.6); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: var(--fw-semibold); }
.balance-card .amount { font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: var(--fw-black); margin: var(--s-2) 0; letter-spacing: -.02em; }
.balance-card .amount .currency { font-size: var(--fs-lg); color: rgba(255,255,255,.6); vertical-align: top; margin-right: 4px; }
.balance-card .actions { display: flex; gap: var(--s-3); margin-top: var(--s-5); position: relative; z-index: 1; }
.balance-card .actions .btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.balance-card .actions .btn:hover { background: var(--brand-500); color: #04140E; border-color: var(--brand-500); }
.balance-card .meta { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: var(--fs-xs); color: rgba(255,255,255,.5); margin-top: var(--s-5); }

/* ---------- VPS instance card ---------- */
.vps-card { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.vps-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.vps-card-head .name { font-weight: var(--fw-bold); font-size: var(--fs-md); display: flex; align-items: center; gap: var(--s-2); }
.vps-card-head .ip { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; }
.vps-card .specs-row { display: flex; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.vps-card .specs-row .spec { flex: 1; min-width: 70px; display: flex; flex-direction: column; gap: 2px; }
.vps-card .specs-row .spec .k { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.vps-card .specs-row .spec .v { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.vps-card .meta-row { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); flex-wrap: wrap; gap: var(--s-2); }
.vps-card .actions-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.vps-card .actions-row .btn { flex: 1; min-width: 0; }

/* ---------- Status indicator ---------- */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.status-dot.running { background: var(--success-500); box-shadow: 0 0 0 3px rgba(0,208,132,.2); }
.status-dot.stopped { background: var(--text-3); }
.status-dot.starting { background: var(--warn-500); animation: blink 1.2s infinite; }
.status-dot.error { background: var(--danger-500); box-shadow: 0 0 0 3px rgba(255,77,109,.25); }
@keyframes blink { 50% { opacity: .3 } }

/* ---------- Top-up methods ---------- */
.pay-method {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.pay-method:hover { border-color: var(--brand-500); }
.pay-method.active, .pay-method:has(input:checked) { border-color: var(--brand-500); background: rgba(0,229,168,.04); }
.pay-method .icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }
.pay-method .info { flex: 1; min-width: 0; }
.pay-method .info .name { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.pay-method .info .desc { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Amount picker ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.amount-chip {
  padding: var(--s-3) var(--s-2);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-weight: var(--fw-semibold);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}
.amount-chip:hover { border-color: var(--brand-500); }
.amount-chip.active { border-color: var(--brand-500); background: rgba(0,229,168,.06); color: var(--brand-500); }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: linear-gradient(135deg, #0B1220 0%, #131C30 50%, #1A2540 100%);
  color: #fff; padding: var(--s-8); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(0,229,168,.18), transparent 60%),
    radial-gradient(500px 300px at 20% 80%, rgba(79,140,255,.15), transparent 60%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.auth-aside .quote { font-size: var(--fs-md); line-height: var(--lh-base); margin-top: var(--s-4); color: rgba(255,255,255,.85); }
.auth-aside .quote-author { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.auth-bullets { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.auth-bullets li { display: flex; align-items: center; gap: var(--s-3); color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.auth-bullets svg { color: var(--brand-500); width: 20px; height: 20px; flex-shrink: 0; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: var(--s-7); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.auth-form .sub { color: var(--text-3); margin-bottom: var(--s-6); font-size: var(--fs-sm); }
.auth-form .alt { text-align: center; margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--text-3); }
.auth-form .alt a { color: var(--brand-500); font-weight: var(--fw-semibold); }

@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- CTA section ---------- */
.cta-band {
  background: linear-gradient(135deg, #0B1220 0%, #131C30 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(0,229,168,.2), transparent 60%),
    radial-gradient(400px 300px at 80% 100%, rgba(79,140,255,.15), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,.7); font-size: var(--fs-md); max-width: 540px; margin: 0 auto var(--s-6); }

/* ---------- Network map (features page) ---------- */
.network-map {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  position: relative;
  min-height: 380px;
  background-image:
    linear-gradient(rgba(0,229,168,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,168,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.network-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: var(--fs-xs);
}
.network-node .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(0,229,168,.2), 0 0 0 8px rgba(0,229,168,.1);
  position: relative;
}
.network-node .dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand-500);
  animation: ping 2s var(--ease) infinite;
}
.network-node .city { font-weight: var(--fw-semibold); color: var(--text-1); }
.network-node .ms { font-family: var(--font-mono); color: var(--text-3); }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

/* ---------- Comparison table ---------- */
.compare-table th:first-child, .compare-table td:first-child { font-weight: var(--fw-medium); color: var(--text-1); }
.compare-table .check { color: var(--brand-500); width: 20px; height: 20px; display: inline-block; }
.compare-table .x { color: var(--text-3); width: 20px; height: 20px; display: inline-block; }
.compare-table td { text-align: center; }
.compare-table td:first-child { text-align: left; }

/* ---------- Steps / How it works ---------- */
.step { display: flex; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-family: var(--font-mono);
  color: var(--brand-500);
}
.how-steps .step-num::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6px;
  border: 1px solid color-mix(in srgb, var(--brand-500) 38%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand-500) 18%, transparent);
  opacity: .35;
  animation: pulse-dot 4.8s ease-in-out infinite;
}
.how-steps .step:nth-child(2) .step-num::before { animation-delay: .3s; }
.how-steps .step:nth-child(3) .step-num::before { animation-delay: .6s; }
.how-steps .step:nth-child(4) .step-num::before { animation-delay: .9s; }
.step-content h4 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step-content p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.how-steps-cta:hover { animation: glow-pulse 2.2s ease-in-out infinite; }

.how-server-icon {
  display: block;
  margin: 0 auto;
  color: var(--brand-500);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand-500) 24%, transparent));
}
.how-server-icon .server-led { color: var(--success-500); }
.how-server-icon .server-led-2 { animation-delay: -.55s; }
.how-server-icon .server-led-3 { animation-delay: -1.1s; }
.how-server-icon .server-led-4 { animation-delay: -1.65s; }
.how-deploy-progress {
  width: min(260px, 82%);
  height: 6px;
  margin: var(--s-4) auto 0;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.how-deploy-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--brand-600), var(--brand-400), var(--brand-600));
  background-size: 220% 100%;
}
.how-deploy-progress-fill.shimmer {
  animation: deploy-fill 5.2s var(--ease) infinite, bar-shimmer 2s linear infinite;
}
.how-deploy-label {
  margin-top: var(--s-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .02em;
}

/* ---------- Faq ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: var(--s-4) 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: var(--fw-semibold); font-size: var(--fs-md); gap: var(--s-3); }
.faq-q .chev { transition: transform var(--t-base); color: var(--text-3); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { color: var(--text-2); font-size: var(--fs-sm); max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease); padding-top: 0; }
.faq-item.open .faq-a { max-height: 260px; padding-top: var(--s-3); }

/* ---------- Console mockup (VPS detail) ---------- */
.console-window {
  background: #0a0e1a; color: #d6e1ff;
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--fs-sm);
  padding: var(--s-4); min-height: 220px; line-height: 1.7;
  border: 1px solid rgba(255,255,255,.06);
  overflow: auto;
  white-space: pre;
}
.console-window .prompt { color: var(--brand-500); }
.console-window .out { color: #d6e1ff; }
.console-window .ok { color: #28c840; }
.console-window .warn { color: #febc2e; }
.console-window .err { color: var(--danger-500); }

/* ---------- Deploy summary sticky card ---------- */
.deploy-summary-card { position: sticky; top: calc(var(--nav-h) + var(--s-5)); }
@media (max-width: 960px) {
  .deploy-summary-card { position: static; }
}

/* ---------- Mobile Responsive Enhancements ---------- */
@media (max-width: 768px) {
  .balance-card { padding: var(--s-5); }
  .balance-card .amount { font-size: var(--fs-2xl); }
  .balance-card .actions { flex-wrap: wrap; }
  .balance-card .actions .btn { flex: 1; min-width: 140px; }
  .balance-card .meta { flex-direction: column; gap: 4px; }

  .vps-card { padding: var(--s-4); }
  .vps-card-head { flex-wrap: wrap; }
  .vps-card .specs-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .vps-card .actions-row .btn { min-width: calc(50% - var(--s-2)); }

  .amount-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }

  .auth-main { padding: var(--s-5) var(--s-4) 100px; align-items: flex-start; }
  .auth-form h1 { font-size: var(--fs-xl); }

  .cta-band { padding: var(--s-6) var(--s-4); border-radius: var(--r-lg); }
  .cta-band h2 { font-size: var(--fs-xl); }
  .cta-band p { font-size: var(--fs-sm); }

  .network-map {
    min-height: auto;
    padding: var(--s-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
  .network-node {
    position: static !important;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-3);
    text-align: center;
  }
  .network-map .alert {
    position: static !important;
    grid-column: 1 / -1;
    margin-top: var(--s-2);
  }

  .footer { padding: var(--s-7) 0 calc(var(--s-7) + 70px); }
}

@media (max-width: 640px) {
  .balance-card { padding: var(--s-4); }
  .balance-card .actions { display: grid; grid-template-columns: 1fr; }
  .balance-card .actions .btn { min-width: 0; width: 100%; }
  .vps-card .actions-row { display: grid; grid-template-columns: 1fr; }
  .vps-card .actions-row .btn { min-width: 0; width: 100%; }
  .network-map { grid-template-columns: 1fr; }
  .network-map .alert { grid-column: auto; }
  .risk-card,
  .how-vps-card { padding: var(--s-4) !important; }
  .faq-q { font-size: var(--fs-base); }
  .step { gap: var(--s-3); padding: var(--s-4) 0; }
  .footer { margin-top: var(--s-6); }
  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 40px;
  }
  .type-seg-item,
  .spec-cat { min-height: 40px; }

  .support-chat-card {
    height: calc(100dvh - var(--nav-h) - 96px) !important;
    min-height: 0;
    padding: 0 !important;
  }
  .support-side { display: none; }
  .support-chat-header { padding: var(--s-3) !important; }
  .support-team-title { flex-wrap: wrap; line-height: 1.35; }
  .support-chat-controls { width: 100%; }
  .support-chat-controls > * { width: 100%; }
  #memberChatMessages { padding: var(--s-3) !important; }
  #memberChatMessages img { max-width: 100% !important; height: auto; }
  .support-chat-form { padding: var(--s-2) !important; gap: var(--s-2) !important; }
  .support-chat-form .input { min-width: 0; padding-left: var(--s-2) !important; padding-right: var(--s-2) !important; }
  .support-chat-form .btn { min-width: 44px; padding-left: var(--s-3) !important; padding-right: var(--s-3) !important; }

  .article-content,
  .article-content img,
  .article-content iframe,
  .article-content pre,
  .article-content table { max-width: 100%; }
  .article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article-content pre { overflow-x: auto; white-space: pre; }
}

@media (max-width: 400px) {
  .support-send-label { display: none; }
}

/* ---------- Mobile Bottom App Navigation Bar ---------- */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 960px) {
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px var(--s-2) calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(11, 18, 32, 0.08);
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-decoration: none;
    position: relative;
    transition: color var(--t-fast), background var(--t-fast);
    min-height: 44px;
  }
  .mobile-bottom-nav a svg,
  .mobile-bottom-nav a i {
    width: 19px;
    height: 19px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-bottom-nav a.active {
    color: var(--brand-500);
    font-weight: var(--fw-semibold);
  }
  .mobile-bottom-nav a span {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
    max-width: 100%;
  }
  .mobile-bottom-nav a .mob-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: var(--warn-500);
    color: #fff;
    font-size: 9px;
    font-weight: var(--fw-bold);
    padding: 1px 5px;
    border-radius: var(--r-full);
    line-height: 1.2;
  }
}
