/* ============================================================
   HELIX BIO — Admin Panel Stylesheet
   admin/login.html · admin/dashboard.html
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Design Tokens ---- */
:root {
  /* Brand - Premium Vibrant Accents */
  --teal:         #00d4ff;
  --teal-light:   #4de3ff;
  --teal-dark:    #009ac2;
  --teal-faint:   rgba(0, 212, 255, 0.15);
  --gold:         #f5d17a;
  --gold-light:   #fce49c;
  --gold-faint:   rgba(245, 209, 122, 0.15);

  /* Surfaces - Sleek Dark Glassmorphism */
  --white:        rgba(25, 28, 36, 0.65);
  --bg:           #090a0f;
  --bg-alt:       #12141c;
  --surface:      rgba(25, 28, 36, 0.7);
  --sidebar-bg:   rgba(9, 10, 15, 0.85);
  --sidebar-text: rgba(255,255,255,0.72);
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-active: rgba(0, 212, 255, 0.22);

  /* Text - Dark Mode Defaults */
  --text:         #f3f4f6;
  --text-muted:   #9ca3af;
  --text-light:   #6b7280;
  --text-sidebar: rgba(255,255,255,0.55);

  /* Utility & Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 212, 255, 0.5);
  --error:        #ef4444;
  --success:      #10b981;
  --warning:      #f59e0b;
  --info:         #3b82f6;

  /* Shape */
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-pill:  100px;

  /* Shadow - Soft glowing shadows */
  --shadow-xs:    0 2px 6px rgba(0,0,0,0.3);
  --shadow-sm:    0 4px 12px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-teal:  0 8px 32px rgba(0,212,255,0.25);

  /* Layout */
  --sidebar-w:    260px;
  --topbar-h:     70px;

  /* Transition */
  --t:            all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Base ---- */
:root {
  --z-panel: 10000;
  --z-footer: 11000;
}

/* ============================================================
   ADMIN — SLIDE-OVER PANELS & OVERLAYS (.ord-*)
   FORCED VISIBILITY & PRIORITY STYLES
   ============================================================ */
.ord-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(4, 5, 8, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  z-index: 9999 !important;
  transition: all 0.3s ease;
}
.ord-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.ord-panel {
  position: fixed !important;
  top: 0 !important;
  right: -520px;
  width: 500px !important;
  max-width: 95vw !important;
  height: 100vh !important;
  background: #12141c !important;
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.6) !important;
  z-index: var(--z-panel) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ord-panel.open {
  right: 0 !important;
}

.ord-panel-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(9, 10, 15, 0.95) !important;
}

.ord-panel-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 28px !important;
}

.ord-panel-footer {
  padding: 18px 28px !important;
  border-top: 2px solid rgba(0, 212, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  background: #090a0f !important;
  z-index: var(--z-footer) !important;
  min-height: 80px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3) !important;
}

.ord-save-btn {
  background: linear-gradient(135deg, #00d4ff 0%, #009ac2 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.3) !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.ord-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.ord-save-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Base resets & standard panel content */
.ord-panel-title { font-size: 17px; font-weight: 700; color: #fff; }
.ord-panel-ref { font-size: 13px; color: #9ca3af; font-family: monospace; }
.ord-panel-close { border: none; background: none; color: #9ca3af; cursor: pointer; }
.ord-panel-section { margin-bottom: 30px; }
.ord-panel-section-title { font-size: 11px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.ord-panel-section-title::after { content:""; flex:1; height:1px; background:rgba(255,255,255,0.08); }
.ord-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.ord-detail-label { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.ord-detail-value { font-size: 13px; font-weight: 600; color: #fff; }
.ord-detail-value.teal { color: #00d4ff; }
.ord-detail-value.big { font-size: 18px; }
.ord-detail-value.mono { font-family: monospace; }
.ord-timeline { margin-top: 5px; }
.ord-timeline-item { display: flex; gap: 15px; padding-bottom: 20px; position: relative; }
.ord-tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); background: #12141c; z-index: 1; margin-top: 2px; }
.ord-tl-dot.done { background: #10b981; border-color: #10b981; }
.ord-tl-dot.now { border-color: #00d4ff; animation: pulse 2s infinite; }
.ord-tl-body { flex:1; }
.ord-tl-title { font-size: 13px; font-weight: 700; color: #fff; }
.ord-tl-sub { font-size: 11px; color: #9ca3af; }
.ord-edit-form { display: flex; flex-direction: column; gap: 15px; }
.ord-edit-label { font-size: 12px; font-weight: 600; color: #9ca3af; display: block; margin-bottom: 6px; }
.ord-edit-select, .ord-edit-input { width: 100%; background: #090a0f; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #fff; }
.ord-edit-select:focus, .ord-edit-input:focus { border-color: #00d4ff; outline: none; }

/* ---- Base ---- */
html { scroll-behavior: smooth; font-size: 14px; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel — brand */
.login-brand {
  background: linear-gradient(145deg, #0a1a1a 0%, #0d2a2a 40%, #1A8C8C 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,140,140,0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.login-brand::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.login-brand-logo {
  height: 52px;
  width: auto;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.login-brand-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}
.login-brand-tagline span { color: var(--gold-light); }

.login-brand-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 320px;
  position: relative;
  z-index: 1;
  margin-bottom: 52px;
}

.login-stats {
  display: flex;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.login-stat-item { text-align: center; }
.login-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.login-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Right panel — form */
.login-form-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
}

.login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.login-form-header {
  margin-bottom: 36px;
}
.login-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-form-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Form fields */
.lf-field {
  margin-bottom: 18px;
}
.lf-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.lf-input-wrap { position: relative; }
.lf-input-wrap .lf-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
  pointer-events: none;
}
.lf-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: var(--t);
}
.lf-input::placeholder { color: var(--text-light); }
.lf-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.10);
}
.lf-input.error { border-color: var(--error); }

.lf-input-wrap .lf-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  transition: var(--t);
  background: none;
  border: none;
  padding: 4px;
}
.lf-eye:hover { color: var(--teal); }

.lf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.lf-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.lf-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
  cursor: pointer;
}
.lf-forgot {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  transition: var(--t);
}
.lf-forgot:hover { color: var(--teal-dark); text-decoration: underline; }

.lf-error-msg {
  font-size: 12.5px;
  color: var(--error);
  margin-bottom: 14px;
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lf-submit {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lf-submit:hover  { background: var(--teal-dark); box-shadow: var(--shadow-teal); transform: translateY(-1px); }
.lf-submit:active { transform: translateY(0); }
.lf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.lf-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}
.lf-footer a { color: var(--teal); }

/* Spinner */
.adm-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: adm-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes adm-spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADMIN SHELL (sidebar + topbar + content)
   ============================================================ */
.adm-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.adm-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
  border-right: 1px solid rgba(255,255,255,0.03);
}

.adm-sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-sidebar-logo img {
  height: 34px;
  width: auto;
}
.adm-sidebar-logo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.adm-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }

.adm-nav-section {
  margin-bottom: 4px;
}
.adm-nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 10px 12px 6px;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: var(--t);
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
}
.adm-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
.adm-nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.adm-nav-item:hover i { opacity: 1; }
.adm-nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
}
.adm-nav-item.active i { opacity: 1; color: var(--teal-light); }

.adm-nav-badge {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  line-height: 1.6;
}
.adm-nav-badge.gold { background: var(--gold); color: #1a1a1a; }

.adm-sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.adm-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: var(--t);
  cursor: pointer;
}
.adm-user-card:hover { background: var(--sidebar-hover); }
.adm-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.adm-user-info { flex: 1; min-width: 0; }
.adm-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.adm-user-card i { color: rgba(255,255,255,0.25); font-size: 12px; }

/* ---- Main area ---- */
.adm-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Top bar ---- */
.adm-topbar {
  height: var(--topbar-h);
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.adm-topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.adm-topbar-title span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.adm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--t);
  position: relative;
}
.adm-icon-btn:hover { background: var(--teal-faint); color: var(--teal); }

.adm-notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--error);
  border: 1.5px solid #fff;
}

.adm-date-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
}
.adm-date-pill:hover { border-color: var(--teal); color: var(--teal); }
.adm-date-pill i { font-size: 11px; }

/* ---- Content area ---- */
.adm-content {
  flex: 1;
  padding: 28px 28px 48px;
  max-width: 1200px;
  width: 100%;
}

/* ---- Page header ---- */
.adm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.adm-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.adm-page-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.adm-header-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Buttons ---- */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.adm-btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
}
.adm-btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow-teal); }
.adm-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.adm-btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
}
.kpi-card.teal::before  { background: var(--teal); }
.kpi-card.gold::before  { background: var(--gold); }
.kpi-card.blue::before  { background: #3b82f6; }
.kpi-card.rose::before  { background: #f43f5e; }

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.kpi-card.teal .kpi-icon { background: rgba(26,140,140,0.10); color: var(--teal); }
.kpi-card.gold .kpi-icon { background: rgba(201,168,76,0.12); color: var(--gold); }
.kpi-card.blue .kpi-icon { background: rgba(59,130,246,0.10); color: #3b82f6; }
.kpi-card.rose .kpi-icon { background: rgba(244,63,94,0.10);  color: #f43f5e; }

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}
.kpi-trend.up   { background: rgba(18,160,92,0.10); color: #12a05c; }
.kpi-trend.down { background: rgba(232,64,64,0.10); color: #e84040; }
.kpi-trend i    { font-size: 9px; }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.kpi-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================================
   CHARTS ROW
   ============================================================ */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.adm-card {
  background: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.adm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.adm-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}
.adm-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.adm-card-body { padding: 20px 22px; }

.chart-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
}
.chart-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
}
.chart-tab.active {
  background: #fff;
  color: var(--teal);
  box-shadow: var(--shadow-xs);
}

.chart-container {
  position: relative;
  height: 220px;
}

/* Donut chart container */
.donut-container {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.donut-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.donut-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-legend-val {
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   ORDERS TABLE
   ============================================================ */
.orders-section { margin-bottom: 28px; }

.adm-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table thead {
  background: var(--bg);
}
.adm-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.adm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(26,140,140,0.03); }

.tbl-order-ref {
  font-weight: 700;
  color: var(--teal);
  font-size: 12.5px;
}
.tbl-customer { font-weight: 600; color: var(--text); }
.tbl-email    { color: var(--text-muted); font-size: 12px; }
.tbl-product  { color: var(--text-muted); font-size: 12.5px; }
.tbl-amount   { font-weight: 700; color: var(--text); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.status-confirmed  { background: rgba(26,140,140,0.09);  color: var(--teal); }
.status-processing { background: rgba(59,130,246,0.09);  color: #2563eb; }
.status-shipped    { background: rgba(201,168,76,0.12);  color: #b07d10; }
.status-delivered  { background: rgba(18,160,92,0.09);   color: var(--success); }
.status-refunded   { background: rgba(232,64,64,0.09);   color: var(--error); }

.tbl-actions {
  display: flex;
  gap: 6px;
}
.tbl-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  transition: var(--t);
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.tbl-btn-view {
  background: var(--teal-faint);
  color: var(--teal);
}
.tbl-btn-view:hover { background: rgba(26,140,140,0.15); }

/* Table footer */
.adm-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.adm-view-all {
  color: var(--teal);
  font-weight: 600;
  font-size: 12.5px;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-view-all:hover { color: var(--teal-dark); }
.adm-view-all i { font-size: 10px; }

/* ============================================================
   BOTTOM ROW — Top Products + Activity Feed
   ============================================================ */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Top products */
.top-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.top-product-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-product-rank {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--teal-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}
.top-product-info { flex: 1; min-width: 0; }
.top-product-name { font-weight: 600; font-size: 13px; color: var(--text); }
.top-product-sub  { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.top-product-bar-wrap { flex: 1; min-width: 60px; }
.top-product-bar-bg {
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.top-product-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.top-product-val { font-weight: 700; font-size: 13px; color: var(--text); text-align: right; min-width: 56px; }

/* Activity feed */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.activity-icon.order   { background: rgba(26,140,140,0.09);  color: var(--teal); }
.activity-icon.payment { background: rgba(18,160,92,0.09);   color: var(--success); }
.activity-icon.ship    { background: rgba(201,168,76,0.12);  color: var(--gold); }
.activity-icon.alert   { background: rgba(232,64,64,0.09);   color: var(--error); }
.activity-icon.user    { background: rgba(59,130,246,0.09);  color: #3b82f6; }

.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.activity-text strong { font-weight: 700; }
.activity-time { font-size: 11.5px; color: var(--text-light); margin-top: 3px; }

/* ============================================================
   ORDERS PAGE
   ============================================================ */

/* ---- Filter / Search bar ---- */
.ord-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ord-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.ord-search-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 13px;
  pointer-events: none;
}
.ord-search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--t);
}
.ord-search::placeholder { color: var(--text-light); }
.ord-search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.09);
}

.ord-filter-select {
  padding: 10px 34px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa5b4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  white-space: nowrap;
}
.ord-filter-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.09);
}

.ord-date-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ord-date-input {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: var(--t);
}
.ord-date-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.09);
}
.ord-date-sep {
  font-size: 12px;
  color: var(--text-light);
}

.ord-toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Status filter tabs (pill row above table) */
.ord-status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ord-status-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.ord-status-tab:hover { border-color: var(--teal); color: var(--teal); }
.ord-status-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.ord-status-tab .tab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.ord-status-tab:not(.active) .tab-count {
  background: var(--bg);
  color: var(--text-muted);
}

/* Clickable table row */
.adm-table tbody tr.ord-row {
  cursor: pointer;
  transition: var(--t);
}
.adm-table tbody tr.ord-row:hover { background: rgba(26,140,140,0.04); }
.adm-table tbody tr.ord-row.selected { background: rgba(26,140,140,0.06); }

/* Tracking number cell */
.tbl-tracking {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
}
.tbl-tracking.none { color: var(--text-light); font-style: italic; font-family: inherit; }

/* Pagination */
.ord-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.ord-page-info { font-size: 12.5px; color: var(--text-muted); }
.ord-page-btns { display: flex; gap: 4px; }
.ord-page-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}
.ord-page-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.ord-page-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.ord-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Per-page select */
.ord-perpage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.ord-perpage select {
  padding: 5px 28px 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa5b4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.ord-perpage select:focus { outline: none; }

/* Empty state */
.ord-empty {
  padding: 60px 20px;
  text-align: center;
}
.ord-empty i {
  font-size: 36px;
  color: var(--border);
  margin-bottom: 14px;
}
.ord-empty-title { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.ord-empty-sub   { font-size: 13px; color: var(--text-light); }

/* ============================================================
   ORDER DETAIL SLIDE-OVER PANEL
   ============================================================ */
.ord-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.ord-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ord-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 100vw;
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -8px 0 48px rgba(0,0,0,0.14);
}
.ord-panel.open {
  transform: translateX(0);
}

.ord-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ord-panel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.ord-panel-ref {
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 2px;
}
.ord-panel-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  transition: var(--t);
  flex-shrink: 0;
}
.ord-panel-close:hover { background: rgba(232,64,64,0.08); color: var(--error); }

.ord-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.ord-panel-section {
  margin-bottom: 24px;
}
.ord-panel-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.ord-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ord-detail-item {}
.ord-detail-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.ord-detail-value {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.ord-detail-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
}
.ord-detail-value.teal { color: var(--teal); font-weight: 700; }
.ord-detail-value.big  {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* Timeline */
.ord-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ord-timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
}
.ord-timeline-item:not(:last-child) .ord-tl-line {
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -4px;
  width: 1.5px;
  background: var(--border);
}
.ord-tl-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.ord-tl-dot.done  { background: var(--teal); color: #fff; }
.ord-tl-dot.now   { background: var(--gold); color: #fff; }
.ord-tl-dot.wait  { background: var(--border); color: var(--text-light); }
.ord-tl-body { padding-bottom: 20px; flex: 1; }
.ord-tl-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ord-tl-sub   { font-size: 12px; color: var(--text-muted); }

/* Edit form inside panel */
.ord-edit-form { display: flex; flex-direction: column; gap: 14px; }
.ord-edit-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  display: block;
}
.ord-edit-select,
.ord-edit-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.ord-edit-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa5b4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.ord-edit-select:focus,
.ord-edit-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.09);
}
.ord-edit-input::placeholder { color: var(--text-light); }

.ord-edit-note {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: -6px;
}

.ord-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: var(--white);
}
.ord-save-btn {
  flex: 1;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ord-save-btn:hover { background: var(--teal-dark); box-shadow: var(--shadow-teal); }
.ord-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ord-cancel-btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: var(--t);
}
.ord-cancel-btn:hover { border-color: var(--text-muted); color: var(--text); }

/* Save success flash */
.ord-save-success {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--success);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.ord-save-success.show { opacity: 1; }

/* Summary pill row in panel */
.ord-summary-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ord-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.ord-pill i { font-size: 11px; color: var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .adm-sidebar {
    transform: translateX(-100%);
  }
  .adm-sidebar.open {
    transform: translateX(0);
  }
  .adm-main {
    margin-left: 0;
  }
  .adm-topbar { padding: 0 16px; }
  .adm-content { padding: 18px 16px 40px; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-panel { padding: 40px 24px; }
  .ord-panel { width: 100vw; }
  .ord-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .adm-page-header { flex-direction: column; }
  .ord-toolbar { flex-direction: column; align-items: stretch; }
  .ord-search-wrap { max-width: 100%; }
  .ord-toolbar-right { margin-left: 0; }
  .ord-date-inputs { flex-wrap: wrap; }
}

/* ============================================================
   CUSTOMERS PAGE
   ============================================================ */

/* KPI row (4-up, reusable) */
.cust-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.cust-kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--t);
}
.cust-kpi-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cust-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cust-kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.cust-kpi-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Small avatar with initials */
.cust-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-faint) 0%, rgba(26,140,140,0.15) 100%);
  border: 1.5px solid rgba(26,140,140,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Segment badges */
.cust-seg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.cust-seg-vip    { background: rgba(201,168,76,0.12); color: #9a6f00; border: 1px solid rgba(201,168,76,0.3); }
.cust-seg-repeat { background: rgba(26,140,140,0.08); color: var(--teal);  border: 1px solid rgba(26,140,140,0.2); }
.cust-seg-new    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* Purchase summary stat boxes in panel */
.cust-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}
.cust-stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.cust-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.cust-stat-val.teal { color: var(--teal); }
.cust-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Order history list in panel */
.cust-order-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cust-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  transition: var(--t);
  gap: 12px;
}
.cust-order-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.cust-order-item:hover { background: var(--bg); }
.cust-order-left { flex: 1; min-width: 0; }
.cust-order-ref {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cust-order-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cust-order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.cust-order-amount {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* ============================================================
   ABANDONED CARTS PAGE
   ============================================================ */

/* Recovery status badges */
.cart-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.rec-pending     { background: rgba(245,158,11,0.10); color: #b45309; border: 1px solid rgba(245,158,11,0.25); }
.rec-sent        { background: rgba(59,130,246,0.09); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.2); }
.rec-recovered   { background: rgba(18,160,92,0.09);  color: var(--success); border: 1px solid rgba(18,160,92,0.2); }
.rec-unsub       { background: rgba(107,117,141,0.08); color: var(--text-muted); border: 1px solid var(--border); }

/* Cart items cell */
.cart-items-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Urgency colouring */
.cart-urgency-hot  { color: #dc2626; }
.cart-urgency-warm { color: #d97706; }

/* Action button — recover */
.tbl-btn-recover {
  background: rgba(245,158,11,0.10);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.2) !important;
}
.tbl-btn-recover:hover {
  background: rgba(245,158,11,0.18);
  border-color: rgba(245,158,11,0.35) !important;
}

/* ----
   SEND EMAIL MODAL
---- */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.50);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.cart-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  z-index: 401;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
  overflow: hidden;
}
.cart-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.cart-modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.cart-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26,140,140,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--teal);
}

.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 4px;
}
.cart-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.cart-modal-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Email preview card */
.cart-email-preview {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.cart-email-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}
.cart-email-meta { display: flex; flex-direction: column; gap: 5px; }
.cart-email-field {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.cart-email-field span {
  color: var(--text-light);
  min-width: 52px;
  font-weight: 500;
}
.cart-email-field strong { color: var(--text); }

.cart-email-body {
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}
.cart-email-body p { margin-bottom: 10px; }

.email-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
}

.email-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7a5c00;
  margin: 10px 0;
}
.email-promo i { color: var(--gold); }

.email-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 11px 28px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Promo option toggle */
.cart-modal-option {
  margin-bottom: 8px;
}
.cart-option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--t);
}
.cart-option-label:hover { border-color: var(--teal); background: var(--teal-faint); }
.cart-option-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.cart-option-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   ANALYTICS PAGE  (an-*)
   ============================================================ */

/* Range tabs in top bar */
.an-range-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.an-range-tab {
  border: none;
  background: transparent;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
}
.an-range-tab.active,
.an-range-tab:hover {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Chart card row layout */
.an-charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.an-chart-card { overflow: hidden; }
.an-chart-wide  { grid-column: span 2; }

/* Chart mode tabs (Revenue / Orders toggle) */
.chart-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.chart-tab {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
}
.chart-tab.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* Conversion funnel bars */
.an-funnel { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.an-funnel-step { display: flex; flex-direction: column; gap: 5px; }
.an-funnel-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.an-funnel-label strong { color: var(--text); font-weight: 700; }
.an-funnel-track {
  height: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.an-funnel-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* Bottom analytics row */
.an-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Top products list */
.an-products-list { display: flex; flex-direction: column; gap: 12px; }
.an-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.an-product-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.an-product-emoji {
  font-size: 22px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.an-product-info { flex: 1; min-width: 0; }
.an-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-product-units {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.an-product-bar-wrap {
  width: 80px;
  height: 6px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.an-product-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--teal);
  transition: width 0.5s ease;
}
.an-product-rev {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  min-width: 64px;
  text-align: right;
  flex-shrink: 0;
}

/* Donut chart legend */
.donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* AOV stat */
.an-aov-stat { text-align: center; padding: 12px 0 0; }
.an-aov-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.an-aov-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Analytics responsive */
@media (max-width: 1100px) {
  .an-charts-row { grid-template-columns: 1fr 1fr; }
  .an-chart-wide { grid-column: span 2; }
  .an-bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .an-charts-row { grid-template-columns: 1fr; }
  .an-chart-wide { grid-column: span 1; }
  .an-bottom-row { grid-template-columns: 1fr; }
  .an-range-tabs { display: none; }
}

/* ============================================================
   PRODUCTS & INVENTORY PAGE  (prod-*)
   ============================================================ */

/* Low-stock alert banner */
.prod-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #7c4f00;
}
.prod-alert-banner i { color: var(--warning); margin-top: 2px; flex-shrink: 0; font-size: 16px; }
.prod-alert-banner > div { flex: 1; }
.prod-alert-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  transition: var(--t);
  flex-shrink: 0;
}
.prod-alert-dismiss:hover { background: rgba(0,0,0,0.06); }

/* Products grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Product card */
.prod-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--t);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.prod-card.low-stock { border-color: rgba(245,158,11,0.45); }
.prod-card.out-of-stock { border-color: rgba(232,64,64,0.35); opacity: 0.85; }

.prod-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.prod-card-emoji {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.prod-card-title-group { flex: 1; min-width: 0; padding-left: 12px; }
.prod-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 3px;
}
.prod-card-sku {
  font-size: 11.5px;
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
}
.prod-status-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 8px;
}
.prod-status-badge.active   { background: rgba(18,160,92,0.10); color: #0a7040; }
.prod-status-badge.low      { background: rgba(245,158,11,0.12); color: #7c4f00; }
.prod-status-badge.out      { background: rgba(232,64,64,0.10); color: #a01c1c; }

.prod-card-body { padding: 16px 18px; flex: 1; }
.prod-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stock meter */
.prod-stock-meter { margin-bottom: 14px; }
.prod-stock-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.prod-stock-label span:first-child {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.prod-stock-label span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.prod-stock-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.prod-stock-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}
.prod-stock-fill.green { background: var(--success); }
.prod-stock-fill.amber { background: var(--warning); }
.prod-stock-fill.red   { background: var(--error); }

/* Pricing row */
.prod-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.prod-price-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.prod-price-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.prod-price-margin {
  font-size: 11.5px;
  color: var(--success);
  font-weight: 600;
}

/* Card footer actions */
.prod-card-footer {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.prod-action-btn {
  flex: 1;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.prod-action-btn:hover,
.prod-action-btn.primary {
  border-color: var(--teal);
  background: var(--teal-faint);
  color: var(--teal);
}
.prod-action-btn.danger:hover {
  border-color: var(--error);
  background: rgba(232,64,64,0.06);
  color: var(--error);
}

/* Stats mini-row inside card */
.prod-stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 0 -18px;
  padding: 10px 18px 0;
  margin-top: 12px;
}
.prod-stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 0;
}
.prod-stat-item:last-child { border-right: none; }
.prod-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.prod-stat-lbl {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Bundle row edit input */
.bundle-price-input {
  width: 100px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  transition: var(--t);
  background: transparent;
}
.bundle-price-input:focus {
  border-color: var(--teal);
  outline: none;
  background: var(--teal-faint);
}

/* Products responsive */
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* ============================================================
   EMAIL TEMPLATES PAGE  (et-*)
   ============================================================ */

/* Template selector tabs row */
.et-template-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.et-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: var(--t);
  font-family: inherit;
}
.et-tab:hover { border-color: var(--teal); background: var(--teal-faint); }
.et-tab.active {
  border-color: var(--teal);
  background: var(--teal-faint);
  box-shadow: 0 0 0 3px rgba(26,140,140,0.10);
}
.et-tab > i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--teal);
  flex-shrink: 0;
}
.et-tab.active > i { background: rgba(26,140,140,0.15); }
.et-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.et-tab-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Two-column editor layout */
.et-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.et-editor-panel { min-width: 0; }
.et-preview-panel { min-width: 0; }

/* Field spacing */
.et-field { margin-bottom: 16px; }

/* Editor toolbar (insert variable buttons) */
.et-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.et-tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}
.et-tool-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-faint); }

/* Status indicator */
.et-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.et-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.et-status-indicator.inactive { color: var(--text-light); }
.et-status-indicator.inactive .et-status-dot { background: var(--text-light); }

/* Enable/disable toggle */
.et-toggle-wrap { display: inline-flex; cursor: pointer; align-items: center; }
.et-toggle {
  width: 38px;
  height: 22px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.et-toggle.on {
  background: var(--teal);
  border-color: var(--teal-dark);
}
.et-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: left 0.2s cubic-bezier(0.4,0,0.2,1);
}
.et-toggle.on .et-toggle-thumb { left: 18px; }

/* Variables reference box */
.et-vars-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 8px;
}
.et-vars-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.et-vars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.et-var-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--teal);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.et-var-chip:hover { border-color: var(--teal); background: var(--teal-faint); }

/* Preview device chrome */
.et-preview-device {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.et-email-chrome {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.et-chrome-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.et-chrome-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.et-chrome-sender {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.et-chrome-email {
  font-size: 11.5px;
  color: var(--text-muted);
}
.et-chrome-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-light);
}
.et-chrome-subject {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 0 42px;
}

/* Rendered email body iframe-like container */
.et-preview-body {
  padding: 20px;
  max-height: 520px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.et-preview-body p { margin-bottom: 10px; }
.et-preview-body a { color: var(--teal); }

/* Send test email button / modal trigger */
.et-send-test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.et-send-test-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  transition: var(--t);
}
.et-send-test-input:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,140,140,0.08);
}

/* Body editor monospace styling */
.et-body-editor {
  font-family: 'Courier New', monospace !important;
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  color: var(--text) !important;
  background: var(--bg) !important;
}
.et-body-editor:focus {
  background: var(--white) !important;
}

/* Email Templates responsive */
@media (max-width: 1100px) {
  .et-template-tabs { grid-template-columns: repeat(2, 1fr); }
  .et-editor-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .et-template-tabs { grid-template-columns: 1fr; }
  .et-tool-btn span { display: none; }
}

.cart-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: var(--white);
}

/* (Empty for now - moved to top) */


/* Customer specific bits */
.cust-stat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cust-stat-pill {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cust-stat-pill i { font-size: 10px; color: var(--teal); }
