/* ==========================================================================
   STC-BROWSER PRO — ULTRA-FUTURISTIC CYBER GLASSMORPHIC DESIGN SYSTEM
   Commercial-Grade Anti-Detection SaaS UI & UX Engine (v3.8 Enterprise)
   ========================================================================== */

/* font hệ thống (không tải font qua Internet) — xem stc_theme.css */

:root {
  /* Futuristic Dark Core Palette */
  --bg-deep: #070913;
  --bg-surface: #0c101d;
  --bg-sidebar: #0a0d18;
  --bg-card: rgba(14, 18, 33, 0.78);
  --bg-card-hover: rgba(22, 28, 48, 0.88);
  --bg-input: #101526;
  --bg-input-focus: #141b30;
  --bg-modal: #0e1322;

  /* Cyber Radiance Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(208, 172, 103, 0.22);
  --border-hover: rgba(208, 172, 103, 0.45);
  --border-active: #D0AC67;
  --border-neon-cyan: rgba(208, 172, 103, 0.4);

  /* High-Contrast Futuristic Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-bright: #ffffff;

  /* Quantum Accents & Neon Signatures */
  --accent-indigo: #D0AC67;
  --accent-indigo-light: #E0C58A;
  --accent-cyan: #D0AC67;
  --accent-cyan-bright: #D0AC67;
  --accent-emerald: #10b981;
  --accent-emerald-bright: #34d399;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-gold: #fbbf24;
  --accent-purple: #a855f7;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #D0AC67 0%, #D0AC67 100%);
  --gradient-brand-shine: linear-gradient(135deg, #E0C58A 0%, #D0AC67 100%);
  --gradient-btn-primary: linear-gradient(135deg, #4f46e5 0%, #D0AC67 100%);
  --gradient-btn-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-btn-danger: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  --gradient-card-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Neon Shadows & Ambient Glows */
  --shadow-glow-cyan: 0 0 25px rgba(208, 172, 103, 0.3);
  --shadow-glow-indigo: 0 0 25px rgba(208, 172, 103, 0.35);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card-hover: 0 20px 45px -6px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(208, 172, 103, 0.35);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* High-Tech Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar-thumb:hover { background: rgba(208, 172, 103, 0.5); }

/* ==========================================================================
   Ambient Cyber Lighting Background
   ========================================================================== */
.cyber-ambient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-glow.glow-1 {
  width: 550px; height: 550px;
  top: -120px; left: 10%;
  background: radial-gradient(circle, #D0AC67 0%, transparent 70%);
}

.ambient-glow.glow-2 {
  width: 650px; height: 650px;
  bottom: -150px; right: 5%;
  background: radial-gradient(circle, #D0AC67 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.ambient-glow.glow-3 {
  width: 400px; height: 400px;
  top: 35%; left: 45%;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  opacity: 0.12;
  animation-duration: 26s;
  animation-delay: -10s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

.cyber-grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

/* ==========================================================================
   Toast Notification System (Floating Top-Right)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: rgba(15, 20, 36, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}
.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(244, 63, 94, 0.2);
}
.toast.toast-info {
  border-color: rgba(208, 172, 103, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(208, 172, 103, 0.2);
}
.toast.toast-warn {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
}

.toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--accent-indigo);
  width: 100%;
}
.toast-success .toast-progress { background: var(--accent-emerald); }
.toast-error .toast-progress { background: var(--accent-rose); }
.toast-info .toast-progress { background: var(--accent-cyan); }
.toast-warn .toast-progress { background: var(--accent-gold); }

/* ==========================================================================
   Cyber Confirmation Dialog
   ========================================================================== */
.confirm-dialog-box {
  max-width: 440px !important;
  text-align: center;
  padding: 30px 28px !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  background: rgba(14, 18, 32, 0.96) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(244, 63, 94, 0.25) !important;
}

.confirm-dialog-icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseWarning 1.5s infinite;
}

@keyframes pulseWarning {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
  100% { transform: scale(1); }
}

.confirm-dialog-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.confirm-dialog-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.confirm-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-dialog-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 18px;
}

/* ==========================================================================
   Sidebar (High-Tech Left Cockpit)
   ========================================================================== */
.sidebar {
  width: 255px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  backdrop-filter: blur(24px);
}

.brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  box-shadow: var(--shadow-glow-indigo);
  flex-shrink: 0;
}

.brand-glow-ring {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 16px;
  background: var(--gradient-brand);
  z-index: -1;
  opacity: 0.5;
  filter: blur(6px);
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.3; transform: scale(0.98); }
  100% { opacity: 0.7; transform: scale(1.04); }
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  background: var(--gradient-brand);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.nav-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}

.nav-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-svg {
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transform: translateX(2px);
}

.nav-item:hover .nav-icon-box {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: rgba(0, 242, 254, 0.04);
  color: #fff;
  border: 1px solid rgba(0, 242, 254, 0.18);
}

.nav-item.active .nav-icon-box {
  background: rgba(0, 242, 254, 0.12);
  border: 1.5px solid #D0AC67;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45), inset 0 0 8px rgba(0, 242, 254, 0.15);
  color: #D0AC67;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--accent-cyan-bright);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent-cyan-bright);
}

.nav-label {
  flex: 1;
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.nav-pill-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(208, 172, 103, 0.2);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(208, 172, 103, 0.4);
}

.nav-pill-tag.vip {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Sidebar Engine Status Card */
.sidebar-stats {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.engine-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  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 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.engine-details {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.engine-footer-strip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.shield-active-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(208, 172, 103, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Main Content Wrapper & Topbar
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.topbar {
  height: 72px;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breadcrumb-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breadcrumb-hub {
  color: var(--accent-indigo-light);
}

.breadcrumb-current {
  color: var(--text-muted);
}

.page-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
}

.topbar-center {
  display: flex;
  align-items: center;
}

.system-health-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

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

.health-divider {
  color: rgba(255, 255, 255, 0.15);
}

.health-ping {
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 9px 65px 9px 36px;
  font-size: 13px;
  outline: none;
  width: 250px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(208, 172, 103, 0.25);
  width: 290px;
  background: var(--bg-input-focus);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
}

.search-kbd-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* ==========================================================================
   Tactile Cyber Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-btn-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(208, 172, 103, 0.45);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--gradient-btn-success);
  color: #fff;
}
.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--gradient-btn-danger);
  color: #fff;
}
.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-tile {
  background: rgba(208, 172, 103, 0.12) !important;
  border-color: rgba(208, 172, 103, 0.35) !important;
  color: #38bdf8 !important;
}
.btn-tile:hover {
  background: rgba(208, 172, 103, 0.25) !important;
  box-shadow: 0 0 16px rgba(208, 172, 103, 0.35) !important;
}

.btn-ecom {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}
.btn-ecom:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.btn-action-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-action-group .btn-secondary.btn-sm {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-action-group .btn-secondary.btn-sm:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-action-group .btn-secondary.btn-sm:hover[style*="accent-rose"] {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: rgba(244, 63, 94, 0.5) !important;
  color: #f43f5e !important;
}

/* ==========================================================================
   Metrics Overview Dashboard (4 Luminous Glass Cards)
   ========================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 28px 0 28px;
  flex-shrink: 0;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-brand);
  opacity: 0.6;
}

.card-glow-indigo:hover { border-color: rgba(208, 172, 103, 0.45); }
.card-glow-emerald:hover { border-color: rgba(16, 185, 129, 0.45); }
.card-glow-cyan:hover { border-color: rgba(208, 172, 103, 0.45); }
.card-glow-purple:hover { border-color: rgba(168, 85, 247, 0.45); }

.metric-data {
  flex: 1;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: 'JetBrains Mono', monospace;
}

.metric-sub-tag {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.metric-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulseDot 1.5s infinite;
}

.metric-mini-chips {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mini-chip {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-chip.highlight {
  color: var(--accent-cyan);
  border-color: rgba(208, 172, 103, 0.25);
  background: rgba(208, 172, 103, 0.08);
}

.mini-chip.success {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.btn-micro-link {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-micro-link:hover { text-decoration: underline; }

.metric-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-indigo { background: rgba(208, 172, 103, 0.14); border: 1px solid rgba(208, 172, 103, 0.3); }
.metric-emerald { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.3); }
.metric-cyan { background: rgba(208, 172, 103, 0.14); border: 1px solid rgba(208, 172, 103, 0.3); }
.metric-purple { background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.3); }

/* ==========================================================================
   Views Container & Filter Pills Toolbar
   ========================================================================== */
.views-container {
  flex: 1;
  padding: 18px 28px;
  overflow-y: auto;
}

.tab-view { display: none; height: 100%; }
.tab-view.active { display: block; }

.filter-pills-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.pills-group {
  display: flex;
  gap: 6px;
  background: rgba(10, 14, 26, 0.65);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.pill-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill-svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  vertical-align: middle;
}

.pill-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.pill-btn.active {
  background: rgba(208, 172, 103, 0.22);
  color: #fff;
  border: 1px solid rgba(208, 172, 103, 0.4);
  box-shadow: 0 2px 10px rgba(208, 172, 103, 0.2);
}

.pill-count {
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}
.pill-btn.active .pill-count {
  background: var(--accent-indigo);
  color: #fff;
}

/* Country Badge Vector Styling */
.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11.5px;
  color: var(--text-main);
}

.country-code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(208, 172, 103, 0.14);
  border: 1px solid rgba(208, 172, 103, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.warmer-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

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

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.batch-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(208, 172, 103, 0.12);
  border: 1px solid rgba(208, 172, 103, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

.btn-batch-del {
  color: var(--accent-rose) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}
.btn-batch-del:hover {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: var(--accent-rose) !important;
}

/* ==========================================================================
   Commercial-Grade High-Tech Table
   ========================================================================== */
.table-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-responsive {
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  overflow-x: auto;
}

.bit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bit-table th {
  background: #0d1222;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bit-table td {
  padding: 12px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.bit-table tbody tr:hover td {
  background: rgba(208, 172, 103, 0.06);
}

/* Checkbox Modern Cyber Styling */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-indigo);
  cursor: pointer;
  vertical-align: middle;
}

/* OS & Platform Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-win { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-mac { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-android { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-ios { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-linux { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.badge-running {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-stopped {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section Tag Pills */
.section-tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(208, 172, 103, 0.15);
  color: var(--accent-indigo-light);
  border: 1px solid rgba(208, 172, 103, 0.3);
}
.section-tag-pill.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
}
.section-tag-pill.cyan {
  background: rgba(208, 172, 103, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(208, 172, 103, 0.35);
}
.section-tag-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.35);
}
.section-tag-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}
.section-tag-pill.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.35);
}

/* Proxy Cell & Flags */
.proxy-flag-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proxy-ip-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-main);
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.latency-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   Mobile Farm View (Realistic Phone Frames)
   ========================================================================== */
.mobile-farm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  padding-bottom: 20px;
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.mobile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 172, 103, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(208, 172, 103, 0.2);
}

.mobile-card-top {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.mobile-phone-frame {
  width: 62px;
  height: 114px;
  background: #090d16;
  border: 2.5px solid #243048;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.mobile-phone-notch {
  width: 26px;
  height: 5px;
  background: #182236;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  position: absolute;
  top: 0;
}

.mobile-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(208, 172, 103, 0.22) 0%, rgba(208, 172, 103, 0.22) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mobile-info { flex: 1; }
.mobile-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.mobile-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.6;
}

/* ==========================================================================
   E-Commerce Golden Presets View
   ========================================================================== */
.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.ecommerce-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.ecommerce-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

.ecommerce-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ecommerce-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.ecommerce-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.ecommerce-card-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ecommerce-badge-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ecommerce-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  flex: 1;
}

.ecommerce-specs-list li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}

.ecommerce-specs-list li span.bullet {
  color: var(--accent-emerald);
  font-size: 12px;
}

.ecommerce-proxy-tip {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 11px;
  color: var(--text-dim);
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 14px;
  line-height: 1.4;
}

.modal-ecommerce-wide {
  max-width: 1120px !important;
  width: 95% !important;
}

/* ==========================================================================
   Security Audit Grid
   ========================================================================== */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.audit-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.audit-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.audit-icon { font-size: 32px; margin-bottom: 2px; }
.audit-card h4 { font-size: 15px; font-weight: 800; color: #fff; }
.audit-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.audit-target-btn {
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.audit-picker-icon { font-size: 20px; }
.audit-picker-title { font-weight: 700; color: #fff; }
.audit-picker-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Proxy Tester Box */
.proxy-tester-box {
  background: var(--bg-input);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  max-width: 860px;
}

/* Feature Matrix List */
.feature-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Warmer Preset Cards */
.warmer-preset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.warmer-preset-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}
.warmer-preset-card.active {
  background: rgba(208, 172, 103, 0.16);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 16px rgba(208, 172, 103, 0.25);
}

.warmer-profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.warmer-profile-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

.warmer-log-line {
  margin-bottom: 4px;
  word-break: break-all;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 14px rgba(208, 172, 103, 0.25);
}

/* ==========================================================================
   Modals & BitBrowser Pro Digital Twin Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  width: 90%;
  max-width: 680px;
  overflow: hidden;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: #fff; }

/* BitModal Dialog (Twin Format) */
.bit-modal-dialog {
  width: 980px !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
  background: #0f1424 !important;
  border: 1px solid rgba(208, 172, 103, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(208, 172, 103, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.bit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px;
  background: #0c101d;
  border-bottom: 1px solid var(--border-subtle);
}

.bit-modal-header-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.bit-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.bit-modal-close:hover { color: #fff; }

.bit-modal-main {
  display: flex;
  flex: 1;
  min-height: 520px;
  max-height: calc(90vh - 130px);
  overflow: hidden;
}

/* Left Icon Navigation Bar */
.bit-modal-sidebar {
  width: 64px;
  background: #090c16;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
  flex-shrink: 0;
}

.bit-sidebar-tab {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
  border: none;
}

.bit-sidebar-tab:hover {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
}

.bit-sidebar-tab.active {
  color: var(--accent-cyan);
  background: rgba(208, 172, 103, 0.14);
}

.bit-sidebar-tab.active::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 7px;
  bottom: 7px;
  width: 3.5px;
  background: var(--accent-cyan);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Modal Body & Panes */
.bit-modal-body {
  flex: 1;
  padding: 24px 30px;
  overflow-y: auto;
  background: #0e1322;
}

.bit-tab-pane {
  display: block;
  margin-bottom: 28px;
  scroll-margin-top: 14px;
}

.bit-section-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.bit-title-pipe {
  color: var(--accent-indigo);
  font-weight: 900;
  font-size: 18px;
}

.bit-action-links {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bit-action-btn-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 12.5px;
  padding: 2px 4px;
}
.bit-action-btn-link:hover { text-decoration: underline; }

.bit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.bit-form-col {
  display: flex;
  flex-direction: column;
}

.bit-form-group {
  margin-bottom: 14px;
}

.bit-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bit-info-icon {
  font-size: 12px;
  color: #64748b;
  cursor: help;
  font-weight: normal;
}

.bit-required { color: var(--accent-rose); }

.bit-input,
.bit-select,
.bit-textarea {
  width: 100%;
  background: #141b2e;
  border: 1px solid #232d44;
  border-radius: 8px;
  color: #f8fafc;
  padding: 9px 13px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bit-input:focus,
.bit-select:focus,
.bit-textarea:focus {
  border-color: var(--accent-indigo);
  outline: none;
  box-shadow: 0 0 0 2px rgba(208, 172, 103, 0.25);
  background: #172036;
}

.bit-input::placeholder,
.bit-textarea::placeholder { color: #475569; }

.bit-input-with-counter {
  position: relative;
  width: 100%;
}
.bit-input-with-counter .bit-input { padding-right: 58px; }

.bit-counter {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
}

.bit-input-clearable {
  position: relative;
  width: 100%;
}
.bit-input-clearable .bit-input { padding-right: 32px; }

.bit-btn-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}
.bit-btn-clear:hover { color: #fff; }

/* Normal-flow button for panels/modals (NOT absolute like .bit-btn-clear, which
   is an in-input clear button). Using .bit-btn-clear on panel buttons made them
   jump to right:8px/top:50% and overlap each other. */
.stc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: #c7d2fe;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  padding: 7px 12px;
  white-space: nowrap;
}
.stc-btn:hover { background: rgba(99,102,241,0.28); color: #fff; }
.stc-btn.sm { padding: 2px 8px; font-size: 11px; }

.bit-input-with-btn {
  display: flex;
  gap: 8px;
  width: 100%;
}

.bit-input-icon-btn {
  background: #182236;
  border: 1px solid #28354c;
  border-radius: 8px;
  color: #94a3b8;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.bit-input-icon-btn:hover {
  background: #23304c;
  color: #fff;
}

.bit-radio-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
}

.bit-radio-label,
.bit-chk-label {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.bit-radio-label input[type="radio"],
.bit-chk-label input[type="checkbox"] {
  accent-color: var(--accent-indigo);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.bit-pill-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bit-pill-btn {
  padding: 6px 16px;
  border-radius: 8px;
  background: #141b2e;
  border: 1px solid #232d44;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bit-pill-btn:hover {
  border-color: var(--accent-indigo);
  color: #f1f5f9;
}

.bit-pill-btn.active {
  background: rgba(208, 172, 103, 0.16);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo-light);
}

.bit-subcard {
  background: rgba(16, 22, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.bit-subcard-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
}

.bit-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bit-setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bit-setting-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.bit-setting-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Switch Toggle */
.bit-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.bit-switch input { opacity: 0; width: 0; height: 0; }

.bit-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e283d;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bit-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #94a3b8;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .bit-slider {
  background-color: var(--accent-indigo);
  border-color: var(--accent-indigo);
}

input:checked + .bit-slider:before {
  transform: translateX(18px);
  background-color: #fff;
}

.bit-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bit-ua-box {
  position: relative;
  width: 100%;
}

.bit-ua-textarea {
  width: 100%;
  background: #141b2e;
  border: 1px solid #232d44;
  border-radius: 8px;
  color: #94a3b8;
  padding: 10px 65px 10px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  resize: none;
  box-sizing: border-box;
}

.bit-btn-change-ua {
  position: absolute;
  right: 8px;
  bottom: 10px;
  background: rgba(208, 172, 103, 0.15);
  border: 1px solid rgba(208, 172, 103, 0.4);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bit-btn-change-ua:hover {
  background: var(--accent-cyan);
  color: #070913;
}

.bit-shield-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bit-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
}

/* Modal Footer */
.bit-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  background: #090c16;
  border-top: 1px solid var(--border-subtle);
}

.bit-btn-random-all {
  background: linear-gradient(135deg, #4f46e5 0%, #D0AC67 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(208, 172, 103, 0.3);
}
.bit-btn-random-all:hover {
  box-shadow: 0 6px 20px rgba(208, 172, 103, 0.45);
  transform: translateY(-1px);
}

.bit-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bit-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bit-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bit-btn-confirm {
  background: var(--gradient-btn-primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(208, 172, 103, 0.35);
}
.bit-btn-confirm:hover {
  box-shadow: 0 6px 22px rgba(208, 172, 103, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   STC CHANGER PLUS (MiChanger Plus Style Layout inside #view-cloudphone)
   ========================================================================== */
.mc-wrap {
  background: #f3f4f6;
  color: #1f2937;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  margin: 10px 14px 18px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 12.5px;
  overflow: hidden;
  user-select: text;
}

.mc-wrap.mc-dark {
  background: #0f1523;
  color: #e2e8f0;
  border-color: #263248;
}

/* Title / Menu Strip */
.mc-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c7d8ea;
  border-bottom: 1px solid #9cb5d1;
  padding: 4px 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.mc-wrap.mc-dark .mc-menubar {
  background: #172033;
  border-bottom-color: #293856;
}

.mc-menu-left, .mc-menu-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mc-menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: #111827;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.mc-wrap.mc-dark .mc-menu-item {
  color: #e2e8f0;
}
.mc-menu-item:hover, .mc-menu-item.active {
  background: rgba(255, 255, 255, 0.65);
  border-color: #7da2ce;
}
.mc-wrap.mc-dark .mc-menu-item:hover, .mc-wrap.mc-dark .mc-menu-item.active {
  background: rgba(208, 172, 103, 0.22);
  border-color: #D0AC67;
}

.mc-api-badge {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
}
.mc-wrap.mc-dark .mc-api-badge {
  color: #38bdf8;
}

/* Fieldset / GroupBox */
.mc-groupbox {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 10px 10px 10px;
  margin: 8px 10px;
  background: #f9fafb;
  position: relative;
}
.mc-wrap.mc-dark .mc-groupbox {
  border-color: #28354e;
  background: #131b2e;
}

.mc-groupbox > legend {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  padding: 0 6px;
  margin-left: 6px;
}
.mc-wrap.mc-dark .mc-groupbox > legend {
  color: #93c5fd;
}

/* Top Connected Devices Toolbar */
.mc-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mc-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.12s ease;
  min-width: 112px;
  text-align: center;
}
.mc-wrap.mc-dark .mc-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.mc-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.mc-wrap.mc-dark .mc-btn:hover {
  background: #283548;
  border-color: #64748b;
}
.mc-btn:active {
  transform: translateY(0);
}
.mc-btn.mc-btn-blue { color: #1d4ed8; font-weight: 800; }
.mc-btn.mc-btn-green { color: #15803d; font-weight: 800; }
.mc-btn.mc-btn-red { color: #b91c1c; font-weight: 800; }
.mc-wrap.mc-dark .mc-btn.mc-btn-blue { color: #60a5fa; border-color: rgba(96,165,250,0.4); }
.mc-wrap.mc-dark .mc-btn.mc-btn-green { color: #4ade80; border-color: rgba(74,222,128,0.4); }
.mc-wrap.mc-dark .mc-btn.mc-btn-red { color: #f87171; border-color: rgba(248,113,113,0.4); }

/* Connected Devices DataGrid */
.mc-grid-container {
  border: 1px solid #6b7280;
  background: #9ca3af;
  height: 175px;
  overflow: auto;
}
.mc-wrap.mc-dark .mc-grid-container {
  border-color: #334155;
  background: #090d16;
}

.mc-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 12px;
}
.mc-wrap.mc-dark .mc-table {
  background: #0f172a;
}

.mc-table thead th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  text-align: left;
  padding: 5px 8px;
  border-right: 1px solid #d1d5db;
  border-bottom: 1px solid #9ca3af;
  white-space: nowrap;
  z-index: 1;
}
.mc-wrap.mc-dark .mc-table thead th {
  background: #1e293b;
  color: #e2e8f0;
  border-right-color: #334155;
  border-bottom-color: #475569;
}

.mc-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}
.mc-wrap.mc-dark .mc-table tbody tr {
  border-bottom-color: #1e293b;
}
.mc-table tbody tr:hover {
  background: #eff6ff;
}
.mc-wrap.mc-dark .mc-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.14);
}
.mc-table tbody tr.mc-row-selected {
  background: #dbeafe;
}
.mc-wrap.mc-dark .mc-table tbody tr.mc-row-selected {
  background: rgba(37, 99, 235, 0.28);
}

.mc-table td {
  padding: 5px 8px;
  border-right: 1px solid #e5e7eb;
  white-space: nowrap;
  color: #111827;
}
.mc-wrap.mc-dark .mc-table td {
  border-right-color: #1e293b;
  color: #e2e8f0;
}

/* Sub-tabs: Change Info | Backup | Restore | Catalog & Logs */
.mc-subtabs {
  display: flex;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid #d1d5db;
  margin-top: 6px;
}
.mc-wrap.mc-dark .mc-subtabs {
  border-bottom-color: #28354e;
}

.mc-subtab-btn {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  position: relative;
  top: 1px;
}
.mc-wrap.mc-dark .mc-subtab-btn {
  background: #172033;
  border-color: #28354e;
  color: #94a3b8;
}
.mc-subtab-btn.active {
  background: #f9fafb;
  color: #111827;
  border-bottom: 1px solid #f9fafb;
}
.mc-wrap.mc-dark .mc-subtab-btn.active {
  background: #131b2e;
  color: #ffffff;
  border-bottom-color: #131b2e;
}

.mc-subtab-pane {
  display: none;
  padding: 6px 4px 10px 4px;
}
.mc-subtab-pane.active {
  display: block;
}

/* Change Info 2-column layout */
.mc-change-grid {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 8px;
  align-items: start;
}
@media (max-width: 1100px) {
  .mc-change-grid {
    grid-template-columns: 1fr;
  }
}

.mc-form-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.mc-form-row label {
  text-align: right;
  color: #4b5563;
  font-size: 11.5px;
  white-space: nowrap;
}
.mc-wrap.mc-dark .mc-form-row label {
  color: #94a3b8;
}

.mc-input, .mc-select {
  width: 100%;
  padding: 4px 7px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #f3f4f6;
  color: #111827;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.mc-wrap.mc-dark .mc-input, .mc-wrap.mc-dark .mc-select {
  background: #0b1120;
  border-color: #2e3c56;
  color: #f1f5f9;
}
.mc-input:focus, .mc-select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
}
.mc-wrap.mc-dark .mc-input:focus, .mc-wrap.mc-dark .mc-select:focus {
  border-color: #60a5fa;
  background: #111a2e;
}

/* Phone Settings checkboxes grid */
.mc-settings-top {
  display: grid;
  grid-template-columns: auto 180px auto 210px auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 1280px) {
  .mc-settings-top {
    grid-template-columns: auto 1fr auto 1fr;
  }
}

.mc-settings-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 145px;
  gap: 8px;
  align-items: center;
}
@media (max-width: 1200px) {
  .mc-settings-body {
    grid-template-columns: 1fr 1fr;
  }
}

.mc-check-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mc-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}
.mc-wrap.mc-dark .mc-check-label {
  color: #cbd5e1;
}

/* Bottom Filter + Actions split */
.mc-bottom-split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 8px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .mc-bottom-split {
    grid-template-columns: 1fr;
  }
}

.mc-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px;
}

.mc-action-btn {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.mc-wrap.mc-dark .mc-action-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.mc-action-btn:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}
.mc-wrap.mc-dark .mc-action-btn:hover {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}
.mc-action-btn.mc-primary-act {
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 700;
}
.mc-wrap.mc-dark .mc-action-btn.mc-primary-act {
  border-color: #3b82f6;
  color: #60a5fa;
}

