/* Admin — light theme, matching marketplace */
:root {
  --primary: #6d3ce0;
  --primary-hover: #5b2dd1;
  --primary-dark: #4c25b5;
  --primary-50: #f3eeff;
  --primary-100: #e7dcff;
  --accent: #ff7a45;
  --accent-hover: #f9651e;
  --bg: #f5f5f8;
  --bg-soft: #fafafc;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --text: #1c1c20;
  --text-2: #383841;
  --text-muted: #6c6c78;
  --text-dim: #9a9aa6;
  --border: #ececf0;
  --border-2: #dfdfe6;
  --success: #16a373;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --rating: #ffb800;
  --shadow-sm: 0 1px 2px rgba(28, 28, 32, 0.05);
  --shadow: 0 2px 8px rgba(28, 28, 32, 0.06), 0 1px 2px rgba(28, 28, 32, 0.04);
  --shadow-lg: 0 12px 36px rgba(28, 28, 32, 0.10);
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--primary-100); color: var(--primary-dark); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============ LOGIN ============ */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 24px;
  background: var(--bg);
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(109, 60, 224, 0.12), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 122, 69, 0.10), transparent 50%);
  z-index: 0;
}
.login-wrap { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.login-card {
  background: var(--surface);
  padding: 44px 36px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.login-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.login-card h1 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.login-sub { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.login-card .form-group { text-align: left; margin-bottom: 14px; }
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-2);
}
.login-card input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  outline: none;
  font-size: 14px;
  transition: all 0.2s;
}
.login-card input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.login-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 20px;
  margin: 10px 0;
}
.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: white;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-login:hover { background: var(--accent-hover); }
.back-home {
  display: inline-block;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
}
.back-home:hover { color: var(--primary); }

/* ============ LAYOUT ============ */
.admin-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px 22px;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.sidebar-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 700;
}
.sidebar-logo small { color: var(--accent); font-style: italic; font-weight: 500; font-size: 18px; }

.sidebar-nav {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 14px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-align: left;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active {
  background: var(--primary);
  color: white;
}
.nav-item.active:hover { background: var(--primary-hover); }
.nav-icon { font-size: 16px; }
.badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  display: none;
  min-width: 22px;
  text-align: center;
}
.badge.show { display: inline-block; }
.nav-item.active .badge { background: white; color: var(--primary); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%; text-align: left;
}
.sidebar-link:hover { background: var(--bg); color: var(--primary); }

/* ============ MAIN ============ */
.main-content { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar h1 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.admin-user { font-size: 13px; color: var(--text-muted); }
.burger-admin {
  display: none;
  width: 30px; height: 30px;
  flex-direction: column; justify-content: center;
  gap: 5px;
}
.burger-admin span {
  display: block; height: 2px;
  background: var(--text);
}

.tab-content { padding: 28px 32px; display: none; }
.tab-content.active { display: block; }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 24px;
}
.card h2 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.card-head h2 { margin: 0; }
.link-btn {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--primary-dark); }

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.stat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.s-1::before { background: var(--info); }
.s-2::before { background: var(--warning); }
.s-3::before { background: var(--success); }
.s-4::before { background: #a855f7; }
.s-5::before { background: #ec4899; }
.s-6::before { background: var(--accent); }
.s-7::before { background: var(--primary); }
.s-8::before { background: var(--rating); }

.stat-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.stat-card-icon { font-size: 22px; }
.stat-card-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.stat-card-num {
  font-family: var(--font);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  margin: -24px;
  margin-bottom: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--bg-soft); }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.status-new { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.action-btn {
  padding: 6px 11px;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
  background: var(--bg);
  border: 1px solid transparent;
  color: var(--text-2);
  display: inline-flex; align-items: center;
}
.action-btn:hover { background: var(--border); color: var(--text); }
.action-btn.confirm { background: #dbeafe; color: #1e40af; }
.action-btn.confirm:hover { background: #bfdbfe; }
.action-btn.complete { background: #d1fae5; color: #065f46; }
.action-btn.complete:hover { background: #a7f3d0; }
.action-btn.cancel { background: #fee2e2; color: #991b1b; }
.action-btn.cancel:hover { background: #fecaca; }
.action-btn.delete { background: #fee2e2; color: var(--danger); }
.action-btn.delete:hover { background: var(--danger); color: white; }

/* ============ FILTERS / TOOLBARS ============ */
.filters {
  display: flex; gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--primary-200); }
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.actions-bar {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  max-width: 360px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

.btn-admin {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex; align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-primary-admin {
  background: var(--accent);
  color: white;
}
.btn-primary-admin:hover { background: var(--accent-hover); }
.btn-secondary-admin {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary-admin:hover { background: var(--bg); border-color: var(--text-2); }

/* ============ CELLS ============ */
.cell-salon, .cell-service { display: flex; align-items: center; gap: 12px; }
.cell-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cell-thumb-placeholder {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}
.mini-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ============ CATEGORIES GRID (admin) ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}
.category-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.category-card.inactive { opacity: 0.55; }
.cat-photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo-icon {
  position: absolute;
  bottom: -16px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(109, 60, 224, 0.3);
}
.cat-icon { font-size: 44px; padding: 22px 22px 0; }
.cat-card-body { padding: 22px 22px 18px; }
.cat-card-body h3 {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.cat-card-body p { color: var(--text-muted); font-size: 13px; min-height: 18px; }
.cat-card-meta {
  display: flex; justify-content: space-between;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.cat-card-meta code {
  background: var(--primary-50);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-family: ui-monospace, monospace;
}
.cat-card-actions { display: flex; gap: 8px; }

/* ============ REVIEWS ADMIN ============ */
.reviews-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.review-admin {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}
.review-admin-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.review-admin-name { font-weight: 600; font-size: 14px; }
.review-admin-rating { color: var(--rating); font-size: 14px; }
.review-admin-salon {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}
.review-admin-text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.review-admin-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.review-admin-actions { display: flex; gap: 8px; }
.pending-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.inactive-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  color: var(--text-dim);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* ============ FORMS ============ */
.settings-form .form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.form-group textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input { width: auto; accent-color: var(--primary); }

/* ============ UPLOAD WIDGET ============ */
.upload-widget, .upload-multi { display: flex; flex-direction: column; gap: 8px; }
.upload-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  border: 1.5px dashed var(--border-2);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.upload-drop:hover, .upload-drop.dragover {
  border-color: var(--primary);
  background: var(--primary-l);
}
.upload-drop-small { padding: 16px; }
.upload-input, .upload-multi-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-text { font-size: 13px; color: var(--text); }
.upload-text strong { color: var(--primary); font-weight: 700; }
.upload-hint { font-size: 11px; color: var(--text-muted); }

.upload-preview {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.upload-preview img, .upload-preview video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.upload-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.85);
  color: white;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  transition: background 0.15s;
}
.upload-remove:hover { background: var(--danger); }
.upload-preview.is-uploading::after,
.upload-multi-item.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, 0.5);
}
.upload-preview.is-uploading::before,
.upload-multi-item.is-uploading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  margin: -14px 0 0 -14px;
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: u-spin 0.7s linear infinite;
  z-index: 1;
}
@keyframes u-spin { to { transform: rotate(360deg); } }

.upload-url-toggle summary {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}
.upload-url-toggle summary::-webkit-details-marker { display: none; }
.upload-url-toggle summary::before {
  content: '+ ';
  color: var(--primary);
  font-weight: 700;
}
.upload-url-toggle[open] summary::before { content: '− '; }
.upload-url-toggle .upload-url-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  margin-top: 6px;
  resize: vertical;
  font-family: inherit;
}
.upload-url-toggle .upload-url-input:focus {
  border-color: var(--primary);
  background: white;
}

.upload-multi-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.upload-multi-preview:empty { display: none; }
.upload-multi-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.upload-multi-item img, .upload-multi-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.upload-multi-item .upload-remove {
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  font-size: 14px;
}

/* ============ MODAL ============ */
.admin-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.admin-modal.active { display: flex; }
.admin-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(28, 28, 32, 0.55);
  backdrop-filter: blur(4px);
}
.admin-modal-content {
  position: relative;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-modal-wide { max-width: 700px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-modal-content h2 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}
.admin-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
}
.admin-modal-close:hover { background: var(--border); }
.modal-actions {
  display: flex; gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 300;
  pointer-events: none;
  max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 56px; margin-bottom: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -260px; top: 0;
    width: 260px;
    z-index: 100;
    transition: left 0.3s;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .burger-admin { display: flex; }
  .tab-content { padding: 20px; }
  .topbar { padding: 14px 20px; }
  .topbar h1 { font-size: 22px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; max-width: none; }
}
