/* ============================================
   LOVELY SCAN ADMIN - GLOBAL STYLES
   ============================================ */
:root {
  --primary: #e11d78;
  --primary-light: #f472b6;
  --primary-dark: #9d174d;
  --secondary: #a855f7;
  --accent: #06b6d4;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: rgba(228,29,120,0.15);

  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-sidebar: #94a3b8;
  --text-sidebar-active: #f1f5f9;

  --border: #e2e8f0;
  --border-focus: #e11d78;

  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);

  --transition: 0.2s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ============================================
   UTILS
   ============================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 40%, #ede9fe 100%);
  padding: 1rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(228,29,120,.1);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.login-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.login-sub { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; margin-bottom: 1.75rem; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.125rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.375rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225,29,120,.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 2.5rem; }
.toggle-pw {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex; align-items: center;
}
.toggle-pw:hover { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform var(--transition), width var(--transition);
}
.sidebar-header {
  padding: 1.25rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: var(--topbar-height);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.sidebar-title {
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.sidebar-close-btn {
  color: var(--text-sidebar);
  display: none;
  padding: 0.25rem;
  border-radius: 4px;
}
.sidebar-close-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--text-sidebar);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition);
  position: relative;
  margin: 0 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: #f1f5f9; }
.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--primary-light);
}
.nav-item.active svg { color: var(--primary-light); }
.nav-item .badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.nav-item .badge-danger { background: var(--danger); }
.nav-divider { border-top: 1px solid rgba(255,255,255,.06); margin: 0.5rem 1rem; }

.sidebar-footer {
  padding: 0.875rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}
.admin-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.admin-avatar.sm { width: 30px; height: 30px; font-size: 0.75rem; }
.admin-info { min-width: 0; }
.admin-name { display: block; font-size: 0.8125rem; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-role { display: block; font-size: 0.7rem; color: var(--text-sidebar); }
.btn-logout {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sidebar);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-logout:hover { background: rgba(239,68,68,.15); color: var(--danger); }

/* MAIN WRAPPER */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 10;
}
.menu-toggle {
  display: none;
  color: var(--text-muted);
  padding: 0.375rem;
  border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-title { font-weight: 600; font-size: 1rem; flex: 1; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.topbar-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.topbar-btn:hover { background: var(--bg); color: var(--primary); }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* CONTENT */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-header-left h1 { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.page-header-left p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.125rem; }
.page-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.card-body { padding: 1.25rem; }
.card-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.pink { background: #fdf2f8; color: var(--primary); }
.stat-icon.purple { background: #faf5ff; color: var(--secondary); }
.stat-icon.green { background: #f0fdf4; color: var(--success); }
.stat-icon.blue { background: #eff6ff; color: var(--info); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 1.625rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafafa; }
.table-actions { display: flex; gap: 0.375rem; flex-wrap: wrap; }

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-input-wrap svg {
  position: absolute; left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-wrap input {
  padding: 0.575rem 0.875rem 0.575rem 2.375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.search-input-wrap input:focus { border-color: var(--primary); }
.filter-select {
  padding: 0.575rem 2rem 0.575rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--primary); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pagination-info { font-size: 0.8125rem; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 0.25rem; }
.pagination-btns .pg-btn {
  min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0 0.375rem;
}
.pagination-btns .pg-btn:hover { border-color: var(--primary); color: var(--primary); background: #fdf2f8; }
.pagination-btns .pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination-btns .pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   BADGES / STATUS
   ============================================ */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active, .status-verified { background: #f0fdf4; color: #15803d; }
.status-inactive, .status-banned { background: #fef2f2; color: #b91c1c; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-reviewed { background: #eff6ff; color: #1d4ed8; }
.status-dismissed { background: #f1f5f9; color: #475569; }
.status-matched { background: #fdf4ff; color: #7e22ce; }
.status-premium { background: linear-gradient(135deg, #fdf2f8, #faf5ff); color: var(--primary); border: 1px solid rgba(228,29,120,.2); }

/* ============================================
   USER AVATAR
   ============================================ */
.user-cell { display: flex; align-items: center; gap: 0.625rem; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-name { font-weight: 500; }
.user-email { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 700px; }
.modal-header {
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-shrink: 0;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 1.375rem; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 1rem 1.375rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 0.625rem;
  flex-shrink: 0;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.625rem;
  z-index: 2000;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
  pointer-events: all;
  max-width: 320px;
  min-width: 240px;
}
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
.toast.warning { background: #92400e; }
.toast-icon { flex-shrink: 0; }
.toast-msg { flex: 1; }

/* ============================================
   LOADING
   ============================================ */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 18px; height: 18px;
  border-width: 2px;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state svg { color: var(--text-light); margin-bottom: 0.75rem; }
.empty-state h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */
.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.375rem;
  flex-shrink: 0;
}
.activity-dot.green { background: var(--success); }
.activity-dot.blue { background: var(--info); }
.activity-dot.orange { background: var(--warning); }
.activity-dot.red { background: var(--danger); }
.activity-text { flex: 1; font-size: 0.875rem; color: var(--text); }
.activity-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.mini-chart { height: 180px; display: flex; align-items: flex-end; gap: 4px; padding: 0.5rem 0; }
.mini-chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  opacity: 0.85;
  transition: opacity var(--transition);
  min-height: 4px;
}
.mini-chart-bar:hover { opacity: 1; }
.chart-labels { display: flex; gap: 4px; margin-top: 0.375rem; }
.chart-label { flex: 1; text-align: center; font-size: 0.7rem; color: var(--text-muted); }

/* ============================================
   DETAIL PANEL (User Profile)
   ============================================ */
.detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.detail-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}
.detail-info h2 { font-size: 1.125rem; font-weight: 600; }
.detail-info p { font-size: 0.8125rem; color: var(--text-muted); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.detail-field label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .2rem; }
.detail-field span { font-size: 0.875rem; color: var(--text); }
.detail-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.detail-photo {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--text-light);
  font-size: 0.7rem;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   NOTIFICATION FORM
   ============================================ */
.notif-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 0.75rem;
}
.notif-preview-title { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.notif-preview-body { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================
   SETTINGS
   ============================================ */
.settings-section { margin-bottom: 1.5rem; }
.settings-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 0.75rem;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info label { font-weight: 500; font-size: 0.875rem; }
.settings-row-info p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-knob {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-knob::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-knob { background: var(--primary); }
.toggle-switch input:checked + .toggle-knob::before { transform: translateX(20px); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; }
  .menu-toggle { display: flex; }
  .main-wrapper { width: 100%; }
  .content { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stat-value { font-size: 1.375rem; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-input-wrap { max-width: 100%; }
}

@media (max-width: 480px) {
  .login-card { padding: 2rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal { border-radius: var(--radius); }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
}
.sidebar-overlay.visible { display: block; }
