/* ============================================================
   PolyVPN — styles.css
   ============================================================ */

/* 1. CSS Custom Properties */
:root {
  --bg-primary:      #080d0a;
  --bg-secondary:    #0d1710;
  --bg-elevated:     #122018;
  --bg-card:         rgba(13, 23, 16, 0.85);

  --accent-primary:  #00e676;
  --accent-teal:     #00bfa5;
  --accent-dim:      #1a4a32;
  --accent-glow:     rgba(0, 230, 118, 0.2);

  --text-primary:    #e2f0e8;
  --text-secondary:  #7a9a85;
  --text-muted:      #3d5a47;

  --danger:          #ef5350;
  --warning:         #ffa726;
  --success:         #00e676;

  --border-subtle:   rgba(0, 230, 118, 0.1);
  --border-dim:      rgba(0, 230, 118, 0.06);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
  --shadow-glow:  0 0 24px rgba(0, 230, 118, 0.22), 0 0 48px rgba(0, 230, 118, 0.08);
  --shadow-btn:   0 0 16px rgba(0, 230, 118, 0.35);

  --header-h: 68px;
  --sidebar-w: 240px;

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* 3. Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-accent  { color: var(--accent-primary); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; }

/* 4. Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.btn:hover::after  { opacity: 0.06; }
.btn:active::after { opacity: 0.12; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-primary);
  color: #050d08;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.55), 0 0 48px rgba(0, 230, 118, 0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 83, 80, 0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* 5. Layout Utilities */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* 6. Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 13, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
}

.logo span { color: var(--accent-primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* 7. Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-primary), transparent 60%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-teal), transparent 60%);
  bottom: -100px;
  left: 20%;
  animation-delay: -4s;
  opacity: 0.12;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(0, 230, 118, 0.06);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-title .accent {
  color: var(--accent-primary);
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.terminal-bar {
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}

.t-dim     { color: var(--text-muted); }
.t-green   { color: var(--accent-primary); }
.t-teal    { color: var(--accent-teal); }
.t-warn    { color: var(--warning); }
.t-white   { color: var(--text-primary); }

.terminal-latency {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 12px 16px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.latency-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-primary);
  text-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  min-width: 90px;
}

.latency-unit {
  font-size: 13px;
  color: var(--text-muted);
}

/* 8. Features Section */
.features {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  border-color: rgba(0, 230, 118, 0.25);
  background: rgba(13, 23, 16, 0.95);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 9. Pricing Section */
.pricing {
  text-align: center;
}

.pricing-header {
  margin-bottom: 48px;
}

.pricing-header .section-subtitle {
  margin: 0 auto 28px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
}

.billing-toggle span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.billing-toggle .save-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(0, 230, 118, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(0, 230, 118, 0.2);
  border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-track::after {
  left: calc(100% - 19px);
  background: var(--accent-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(0,230,118,0.06) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #050d08;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  min-height: 36px;
}

.plan-divider {
  height: 1px;
  background: var(--border-dim);
  margin-bottom: 24px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-feature .check {
  width: 16px;
  height: 16px;
  background: rgba(0, 230, 118, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-primary);
}

.plan-feature .check svg {
  width: 9px;
  height: 9px;
}

.pricing-card .btn {
  width: 100%;
}

/* 10. FAQ Section */
.faq {
  background: var(--bg-secondary);
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-inner {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* 11. Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-dim);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ============================================================
   GLOBE SECTION
   ============================================================ */
.globe-section {
  padding: 56px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.globe-section-header {
  text-align: center;
  margin-bottom: 8px;
}

.globe-section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 6px;
}

#globe-container {
  width: 100%;
  max-width: 900px;
  height: 640px;
  margin: 0 auto;
  position: relative;
}

#globe-container canvas {
  touch-action: pan-y;
}

.globe-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.globe-emoji {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9));
  animation: globe-bob 3s ease-in-out infinite;
}

.globe-marker:nth-child(2) .globe-emoji { animation-delay: -1s; }
.globe-marker:nth-child(3) .globe-emoji { animation-delay: -2s; }

@keyframes globe-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.globe-label {
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 13, 10, 0.88);
  letter-spacing: 0.02em;
}

.globe-label--bad {
  border: 1px solid rgba(239, 83, 80, 0.45);
  color: #ef5350;
}

.globe-label--good {
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
}

/* ============================================================
   DASHBOARD STYLES
   ============================================================ */

.dashboard-body {
  background: var(--bg-primary);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: 16px;
}

.sidebar-nav {
  flex: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.sidebar-link.active {
  color: var(--accent-primary);
  background: rgba(0, 230, 118, 0.1);
}

.sidebar-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 16px 10px 0;
  border-top: 1px solid var(--border-dim);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-info {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin: 0 10px 8px;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #050d08;
  flex-shrink: 0;
}

.member-details {
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-plan {
  font-size: 11px;
  color: var(--accent-primary);
}

/* Dashboard Main */
.dashboard-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.dash-topbar {
  height: 60px;
  border-bottom: 1px solid var(--border-dim);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.dash-topbar-title {
  font-size: 16px;
  font-weight: 600;
}

.dash-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

/* Connection Panel */
.connection-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  backdrop-filter: blur(8px);
}

.connection-panel.state-connected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px rgba(0,230,118,0.15), var(--shadow-glow);
}

.connection-panel.state-connecting {
  border-color: var(--accent-teal);
  animation: border-pulse 1.5s ease-in-out infinite;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.state-disconnected {
  background: rgba(239,83,80,0.12);
  color: var(--danger);
  border: 1px solid rgba(239,83,80,0.2);
}

.status-badge.state-disconnected .status-dot {
  background: var(--danger);
}

.status-badge.state-connecting {
  background: rgba(0,191,165,0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(0,191,165,0.2);
}

.status-badge.state-connecting .status-dot {
  background: var(--accent-teal);
  animation: pulse-dot 1s ease-in-out infinite;
}

.status-badge.state-connected {
  background: rgba(0,230,118,0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(0,230,118,0.2);
}

.status-badge.state-connected .status-dot {
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.server-selector-wrap {
  flex: 1;
}

.server-selector-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.server-selector {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  width: 100%;
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a9a85' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.server-selector:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.ip-display {
  text-align: right;
}

.ip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ip-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

.ip-arrow {
  color: var(--accent-primary);
  margin: 0 6px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-value.good  { color: var(--accent-primary); }
.stat-value.ok    { color: var(--accent-teal); }
.stat-value.plain { color: var(--text-primary); }

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Latency Chart */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.latency-svg {
  width: 100%;
  height: 80px;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0,230,118,0.5));
}

.chart-area {
  fill: url(#chart-gradient);
}

/* Server Table */
.server-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-title {
  font-size: 14px;
  font-weight: 600;
}

.server-table {
  width: 100%;
  border-collapse: collapse;
}

.server-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0,0,0,0.15);
}

.server-table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-secondary);
}

.server-table tr:last-child td { border-bottom: none; }

.server-row {
  cursor: pointer;
  transition: background var(--transition);
}

.server-row:hover { background: var(--bg-elevated); }

.server-row.selected {
  background: rgba(0, 230, 118, 0.06);
}

.server-row.selected td { color: var(--text-primary); }

.server-name {
  font-weight: 600;
  color: var(--text-primary);
}

.latency-fast   { color: var(--accent-primary); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.latency-medium { color: var(--accent-teal); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.latency-slow   { color: var(--warning); font-family: 'JetBrains Mono', monospace; font-weight: 600; }

.load-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.load-bar {
  width: 60px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.load-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-teal);
}

.dot-available { color: var(--accent-primary); }
.dot-busy      { color: var(--warning); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-20px, 20px); }
  66%       { transform: translate(15px, -15px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes border-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,191,165,0.2); }
  50%       { box-shadow: 0 0 16px rgba(0,191,165,0.3); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-in 0.5s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { justify-content: center; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hero-visual { display: none; }

  .site-nav { display: none; }
  .hamburger { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(8, 13, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    z-index: 99;
  }

  .site-nav.open a {
    font-size: 18px;
    padding: 12px 16px;
  }

  .features-grid,
  .pricing-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Dashboard responsive */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .connection-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { display: none; }

  .connection-panel {
    grid-template-columns: 1fr;
  }
}
