/* ==========================================================================
   NEXTPROXY ENTERPRISE — MASTER DESIGN SYSTEM v4.0 (STRIPE/CLOUDFLARE GRADE)
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════
   § 1  DESIGN TOKENS & THEME (DARK DEFAULT, LIGHT OVERRIDE)
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --np-bg:            #06070a;
  --np-surface:       #0d0f14;
  --np-surface-2:     #131720;
  --np-border:        rgba(255,255,255,0.08);
  --np-border-strong: rgba(255,255,255,0.18);

  /* Legacy aliases for backward compatibility across existing templates */
  --black: #080808;
  --dark-black: #000000;
  --half-black: rgba(8, 8, 8, 0.78);
  --white: #ffffff;
  --half-white: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.26);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --canvas: #06070a;
  --card-bg: rgba(13, 15, 20, 0.82);
  --page-grad-1: rgba(0, 212, 255, 0.06);
  --page-grad-2: rgba(99, 102, 241, 0.05);
  --page-grad-3: rgba(16, 185, 129, 0.04);
  --nav-bg: rgba(6, 7, 10, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);
  --brand-primary: #00f0ff;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1240px;

  /* Text */
  --np-text-1:  #f1f5f9;
  --np-text-2:  #8b9db4;
  --np-text-3:  #4a5568;

  /* Nav */
  --np-nav-bg:     rgba(6,7,10,0.88);
  --np-nav-border: rgba(255,255,255,0.07);

  /* Brand accent */
  --np-cyan:    #00d4ff;
  --np-emerald: #10b981;
  --np-indigo:  #6366f1;

  /* Mega menu */
  --np-mm-bg:     #0c1018;
  --np-mm-border: rgba(255,255,255,0.1);
  --np-mm-shadow: 0 28px 64px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);

  /* Cards */
  --np-card-bg:   rgba(13,15,20,0.82);

  /* Misc */
  --np-radius:    16px;
  --np-radius-sm: 10px;
  --np-maxw:      1240px;
  --np-z-nav:     80;
  --np-z-mm:      200;
  --np-z-modal:   300;
}

/* ── LIGHT THEME ── */
html.light, body.light {
  --black: #f4f4f4;
  --dark-black: #ffffff;
  --half-black: rgba(244, 244, 244, 0.88);
  --white: #0a0a0a;
  --half-white: rgba(10, 10, 10, 0.65);
  --glass-bg: rgba(10, 10, 10, 0.035);
  --glass-bg-strong: rgba(10, 10, 10, 0.075);
  --glass-border: rgba(10, 10, 10, 0.12);
  --glass-border-strong: rgba(10, 10, 10, 0.28);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --canvas: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.95);
  --page-grad-1: rgba(0, 0, 0, 0.035);
  --page-grad-2: rgba(0, 0, 0, 0.025);
  --page-grad-3: rgba(0, 0, 0, 0.015);
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(15, 23, 42, 0.08);
  --brand-primary: #0284c7;

  --np-bg:            #f6f8fc;
  --np-surface:       #ffffff;
  --np-surface-2:     #f1f4f9;
  --np-border:        rgba(15,23,42,0.09);
  --np-border-strong: rgba(15,23,42,0.20);

  --np-text-1: #0f172a;
  --np-text-2: #475569;
  --np-text-3: #94a3b8;

  --np-nav-bg:     rgba(255,255,255,0.92);
  --np-nav-border: rgba(15,23,42,0.09);

  --np-cyan:    #0284c7;
  --np-emerald: #059669;
  --np-indigo:  #4f46e5;

  --np-mm-bg:     #ffffff;
  --np-mm-border: #e2e8f0;
  --np-mm-shadow: 0 20px 48px rgba(15,23,42,0.12), 0 0 0 1px rgba(0,0,0,0.03);

  --np-card-bg: rgba(255,255,255,0.95);
}

/* ══════════════════════════════════════════════════════════════════════════
   § 2  BASE RESET & GLOBAL STYLES
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--np-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}
html.light {
  background: #f6f8fc;
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background: var(--np-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 5%,  rgba(99,102,241,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16,185,129,0.04) 0%, transparent 60%);
  color: var(--np-text-1);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.2s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand, .stat-num {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--np-text-1);
}
code, .mono, .proxy-cell, .countdown, .terminal-box {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.container { max-width: var(--np-maxw); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--np-cyan); outline-offset: 3px; border-radius: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   § 3  TOP TELEMETRY RIBBON
   ══════════════════════════════════════════════════════════════════════════ */
.telemetry-bar {
  position: relative;
  z-index: 90;
  background: #050609;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 6.5px 0;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
}
html.light .telemetry-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}
.telemetry-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.telemetry-group { display: flex; align-items: center; gap: 18px; }
.telemetry-item  { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.telemetry-item strong {
  color: #10b981;
  font-weight: 700;
}
html.light .telemetry-item strong { color: #059669; }

/* Remove any accidental inline color overrides */
#tickerTotalCount { color: #10b981 !important; font-weight: 700 !important; }
html.light #tickerTotalCount { color: #059669 !important; }

.telemetry-beacon {
  display: inline-block;
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: beacon-pulse 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes beacon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.telemetry-sep {
  display: inline-block;
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.12);
}
html.light .telemetry-sep {
  background: #cbd5e1;
}

/* ══════════════════════════════════════════════════════════════════════════
   § 4  STICKY NAV BAR (Sleek, Clean, Modern Enterprise)
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--np-z-nav);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: var(--np-nav-bg);
  border-bottom: 1px solid var(--np-nav-border);
  transition: background 0.2s, border-color 0.2s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* ── BRAND / LOGO ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.025em;
  color: var(--np-text-1);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-wrap { display: flex; align-items: center; }
.logo-img {
  height: 25px;
  width: auto;
  display: block;
}
.logo-fallback {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
}

/* ── NAV LINKS CONTAINER ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px;
}

/* ── PLAIN NAV LINKS (Overview, FAQ) ── */
.nav-links > a {
  position: relative;
  color: var(--text-secondary, #475569);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: color 0.16s ease, background 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nav-links > a:hover,
.nav-links > a.active {
  color: var(--np-text-1);
  background: rgba(255,255,255,0.07);
}
html.light .nav-links > a:hover,
html.light .nav-links > a.active {
  color: #0f172a;
  background: #f1f5f9;
}

/* ── DROPDOWN TRIGGER BUTTON ── */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--np-text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-link-btn:hover,
.nav-item-dropdown:hover > .nav-link-btn,
.nav-item-dropdown.open > .nav-link-btn,
.nav-link-btn.active {
  color: var(--np-text-1);
  background: rgba(255,255,255,0.07);
}
html.light .nav-link-btn:hover,
html.light .nav-item-dropdown:hover > .nav-link-btn,
html.light .nav-item-dropdown.open > .nav-link-btn,
html.light .nav-link-btn.active {
  color: #0f172a;
  background: #f1f5f9;
}

/* Chevron animation */
.dropdown-chevron {
  transition: transform 0.22s ease;
  opacity: 0.55;
}
.nav-item-dropdown:hover > .nav-link-btn .dropdown-chevron,
.nav-item-dropdown.open > .nav-link-btn .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── PRICING LINK ── */
.nav-pricing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--np-text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.16s, background 0.16s;
}
.nav-pricing-link:hover { color: var(--np-text-1); background: rgba(255,255,255,0.07); }
html.light .nav-pricing-link:hover { color: #0f172a; background: #f1f5f9; }
.nav-pricing-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  letter-spacing: 0.03em;
}

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}
.nav-divider {
  width: 1px; height: 20px;
  background: var(--np-border);
  display: inline-block;
  margin: 0 4px;
  flex-shrink: 0;
}
#navAuthContainer {
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

/* ── AUTH NAV BUTTONS (Sign In & Get API Key) ── */
.nav-btn-ghost,
#openAuthModalBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 35px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Manrope', 'Outfit', sans-serif !important;
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.nav-btn-ghost:hover,
#openAuthModalBtn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html.light .nav-btn-ghost,
html.light #openAuthModalBtn {
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}
html.light .nav-btn-ghost:hover,
html.light #openAuthModalBtn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.nav-btn-primary,
#openRegisterModalBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 35px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Manrope', 'Outfit', sans-serif !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  user-select: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.2) !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.nav-btn-primary:hover,
#openRegisterModalBtn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #10b981 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5) !important;
}

html.light .nav-btn-primary,
html.light #openRegisterModalBtn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}
html.light .nav-btn-primary:hover,
html.light #openRegisterModalBtn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35) !important;
}

/* ── AUTH MODAL OVERLAY & DIALOG ── */
.auth-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.22s ease, visibility 0.22s ease !important;
}
.auth-overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-modal {
  background: #0d1117 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 32px 28px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
  transform: translateY(16px) scale(0.97) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}
.auth-overlay.show .auth-modal {
  transform: translateY(0) scale(1) !important;
}

html.light .auth-modal {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

.auth-modal .modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}
.auth-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  transform: rotate(90deg) !important;
}
html.light .auth-modal .modal-close {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}
html.light .auth-modal .modal-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.auth-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}
.auth-security-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #10b981 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 12px !important;
}
.auth-title {
  margin: 0 0 6px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  font-family: 'Outfit', -apple-system, sans-serif !important;
}
html.light .auth-title { color: #0f172a !important; }

.auth-subtitle {
  margin: 0 !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
}
html.light .auth-subtitle { color: #64748b !important; }

.auth-notice {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  margin-bottom: 18px !important;
  text-align: center !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}

.auth-tabs {
  display: flex !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 4px !important;
  margin-bottom: 22px !important;
}
html.light .auth-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
.auth-tab {
  flex: 1 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}
.auth-tab.active {
  background: #1e293b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
html.light .auth-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.auth-form-group {
  margin-bottom: 16px !important;
  text-align: left !important;
}
.auth-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  margin-bottom: 6px !important;
}
html.light .auth-label { color: #334155 !important; }

.auth-input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  background: #07090e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  outline: none !important;
}
.auth-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}
html.light .auth-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light .auth-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.auth-submit-btn {
  width: 100% !important;
  height: 44px !important;
  margin-top: 8px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
}
.auth-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45) !important;
}
.auth-submit-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ── GITHUB OAUTH BUTTON & DIVIDER ── */
.auth-oauth-wrap {
  margin-bottom: 20px !important;
}

.auth-github-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: #24292f !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  user-select: none !important;
}
.auth-github-btn:hover {
  background: #2f363d !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}
.auth-github-btn:active {
  transform: translateY(0) !important;
}

html.light .auth-github-btn {
  background: #24292f !important;
  color: #ffffff !important;
  border-color: #24292f !important;
  box-shadow: 0 4px 14px rgba(36, 41, 47, 0.2) !important;
}
html.light .auth-github-btn:hover {
  background: #1b1f23 !important;
  box-shadow: 0 6px 18px rgba(36, 41, 47, 0.3) !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 18px 0 14px !important;
}
.auth-divider::before,
.auth-divider::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html.light .auth-divider::before,
html.light .auth-divider::after {
  border-bottom-color: #e2e8f0 !important;
}
.auth-divider span {
  padding: 0 12px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
  text-transform: uppercase !important;
}

.auth-alt-action {
  text-align: center !important;
  margin-top: 14px !important;
}

.icon-btn, .nav-tool-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--np-border);
  background: var(--np-surface);
  color: var(--np-text-1);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.icon-btn:hover, .nav-tool-btn:hover {
  background: var(--np-surface-2);
  border-color: var(--np-border-strong);
  transform: scale(1.05);
}
html.light .icon-btn, html.light .nav-tool-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}
html.light .icon-btn:hover, html.light .nav-tool-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Credits pill */
.nav-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
html.light .nav-credits-pill { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.credit-pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-credits 2s infinite;
}
@keyframes pulse-credits {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* User profile pill */
.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: 999px;
  color: var(--np-text-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
html.light .user-profile-btn { background: #ffffff; border-color: #e2e8f0; color: #0f172a; }
.user-avatar-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.nav-pro-badge {
  font-size: 9px; font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #10b981; color: #fff;
  letter-spacing: 0.04em;
}

/* Auth container */
#navAuthContainer {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* User dropdown */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 270px;
  background: #0d0f14;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  display: none;
  z-index: var(--np-z-modal);
  animation: mm-in 0.16s ease;
}
html.light .user-dropdown-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(15,23,42,0.15);
}
.user-dropdown-menu.show { display: block; }
.user-dropdown-header { padding: 12px 14px; border-bottom: 1px solid var(--np-border); margin-bottom: 6px; }
.user-dropdown-header strong { display: block; font-size: 14px; color: var(--np-text-1); }
.user-dropdown-header span { font-size: 12px; color: var(--np-text-2); }
.user-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--np-text-2);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  transition: all 0.14s;
  text-decoration: none;
}
.user-dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--np-text-1); }
html.light .user-dropdown-item:hover { background: #f1f5f9; color: #0f172a; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--np-text-1);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   § 5  ENTERPRISE MEGA MENU (Stripe/Vercel Luxury Standard)
   ══════════════════════════════════════════════════════════════════════════ */
.mega-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 570px;
  background: #0c1017;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
  box-sizing: border-box;
}

html.light .mega-menu-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Bridge gap so menu stays open when mouse moves to it */
.mega-menu-panel::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}

/* Trigger: hover OR .open class */
.nav-item-dropdown:hover > .mega-menu-panel,
.nav-item-dropdown.open > .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── MEGA GRID ── */
.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ── MEGA ITEM ── */
.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.16s ease;
  background: transparent;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.mega-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
html.light .mega-menu-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ── ICON BOXES (Rich Solid Gradient Badges) ── */
.mega-item-icon-box {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mega-menu-item:hover .mega-item-icon-box { transform: scale(1.08); }
.mega-item-icon-box svg { width: 20px; height: 20px; stroke: #ffffff; }

.icon-theme-cyan     { background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; }
.icon-theme-telegram { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #ffffff; }
.icon-theme-emerald  { background: linear-gradient(135deg, #059669, #047857); color: #ffffff; }
.icon-theme-purple   { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #ffffff; }
.icon-theme-indigo   { background: linear-gradient(135deg, #4f46e5, #4338ca); color: #ffffff; }
.icon-theme-amber    { background: linear-gradient(135deg, #d97706, #b45309); color: #ffffff; }
.icon-theme-rose     { background: linear-gradient(135deg, #e11d48, #be123c); color: #ffffff; }

/* ── ITEM CONTENT ── */
.mega-item-content { flex: 1; min-width: 0; }
.mega-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--np-text-1);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  line-height: 1.3;
}
html.light .mega-item-title { color: #0f172a; }

.mega-item-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  font-size: 12px;
  color: var(--np-text-1);
  margin-left: auto;
}
.mega-menu-item:hover .mega-item-arrow {
  opacity: 1;
  transform: translateX(0);
}
.mega-item-desc { font-size: 12px; color: var(--np-text-2); line-height: 1.4; margin: 0; }
html.light .mega-item-desc { color: #64748b; }

/* ── ITEM BADGES ── */
.mega-item-badge {
  font-size: 9.5px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.02em;
}
html.light .mega-item-badge { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.mega-item-badge.developer-badge { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
html.light .mega-item-badge.developer-badge { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.mega-item-badge.badge-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
html.light .mega-item-badge.badge-amber { background: #fffbeb; color: #d97706; border-color: #fde68a; }

/* ── MEGA BANNER / CTA STRIP ── */
.mega-menu-banner {
  margin-top: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  color: var(--np-text-2);
  transition: all 0.15s ease;
}
html.light .mega-menu-banner { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.mega-menu-banner:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--np-text-1);
}
html.light .mega-menu-banner:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }

.mega-banner-left { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.mega-banner-cta {
  font-weight: 700;
  color: var(--np-text-1);
  display: flex; align-items: center; gap: 4px;
}
html.light .mega-banner-cta { color: #0f172a; }

.spotlight-beacon-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: beacon-pulse 2s infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   § 6  BUTTONS & CONTROLS
   ══════════════════════════════════════════════════════════════════════════ */
.btn-refresh {
  position: relative;
  overflow: hidden;
  background: var(--np-text-1);
  color: var(--np-bg);
  border: 1px solid var(--np-text-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn-refresh .refresh-spin-icon {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-refresh:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.35);
  border-color: #ffffff;
}
.btn-refresh:hover .refresh-spin-icon { transform: rotate(360deg); }
.btn-refresh:active { transform: translateY(0) scale(0.97); }
.btn-refresh.spinning .refresh-spin-icon { animation: single-spin 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes single-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--np-text-1);
  font-family: 'Manrope', sans-serif;
}
.btn:hover { background: var(--glass-bg-strong); border-color: var(--np-text-1); transform: translateY(-1px); }
.btn-solid { background: var(--np-text-1); color: var(--canvas); border-color: var(--np-text-1); }
.btn-solid:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 8px; }

/* ══════════════════════════════════════════════════════════════════════════
   § 7  HERO, STATS & SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */
.hero { padding: 76px 0 54px; text-align: center; position: relative; }
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  font-size: 12.5px;
  color: var(--np-text-2);
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beacon-pulse 1.8s infinite;
}
.hero h1 { font-size: 54px; font-weight: 700; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.6px; }
.hero h1 span { color: var(--np-text-3); display: block; font-size: 0.65em; font-weight: 600; margin-top: 8px; }
.hero p { max-width: 700px; margin: 0 auto 34px; color: var(--np-text-2); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 52px; flex-wrap: wrap; }

/* STATS CARDS */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto 52px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  text-align: center;
}
.stat-card:hover { transform: translateY(-3px); background: var(--glass-bg-strong); border-color: var(--glass-border-strong); }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; color: var(--np-text-1); }
.stat-label { font-size: 12px; color: var(--np-text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.stat-sub { font-size: 11px; color: var(--np-text-2); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }

/* QUICK CONNECT TERMINAL */
.quick-connect-wrap {
  max-width: 820px; margin: 0 auto;
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); text-align: left;
}
.connect-header {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 18px;
  background: var(--dark-black); border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; gap: 10px;
}
.connect-tabs { display: flex; gap: 6px; }
.connect-tab {
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: transparent; border: 1px solid transparent; color: var(--np-text-2); cursor: pointer;
  font-family: 'JetBrains Mono', monospace; transition: all 0.15s;
}
.connect-tab:hover { color: var(--np-text-1); }
.connect-tab.active { background: var(--glass-bg-strong); border-color: var(--glass-border-strong); color: var(--np-text-1); }
.terminal-box {
  padding: 16px 20px; font-size: 13px; color: var(--np-text-2);
  background: var(--dark-black); overflow-x: auto; line-height: 1.6;
}
.terminal-box span.tok-cmd { color: var(--np-text-1); font-weight: 600; }
.terminal-box span.tok-arg { color: var(--np-text-3); }

/* SECTIONS */
.section { padding: 74px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-tag { font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--np-cyan); margin-bottom: 12px; font-weight: 600; }
.section-head h2 { font-size: 34px; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.4px; }
.section-head p { color: var(--np-text-2); font-size: 15.5px; margin: 0; line-height: 1.6; }

/* PROXY MAIN PANEL */
.panel {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 22px;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; padding: 22px 28px;
  border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; gap: 16px;
}
.tabs { display: flex; gap: 6px; background: var(--dark-black); padding: 5px; border-radius: 999px; border: 1px solid var(--glass-border); flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--np-text-2); cursor: pointer; transition: all 0.15s; white-space: nowrap; user-select: none;
}
.tab:hover { color: var(--np-text-1); }
.tab.active { background: var(--np-text-1); color: var(--canvas); box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15); }

/* FILTER QUICK CHIPS */
.quick-tags-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: var(--dark-black); border-bottom: 1px solid var(--glass-border);
  overflow-x: auto; font-size: 12px;
}
.quick-tag-label { color: var(--np-text-3); font-weight: 600; text-transform: uppercase; font-size: 11px; margin-right: 4px; }
.quick-tag-chip {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--np-text-2); cursor: pointer; white-space: nowrap;
  transition: all 0.15s; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
}
.quick-tag-chip:hover { border-color: var(--glass-border-strong); color: var(--np-text-1); }
.quick-tag-chip.active { background: var(--np-text-1); color: var(--canvas); border-color: var(--np-text-1); }

.panel-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--dark-black); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 8px 16px;
}
.search-box input {
  background: none; border: none; outline: none; color: var(--np-text-1); font-size: 13.5px; width: 170px;
  font-family: 'Manrope', sans-serif;
}
.search-box input::placeholder { color: var(--np-text-3); }
.country-filter-select {
  background: var(--dark-black); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 8px 14px; color: var(--np-text-1); font-size: 13px; outline: none; font-family: 'Manrope', sans-serif;
  cursor: pointer;
}
.refresh-indicator { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--np-text-2); font-family: 'JetBrains Mono', monospace; }
.refresh-ring { position: relative; width: 26px; height: 26px; }
.refresh-ring svg { transform: rotate(-90deg); }
.refresh-ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: var(--glass-border-strong); }
.ring-fg { stroke: var(--np-text-1); stroke-linecap: round; transition: stroke-dashoffset 0.3s linear; }

/* TABLE */
.table-wrap { overflow-x: auto; max-height: 580px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
thead th {
  padding: 14px 22px; color: var(--np-text-3); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  position: sticky; top: 0; background: var(--dark-black);
  border-bottom: 1px solid var(--glass-border); cursor: pointer; user-select: none; white-space: nowrap;
  z-index: 10;
}
thead th.sortable:hover { color: var(--np-text-1); }
thead th .sort-arrow { opacity: 0.4; margin-left: 5px; font-size: 10px; }
thead th.sort-active .sort-arrow { opacity: 1; }
tbody td { padding: 13px 22px; border-bottom: 1px solid var(--glass-border); color: var(--np-text-1); vertical-align: middle; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: var(--glass-bg-strong); }
.proxy-cell { font-size: 13.5px; letter-spacing: 0.2px; font-family: 'JetBrains Mono', monospace; }

/* BADGES & CHIPS */
.type-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  border: 1px solid var(--glass-border-strong); background: var(--glass-bg);
  text-transform: uppercase;
}
.type-chip.chip-tg { border-color: var(--np-text-1); background: var(--glass-bg-strong); }
.country-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
}
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--np-text-2); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--np-text-3); }
.status-dot.ok { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }

/* ROW ACTIONS */
.row-actions { display: flex; gap: 6px; align-items: center; }
.action-btn {
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--np-text-2);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-weight: 600; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}
.action-btn:hover { background: var(--np-text-1); color: var(--canvas); border-color: var(--np-text-1); }
.action-btn-primary { background: var(--np-text-1); color: var(--canvas); border-color: var(--np-text-1); }
.action-btn-primary:hover { opacity: 0.88; }
.empty-state, .loading-row { padding: 64px 24px; text-align: center; color: var(--np-text-3); font-size: 14.5px; }

/* SKELETON LOADER */
.skeleton-row td { padding: 16px 22px; }
.skeleton-bar {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-bg-strong) 50%, var(--glass-bg) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.panel-foot {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 28px;
  border-top: 1px solid var(--glass-border); font-size: 13px; color: var(--np-text-3); flex-wrap: wrap; gap: 14px;
}
.foot-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.load-more-wrap { display: flex; justify-content: center; padding: 18px; border-top: 1px solid var(--glass-border); }

/* TELEGRAM SECTION */
.tg-hub-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.tg-hub-title h3 { font-size: 24px; margin: 0 0 6px; }
.tg-hub-title p { margin: 0; color: var(--np-text-2); font-size: 14.5px; }
.tg-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-filter-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--np-text-2);
  cursor: pointer; transition: all 0.15s;
}
.tg-filter-chip:hover { color: var(--np-text-1); border-color: var(--glass-border-strong); }
.tg-filter-chip.active { background: var(--np-text-1); color: var(--canvas); border-color: var(--np-text-1); }

.tg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tg-card {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.tg-card:hover { transform: translateY(-3px); border-color: var(--glass-border-strong); background: var(--glass-bg-strong); }
.tg-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tg-server { font-size: 16px; font-weight: 700; font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.tg-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--np-text-3); }
.tg-secret-box {
  background: var(--dark-black); border: 1px solid var(--glass-border); border-radius: 8px;
  padding: 8px 12px; font-size: 11.5px; font-family: 'JetBrains Mono', monospace;
  color: var(--np-text-2); display: flex; justify-content: space-between; align-items: center;
  overflow: hidden;
}
.tg-secret-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80%; }
.tg-card-actions { display: flex; gap: 8px; }
.tg-card-actions .btn { flex: 1; }

/* VERIFIER TOOL SECTION */
.verifier-card {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 34px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-width: 860px; margin: 0 auto;
}
.verifier-form { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.verifier-input {
  flex: 1; min-width: 260px; background: var(--dark-black); border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm); padding: 12px 18px; color: var(--np-text-1);
  font-family: 'JetBrains Mono', monospace; font-size: 14px; outline: none;
}
.verifier-input:focus { border-color: var(--np-text-1); }
.verifier-result {
  margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--dark-black); border: 1px solid var(--glass-border);
  display: none; align-items: center; justify-content: space-between; font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; flex-wrap: wrap; gap: 12px;
}

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 26px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--glass-border-strong); background: var(--glass-bg-strong); transform: translateY(-3px); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--np-text-2); margin: 0; line-height: 1.55; }

/* RELIABILITY STRIP */
.reliability-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.rel-card h4 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.rel-card p { margin: 0; font-size: 13px; color: var(--np-text-2); line-height: 1.6; }
.rel-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--glass-border-strong); color: var(--np-text-3); font-family: 'JetBrains Mono', monospace; }

/* HOW IT WORKS STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.step-num {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; color: var(--np-text-3);
  border: 1px solid var(--glass-border-strong); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.step-card p { font-size: 13.5px; color: var(--np-text-2); margin: 0; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14.5px; user-select: none; }
.faq-q .chev { transition: transform 0.2s; color: var(--np-text-3); font-size: 18px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; color: var(--np-text-2); font-size: 13.5px; line-height: 1.65; }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 260px; }

/* QR & POPUP MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--dark-black);
  border: 1px solid var(--glass-border-strong);
  border-radius: 20px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.22s ease;
  margin: auto;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--np-text-2);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.15s ease;
}

html.light .modal-close {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.modal-close:hover {
  background: var(--np-text-1);
  color: var(--canvas);
  transform: scale(1.08);
}

html.light .modal-close:hover {
  background: #0f172a;
  color: #ffffff;
}

.qr-container {
  margin: 18px auto;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════
   § 14.1  MEMBERSHIP & PRICING POPUP MODAL (PERFECT VIEWPORT FIT)
   ══════════════════════════════════════════════════════════════════════════ */
.membership-modal-box {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px 24px 18px;
  max-width: 530px;
  width: 100%;
  max-height: min(92vh, 620px);
  overflow-y: auto;
  margin: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  color: var(--np-text-1);
}

.membership-modal-box::-webkit-scrollbar {
  width: 4px;
}
.membership-modal-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

html.light .membership-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: #0f172a;
}
html.light .membership-modal-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--np-cyan);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.light .pricing-badge {
  background: #eff6ff;
  color: #0284c7;
  border-color: #bfdbfe;
}



.pricing-cycle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.cycle-toggle-btn {
  width: 46px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cycle-toggle-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cycle-toggle-btn.yearly {
  background: #10b981;
  border-color: #10b981;
}

.cycle-toggle-btn.yearly::after {
  transform: translateX(22px);
}

.save-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.02em;
}

html.light .save-badge {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.plan-cta-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plan-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.45);
}

.plan-cta-btn:active {
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════════════
   § 15  INNER PAGE HEADERS & KNOWLEDGE BASE / FAQ SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
}

.page-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--np-cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

html.light .page-tag {
  background: #eff6ff;
  color: #0284c7;
  border-color: #bfdbfe;
}

.page-header h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  color: var(--np-text-1);
}

.page-header p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--np-text-2);
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ SEARCH INPUT */
.faq-search-wrap {
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--np-text-3);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 14px 22px 14px 48px;
  border-radius: 999px;
  background: var(--np-surface-2);
  border: 1px solid var(--np-border-strong);
  color: var(--np-text-1);
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  box-sizing: border-box;
}

html.light .faq-search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.faq-search-input:focus {
  border-color: var(--np-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 6px 22px rgba(0, 0, 0, 0.25);
}

html.light .faq-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18), 0 6px 20px rgba(15, 23, 42, 0.1);
}

.faq-search-input::placeholder {
  color: var(--np-text-3);
}

/* FAQ CATEGORY NAV BUTTONS */
.faq-cat-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-cat-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--np-border);
  background: var(--np-surface-2);
  color: var(--np-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

html.light .faq-cat-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

.faq-cat-btn:hover {
  color: var(--np-text-1);
  border-color: var(--np-border-strong);
  background: rgba(255, 255, 255, 0.08);
}

html.light .faq-cat-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.faq-cat-btn.active {
  background: var(--np-text-1);
  color: var(--np-bg);
  border-color: var(--np-text-1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html.light .faq-cat-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* FAQ SECTION TITLE */
.faq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--np-text-1);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--np-border);
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ACCORDION ITEMS */
.faq {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--np-card-bg);
  border: 1px solid var(--np-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(14px);
}

.faq-item:hover {
  border-color: var(--np-border-strong);
}

.faq-item.open {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
}

html.light .faq-item.open {
  border-color: #0284c7;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.1);
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--np-text-1);
  user-select: none;
  transition: color 0.15s ease;
}

.faq-q:hover {
  color: var(--np-cyan);
}

html.light .faq-q:hover {
  color: #0284c7;
}

.faq-q .chev {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: var(--np-text-3);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.open .chev {
  transform: rotate(45deg);
  color: var(--np-cyan);
}

html.light .faq-item.open .chev {
  color: #0284c7;
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  color: var(--np-text-2);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item.open .faq-a {
  padding: 0 24px 22px;
  max-height: 500px;
}

@media (max-width: 640px) {
  .page-header h1 { font-size: 32px; }
  .faq-q { padding: 16px 18px; font-size: 14px; }
  .faq-item.open .faq-a { padding: 0 18px 18px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   § 17  PROXY SECURITY, RESTRICTION BADGES & PRO LOCKED CARDS
   ═════�����════════════════════════════════════════════════════════════════════ */
.tier-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

html.light .tier-access-pill {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

.tier-access-pill.pro-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #10b981;
}

html.light .tier-access-pill.pro-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.pro-locked-banner-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.15);
  margin-top: 16px;
  animation: modal-in 0.25s ease;
  backdrop-filter: blur(20px);
}

html.light .pro-locked-banner-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: #0284c7;
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.15), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

.locked-icon-halo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.pro-locked-banner-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--np-text-1);
}

.pro-locked-banner-card p {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: 14.5px;
  color: var(--np-text-2);
  line-height: 1.6;
}

.pro-locked-table-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 18px 0;
  flex-wrap: wrap;
  gap: 14px;
}

html.light .pro-locked-table-bar {
  background: #f0f9ff;
  border-color: #bae6fd;
}

/* ==========================================================================
   PRO LOCKED PROXY ROWS & SUB-100MS EXCLUSIVE BADGES
   ========================================================================== */
.pro-locked-row {
  background: rgba(255, 255, 255, 0.015) !important;
  transition: all 0.15s ease;
}

.pro-locked-row:hover {
  background: rgba(0, 212, 255, 0.04) !important;
}

html.light .pro-locked-row {
  background: #f8fafc !important;
}

html.light .pro-locked-row:hover {
  background: #f1f5f9 !important;
}

.locked-ip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--np-text-2) !important;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.locked-ip:hover {
  color: #0284c7 !important;
}

html:not(.light) .locked-ip:hover {
  color: #00d4ff !important;
}

.lock-glyph {
  font-size: 11px;
  color: #0284c7;
  opacity: 0.9;
}

html:not(.light) .lock-glyph {
  color: #00d4ff;
}

.locked-port {
  color: var(--np-text-3) !important;
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
}

.pro-speed-badge {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html:not(.light) .pro-speed-badge {
  background: rgba(0, 212, 255, 0.1) !important;
  border-color: rgba(0, 212, 255, 0.3) !important;
  color: #00d4ff !important;
}

.pro-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 3px;
}

html:not(.light) .pro-tag {
  background: #00d4ff;
  color: #000000;
}

.unlock-pro-btn {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  color: #0284c7 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

html:not(.light) .unlock-pro-btn {
  background: rgba(0, 212, 255, 0.1) !important;
  border-color: rgba(0, 212, 255, 0.35) !important;
  color: #00d4ff !important;
}

.unlock-pro-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px);
}

html:not(.light) .unlock-pro-btn:hover {
  background: #00d4ff !important;
  color: #000000 !important;
  border-color: #00d4ff !important;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3) !important;
}

/* ==========================================================================
   REAL-TIME PAGINATION CONTROLS & TABLE FOOTER
   ========================================================================== */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: var(--card-bg);
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--np-text-2);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.pagination-info strong {
  color: var(--np-text-1);
  font-weight: 700;
}

.pagination-sep {
  color: var(--glass-border-strong);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-page {
  background: var(--dark-black);
  border: 1px solid var(--glass-border);
  color: var(--np-text-2);
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Manrope', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

html.light .btn-page {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

.btn-page:hover:not(:disabled) {
  background: var(--np-text-1);
  color: var(--canvas);
  border-color: var(--np-text-1);
  transform: translateY(-1px);
}

html.light .btn-page:hover:not(:disabled) {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-current-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 10px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}

html:not(.light) .page-current-pill {
  background: #00d4ff;
  color: #000000;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--np-text-3);
}

.page-size-select {
  background: var(--dark-black);
  border: 1px solid var(--glass-border);
  color: var(--np-text-1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

html.light .page-size-select {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.page-size-select:focus {
  border-color: #0284c7;
}

/* TELEGRAM LOCKED CARD */
.tg-card-pro-locked {
  border-color: rgba(2, 132, 199, 0.25) !important;
  background: var(--card-bg) !important;
  position: relative;
  overflow: hidden;
}

html:not(.light) .tg-card-pro-locked {
  border-color: rgba(0, 212, 255, 0.25) !important;
}

.tg-card-pro-locked::after {
  content: "PRO EXCLUSIVE";
  position: absolute;
  top: 10px;
  right: -28px;
  transform: rotate(45deg);
  background: #0284c7;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

html:not(.light) .tg-card-pro-locked::after {
  background: #00d4ff;
  color: #000000;
}

html.light .tg-card-pro-locked {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.btn-pro-unlock {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s ease !important;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

html:not(.light) .btn-pro-unlock {
  background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.3) !important;
}

.btn-pro-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
}




/* ==========================================================================
   AUTHENTICATION & DEVELOPER PORTAL MODAL (GLASSMORPHISM LUXURY)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  box-sizing: border-box;
}

.auth-overlay.show {
  display: flex !important;
  animation: authOverlayFade 0.2s ease-out;
}

@keyframes authOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal {
  background: #0c1017;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  box-sizing: border-box;
  animation: authModalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalSlide {
  from { transform: translateY(12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

html.light .auth-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.auth-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #94a3b8);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.auth-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.08);
}

html.light .auth-modal .modal-close {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #475569;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

html.light .auth-title {
  color: #0f172a;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

html.light .auth-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

html.light .auth-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.auth-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.light .auth-label {
  color: #475569;
}

.auth-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

html.light .auth-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html.light .auth-input:focus {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  font-family: inherit;
  margin-top: 6px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  filter: brightness(1.05);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-alt-action {
  text-align: center;
  margin-top: 14px;
}

.auth-notice {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-tertiary, #64748b);
  text-align: center;
}

html.light .auth-footer {
  border-color: #e2e8f0;
}

/* ==========================================================================
   ADMIN PANEL — ENTERPRISE OPERATOR CONSOLE CSS
   Complete styling for Operator Gateway, Console Shell, Sidebar, Topbar,
   Cards, Tables, Modals, Toggles, and all admin UI components.
   ========================================================================== */

/* ── 1. OPERATOR AUTHENTICATION GATE ── */
.admin-gate-wrap {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f8fafc 100%);
  min-height: 100vh;
  padding: 24px;
}
.admin-gate-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  text-align: center;
  animation: adminGateFadeIn 0.5s ease-out;
}
@keyframes adminGateFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(2,132,199,0.25);
}

/* ── 2. ADMIN CONSOLE SHELL (Sidebar + Main) ── */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* ── 3. ADMIN SIDEBAR ── */
.admin-sidebar {
  width: 272px;
  min-width: 272px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-sidebar-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.admin-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.admin-cluster-badge {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 4px;
}
.admin-system-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #059669;
  text-transform: uppercase;
}
.admin-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  animation: adminPulse 2s ease-in-out infinite;
}
@keyframes adminPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 16px rgba(16,185,129,0.8); }
}

/* ── 4. SIDEBAR NAVIGATION ── */
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 12px 8px;
  overflow-y: auto;
}
.admin-nav-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 10px 4px;
  margin-bottom: 4px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 2px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: 'Manrope', sans-serif;
}
.admin-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.admin-nav-item.active {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 600;
  border: 1px solid #bae6fd;
}
.admin-nav-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}
.admin-nav-counter {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

/* ── 5. SIDEBAR FOOTER / OPERATOR CARD ── */
.admin-sidebar-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid #e2e8f0;
}
.admin-operator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
}
.admin-operator-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-operator-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}
.admin-operator-info {
  min-width: 0;
}
.admin-operator-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.admin-operator-role {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0284c7;
  text-transform: uppercase;
}

/* ── 6. ADMIN MAIN VIEWPORT ── */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── 7. ADMIN TOPBAR ── */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 16px;
}
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.admin-breadcrumb-curr {
  color: #0f172a;
  font-weight: 600;
}
.mobile-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: #475569;
}

/* ── 8. ADMIN CONTENT AREA ── */
.admin-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

/* ── 9. ADMIN VIEWS ── */
.admin-view {
  display: none;
}
.admin-view.active {
  display: block;
  animation: adminViewSlideIn 0.3s ease-out;
}
@keyframes adminViewSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 10. ADMIN CARDS ── */
.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s ease;
}
.admin-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.admin-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

/* ── 11. ADMIN STAT CARDS GRID ── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}
.admin-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}
.admin-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.admin-stat-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin: 0;
}
.admin-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.admin-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.admin-stat-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

/* ── 12. ADMIN PILLS ── */
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.admin-pill-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.admin-pill-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}
.admin-pill-suspended {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ── 13. ADMIN ACTION BUTTONS ── */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}
.admin-action-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.admin-action-btn.primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 2px 8px rgba(2,132,199,0.25);
}
.admin-action-btn.primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 4px 14px rgba(2,132,199,0.35);
  transform: translateY(-1px);
}
.admin-action-btn.danger {
  background: #fef2f2;
  color: #e11d48;
  border-color: #fecdd3;
}
.admin-action-btn.danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

/* ── 14. ADMIN TABLES ── */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.admin-table tbody tr {
  transition: background 0.12s ease;
}
.admin-table tbody tr:hover {
  background: #f8fafc;
}

/* ── 15. ADMIN TOOLBAR ── */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  min-width: 280px;
  transition: border-color 0.15s ease;
}
.admin-search-wrap:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
}
.admin-search-input {
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  flex: 1;
  font-family: 'Manrope', sans-serif;
}
.admin-search-input::placeholder {
  color: #94a3b8;
}
.admin-pills-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.admin-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.admin-filter-btn.active {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #0284c7;
}

/* ── 16. ADMIN MODAL OVERLAYS ── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal-overlay.show {
  display: flex;
  animation: adminModalOverlayIn 0.25s ease-out;
}
@keyframes adminModalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.admin-modal-box {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.04);
  animation: adminModalBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes adminModalBoxIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── 17. ADMIN TOGGLE ROW ── */
.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 20px;
}
.admin-toggle-row:last-child {
  border-bottom: none;
}
.admin-toggle-meta {
  flex: 1;
  min-width: 0;
}
.admin-toggle-meta h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 3px;
}
.admin-toggle-meta p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ── 18. ADMIN TOGGLE SWITCH ── */
.admin-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}
.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.admin-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: all 0.25s ease;
}
.admin-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  left: 3px;
  bottom: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.admin-switch input:checked + .admin-slider {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}
.admin-switch input:checked + .admin-slider::before {
  transform: translateX(22px);
}

/* ── 19. ADMIN AUTH INPUTS (login gate) ── */
.admin-gate-wrap .auth-input,
.admin-modal-box .auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.admin-gate-wrap .auth-input:focus,
.admin-modal-box .auth-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
  background: #ffffff;
}

/* OTP digit inputs in admin gate */
.admin-gate-wrap .auth-otp-wrap {
  display: flex;
  justify-content: center;
}
.admin-gate-wrap .auth-otp-digit {
  width: 46px;
  height: 52px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-gate-wrap .auth-otp-digit:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
  background: #ffffff;
}

/* Auth notice in admin gate */
.admin-gate-wrap .auth-notice {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.admin-gate-wrap .auth-notice.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecdd3;
}
.admin-gate-wrap .auth-notice.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* ── 20. MOBILE OVERLAY ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.4);
  z-index: 99;
}
.mobile-overlay.active {
  display: block;
}

/* ── 21. ADMIN TAB BUTTONS ── */
.admin-tab-btn {
  font-family: 'Manrope', sans-serif;
}
.admin-tab-btn:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

/* ── 22. TOAST CONTAINER ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-item {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: toastSlideIn 0.3s ease-out;
  max-width: 380px;
}
.toast-item.success {
  background: linear-gradient(135deg, #059669, #10b981);
}
.toast-item.error {
  background: linear-gradient(135deg, #dc2626, #e11d48);
}
.toast-item.info {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── 23. ADMIN RESPONSIVE ── */
@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 200;
    box-shadow: none;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  }
  .mobile-sidebar-toggle {
    display: flex;
  }
  .admin-content {
    padding: 18px;
  }
  .admin-topbar {
    padding: 12px 18px;
  }
}
@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-gate-card {
    padding: 28px 22px 24px;
  }
  .admin-card {
    padding: 18px;
  }
  .admin-card-header {
    flex-direction: column;
  }
}

/* ==========================================================================
   24. LUXURY TOAST NOTIFICATIONS & STATUS HUD SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 440px;
  width: auto;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 100%;
  }
}

.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(11, 19, 41, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  color: #f8fafc;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  animation: toastEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light .toast {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.95);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
}

@keyframes toastEnter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
}

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

/* SUCCESS / CREDITS */
.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.18);
}
.toast-success .toast-icon-wrap {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}
html.light .toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ERROR */
.toast-error {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.18);
}
.toast-error .toast-icon-wrap {
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.3);
}
html.light .toast-error {
  border-color: rgba(244, 63, 94, 0.45);
}

/* WARNING */
.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
}
.toast-warning .toast-icon-wrap {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-text {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
html.light .toast-close {
  color: #64748b;
}
html.light .toast-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #00f0ff, #10b981);
  animation: toastProgress linear forwards;
  transform-origin: left;
}
.toast-success .toast-progress {
  background: linear-gradient(90deg, #10b981, #00f0ff);
}
.toast-error .toast-progress {
  background: #f43f5e;
}
.toast-warning .toast-progress {
  background: #f59e0b;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ==========================================================================
   25. LUXURY NAVBAR CREDITS PILL & USER AVATAR BUTTON
   ========================================================================== */
.nav-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #10b981;
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.18);
}

.nav-credits-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
  color: #10b981;
}

html.light .nav-credits-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

html.light .nav-credits-pill:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.nav-credits-pill.depleted {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.38);
  color: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.18);
}

.credit-pulse-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

.nav-credits-pill.depleted .credit-pulse-dot {
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

html.light .user-profile-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

html.light .user-profile-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #00f0ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 240, 255, 0.35);
}

html.light .user-avatar-circle {
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.nav-pro-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px);
  z-index: 1000;
  display: none;
  animation: dropMenuEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.light .user-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e2e8f0;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.user-dropdown-menu.show {
  display: block;
}

@keyframes dropMenuEnter {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown-header {
  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
html.light .user-dropdown-header {
  border-bottom-color: #f1f5f9;
}
.user-dropdown-header strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
  font-weight: 700;
}
html.light .user-dropdown-header strong {
  color: #0f172a;
}
.user-dropdown-header span {
  font-size: 12px;
  color: #94a3b8;
}
html.light .user-dropdown-header span {
  color: #64748b;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
html.light .user-dropdown-item {
  color: #334155;
}
html.light .user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   26. DEVELOPER CONSOLE & DASHBOARD COMMAND CENTER SYSTEM
   ========================================================================== */
.page-header {
  padding: 44px 0 24px;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-family: 'Outfit', -apple-system, sans-serif;
}

html.light .page-tag {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

.dash-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

html.light .dash-user-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.dash-badge-tier {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 240, 255, 0.08);
}

html.light .stat-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html.light .stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  color: #f8fafc;
}

html.light .stat-num {
  color: #0f172a;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 4px;
}

html.light .stat-label {
  color: #475569;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-tertiary, #64748b);
}

/* ── MEMBERSHIP HUD CARD ── */
.membership-hud-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.membership-hud-card.pro-active {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(16, 185, 129, 0.12);
}

html.light .membership-hud-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

html.light .membership-hud-card.pro-active {
  border-color: rgba(16, 185, 129, 0.4);
}

.membership-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.light .membership-hud-top {
  border-bottom-color: #f1f5f9;
}

.membership-plan-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.membership-plan-badge.free {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.membership-plan-badge.pro {
  color: #000000;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.membership-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 800px) {
  .membership-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .membership-details-grid {
    grid-template-columns: 1fr;
  }
}

/* ���─ CREDIT HUD CARD ── */
.credit-hud-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 240, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.light .credit-hud-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.credit-hud-card.depleted {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(244, 63, 94, 0.1);
}

.credit-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.credit-hud-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #f8fafc;
}

html.light .credit-hud-title {
  color: #0f172a;
}

.credit-hud-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.credit-hud-big span:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

html.light .credit-hud-big span:first-child {
  color: #0f172a;
}

.credit-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 16px;
}

html.light .credit-bar-track {
  background: #f1f5f9;
}

.credit-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00f0ff, #10b981);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transition: width 0.4s ease;
}

.credit-bar-fill.depleted {
  background: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.credit-locked-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15);
}

.credit-locked-banner-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── DASHBOARD GRID & CARDS ── */
.dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 850px) {
  .dash-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dash-card, .panel, .keys-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s;
}

html.light .dash-card, html.light .panel, html.light .keys-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.dash-card-title, .panel-head, .keys-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 16.5px;
  color: #f8fafc;
}

html.light .dash-card-title, html.light .panel-head, html.light .keys-card-head {
  color: #0f172a;
}

.dash-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 18px;
}

html.light .dash-card-desc {
  color: #475569;
}

/* ── API KEY DISPLAY & INPUTS ── */
.dash-key-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  margin-bottom: 14px;
}

html.light .dash-key-display {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.dash-key-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #00f0ff;
  user-select: all;
}

html.light .dash-key-val {
  color: #0284c7;
}

.batch-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

html.light .batch-textarea {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.batch-textarea:focus {
  border-color: #00f0ff;
}

/* ── RATE METER ── */
.dash-meter-wrap {
  margin-top: 14px;
}

.dash-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 6px;
}

.dash-meter-bar {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html.light .dash-meter-bar {
  background: #f1f5f9;
}

.dash-meter-fill {
  height: 100%;
  border-radius: 9999px;
  background: #00f0ff;
  transition: width 0.3s;
}

/* ── TABLES (KEYS & AUDIT USAGE) ── */
.usage-table, .keys-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.usage-table th, .keys-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary, #94a3b8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

html.light .usage-table th, html.light .keys-table th {
  color: #64748b;
  border-bottom-color: #e2e8f0;
  background: #f8fafc;
}

.usage-table td, .keys-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

html.light .usage-table td, html.light .keys-table td {
  border-bottom-color: #f1f5f9;
}

.key-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

html.light .key-mono {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

.keys-count-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
}

.btn-revoke-key {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-revoke-key:hover {
  background: rgba(244, 63, 94, 0.22);
}

/* ── CODE INTEGRATION TERMINAL ── */
.code-container {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

html.light .code-container {
  background: #0f172a;
  border-color: #1e293b;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.code-body {
  margin: 0;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #00f0ff;
  overflow-x: auto;
}

.connect-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html.light .connect-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.connect-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.connect-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

html.light .connect-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── FOOTER GRID SYSTEM ── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 19, 41, 0.95);
  padding: 60px 0 32px;
  margin-top: 60px;
}

html.light footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

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

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f8fafc;
  margin: 0 0 4px;
}

html.light .footer-col h4 {
  color: #0f172a;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #00f0ff;
}

html.light .footer-col a {
  color: #64748b;
}

html.light .footer-col a:hover {
  color: #0284c7;
}

.disclaimer {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary, #64748b);
  margin-bottom: 28px;
}

html.light .disclaimer {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary, #64748b);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

html.light .footer-bottom {
  border-top-color: #e2e8f0;
}

/* ══════════════════════════════════════════════════════════════════════════
   § 15  MASTER RESPONSIVE & MOBILE / TABLET ENGINE (100% OPTIMIZED)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── PREVENT ANY ACCIDENTAL HORIZONTAL SCROLL / OVERFLOW ── */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* ── 1. TABLET BREAKPOINT (<= 1024px) ── */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    height: 60px;
  }

  /* Show mobile hamburger toggle */
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--np-text-1, #f8fafc);
    font-size: 19px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  html.light .menu-toggle {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .menu-toggle:active {
    transform: scale(0.92);
  }

  /* Transform desktop nav-links into full slide-in mobile navigation drawer */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 7, 10, 0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 20px 48px;
    margin: 0;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
  }

  html.light .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: #e2e8f0;
  }

  .nav-links.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links > a,
  .nav-link-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--np-text-1, #f8fafc) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  html.light .nav-links > a,
  html.light .nav-link-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a !important;
  }

  /* Mega menu dropdowns inside mobile drawer */
  .nav-item-dropdown {
    width: 100%;
  }

  .nav-item-dropdown .mega-menu-panel {
    position: static !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    padding: 12px !important;
  }

  html.light .nav-item-dropdown .mega-menu-panel {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
  }

  .nav-item-dropdown.active .mega-menu-panel,
  .nav-item-dropdown.open .mega-menu-panel {
    display: block !important;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .mega-menu-item {
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }

  /* Stats grid adjustment */
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* Hero adjustments */
  .hero {
    padding: 48px 0 36px !important;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(28px, 5.5vw, 42px) !important;
    line-height: 1.25 !important;
  }

  .hero p {
    font-size: clamp(14.5px, 2.8vw, 16.5px) !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Footer layout */
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

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

/* ── 2. MOBILE PHONE BREAKPOINT (<= 768px) ── */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Telemetry ticker */
  .telemetry-bar {
    font-size: 10px;
    padding: 5px 0;
  }

  .telemetry-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .telemetry-inner::-webkit-scrollbar { display: none; }

  /* Hero Section */
  .hero {
    padding: 36px 0 28px !important;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 34px) !important;
    letter-spacing: -0.02em !important;
  }

  .hero-actions .btn,
  .hero-actions .btn-solid {
    width: 100% !important;
    justify-content: center;
    padding: 13px 20px !important;
    font-size: 14.5px !important;
  }

  /* Stats grid on mobile */
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
  }

  .stat-num {
    font-size: 22px !important;
  }

  .stat-label {
    font-size: 11.5px !important;
  }

  .stat-sub {
    font-size: 10px !important;
  }

  /* Pricing Cards */
  .pricing-grid,
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .pricing-card {
    padding: 24px 20px !important;
  }

  /* Tables: Horizontal Scroll with smooth bounce */
  .table-responsive,
  .proxy-table-wrap,
  .admin-table-container,
  .admin-table-wrap {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .proxy-table,
  .admin-table {
    min-width: 640px !important;
  }

  /* Telegram & Verifier Hubs */
  .telegram-grid,
  .verifier-grid,
  .feature-grid,
  .protocol-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Interactive Terminal & Code Blocks */
  .terminal-box,
  .code-block,
  pre {
    font-size: 12px !important;
    padding: 14px 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Auth Modals on Mobile */
  .auth-box,
  .admin-modal-box {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px !important;
    padding: 24px 18px !important;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-box h2,
  .admin-modal-box h3 {
    font-size: 18px !important;
  }

  .auth-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 11px 13px !important;
  }

  /* Footer on Mobile */
  footer {
    padding: 40px 0 24px !important;
    margin-top: 40px !important;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ── 3. ULTRA COMPACT MOBILE (<= 400px) ── */
@media screen and (max-width: 400px) {
  .brand {
    font-size: 17px !important;
  }
  .logo-img {
    height: 22px !important;
  }
  .nav-btn-ghost,
  .nav-btn-primary {
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .stats-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── UNIVERSAL PAYMENT & CHECKOUT MODAL STYLES ── */
.checkout-modal-box {
  background: var(--card-bg, #0f172a);
  border: 1px solid var(--glass-border-strong, rgba(255,255,255,0.12));
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  padding: 30px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.light .checkout-modal-box {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.payment-method-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media screen and (max-width: 500px) {
  .payment-method-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pay-chip-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-chip-btn:hover {
  border-color: var(--brand-primary, #0284c7);
  color: var(--text-primary);
}

.pay-chip-btn.active {
  background: rgba(2,132,199,0.15);
  border-color: #0284c7;
  color: #38bdf8;
  font-weight: 700;
}

html.light .pay-chip-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

html.light .pay-chip-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

.payment-details-card {
  background: rgba(2,132,199,0.04);
  border: 1px solid rgba(2,132,199,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

html.light .payment-details-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.payment-address-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-address-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Outfit', monospace;
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

html.light .payment-address-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.copy-address-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-address-btn:hover {
  background: #0369a1;
}

/* ── REDESIGNED VIP VOUCHER / GIFT CODE CHECKOUT MODAL STYLES ── */
.modal-voucher-card {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(2, 132, 199, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

html.light .modal-voucher-card {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.modal-voucher-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modal-voucher-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
}

.modal-voucher-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.modal-voucher-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.modal-voucher-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

html.light .modal-voucher-chip {
  background: #ffffff;
  border-color: #e2e8f0;
}

.modal-code-input-row {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  transition: all 0.2s;
}

html.light .modal-code-input-row {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
}

.modal-code-input-row:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.modal-code-input-field {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-family: 'Outfit', monospace !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text-primary) !important;
  outline: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}

.modal-voucher-paste-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.modal-voucher-paste-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

.modal-voucher-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.modal-voucher-submit-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.modal-voucher-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
   ENTERPRISE MEMBERSHIP & SUBSCRIPTION PLANS SYSTEM (LIGHT & DARK THEMES)
   ========================================================================== */

.pricing-section {
  padding: 72px 0 84px;
  position: relative;
  text-align: center;
}

.pricing-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
  margin-bottom: 16px;
}

.pricing-head h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0f172a);
  margin: 0 0 12px;
}

.pricing-head p {
  color: var(--text-secondary, #475569);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* Track Switcher (Users vs Developers) */
.pricing-track-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  gap: 4px;
  margin: 0 auto 24px;
  max-width: 480px;
}

html:not(.light) .pricing-track-tabs {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-track-tab {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569 !important;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.pricing-track-tab span {
  color: inherit !important;
}

html:not(.light) .pricing-track-tab {
  color: #94a3b8 !important;
}

.pricing-track-tab:hover {
  color: #0f172a !important;
}

html:not(.light) .pricing-track-tab:hover {
  color: #ffffff !important;
}

.pricing-track-tab.active {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.pricing-track-tab.active span {
  color: #ffffff !important;
}

html:not(.light) .pricing-track-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html:not(.light) .pricing-track-tab.active span {
  color: #0f172a !important;
}

/* Billing Interval Switcher */
.pricing-cycle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

.cycle-toggle-btn {
  position: relative;
  width: 52px;
  height: 28px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  padding: 2px;
}

.cycle-toggle-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0f172a;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cycle-toggle-btn.yearly {
  background: #10b981 !important;
  border-color: #059669 !important;
}

.cycle-toggle-btn.yearly::after {
  transform: translateX(24px);
  background: #ffffff !important;
}

.save-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-save-badge 2s infinite;
}

@keyframes pulse-save-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Pricing Cards Grid (Homepage) */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html:not(.light) .plan-card {
  background: rgba(13, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.plan-card.featured {
  border: 2px solid #10b981;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.16);
}

.plan-popular-ribbon {
  position: absolute;
  top: -13px;
  right: 28px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary, #0f172a);
}

.plan-tagline {
  color: var(--text-secondary, #475569);
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.5;
}

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

.plan-currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.plan-amount {
  font-size: 48px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.04em;
  color: var(--text-primary, #0f172a);
  line-height: 1;
}

.plan-interval {
  font-size: 14px;
  color: var(--text-secondary, #475569);
  font-weight: 600;
}

.plan-subprice {
  font-size: 12.5px;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 24px;
  min-height: 20px;
}

/* Feature Checklist */
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
}

.plan-check-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature-highlight {
  color: var(--text-primary, #0f172a);
  font-weight: 700;
}

.plan-cta-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.plan-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.plan-card.featured .plan-cta-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICING PAGE MATRIX GRID (/pricing)
   ══════════════════════════════════════════════════════════════════════════ */
.pricing-hero {
  text-align: center;
  padding: 60px 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0f172a);
  margin: 0 0 14px;
}

.pricing-hero p {
  font-size: 16px;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin: 0 0 32px;
}

.pricing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto 60px;
  text-align: left;
}

.price-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

html:not(.light) .price-card-box {
  background: rgba(13, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.price-card-box.featured-plan {
  border: 2px solid #10b981;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.18);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.plan-price-num {
  font-size: 42px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary, #0f172a);
  margin-bottom: 6px;
  line-height: 1;
}

.plan-price-num .unit {
  font-size: 14px;
  color: var(--text-secondary, #475569);
  font-weight: 500;
}

@media (max-width: 960px) {
  .pricing-matrix-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   § POLISH  —  GLOBAL MICRO-INTERACTIONS & MOTION LAYER (added by audit pass)
   Uses existing design tokens only. Respects prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  body {
    animation: npPageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes npPageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  a, button, .c-btn, .studio-input, .plan-card, .pricing-card, .topup-card,
  .proxy-row, .proxy-card, .stat-card, .feature-card, .dash-card, .np-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease,
                background-color 0.22s ease,
                color 0.22s ease;
  }

  .c-btn:hover:not(:disabled),
  button:not(.c-modal-close):hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .c-btn:active:not(:disabled),
  button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
  }

  .plan-card:hover, .pricing-card:hover, .topup-card:hover,
  .feature-card:hover, .stat-card:hover, .dash-card:hover, .np-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .proxy-row:hover, .proxy-card:hover {
    transform: translateX(2px);
  }

  .c-modal-overlay {
    transition: opacity 0.2s ease;
  }

  .c-modal-overlay .c-modal {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  }
}

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

/* ── DEDICATED FULL-PAGE AUTH SCREENS (login/register/verify/forgot) ── */
.auth-page-body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.09), transparent 45%), radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.08), transparent 45%), #05070c !important;
}
html.light .auth-page-body {
  background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08), transparent 45%), radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.06), transparent 45%), #f8fafc !important;
}
.auth-page-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 28px !important;
}
.auth-page-topbar .logo-img { height: 26px !important; }
.auth-page-main {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 16px 60px !important;
}
.auth-page-card {
  background: #0d1117 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 36px 32px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
html.light .auth-page-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}
.auth-page-footer {
  text-align: center !important;
  padding: 0 20px 32px !important;
  color: #64748b !important;
  font-size: 12px !important;
}
.auth-page-footer a { color: #10b981 !important; text-decoration: none !important; font-weight: 600 !important; }
.auth-page-footer a:hover { text-decoration: underline !important; }
.auth-back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.auth-back-link:hover { color: #10b981 !important; }
.auth-page-links {
  text-align: center !important;
  margin-top: 18px !important;
  font-size: 12.5px !important;
  color: #94a3b8 !important;
}
.auth-page-links a { color: #10b981 !important; font-weight: 700 !important; text-decoration: none !important; }
.auth-page-links a:hover { text-decoration: underline !important; }
.auth-page-checkbox-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  margin: 4px 0 18px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}
.auth-page-checkbox-row input[type="checkbox"] {
  margin-top: 2px !important;
  accent-color: #10b981 !important;
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}
.auth-strength-meter {
  display: flex !important;
  gap: 4px !important;
  margin: -10px 0 16px !important;
}
.auth-strength-meter span {
  height: 3px !important;
  flex: 1 !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: background 0.2s ease !important;
}
.auth-strength-meter span.on-weak { background: #ef4444 !important; }
.auth-strength-meter span.on-fair { background: #f59e0b !important; }
.auth-strength-meter span.on-strong { background: #10b981 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   § 16  UI/UX & MOBILE OPTIMIZATION PASS (v14)
   Fixes real gaps found sitewide: many inline multi-column grids (admin
   panel forms, stat rows, dashboard sub-grids) had no mobile fallback and
   stayed squished into unreadable columns on phones. Touch targets on
   small buttons were below the 44px accessibility minimum. Some inputs
   were under 16px, which triggers unwanted auto-zoom on iOS Safari.
   ══════════════════════════════════════════════════════════════════════════ */

/* Global touch-target safety net: every clickable control gets a real
   44x44 minimum hit area on touch devices, without changing desktop sizing. */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-sm, .action-btn, button, a.btn, [role="button"] {
    min-height: 40px;
  }
  .btn-sm {
    min-height: 36px;
    padding: 8px 14px;
  }
  input[type="checkbox"], input[type="radio"] {
    min-width: 18px;
    min-height: 18px;
  }
}

/* Prevent iOS auto-zoom-on-focus by guaranteeing 16px inputs on any
   touch-sized viewport, no matter which page/component defines them. */
@media screen and (max-width: 1024px) {
  input, textarea, select {
    font-size: 16px !important;
  }
  .btn-sm, .type-chip {
    font-size: max(11px, 1em);
  }
}

/* Tablet: collapse dense multi-column inline grids (admin console forms,
   stat rows, dashboard sub-panels) down to 2 columns so fields stay
   legible and don't overflow the viewport. */
@media screen and (max-width: 900px) {
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: 1fr 340px"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.1fr 0.9fr"],
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Phone: force every remaining inline data-entry / stat grid down to a
   single column so labels, inputs, and stat numbers never get crushed
   or force horizontal scrolling. */
@media screen and (max-width: 620px) {
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: 1fr 340px"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.1fr 0.9fr"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"],
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Dashboard cards / panels get tighter padding so more content is
     visible above the fold without feeling cramped. */
  .dash-card, .panel, .keys-card {
    padding: 18px 16px;
  }

  .dash-card-title, .panel-head, .keys-card-head {
    font-size: 15px;
  }

  /* Action rows (Save/Cancel/etc button groups) stack cleanly instead of
     wrapping into a ragged, hard-to-tap line. */
  .dash-card-title,
  .keys-card-head {
    row-gap: 10px;
  }
}

/* Sticky, larger tap targets for the primary in-card action buttons on
   small screens so key actions (Save, Rotate, Redeem, etc.) are easy to
   hit with a thumb. */
@media screen and (max-width: 480px) {
  .dash-card .btn-solid,
  .keys-card .btn-solid {
    width: 100%;
  }

  /* Buttons placed in a flex row with a label (e.g. "Save Allowed IPs")
     wrap to their own full-width row rather than squeezing next to text. */
  .dash-card [style*="justify-content: space-between"] {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* Improve focus visibility for keyboard and switch-control users across
   every interactive element (accessibility + UX polish). */
.btn:focus-visible, .btn-sm:focus-visible, .action-btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid #10b981 !important;
  outline-offset: 2px !important;
}
