/* ==========================================================================
   CyberEdu ERP — Premium Apple-Inspired Glassmorphism Design System
   Identity: WHITE + BLUE + PURPLE + PINK GRADIENTS
   ========================================================================== */

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

:root {
  /* CyberEdu Gradient Tokens */
  --gradient-blue-purple: linear-gradient(135deg, #38bdf8 0%, #7b61ff 100%);
  --gradient-purple-pink: linear-gradient(135deg, #7b61ff 0%, #ec4899 100%);
  --gradient-blue-pink: linear-gradient(135deg, #0ea5e9 0%, #ec4899 100%);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-primary-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  --gradient-glass-border: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.3));
  --gradient-glow: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 100%);

  /* Solid Colors */
  --color-navy: #0f172a;
  --color-slate-dark: #1e293b;
  --color-slate-muted: #64748b;
  --color-slate-light: #94a3b8;
  --color-bg-base: #f8fafc;
  
  /* Glass Opacities */
  --glass-bg-main: rgba(255, 255, 255, 0.68);
  --glass-bg-subtle: rgba(255, 255, 255, 0.50);
  --glass-bg-elevated: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 10px 40px rgba(80, 70, 150, 0.08);
  --glass-shadow-hover: 0 16px 48px rgba(80, 70, 150, 0.14);
  
  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Canvas Setup
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-navy);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--color-navy);
}

/* Ambient Blurred Background Orbs */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-blue {
  width: 550px;
  height: 550px;
  background: #38bdf8;
  top: -100px;
  left: -100px;
}

.orb-purple {
  width: 600px;
  height: 600px;
  background: #a855f7;
  top: 30%;
  right: -150px;
  animation-delay: -6s;
}

.orb-pink {
  width: 500px;
  height: 500px;
  background: #ec4899;
  bottom: -100px;
  left: 30%;
  animation-delay: -12s;
}

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

/* --------------------------------------------------------------------------
   App Layout Grid
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar-overlay {
  display: none;
}

/* --------------------------------------------------------------------------
   Glass Sidebar
   -------------------------------------------------------------------------- */
.glass-sidebar {
  width: 275px;
  background: var(--glass-bg-main);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  box-shadow: 4px 0 30px rgba(80, 70, 150, 0.05);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-smooth);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 16px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(123, 97, 255, 0.3);
}

.brand-text h2 {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-slate-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--color-slate-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-item i, .nav-item svg {
  font-size: 18px;
  width: 20px;
  height: 20px;
  color: var(--color-slate-muted);
  transition: color var(--transition-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #3b82f6;
  transform: translateX(4px);
}
.nav-item:hover i, .nav-item:hover svg {
  color: #3b82f6;
}

.nav-item.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(123, 97, 255, 0.3);
}

.nav-item.active i, .nav-item.active svg {
  color: #ffffff;
}

.sidebar-user {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-blue-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.user-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
}

.user-info p {
  font-size: 11px;
  color: var(--color-slate-muted);
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.main-wrapper {
  flex: 1;
  margin-left: 275px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 32px 40px;
  transition: margin var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   Floating Glass Navbar
   -------------------------------------------------------------------------- */
.glass-navbar {
  background: var(--glass-bg-main);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: sticky;
  top: 20px;
  z-index: 90;
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--color-navy);
  cursor: pointer;
}

.page-title h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-title p {
  font-size: 12px;
  color: var(--color-slate-muted);
}

.nav-center {
  flex: 1;
  max-width: 360px;
  margin: 0 24px;
}

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

.search-box i, .search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate-muted);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 30px;
  font-size: 13px;
  color: var(--color-navy);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  background: #ffffff;
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.15);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.branch-select {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  outline: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-dark);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ec4899;
  border-radius: 50%;
  box-shadow: 0 0 8px #ec4899;
}

/* --------------------------------------------------------------------------
   Reusable Glass Card Components
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg-main);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition-smooth);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(255, 255, 255, 0.95);
}

/* --------------------------------------------------------------------------
   Dashboard Hero Banner
   -------------------------------------------------------------------------- */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 244, 255, 0.75) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-content p {
  color: var(--color-slate-muted);
  font-size: 14.5px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.date-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-dark);
}

/* --------------------------------------------------------------------------
   Statistic Cards Grid (8 Cards)
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-blue-purple { background: var(--gradient-blue-purple); }
.icon-purple-pink { background: var(--gradient-purple-pink); }
.icon-blue-pink { background: var(--gradient-blue-pink); }
.icon-primary { background: var(--gradient-primary); }

.stat-change {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.change-positive { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.change-negative { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.stat-bottom h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.stat-bottom p {
  font-size: 13px;
  color: var(--color-slate-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Buttons System
   -------------------------------------------------------------------------- */
.btn-gradient {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(123, 97, 255, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(123, 97, 255, 0.35);
  background: var(--gradient-primary-hover);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-navy);
  border: 1px solid var(--glass-border);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-glass-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.btn-glass-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-glass-success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Filter Panels & Forms
   -------------------------------------------------------------------------- */
.filter-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.glass-input {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--color-navy);
  outline: none;
  transition: all var(--transition-fast);
}

.glass-input:focus {
  background: #ffffff;
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.18);
}

.glass-select {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  outline: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CRM Inquiry Table & Status Badges
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.glass-table th {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-slate-muted);
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.glass-table tr.table-row {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.glass-table tr.table-row td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--color-navy);
}

.glass-table tr.table-row td:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.glass-table tr.table-row td:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.glass-table tr.table-row:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(80, 70, 150, 0.08);
}

/* Soft Gradient Status Badges */
.badge-status {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-new { background: rgba(56, 189, 248, 0.15); color: #0284c7; }
.badge-hot { background: rgba(236, 72, 153, 0.15); color: #db2777; }
.badge-interested { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.badge-followup { background: var(--gradient-blue-purple); color: #ffffff; box-shadow: 0 4px 10px rgba(123, 97, 255, 0.2); }
.badge-converted { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.badge-lost { background: rgba(148, 163, 184, 0.2); color: #64748b; }

/* --------------------------------------------------------------------------
   Inquiry Student Profile CRM Page
   -------------------------------------------------------------------------- */
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(123, 97, 255, 0.3);
}

.profile-meta h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-meta p {
  color: var(--color-slate-muted);
  font-size: 13.5px;
}

.glass-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.tab-item:hover {
  color: #3b82f6;
}

.tab-item.active {
  color: #7b61ff;
  border-bottom-color: #7b61ff;
}

/* --------------------------------------------------------------------------
   Follow-Up Timeline
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  padding-left: 28px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom, #3b82f6, #ec4899);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-node {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.node-upcoming { background: #7b61ff; box-shadow: 0 0 12px #7b61ff; }
.node-completed { background: #22c55e; box-shadow: 0 0 12px #22c55e; }
.node-overdue { background: #ec4899; box-shadow: 0 0 12px #ec4899; }

/* --------------------------------------------------------------------------
   WhatsApp Center & Template Modal
   -------------------------------------------------------------------------- */
.whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.template-card {
  cursor: pointer;
}

.template-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glass-modal {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  border: 1px solid #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 560px;
  padding: 32px;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Login & OTP Verification Screen
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-box {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .glass-sidebar {
    transform: translateX(-100%);
  }
  .glass-sidebar.active {
    transform: translateX(0);
  }
  .sidebar-overlay.active {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 99;
  }
  .main-wrapper {
    margin-left: 0;
    padding: 16px;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
