/* ============================================================
   AI Tool Platform - Global Styles
   Dark premium theme với grouped sidebar navigation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-primary:   #0c0c14;
  --bg-secondary: #13131e;
  --bg-card:      #191926;
  --bg-hover:     #1f1f30;
  --bg-input:     #111120;

  --sidebar-w:    256px;

  /* Accents */
  --accent:       #7c6af7;
  --accent-light: #a394fa;
  --accent-glow:  rgba(124,106,247,0.12);
  --accent-border:rgba(124,106,247,0.25);

  /* Facebook brand */
  --fb-color:     #1877f2;
  --fb-glow:      rgba(24,119,242,0.15);

  /* YouTube brand */
  --yt-color:     #ff0000;
  --yt-glow:      rgba(255,0,0,0.12);

  /* Status */
  --success:      #22c97e;
  --warning:      #f59e0b;
  --danger:       #f33a5e;

  /* Text */
  --text-1:       #eeeef5;
  --text-2:       #9090b0;
  --text-3:       #55556a;

  /* Border */
  --border:       rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.03);

  /* Misc */
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
  --transition:   0.18s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-1);
  font-size: 13.5px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
code { font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 12px; }

/* ── Layout ────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow: hidden;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#7c6af7,#4f46e5);
  box-shadow: 0 4px 12px rgba(124,106,247,0.4);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #f0edff, #a394fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: -1px;
}

/* Nav container */
.sidebar-nav {
  flex: 1;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }

/* Top-level nav item */
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  transition: var(--transition);
  position: relative;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}
.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--accent-border);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.75;
}
.nav-item.active .nav-icon { opacity: 1; }

/* Divider */
.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* Group */
.nav-group { margin-bottom: 2px; }

.nav-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.nav-group-header:hover { background: var(--bg-hover); color: var(--text-1); }

.nav-group-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-group-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.fb-icon {
  background: var(--fb-glow);
  color: var(--fb-color);
  border: 1px solid rgba(24,119,242,0.3);
}
.yt-icon {
  background: var(--yt-glow);
  color: var(--yt-color);
  border: 1px solid rgba(255,0,0,0.25);
  font-size: 9px;
}

.nav-group-arrow {
  transition: transform 0.2s ease;
  opacity: 0.5;
  flex-shrink: 0;
}
.nav-group-header.open .nav-group-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}
.nav-group-header.open { color: var(--text-1); }

.nav-group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 10px;
}

/* Sub-item */
.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  margin: 1px 0;
  border-radius: var(--radius-xs);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-sub-item:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}
.nav-sub-item.active {
  color: var(--accent-light);
  background: var(--accent-glow);
}
.nav-sub-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nav-sub-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-sub-item.active .nav-sub-dot { background: var(--accent); }
.nav-sub-item:hover .nav-sub-dot  { background: var(--text-2); }

/* Badge soon */
.nav-badge-soon {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Footer */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-3);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  transition: var(--transition);
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: var(--danger);  box-shadow: 0 0 6px var(--danger); }

.sidebar-version {
  font-size: 10px;
  color: var(--text-3);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.topbar-left {}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.breadcrumb-item { color: var(--text-3); transition: color var(--transition); }
.breadcrumb-item:hover { color: var(--text-2); }
.breadcrumb-sep { color: var(--text-3); font-size: 10px; }

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

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

/* Page content area */
.page-content {
  padding: 28px 32px;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   PLATFORM HERO CARDS (Dashboard)
   ═══════════════════════════════════════════════════════════ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.platform-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.platform-card.coming-soon { opacity: 0.6; }

.platform-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
}
.platform-card.fb-card .platform-card-glow  { background: var(--fb-color); }
.platform-card.yt-card .platform-card-glow  { background: var(--yt-color); }

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.platform-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.fb-card .platform-icon { background: var(--fb-glow); color: var(--fb-color); border: 1px solid rgba(24,119,242,0.3); }
.yt-card .platform-icon { background: var(--yt-glow); color: var(--yt-color); border: 1px solid rgba(255,0,0,0.25); font-size: 14px; }

.platform-badge-soon {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.platform-desc  { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; }

.platform-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.pstat { text-align: center; }
.pstat-value { font-size: 20px; font-weight: 700; color: var(--text-1); }
.pstat-label { font-size: 10px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ═══════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover::after { opacity: 1; }
.stat-card:hover { border-color: var(--accent-border); }

.stat-card.loading { opacity: 0.4; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:.7} }

.stat-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-value { font-size: 20px; font-weight: 700; color: var(--text-1); }
.stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.stat-sub   { font-size: 11px; color: var(--success); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 14px; font-weight: 600; }
.card-body  { padding: 16px 20px; }

/* ═══════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-3);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-1);
  vertical-align: middle;
}
.table tr:last-child td  { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-hover); }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-success { background: rgba(34,201,126,.12); color: var(--success); border: 1px solid rgba(34,201,126,.25); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.25); }
.badge-danger  { background: rgba(243,58, 94,.12); color: var(--danger);  border: 1px solid rgba(243,58, 94,.25); }
.badge-primary { background: var(--accent-glow);   color: var(--accent-light); border: 1px solid var(--accent-border); }
.badge-muted   { background: rgba(255,255,255,.05); color: var(--text-3); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124,106,247,0.35);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,106,247,0.4); }

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); border-color: rgba(255,255,255,.1); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-hover); color: var(--text-1); }

.btn-danger {
  background: rgba(243,58,94,.12);
  color: var(--danger);
  border: 1px solid rgba(243,58,94,.25);
}
.btn-danger:hover { background: rgba(243,58,94,.22); }

.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-xs  { padding: 3px 8px;  font-size: 11px; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group  { margin-bottom: 16px; }
.form-label  {
  display: block; margin-bottom: 6px;
  color: var(--text-2); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-secondary);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--text-3);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--accent-glow); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--accent-light); }

/* Toggle row */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row-label { font-size: 13px; color: var(--text-1); }
.toggle-row-hint  { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.modal-title { font-size: 15px; font-weight: 600; }

.modal-close {
  background: none; border: none;
  color: var(--text-3); font-size: 18px;
  padding: 4px 8px; border-radius: 4px;
  transition: var(--transition); line-height: 1;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); }

.modal-body   { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0;
  background: var(--bg-card);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  min-width: 250px; max-width: 380px;
  animation: toastIn .25s ease;
  transition: opacity .3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes toastIn { from { transform: translateX(40px); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.section-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-icon  { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-desc  { font-size: 13px; color: var(--text-3); max-width: 300px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-3) !important; }
.text-success{ color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning{ color: var(--warning) !important; }
.font-mono   { font-family: 'Fira Code', 'JetBrains Mono', monospace; font-size: 11.5px; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   COMING SOON OVERLAY
   ═══════════════════════════════════════════════════════════ */
.coming-soon-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 16px;
}
.coming-soon-icon { font-size: 64px; opacity: 0.3; }
.coming-soon-title { font-size: 24px; font-weight: 700; color: var(--text-2); }
.coming-soon-desc  { font-size: 14px; color: var(--text-3); max-width: 380px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 18px 16px 14px; }
  .page-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
