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

/* ═══════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — DARK (DEFAULT)
═══════════════════════════════════════════════════ */
:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --bg:        #080810;
  --surface:   #0e0e1a;
  --surface-2: #141422;
  --surface-3: #1a1a2e;
  --surface-hover: rgba(255,255,255,0.04);

  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --border-accent: rgba(249,115,22,0.3);

  --text-1: #eeeef8;
  --text-2: #8888a8;
  --text-3: #50506a;

  --primary:      #f97316;
  --primary-dark: #ea580c;
  --primary-soft: rgba(249,115,22,0.10);
  --primary-glow: rgba(249,115,22,0.22);

  --success:      #10b981;
  --success-soft: rgba(16,185,129,0.10);
  --danger:       #ef4444;
  --danger-soft:  rgba(239,68,68,0.10);
  --warning:      #f59e0b;
  --warning-soft: rgba(245,158,11,0.10);
  --info:         #3b82f6;
  --info-soft:    rgba(59,130,246,0.10);
  --purple:       #8b5cf6;
  --purple-soft:  rgba(139,92,246,0.10);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.6);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.7);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.8);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.9);

  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --sidebar-w:      260px;
  --header-h:       60px;
  --mobile-header-h: 56px;
  --content-gap:    24px;

  /* Legacy aliases */
  --admin-bg:            var(--bg);
  --admin-surface:       var(--surface);
  --admin-surface-hover: var(--surface-hover);
  --admin-border:        var(--border);
  --admin-border-strong: var(--border-strong);
  --admin-text-1:        var(--text-1);
  --admin-text-2:        var(--text-2);
  --admin-text-3:        var(--text-3);
  --admin-primary:       var(--primary);
  --admin-primary-glow:  var(--primary-glow);
  --admin-success:       var(--success);
  --admin-danger:        var(--danger);
  --admin-warning:       var(--warning);
  --admin-info:          var(--info);
  --admin-shadow-sm:     var(--shadow-sm);
  --admin-shadow-md:     var(--shadow-md);
  --admin-radius-sm:     var(--r-sm);
  --admin-radius-md:     var(--r-md);
  --admin-radius-lg:     var(--r-lg);
  --admin-font:          var(--font);
  --orange:              var(--primary);
  --orange-dark:         var(--primary-dark);
  --orange-glow:         var(--primary-glow);
  --r:                   var(--r-md);
}

/* ═══════════════════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:            #f1f3f7;
  --surface:       #ffffff;
  --surface-2:     #f6f7fb;
  --surface-3:     #eceef4;
  --surface-hover: rgba(0,0,0,0.035);

  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.13);

  --text-1: #0c0c1e;
  --text-2: #52527a;
  --text-3: #9898b8;

  --primary-soft: rgba(249,115,22,0.08);
  --primary-glow: rgba(249,115,22,0.15);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.10);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }

::selection { background: var(--primary-soft); color: var(--primary); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════ */
.desktop-only { display: block; }
.mobile-only  { display: none; }

/* ═══════════════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
═══════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: var(--header-h);
}
.sidebar-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
  box-shadow: 0 4px 16px var(--primary-glow);
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.sidebar-logo:hover { box-shadow: 0 6px 22px var(--primary-glow); }
.sidebar-brand-text {
  font-size: 16px; font-weight: 800;
  color: var(--text-1);
  white-space: nowrap; overflow: hidden;
  letter-spacing: -0.3px;
}
.sidebar-brand-badge {
  font-size: 8px; font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-left: auto;
  white-space: nowrap;
}

/* Sidebar Scroll */
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 8px;
}

/* Nav Label */
.nav-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--text-3);
  padding: 16px 14px 6px;
  user-select: none;
}

/* Nav */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-weight: 500; font-size: 13.5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; overflow: hidden;
  position: relative;
  border: 1px solid transparent;
}
.admin-nav-item i {
  width: 20px; text-align: center;
  font-size: 15px; flex-shrink: 0;
  transition: color 0.15s;
}
.admin-nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}
.admin-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  border-color: var(--border-accent);
}
.admin-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 0 3px 3px 0;
}
.admin-nav-item.danger { color: var(--danger); }
.admin-nav-item.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════════
   TOP HEADER
═══════════════════════════════════════════════════ */
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky; top: 0; z-index: 90;
  min-height: var(--header-h);
  padding: 0 24px 0 28px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* hamburger — desktop hidden */
.sidebar-toggle-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-1);
  border-color: var(--border-strong);
}

.admin-page-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* Header search area */
.admin-header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.admin-header-search i {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary); font-size: 13px;
  pointer-events: none;
}
.admin-header-search input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  border-radius: 22px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.admin-header-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.admin-header-search input::placeholder { color: var(--text-3); }
.admin-header-search .search-clear {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); font-size: 11px;
  padding: 3px 5px; border-radius: 4px;
  transition: all 0.15s;
}
.admin-header-search .search-clear:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

/* Header spacer */
.header-spacer { flex: 1; }

/* Header actions */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.h-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}
.h-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  color: var(--text-1);
}
.h-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff !important;
  width: auto; padding: 0 16px;
  gap: 7px; font-size: 13px; font-weight: 600;
}
.h-btn-primary:hover {
  box-shadow: 0 4px 16px var(--primary-glow);
  color: #fff !important;
}

.admin-profile {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.admin-profile:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  cursor: pointer;
}
.admin-profile-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #d94d00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
  flex-shrink: 0;
}
.admin-profile span {
  font-size: 13px; font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   CONTENT
═══════════════════════════════════════════════════ */
.admin-content {
  padding: var(--content-gap) 28px 40px;
  flex: 1;
}

/* ═══════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════ */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.admin-card:last-child { margin-bottom: 0; }

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-card-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-1);
}

/* Metric card */
.admin-card-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--r-lg) !important;
}
.admin-card-metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-hover);
  opacity: 0;
  transition: opacity 0.2s;
}
.admin-card-metric:hover::before { opacity: 1; }
.admin-card-metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.admin-card-metric .metric-icon {
  font-size: 38px;
  opacity: 0.15;
  transition: opacity 0.2s, transform 0.2s;
}
.admin-card-metric:hover .metric-icon {
  opacity: 0.25;
  transform: scale(1.08);
}
.metric-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 34px; font-weight: 800;
  color: var(--text-1);
  letter-spacing: -1px;
  line-height: 1;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.admin-form-group { margin-bottom: 18px; }
.admin-form-group > label,
.form-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--text-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--surface);
}
.admin-input::placeholder,
.admin-textarea::placeholder { color: var(--text-3); font-weight: 400; }
.admin-textarea { resize: vertical; min-height: 90px; }
.admin-select {
  cursor: pointer;
  appearance: none;
  background-image: 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='%237777a0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: start;
}
.form-column { min-width: 0; }

small.form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 5px;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row label {
  flex: 1;
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.toggle-row label span {
  font-size: 12px; font-weight: 400;
  color: var(--text-3);
  display: block;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  color: var(--text-1);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.admin-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--text-1);
}
.admin-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 2px 10px var(--primary-soft);
}
.admin-btn-primary:hover {
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
  color: #fff !important;
}
.admin-btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239,68,68,0.25);
}
.admin-btn-danger:hover {
  background: var(--danger);
  color: #fff !important;
  border-color: var(--danger);
}
.admin-btn-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(16,185,129,0.25);
}
.admin-btn-success:hover {
  background: var(--success);
  color: #fff !important;
  border-color: var(--success);
}
.admin-btn-sm { padding: 6px 12px; font-size: 12px; }
.admin-btn-xs { padding: 4px 9px; font-size: 11px; }
.admin-btn-lg { padding: 12px 24px; font-size: 14.5px; }
.admin-btn-block { width: 100%; }

/* Icon action buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--text-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.admin-action-btn:hover { background: var(--surface-hover); color: var(--text-1); }
.admin-action-btn.edit:hover { color: var(--primary); background: var(--primary-soft); }
.admin-action-btn.delete:hover { color: var(--danger); background: var(--danger-soft); }
.admin-action-btn.view:hover { color: var(--info); background: var(--info-soft); }

/* ═══════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════ */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.admin-table thead th {
  background: var(--surface-2);
  padding: 11px 16px;
  text-align: left;
  font-weight: 700; font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table thead th a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.admin-table thead th a:hover { color: var(--text-1); }
.admin-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
  vertical-align: middle;
}
.admin-table tbody tr {
  transition: background 0.1s;
}
.admin-table tbody tr:hover { background: var(--surface-hover); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Sortable column header */
.sort-th a { display: inline-flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info    { background: var(--info-soft);    color: var(--info);    }
.badge-purple  { background: var(--purple-soft);  color: var(--purple);  }
.badge-muted   { background: var(--surface-2);    color: var(--text-2);  }

/* ═══════════════════════════════════════════════════
   MOBILE CARDS (m-card)
═══════════════════════════════════════════════════ */
.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s;
}
.m-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.m-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.m-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.m-card-img {
  width: 46px; height: 46px;
  border-radius: 9px;
  background: var(--surface-2);
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border);
  padding: 2px;
}
.m-card-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.m-card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-card-subtitle {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-card-value {
  font-size: 14px; font-weight: 700;
  color: var(--text-1);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.m-card-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.m-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
  gap: 8px;
}
.m-card-badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.m-badge {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.m-badge-success { background: var(--success-soft); color: var(--success); }
.m-badge-danger  { background: var(--danger-soft);  color: var(--danger);  }
.m-badge-warning { background: var(--warning-soft); color: var(--warning); }
.m-badge-info    { background: var(--info-soft);    color: var(--info);    }
.m-badge-dark    { background: var(--surface-2);    color: var(--text-2);  }

/* Legacy aliases */
.m-badge-primary { background: var(--success-soft); color: var(--success); }

.m-card-actions { display: flex; gap: 6px; align-items: center; }
.m-action-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-3);
  padding: 5px; background: none; border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.m-action-btn.edit:hover  { color: var(--primary); background: var(--primary-soft); }
.m-action-btn.delete:hover { color: var(--danger); background: var(--danger-soft); }

.m-card-info-row {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 4px;
}
.m-card-info-row i {
  width: 14px; text-align: center;
  color: var(--text-3); font-size: 11px;
}

/* ═══════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 24px 0 8px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.pagination a:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.pagination span {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px var(--primary-soft);
}

/* ═══════════════════════════════════════════════════
   SETTINGS TABS
═══════════════════════════════════════════════════ */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  gap: 2px;
  padding: 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab {
  padding: 11px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-weight: 600; font-size: 13px;
  transition: all 0.15s;
  margin-bottom: -1px;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.settings-tab:hover {
  color: var(--text-1);
  background: var(--surface-hover);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.settings-tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}
.settings-pane { display: none; }
.settings-pane.active { display: block; animation: fadeUp 0.22s var(--ease); padding: 0 22px 24px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   UPLOAD AREA
═══════════════════════════════════════════════════ */
.upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 32px 18px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-bottom: 14px;
}
.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.upload-area i { font-size: 28px; color: var(--text-3); margin-bottom: 8px; display: block; }
.upload-area p { font-size: 13px; color: var(--text-2); margin: 0; }
.img-preview { max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════
   BULK ACTIONS BAR
═══════════════════════════════════════════════════ */
.bulk-bar {
  display: none;
  background: var(--surface-2);
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.2s var(--ease);
}
.bulk-bar.visible { display: flex; }

/* ═══════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════ */
.login-bg {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.login-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -250px; left: -200px;
  pointer-events: none;
}
.login-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--info-soft) 0%, transparent 70%);
  bottom: -200px; right: -150px;
  pointer-events: none;
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-xl);
  animation: fadeUp 0.4s var(--ease);
}
.login-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.login-card h2 {
  font-size: 22px; font-weight: 800;
  color: var(--text-1);
  text-align: center; margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.login-card p.subtitle {
  color: var(--text-3); font-size: 13px;
  text-align: center; margin-bottom: 28px;
}
.login-error {
  background: var(--danger-soft);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.login-field { margin-bottom: 18px; }
.login-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-2); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.login-field .input-wrap { position: relative; }
.login-field .input-wrap i {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); font-size: 14px;
}
.login-field input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 14px; outline: none;
  font-family: var(--font);
  transition: all 0.2s;
}
.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--surface);
}
.login-field input::placeholder { color: var(--text-3); }
.login-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none;
  border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 16px var(--primary-glow);
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}
.login-divider {
  display: flex; align-items: center;
  margin: 22px 0; gap: 12px;
}
.login-divider hr {
  flex: 1; border: none;
  border-top: 1px solid var(--border);
}
.login-divider span {
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px;
}
.login-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1) !important;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.login-google:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.login-back {
  display: block; text-align: center;
  margin-top: 20px; font-size: 12.5px;
  color: var(--text-3);
  transition: color 0.15s;
}
.login-back:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════
   TOAST / NOTIFICATIONS (reused from main)
═══════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-1);
  animation: slideIn 0.3s var(--ease);
  pointer-events: all;
  max-width: 320px;
}
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.info    { border-color: rgba(59,130,246,0.3); }
.toast i { font-size: 16px; }
.toast .success { color: var(--success); }
.toast .error   { color: var(--danger); }
.toast .info    { color: var(--info); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════
   CONFIRM MODAL
═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 400px; width: 100%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.25s var(--ease);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}
.modal-box h3 {
  font-size: 18px; font-weight: 800;
  color: var(--text-1);
  text-align: center; margin-bottom: 8px;
}
.modal-box p {
  font-size: 13.5px; color: var(--text-3);
  text-align: center; line-height: 1.6;
  margin-bottom: 24px;
}
.modal-actions {
  display: flex; gap: 10px;
}
.modal-actions .admin-btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════════════
   INLINE EDITABLE CELLS
═══════════════════════════════════════════════════ */
.editable-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--r-xs);
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.15s;
}
.editable-cell:hover {
  background: var(--surface-hover);
}
.editable-cell i {
  font-size: 10px;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.15s;
}
.editable-cell:hover i { opacity: 1; }

/* ═══════════════════════════════════════════════════
   SEARCH BAR (standalone)
═══════════════════════════════════════════════════ */
.search-bar {
  position: relative;
  flex: 1;
}
.search-bar i.search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary); font-size: 13px;
  pointer-events: none;
}
.search-bar input {
  width: 100%;
  padding: 9px 32px 9px 36px;
  border-radius: 22px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.search-bar input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar .search-clear-btn {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); font-size: 11px;
  padding: 3px 5px; border-radius: 4px;
  transition: all 0.15s;
}
.search-bar .search-clear-btn:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

/* Toolbar (page action bar under header) */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   INFO ROWS (key-value pairs)
═══════════════════════════════════════════════════ */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .info-key {
  width: 140px; flex-shrink: 0;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-top: 1px;
}
.info-row .info-val {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-1);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADER (h3 style titles inside cards)
═══════════════════════════════════════════════════ */
.section-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title i {
  color: var(--primary);
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════
   FEATURED STAR TOGGLE
═══════════════════════════════════════════════════ */
.star-toggle {
  background: none; border: none;
  font-size: 17px; cursor: pointer;
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
  border-radius: 4px;
}
.star-toggle.active { color: #f59e0b; }
.star-toggle:hover { transform: scale(1.2); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 240px;
    --content-gap: 20px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .admin-content { padding: var(--content-gap) 20px 36px; }
  .admin-header { padding: 0 20px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --content-gap: 16px;
    --header-h: 56px;
  }

  /* Sidebar becomes an off-canvas drawer */
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  /* Main fills full width */
  .admin-main { margin-left: 0; }

  /* Show hamburger */
  .sidebar-toggle-btn { display: flex; }

  /* Header adjustments */
  .admin-header {
    padding: 0 16px;
    gap: 10px;
  }
  .admin-header-search { display: none; }
  .admin-profile span,
  .admin-profile .fa-caret-down { display: none; }

  /* Content */
  .admin-content { padding: 16px 14px 32px; }

  /* Desktop table → hidden, mobile cards → shown */
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  /* Dashboard stats: 2 columns */
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metric-value { font-size: 28px; }

  /* Cards */
  .admin-card { padding: 16px; border-radius: var(--r-md); }
  .admin-card-header { flex-direction: column; align-items: flex-start; }

  /* Buttons */
  .admin-btn { font-size: 12.5px; padding: 8px 14px; }
  .admin-btn-block-mobile { width: 100%; justify-content: center; }

  /* Page toolbar */
  .page-toolbar { flex-direction: column; align-items: stretch; }
  .page-toolbar .admin-btn { width: 100%; justify-content: center; }
  .page-toolbar .search-bar { width: 100%; }

  /* Toast */
  #toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  /* Settings tabs: scrollable */
  .settings-tabs { flex-wrap: nowrap; overflow-x: auto; }

  /* Form grid always 1 column */
  .form-grid { grid-template-columns: 1fr; }

  /* Info row on mobile */
  .info-row { flex-direction: column; gap: 4px; }
  .info-row .info-key { width: auto; }

  /* Modal */
  .modal-actions { flex-direction: column; }

  /* Login */
  .login-card { padding: 28px 22px; border-radius: var(--r-lg); }
}

/* ── Very small (≤480px) ── */
@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 24px; }
  .admin-card { padding: 14px; }
  .admin-header { gap: 8px; }
  .admin-page-title { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Profile Dropdown ── */
.admin-profile-wrap {
  position: relative;
}
.admin-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  animation: fadeSlide 0.15s;
}
.admin-dropdown-menu.show { display: block; }
.admin-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: all 0.12s;
}
.admin-dropdown-item i { width: 16px; text-align: center; font-size: 13px; }
.admin-dropdown-item:hover { background: var(--surface-hover); color: var(--text-1); }
.admin-dropdown-divider { height: 1px; background: var(--border); margin: 4px 8px; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════ */
@media print {
  .admin-sidebar, .admin-header, .admin-header-actions,
  .sidebar-overlay, .sidebar-toggle-btn,
  .admin-btn, .bulk-bar, .pagination { display: none !important; }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 0 !important; }
}

/* ── Admin Mobile Bottom Nav ── */
.admin-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  height: 65px;
  align-items: center;
  justify-content: space-around;
}

@media (max-width: 768px) {
  .admin-mobile-nav {
    display: flex;
  }
  .admin-content {
    padding-bottom: 90px !important;
  }
}

.admin-mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
  height: 100%;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.admin-mob-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
  transition: color 0.2s, transform 0.2s;
}

.admin-mob-nav-item.active,
.admin-mob-nav-item:hover {
  color: var(--primary);
}

.admin-mob-nav-item.active i {
  transform: translateY(-2px);
}

/* Center FAB */
.admin-mob-nav-center {
  width: 20%;
  display: flex;
  justify-content: center;
  position: relative;
  top: -15px;
}

.admin-nav-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #d94d00);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3), 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.admin-nav-fab:active {
  transform: scale(0.92);
}

.admin-mob-nav-item .admin-mob-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 4px;
}

.admin-mob-nav-item .admin-mob-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ── Bottom Sheets for Admin Mobile ── */
.sheet-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  border-top: 1px solid var(--border);
  z-index: 9996;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.bottom-sheet.show {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.sheet-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.close-sheet {
  background: var(--surface-3);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.close-sheet:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}

.sheet-body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sheet-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}

.sheet-menu-item:hover {
  background: var(--surface-3);
  border-color: var(--primary);
}

.sheet-menu-item i {
  color: var(--primary);
  font-size: 16px;
  width: 20px;
  text-align: center;
}


