@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #0a0a0a;
  --bg-canvas: #050507;
  --bg-subtle: #111111;
  --surface: rgba(17, 17, 17, 0.75);
  --surface-opaque: #111111;
  --surface-2: #161616;
  --surface-3: #222222;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-active: rgba(255, 255, 255, 0.09);
  --border: #262626;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(255, 255, 255, 0.35);
  --text: #f5f5f5;
  --text-dim: #9a9a9a;
  --text-faint: #5c5c5c;
  --primary: #ffffff;
  --primary-foreground: #0a0a0a;
  --primary-soft: rgba(255, 255, 255, 0.08);
  --primary-line: rgba(255, 255, 255, 0.18);
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.12);
  --accent-border: rgba(6, 182, 212, 0.35);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.28);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(245, 158, 11, 0.28);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.28);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --glass-blur: blur(20px) saturate(190%);
  --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 0 rgba(0, 0, 0, 0.4);
  --glass-specular-hover: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, 0.9);
  --grad: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --font-display: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, sans-serif;
  --font-body: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --mono: var(--font-mono);
  --sans: var(--font-body);
  --sidebar-w: 260px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-canvas: #f1f5f9;
  --bg-subtle: #ffffff;
  --surface: #ffffff;
  --surface-opaque: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.07);
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --border-highlight: #cbd5e1;
  --border-focus: #94a3b8;
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --primary-soft: rgba(15, 23, 42, 0.06);
  --primary-line: rgba(15, 23, 42, 0.16);
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.1);
  --accent-border: rgba(2, 132, 199, 0.35);
  --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(120, 119, 198, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input, select, textarea { font: inherit; color: inherit; }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text-dim);
  box-shadow: none;
}

::selection { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Layout primitives */
.container, .container-narrow, .container-wide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container { max-width: 1160px; }
.container-narrow { max-width: 780px; }
.container-wide { max-width: 1400px; }

.mono { font-family: var(--mono); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 13.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.bold { font-weight: 600; }
.uppercase { text-transform: uppercase; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.glow-text {
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.text-primary { color: #ffffff; }
.green { color: var(--success); }
.yellow { color: var(--warn); }
.red { color: var(--danger); }

.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.block { display: block; }

.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-36 { margin-bottom: 36px; }
.mb-48 { margin-bottom: 48px; }

.my-16 { margin-top: 16px; margin-bottom: 16px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }

.p-8 { padding: 8px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-28 { padding: 28px; }
.pt-4 { padding-top: 4px; }
.pt-24 { padding-top: 24px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: 24px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   LIQUID GLASS CARDS & PANELS
   ========================================================= */
.card, .glass-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-specular), var(--shadow);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--glass-specular-hover), var(--shadow);
}
.card-flush {
  padding: 0;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card-sub {
  font-size: 12.5px;
  color: var(--text-dim);
}

.hover-glow:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 16px 44px -8px rgba(0, 0, 0, 0.85);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  color: #ffffff;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}
.btn-primary:hover {
  background: #f4f4f5;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger-soft);
  color: #f87171;
  border-color: var(--danger-border);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-xs);
}
.btn-xs {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: var(--radius-xs);
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-block { width: 100%; }

/* =========================================================
   FORM CONTROLS
   ========================================================= */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.input, .textarea, .select {
  width: 100%;
  background: rgba(12, 12, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.input::placeholder, .textarea::placeholder {
  color: var(--text-faint);
}
.textarea {
  resize: vertical;
  line-height: 1.5;
}
.hint {
  font-size: 11.5px;
  color: var(--text-faint);
}

/* =========================================================
   TABLES & COMPARISON
   ========================================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th {
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare-highlight {
  background: rgba(56, 189, 248, 0.06) !important;
  color: #38bdf8 !important;
  font-weight: 600;
}

.model-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}
.model-price {
  font-family: var(--mono);
  font-size: 13px;
  color: #34d399;
}

/* =========================================================
   BADGES, PILLS, DOTS
   ========================================================= */
.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.badge-success {
  background: var(--success-soft);
  color: #34d399;
  border-color: var(--success-border);
}
.badge-warn {
  background: var(--warn-soft);
  color: #fbbf24;
  border-color: var(--warn-border);
}
.badge-danger {
  background: var(--danger-soft);
  color: #f87171;
  border-color: var(--danger-border);
}
.badge-accent {
  background: var(--accent-soft);
  color: #38bdf8;
  border-color: var(--accent-border);
}
.badge-primary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}
.dot-success { background: #10b981; }
.dot-warn { background: #f59e0b; }
.dot-danger { background: #ef4444; }
.dot-pulse {
  animation: pulse-dot 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* =========================================================
   PUBLIC HEADER & NAVIGATION
   ========================================================= */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  color: #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.nav a:hover, .nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.right-align { margin-left: auto; }

/* =========================================================
   DARKAPI LANDING HERO & MESH
   ========================================================= */
.darkapi-mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 680px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.45;
}
.mesh-svg {
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   CYBERPUNK NEON GLOW & BYPASS ENGINE HIGH-END STYLES
   ========================================================= */
.neon-gradient-text {
  background: linear-gradient(90deg, #c084fc 0%, #38bdf8 25%, #34d399 50%, #f472b6 75%, #c084fc 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  animation: gradientFlow 5s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6));
  display: inline-block;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cyber-glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f1f5f9;
  padding: 6px 16px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

.cyber-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399, 0 0 20px #34d399;
  animation: cyberPulse 2s infinite;
}

@keyframes cyberPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 8px #34d399; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 18px #34d399, 0 0 25px #06b6d4; }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 8px #34d399; }
}

.btn-cyber-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  color: #030712 !important;
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #0284c7 100%);
  border: 1px solid rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-cyber-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(25deg);
  animation: btnShimmer 3.5s infinite;
}
@keyframes btnShimmer {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}
.btn-cyber-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #06b6d4 100%);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #030712 !important;
}
.btn-cyber-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-cyber-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-cyber-secondary:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-cyber-secondary:active {
  transform: translateY(1px);
}

.btn-copy-cyber {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: #c084fc !important;
  transition: all 0.2s ease !important;
}
.btn-copy-cyber:hover {
  background: rgba(139, 92, 246, 0.28) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-1px);
}

/* Interactive Spotlight Card */
.spotlight-card {
  position: relative;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(139, 92, 246, 0.15), transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 14px 45px -10px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* China Top Tier Recommendations */
.china-section-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(2, 6, 23, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 22px;
  padding: 32px;
  margin-top: 24px;
  margin-bottom: 48px;
  box-shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.china-section-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.china-models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .china-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .china-models-grid {
    grid-template-columns: 1fr;
  }
}
.china-model-card {
  position: relative;
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 2;
}
.china-model-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, #38bdf8);
  box-shadow: 0 14px 40px -10px var(--card-glow, rgba(56, 189, 248, 0.35)), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.china-model-card.deepseek {
  --card-accent: #06b6d4;
  --card-glow: rgba(6, 182, 212, 0.4);
}
.china-model-card.glm {
  --card-accent: #3b82f6;
  --card-glow: rgba(59, 130, 246, 0.4);
}
.china-model-card.kimi {
  --card-accent: #ec4899;
  --card-glow: rgba(236, 72, 153, 0.4);
}
.china-model-card.minimax {
  --card-accent: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.4);
}

.hero-asymmetric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23.5rem;
  gap: 32px;
  align-items: start;
  padding-top: 18px;
  padding-bottom: 18px;
}
@media (max-width: 1024px) {
  .hero-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 20px;
  }
}

.tag-tracker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e4e4e7;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  margin-bottom: 14px;
}
.hero-title-darkapi {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.35rem, 4.3vw, 3.85rem);
  font-weight: 850;
  letter-spacing: -0.038em;
  line-height: 1.14;
  color: #f8fafc;
  margin: 0 0 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}
.hero-title-line-main {
  display: block;
  background: linear-gradient(180deg, #ffffff 25%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}
.hero-title-line-sub {
  display: inline-block;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-sub-darkapi {
  font-family: var(--font-body);
  font-size: 14px;
  color: #9a9a9a;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 18px;
}
.hero-cta-darkapi {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.base-urls-card {
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 0px;
}
.base-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.base-url-row:last-child {
  border-bottom: none;
  padding-bottom: 0px;
}
.base-url-row:first-child {
  padding-top: 0px;
}

.hero-calc-card {
  background: rgba(14, 14, 16, 0.88);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(234, 179, 8, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 80px;
}

.works-with-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.works-with-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
}
.works-with-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.works-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.works-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Quick Stats Modern Grid */
.stat-box-modern {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--glass-specular), var(--shadow);
  transition: all 0.2s ease;
}
.stat-box-modern:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--glass-specular-hover), var(--shadow);
}
.stat-box-modern .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-box-modern .lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: #f4f4f5;
  margin-bottom: 4px;
}
.stat-box-modern .sub {
  font-size: 12px;
  color: #71717a;
  line-height: 1.4;
}

/* DarkAPI Section Title & Feature Lanes */
.section-title-darkapi {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0;
}
.darkapi-feature-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .darkapi-feature-lanes { grid-template-columns: 1fr; }
}
.darkapi-lane-card {
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--glass-specular), var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.darkapi-lane-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28), 0 20px 50px -10px rgba(0, 0, 0, 0.9);
}
.lane-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  margin: 0 0 12px;
}
.lane-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.lane-desc {
  font-size: 13.5px;
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0;
}
.lane-tags {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lane-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
}
.lane-tag.highlight {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

/* Steps Grid */
.darkapi-steps-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 48px;
}
@media (max-width: 860px) {
  .darkapi-steps-grid { grid-template-columns: 1fr; gap: 24px; }
}
.darkapi-steps-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.darkapi-step-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
@media (max-width: 640px) {
  .darkapi-step-row { grid-template-columns: 1fr; gap: 8px; }
}
.step-label {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  margin: 0;
}
.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.step-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1aa;
  max-width: 580px;
}
.mono-code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(24, 24, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  color: #ffffff;
}

/* Interactive Playground Box */
.playground-box {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 24px 60px -15px rgba(0, 0, 0, 0.9);
}
.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 18, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.playground-dots {
  display: flex;
  gap: 6px;
}
.playground-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.playground-dot.red { background: #ef4444; }
.playground-dot.yellow { background: #f59e0b; }
.playground-dot.green { background: #10b981; }

.playground-body {
  padding: 24px;
  min-height: 240px;
}
.playground-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.playground-bubble.user {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
}
.playground-bubble.assistant {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
}
.reasoning-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid #38bdf8;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #bae6fd;
  margin-bottom: 12px;
  font-family: var(--mono);
}
.stream-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #38bdf8;
  vertical-align: middle;
  margin-left: 4px;
  animation: caret-blink 1s infinite;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* DarkAPI Code Card */
.darkapi-code-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #09090b;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 18, 22, 0.9);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.code-tab {
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.code-tab:hover { color: #ffffff; }
.code-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.code-endpoint {
  font-family: var(--mono);
  font-size: 12px;
  color: #71717a;
}
.code-body {
  padding: 20px 24px;
}
.code-body pre {
  margin: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.darkapi-foot-punch {
  text-align: center;
  padding: 60px 24px 30px;
  font-size: 18px;
  font-weight: 500;
  color: #71717a;
  border-top: 1px solid var(--border);
}
.darkapi-foot-punch span { color: #f4f4f5; }

/* =========================================================
   APP SHELL & SIDEBAR
   ========================================================= */
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}
.sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 8px;
}
.sidebar .group {
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #52525b;
  padding: 14px 10px 4px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7.5px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.15s ease;
}
.side-link .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.85;
}
.side-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.side-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}
.side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  height: 64px;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: all 0.15s ease;
}
.credit-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-highlight);
}
.credit-chip .amt {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}
.credit-chip .chip-add {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 600;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 12px;
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 220px;
}
.search-trigger:hover {
  border-color: var(--border-highlight);
  color: var(--text-dim);
}
.kbd-chip {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border: 1px solid var(--border-highlight);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.content {
  padding: 28px 32px 48px;
  max-width: 1400px;
}
@media (max-width: 768px) {
  .content { padding: 18px 16px 36px; }
}

/* =========================================================
   STAT CARDS & KPI BLOCKS
   ========================================================= */
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-faint);
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-feature-settings: "tnum";
}
.stat-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* =========================================================
   CODE CARDS & BLOCKS
   ========================================================= */
pre.code {
  margin: 0;
  padding: 16px;
  background: rgba(10, 10, 13, 0.9) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #f4f4f5;
  overflow-x: auto;
}
.keyrow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 12, 15, 0.9);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
}

/* =========================================================
   MODALS, TOASTS, ALERTS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%;
  max-width: 540px;
  background: #121216;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  padding: 12px 18px;
  background: #18181c;
  color: #ffffff;
  border: 1px solid var(--border-highlight);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.25s ease;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.alert-success { background: var(--success-soft); border-color: var(--success-border); color: #34d399; }
.alert-warn { background: var(--warn-soft); border-color: var(--warn-border); color: #fbbf24; }
.alert-danger { background: var(--danger-soft); border-color: var(--danger-border); color: #f87171; }

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-faint);
}
.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* =========================================================
   CONTACT DOCK / SUPPORT PILL
   ========================================================= */
.support-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.support-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #09090b;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}
.support-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

/* =========================================================
   SPECIALIZED LIQUID GLASS COMPONENTS
   ========================================================= */
.payos-qr-card {
  border-radius: 20px;
  background: rgba(18, 18, 22, 0.85) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-highlight) !important;
  box-shadow: var(--shadow-lg), var(--glass-specular);
}
.qr-box {
  background: #ffffff !important;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: var(--glass-blur);
  padding: 64px 0 36px;
}
.feature {
  position: relative;
}

.ide-download-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 8px 24px -4px rgba(56, 189, 248, 0.12);
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

.vendor-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.vendor-anthropic { background: rgba(217, 119, 87, 0.12); color: #f97316; border-color: rgba(217, 119, 87, 0.28); }
.vendor-deepseek { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.28); }
.vendor-openai { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.28); }
.vendor-google { background: rgba(99, 102, 241, 0.12); color: #818cf8; border-color: rgba(99, 102, 241, 0.28); }
.vendor-xai { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); }
.vendor-meta { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(168, 85, 247, 0.28); }

.price-box-liquid {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* =========================================================
   COMMAND PALETTE (⌘K) & SYSTEM STATUS
   ========================================================= */
.system-status-ticker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.system-status-ticker .divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
}

.cmd-palette {
  max-width: 620px;
  padding: 0 !important;
  background: rgba(14, 14, 18, 0.95) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.95), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.cmd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cmd-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px;
  color: #ffffff;
  padding: 0;
}
.cmd-input::placeholder { color: #71717a; }
.cmd-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}
.cmd-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  padding: 8px 12px 4px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f4f4f5;
  transition: all 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}
.cmd-item:hover, .cmd-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}
.cmd-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Calculator Box */
.calculator-box {
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--glass-specular), var(--shadow);
}

/* Responsive utilities */
.hide-desktop { display: none !important; }
@media (max-width: 860px) {
  .hide-desktop { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sidebar.open { left: 0; }
}


/* ========================================================
   DarkAPI Signature Interactive Tool Switcher & Setup Guide
   ======================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 92px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 26, 0.7);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.tool-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.25);
}
.tool-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}
.tool-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.tool-btn:hover svg {
  transform: scale(1.1);
}
.tool-btn.active svg {
  color: #38bdf8 !important;
  fill: currentColor;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

/* Steps Timeline */
.steps-timeline {
  position: relative;
  padding: 32px 24px;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.step-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
}
.step-item:last-child {
  padding-bottom: 0;
}
.step-number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--foreground);
  flex-shrink: 0;
}
.step-line {
  position: absolute;
  top: 34px;
  left: 17px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.step-content {
  flex: 1;
  min-width: 0;
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f5;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.step-desc {
  font-size: 13.5px;
  color: #a1a1aa;
  margin: 0 0 14px;
  line-height: 1.6;
}

/* Code Snippet Box (DarkAPI Style) */
.darkapi-codebox {
  background: #000000;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.darkapi-codebox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.darkapi-codebox-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}
.darkapi-codebox pre {
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #d4d4d4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* OS Switcher Tabs */
.os-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.os-tab {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease;
}
.os-tab:hover {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.05);
}
.os-tab.active {
  background: #f5f5f5;
  color: #0a0a0a;
  font-weight: 600;
}

/* Model Square 2-Column Grid (DarkAPI Style) */
.model-square-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .model-square-layout {
    grid-template-columns: 1fr;
  }
}
.model-filter-aside {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 84px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}
.filter-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin-bottom: 10px;
}
.filter-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #d4d4d8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}
.filter-chip-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.filter-chip-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
}
.filter-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

/* Model Card DarkAPI Modern */
.model-card-darkapi {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}
.model-card-darkapi:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 20px 40px -15px rgba(0, 0, 0, 0.9);
}


/* Cyber Scanline Laser Effect */
.cyber-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8 30%, #c084fc 70%, transparent);
  box-shadow: 0 0 15px #38bdf8, 0 0 25px #c084fc;
  opacity: 0.85;
  animation: scanlineMove 3.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}
@keyframes scanlineMove {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 0.95; }
  100% { top: 97%; opacity: 0.2; }
}

/* Card Fade In on Category Switch */
.fade-in-card {
  animation: cardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating Cyber Ambient Glow */
.cyber-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  animation: floatOrb 8s ease-in-out infinite alternate;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.15); }
}

/* ==========================================================================
   HYPER-TECH OBSIDIAN & ELECTRIC CYAN LUXURY STYLES (UI/UX PRO MAX)
   ========================================================================== */

/* Navbar Brand & Nav Items */
.logo-mark-cyan,
.logo-mark-gold {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #090d16;
  border: 1px solid rgba(6, 182, 212, 0.65);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-right: 8px;
}
.bypass-badge-cyan,
.bypass-badge-gold {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
}
.nav-item-active-cyan,
.nav-item-active-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.08);
  color: #38bdf8 !important;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  text-decoration: none;
}

/* Hero Top Tracker */
.tag-tracker-cyan,
.tag-tracker-gold {
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ping-dot-cyan,
.ping-dot-gold {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #38bdf8;
}

/* Cyan / Indigo Gradient Heading Shimmer */
.cyan-gradient-text,
.gold-gradient-text {
  background: linear-gradient(90deg, #38bdf8 0%, #00f2fe 25%, #818cf8 50%, #38bdf8 75%, #00f2fe 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  animation: shimmerCyan 4s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.55));
}

@keyframes shimmerCyan {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero Live Metric Pills */
.hero-live-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  backdrop-filter: blur(8px);
}
.hero-live-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Endpoint URL Row Badges */
.url-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Estimator Box in Setup Card */
.hero-estimator-box {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12) 0%, rgba(10, 14, 23, 0.9) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}
.calc-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #06b6d4;
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.55);
}
.btn-deposit-cyan,
.btn-deposit-gold {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(6, 182, 212, 0.45);
  transition: all 0.2s ease;
}
.btn-deposit-cyan:hover,
.btn-deposit-gold:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(30, 41, 59, 0.9));
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* 4 Features Bar (Row with circular cyan badges & laser glow) */
.hero-features-bar-container {
  margin-top: 18px;
  padding-top: 14px;
  position: relative;
}
.cyan-laser-svg,
.gold-wave-svg {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -25px;
  width: calc(100% + 40px);
  height: 120px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.45));
}
.hero-features-bar-container::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0.55), transparent);
}
.hero-bottom-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
@media (max-width: 900px) {
  .hero-bottom-features-bar {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 900px) {
  .hero-feature-item {
    border-right: none;
    padding: 0;
  }
}
.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}
.feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 2px;
}
.feature-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Floating Chat Support Pill Button */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(10, 14, 23, 0.94);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: all 0.2s ease;
}
.floating-support-btn:hover {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 4px 25px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
  color: #7dd3fc;
}

/* =========================================================
   DASHBOARD CHARTS & VISUALIZATIONS (UI/UX PRO MAX)
   ========================================================= */
.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  padding: 6px 0;
}
svg.chart {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.chart-grid line.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 4 4;
}
.chart-grid line.chart-baseline {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
}
.chart-axes text.chart-axis-x {
  fill: var(--text-dim);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
}
.chart-axes text.chart-axis-y {
  fill: var(--text-dim);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
}
.chart-line {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area {
  opacity: 0.9;
}

/* Column Chart (Vertical Bars) */
.chart-col-group {
  cursor: pointer;
  transition: all 0.2s ease;
}
.chart-col-track {
  fill: rgba(255, 255, 255, 0.04);
  transition: fill 0.2s ease;
}
.chart-col-group:hover .chart-col-track {
  fill: rgba(255, 255, 255, 0.09);
}
.chart-col-bar {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-col-group:hover .chart-col-bar {
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.85));
}
.chart-col-cap {
  fill: #ffffff;
  opacity: 0.65;
  pointer-events: none;
}
.chart-col-zero {
  fill: rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}
.chart-col-group:hover .chart-col-zero {
  fill: #f59e0b;
}
.chart-dot-group {
  cursor: pointer;
  transition: all 0.2s ease;
}
.chart-dot-halo {
  fill: #f59e0b;
  opacity: 0.18;
  transition: all 0.2s ease;
}
.chart-dot-inner {
  fill: #fbbf24;
  stroke: #09090b;
  stroke-width: 1.5;
  transition: all 0.2s ease;
}
.chart-dot-group:hover .chart-dot-halo {
  opacity: 0.55;
  r: 10;
}
.chart-dot-group:hover .chart-dot-inner {
  fill: #ffffff;
  r: 4.5;
}
.chart-empty-watermark {
  pointer-events: none;
}
.chart-empty-pill-bg {
  fill: rgba(6, 182, 212, 0.08);
  stroke: rgba(6, 182, 212, 0.28);
  stroke-dasharray: 4 4;
}
.chart-empty-text {
  fill: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chart-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.chart-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.chart-empty-text {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
}

/* =========================================================
   TOP MODELS LEADERBOARD
   ========================================================= */
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-item-card {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.bar-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-highlight);
  transform: translateX(2px);
}
.bar-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.bar-model-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bar-model-title {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-meta-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bar-val-chip {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
}
.bar-pct-chip {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 19px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--mono);
}
.rank-prime,
.rank-gold {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.rank-silver {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #ffffff;
}
.rank-bronze {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #ffffff;
}
.rank-normal {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.bar-track {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #06b6d4);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
  transition: width 0.4s ease;
}

.bar-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}
.bar-empty-icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.bar-empty-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.bar-empty-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 320px;
}

/* =========================================================
   KPI & UTILITY TOKENS
   ========================================================= */
.grad-gold-text {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpi-balance {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-link-gold {
  color: #06b6d4;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.kpi-link-gold:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.kpi-sub-pill {
  font-size: 11.5px;
  color: var(--text-dim);
}
.kpi-link-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: none;
}
.kpi-link-sub:hover {
  color: var(--text);
  text-decoration: underline;
}
.inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fbbf24;
  font-family: var(--mono);
  font-size: 12px;
}

/* =========================================================
   ADMIN PORTAL SEPARATION STYLES
   ========================================================= */
.admin-shell .sidebar {
  border-right: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.logo-mark-admin {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-right: 8px;
}
.badge-admin {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
}
.btn-portal-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-portal-switch:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.admin-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.admin-avatar-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-admin-switch-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-admin-switch-banner:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(30, 41, 59, 0.6));
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-admin-topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171 !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-admin-topbar-chip:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffffff !important;
}

/* =========================================================
   LIGHT THEME COMPLETE REDESIGN (UI/UX PRO MAX)
   ========================================================= */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-canvas: #f1f5f9;
  --bg-subtle: #ffffff;
  --surface: #ffffff;
  --surface-opaque: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.07);
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --border-highlight: #cbd5e1;
  --border-focus: #94a3b8;
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --primary-soft: rgba(15, 23, 42, 0.06);
  --accent: #0284c7;
  --accent-soft: rgba(2, 132, 199, 0.1);
  --accent-border: rgba(2, 132, 199, 0.35);
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
  background: #f8fafc;
  color: #0f172a;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

/* Public Navbar in Light Mode */
[data-theme="light"] .site-head {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .site-head .logo span[style*="color:#ffffff"] {
  color: #0f172a !important;
}
[data-theme="light"] .site-head .nav a {
  color: #475569;
}
[data-theme="light"] .site-head .nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}
[data-theme="light"] .logo-mark-cyan {
  background: #f0fdfa !important;
  border-color: #06b6d4 !important;
  color: #0891b2 !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2) !important;
}
[data-theme="light"] .bypass-badge-cyan {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0284c7 !important;
}
[data-theme="light"] .nav-item-active-cyan {
  background: rgba(6, 182, 212, 0.1) !important;
  color: #0284c7 !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
}

/* Hero Section in Light Mode */
[data-theme="light"] .hero-title-darkapi .hero-title-line-main {
  color: #0f172a !important;
}
[data-theme="light"] .hero-title-darkapi .hero-title-line-sub {
  color: #475569 !important;
}
[data-theme="light"] .hero-sub-darkapi {
  color: #334155 !important;
}
[data-theme="light"] .tag-tracker-cyan {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .cyan-gradient-text {
  background: linear-gradient(90deg, #0284c7 0%, #0891b2 40%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
}
[data-theme="light"] .hero-live-pill {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

/* Base URLs & Setup Cards in Light Mode */
[data-theme="light"] .base-urls-card,
[data-theme="light"] .hero-calc-card,
[data-theme="light"] .spotlight-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .grad-text {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 700 !important;
}
[data-theme="light"] .base-urls-card span[style*="color:#f4f4f5"],
[data-theme="light"] .hero-calc-card span[style*="color:#f4f4f5"] {
  color: #0f172a !important;
}
[data-theme="light"] .base-url-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .mono-code,
[data-theme="light"] .base-url-row .mono-code {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .url-icon-badge {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}
[data-theme="light"] .btn-copy {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0284c7 !important;
}
[data-theme="light"] .rank-prime,
[data-theme="light"] .rank-gold {
  background: linear-gradient(135deg, #0284c7, #06b6d4) !important;
  color: #ffffff !important;
}
[data-theme="light"] .bar-fill {
  background: linear-gradient(90deg, #0284c7, #06b6d4) !important;
}
[data-theme="light"] .bar-track {
  background: #e2e8f0 !important;
}
[data-theme="light"] .btn-copy:hover {
  background: #e2e8f0 !important;
  color: #0369a1 !important;
}
[data-theme="light"] #hero-calc-model,
[data-theme="light"] #docs-api-key {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .hero-estimator-box {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%) !important;
  border: 1px solid #99f6e4 !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.08) !important;
}
[data-theme="light"] .hero-estimator-box #hero-calc-total {
  color: #0f172a !important;
}
[data-theme="light"] .calc-icon-badge {
  background: #ccfbf1 !important;
  border-color: #5eead4 !important;
  color: #0d9488 !important;
}
[data-theme="light"] .check-icon-badge {
  background: #0d9488 !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn-deposit-cyan {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25) !important;
}
[data-theme="light"] .btn-deposit-cyan:hover {
  background: linear-gradient(135deg, #0369a1, #075985) !important;
}

/* Features Bar in Light Mode */
[data-theme="light"] .hero-features-bar-container::before {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), rgba(99, 102, 241, 0.35), transparent) !important;
}
[data-theme="light"] .hero-bottom-features-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .feature-icon-circle {
  background: #f0fdfa !important;
  border-color: #99f6e4 !important;
  color: #0284c7 !important;
  box-shadow: none !important;
}
[data-theme="light"] .feature-title {
  color: #0f172a !important;
}
[data-theme="light"] .feature-desc {
  color: #64748b !important;
}
[data-theme="light"] .hero-feature-item {
  border-right: 1px solid #f1f5f9 !important;
}

/* China Models Section in Light Mode */
[data-theme="light"] .china-section-banner {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.07) !important;
}
[data-theme="light"] .china-section-banner h2 {
  color: #0f172a !important;
}
[data-theme="light"] .china-section-banner p {
  color: #475569 !important;
}
[data-theme="light"] .china-model-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .china-model-card h3 {
  color: #0f172a !important;
}
[data-theme="light"] .china-model-card p {
  color: #475569 !important;
}

/* 12 Tools Grid in Light Mode */
[data-theme="light"] .tools-grid button.tool-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
[data-theme="light"] .tools-grid button.tool-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .tools-grid button.tool-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .guide-step-card,
[data-theme="light"] .code-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .guide-step-title {
  color: #0f172a !important;
}
[data-theme="light"] .guide-step-desc {
  color: #475569 !important;
}

/* Model Showcase in Light Mode */
[data-theme="light"] .model-card-darkapi {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .model-card-darkapi h3 {
  color: #0f172a !important;
}
[data-theme="light"] .model-card-darkapi p {
  color: #475569 !important;
}
[data-theme="light"] .model-card-darkapi span[style*="color:#f4f4f5"] {
  color: #0f172a !important;
}

/* Comparison Matrix in Light Mode */
[data-theme="light"] section table {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] section table th {
  background: #f8fafc !important;
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] section table td {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] section table td[style*="color:#f4f4f5"] {
  color: #0f172a !important;
}

/* Floating Support Button & Modals in Light Mode */
[data-theme="light"] .floating-support-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .announcement-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
}
[data-theme="light"] .announcement-title {
  color: #0f172a !important;
}
[data-theme="light"] .announcement-content {
  color: #334155 !important;
}
[data-theme="light"] .announcement-badge {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
}
[data-theme="light"] .announcement-btn-snooze {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0284c7 !important;
}
[data-theme="light"] .announcement-close-icon {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* Dashboard Shell & Sidebar in Light Mode */
[data-theme="light"] .app-shell {
  background: #f8fafc !important;
}
[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .sidebar .sidebar-brand {
  border-bottom: 1px solid #f1f5f9;
}
[data-theme="light"] .sidebar .sidebar-brand .logo {
  color: #0f172a !important;
}
[data-theme="light"] .sidebar .group {
  color: #64748b !important;
  font-weight: 700;
}
[data-theme="light"] .side-link {
  color: #475569 !important;
  font-weight: 500;
}
[data-theme="light"] .side-link:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}
[data-theme="light"] .side-link.active {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  font-weight: 700;
}
[data-theme="light"] .side-foot {
  border-top: 1px solid #f1f5f9;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .search-trigger {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
[data-theme="light"] .search-trigger:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
[data-theme="light"] .kbd-chip {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
[data-theme="light"] .credit-chip {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .credit-chip .amt {
  color: #0f172a !important;
}
[data-theme="light"] .user-avatar-badge {
  background: #0f172a !important;
  color: #ffffff !important;
}

[data-theme="light"] .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .card-head h3 {
  color: #0f172a !important;
  font-weight: 700;
}
[data-theme="light"] .card-sub {
  color: #64748b !important;
}

[data-theme="light"] .stat-label {
  color: #64748b !important;
  font-weight: 600;
}
[data-theme="light"] .stat-value {
  color: #0f172a !important;
}
[data-theme="light"] .stat-meta {
  color: #64748b !important;
}
[data-theme="light"] .stat-icon {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .btn-primary:hover {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
}
[data-theme="light"] .btn-secondary {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 600;
}
[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
  border-color: #94a3b8 !important;
}
[data-theme="light"] .btn-ghost {
  color: #475569 !important;
}
[data-theme="light"] .btn-ghost:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

[data-theme="light"] table {
  color: #0f172a;
}
[data-theme="light"] table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 600;
}
[data-theme="light"] table td {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] table tr:hover td {
  background: #f8fafc !important;
}
[data-theme="light"] .dim {
  color: #64748b !important;
}
[data-theme="light"] .faint {
  color: #94a3b8 !important;
}

[data-theme="light"] .badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
[data-theme="light"] .badge-accent {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}
[data-theme="light"] .badge-primary {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
}
[data-theme="light"] .badge-success {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}
[data-theme="light"] .badge-warn {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}
[data-theme="light"] .badge-danger {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}
[data-theme="light"] .badge-admin {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
  font-weight: 800;
}
[data-theme="light"] .badge-outline {
  background: transparent !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .chart-grid line.chart-grid-line {
  stroke: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .chart-grid line.chart-baseline {
  stroke: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .chart-axes text.chart-axis-x {
  fill: #64748b;
  font-weight: 500;
}
[data-theme="light"] .chart-axes text.chart-axis-y {
  fill: #64748b;
  font-weight: 500;
}
[data-theme="light"] .chart-empty-pill-bg {
  fill: #e0f2fe;
  stroke: #bae6fd;
}
[data-theme="light"] .chart-empty-text {
  fill: #0284c7;
}
[data-theme="light"] .chart-col-track {
  fill: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .chart-col-group:hover .chart-col-track {
  fill: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .chart-col-zero {
  fill: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .chart-col-group:hover .chart-col-zero {
  fill: #0284c7;
}
[data-theme="light"] .bar-item-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .bar-item-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
[data-theme="light"] .bar-val-chip {
  background: #e2e8f0;
  color: #334155;
}
[data-theme="light"] .bar-pct-chip {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}
[data-theme="light"] .bar-track {
  background: #e2e8f0;
}
[data-theme="light"] .rank-normal {
  background: #e2e8f0;
  color: #475569;
}
[data-theme="light"] .inline-code {
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #e2e8f0;
}
[data-theme="light"] pre.code {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .input, 
[data-theme="light"] .select, 
[data-theme="light"] .textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .input:focus, 
[data-theme="light"] .select:focus, 
[data-theme="light"] .textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* Light Theme Admin Separation Pill & Controls */
[data-theme="light"] .admin-shell .sidebar {
  border-right: 1px solid #fecaca !important;
  background: #fffafa !important;
}
[data-theme="light"] .logo-mark-admin {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}
[data-theme="light"] .btn-portal-switch {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
[data-theme="light"] .btn-portal-switch:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .admin-topbar-pill {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
[data-theme="light"] .btn-admin-switch-banner {
  background: linear-gradient(135deg, #fef2f2, #ffffff) !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
[data-theme="light"] .btn-admin-topbar-chip {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* =========================================================
   MOBILE RESPONSIVENESS & TOUCH UX OPTIMIZATIONS (ui-ux-pro-max)
   ========================================================= */

/* Prevent accidental horizontal overflow on mobile screens */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Clipboard Feedback Animations */
.copied-success {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #34d399 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Public Mobile Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #09090b;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav-search {
  margin: 16px 0;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  transition: all 0.15s ease;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
}
.mobile-nav-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}
.mobile-nav-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #71717a;
}
.mobile-nav-contact a {
  color: #a1a1aa;
  text-decoration: none;
}
.mobile-nav-contact a:hover {
  color: #06b6d4;
}

/* Sidebar Backdrop for Dashboard Shell */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Horizontal Scrollable Pills for Mobile Categories */
.mobile-category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.mobile-category-scroll::-webkit-scrollbar {
  display: none;
}
.mobile-category-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mobile-category-pill:hover,
.mobile-category-pill.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

/* Horizontal Scrollable Pills for Mobile Models & Tags */
.mobile-vendor-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 14px;
}
.mobile-vendor-scroll::-webkit-scrollbar {
  display: none;
}
.mobile-vendor-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mobile-vendor-pill:hover,
.mobile-vendor-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* Model ID Copy Pill */
.model-id-pill {
  transition: all 0.15s ease;
}
.model-id-pill:hover {
  background: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  color: #38bdf8 !important;
}

/* Screen width <= 860px (Tablets & Phones) */
@media (max-width: 860px) {
  .site-head .bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  /* Hero section adjustments */
  .hero-asymmetric-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    min-height: auto !important;
    padding: 16px 0 24px !important;
  }
  .hero-title {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.25 !important;
  }
  .tag-tracker {
    font-size: 10px !important;
    padding: 4px 10px !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  
  /* Base URL Rows on mobile: Stack neatly to avoid horizontal clipping */
  .base-urls-card {
    padding: 16px 14px !important;
  }
  .base-url-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .base-url-row .url-icon-badge {
    display: none;
  }
  .base-url-row .btn-copy {
    width: 100% !important;
    justify-content: center !important;
    min-height: 38px !important;
  }
  
  /* Bottom feature bar on mobile */
  .hero-bottom-features-bar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    margin-top: 24px !important;
  }
  .hero-feature-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 0 !important;
  }
  .hero-feature-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  /* Model Square layout on mobile */
  .model-square-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .model-filter-aside {
    display: none; /* Collapsed on mobile, replaced by horizontal scroll pills */
  }
  #model-list {
    grid-template-columns: 1fr !important;
  }
  
  /* Dashboard App Layout */
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    z-index: 100;
  }
  .topbar {
    padding: 10px 14px;
  }
  .content {
    padding: 14px 12px 36px;
  }
  
  /* Full width tables scrollable */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  
  /* Topup QR Card responsive */
  .payos-qr-card {
    padding: 18px 14px !important;
  }
  .payos-qr-card .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .payos-qr-card .qr-box img {
    max-width: 220px !important;
  }
}

/* Site-Wide Announcement Modal (Rich Media & 2-Hour Snooze) */
.announcement-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.announcement-backdrop.open {
  display: flex !important;
  opacity: 1;
}
.announcement-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.98), rgba(6, 10, 18, 0.99));
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 20px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.95), 0 0 35px rgba(6, 182, 212, 0.22);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.announcement-backdrop.open .announcement-card {
  transform: translateY(0) scale(1);
}
.announcement-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e4e4e7;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.15s ease;
}
.announcement-close-icon:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.9);
  transform: rotate(90deg);
}
.announcement-image-wrapper {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  background: #09090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.announcement-image {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.announcement-body {
  padding: 24px 26px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.announcement-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.announcement-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f8fafc;
  margin: 0;
  line-height: 1.35;
}
.announcement-content {
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}
.announcement-content p {
  margin: 0 0 10px;
}
.announcement-content p:last-child {
  margin-bottom: 0;
}
.announcement-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.announcement-content strong {
  color: #38bdf8;
}
.announcement-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 6px;
}
.announcement-btn-action {
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
}
.announcement-btn-snooze {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  font-weight: 700;
}

/* =========================================================
   OFFICIAL ELECTRONIC INVOICE & RECEIPT SYSTEM (Nurxeris E-Invoice)
   ========================================================= */
.invoice-page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.invoice-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}
.invoice-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px -12px rgba(0, 0, 0, 0.15);
}
.invoice-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
  padding: 12px 32px;
  border-radius: 16px;
  user-select: none;
  white-space: nowrap;
}
.invoice-watermark.paid {
  color: rgba(16, 185, 129, 0.08);
  border: 4px dashed rgba(16, 185, 129, 0.14);
}
.invoice-watermark.pending {
  color: rgba(2, 132, 199, 0.08);
  border: 4px dashed rgba(2, 132, 199, 0.14);
}
.invoice-watermark.cancelled {
  color: rgba(239, 68, 68, 0.08);
  border: 4px dashed rgba(239, 68, 68, 0.14);
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.invoice-brand {
  max-width: 380px;
}
.invoice-meta-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 8px;
}
.invoice-title-block {
  text-align: right;
}
.invoice-title-main {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.invoice-title-en {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}
.invoice-badge-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 10px 0 12px;
}
.invoice-badge-status.badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.invoice-badge-status.badge-pending {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}
.invoice-badge-status.badge-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.invoice-meta-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  font-size: 12px;
  text-align: right;
  justify-content: flex-end;
}
.invoice-meta-grid .meta-label {
  color: var(--text-dim);
}
.invoice-meta-grid .meta-val {
  color: var(--text);
  font-weight: 600;
}
.invoice-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
  position: relative;
  z-index: 1;
}
.invoice-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.party-col {
  font-size: 12.5px;
  line-height: 1.6;
}
.party-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.party-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.party-line {
  color: var(--text);
  font-size: 12px;
  margin-top: 3px;
}
.invoice-table-wrap {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.invoice-table th {
  background: var(--surface-2);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border);
}
.invoice-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.invoice-tax-note {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}
.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 16px 0 20px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.invoice-qr-proof {
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex: 1;
  min-width: 260px;
}
.invoice-mini-qr {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.invoice-mini-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.invoice-totals-box {
  width: 360px;
  max-width: 100%;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 4px 0;
}
.tot-row .mono {
  color: var(--text);
  font-weight: 600;
}
.tot-highlight {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  color: var(--text);
}
.invoice-words-box {
  padding: 12px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.words-val {
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
}
.invoice-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}
.sig-col {
  padding: 10px;
}
.sig-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}
.sig-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px;
}
.sig-space {
  height: 70px;
}
.digital-seal-box {
  margin: 12px auto;
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #10b981;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.06);
  text-align: center;
}
.seal-header {
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.06em;
}
.seal-org {
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.seal-time {
  font-size: 9.5px;
  color: var(--text-dim);
}
.seal-hash {
  font-size: 9px;
  font-family: var(--mono);
  color: #10b981;
  margin-top: 2px;
}
.sig-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sig-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}
.invoice-footer-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* =========================================================
   PRINT STYLES FOR INVOICE (@media print)
   ========================================================= */
@media print {
  body, html {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .no-print,
  .site-head,
  .sidebar,
  .topbar,
  .invoice-action-bar,
  .floating-support-btn,
  .mobile-nav-drawer,
  .mobile-nav-backdrop,
  #nx-announcement-modal {
    display: none !important;
  }
  .app-shell,
  .content,
  .grow,
  .invoice-page-wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }
  .invoice-sheet {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 24px 32px !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .invoice-sheet * {
    color: #0f172a !important;
    background: transparent !important;
  }
  .invoice-sheet .dim {
    color: #475569 !important;
  }
  .invoice-sheet .logo-mark-cyan {
    background: #0284c7 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .invoice-badge-status.badge-paid {
    border: 1px solid #10b981 !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .invoice-parties-grid,
  .invoice-totals-box,
  .invoice-qr-proof {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .invoice-table th {
    background: #f1f5f9 !important;
    border-bottom: 2px solid #0f172a !important;
    color: #0f172a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .invoice-table td {
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .invoice-words-box {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .digital-seal-box {
    border: 2px solid #059669 !important;
    background: #ecfdf5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .seal-header, .seal-hash {
    color: #059669 !important;
  }
  .invoice-watermark {
    opacity: 0.1 !important;
  }
}

/* =========================================================
   POLISHED DASHBOARD BANNERS & QUICK ACTION CHIPS
   ========================================================= */
.user-hero-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
}
.user-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
}
.user-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.user-hero-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-quick-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.quick-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

.admin-hero-banner {
  background: var(--surface);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px -8px rgba(239, 68, 68, 0.1);
}
.admin-hero-emblem {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.admin-hero-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-quick-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 18px;
}
.quick-chip-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.quick-chip-admin:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
  transform: translateY(-1px);
}

[data-theme="light"] .user-hero-banner {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .admin-hero-banner {
  background: #fffafa !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.08) !important;
}
[data-theme="light"] .quick-chip,
[data-theme="light"] .quick-chip-admin {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
[data-theme="light"] .quick-chip:hover {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}
[data-theme="light"] .quick-chip-admin:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}
.announcement-btn-snooze:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: rgba(6, 182, 212, 0.6) !important;
}

/* =====================================================================
   PURE CSS WOW ANIMATIONS (STRICT: ZERO MOUSE/CURSOR TRACKING)
   ===================================================================== */

/* 1. Ambient Cosmic Aurora Drift */
@keyframes ambientAuroraDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate3d(-35px, 25px, 0) scale(1.12);
    opacity: 0.85;
  }
  66% {
    transform: translate3d(25px, -20px, 0) scale(0.95);
    opacity: 0.7;
  }
}

.aurora-orb-cyan {
  position: absolute;
  width: 640px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(6, 182, 212, 0.28) 0%, rgba(14, 165, 233, 0.12) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: ambientAuroraDrift 16s ease-in-out infinite;
  z-index: 0;
}

.aurora-orb-indigo {
  position: absolute;
  width: 580px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 55%, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 72%);
  filter: blur(85px);
  pointer-events: none;
  animation: ambientAuroraDrift 20s ease-in-out infinite reverse;
  z-index: 0;
}

/* 2. Laser Shimmer Sweep on CTA buttons */
@keyframes laserShimmer {
  0% { transform: translateX(-150%) skewX(-20deg); }
  35%, 100% { transform: translateX(250%) skewX(-20deg); }
}

.btn-cyber-primary {
  position: relative;
  overflow: hidden;
}

.btn-cyber-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: laserShimmer 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* 3. Rotating Conic Laser Border */
@keyframes conicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.conic-border-box {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.conic-border-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 75deg, #06b6d4 115deg, #6366f1 155deg, transparent 200deg, transparent 360deg);
  animation: conicSpin 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.conic-border-inner {
  position: relative;
  z-index: 1;
  background: #0d0e12;
  border-radius: 17px;
  height: 100%;
}

/* 4. Live Radar Ping */
@keyframes radarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.radar-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: radarPulse 2s infinite;
}

/* 5. Terminal Cursor Blink */
@keyframes termCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #06b6d4;
  vertical-align: middle;
  margin-left: 2px;
  animation: termCursor 1s step-end infinite;
}

/* 6. Blog Full-Width Images & Responsive Cards */
.blog-card-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 12px 12px 0 0;
  background: #131418;
}

.blog-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-cover-img {
  transform: scale(1.05);
}

.blog-card-placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.18), #0e0f14 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card-tag-float {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.blog-detail-cover-wrap {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7);
  background: #111216;
}

.blog-detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-full-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* =====================================================================
   REAL-TIME TELEMETRY MATRIX & SLA DASHBOARD (GRAPHICAL UI WIDGET)
   ===================================================================== */
.telemetry-metrics-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.telemetry-card {
  background: rgba(18, 19, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.telemetry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 8px 24px -4px rgba(6, 182, 212, 0.2);
}

.telemetry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.telemetry-badge-cyan { color: #38bdf8; }
.telemetry-badge-emerald { color: #10b981; }
.telemetry-badge-indigo { color: #818cf8; }
.telemetry-badge-green { color: #10b981; }

.telemetry-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bar {
  width: 2.5px;
  background: #06b6d4;
  border-radius: 2px;
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}
.eq-bar-1 { height: 50%; animation-delay: 0.1s; }
.eq-bar-2 { height: 100%; animation-delay: 0.4s; }
.eq-bar-3 { height: 70%; animation-delay: 0.25s; }
.eq-bar-4 { height: 85%; animation-delay: 0.6s; }

@keyframes eqPulse {
  0% { transform: scaleY(0.35); opacity: 0.55; }
  100% { transform: scaleY(1); opacity: 1; }
}

.telemetry-pill-active {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.telemetry-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
}

.telemetry-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
}

.telemetry-num-cyan {
  background: linear-gradient(135deg, #ffffff 25%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.telemetry-num-emerald {
  background: linear-gradient(135deg, #ffffff 25%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.telemetry-num-indigo {
  background: linear-gradient(135deg, #ffffff 25%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.telemetry-unit {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.telemetry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  margin-top: 2px;
}

.telemetry-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.telemetry-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Light Mode Overrides for Telemetry */
[data-theme="light"] .telemetry-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .telemetry-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}
[data-theme="light"] .telemetry-num {
  color: #0f172a;
}
[data-theme="light"] .telemetry-label {
  color: #64748b;
}
[data-theme="light"] .telemetry-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

/* =====================================================================
   MOBILE-FIRST UX UPGRADES (NATIVE APP FEEL)
   ===================================================================== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px !important;
  }

  /* 1. Mobile Floating Bottom Navigation Dock */
  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 14, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
  }

  [data-theme="light"] .mobile-bottom-dock {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: #e2e8f0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  }

  .mobile-dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
    min-width: 58px;
  }

  .mobile-dock-btn.active {
    color: #38bdf8;
  }

  [data-theme="light"] .mobile-dock-btn {
    color: #64748b;
  }

  [data-theme="light"] .mobile-dock-btn.active {
    color: #0284c7;
  }

  .mobile-dock-highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8 !important;
    font-weight: 700;
  }

  [data-theme="light"] .mobile-dock-highlight {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    border: none;
  }

  /* 2. Headline & Spacing on Mobile */
  .hero-title-darkapi {
    font-size: clamp(1.7rem, 6.4vw, 2.15rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 12px !important;
  }

  .hero-sub-darkapi {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  /* 3. Button Layout on Mobile */
  .hero-cta-darkapi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-cta-darkapi .btn-cyber-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 12px;
  }

  .hero-cta-subgroup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-cta-subgroup .btn-cyber-secondary {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 10px;
    text-align: center;
  }

  /* 4. Support Dock on Mobile: Hide floating pills to prevent screen clutter & overlap */
  .support-dock,
  .floating-support-btn {
    display: none !important;
  }

  /* 5. Telemetry Matrix on Mobile: Clean 2x2 */
  .telemetry-metrics-matrix {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }

  .telemetry-card {
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }

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

  .telemetry-label {
    font-size: 10px !important;
  }

  /* 6. Base URLs Card on Mobile */
  .base-urls-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .base-url-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .base-url-row .btn-copy {
    width: 100%;
    justify-content: center;
    min-height: 34px !important;
    padding: 6px 12px !important;
  }

  /* 7. Calculator on Mobile */
  .hero-calc-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    margin-top: 14px;
  }

  /* 8. Container horizontal margins on mobile */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}



/* ============================================================
   BẢNG VINH DANH TOP CHI TIÊU REALTIME (LUXURY PODIUM & LEADERBOARD)
   ============================================================ */
.leaderboard-card {
  position: relative;
  background: radial-gradient(130% 120% at 50% 0%, rgba(22, 28, 44, 0.85) 0%, rgba(10, 13, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(56, 189, 248, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px 26px;
  overflow: hidden;
}
.lb-glow-top {
  position: absolute;
  top: -90px;
  left: 20%;
  width: 420px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(234, 179, 8, 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(55px);
}
.lb-glow-bottom {
  position: absolute;
  bottom: -80px;
  right: 15%;
  width: 360px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

/* Header */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 20px;
}
.lb-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lb-trophy-badge {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(234, 179, 8, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px -4px rgba(234, 179, 8, 0.3);
  flex-shrink: 0;
}
.lb-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 4px;
}
.lb-main-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.lb-sub-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #94a3b8;
}
.lb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: lbPulse 1.8s infinite;
}
@keyframes lbPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ============================================================
   PODIUM GRID (TOP 3 VIP SHOWCASE)
   ============================================================ */
.lb-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.lb-podium-card {
  position: relative;
  background: rgba(18, 24, 38, 0.7);
  border-radius: 18px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-podium-card:hover {
  transform: translateY(-4px);
}

/* Rank 1 Gold (Champion) */
.podium-rank-1 {
  background: linear-gradient(180deg, rgba(38, 32, 18, 0.88) 0%, rgba(18, 22, 32, 0.96) 100%);
  border: 1px solid rgba(234, 179, 8, 0.48);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 179, 8, 0.16);
  padding: 26px 20px 24px;
}
.podium-rank-1 .lb-podium-crown {
  font-size: 30px;
  margin-bottom: -10px;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(234, 179, 8, 0.7));
  animation: lbCrownFloat 3s ease-in-out infinite;
}
@keyframes lbCrownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.podium-rank-1 .lb-podium-avatar {
  width: 62px;
  height: 62px;
  font-size: 26px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  color: #000;
  border: 3px solid #fef08a;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.55);
}

/* Rank 2 Silver */
.podium-rank-2 {
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.8) 0%, rgba(16, 20, 30, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(148, 163, 184, 0.12);
}
.podium-rank-2 .lb-podium-avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #64748b 100%);
  color: #0f172a;
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.35);
}

/* Rank 3 Bronze */
.podium-rank-3 {
  background: linear-gradient(180deg, rgba(34, 26, 20, 0.8) 0%, rgba(16, 20, 30, 0.96) 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(217, 119, 6, 0.12);
}
.podium-rank-3 .lb-podium-avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #9a3412 100%);
  color: #fff;
  border: 2px solid #fdba74;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.35);
}

.lb-podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.badge-gold-pill {
  background: rgba(234, 179, 8, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.42);
}
.badge-silver-pill {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.38);
}
.badge-bronze-pill {
  background: rgba(217, 119, 6, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(217, 119, 6, 0.4);
}
.lb-podium-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.lb-podium-title {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
  margin-bottom: 14px;
}
.lb-podium-stats {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-podium-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.lb-podium-stat-label {
  color: #71717a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.lb-podium-stat-spent {
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.lb-podium-stat-dep {
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  font-weight: 600;
  color: #34d399;
}

/* ============================================================
   TABLE SECTION & DIVIDER
   ============================================================ */
.lb-divider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 16px;
}
.lb-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.lb-divider-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.lb-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lb-row {
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
}
.lb-row:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}
.row-vip1 {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 3px solid #eab308;
}
.row-vip2 {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 3px solid #94a3b8;
}
.row-vip3 {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 3px solid #d97706;
}
.lb-row td {
  padding: 12px 16px;
  vertical-align: middle;
}
.lb-row td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.lb-row td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lb-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lb-rank-num {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  flex-shrink: 0;
}
.rank-num-1 { background: rgba(234, 179, 8, 0.2); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.45); }
.rank-num-2 { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.4); }
.rank-num-3 { background: rgba(217, 119, 6, 0.18); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.4); }
.rank-num-4 { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.35); }
.rank-num-5 { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14.5px;
  flex-shrink: 0;
}
.lb-avatar-gold { background: linear-gradient(135deg, #eab308, #ca8a04); color: #000; box-shadow: 0 0 12px rgba(234, 179, 8, 0.4); }
.lb-avatar-silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; box-shadow: 0 0 10px rgba(148, 163, 184, 0.3); }
.lb-avatar-bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; box-shadow: 0 0 10px rgba(217, 119, 6, 0.3); }
.lb-avatar-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.lb-avatar-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.lb-avatar-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }

.lb-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-name {
  color: #f8fafc;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.lb-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.lb-badge-gold { background: rgba(234, 179, 8, 0.2); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.35); }
.lb-badge-silver { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.lb-badge-bronze { background: rgba(217, 119, 6, 0.15); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.3); }
.lb-badge-cyan { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.lb-badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.lb-badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.lb-sub {
  color: #94a3b8;
  font-size: 11.5px;
}

.lb-col-deposited {
  text-align: right;
}
.lb-val-deposited {
  color: #34d399;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lb-micro-sub {
  color: #71717a;
  font-size: 11px;
  margin-top: 2px;
}

.lb-col-spent {
  text-align: right;
}
.lb-spent-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.lb-val-spent {
  color: #fbbf24;
  font-family: var(--font-mono, monospace);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
}
.lb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  display: inline-block;
  animation: lbPulse 2s infinite;
}
.lb-bump-animation {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #6ee7b7 !important;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
}

/* ============================================================
   RESPONSIVE (PODIUM & TABLE)
   ============================================================ */
@media (min-width: 861px) {
  .podium-rank-2 { order: 1; }
  .podium-rank-1 { order: 2; }
  .podium-rank-3 { order: 3; }
}

@media (max-width: 860px) {
  .lb-podium-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .podium-rank-1 { order: 1; }
  .podium-rank-2 { order: 2; }
  .podium-rank-3 { order: 3; }
  .leaderboard-card {
    padding: 20px 14px;
  }
  .lb-row td {
    padding: 10px 10px;
  }
  .lb-trophy-badge {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .lb-main-title {
    font-size: 1.1rem;
  }
}
