/* ============================================================
   VINTAGE TIME — ADMIN DASHBOARD DESIGN SYSTEM EXTENSION
   Dark Luxury SaaS Interface · Gold on Obsidian
   ============================================================ */

/* ── ADMIN LAYOUT TOKENS ────────────────────────────────────── */
:root {
  --sidebar-w:        260px;
  --sidebar-collapsed: 72px;
  --topbar-h:         64px;
  --admin-bg:         #050508;
  --admin-surface:    #0C0C16;
  --admin-surface-2:  #121220;
  --admin-surface-3:  #181828;
  --admin-border:     rgba(212, 175, 55, 0.1);
  --admin-border-2:   rgba(212, 175, 55, 0.2);
  --admin-glow:       rgba(212, 175, 55, 0.08);

  /* Status colors */
  --status-pending:   #F59E0B;
  --status-confirmed: #3B82F6;
  --status-shipped:   #8B5CF6;
  --status-delivered: #10B981;
  --status-canceled:  #EF4444;

  /* Chart palette */
  --chart-gold:       rgba(212, 175, 55, 0.85);
  --chart-gold-2:     rgba(212, 175, 55, 0.4);
  --chart-blue:       rgba(99, 179, 237, 0.7);
  --chart-purple:     rgba(167, 139, 250, 0.7);
  --chart-green:      rgba(52, 211, 153, 0.7);
}

/* ── ADMIN RESET ─────────────────────────────────────────────── */
.admin-body {
  background: var(--admin-bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* ── LOGIN PAGE ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--admin-bg);
  position: relative;
}

.login-visual {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .login-visual { display: block; } }
.login-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.5) sepia(0.4);
}
.login-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 0%, rgba(5,5,8,0.95) 100%),
    linear-gradient(135deg, rgba(212,175,55,0.06) 0%, transparent 60%);
}

/* Animated gold lines on visual */
.login-visual-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.login-visual-lines::before,
.login-visual-lines::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(212,175,55,0.3), transparent);
  animation: lineDrift 6s ease-in-out infinite;
}
.login-visual-lines::before { left: 30%; top: 20%; }
.login-visual-lines::after { left: 70%; top: 10%; animation-delay: 3s; }
@keyframes lineDrift {
  0%, 100% { opacity: 0; transform: translateY(-20px); }
  50%       { opacity: 1; transform: translateY(20px); }
}

.login-visual-text {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 2;
}
.login-visual-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  max-width: 320px;
}
.login-visual-attr {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 12px;
}

.login-form-panel {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 899px) { .login-form-panel { max-width: 100%; } }

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}
.login-logo-wrap svg { width: 56px; height: 56px; }
.login-logo-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 10px;
}
.login-logo-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 6px;
}
.login-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.login-field { margin-bottom: 20px; }
.login-label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}
.login-input-wrap { position: relative; }
.login-input {
  width: 100%;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 15px 48px 15px 18px;
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  font-family: var(--sans);
}
.login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.1);
}
.login-input::placeholder { color: var(--text-muted); font-size: 0.8rem; }
.login-input-icon {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.login-input-icon svg { width: 16px; height: 16px; }
.toggle-password { cursor: pointer; transition: color 0.2s; }
.toggle-password:hover { color: var(--gold); }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.login-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-remember input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--gold);
}
.login-forgot { color: var(--gold); transition: opacity 0.2s; }
.login-forgot:hover { opacity: 0.7; }

.login-btn {
  width: 100%;
  padding: 17px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.3s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-btn:hover {
  background: var(--gold-light);
  box-shadow: 0 16px 48px rgba(212,175,55,0.35);
  transform: translateY(-1px);
}
.login-btn svg { width: 15px; height: 15px; }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
  padding: 12px 16px;
  font-size: 0.75rem;
  margin-bottom: 20px;
  display: none;
  letter-spacing: 0.05em;
}
.login-error.show { display: block; animation: fadeUp 0.3s var(--ease-luxury); }

.login-footer-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

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

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: width 0.35s var(--ease-luxury), transform 0.35s var(--ease-luxury);
  overflow: hidden;
}
.admin-sidebar.collapsed { width: var(--sidebar-collapsed); }
.admin-sidebar.mobile-hidden { transform: translateX(-100%); }
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.mobile-open { transform: translateX(0); }
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--admin-border);
  gap: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, width 0.35s;
}
.sidebar-brand-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.sidebar-brand-tag {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.collapsed .sidebar-brand-text { opacity: 0; width: 0; }

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section-label {
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 24px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
}
.collapsed .sidebar-section-label { opacity: 0; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-nav-item:hover { color: var(--off-white); background: rgba(212,175,55,0.04); }
.sidebar-nav-item.active { color: var(--gold); background: rgba(212,175,55,0.08); }
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}
.sidebar-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.5; }
.nav-label { font-size: 0.8125rem; overflow: hidden; transition: opacity 0.2s, width 0.35s; }
.collapsed .nav-label { opacity: 0; width: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--black);
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  transition: opacity 0.2s;
}
.collapsed .nav-badge { opacity: 0; }

/* Tooltip for collapsed state */
.sidebar-nav-item[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(var(--sidebar-collapsed) + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--admin-surface-3);
  border: 1px solid var(--admin-border-2);
  color: var(--cream);
  font-size: 0.7rem;
  padding: 6px 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 300;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeIn 0.2s 0.3s forwards;
}
.collapsed .sidebar-nav-item[data-tip]:hover::after { opacity: 1; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
}
.sidebar-user:hover { border-color: var(--gold); }
.sidebar-avatar {
  width: 32px; height: 32px;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--gold);
}
.sidebar-user-info { overflow: hidden; transition: opacity 0.2s, width 0.35s; }
.sidebar-user-name { font-size: 0.8rem; color: var(--cream); white-space: nowrap; }
.sidebar-user-role { font-size: 0.6rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; }
.collapsed .sidebar-user-info { opacity: 0; width: 0; }

/* ── ADMIN MAIN ──────────────────────────────────────────────── */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.35s var(--ease-luxury);
}
.admin-main.expanded { margin-left: var(--sidebar-collapsed); }
@media (max-width: 1024px) { .admin-main { margin-left: 0 !important; } }

/* ── TOPBAR ──────────────────────────────────────────────────── */
.admin-topbar {
  height: var(--topbar-h);
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.sidebar-toggle-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}
.sidebar-toggle-btn:hover { color: var(--gold); }
.sidebar-toggle-btn svg { width: 20px; height: 20px; }

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.topbar-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.topbar-breadcrumb a:hover { color: var(--gold); }
.topbar-breadcrumb span { color: var(--cream); }
.topbar-breadcrumb svg { width: 12px; height: 12px; color: var(--text-muted); }

.topbar-search-wrap {
  position: relative;
  display: none;
}
@media (min-width: 640px) { .topbar-search-wrap { display: block; } }
.topbar-search {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 9px 16px 9px 38px;
  font-size: 0.8rem;
  color: var(--cream);
  outline: none;
  width: 220px;
  transition: border-color 0.2s, width 0.3s;
  font-family: var(--sans);
}
.topbar-search:focus { border-color: var(--gold); width: 280px; }
.topbar-search::placeholder { color: var(--text-muted); font-size: 0.75rem; }
.topbar-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.topbar-search-icon svg { width: 14px; height: 14px; }

.topbar-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.topbar-icon-btn:hover { color: var(--gold); border-color: var(--admin-border-2); }
.topbar-icon-btn svg { width: 18px; height: 18px; }
.topbar-notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  border: 1px solid var(--admin-bg);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(212,175,55,0); }
}

.topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--admin-border);
}

.topbar-avatar {
  width: 34px; height: 34px;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s;
}
.topbar-avatar:hover { background: rgba(212,175,55,0.15); }

/* ── CONTENT AREA ────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 32px 28px;
  overflow-x: hidden;
}
@media (max-width: 640px) { .admin-content { padding: 20px 16px; } }

/* Page header */
.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-page-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.admin-page-title em { font-style: italic; color: var(--gold-light); }
.admin-page-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.admin-page-actions { display: flex; gap: 10px; align-items: center; }

/* ── METRIC CARDS ────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 900px) { .metrics-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }

.metric-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--admin-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.metric-card:hover { border-color: var(--admin-border-2); }
.metric-card:hover::before { opacity: 1; }
.metric-card:hover .metric-icon { color: var(--gold); }

.metric-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 0.2s;
}
.metric-icon svg { width: 20px; height: 20px; }

.metric-label {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.metric-value {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-value .unit {
  font-size: 0.7em;
  color: var(--text-secondary);
}
.metric-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
}
.metric-change.up { color: #34D399; }
.metric-change.down { color: #F87171; }
.metric-change svg { width: 12px; height: 12px; }

/* Gold accent corner line */
.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-luxury);
}
.metric-card:hover::after { width: 100%; }

/* ── CHARTS ──────────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 900px) { .charts-grid { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1200px) { .charts-grid { grid-template-columns: 3fr 2fr; } }

.chart-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 768px) { .chart-row-2 { grid-template-columns: 1fr 1fr; } }

.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 24px;
  position: relative;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.admin-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream);
}
.admin-card-subtitle {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 2px;
}
.admin-card-action {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: opacity 0.2s;
}
.admin-card-action:hover { opacity: 0.7; }

.chart-wrap {
  position: relative;
  width: 100%;
}
.chart-wrap canvas { max-width: 100%; }

/* Chart period selector */
.chart-periods {
  display: flex;
  gap: 4px;
}
.chart-period-btn {
  padding: 4px 10px;
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
  background: none;
}
.chart-period-btn:hover { color: var(--gold); }
.chart-period-btn.active {
  color: var(--gold);
  border-color: var(--admin-border-2);
  background: var(--admin-glow);
}

/* Brand bars (top brands) */
.brand-bars { display: flex; flex-direction: column; gap: 14px; }
.brand-bar-item { display: flex; flex-direction: column; gap: 6px; }
.brand-bar-meta { display: flex; justify-content: space-between; align-items: center; }
.brand-bar-name { font-size: 0.75rem; color: var(--off-white); }
.brand-bar-pct { font-size: 0.625rem; color: var(--text-muted); }
.brand-bar-track {
  height: 3px;
  background: var(--admin-surface-3);
  border-radius: 2px;
  overflow: hidden;
}
.brand-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-luxury);
}
.brand-bar-fill.animated { transform: scaleX(1); }

/* City table (small) */
.city-table { width: 100%; border-collapse: collapse; }
.city-table tr { border-bottom: 1px solid var(--admin-border); }
.city-table tr:last-child { border-bottom: none; }
.city-table td {
  padding: 10px 0;
  font-size: 0.8rem;
  vertical-align: middle;
}
.city-table td:first-child { color: var(--text-secondary); }
.city-table td:nth-child(2) { text-align: center; }
.city-table td:last-child { text-align: right; font-family: var(--serif); color: var(--gold-light); font-size: 0.875rem; }
.city-rank {
  width: 20px; height: 20px;
  background: var(--admin-surface-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5625rem;
  color: var(--text-muted);
}
.city-rank.gold-rank { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--admin-border-2); }

/* ── NOTIFICATION CENTER ──────────────────────────────────────── */
.notifications-panel {
  position: absolute;
  top: calc(var(--topbar-h) + 8px);
  right: 16px;
  width: 360px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-2);
  z-index: 500;
  display: none;
  animation: dropIn 0.25s var(--ease-luxury);
  max-height: 80vh;
  overflow: hidden;
  flex-direction: column;
}
.notifications-panel.open { display: flex; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-title { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); }
.notif-clear { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); cursor: pointer; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--admin-border);
  transition: background 0.15s;
  cursor: pointer;
}
.notif-item:hover { background: var(--admin-glow); }
.notif-item.unread { border-left: 2px solid var(--gold); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.notif-dot.order { background: var(--status-confirmed); }
.notif-dot.stock { background: var(--status-canceled); }
.notif-dot.cart  { background: var(--status-shipped); }
.notif-body { flex: 1; }
.notif-msg { font-size: 0.775rem; color: var(--off-white); line-height: 1.4; margin-bottom: 3px; }
.notif-time { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); }
.notif-amount { font-family: var(--serif); font-size: 0.875rem; color: var(--gold-light); }

/* ── DATA TABLE ──────────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.admin-table thead tr {
  border-bottom: 1px solid var(--admin-border-2);
}
.admin-table th {
  padding: 12px 16px;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}
.admin-table th:hover { color: var(--gold); }
.admin-table th.sorted { color: var(--gold); }
.admin-table th svg { width: 10px; height: 10px; display: inline; margin-left: 4px; vertical-align: middle; }

.admin-table tbody tr {
  border-bottom: 1px solid var(--admin-border);
  transition: background 0.15s;
  cursor: pointer;
}
.admin-table tbody tr:hover { background: rgba(212,175,55,0.03); }
.admin-table td {
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.admin-table td.primary { color: var(--cream); font-weight: 400; }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pending   { background: rgba(245,158,11,0.12); color: var(--status-pending);   border: 1px solid rgba(245,158,11,0.2); }
.status-pending::before   { background: var(--status-pending); }
.status-confirmed { background: rgba(59,130,246,0.12); color: var(--status-confirmed); border: 1px solid rgba(59,130,246,0.2); }
.status-confirmed::before { background: var(--status-confirmed); }
.status-shipped   { background: rgba(139,92,246,0.12); color: var(--status-shipped);   border: 1px solid rgba(139,92,246,0.2); }
.status-shipped::before   { background: var(--status-shipped); }
.status-delivered { background: rgba(16,185,129,0.12); color: var(--status-delivered); border: 1px solid rgba(16,185,129,0.2); }
.status-delivered::before { background: var(--status-delivered); }
.status-canceled  { background: rgba(239,68,68,0.12);  color: var(--status-canceled);  border: 1px solid rgba(239,68,68,0.2); }
.status-canceled::before  { background: var(--status-canceled); }

/* Table filters row */
.table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 14px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--admin-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}
.filter-btn:hover { border-color: var(--admin-border-2); color: var(--cream); }
.filter-btn.active { border-color: var(--gold); color: var(--gold); background: var(--admin-glow); }

.table-search-wrap { margin-left: auto; position: relative; }
.table-search {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 7px 12px 7px 32px;
  font-size: 0.775rem;
  color: var(--cream);
  outline: none;
  font-family: var(--sans);
  width: 180px;
  transition: border-color 0.2s;
}
.table-search:focus { border-color: var(--gold); }
.table-search::placeholder { color: var(--text-muted); font-size: 0.7rem; }
.table-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.table-search-icon svg { width: 13px; height: 13px; color: var(--text-muted); }

/* Action btns in table */
.table-action-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.table-action-btn:hover { color: var(--gold); border-color: var(--admin-border-2); }
.table-action-btn.danger:hover { color: var(--status-canceled); border-color: rgba(239,68,68,0.3); }
.table-action-btn svg { width: 14px; height: 14px; }

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-info { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  border: 1px solid var(--admin-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: var(--sans);
}
.page-btn:hover { border-color: var(--admin-border-2); color: var(--cream); }
.page-btn.active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 700; }

/* ── ORDER MODAL (Tracking Timeline) ────────────────────────── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.admin-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-panel {
  width: 100%;
  max-width: 560px;
  height: 100vh;
  background: var(--admin-surface);
  border-left: 1px solid var(--admin-border-2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-luxury);
  display: flex;
  flex-direction: column;
}
.admin-modal-overlay.open .admin-modal-panel { transform: translateX(0); }

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--admin-surface);
  z-index: 10;
}
.modal-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; color: var(--cream); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--admin-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 28px; flex: 1; }

/* Tracking Timeline */
.tracking-timeline {
  position: relative;
  padding-left: 28px;
}
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--admin-border));
}

.timeline-step {
  position: relative;
  padding-bottom: 28px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--admin-border);
  background: var(--admin-surface);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot.done {
  border-color: var(--gold);
  background: var(--gold);
}
.timeline-dot.done svg { width: 8px; height: 8px; color: var(--black); }
.timeline-dot.active {
  border-color: var(--status-confirmed);
  background: rgba(59,130,246,0.15);
}
.timeline-dot.active::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status-confirmed);
}

.timeline-step-label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.timeline-step-label.done { color: var(--gold); }
.timeline-step-label.active { color: var(--status-confirmed); }
.timeline-step-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.timeline-step-time { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 4px; }

/* Order detail fields */
.order-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.order-field { }
.order-field-label {
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.order-field-value { font-size: 0.875rem; color: var(--cream); }
.order-field-value.gold { color: var(--gold-light); font-family: var(--serif); }

/* Status change dropdown in modal */
.status-select-wrap { margin-top: 20px; }
.admin-select {
  width: 100%;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 12px 16px;
  color: var(--cream);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  font-family: var(--sans);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23D4AF37' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.admin-select:focus { border-color: var(--gold); }
.admin-select option { background: var(--admin-surface-2); }

/* ── PRODUCT FORM ─────────────────────────────────────────────── */
.product-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .product-form-grid { grid-template-columns: 1fr 1.4fr; } }

.form-section {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 28px;
}
.form-section-title {
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-form-group { margin-bottom: 20px; }
.admin-label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 9px;
  font-weight: 500;
}
.admin-label .required { color: var(--gold); margin-left: 3px; }

.admin-input,
.admin-textarea,
.admin-select-field {
  width: 100%;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  font-family: var(--sans);
}
.admin-input:focus,
.admin-textarea:focus,
.admin-select-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.08);
}
.admin-input::placeholder,
.admin-textarea::placeholder { color: var(--text-muted); font-size: 0.8rem; }
.admin-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.admin-input-wrap { position: relative; }
.admin-input-suffix {
  position: absolute;
  right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--gold);
  font-family: var(--serif);
  pointer-events: none;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* Image upload area */
.image-upload-area {
  border: 1px dashed var(--admin-border-2);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.image-upload-area:hover { border-color: var(--gold); background: var(--admin-glow); }
.image-upload-area.has-image { border-style: solid; border-color: var(--admin-border-2); padding: 0; }
.image-upload-area img { width: 100%; height: 240px; object-fit: cover; display: block; }
.image-upload-icon svg { width: 32px; height: 32px; color: var(--text-muted); margin: 0 auto 12px; }
.image-upload-text { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 6px; }
.image-upload-sub { font-size: 0.625rem; letter-spacing: 0.1em; color: var(--text-muted); }
.image-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-upload-area.has-image:hover .image-upload-overlay { opacity: 1; }
.image-upload-overlay span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* Badge selector */
.badge-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
@media (max-width: 500px) { .badge-selector { grid-template-columns: repeat(3, 1fr); } }
.badge-opt {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 500;
  background: none;
}
.badge-opt:hover { border-color: var(--admin-border-2); color: var(--cream); }
.badge-opt.selected { border-color: var(--gold); color: var(--gold); background: var(--admin-glow); }
.badge-opt.none-opt { font-style: italic; color: var(--text-muted); }
.badge-custom-input {
  display: none;
  margin-top: 10px;
}
.badge-custom-input.show { display: block; }

/* Multi-select categories */
.category-multi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-muted) transparent;
}
.cat-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-checkbox-item:hover { border-color: var(--admin-border-2); background: var(--admin-glow); }
.cat-checkbox-item.checked { border-color: var(--gold); background: rgba(212,175,55,0.06); }
.cat-check-box {
  width: 14px; height: 14px;
  border: 1px solid var(--admin-border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.cat-checkbox-item.checked .cat-check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.cat-check-box svg { width: 9px; height: 9px; color: var(--black); display: none; }
.cat-checkbox-item.checked .cat-check-box svg { display: block; }
.cat-name { font-size: 0.8rem; color: var(--text-secondary); }
.cat-checkbox-item.checked .cat-name { color: var(--cream); }
.cat-count {
  margin-left: auto;
  font-size: 0.5625rem;
  color: var(--text-muted);
  background: var(--admin-surface-3);
  padding: 2px 6px;
}

/* Products grid (admin) */
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .admin-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .admin-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .admin-products-grid { grid-template-columns: repeat(5, 1fr); } }

.admin-product-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.admin-product-card:hover { border-color: var(--admin-border-2); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.admin-product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.admin-product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.admin-product-card:hover .admin-product-card-img img { transform: scale(1.04); }

.admin-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(5,5,8,0.9);
  border: 1px solid var(--admin-border-2);
  color: var(--gold);
  font-weight: 600;
  z-index: 2;
}
.badge-new { border-color: rgba(52,211,153,0.4); color: #34D399; }
.badge-bestseller { border-color: var(--admin-border-2); color: var(--gold); }
.badge-soldout { border-color: rgba(239,68,68,0.4); color: #F87171; }
.badge-discount { border-color: rgba(245,158,11,0.4); color: #FCD34D; }

.admin-product-card-actions {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}
.admin-product-card:hover .admin-product-card-actions { opacity: 1; }

.admin-product-card-info {
  padding: 14px;
}
.admin-product-card-brand { font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.admin-product-card-name { font-family: var(--serif); font-size: 0.875rem; color: var(--cream); margin-bottom: 4px; }
.admin-product-card-price { font-family: var(--serif); font-size: 0.875rem; color: var(--gold-light); }

/* ── CATEGORIES SECTION ──────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }

.category-admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.category-admin-card:hover { border-color: var(--admin-border-2); background: var(--admin-surface-2); }
.category-admin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.3s var(--ease-luxury);
}
.category-admin-card:hover::before { height: 100%; }
.cat-card-name { font-family: var(--serif); font-size: 1rem; font-weight: 300; color: var(--cream); margin-bottom: 4px; }
.cat-card-count { font-size: 0.625rem; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 12px; }
.cat-card-bar { height: 2px; background: var(--admin-surface-3); border-radius: 1px; overflow: hidden; }
.cat-card-bar-fill { height: 100%; background: var(--gold); border-radius: 1px; }
.cat-card-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ── SETTINGS ────────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; } }

.settings-card { background: var(--admin-surface); border: 1px solid var(--admin-border); padding: 28px; }
.settings-card-title {
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
  cursor: pointer;
}
.toggle-switch:last-child { border-bottom: none; }
.toggle-switch-label { font-size: 0.8rem; color: var(--text-secondary); }
.toggle-switch-sub { font-size: 0.625rem; color: var(--text-muted); }
.toggle {
  position: relative;
  width: 36px; height: 20px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--admin-surface-3);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 20px;
}
.toggle input:checked + .toggle-track { background: var(--gold); border-color: var(--gold); }
.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--admin-surface-3);
  transition: left 0.2s var(--ease-spring);
}
.toggle input:checked + .toggle-track::after {
  left: 18px;
  background: var(--black);
}

/* Subscribers list */
.subscriber-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.8rem;
}
.subscriber-item:last-child { border-bottom: none; }
.subscriber-email { color: var(--text-secondary); }
.subscriber-date { font-size: 0.6rem; color: var(--text-muted); }
.subscriber-del { color: var(--text-muted); cursor: pointer; transition: color 0.15s; }
.subscriber-del:hover { color: var(--status-canceled); }
.subscriber-del svg { width: 13px; height: 13px; }

/* ── ADMIN BUTTONS ───────────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.admin-btn svg { width: 14px; height: 14px; }
.admin-btn-gold { background: var(--gold); color: var(--black); }
.admin-btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 24px rgba(212,175,55,0.3); }
.admin-btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--admin-border); }
.admin-btn-outline:hover { border-color: var(--admin-border-2); color: var(--cream); }
.admin-btn-danger { background: transparent; color: var(--status-canceled); border: 1px solid rgba(239,68,68,0.3); }
.admin-btn-danger:hover { background: rgba(239,68,68,0.1); }
.admin-btn-sm { padding: 7px 14px; font-size: 0.5625rem; }
.admin-btn-icon { padding: 8px; width: 34px; height: 34px; }

/* ── MOBILE OVERLAY for sidebar ──────────────────────────────── */
.sidebar-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.sidebar-mobile-overlay.show { display: block; }

/* ── LIVE ORDER TICKER ───────────────────────────────────────── */
.live-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212,175,55,0.06);
  border: 1px solid var(--admin-border-2);
  border-radius: 2px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  overflow: hidden;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--status-delivered);
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
.ticker-text { overflow: hidden; white-space: nowrap; }

/* ── PRODUCT VIEW LIST (toggle) ──────────────────────────────── */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--admin-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.view-btn:hover { color: var(--gold); border-color: var(--admin-border-2); }
.view-btn.active { background: var(--admin-glow); color: var(--gold); border-color: var(--gold); }
.view-btn svg { width: 14px; height: 14px; }

/* ── STATS MINI SPARK LINES ──────────────────────────────────── */
.spark-line {
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 8px;
}
.spark-bar {
  flex: 1;
  background: rgba(212,175,55,0.2);
  border-radius: 1px;
  transition: background 0.2s;
  min-width: 4px;
}
.spark-bar.active { background: rgba(212,175,55,0.7); }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.empty-state svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; color: var(--cream); margin-bottom: 8px; }
.empty-state p { font-size: 0.8rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

/* ── TAB SYSTEM ──────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 28px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab-btn {
  padding: 12px 20px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--sans);
  background: none;
  font-weight: 500;
}
.admin-tab-btn:hover { color: var(--cream); }
.admin-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; animation: fadeIn 0.3s var(--ease-luxury); }

/* ── RESPONSIVE HELPERS ──────────────────────────────────────── */
@media (max-width: 640px) {
  .admin-content { padding: 16px; }
  .admin-page-header { flex-direction: column; }
  .topbar-breadcrumb { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}
