/* ============================================================
   PIK & LB NEW DAWN — Admin Dashboard Styles
   Pure CSS — No JavaScript
   ============================================================ */

:root {
  --admin-sidebar-w: 286px;
  --admin-bg:        #eef3ef;
  --admin-bg-soft:   #f7faf7;
  --admin-white:     #ffffff;
  --admin-border:    #d9e2da;
  --admin-text:      #1d3126;
  --admin-muted:     #66796d;
  --admin-primary:   #173a2b;
  --admin-primary-2: #224c38;
  --admin-gold:      #c7973f;
  --admin-success:   #218b59;
  --admin-danger:    #d9544d;
  --admin-warning:   #cc8a1e;
  --admin-info:      #2b6cb0;
  --admin-shadow:    0 14px 34px rgba(17, 39, 28, 0.08);
  --admin-shadow-soft: 0 6px 20px rgba(17, 39, 28, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body {
  font-family: 'Lato', Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(199, 151, 63, .08), transparent 22%),
    radial-gradient(circle at 20% 10%, rgba(24, 74, 52, .06), transparent 28%),
    linear-gradient(180deg, #f4f8f3 0%, #edf3ee 48%, #ebf1ec 100%);
  color: var(--admin-text);
  min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(180deg, #10281d 0%, #173a2b 52%, #214635 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.sidebar-brand {
  padding: 1.65rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.sidebar-brand::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(199,151,63,.65), rgba(199,151,63,0));
}
.sidebar-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.sidebar-brand .brand-sub { font-size: .7rem; color: var(--admin-gold); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.sidebar-section-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 1rem 1.25rem .4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,0.74);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform .2s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: #fff; transform: translateX(2px); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(199,151,63,.18), rgba(255,255,255,.08));
  color: #fff;
  border-left-color: var(--admin-gold);
}
.sidebar-link .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,0.5);
  font-size: .82rem;
  text-decoration: none;
}
.sidebar-footer a:hover { color: #fff; }

/* Main content */
.admin-main { margin-left: var(--admin-sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--admin-white);
  border-bottom: 1px solid rgba(217, 226, 218, .8);
  padding: 0 1.5rem;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(17, 39, 28, 0.05);
}
.admin-topbar-left { display:flex; align-items:center; gap:.95rem; }
.admin-topbar .page-title { font-size: 1.15rem; font-weight: 800; color: var(--admin-text); letter-spacing: -.02em; }
.admin-topbar-right { display: flex; align-items: center; gap: 1rem; }
.admin-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: linear-gradient(180deg, #fff, #f5f8f4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--admin-shadow-soft);
}
.admin-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--admin-primary);
  display: block;
}
.admin-user { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 700; }
.admin-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.admin-content { flex: 1; padding: 2rem 1.5rem; scroll-margin-top: 80px; }
.admin-content .admin-card { scroll-margin-top: 80px; }

.admin-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 16, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 90;
}

.admin-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: 1.1rem;
  padding: 1.55rem;
  margin-bottom: 1.55rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(199,151,63,.18), transparent 25%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.06), transparent 22%),
    linear-gradient(135deg, #123322 0%, #1a4631 58%, #214a35 100%);
  color: #fff;
  border: 1px solid rgba(16, 41, 29, .18);
  box-shadow: 0 24px 46px rgba(15, 34, 25, .16);
}
.admin-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.admin-hero-kicker {
  display: inline-block;
  margin-bottom: .55rem;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 800;
}
.admin-hero-panel h1 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: .85rem;
  max-width: 11ch;
  color: #fff;
}
.admin-hero-panel p {
  max-width: 48ch;
  color: rgba(255,255,255,.84);
  line-height: 1.66;
  font-size: .95rem;
}
.admin-hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}
.admin-hero-actions .admin-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.admin-hero-meta {
  display: grid;
  gap: .9rem;
}
.admin-hero-stat {
  padding: 1.15rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(10px);
}
.admin-hero-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .28rem;
}
.admin-hero-stat span {
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
}
.admin-hero-stat small {
  display: block;
  margin-top: .45rem;
  color: rgba(255,255,255,.64);
  font-size: .74rem;
  letter-spacing: .01em;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,252,250,.94));
  border-radius: 22px;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 18px 36px rgba(17, 39, 28, .08);
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  border: 1px solid rgba(217, 226, 218, .85);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow .2s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 38px rgba(17, 39, 28, .11); }
.stat-card.green::before  { background: var(--admin-success); }
.stat-card.gold::before   { background: var(--admin-gold); }
.stat-card.blue::before   { background: var(--admin-info); }
.stat-card.orange::before { background: var(--admin-warning); }
.stat-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.stat-card.green  .icon { background: #d5f0de; color: var(--admin-success); }
.stat-card.gold   .icon { background: #fdf3d7; color: var(--admin-gold); }
.stat-card.blue   .icon { background: #d6eaf8; color: var(--admin-info); }
.stat-card.orange .icon { background: #fdebd0; color: var(--admin-warning); }
.stat-card .eyebrow {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #7f907f;
  font-weight: 800;
  margin-bottom: .45rem;
}
.stat-card .num  {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--admin-text);
}
.stat-card .lbl  {
  font-size: .78rem;
  color: var(--admin-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .32rem;
}
.stat-card .trend { font-size: .79rem; margin-top: .45rem; }
.stat-card .trend.up   { color: var(--admin-success); }
.stat-card .trend.down { color: var(--admin-danger); }

/* ── Cards / Panels ───────────────────────────────────────── */
.admin-card {
  background: rgba(255,255,255,.96);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(17, 39, 28, .08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(217, 226, 218, .85);
}
.admin-card-header {
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid rgba(217, 226, 218, .9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-card-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--admin-text); letter-spacing: -.02em; }
.admin-card-body { padding: 1.2rem 1.3rem; }

/* ── Admin Tables ─────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.admin-table th {
  text-align: left;
  padding: .8rem 1rem;
  background: #f4f7f4;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--admin-muted);
  border-bottom: 2px solid var(--admin-border);
  white-space: nowrap;
}
.admin-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: .9rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9fcf9; }
.admin-table .thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }

/* ── Status Badges ────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-paid      { background: #d5f0de; color: #1e7e34; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-failed    { background: #f8d7da; color: #721c24; }
.status-shipped   { background: #d1ecf1; color: #0c5460; }
.status-active    { background: #d5f0de; color: #1e7e34; }
.status-inactive  { background: #f8d7da; color: #721c24; }

/* ── Admin Forms ──────────────────────────────────────────── */
.admin-form-group { margin-bottom: 1.2rem; }
.admin-form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--admin-muted); margin-bottom: .4rem; letter-spacing: .03em; text-transform: uppercase; }
.admin-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  font-size: .92rem;
  color: var(--admin-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color .2s ease;
}
.admin-input:focus { border-color: var(--admin-primary); box-shadow: 0 0 0 4px rgba(23,58,43,0.08); background:#fff; }
textarea.admin-input { resize: vertical; min-height: 100px; }
.admin-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form-hint { font-size: .78rem; color: var(--admin-muted); margin-top: .3rem; }

/* ── Upload Area ──────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--admin-border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover { border-color: var(--admin-primary); background: #f0f5f1; }
.upload-area .icon { font-size: 2.5rem; margin-bottom: .75rem; color: var(--admin-muted); }
.upload-area p     { font-size: .88rem; color: var(--admin-muted); }
.upload-area input[type=file] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0; left: 0;
}
.upload-area-inner { position: relative; }

/* ── Buttons (Admin) ──────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.18rem;
  border-radius: 14px;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow .2s ease, border-color .2s ease;
}
.admin-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(17, 39, 28, .10); }
.admin-btn-primary { background: linear-gradient(180deg, #1f4b36, #163828); color: #fff; }
.admin-btn-primary:hover { background: linear-gradient(180deg, #255741, #173a2b); }
.admin-btn-gold    { background: var(--admin-gold); color: #fff; }
.admin-btn-success { background: var(--admin-success); color: #fff; }
.admin-btn-danger  { background: var(--admin-danger); color: #fff; }
.admin-btn-outline { background: #fff; color: var(--admin-text); border-color: rgba(191, 205, 194, .9); }
.admin-btn-outline:hover { background: #f4f7f4; }
.admin-btn-ghost {
  background: rgba(23, 58, 43, .06);
  color: var(--admin-primary);
  border-color: rgba(191, 205, 194, .8);
}
.admin-btn-ghost:hover { background: rgba(23, 58, 43, .10); }
.admin-btn-sm      { padding: .5rem .9rem; font-size: .78rem; border-radius: 13px; }

/* ── Login Page ───────────────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(199,151,63,.28), transparent 24%),
    linear-gradient(135deg, #10291d 0%, #173a2b 58%, #2c2010 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.admin-login-card {
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}
.admin-login-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #c7973f, #1f4b36);
}
.admin-login-card .logo-area { text-align: center; margin-bottom: 2rem; }
.admin-login-card .logo-circle {
  width: 72px;
  height: 72px;
  background: #1a4a2e;
  border-radius: 50%;
  margin: 0 auto .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #c9a84c;
}
.admin-login-card h2 { font-size: 1.4rem; color: #1a4a2e; }
.admin-login-card p  { font-size: .85rem; color: #888; margin-top: .25rem; }

/* ── Gallery Grid (Admin) ─────────────────────────────────── */
.admin-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin-gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity 0.2s;
}
.admin-gallery-item:hover .admin-gallery-item-overlay { opacity: 1; }

/* ── Admin Dashboard KPI Row ──────────────────────────────── */
.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .admin-kpi-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .admin-kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin-bottom: 1rem; }
}

/* ── Dashboard Grid Layout ────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.recent-orders-table-wrap { overflow-x: auto; }
.premium-orders-card .admin-card-header,
.quick-actions-card .admin-card-header,
.command-center-card .admin-card-header,
.low-stock-card .admin-card-header {
  background: linear-gradient(180deg, rgba(247,250,247,.96), rgba(255,255,255,.96));
}
.premium-orders-card .admin-table th {
  background: #f7faf7;
}
.dashboard-empty-cell {
  padding: 0 !important;
}
.dashboard-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .8rem;
  min-height: 340px;
  padding: 2.4rem 1.4rem;
  background:
    radial-gradient(circle at top center, rgba(23, 58, 43, .035), transparent 38%),
    linear-gradient(180deg, rgba(247,250,247,.92), rgba(255,255,255,.98));
}
.dashboard-empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: #eef5ef;
  color: var(--admin-primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.dashboard-empty-state h4 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--admin-text);
}
.dashboard-empty-state p {
  max-width: 44ch;
  color: var(--admin-muted);
  font-size: .92rem;
  line-height: 1.7;
}
.dashboard-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: .25rem;
}
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.mini-metric-list {
  display: grid;
  gap: .6rem;
}
.mini-metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid #edf1ed;
}
.mini-metric-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mini-metric-item:first-child {
  padding-top: 0;
}
.mini-metric-item strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--admin-primary);
  flex-shrink: 0;
}
.metric-label {
  display: block;
  font-size: .84rem;
  color: var(--admin-muted);
  font-weight: 800;
}
.metric-note {
  display: block;
  margin-top: .18rem;
  font-size: .74rem;
  line-height: 1.45;
  color: #91a093;
}
.low-stock-list {
  padding-top: .35rem;
  padding-bottom: .55rem;
}
.low-stock-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: .85rem;
  padding:.72rem 0;
  border-bottom:1px solid #edf1ed;
}
.low-stock-item:last-child {
  border-bottom: none;
}
.low-stock-name {
  font-size:.9rem;
  font-weight:800;
  line-height: 1.45;
}
.quick-action-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(217, 226, 218, .92);
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
  text-decoration: none;
  color: var(--admin-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.quick-action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(17, 39, 28, .08);
  border-color: #cdd8cf;
}
.quick-action-item.primary {
  background: linear-gradient(180deg, #1f4b36, #163828);
  border-color: rgba(20, 54, 38, .92);
  color: #fff;
}
.quick-action-item.success {
  background: linear-gradient(180deg, #2d9a60, #218b59);
  border-color: rgba(33, 139, 89, .95);
  color: #fff;
}
.quick-action-item.gold {
  background: linear-gradient(180deg, #d3a445, #c7973f);
  border-color: rgba(199, 151, 63, .95);
  color: #fff;
}
.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f6f2;
  color: var(--admin-primary);
  flex-shrink: 0;
  font-size: 1rem;
}
.quick-action-item.primary .quick-action-icon,
.quick-action-item.success .quick-action-icon,
.quick-action-item.gold .quick-action-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.quick-action-copy {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}
.quick-action-copy strong {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
}
.quick-action-copy small {
  font-size: .74rem;
  line-height: 1.45;
  color: #7f907f;
}
.quick-action-item.primary .quick-action-copy small,
.quick-action-item.success .quick-action-copy small,
.quick-action-item.gold .quick-action-copy small {
  color: rgba(255,255,255,.82);
}

/* ── Premium Dashboard Redesign ───────────────────────────── */
.dashboard-premium {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.dashboard-debug-panel {
  background: linear-gradient(180deg, #fffdf6, #fffaf0);
  border: 1px solid rgba(199, 151, 63, .28);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(76, 55, 18, .08);
  overflow: hidden;
}
.dashboard-debug-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: 1rem 1.35rem 1.35rem;
}
.dashboard-debug-grid div {
  padding: .9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(199, 151, 63, .14);
}
.dashboard-debug-grid span {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a7b4d;
}
.dashboard-debug-grid strong {
  display: block;
  margin-top: .35rem;
  font-size: .88rem;
  line-height: 1.45;
  color: #3e3420;
  word-break: break-word;
}
.dashboard-overline {
  display: inline-block;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #809282;
}
.dashboard-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr);
  gap: 1.15rem;
  align-items: stretch;
}
.dashboard-masthead-copy,
.dashboard-live-board,
.dashboard-panel,
.dashboard-kpi-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,250,.96));
  border: 1px solid rgba(216, 226, 218, .92);
  box-shadow: 0 22px 40px rgba(17, 39, 28, .07);
}
.dashboard-masthead-copy {
  padding: 1.7rem 1.75rem;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}
.dashboard-masthead-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(199,151,63,.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(23,58,43,.05), transparent 30%);
  pointer-events: none;
}
.dashboard-masthead-copy > * {
  position: relative;
  z-index: 1;
}
.dashboard-masthead-copy h1 {
  margin-top: .55rem;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.06em;
  color: #173326;
  max-width: 9ch;
}
.dashboard-masthead-copy p {
  margin-top: 1rem;
  max-width: 54ch;
  font-size: .98rem;
  line-height: 1.72;
  color: #637566;
}
.dashboard-masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}
.dashboard-live-board {
  border-radius: 30px;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, rgba(199,151,63,.13), transparent 24%),
    linear-gradient(145deg, #153827 0%, #1c4631 52%, #224d37 100%);
  border-color: rgba(22, 56, 40, .45);
  color: #fff;
  box-shadow: 0 26px 48px rgba(15, 34, 25, .16);
}
.dashboard-live-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-live-board-header .dashboard-overline {
  color: rgba(255,255,255,.72);
}
.dashboard-live-board-header strong {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.86);
}
.dashboard-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.dashboard-live-card {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.10);
  min-height: 124px;
}
.dashboard-live-card.accent {
  background: linear-gradient(180deg, rgba(199,151,63,.25), rgba(199,151,63,.12));
  border-color: rgba(199,151,63,.28);
}
.dashboard-live-card span {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.dashboard-live-card strong {
  display: block;
  margin-top: .7rem;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -.05em;
}
.dashboard-live-card small {
  display: block;
  margin-top: .5rem;
  color: rgba(255,255,255,.74);
  font-size: .76rem;
  line-height: 1.45;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.dashboard-kpi-card {
  border-radius: 24px;
  padding: 1.2rem 1.15rem;
}
.dashboard-kpi-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a998c;
}
.dashboard-kpi-card strong {
  display: block;
  margin-top: .7rem;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: #173326;
}
.dashboard-kpi-card small {
  display: block;
  margin-top: .55rem;
  color: #708173;
  font-size: .82rem;
  line-height: 1.5;
}
.dashboard-main-grid-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 1.15rem;
  align-items: start;
}
.dashboard-side-stack-premium {
  display: grid;
  gap: 1rem;
}
.dashboard-panel {
  border-radius: 28px;
  overflow: hidden;
}
.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(216, 226, 218, .8);
}
.dashboard-panel-header h3 {
  margin-top: .3rem;
  font-size: 1.28rem;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #173326;
}
.dashboard-orders-panel .recent-orders-table-wrap {
  padding: 0 0 1rem;
}
.dashboard-orders-table th {
  background: #f7faf7;
}
.dashboard-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.6rem 1.4rem 1.55rem;
}
.dashboard-orders-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5ef;
  color: var(--admin-primary);
  font-size: 1.65rem;
}
.dashboard-orders-empty h4 {
  font-size: 1.2rem;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #173326;
}
.dashboard-orders-empty p {
  max-width: 48ch;
  color: #6b7c6d;
  font-size: .93rem;
  line-height: 1.68;
}
.dashboard-orders-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .15rem;
}
.dashboard-pulse-list,
.dashboard-stock-list,
.dashboard-action-list {
  padding: 1rem 1.35rem 1.35rem;
}
.dashboard-pulse-list {
  display: grid;
  gap: .65rem;
}
.dashboard-pulse-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid #edf2ed;
}
.dashboard-pulse-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dashboard-pulse-item span {
  font-size: .88rem;
  color: #67796a;
  font-weight: 700;
}
.dashboard-pulse-item strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: #173326;
}
.dashboard-stock-list {
  display: grid;
  gap: .65rem;
}
.dashboard-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: #f7faf7;
  border: 1px solid #e9f0ea;
}
.dashboard-stock-item strong {
  display: block;
  font-size: .9rem;
  line-height: 1.4;
  color: #173326;
}
.dashboard-stock-item small {
  display: block;
  margin-top: .18rem;
  font-size: .74rem;
  color: #859586;
}
.dashboard-action-list {
  display: grid;
  gap: .72rem;
}
.dashboard-action-link {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid #e7eee8;
  background: linear-gradient(180deg, #ffffff, #fafcfb);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-action-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(17, 39, 28, .08);
  border-color: #d6e1d8;
}
.dashboard-action-link strong {
  display: block;
  font-size: .93rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #173326;
}
.dashboard-action-link span {
  display: block;
  margin-top: .28rem;
  font-size: .77rem;
  line-height: 1.55;
  color: #7b8c7d;
}

/* ── Dashboard 2-col grid (collapses on mobile) ──────────── */
.admin-dash-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

/* ── Responsive Admin ─────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-menu-toggle { display: inline-flex; }
  .admin-sidebar { transform: translateX(-100%); box-shadow: 18px 0 44px rgba(12, 26, 19, .24); }
  body.admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  body.admin-sidebar-open .admin-mobile-backdrop { opacity: 1; pointer-events: auto; }
  .admin-main    { margin-left: 0; }
  .admin-hero-panel { grid-template-columns: 1fr; }
  .stat-cards    { grid-template-columns: 1fr 1fr; }
  .admin-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-dash-2col { grid-template-columns: 1fr; }
  .dashboard-masthead,
  .dashboard-main-grid-premium,
  .dashboard-kpi-grid,
  .dashboard-live-grid,
  .dashboard-debug-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-cards    { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: .85rem .75rem; }
  .admin-dash-2col { gap: .85rem; margin-bottom: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-input-row { grid-template-columns: 1fr; }
  .admin-topbar { padding: .65rem .85rem; min-height: 58px; }
  .admin-topbar-right { gap: .5rem; }
  .admin-topbar-right > span { display: none; }
  .admin-user { font-size: .76rem; }
  .admin-user .avatar { width: 30px; height: 30px; font-size: .78rem; }
  .admin-user .admin-user-name { display: none; }
  .admin-hero-panel { padding: 1rem; border-radius: 18px; }
  .admin-hero-panel h1 { max-width: 100%; }
  .admin-hero-panel p { font-size: .86rem; }
  .dashboard-empty-state { min-height: 280px; }
  .dashboard-empty-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .dashboard-empty-actions .admin-btn { width: 100%; justify-content: center; }
  .quick-action-item { padding: .9rem; }
  .quick-action-copy small { display: none; }
  .dashboard-masthead-copy,
  .dashboard-live-board,
  .dashboard-panel,
  .dashboard-kpi-card { border-radius: 22px; }
  .dashboard-masthead-copy { padding: 1.2rem; }
  .dashboard-masthead-copy h1 { max-width: 100%; font-size: 2.05rem; }
  .dashboard-masthead-copy p { font-size: .9rem; }
  .dashboard-panel-header,
  .dashboard-pulse-list,
  .dashboard-stock-list,
  .dashboard-action-list,
  .dashboard-orders-empty { padding-left: 1rem; padding-right: 1rem; }
  .dashboard-live-card { min-height: unset; }
  .dashboard-stock-item { align-items: flex-start; flex-direction: column; }
  .dashboard-orders-empty-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .dashboard-orders-empty-actions .admin-btn { width: 100%; justify-content: center; }
  .admin-card-header,
  .admin-card-body { padding-left: 1rem; padding-right: 1rem; }
  .admin-login-card { padding: 2.4rem 1.2rem; }
}
