/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --bg: #0a0b0d;
  --bg-2: #111318;
  --panel: #16181d;
  --panel-hover: #1c1e24;
  --line: #24262d;
  --line-light: #2e3038;
  --ink: #f3f4f2;
  --ink-2: #cdd0d5;
  --muted: #8a8d95;
  --accent: #174081;
  --accent-dim: rgba(23,64,129,.12);
  --accent-ink: #ffffff;
  --success: #34d399;
  --success-dim: rgba(52,211,153,.12);
  --warning: #fbbf24;
  --warning-dim: rgba(251,191,36,.12);
  --danger: #ff5a3c;
  --danger-dim: rgba(255,90,60,.12);
  --info: #60a5fa;
  --info-dim: rgba(96,165,250,.12);
  --sidebar-w: 260px;
  --header-h: 62px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
#loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 600px at 30% 20%, rgba(200,255,61,.06), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(96,165,250,.05), transparent 60%),
    var(--bg);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(22,24,29,.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  animation: loginIn .6s ease;
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo img {
  height: 38px;
  margin: 0 auto 14px;
  filter: brightness(0) invert(1);
}
.login-logo .login-badge {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 3px 12px;
  display: inline-block;
}
.login-logo h2 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 22px;
  text-transform: uppercase; letter-spacing: .08em; margin-top: 18px;
}
.login-logo p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: "Saira Condensed"; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
  color: var(--muted); margin-bottom: 8px;
}
.form-input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 16px; color: var(--ink);
  font-size: 15px; transition: .2s; outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-input::placeholder { color: var(--muted); }
.login-btn {
  width: 100%; padding: 14px; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: var(--r-sm); font-family: "Saira Condensed";
  font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .1em;
  transition: .2s; margin-top: 8px;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,255,61,.25); }
.login-error {
  color: var(--danger); font-size: 13px; text-align: center;
  margin-top: 12px; min-height: 20px;
}

/* ============================================================
   APP SHELL
   ============================================================ */
#appShell { display: none; min-height: 100vh; }
#appShell.active { display: flex; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; top: 0; left: 0;
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 50;
  transition: transform .3s ease;
}
.sidebar-logo {
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo img { height: 30px; filter: brightness(0) invert(1); }
.sidebar-logo .s-badge {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 10px;
  letter-spacing: .18em; color: var(--accent); border: 1px solid rgba(200,255,61,.3);
  border-radius: 999px; padding: 2px 8px; text-transform: uppercase;
}
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section {
  font-family: "Saira Condensed"; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  padding: 16px 16px 8px; opacity: .6;
}
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: var(--r-sm); color: var(--muted); font-family: "Saira Condensed";
  font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em;
  transition: .18s; cursor: pointer; border: none; background: none; width: 100%;
  text-align: left; position: relative;
}
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-item.active {
  color: var(--accent); background: var(--accent-dim);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 22px;
  height: 22px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 7px;
}
.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-footer .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.sidebar-footer .user-info { flex: 1; min-width: 0; }
.sidebar-footer .user-name {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
}
.sidebar-footer .user-role { font-size: 12px; color: var(--muted); }
.logout-btn {
  background: none; border: none; color: var(--muted); padding: 8px;
  border-radius: var(--r-sm); transition: .15s;
}
.logout-btn:hover { color: var(--danger); background: var(--danger-dim); }
.logout-btn svg { width: 18px; height: 18px; }

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

/* Top header bar */
.topheader {
  height: var(--header-h); border-bottom: 1px solid var(--line);
  padding: 0 32px; display: flex; align-items: center; gap: 16px;
  background: rgba(10,11,13,.8); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.topheader .page-title {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .04em;
}
.topheader .page-title span { color: var(--accent); }
.mobile-burger {
  display: none; background: none; border: none; color: var(--ink); padding: 4px;
}
.mobile-burger svg { width: 24px; height: 24px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  min-width: 260px; transition: .2s;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.header-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.header-search input {
  background: none; border: none; color: var(--ink); font-size: 14px;
  outline: none; width: 100%;
}
.header-search input::placeholder { color: var(--muted); }

/* Content area */
.content { flex: 1; padding: 28px 32px; }
.view { display: none; animation: fadeIn .35s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Action button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent);
  color: var(--accent-ink); border: none; border-radius: var(--r-sm); padding: 10px 20px;
  font-family: "Saira Condensed"; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; transition: .18s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,255,61,.2); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--panel);
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 20px; font-family: "Saira Condensed"; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; transition: .18s;
}
.btn-secondary:hover { border-color: var(--muted); background: var(--panel-hover); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-icon {
  background: none; border: 1px solid var(--line); color: var(--muted);
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.btn-icon:hover { color: var(--ink); border-color: var(--muted); background: var(--panel); }
.btn-icon.sm { width: 28px; height: 28px; }
.btn-icon svg { width: 16px; height: 16px; }
.btn-danger { background: var(--danger); color: #fff; border: none; }
.btn-danger:hover { box-shadow: 0 8px 20px rgba(255,90,60,.25); transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: var(--accent-ink); border: none; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-family: "Saira Condensed"; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger { background: var(--danger-dim); color: var(--danger); }
.badge-info { background: var(--info-dim); color: var(--info); }
.badge-muted { background: rgba(138,141,149,.12); color: var(--muted); }
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

/* KPI Cards */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.kpi-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; transition: .2s; position: relative; overflow: hidden;
}
.kpi-card:hover { border-color: var(--line-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card .kpi-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.kpi-card .kpi-icon svg { width: 20px; height: 20px; }
.kpi-card .kpi-label {
  font-family: "Saira Condensed"; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px;
}
.kpi-card .kpi-value {
  font-family: "Saira Condensed"; font-weight: 800; font-size: 30px;
  line-height: 1; letter-spacing: -.01em;
}
.kpi-card .kpi-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Section headers */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-header h3 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .04em;
}
.section-header h3 span { color: var(--accent); }

/* Filter bar */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center;
}
.filter-select {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 14px; color: var(--ink); font-size: 14px; font-family: "Saira Condensed";
  font-weight: 600; letter-spacing: .04em; outline: none; cursor: pointer;
  appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a8d95' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-select:focus { border-color: var(--accent); }
.filter-search {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 14px;
  flex: 1; min-width: 200px; transition: .2s;
}
.filter-search:focus-within { border-color: var(--accent); }
.filter-search svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.filter-search input {
  background: none; border: none; color: var(--ink); font-size: 14px; outline: none; width: 100%;
}
.filter-count { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }

/* ============================================================
   LIST / TABLE STYLES
   ============================================================ */
.list-container {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.list-header {
  display: grid; padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg-2); font-family: "Saira Condensed"; font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  align-items: center;
}
.list-row {
  display: grid; padding: 14px 20px; border-bottom: 1px solid var(--line);
  align-items: center; transition: .12s; cursor: pointer;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(255,255,255,.02); }
.list-row.inactive { opacity: .45; }
.list-row.inactive:hover { opacity: .65; }

/* Inventory list */
.inv-grid { grid-template-columns: 52px 2fr 1fr .7fr .7fr .7fr .7fr 140px; gap: 14px; }
.inv-thumb {
  width: 44px; height: 44px; border-radius: 8px; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.inv-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.inv-name {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .02em;
}
.inv-cat { font-size: 12px; color: var(--muted); }
.inv-qty {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 18px;
}
.inv-qty.low { color: var(--warning); }
.inv-qty.out { color: var(--danger); }
.inv-qty.ok { color: var(--success); }

input.inv-qty {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  width: 65px;
  padding: 2px 6px;
  outline: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
input.inv-qty:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
input.inv-qty:focus {
  background: var(--bg-2);
  border-color: var(--accent);
  color: var(--ink) !important;
  box-shadow: 0 0 0 2px var(--accent-dim);
  cursor: text;
}
input.inv-qty::-webkit-outer-spin-button,
input.inv-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.inv-qty[type=number] {
  -moz-appearance: textfield;
}

/* Stock adjuster inline */
.qty-adjust {
  display: flex; align-items: center; gap: 4px;
}
.qty-adjust button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; transition: .12s;
}
.qty-adjust button:hover { border-color: var(--accent); color: var(--accent); }

/* Shipments list */
.ship-grid { grid-template-columns: 1fr 1.5fr 1fr 1fr 1fr 1.2fr 100px; gap: 14px; }
.ship-id {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px;
  color: var(--accent);
}

/* Orders list */
.ord-grid { grid-template-columns: 1fr 1.5fr .6fr 1fr 1fr 1fr 1.2fr 100px; gap: 12px; }
.ord-id {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px;
  color: var(--info);
}

/* Clients list */
.cli-grid { grid-template-columns: 44px 1.5fr 1.5fr 1fr 1fr 130px; gap: 14px; }
.cli-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--info-dim);
  color: var(--info); display: flex; align-items: center; justify-content: center;
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px; flex-shrink: 0;
}

/* ============================================================
   DASHBOARD SPECIFIC
   ============================================================ */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; overflow: hidden;
}
.dash-card h4 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.dash-card h4 svg { width: 16px; height: 16px; color: var(--accent); }

/* Category bars */
.cat-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-bar-label {
  font-family: "Saira Condensed"; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; width: 100px; color: var(--muted);
  flex-shrink: 0;
}
.cat-bar-track {
  flex: 1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden;
}
.cat-bar-fill {
  height: 100%; border-radius: 999px; background: var(--accent);
  transition: width .6s ease;
}
.cat-bar-val {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 14px;
  width: 50px; text-align: right; flex-shrink: 0;
}

/* Low stock alerts */
.alert-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.alert-row:last-child { border-bottom: none; }
.alert-thumb {
  width: 38px; height: 38px; border-radius: 8px; background: #fff; overflow: hidden;
  flex-shrink: 0;
}
.alert-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.alert-info { flex: 1; min-width: 0; }
.alert-info .alert-name {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alert-info .alert-cat { font-size: 12px; color: var(--muted); }

/* Activity feed */
.activity-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0;
}
.activity-text { font-size: 14px; color: var(--ink-2); flex: 1; }
.activity-text strong { color: var(--ink); }
.activity-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeOverlay .2s;
}
.modal-overlay.active { display: flex; }
@keyframes fadeOverlay { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--line);
}
.modal-header h3 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .04em;
}
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 24px;
  width: 36px; height: 36px; border-radius: var(--r-sm); display: flex;
  align-items: center; justify-content: center; transition: .15s;
}
.modal-close:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 18px 28px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* Modal form elements */
.modal .form-group { margin-bottom: 18px; }
.modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 16px; color: var(--ink);
  font-size: 14px; outline: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a8d95' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 16px; color: var(--ink);
  font-size: 14px; outline: none; resize: vertical; min-height: 80px;
}
.form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* Selected items in modal */
.selected-items { margin-top: 12px; }
.selected-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.selected-item .si-name {
  flex: 1; font-family: "Saira Condensed"; font-weight: 600; font-size: 14px;
  text-transform: uppercase;
}
.selected-item input {
  width: 70px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; color: var(--ink); font-size: 14px;
  text-align: center; outline: none;
}
.selected-item input:focus { border-color: var(--accent); }
.selected-item .si-remove {
  background: none; border: none; color: var(--muted); font-size: 18px;
  padding: 2px 6px; border-radius: 4px; transition: .12s;
}
.selected-item .si-remove:hover { color: var(--danger); }

/* Product picker dropdown */
.product-picker { position: relative; }
.product-picker-results {
  position: absolute; top: 100%; left: 0; right: 0; max-height: 200px;
  overflow-y: auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-top: 4px; z-index: 10; display: none;
}
.product-picker-results.show { display: block; }
.pp-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; transition: .1s; border-bottom: 1px solid var(--line);
}
.pp-item:last-child { border-bottom: none; }
.pp-item:hover { background: var(--panel); }
.pp-item img {
  width: 32px; height: 32px; object-fit: contain; background: #fff;
  border-radius: 4px; padding: 2px;
}
.pp-item span { font-size: 14px; }

/* ============================================================
   IMAGE UPLOAD ZONE
   ============================================================ */
.img-upload-zone {
  border: 2px dashed var(--line-light);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  background: var(--bg);
  position: relative;
}
.img-upload-zone:hover, .img-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.img-upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.img-upload-zone .upload-icon {
  width: 40px; height: 40px; margin: 0 auto 10px;
  color: var(--muted);
}
.img-upload-zone .upload-label {
  font-family: 'Saira Condensed'; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
}
.img-upload-zone .upload-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.img-upload-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); margin-top: 12px;
}
.img-upload-preview img {
  width: 64px; height: 64px; object-fit: contain; background: #fff;
  border-radius: 8px; padding: 4px; flex-shrink: 0;
}
.img-upload-preview .prev-info { flex: 1; min-width: 0; }
.img-upload-preview .prev-name {
  font-family: 'Saira Condensed'; font-weight: 700; font-size: 13px;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.img-upload-preview .prev-size { font-size: 12px; color: var(--muted); margin-top: 2px; }
.img-upload-preview .prev-remove {
  background: none; border: none; color: var(--muted); font-size: 20px;
  padding: 4px 8px; border-radius: 6px; transition: .12s; cursor: pointer;
}
.img-upload-preview .prev-remove:hover { color: var(--danger); }
.img-upload-progress {
  margin-top: 10px; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden;
  display: none;
}
.img-upload-progress .prog-bar {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .3s ease;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column-reverse; gap: 10px;
}
.toast {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 20px; min-width: 300px; max-width: 420px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-msg { font-size: 14px; flex: 1; }
.toast-close {
  background: none; border: none; color: var(--muted); font-size: 18px;
  padding: 2px; cursor: pointer;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state h4 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; max-width: 360px; margin: 0 auto; }

/* ============================================================
   PRODUCTS CATALOG VIEW
   ============================================================ */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.prod-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: .2s; position: relative;
}
.prod-card:hover { transform: translateY(-3px); border-color: var(--line-light); box-shadow: var(--shadow); }
.prod-card.inactive { opacity: .4; }
.prod-card.inactive:hover { opacity: .6; }
.prod-card .prod-img {
  aspect-ratio: 1/1; background: #fff; display: flex; align-items: center;
  justify-content: center; position: relative;
}
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.prod-card .prod-stock-badge {
  position: absolute; top: 8px; right: 8px;
}
.prod-card .prod-actions {
  position: absolute; top: 8px; left: 8px; display: flex; gap: 4px;
  opacity: 0; transition: .2s;
}
.prod-card:hover .prod-actions { opacity: 1; }
.prod-card .prod-body { padding: 14px; }
.prod-card .prod-cat {
  font-family: "Saira Condensed"; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); opacity: 0.85; margin-bottom: 4px;
}
.prod-card .prod-name {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-card .prod-meta { display: flex; justify-content: space-between; align-items: baseline; }
.prod-card .prod-price {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 16px;
}
.prod-card .prod-qty { font-size: 13px; color: var(--muted); }

/* Credential display */
.cred-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; font-family: "JetBrains Mono", "Fira Code", monospace; font-size: 13px;
  color: var(--accent); display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.cred-box .copy-btn {
  margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--muted); padding: 4px 10px; border-radius: 6px; font-size: 11px;
  font-family: "Saira Condensed"; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; transition: .15s;
}
.cred-box .copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   DETAIL PANELS (Shipment/Order Detail)
   ============================================================ */
.detail-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.detail-header {
  padding: 24px 28px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.detail-header h3 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 22px;
  text-transform: uppercase; letter-spacing: .04em;
}
.detail-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line);
}
.detail-meta-item label {
  display: block; font-family: "Saira Condensed"; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px;
}
.detail-meta-item span {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 16px;
}
.detail-items { padding: 24px 28px; }
.detail-item-row {
  display: grid; grid-template-columns: 40px 2fr 1fr 1fr; gap: 14px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.detail-item-row:last-child { border-bottom: none; }
.detail-item-thumb {
  width: 36px; height: 36px; border-radius: 6px; background: #fff; overflow: hidden;
}
.detail-item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }

/* Status timeline */
.status-timeline {
  display: flex; gap: 0; padding: 24px 28px; border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.st-step {
  flex: 1; text-align: center; position: relative; min-width: 100px;
}
.st-step::before {
  content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 3px;
  background: var(--line);
}
.st-step:first-child::before { left: 50%; }
.st-step:last-child::before { right: 50%; }
.st-step.done::before, .st-step.active::before { background: var(--accent); }
.st-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; position: relative; z-index: 1; transition: .3s;
}
.st-step.done .st-dot { border-color: var(--accent); background: var(--accent); }
.st-step.active .st-dot {
  border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.st-dot svg { width: 14px; height: 14px; color: var(--accent-ink); display: none; }
.st-step.done .st-dot svg { display: block; }
.st-label {
  font-family: "Saira Condensed"; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.st-step.done .st-label, .st-step.active .st-label { color: var(--accent); }

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  font-family: "Saira Condensed"; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px;
  background: none; border: none; transition: .15s; padding: 0;
}
.back-btn:hover { color: var(--accent); }
.back-btn svg { width: 16px; height: 16px; }

/* Source badge */
.source-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 4px; font-family: "Saira Condensed"; font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.source-admin { background: rgba(138,141,149,.1); color: var(--muted); }
.source-client { background: var(--info-dim); color: var(--info); }
.source-ambassador { background: rgba(234,179,8,.1); color: #eab308; }
.source-ambassador-cust { background: rgba(59,130,246,.1); color: #3b82f6; }

/* ============================================================
   CONFIRM DIALOG
   ============================================================ */
.confirm-dialog {
  text-align: center; padding: 10px 0;
}
.confirm-dialog .confirm-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--danger-dim);
  color: var(--danger); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.confirm-dialog .confirm-icon svg { width: 28px; height: 28px; }
.confirm-dialog h4 {
  font-family: "Saira Condensed"; font-weight: 700; font-size: 20px;
  text-transform: uppercase; margin-bottom: 8px;
}
.confirm-dialog p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

/* ============================================================
   MOBILE OVERLAY & RESPONSIVE
   ============================================================ */
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 45;
}
.mobile-overlay.active { display: block; }

@media (max-width: 1100px) {
  .inv-grid { grid-template-columns: 44px 1.5fr 1fr .8fr .8fr 100px; gap: 12px; }
  .inv-grid .inv-incoming, .inv-grid .inv-committed { display: none; }
  .ord-grid { grid-template-columns: 1fr 1.5fr .6fr 1fr 1fr 1.2fr 80px; gap: 10px; }
  .ord-grid .ord-items { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); z-index: 50; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .mobile-burger { display: block; }
  .mobile-overlay.active { display: block; }
  .dash-grid { grid-template-columns: 1fr; }
  .ship-grid, .ord-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ship-grid .ship-items, .ship-grid .ship-value,
  .ord-grid .ord-items, .ord-grid .ord-value, .ord-grid .ord-source { display: none; }
  .header-search { min-width: 160px; }
  .content { padding: 20px 16px; }
  .cli-grid { grid-template-columns: 38px 1fr 1fr 100px; }
  .cli-grid .cli-phone, .cli-grid .cli-user { display: none; }
}
@media (max-width: 600px) {
  .inv-grid { grid-template-columns: 40px 1fr .8fr 90px; gap: 10px; }
  .inv-grid .inv-cat-col, .inv-grid .inv-avail { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .ship-grid, .ord-grid { grid-template-columns: 1fr 1fr; }
  .ship-grid .ship-eta, .ord-grid .ord-date { display: none; }
  .modal { margin: 10px; max-height: 95vh; }
  .modal .form-row { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   STARTER PACK EDITOR STYLES
   ============================================================ */
.sp-editor-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.sp-summary-side {
  position: sticky;
  top: 88px;
}
.sp-summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.sp-summary-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.sp-summary-header h4 {
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
}
.sp-metric-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  align-items: baseline;
}
.sp-metric-row span:last-child {
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.sp-metric-row.highlight-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 6px;
}
.sp-metric-row .val-cost {
  color: #c8ff3d !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
.sp-metric-row .val-profit {
  color: var(--success) !important;
  font-size: 16px !important;
}
.sp-item-grid {
  display: grid;
  grid-template-columns: 44px 2fr 1fr 120px 44px;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.sp-item-grid:hover {
  background: rgba(255, 255, 255, 0.01);
}
.sp-item-qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  max-width: 100px;
}
.sp-item-qty-input button {
  width: 28px;
  height: 28px;
  background: var(--panel-hover);
  border: none;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: .1s;
}
.sp-item-qty-input button:hover {
  background: var(--line);
  color: #c8ff3d;
}
.sp-item-qty-input input {
  width: 38px;
  height: 28px;
  text-align: center;
  background: none;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 14px;
  outline: none;
}
.sp-add-item-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-top: 24px;
}
.sp-add-item-box h4 {
  font-family: "Saira Condensed";
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.sp-add-controls {
  display: flex;
  gap: 12px;
}
.sp-add-select {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.sp-add-select:focus {
  border-color: var(--accent);
}

@media (max-width: 992px) {
  .sp-editor-grid {
    grid-template-columns: 1fr;
  }
  .sp-summary-side {
    position: static;
  }
}

/* ============================================================
   LIGHT MODE & THEME TOGGLE BUTTON OVERRIDES
   ============================================================ */
.theme-toggle-btn {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; transition: .18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 40px;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-btn svg { width: 20px; height: 20px; }

:root.light-mode, html.light-mode {
  --bg: #f5f6f8;
  --bg-2: #ebedf0;
  --panel: #ffffff;
  --panel-hover: #f8f9fa;
  --line: #e2e4e8;
  --line-light: #d1d4db;
  --ink: #15171c;
  --ink-2: #3a3f47;
  --muted: #70757f;
  --accent: #174081;
  --accent-dim: rgba(23,64,129,.08);
  --accent-ink: #ffffff;
  --success: #10b981;
  --success-dim: rgba(16,185,129,.1);
  --warning: #f59e0b;
  --warning-dim: rgba(245,158,11,.1);
  --danger: #ef4444;
  --danger-dim: rgba(239,68,68,.1);
  --info: #3b82f6;
  --info-dim: rgba(59,130,246,.1);
  --shadow: 0 8px 32px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.1);
}
:root.light-mode .sidebar-logo img,
:root.light-mode .login-logo img,
html.light-mode .sidebar-logo img,
html.light-mode .login-logo img {
  filter: none;
}
:root.light-mode #loginScreen,
html.light-mode #loginScreen {
  background:
    radial-gradient(800px 600px at 30% 20%, rgba(23,64,129,.06), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(96,165,250,.05), transparent 60%),
    var(--bg);
}
:root.light-mode .login-card,
html.light-mode .login-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
:root.light-mode .sidebar,
html.light-mode .sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
}
:root.light-mode .topheader,
html.light-mode .topheader {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
:root.light-mode .sidebar-footer,
html.light-mode .sidebar-footer {
  background: rgba(0, 0, 0, 0.02);
}
:root.light-mode .form-input,
:root.light-mode .form-textarea,
:root.light-mode .form-select,
:root.light-mode .header-search,
:root.light-mode .filter-search,
html.light-mode .form-input,
html.light-mode .form-textarea,
html.light-mode .form-select,
html.light-mode .header-search,
html.light-mode .filter-search {
  background: #ffffff;
}
:root.light-mode .kpi-card,
html.light-mode .kpi-card {
  background: #ffffff;
}
:root.light-mode .list-container,
html.light-mode .list-container {
  background: #ffffff;
}
:root.light-mode .list-header,
html.light-mode .list-header {
  background: var(--bg-2);
}
:root.light-mode .detail-panel,
html.light-mode .detail-panel {
  background: #ffffff;
}
:root.light-mode .detail-header,
html.light-mode .detail-header {
  background: rgba(0, 0, 0, 0.02);
}
:root.light-mode .status-timeline,
html.light-mode .status-timeline {
  background: rgba(0, 0, 0, 0.01);
}
:root.light-mode .modal,
html.light-mode .modal {
  background: #ffffff;
}
:root.light-mode .modal-footer,
html.light-mode .modal-footer {
  background: rgba(0, 0, 0, 0.02);
}
:root.light-mode .toast,
html.light-mode .toast {
  background: #ffffff;
}
:root.light-mode .dash-card,
html.light-mode .dash-card {
  background: #ffffff;
}
:root.light-mode .dash-card .cat-bar-track,
html.light-mode .dash-card .cat-bar-track {
  background: var(--bg-2);
}
:root.light-mode .alert-row,
:root.light-mode .activity-item,
html.light-mode .alert-row,
html.light-mode .activity-item {
  border-bottom: 1px solid var(--line);
}
:root.light-mode .btn-secondary,
html.light-mode .btn-secondary {
  background: #ffffff;
}
:root.light-mode .btn-secondary:hover,
html.light-mode .btn-secondary:hover {
  background: var(--bg-2);
}

/* Price List Selection Modal Styling */
.pl-prod-row:hover {
  background: var(--panel-hover) !important;
}

/* Promotions Page Cards Layout */
.promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.promo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  opacity: 0.7;
}
.promo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.promo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.promo-id {
  font-family: 'Saira Condensed';
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.promo-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.promo-recipient {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-name {
  font-family: 'Saira Condensed';
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.promo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 6px;
}
.promo-notes {
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-top: 4px;
  max-height: 80px;
  overflow-y: auto;
  font-style: italic;
  line-height: 1.4;
}
.promo-items-container {
  margin-top: 8px;
}
.promo-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.promo-item-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Saira Condensed';
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.promo-card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}
.promo-actions {
  display: flex;
  gap: 8px;
}