/* ==========================================================================
   METASHIELD HYBRID - STREAMLINED MODERN UI SUITE
   Clean 3-Card Summary: Total, Live, Dead/Error | 100% Mobile & PC Responsive
   ========================================================================== */

:root {
  /* Rich Cyber Slate Dark Theme */
  --bg-app: #080d1a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 33, 58, 0.9);
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-active: rgba(99, 102, 241, 0.55);

  /* High-Contrast Crisp Typography */
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-indigo: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);

  /* Semantic Status */
  --live-color: #10b981;
  --live-bg: rgba(16, 185, 129, 0.12);
  --live-border: rgba(16, 185, 129, 0.35);

  --dead-color: #f43f5e;
  --dead-bg: rgba(244, 63, 94, 0.12);
  --dead-border: rgba(244, 63, 94, 0.35);

  --amber-color: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #e2e8f0;
  --border-subtle: #e2e8f0;
  --border-active: #6366f1;

  --text-pure: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --live-color: #059669;
  --live-bg: #ecfdf5;
  --live-border: #a7f3d0;

  --dead-color: #e11d48;
  --dead-bg: #fff1f2;
  --dead-border: #fecdd3;

  --amber-color: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
}

/* ==========================================================================
   LIGHT THEME POLISHED STYLES (Clean Modern SaaS Interface)
   ========================================================================== */
[data-theme="light"] body {
  background-color: #f1f5f9;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.06) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(244, 63, 94, 0.04) 0px, transparent 50%);
}

[data-theme="light"] .app-header {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .brand-title {
  color: #0f172a;
}

[data-theme="light"] .brand-gradient {
  background: linear-gradient(135deg, #1877f2 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-tagline {
  color: #64748b;
}

[data-theme="light"] .badge-pro {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(99, 102, 241, 0.12));
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .status-indicator {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}

[data-theme="light"] .status-indicator.status-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

[data-theme="light"] .icon-sun {
  display: none !important;
}

[data-theme="light"] .icon-moon {
  display: block !important;
}

[data-theme="dark"] .icon-sun {
  display: block !important;
}

[data-theme="dark"] .icon-moon {
  display: none !important;
}

[data-theme="light"] .glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .drop-zone {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
}

[data-theme="light"] .drop-zone:hover,
[data-theme="light"] .drop-zone.dragover {
  background: #f5f3ff;
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .upload-icon-circle {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .drop-title {
  color: #0f172a;
}

[data-theme="light"] .drop-desc {
  color: #64748b;
}

[data-theme="light"] .browse-link {
  color: #4f46e5;
  font-weight: 700;
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .stat-card.stat-live {
  background: linear-gradient(180deg, #ffffff 60%, #f0fdf4 100%);
  border-color: #86efac;
  box-shadow: 0 4px 18px -2px rgba(16, 185, 129, 0.12), 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .stat-card.stat-live:hover {
  border-color: #34d399;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.22);
}

[data-theme="light"] .stat-card.stat-dead {
  background: linear-gradient(180deg, #ffffff 60%, #fff1f2 100%);
  border-color: #fecdd3;
  box-shadow: 0 4px 18px -2px rgba(244, 63, 94, 0.12), 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .stat-card.stat-dead:hover {
  border-color: #fb7185;
  box-shadow: 0 8px 24px -4px rgba(244, 63, 94, 0.22);
}

[data-theme="light"] .badge-emerald {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #059669;
  border-color: #86efac;
}

[data-theme="light"] .badge-rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
  color: #e11d48;
  border-color: #fda4af;
}

[data-theme="light"] .pill-rate-emerald {
  background: #d1fae5;
  color: #047857;
  border-color: #a7f3d0;
}

[data-theme="light"] .pill-rate-rose {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fecdd3;
}

[data-theme="light"] .btn-stat-copy-live {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
  color: #047857;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.14);
}

[data-theme="light"] .btn-stat-copy-live:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .btn-stat-copy-dead {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-color: #fda4af;
  color: #be123c;
  box-shadow: 0 1px 3px rgba(244, 63, 94, 0.14);
}

[data-theme="light"] .btn-stat-copy-dead:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

[data-theme="light"] .badge-neutral {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .badge-emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .badge-rose {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

[data-theme="light"] .stat-number {
  color: #0f172a;
}

[data-theme="light"] .stat-label {
  color: #64748b;
}

[data-theme="light"] .mode-selector {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .mode-pill {
  color: #64748b;
}

[data-theme="light"] .mode-option:hover .mode-pill {
  color: #0f172a;
}

[data-theme="light"] .mode-option.active .mode-pill {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

[data-theme="light"] .toggle-page-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .toggle-page-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .toggle-page-icon {
  color: #64748b;
}

[data-theme="light"] .toggle-label-text {
  color: #1e293b;
}

[data-theme="light"] .toggle-badge {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .toggle-switch-track {
  background: #cbd5e1;
}

[data-theme="light"] .toggle-knob {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-page-btn.active {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .toggle-page-btn.active .toggle-page-icon {
  color: #0284c7;
}

[data-theme="light"] .toggle-page-btn.active .toggle-label-text {
  color: #0284c7;
}

[data-theme="light"] .toggle-page-btn.active .toggle-badge {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

[data-theme="light"] .toggle-page-btn.active .toggle-switch-track {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.35);
}

[data-theme="light"] .select-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .select-input:hover {
  border-color: #94a3b8;
}

[data-theme="light"] .select-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .btn-icon-subtle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme="light"] .btn-icon-subtle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-theme="light"] .range-val {
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

[data-theme="light"] input[type="range"] {
  background: #e2e8f0;
}

[data-theme="light"] .progress-track {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .progress-labels {
  color: #64748b;
}

[data-theme="light"] #progressPercent {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .search-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .search-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .search-box input {
  color: #0f172a;
}

[data-theme="light"] .pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme="light"] .pill:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-theme="light"] .pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

[data-theme="light"] .pill-live.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

[data-theme="light"] .pill-dead.active {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

[data-theme="light"] .table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] thead {
  background: #f8fafc;
}

[data-theme="light"] th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] td {
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

[data-theme="light"] tr:hover td {
  background-color: #f8fafc;
}

[data-theme="light"] .col-uid {
  color: #0f172a;
}

[data-theme="light"] .col-name {
  color: #0f172a;
}

[data-theme="light"] .user-display-name {
  color: #0f172a;
}

[data-theme="light"] .btn-details {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .btn-details:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

[data-theme="light"] .table-avatar {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

[data-theme="light"] .terminal-drawer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .terminal-drawer summary {
  color: #0f172a;
}

[data-theme="light"] .terminal-body {
  background: #0f172a;
  border: 1px solid #1e293b;
}

[data-theme="light"] dialog[open].detail-dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .dialog-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .dialog-header {
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .modal-name-group h3 {
  color: #0f172a;
}

[data-theme="light"] .mono-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .btn-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

[data-theme="light"] .info-grid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .info-item label,
[data-theme="light"] .dialog-section label {
  color: #64748b;
}

[data-theme="light"] .info-value {
  color: #0f172a;
}

[data-theme="light"] .cookie-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .cookie-box code {
  color: #334155;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-theme="light"] ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow accents */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
  bottom: 60px;
  left: -120px;
}

/* App Layout */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 650px) {
  .app-layout {
    padding: 1rem 0.85rem;
    gap: 1.25rem;
  }
}

/* Main Content Container with Elegant Section Separation */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 650px) {
  .main-content {
    gap: 1.15rem;
  }
}

/* Header (Floating Glass SaaS Navbar) */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1877f2 0%, #3b82f6 50%, #6366f1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px -2px rgba(24, 119, 242, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.brand-icon:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 24px -2px rgba(24, 119, 242, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.brand-glow {
  position: absolute;
  inset: -3px;
  background: radial-gradient(circle, rgba(24, 119, 242, 0.4) 0%, transparent 70%);
  border-radius: 15px;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.brand-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.3);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}

.status-indicator:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.status-indicator.status-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.status-indicator.status-active .pulse-dot {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.status-indicator.status-active .pulse-ping {
  background: rgba(59, 130, 246, 0.45);
}

.pulse-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  position: relative;
  z-index: 1;
}

.pulse-ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 0;
}

@keyframes radarPing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.theme-toggle-btn svg {
  transition: transform 0.2s ease;
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: var(--text-pure);
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
}

@media (max-width: 600px) {
  .app-header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-icon svg {
    width: 19px;
    height: 19px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-tagline {
    display: none;
  }

  .badge-pro {
    padding: 0.12rem 0.4rem;
    font-size: 0.6rem;
  }

  .status-indicator {
    padding: 0.35rem 0.65rem;
    font-size: 0.74rem;
    gap: 0.4rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}

@media (max-width: 420px) {
  .engine-word {
    display: none;
  }

  .app-header {
    padding: 0.55rem 0.75rem;
  }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
}

@media (max-width: 650px) {
  .glass-card {
    padding: 1.15rem;
  }
}

/* Panel Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
}

.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .panel-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

.toggle-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-page-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-pure);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.toggle-page-btn:active {
  transform: scale(0.98);
}

.toggle-content-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.toggle-page-icon {
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.toggle-label-text {
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.toggle-content-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.toggle-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  transition: all 0.25s ease;
}

/* The Animated Switch Track & Knob */
.toggle-switch-track {
  width: 34px;
  height: 18px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.35);
  position: relative;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Active State (ON) */
.toggle-page-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.toggle-page-btn.active .toggle-page-icon {
  color: #38bdf8;
  transform: scale(1.1);
}

.toggle-page-btn.active .toggle-label-text {
  color: #38bdf8;
}

.toggle-page-btn.active .toggle-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.toggle-page-btn.active .toggle-switch-track {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.toggle-page-btn.active .toggle-knob {
  transform: translateX(16px);
  background: #ffffff;
}

@media (max-width: 680px) {
  .toggle-page-btn {
    width: 100%;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-md);
  }
}

.mode-selector {
  display: flex;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  gap: 0.25rem;
}

.mode-option {
  flex: 1;
  display: flex;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.mode-option input {
  display: none;
}

.mode-pill {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  box-sizing: border-box;
}

.mode-option.active .mode-pill {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

@media (max-width: 600px) {
  .mode-selector {
    width: 100%;
    border-radius: var(--radius-pill);
    padding: 0.22rem;
    gap: 0.2rem;
  }

  .mode-option {
    flex: 1;
  }

  .mode-pill {
    width: 100%;
    min-height: 36px;
    font-size: 0.78rem;
    padding: 0.45rem 0.45rem;
    white-space: nowrap;
  }
}

/* Direct Paste & Execution Grid - Compact & Perfectly Balanced */
.paste-and-config-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .paste-and-config-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

.paste-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.paste-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
}

.paste-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.paste-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  flex-shrink: 0;
}

.paste-label-icon {
  color: var(--accent-primary, #6366f1);
  flex-shrink: 0;
}

.paste-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.58rem;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.32);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.paste-badge.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(99, 102, 241, 0.25));
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.badge-dot-dim {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
  opacity: 0.95;
}

.badge-dot-active {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: badgeDotPulse 1.8s infinite ease-in-out;
}

@keyframes badgeDotPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px #10b981;
  }

  50% {
    transform: scale(1.4);
    box-shadow: 0 0 14px #34d399, 0 0 22px rgba(52, 211, 153, 0.6);
  }
}

.badge-num {
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.paste-badge.active .badge-num {
  color: #a5b4fc;
}

.badge-unit {
  font-size: 0.72rem;
  opacity: 0.9;
  white-space: nowrap;
}

.badge-bump {
  animation: badgeBump 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBump {
  0% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.paste-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-paste-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.btn-paste-tool:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn-load-file {
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.btn-load-file:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.65);
  color: #e0f2fe;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.btn-load-file:hover .tool-icon-upload {
  transform: translateY(-1.5px);
}

.tool-icon-upload {
  transition: transform 0.2s ease;
}

.btn-clear-paste {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.32);
  color: #fb7185;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.18);
}

.btn-clear-paste:hover {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.6);
  color: #ffe4e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}

.btn-clear-paste:hover .tool-icon-clear {
  transform: rotate(90deg);
}

.tool-icon-clear {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 520px) {
  .paste-header {
    gap: 0.25rem;
  }

  .paste-title-wrap {
    gap: 0.3rem;
  }

  .paste-label {
    font-size: 0.78rem;
  }

  .paste-badge {
    font-size: 0.7rem;
    padding: 0.16rem 0.45rem;
    gap: 0.25rem;
  }

  .paste-tools {
    gap: 0.25rem;
  }

  .btn-paste-tool {
    font-size: 0.7rem;
    padding: 0.24rem 0.42rem;
    gap: 0.22rem;
  }
}

@media (max-width: 375px) {
  .paste-label {
    font-size: 0.74rem;
  }

  .btn-paste-tool {
    padding: 0.22rem 0.35rem;
    font-size: 0.68rem;
  }
}

.paste-textarea {
  width: 100%;
  height: 95px;
  min-height: 85px;
  max-height: 140px;
  resize: vertical;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.paste-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.config-controls-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-content: center;
}

.speed-group {
  margin-top: 0;
}

.action-buttons-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.action-buttons-row button {
  flex: 1;
}

/* Light mode styles for Paste Input */
[data-theme="light"] .paste-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .paste-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .paste-label {
  color: #0f172a;
}

[data-theme="light"] .paste-label-icon {
  color: #4f46e5;
}

[data-theme="light"] .paste-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .paste-badge .badge-num {
  color: #1d4ed8;
  font-weight: 700;
}

[data-theme="light"] .badge-dot-dim {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
  opacity: 0.95;
}

[data-theme="light"] .paste-badge.active {
  background: linear-gradient(135deg, #ecfdf5 0%, #e0e7ff 100%);
  color: #065f46;
  border-color: #34d399;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .paste-badge.active .badge-num {
  color: #047857;
  font-weight: 800;
}

[data-theme="light"] .badge-dot-active {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

[data-theme="light"] .btn-load-file {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  color: #0284c7;
  font-weight: 600;
  box-shadow: 0 2px 6px -1px rgba(2, 132, 199, 0.15), 0 1px 2px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .btn-load-file:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #38bdf8;
  color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .btn-clear-paste {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-weight: 600;
  box-shadow: 0 2px 6px -1px rgba(225, 29, 72, 0.12), 0 1px 2px rgba(225, 29, 72, 0.06);
}

[data-theme="light"] .btn-clear-paste:hover {
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(129, 140, 248, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Config Stack */
.config-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.form-row-responsive {
  display: flex;
  gap: 0.85rem;
}

@media (max-width: 550px) {
  .form-row-responsive {
    flex-direction: column;
  }
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-wrapper {
  display: flex;
  gap: 0.5rem;
}

select {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  font-weight: 500;
  width: 100%;
}

select:focus {
  border-color: var(--accent-primary);
}

.btn-icon-subtle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon-subtle:hover {
  color: var(--text-pure);
  border-color: var(--border-active);
}

.range-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.range-val {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: #818cf8;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-danger,
.btn-success,
.btn-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  animation: pulseDanger 1.8s infinite;
  flex: 1;
}

@keyframes pulseDanger {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  }
}

.btn-danger:hover {
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  flex: 1;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Progress bar */
.progress-container {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-label-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: var(--radius-pill);
  transition: width 0.08s ease-out;
  will-change: width;
}

/* ==========================================================================
   CLEAN 2-CARD SUMMARY GRID (Live, Dead) - ULTRA PREMIUM SAAS DESIGN
   ========================================================================== */

.stats-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .stats-grid-clean {
    gap: 0.75rem;
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
}

.stat-card.stat-live {
  border-color: rgba(16, 185, 129, 0.25);
}

.stat-card.stat-dead {
  border-color: rgba(244, 63, 94, 0.25);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stat-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.badge-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.badge-rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.1));
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-pure);
}

.stat-pill-rate {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pill-rate-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-rate-rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.stat-card-mid {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.1rem 0;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-pure);
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
  line-height: 1;
}

.btn-stat-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  width: 100%;
  border: 1px solid transparent;
}

.btn-stat-copy svg {
  flex-shrink: 0;
}

.btn-stat-copy-live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-stat-copy-live:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-stat-copy-dead {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.btn-stat-copy-dead:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  border-color: #f43f5e;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 500px) {
  .stat-card {
    padding: 0.85rem 0.85rem;
    gap: 0.65rem;
  }

  .stat-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .stat-icon-badge svg {
    width: 15px;
    height: 15px;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-pill-rate {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .btn-stat-copy {
    padding: 0.42rem 0.5rem;
    font-size: 0.725rem;
  }
}

.text-emerald {
  color: var(--live-color);
}

.text-rose {
  color: var(--dead-color);
}

/* Table Section & Toolbar */
.table-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

@media (max-width: 650px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .toolbar-copy-group {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }

  .btn-tb-copy {
    flex: 1;
    justify-content: center;
    padding: 0.42rem 0.5rem;
    font-size: 0.75rem;
  }

  .filter-pills {
    display: flex;
    width: 100%;
    gap: 0.35rem;
  }

  .filter-pills .pill {
    flex: 1;
    text-align: center;
    padding: 0.42rem 0.35rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.toolbar-copy-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tb-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-tb-copy svg {
  flex-shrink: 0;
}

.btn-tb-copy-live {
  background: var(--live-bg);
  border-color: var(--live-border);
  color: var(--live-color);
}

.btn-tb-copy-live:hover {
  background: var(--live-color);
  color: #ffffff;
  border-color: var(--live-color);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-tb-copy-dead {
  background: var(--dead-bg);
  border-color: var(--dead-border);
  color: var(--dead-color);
}

.btn-tb-copy-dead:hover {
  background: var(--dead-color);
  color: #ffffff;
  border-color: var(--dead-color);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-tb-copy-live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .btn-tb-copy-live:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

[data-theme="light"] .btn-tb-copy-dead {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

[data-theme="light"] .btn-tb-copy-dead:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
}

.pill.active {
  background: var(--text-pure);
  color: var(--bg-app);
  border-color: var(--text-pure);
}

.pill-live.active {
  background: var(--live-color);
  color: #000;
  border-color: var(--live-color);
}

.pill-dead.active {
  background: var(--dead-color);
  color: #fff;
  border-color: var(--dead-color);
}

/* Table Wrapper */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: 65vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  container-type: inline-size;
}

table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
}

th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
  color: var(--text-main);
}

tr:hover td {
  background-color: rgba(99, 102, 241, 0.06);
}

.col-sl {
  width: 50px;
  text-align: center;
}

.col-avatar {
  width: 60px;
  text-align: center;
}

.col-uid {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-pure);
}

.col-name {
  font-weight: 600;
  color: var(--text-pure);
}

.name-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sub-page-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  width: fit-content;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.badge-page-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.col-gender {
  text-align: center;
}

.col-age {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-live {
  background: var(--live-bg);
  color: var(--live-color);
  border: 1px solid var(--live-border);
}

.badge-cp,
.badge-dead {
  background: var(--dead-bg);
  color: var(--dead-color);
  border: 1px solid var(--dead-border);
}

.badge-exp {
  background: var(--amber-bg);
  color: var(--amber-color);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.action-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.action-pay {
  background: rgba(16, 185, 129, 0.16);
  color: var(--live-color);
  border: 1px solid var(--live-border);
}

.action-hold {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-color);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.action-reject {
  background: rgba(244, 63, 94, 0.14);
  color: var(--dead-color);
  border: 1px solid var(--dead-border);
}

.table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.btn-details {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-details:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.75rem;
}

.empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 0.5rem;
}

.empty-state h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
}

/* Container Queries for Responsive Card View on Mobile */
@container (width < 750px) {

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-block-end: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    padding: 0.75rem 1rem;
  }

  td:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
    padding-bottom: 0.5rem;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
    font-size: 0.85rem;
  }

  td:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
  }

  td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* Terminal Drawer */
.terminal-drawer {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
}

.terminal-drawer summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--text-pure);
  list-style: none;
}

.terminal-drawer summary::-webkit-details-marker {
  display: none;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.log-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  margin-top: 1rem;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.785rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-line {
  color: var(--text-muted);
}

.log-line.live {
  color: var(--live-color);
}

.log-line.cp,
.log-line.dead {
  color: var(--dead-color);
}

.log-line.system {
  color: #818cf8;
}

/* Top-Layer Dialog Modal */
dialog.detail-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 600px;
  width: 92vw;
  margin: auto;
  outline: none;

  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(0.95);
  }
}

dialog[open].detail-dialog {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    transform: scale(1);

    @starting-style {
      transform: scale(0.95);
    }
  }
}

dialog.detail-dialog::backdrop {
  background-color: transparent;
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.25s;
  transition-behavior: allow-discrete;
}

dialog[open].detail-dialog::backdrop {
  background-color: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(12px);

  @starting-style {
    background-color: transparent;
    backdrop-filter: blur(0px);
  }
}

.dialog-content {
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #f8fafc;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.user-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-avatar-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #818cf8;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.modal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.2rem;
}

.btn-close {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border-color: #f43f5e;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

@media (max-width: 500px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item label,
.dialog-section label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.info-value {
  font-size: 0.925rem;
  font-weight: 600;
  color: #ffffff;
}

.action-highlight {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--live-color);
}

.dialog-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-desc {
  font-size: 0.725rem;
  color: #64748b;
}

.reason-box {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.cookie-box-wrapper {
  position: relative;
}

.cookie-pre {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  padding-right: 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #4f46e5;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.btn-modal-close {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-modal-close:hover {
  background: #334155;
}

/* Toast Card */
.toast-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid #6366f1;
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 99999;
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-card.hidden,
.hidden {
  display: none !important;
}

/* ==========================================================================
   SEO, PRIVACY & KNOWLEDGE SECTIONS (High-End SaaS Polish)
   ========================================================================== */

/* Trust & Zero Data Retention Card */
.trust-privacy-card {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
  position: relative;
  overflow: hidden;
}

.trust-privacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #6366f1, #10b981);
}

.trust-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.trust-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-header-text {
  flex: 1;
}

.trust-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.trust-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.trust-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.trust-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0 0 0.35rem 0;
}

.trust-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 780px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
}

.trust-item-icon-svg {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.trust-item-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-pure);
}

.trust-item-info p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* SEO Section Wrappers */
.seo-section {
  margin-top: 3.5rem;
}

.seo-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.seo-section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 0.75rem;
}

.seo-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.seo-section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* How It Works Steps Grid (Balanced 3-Column Layout) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0 0 0.5rem 0;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.step-desc code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* Features Grid (Symmetrical 2x2 Layout - NEVER lonely orphan cards!) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
}

.feature-icon-wrap.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.feature-icon-wrap.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.feature-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.feature-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0 0 0.45rem 0;
}

.feature-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
  user-select: none;
  list-style: none;
}

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

.faq-chevron {
  color: var(--text-dim);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 1.4rem 1.25rem 1.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: var(--text-pure);
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* ==========================================================================
   ULTRA-COMPACT PREMIUM FOOTER BAR
   ========================================================================== */
.app-footer {
  margin-top: 3rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-brand-name {
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.footer-dot {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.footer-copy {
  color: var(--text-dim);
  font-weight: 500;
}

.footer-secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
}

.footer-secure-tag svg {
  color: #10b981;
  flex-shrink: 0;
}

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #3b82f6;
}

.footer-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-support-pill svg {
  flex-shrink: 0;
  color: #38bdf8;
}

.footer-support-pill strong {
  font-weight: 700;
}

.footer-support-pill:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(14, 165, 233, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   LIGHT THEME ENHANCEMENTS FOR NEW SECTIONS
   ========================================================================== */
[data-theme="light"] .trust-privacy-card {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.85) 0%, #ffffff 100%);
  border-color: #a7f3d0;
  box-shadow: 0 10px 30px -4px rgba(16, 185, 129, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .trust-icon-wrap {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

[data-theme="light"] .trust-badge {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

[data-theme="light"] .trust-badge-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

[data-theme="light"] .trust-title {
  color: #0f172a;
}

[data-theme="light"] .trust-desc {
  color: #475569;
}

[data-theme="light"] .trust-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .trust-item-info h4 {
  color: #0f172a;
}

[data-theme="light"] .trust-item-info p {
  color: #64748b;
}

[data-theme="light"] .seo-section-badge {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

[data-theme="light"] .seo-section-title {
  color: #0f172a;
}

[data-theme="light"] .seo-section-subtitle {
  color: #64748b;
}

[data-theme="light"] .step-card,
[data-theme="light"] .feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .step-card:hover,
[data-theme="light"] .feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .step-title,
[data-theme="light"] .feature-title {
  color: #0f172a;
}

[data-theme="light"] .step-desc,
[data-theme="light"] .feature-desc {
  color: #475569;
}

[data-theme="light"] .step-desc code,
[data-theme="light"] .faq-answer code {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .faq-item:hover {
  border-color: #cbd5e1;
}

[data-theme="light"] .faq-question {
  color: #0f172a;
}

[data-theme="light"] .faq-answer {
  color: #475569;
}

[data-theme="light"] .faq-answer strong {
  color: #0f172a;
}

[data-theme="light"] .trust-item-icon-svg {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .step-badge {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

[data-theme="light"] .step-icon-wrap {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .feature-icon-wrap.icon-indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .feature-icon-wrap.icon-emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .feature-icon-wrap.icon-cyan {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0891b2;
}

[data-theme="light"] .feature-icon-wrap.icon-amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

[data-theme="light"] .app-footer {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .footer-brand-name {
  color: #0f172a;
}

[data-theme="light"] .footer-dot,
[data-theme="light"] .footer-copy {
  color: #94a3b8;
}

[data-theme="light"] .footer-secure-tag {
  color: #059669;
}

[data-theme="light"] .footer-secure-tag svg {
  color: #059669;
}

[data-theme="light"] .footer-link {
  color: #64748b;
}

[data-theme="light"] .footer-link:hover {
  color: #2563eb;
}

[data-theme="light"] .footer-support-pill {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

[data-theme="light"] .footer-support-pill svg {
  color: #0284c7;
}

[data-theme="light"] .footer-support-pill:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

@media (max-width: 768px) {
  .trust-privacy-card {
    padding: 1.25rem;
  }

  .trust-header {
    flex-direction: column;
    gap: 0.85rem;
  }

  .seo-section-title {
    font-size: 1.35rem;
  }

  .app-footer {
    padding: 0.85rem 1.25rem;
    margin-top: 2rem;
  }

  .footer-bar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.45rem;
  }

  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.95rem;
    font-size: 0.8rem;
  }

  .footer-support-pill {
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   ABOUT US NAVBAR BUTTON & ABOUT PAGE STYLING
   ========================================================================== */
.nav-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1rem;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-about-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.nav-about-btn:active {
  transform: translateY(0);
}

.nav-about-btn.active-btn {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.25));
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* Light theme nav-about-btn */
[data-theme="light"] .nav-about-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .nav-about-btn:hover {
  background: #f8fafc;
  border-color: #6366f1;
  color: #4f46e5;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .nav-about-btn.active-btn {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

/* About Page layout */
.about-page-main {
  max-width: 960px;
  margin: 2rem auto 0 auto;
}

.about-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.about-hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0.75rem 0 0.85rem 0;
}

.about-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.about-cta {
  margin-top: 3.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
}

.about-cta h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0 0 0.5rem 0;
}

.about-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.6);
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

@media (max-width: 600px) {
  .nav-about-btn {
    padding: 0 0.65rem;
    height: 34px;
    font-size: 0.75rem;
  }

  .about-hero-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   MOBILE HAMBURGER MENU & SLIDE-OVER SIDEBAR DRAWER
   ========================================================================== */

/* Responsive visibility */
.desktop-only {
  display: inline-flex !important;
}

.menu-toggle-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .menu-toggle-btn {
    display: flex !important;
  }
}

.menu-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .menu-toggle-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .menu-toggle-btn:hover {
  background: #f8fafc;
  border-color: #6366f1;
  color: #4f46e5;
}

/* ==========================================================================
   PERFORMANCE & INSTANT TAP RESPONSIVENESS
   Eliminates 300ms mobile tap delay and prevents transition jank
   ========================================================================== */
button,
a,
input,
select,
textarea,
label,
[role="button"],
.btn,
.mode-option,
.toggle-page-btn,
.btn-icon,
.drawer-nav-item,
.nav-about-btn,
.footer-support-pill,
.footer-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* Nav Drawer Backdrop (GPU Optimized - Zero Blur Jank) */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.2s ease-out;
  touch-action: none;
}

.nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Nav Drawer (Hardware Accelerated 60fps / 120fps Transform) */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 84vw;
  background: #0f172a;
  border-left: 1px solid var(--border-subtle);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.15rem;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.35);
  contain: layout paint;
}

.nav-drawer.active {
  transform: translate3d(0, 0, 0);
}

[data-theme="light"] .nav-drawer {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -6px 0 28px rgba(15, 23, 42, 0.08);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-drawer:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
  transform: rotate(90deg);
}

[data-theme="light"] .btn-close-drawer {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .btn-close-drawer:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-nav-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

.drawer-nav-item.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(99, 102, 241, 0.2));
  border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .drawer-nav-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .drawer-nav-item.active {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.drawer-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  flex-shrink: 0;
}

.drawer-item-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.drawer-item-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

[data-theme="light"] .drawer-item-icon {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .drawer-item-icon.icon-emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

[data-theme="light"] .drawer-item-icon.icon-cyan {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0891b2;
}

.drawer-item-text {
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
}

.drawer-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.nav-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-status-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .drawer-status-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.drawer-status-text {
  display: flex;
  flex-direction: column;
}

.drawer-status-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
}

[data-theme="light"] .drawer-status-title {
  color: #15803d;
}

.drawer-status-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Drawer Support Item */
.drawer-support-item {
  position: relative;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  background: rgba(14, 165, 233, 0.06) !important;
}

.drawer-support-item:hover {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(14, 165, 233, 0.45) !important;
}

[data-theme="light"] .drawer-support-item {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}

[data-theme="light"] .drawer-support-item:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}

.drawer-item-icon.icon-telegram {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}

[data-theme="light"] .drawer-item-icon.icon-telegram {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

.drawer-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-handle-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  letter-spacing: 0.02em;
}

[data-theme="light"] .support-handle-pill {
  background: #0284c7;
  color: #ffffff;
}

.drawer-external-arrow {
  margin-left: auto;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.drawer-support-item:hover .drawer-external-arrow {
  transform: translate(2px, -2px);
  color: #38bdf8;
}

/* Nav Support Button */
.nav-support-btn {
  border-color: rgba(14, 165, 233, 0.3) !important;
  color: #38bdf8 !important;
}

.nav-support-btn:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25) !important;
}

[data-theme="light"] .nav-support-btn {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .nav-support-btn:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}

/* Mobile responsive navbar tweaks */
@media (max-width: 480px) {
  .status-indicator .engine-word,
  .status-indicator .status-text {
    display: none !important;
  }

  .status-indicator {
    padding: 0 0.55rem !important;
    min-width: 34px !important;
    height: 34px !important;
    justify-content: center !important;
  }

  .theme-toggle-btn,
  .menu-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }

  .header-badges {
    gap: 0.45rem !important;
  }
}


