/* ═══════════════════════════════════════════════════════════════
   Webelix Marketing Suite — app.css
   Mobile-first · Dark theme · Brand: #0ABFBC teal / #8B5CF6 purple
═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --teal:       #0ABFBC;
  --purple:     #8B5CF6;
  --bg:         #0c0c12;
  --bg2:        #13131c;
  --bg3:        #1a1a26;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.13);
  --text:       #f0eef8;
  --text2:      #a09db8;
  --text3:      #5c5a72;
  --success:    #22d3a5;
  --warning:    #f59e0b;
  --danger:     #f43f5e;
  --info:       #38bdf8;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --grad:       linear-gradient(135deg, #0ABFBC, #8B5CF6);
  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --topbar-h:   56px;
  --sidebar-w:  260px;
  --transition: 0.18s ease;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburguesa — visible solo en móvil */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 18px;
  transition: var(--transition);
}
.hamburger:hover { background: var(--bg3); color: var(--text); }

/* LOGO */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-svg {
  width: 110px; height: 28px;
}
.logo-badge {
  font-size: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* NAV CENTRO */
.topbar-nav {
  display: none; /* se muestra en desktop */
  gap: 2px;
  align-items: center;
}
.tnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.tnav i { font-size: 15px; }
.tnav:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tnav.active {
  color: var(--text);
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
}

/* TOPBAR DERECHA */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

/* USER CHIP */
.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: var(--transition);
}
.user-chip:hover { border-color: var(--border2); }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-head);
  color: white;
  flex-shrink: 0;
}
.user-info { display: none; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 12px; font-weight: 500; }
.user-role {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}
.role-admin { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.role-editor { background: rgba(10,191,188,0.15); color: var(--teal); }

/* DROPDOWN */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text2);
  transition: var(--transition);
}
.user-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.user-dropdown a i { font-size: 15px; }
.dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }
.logout-link { color: var(--danger) !important; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR (móvil slide-in)
═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 16px 0;
}
.sidebar.open { transform: translateX(0); }
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.close-sidebar {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-nav { flex: 1; padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.snav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border: 1px solid transparent;
  transition: var(--transition);
}
.snav i { font-size: 17px; }
.snav:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.snav.active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
  color: var(--text);
}
.sidebar-sep { height: 1px; background: var(--border); margin: 6px 10px; }
.sidebar-footer { padding: 10px; border-top: 1px solid var(--border); margin-top: 8px; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 290;
}
.nav-overlay.open { display: block; }

/* ═══════════════════════════════════════════════════════════════
   MAIN WRAPPER
═══════════════════════════════════════════════════════════════ */
.main-wrapper {
  margin-top: var(--topbar-h);
  padding: 20px 16px;
  min-height: calc(100vh - var(--topbar-h));
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.page-title-group {}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 4px;
}
.page-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn i { font-size: 15px; }
.btn-primary {
  background: var(--grad);
  color: white;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.3);
  color: #c4b5fd;
}
.btn-secondary:hover { background: rgba(139,92,246,0.2); }
.btn-teal {
  background: rgba(10,191,188,0.12);
  border-color: rgba(10,191,188,0.3);
  color: var(--teal);
}
.btn-teal:hover { background: rgba(10,191,188,0.22); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text2);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger {
  background: rgba(244,63,94,0.12);
  border-color: rgba(244,63,94,0.3);
  color: var(--danger);
}
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-sm i { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title i { font-size: 16px; color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.stat-card:hover { border-color: var(--border2); }
.stat-icon {
  font-size: 20px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text2); }
.stat-delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}
.delta-up   { background: rgba(34,211,165,0.12); color: var(--success); }
.delta-down { background: rgba(244,63,94,0.12);  color: var(--danger);  }

/* ═══════════════════════════════════════════════════════════════
   GRID LAYOUTS
═══════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   POST ITEM
═══════════════════════════════════════════════════════════════ */
.post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: var(--transition);
}
.post-item:last-child { margin-bottom: 0; }
.post-item:hover { border-color: rgba(139,92,246,0.3); }
.post-thumb {
  width: 38px; height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.post-info { flex: 1; min-width: 0; }
.post-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-meta {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-ig       { background: rgba(225,48,108,0.18); color: #f472b6; }
.badge-fb       { background: rgba(24,119,242,0.18); color: #60a5fa; }
.badge-email    { background: rgba(245,158,11,0.18); color: #fbbf24; }
.badge-reel     { background: rgba(10,191,188,0.15); color: var(--teal); }
.badge-story    { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.badge-scheduled{ background: rgba(10,191,188,0.1); color: var(--teal); border: 1px solid rgba(10,191,188,0.25); }
.badge-draft    { background: rgba(124,122,142,0.1); color: var(--text3); border: 1px solid rgba(124,122,142,0.2); }
.badge-sent     { background: rgba(34,211,165,0.1); color: var(--success); border: 1px solid rgba(34,211,165,0.2); }
.badge-failed   { background: rgba(244,63,94,0.1); color: var(--danger); border: 1px solid rgba(244,63,94,0.2); }
.badge-admin    { background: rgba(139,92,246,0.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.badge-editor   { background: rgba(10,191,188,0.15); color: var(--teal); border: 1px solid rgba(10,191,188,0.25); }

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
}
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-control:focus { border-color: rgba(139,92,246,0.5); }
.form-control::placeholder { color: var(--text3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control option { background: var(--bg3); }

.upload-zone {
  border: 1px dashed rgba(139,92,246,0.35);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(139,92,246,0.04);
}
.upload-zone:hover { border-color: rgba(139,92,246,0.6); background: rgba(139,92,246,0.08); }
.upload-zone i { font-size: 26px; color: #a78bfa; margin-bottom: 6px; }
.upload-zone p { font-size: 12px; color: var(--text2); }
.upload-zone strong { color: #a78bfa; }

/* Checkbox de plataformas */
.plat-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-check {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text2);
  user-select: none;
}
.plat-check input { display: none; }
.plat-check.checked-ig   { background: rgba(225,48,108,0.15); border-color: rgba(225,48,108,0.4); color: #f472b6; }
.plat-check.checked-fb   { background: rgba(24,119,242,0.15); border-color: rgba(24,119,242,0.4); color: #60a5fa; }
.plat-check.checked-story{ background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4); color: #c4b5fd; }

/* ═══════════════════════════════════════════════════════════════
   CALENDAR
═══════════════════════════════════════════════════════════════ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
  padding: 2px;
  color: var(--text2);
}
.cal-day:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.cal-day.today {
  border: 1px solid rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  font-weight: 700;
}
.cal-day.has-content { background: rgba(10,191,188,0.07); border: 1px solid rgba(10,191,188,0.15); }
.cal-day.empty { opacity: 0; pointer-events: none; }
.cal-dots { display: flex; gap: 2px; }
.cal-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.dot-ig { background: #E1306C; }
.dot-fb { background: #1877F2; }
.dot-em { background: var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   ALERTS & TOASTS
═══════════════════════════════════════════════════════════════ */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-info    { background: rgba(56,189,248,0.1);  border: 1px solid rgba(56,189,248,0.25);  color: var(--info); }
.alert-success { background: rgba(34,211,165,0.1);  border: 1px solid rgba(34,211,165,0.25);  color: var(--success); }
.alert-warning { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.25);  color: var(--warning); }
.alert-danger  { background: rgba(244,63,94,0.1);   border: 1px solid rgba(244,63,94,0.25);   color: var(--danger); }

.toast-wrap {
  position: fixed;
  bottom: 20px; right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .25s ease;
  max-width: 300px;
}
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   API STATUS DOT
═══════════════════════════════════════════════════════════════ */
.api-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.api-live    { background: var(--success); box-shadow: 0 0 6px rgba(34,211,165,0.5); }
.api-sample  { background: var(--warning); box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.api-offline { background: var(--text3); }

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════════ */
.progress { height: 5px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--grad); transition: width 0.5s ease; }

/* ═══════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.wx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wx-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.wx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text2);
  vertical-align: middle;
}
.wx-table tr:last-child td { border-bottom: none; }
.wx-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ═══════════════════════════════════════════════════════════════
   INTEGRATION ITEM
═══════════════════════════════════════════════════════════════ */
.int-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
}
.int-item:hover { border-color: var(--border2); }
.int-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.int-body { flex: 1; min-width: 0; }
.int-name { font-size: 13px; font-weight: 500; color: var(--text); }
.int-desc { font-size: 11px; color: var(--text2); margin-top: 2px; }
.int-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.login-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.login-sub { font-size: 13px; color: var(--text2); text-align: center; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET 640px+
═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2    { grid-template-columns: 1fr 1fr; }
  .grid-3    { grid-template-columns: 1fr 1fr 1fr; }
  .user-info { display: flex; }
  .main-wrapper { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP 960px+
═══════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .hamburger   { display: none; }
  .topbar-nav  { display: flex; }
  .sidebar     { display: none; } /* en desktop no se necesita sidebar */
  .main-wrapper { padding: 28px 28px; }
  .page-title  { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 20px; }
.gap-2 { gap: 14px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }
.text-muted { color: var(--text2); font-size: 12px; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hidden { display: none !important; }
