/* ============================================================
   EDUCANESIA - Main Stylesheet
   Mobile-first, Bootstrap 5 augmented
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:        #6366F1;
  --primary-dark:   #4F46E5;
  --primary-light:  #EEF2FF;
  --secondary:      #0EA5E9;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #06B6D4;

  --bg:             #F1F5F9;
  --bg-card:        #FFFFFF;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --border:         #E2E8F0;

  --sidebar-w:      260px;
  --bottomnav-h:    65px;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:      0 8px 32px rgba(99,102,241,.18);
  --transition:     all .2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.landing-nav .brand { font-weight: 800; font-size: 1.4rem; color: var(--primary); }

.hero {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 40%, #0EA5E9 100%);
  padding: 80px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title span { color: #FCD34D; }
.hero-subtitle { font-size: 1.15rem; opacity: .9; max-width: 520px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 1.2rem;
}

.hero-actions { margin-top: 2rem; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img {
  position: relative;
  z-index: 1;
}
.hero-mockup {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  max-width: 340px;
  margin: 0 auto;
}

/* Features */
.features-section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Stats strip */
.stats-strip {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  padding: 50px 0;
  color: #fff;
}
.stat-number { font-size: 2.5rem; font-weight: 800; }
.stat-label { opacity: .8; font-size: .9rem; }

/* Pricing */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card .price { font-size: 2.2rem; font-weight: 800; color: var(--primary); }

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
}
.testimonial-stars { color: #F59E0B; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #6366F1, #0EA5E9);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

/* Footer */
.landing-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 50px 0 24px;
}
.landing-footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.4rem; }
.landing-footer a { color: #94A3B8; font-size: .9rem; }
.landing-footer a:hover { color: #fff; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #0EA5E9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-logo { width: 60px; height: 60px; object-fit: contain; }
.auth-title { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   DASHBOARD LAYOUT (Admin / Staff)
   ============================================================ */

/* Sidebar */
.app-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #0F172A;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #334155; }

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.sidebar-logo-text { color: #fff; font-weight: 800; font-size: 1.1rem; }
.sidebar-logo-text small { display: block; font-size: 10px; font-weight: 400; opacity: .5; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section { padding: 8px 20px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: #475569; font-weight: 600; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #94A3B8;
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.sidebar-link i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.05); border-left-color: #4F46E5; }
.sidebar-link.active { color: #fff; background: rgba(99,102,241,.2); border-left-color: #6366F1; font-weight: 600; }
.sidebar-link .badge { margin-left: auto; }

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #0EA5E9);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-name { color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.2; }
.sidebar-user-role { color: #64748B; font-size: .75rem; }

/* Main content area */
.app-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin .3s ease;
}

/* Top bar */
.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.topbar-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

/* Page content */
.page-content { padding: 24px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0; }
.page-header p { color: var(--text-muted); margin: 4px 0 0; font-size: .9rem; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* Hamburger toggle */
.btn-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text);
  padding: 4px 8px;
  cursor: pointer;
}

/* ============================================================
   CARDS & STATS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 16px 20px; font-weight: 700; font-size: .95rem; }
.card-body { padding: 20px; }
.card-footer { background: transparent; border-top: 1px solid var(--border); padding: 12px 20px; }

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }
.stat-card .stat-change { font-size: .78rem; margin-top: 4px; }

/* ============================================================
   MEMBER LAYOUT (Sidebar navigation)
   ============================================================ */
:root {
  --msidebar-w: 220px;
}

.member-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.m-sidebar {
  width: var(--msidebar-w);
  background: linear-gradient(180deg, #4F46E5 0%, #6366F1 100%);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden; /* clip all scroll including Chrome focus scroll */
  transition: transform .25s ease;
}
.m-sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.m-sidebar-brand img { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; }
.m-sidebar-brand-name { color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.2; }
.m-sidebar-brand-sub { color: rgba(255,255,255,.65); font-size: .72rem; }

.m-sidebar-user {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.m-sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.m-sidebar-username { color: #fff; font-weight: 700; font-size: .85rem; line-height:1.2; }
.m-sidebar-role { color: rgba(255,255,255,.6); font-size: .7rem; }

.m-sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.m-nav-label {
  color: rgba(255,255,255,.45); font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 8px 4px;
}
.m-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.75); font-size: .87rem; font-weight: 500;
  text-decoration: none; transition: .15s; position: relative;
  margin-bottom: 2px;
}
.m-nav-item i { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.m-nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.m-nav-item.active { background: rgba(255,255,255,.2); color: #fff; font-weight: 700; }
.m-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 4px; background: #fff;
}
.m-nav-badge {
  margin-left: auto; background: #EF4444; color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.m-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.m-logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.7); font-size: .87rem; font-weight: 500;
  text-decoration: none; transition: .15s; width: 100%;
  background: none; border: none; cursor: pointer;
}
.m-logout-btn:hover { background: rgba(239,68,68,.25); color: #fca5a5; }
.m-logout-btn i { width: 18px; text-align: center; }

/* Overlay (mobile) */
.m-sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199;
}
.m-sidebar-overlay.show { display: block; }

/* Main content area */
.m-main {
  margin-left: var(--msidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.m-topbar-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.m-topbar-left { display: flex; align-items: center; gap: 12px; }
.m-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--text-muted);
}
.m-content { padding: 20px; flex: 1; }

/* Mobile: sidebar hidden by default */
@media (max-width: 767px) {
  .m-sidebar {
    transform: translateX(-100%);
  }
  .m-sidebar.open {
    transform: translateX(0);
  }
  .m-main {
    margin-left: 0;
  }
  .m-hamburger { display: flex; align-items: center; }
  .m-content { padding: 16px; }
}

/* Product cards */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 16px; }
.product-card-title { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.product-card-desc { font-size: .82rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label { font-weight: 600; font-size: .88rem; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .92rem;
  transition: var(--transition);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
textarea.form-control { min-height: 100px; resize: vertical; }

/* ---- File input ---- */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area.drag-over { border-color: var(--primary); background: var(--primary-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  padding: 9px 20px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #E2E8F0; color: var(--text); }
.btn-secondary:hover { background: #CBD5E1; color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline-primary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.table-card .table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.table-card .table-header h6 { font-weight: 700; margin: 0; }
.table { margin: 0; }
.table thead th { background: #F8FAFC; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 12px 16px; }
.table td { padding: 12px 16px; font-size: .88rem; vertical-align: middle; border-bottom: 1px solid #F1F5F9; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FAFBFF; }
.table-responsive { border-radius: var(--radius); }

/* ---- User avatar chip ---- */
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip-name { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.user-chip-email { font-size: .78rem; color: var(--text-muted); }

/* ---- Badges ---- */
.badge { font-size: .73rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; letter-spacing: .2px; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.badge-pending { background: #FEF3C7; color: #92400E; }

/* ============================================================
   UTILITIES
   ============================================================ */
.rounded-xl { border-radius: var(--radius) !important; }
.rounded-2xl { border-radius: 20px !important; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-primary-light { background: var(--primary-light); }
.hover-lift:hover { transform: translateY(-3px); }
.divide-y > *:not(:last-child) { border-bottom: 1px solid var(--border); }
.notification-item { padding: 14px 20px; display: flex; gap: 12px; }
.notification-item.unread { background: #FAFBFF; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }

/* ============================================================
   PWA INSTALL PROMPT
   ============================================================ */
.pwa-prompt {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 10px);
  left: 12px; right: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: none;
  z-index: 2000;
  border: 1px solid var(--border);
  animation: slideUp .3s ease;
}
.pwa-prompt.show { display: flex; align-items: center; gap: 14px; }

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

.pwa-prompt-icon { width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0; object-fit: contain; }
.pwa-prompt-title { font-weight: 700; font-size: .9rem; }
.pwa-prompt-sub { font-size: .78rem; color: var(--text-muted); }
.pwa-prompt-actions { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */
@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-content {
    margin-left: 0;
  }
  .btn-sidebar-toggle { display: block; }
  .page-content { padding: 16px; }
}

@media (max-width: 767px) {
  .auth-card { padding: 28px 20px; }
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 2rem; }
  .stat-card { padding: 16px; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .table thead { display: none; }
  .table td { display: block; padding: 8px 16px; }
  .table td::before { content: attr(data-label); font-weight: 600; font-size: .75rem; color: var(--text-muted); display: block; }
  .table tr { border-bottom: 1px solid var(--border); }
}

/* ---- Animations ---- */
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toasts */
.toast-container { z-index: 9999; }
