/* ==========================================================
   FAST V2RAY — HIGH-SPEED TELECOM CLOUD NOC ADMIN PANEL
   Theme: PrimeLine Matte Obsidian Dark, Glow Accents
   Typography: Inter + Space Grotesk + JetBrains Mono
   Strictly Zero Emojis — FontAwesome 6 Vector Icons Only
   ========================================================== */

:root {
  /* Obsidian Palette (PrimeLine Matte System) */
  --bg-obsidian-0: #08090d;
  --bg-obsidian-1: #101116;
  --bg-obsidian-2: #15161d;
  --bg-sidebar: #0b0b0f;
  --bg-card: linear-gradient(135deg, #15161d 0%, #101116 50%, #0b0b0f 100%);
  --bg-card-hover: linear-gradient(135deg, #181a24 0%, #13141d 50%, #0e0f15 100%);
  --bg-card-elevated: #15161d;

  /* Borders & Glass Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: #3b82f6;
  --border-card-glow: rgba(59, 130, 246, 0.25);

  /* Telecom Accent Colors */
  --cyan-accent: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.28);
  --blue-accent: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.28);
  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.28);
  --amber-accent: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.28);
  --rose-accent: #ef4444;
  --rose-glow: rgba(239, 68, 68, 0.28);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: rgba(255, 255, 255, 0.90);
  --text-dim: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.40);
  --text-faint: rgba(255, 255, 255, 0.20);

  /* Border Radii */
  --radius-xl: 2rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Font Families (PrimeLine Exact Hierarchy) */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout dimensions */
  --sidebar-w: 260px;
  --topbar-h: 72px;
  --bottom-bar-h: 62px;
}

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

html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-obsidian-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Thin Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) rgba(13, 19, 34, 0.6);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(13, 19, 34, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

/* Ambient Backdrop Glows (PrimeLine System) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}
.glow-1 {
  top: -100px;
  right: -50px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
}
.glow-2 {
  bottom: 0px;
  left: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%);
}
.glow-3 {
  top: 35%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}

/* ----------------------------------------------------------
   OBSIDIAN CARD SYSTEM (PRIMELINE MATTE CARDS)
   ---------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 35px -15px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-title-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title-cluster i {
  font-size: 16px;
  color: var(--cyan-accent);
}
.card-title-cluster h3,
.card-title-cluster h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.2px;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   AUTHENTICATION & LOGIN MODAL
   ---------------------------------------------------------- */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95);
  padding: 38px 32px;
  border-radius: 2rem;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 1.25rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.login-brand h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.login-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-error-msg {
  color: var(--rose-accent);
  font-size: 12px;
  text-align: center;
  min-height: 18px;
  margin-top: 10px;
  font-weight: 500;
}

/* ----------------------------------------------------------
   ADMIN APP LAYOUT & SHELL
   ------------------------------------------------------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  max-width: 100vw;
}

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

/* ── Cyber Sidebar (Fixed on Desktop NOC) ── */
.cyber-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-head {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.head-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-accent), var(--blue-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.head-title h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.2;
}

.badge-v {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.3);
  letter-spacing: 0.5px;
}

.btn-close-sidebar {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  display: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.btn-close-sidebar:hover {
  color: var(--text-pure);
}

/* Sidebar Menu (PrimeLine Pill Buttons) */
.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.menu-btn i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--text-pure);
}
.menu-btn:hover i {
  color: var(--text-pure);
}

.menu-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12) !important;
  font-weight: 700 !important;
}
.menu-btn.active i {
  color: #000000 !important;
}
.menu-btn.active .badge-counter {
  background: #000000;
  color: #ffffff;
}

.badge-counter {
  margin-left: auto;
  background: var(--amber-accent);
  color: #08090d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-bottom {
  padding: 16px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-info i {
  color: var(--cyan-accent);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--rose-accent);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ----------------------------------------------------------
   MAIN WORKSPACE & TOPBAR
   ---------------------------------------------------------- */
.cyber-workspace {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100% - var(--sidebar-w));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
}

.workspace-topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.btn-sidebar-toggle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.btn-sidebar-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-pure);
}

.topbar-info h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-portal-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-pure);
  transform: translateY(-1px);
}

/* Tab Panes */
.tab-pane {
  display: none;
  padding: 24px 24px 80px;
  flex: 1;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.22s ease;
}

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

/* ----------------------------------------------------------
   SECTION HEADINGS & SPACING
   ---------------------------------------------------------- */
.section-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-subhead i {
  color: var(--cyan-accent);
  font-size: 16px;
}
.section-subhead h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.2px;
}

.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-xs { margin-bottom: 6px; }

.font-mono { font-family: var(--font-mono); }
.font-sm { font-size: 13px; }

/* ----------------------------------------------------------
   SERVER HEALTH CARDS (TAB 1 - PRIMELINE TELEMETRY)
   ---------------------------------------------------------- */
.health-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}
.health-quad > * {
  min-width: 0;
  max-width: 100%;
}

.health-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.health-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

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

.tile-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.tile-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.10);
  color: var(--cyan-accent);
  border-color: rgba(6, 182, 212, 0.25);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.10);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.25);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}
.badge-amber {
  background: rgba(245, 158, 11, 0.10);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
}
.badge-rose {
  background: rgba(239, 68, 68, 0.10);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}

.tile-body .metric-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.metric-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-pure);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress Track & Bar (Smooth SVG-like pill gauge) */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-cyan {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.bar-blue {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 0 12px var(--blue-glow);
}
.bar-emerald {
  background: linear-gradient(90deg, #059669, #10b981);
  box-shadow: 0 0 12px var(--emerald-glow);
}
.bar-amber {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 12px var(--amber-glow);
}
.bar-rose {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  box-shadow: 0 0 12px var(--rose-glow);
}

.tile-foot small {
  font-size: 11px;
  color: var(--text-muted);
}

.mesh-info-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.mesh-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.mesh-lbl { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 9px; font-weight: 700; }
.mesh-val { color: var(--text-dim); font-family: var(--font-mono); font-weight: 500; }

/* ----------------------------------------------------------
   BUSINESS KPI CARDS (TAB 1 - PRIMELINE STATS)
   ---------------------------------------------------------- */
.kpi-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.kpi-quad > * {
  min-width: 0;
  max-width: 100%;
}

.kpi-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}
.kpi-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tile-cyan .kpi-icon-wrap {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.tile-blue .kpi-icon-wrap {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.tile-emerald .kpi-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.tile-amber .kpi-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-accent);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.kpi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kpi-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-pure);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-trend {
  font-size: 11px;
}
.kpi-trend.neutral { color: var(--text-muted); }
.kpi-trend.up { color: var(--emerald-accent); }
.kpi-trend.warn { color: var(--amber-accent); }

/* Overview Dual Grid */
.overview-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 18px;
}
.overview-dual-grid > * {
  min-width: 0;
  max-width: 100%;
}

.quick-shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.shortcut-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  width: 100%;
}
.shortcut-tile:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateX(3px);
}

.shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.shortcut-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-accent);
}
.shortcut-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
}
.shortcut-icon.icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-accent);
}

.shortcut-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shortcut-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-pure);
}
.shortcut-info small {
  font-size: 11px;
  color: var(--text-dim);
}
.shortcut-arr {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   INSTANT VPN PROVISION (TAB 2)
   ---------------------------------------------------------- */
.provision-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
}
.provision-dual-grid > * {
  min-width: 0;
  max-width: 100%;
}

.empty-state-box {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state-box .empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
  color: var(--cyan-accent);
  opacity: 0.6;
}
.empty-state-box h4 {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.empty-state-box p {
  font-size: 12.5px;
  max-width: 320px;
  margin: 0 auto;
}

.qr-preview-box {
  margin-top: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}
.qr-frame {
  display: inline-block;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.qr-frame img {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: contain;
}

/* ----------------------------------------------------------
   VIP & TRIAL USERS DIRECTORY (TAB 3)
   ------------------------------------------------------- */
.subs-toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.subs-left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.segment-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.segment-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.segment-btn:hover {
  color: var(--text-pure);
}
.segment-btn.active {
  background: var(--cyan-accent);
  color: #080c14;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--cyan-glow);
}

.subs-right-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.search-input-wrap input {
  padding-left: 34px !important;
  width: 220px;
  height: 36px !important;
  font-size: 12.5px !important;
}

.cyber-select.select-compact {
  height: 36px;
  padding: 6px 28px 6px 12px;
  font-size: 12.5px;
  width: auto;
}

/* ----------------------------------------------------------
   ORDERS & FILTER PILLS (TAB 4)
   ---------------------------------------------------------- */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  border-color: var(--cyan-accent);
  color: var(--text-pure);
}
.filter-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* ----------------------------------------------------------
   WHATSAPP HUB (TAB 5)
   ---------------------------------------------------------- */
.wa-shell-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wa-status-card {
  border-left: 4px solid var(--emerald-accent);
}

.wa-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.wa-meta-grid > * {
  min-width: 0;
  max-width: 100%;
}

.wa-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wa-methods-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.wa-methods-dual > * {
  min-width: 0;
  max-width: 100%;
}

.qr-display-box {
  min-height: 240px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-top: 14px;
}
.qr-display-box img {
  max-width: 220px;
  max-height: 220px;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.qr-empty-hint {
  text-align: center;
  color: var(--text-muted);
}
.qr-empty-hint .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--cyan-accent);
  opacity: 0.5;
}
.qr-empty-hint p {
  font-size: 12px;
  max-width: 240px;
}

.pairing-output-box {
  margin-top: 16px;
  padding: 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
}
.pairing-hint {
  font-size: 12px;
  color: var(--text-dim);
}
.pairing-digits {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--cyan-accent);
  margin: 10px 0;
  text-shadow: 0 0 16px var(--cyan-glow);
}

/* ----------------------------------------------------------
   BOT SETTINGS & BROADCAST (TAB 7)
   ---------------------------------------------------------- */
.bot-settings-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.bot-settings-dual > * {
  min-width: 0;
  max-width: 100%;
}

/* ----------------------------------------------------------
   TOGGLE SWITCH SYSTEM (CARD-STYLE PRIME-LINE SWITCHES)
   ---------------------------------------------------------- */
.field-group.toggle-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.field-group.toggle-group:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}
.field-group.toggle-group:has(input:checked) {
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.25);
}
.field-group.toggle-group:has(.slider-rose):has(input:checked) {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Force flex and row layout with high specificity to override .field-group label */
.field-group.toggle-group label.toggle-switch-label,
.toggle-switch-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.toggle-switch-label input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  order: 1;
}
.toggle-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.3;
}
.toggle-text small {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.toggle-slider {
  order: 2;
  display: inline-block;
  width: 50px;
  height: 28px;
  background: #1e293b;
  border-radius: var(--radius-pill);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  margin-top: 0;
  cursor: pointer;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.toggle-switch-label input:checked + .toggle-slider,
.toggle-switch-label input:checked ~ .toggle-slider {
  background: var(--cyan-accent);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.toggle-switch-label input:checked + .toggle-slider.slider-rose,
.toggle-switch-label input:checked ~ .toggle-slider.slider-rose {
  background: var(--rose-accent);
  box-shadow: 0 0 14px var(--rose-glow);
}
.toggle-switch-label input:checked + .toggle-slider::before,
.toggle-switch-label input:checked ~ .toggle-slider::before {
  transform: translateX(22px);
}

.text-rose { color: var(--rose-accent) !important; }

/* ----------------------------------------------------------
   TABLE DESIGN SYSTEM
   ---------------------------------------------------------- */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.5);
  display: block;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.35) rgba(13, 19, 34, 0.6);
}
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(13, 19, 34, 0.6);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.35);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.65);
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12.5px;
}

.cyber-table thead {
  background: rgba(19, 27, 46, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}
.cyber-table th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cyber-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}
.cyber-table tbody tr:last-child {
  border-bottom: none;
}
.cyber-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.04);
}

.cyber-table td {
  padding: 10px 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.loading-td {
  text-align: center;
  padding: 36px 16px !important;
  color: var(--text-muted);
}

/* Cell Truncation & Layout Utilities */
.cell-truncate {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.cell-truncate-sm {
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.cell-truncate-lg {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* ----------------------------------------------------------
   STATUS PILLS & BADGES
   ---------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}

.dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-active, .status-connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-connecting, .status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-expired, .status-disconnected, .status-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--rose-accent);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-completed {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* User tier badges */
.tier-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.tier-vip {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.tier-trial {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ----------------------------------------------------------
   INPUTS & FORM CONTROLS
   ---------------------------------------------------------- */
.field-group {
  margin-bottom: 14px;
}
.field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field-group label i {
  color: var(--cyan-accent);
  margin-right: 4px;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select.cyber-select {
  width: 100%;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

textarea.code-textarea {
  resize: vertical;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 1.4;
  color: var(--cyan-accent);
}

select.cyber-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
select.cyber-select option {
  background: #0d1322;
  color: #f8fafc;
}

.form-feedback {
  margin-top: 10px;
  font-size: 12px;
  min-height: 18px;
}
.form-feedback.success { color: var(--emerald-accent); }
.form-feedback.error { color: var(--rose-accent); }

.form-action-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

/* ----------------------------------------------------------
   BUTTONS SYSTEM
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-block { width: 100%; }

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

.btn-cyber-primary {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  border-radius: var(--radius-md);
  border: none;
  min-height: 48px;
  padding: 12px 24px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cyber-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.btn-cyber-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}
.btn-cyber-primary i {
  color: #000000;
  font-size: 13px;
}

.btn-cyber-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.btn-cyber-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--rose-accent);
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--rose-accent);
}

.btn-emerald-action {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--emerald-glow);
}
.btn-emerald-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-danger-action {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--rose-glow);
}
.btn-danger-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--cyan-accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { text-decoration: underline; }

.btn-copy-small {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
  transition: all 0.15s ease;
}
.btn-copy-small:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-accent);
  border-color: rgba(6, 182, 212, 0.35);
}

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

.action-btn-xs {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.action-btn-xs:hover {
  color: var(--text-pure);
  border-color: var(--cyan-accent);
}
.action-btn-xs.btn-xs-danger:hover {
  color: var(--rose-accent);
  border-color: var(--rose-accent);
  background: rgba(239, 68, 68, 0.1);
}
.action-btn-xs.btn-xs-emerald:hover {
  color: var(--emerald-accent);
  border-color: var(--emerald-accent);
  background: rgba(16, 185, 129, 0.1);
}

/* ----------------------------------------------------------
   MODAL WINDOW SYSTEM
   ---------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  overflow-y: auto;
}

.modal-container {
  width: 100%;
  background: var(--bg-obsidian-1);
  border: 1px solid var(--border-card-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-xl);
  padding: 26px;
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 820px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title-wrap i {
  color: var(--cyan-accent);
  font-size: 18px;
}
.modal-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-pure);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.btn-close-modal:hover { color: var(--text-pure); }

.modal-form-body {
  overflow-y: auto;
}

.modal-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Slip Forensics Modal Split Body */
.modal-body-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  overflow-y: auto;
}

.slip-preview-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.slip-preview-container img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.slip-details-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metadata-block {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.meta-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.meta-val {
  font-size: 13.5px;
  color: var(--text-pure);
  margin-top: 2px;
}
.meta-val.highlight {
  color: var(--emerald-accent);
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------
   TOAST NOTIFICATION ENGINE
   ---------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: var(--bg-obsidian-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-pure);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-success {
  border-left: 4px solid var(--emerald-accent);
}
.toast-success i { color: var(--emerald-accent); }

.toast-error {
  border-left: 4px solid var(--rose-accent);
}
.toast-error i { color: var(--rose-accent); }

.toast-info {
  border-left: 4px solid var(--cyan-accent);
}
.toast-info i { color: var(--cyan-accent); }

/* ----------------------------------------------------------
   MOBILE BOTTOM NAVIGATION BAR
   ---------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 85;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}
.mobile-nav-btn i {
  font-size: 16px;
}

.mobile-nav-btn.active {
  color: var(--cyan-accent);
}
.mobile-nav-btn.active i {
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* ----------------------------------------------------------
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ---------------------------------------------------------- */
@media (max-width: 1300px) {
  .overview-dual-grid {
    grid-template-columns: 1fr;
  }
  .provision-dual-grid {
    grid-template-columns: 1fr;
  }
  .bot-settings-dual {
    grid-template-columns: 1fr;
  }
  .wa-methods-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .subs-toolbar-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .subs-left-cluster, .subs-right-cluster {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 860px) {
  /* Show hamburger button, hide desktop sidebar into off-screen drawer */
  .btn-sidebar-toggle {
    display: flex;
  }
  .btn-close-sidebar {
    display: block;
  }

  .cyber-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  }
  .cyber-sidebar.open {
    transform: translateX(0);
  }

  .cyber-workspace {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Show fixed mobile bottom bar */
  .mobile-bottom-bar {
    display: flex;
  }

  /* Adjust main workspace padding for bottom bar */
  .tab-pane {
    padding: 16px 12px calc(var(--bottom-bar-h) + 20px);
  }
  .workspace-topbar {
    padding: 0 14px;
  }

  .glass-card {
    padding: 18px 14px;
    border-radius: 1.25rem;
  }

  .cyber-table th, .cyber-table td {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .cell-truncate {
    max-width: 130px;
  }
  .cell-truncate-sm {
    max-width: 90px;
  }
  .cell-truncate-lg {
    max-width: 180px;
  }

  .health-quad, .kpi-quad {
    grid-template-columns: 1fr;
  }
  .wa-meta-grid {
    grid-template-columns: 1fr;
  }

  .modal-body-split {
    grid-template-columns: 1fr;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .toast-container {
    top: auto;
    bottom: calc(var(--bottom-bar-h) + 12px);
    right: 12px;
    left: 12px;
  }
  .admin-toast {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .segment-switch {
    width: 100%;
    display: flex;
  }
  .segment-btn {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 11px;
  }
  .action-btn-group {
    flex-wrap: wrap;
    gap: 4px;
  }
  .action-btn-xs {
    padding: 3px 6px;
    font-size: 10.5px;
  }
}

/* Flex Helper Utilities */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-row {
  display: flex;
  align-items: center;
}
.gap-xs { gap: 6px; }

/* Icon Accent Colors */
.icon-cyan { color: var(--cyan-accent); }
.icon-blue { color: var(--blue-accent); }
.icon-emerald { color: var(--emerald-accent); }
.icon-amber { color: var(--amber-accent); }
.icon-rose { color: var(--rose-accent); }
