/* AmericaMarket App CSS v1.3 — full rewrite, no duplicates */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:       #060d1a;
  --bg-1:       #0a1628;
  --bg-2:       #0f1f38;
  --bg-3:       #162847;
  --surface:    #1a2f4a;
  --surface-2:  #213858;
  --border:     rgba(0,212,255,0.12);
  --border-2:   rgba(255,255,255,0.07);
  --cyan:       #00d4ff;
  --cyan-dim:   rgba(0,212,255,0.12);
  --cyan-glow:  rgba(0,212,255,0.3);
  --white:      #ffffff;
  --text-1:     #e8f4f8;
  --text-2:     #8fb3cc;
  --text-3:     #5a7a94;
  --green:      #00e5a0;
  --green-dim:  rgba(0,229,160,0.12);
  --orange:     #ff9f43;
  --orange-dim: rgba(255,159,67,0.12);
  --red:        #ff5c5c;
  --red-dim:    rgba(255,92,92,0.12);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
  --sidebar-w:  240px;
  --topbar-h:   56px;
}

/* ── BASE ──────────────────────────────────────────────────── */
html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }

/* ── SCREENS ───────────────────────────────────────────────── */
.am-screen { display: none; }
.am-screen.active { display: block; }

/* ── LOGIN ─────────────────────────────────────────────────── */
#am-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.am-login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(0,50,100,0.4) 0%, transparent 60%),
    var(--bg-0);
}
.am-login-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 24px;
}
.am-login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.am-login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

/* ── FORMS ─────────────────────────────────────────────────── */
.am-form { display: flex; flex-direction: column; gap: 16px; }
.am-field { display: flex; flex-direction: column; gap: 6px; }
.am-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.am-field input,
.am-field textarea,
.am-field select {
  background: var(--bg-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.am-field input:focus,
.am-field textarea:focus,
.am-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.am-field textarea { resize: vertical; min-height: 80px; }
.am-field select option { background: var(--bg-2); }
.am-input-wrap { position: relative; }
.am-input-wrap input { padding-right: 44px; }
.am-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.am-error-msg {
  background: var(--red-dim);
  border: 1px solid rgba(255,92,92,0.3);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.am-success-msg {
  background: var(--green-dim);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--green);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.am-btn-primary { background: var(--cyan); color: var(--bg-0); }
.am-btn-primary:hover { background: #1ae0ff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--cyan-glow); }
.am-btn-primary:active { transform: translateY(0); }
.am-btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border-2); }
.am-btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.am-btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,92,92,0.3); }
.am-btn-danger:hover { background: rgba(255,92,92,0.22); }
.am-btn-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,229,160,0.3); }
.am-btn-success:hover { background: rgba(0,229,160,0.22); }
.am-btn-sm { padding: 6px 12px; font-size: 12px; }
.am-btn-full { width: 100%; }
.am-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── TOPBAR ────────────────────────────────────────────────── */
.am-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  z-index: 100;
  gap: 8px;
}
.am-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.am-topbar-menu {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--transition);
}
.am-topbar-menu:hover { color: var(--cyan); }
.am-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.am-topbar-user {
  font-size: 13px;
  color: var(--text-2);
  display: none;
  white-space: nowrap;
}
@media (min-width: 600px) { .am-topbar-user { display: block; } }

/* Bell button */
.am-bell-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.am-bell-btn:hover { color: var(--cyan); background: var(--cyan-dim); }
.am-bell-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg-1);
  line-height: 1;
}

/* Topbar logout */
.am-topbar-logout {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.am-topbar-logout:hover { color: var(--red); background: var(--red-dim); }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.am-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.am-sidebar.open { transform: translateX(0); }

.am-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  border-bottom: 1px solid var(--border-2);
  height: var(--topbar-h);
  flex-shrink: 0;
}
.am-sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.am-sidebar-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

/* Nav */
.am-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.am-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.am-nav-item:hover { color: var(--cyan); background: var(--cyan-dim); }
.am-nav-item.active { color: var(--cyan); background: var(--cyan-dim); border-left-color: var(--cyan); }
.am-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 4px;
}

/* Sidebar footer logout */
.am-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-2);
  flex-shrink: 0;
}
.am-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red-dim);
  border: 1px solid rgba(255,92,92,0.25);
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all var(--transition);
}
.am-logout-btn:hover { background: rgba(255,92,92,0.22); }

/* Overlay */
.am-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  display: none;
  backdrop-filter: blur(2px);
}
.am-overlay.active { display: block; }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.am-main {
  padding-top: calc(var(--topbar-h) + 16px);
  padding-bottom: 32px;
  min-height: 100vh;
}
.am-page { padding: 0 16px; }

/* ── CARDS ─────────────────────────────────────────────────── */
.am-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px;
}
.am-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* Stats grid */
.am-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 600px) { .am-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.am-stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.am-stat-card .am-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.2;
}
.am-stat-card .am-stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.am-stat-card.am-stat-cyan { border-color: rgba(0,212,255,0.25); background: rgba(0,212,255,0.07); }
.am-stat-card.am-stat-cyan .am-stat-num { color: var(--cyan); }
.am-stat-card.am-stat-green .am-stat-num { color: var(--green); }

/* ── ROLE BADGE ────────────────────────────────────────────── */
.am-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.am-role-badge.am-role-admin,
.am-role-badge.am-role-administrator { background: var(--cyan-dim); color: var(--cyan); }
.am-role-badge.am-role-supervisor    { background: var(--orange-dim); color: var(--orange); }
.am-role-badge.am-role-vendor        { background: rgba(255,255,255,0.08); color: var(--text-2); }

/* Generic badge */
.am-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.am-badge-pending   { background: var(--orange-dim); color: var(--orange); }
.am-badge-paid      { background: var(--green-dim);  color: var(--green); }
.am-badge-delivered { background: var(--cyan-dim);   color: var(--cyan); }
.am-badge-admin,
.am-badge-administrator { background: var(--cyan-dim); color: var(--cyan); }
.am-badge-supervisor { background: var(--orange-dim); color: var(--orange); }
.am-badge-vendor     { background: rgba(255,255,255,0.08); color: var(--text-2); }

/* ── TABLE ─────────────────────────────────────────────────── */
.am-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
}
.am-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 500px;
}
.am-table th {
  background: var(--bg-3);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
}
.am-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border-2);
  color: var(--text-1);
  vertical-align: middle;
}
.am-table tr:hover td { background: rgba(255,255,255,0.02); }
.am-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── SEARCH BAR ────────────────────────────────────────────── */
.am-search-bar { position: relative; margin-bottom: 14px; }
.am-search-bar input {
  background: var(--bg-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 40px;
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.am-search-bar input:focus { border-color: var(--cyan); }
.am-search-bar input::placeholder { color: var(--text-3); }
.am-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.am-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.am-page-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

/* ── FILTER BAR ────────────────────────────────────────────── */
.am-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.am-filter-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.am-filter-btn:hover,
.am-filter-btn.active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

/* ── MODAL ─────────────────────────────────────────────────── */
.am-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}
@media (min-width: 600px) { .am-modal-backdrop { align-items: center; } }
.am-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  animation: slideUp 0.22s ease;
}
@media (min-width: 600px) { .am-modal { border-radius: var(--radius); } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.am-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.am-modal-header h3 { font-size: 17px; font-weight: 700; color: var(--white); }
.am-modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.am-modal-close:hover { color: var(--red); background: var(--red-dim); }
.am-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
  flex-wrap: wrap;
}

/* ── ORDER BUILDER ─────────────────────────────────────────── */
.am-order-items { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.am-order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.am-order-item-name  { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-order-item-price { font-size: 13px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.am-order-item-qty   { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.am-qty-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.am-qty-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.am-qty-val { min-width: 24px; text-align: center; font-weight: 600; }
.am-order-item-remove {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: 18px; flex-shrink: 0;
  transition: color var(--transition);
}
.am-order-item-remove:hover { color: var(--red); }
.am-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
}
.am-order-total span  { font-size: 13px; color: var(--text-2); }
.am-order-total strong { font-size: 22px; font-weight: 700; color: var(--cyan); }
.am-commission-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-dim);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 10px;
}
.am-commission-box span   { font-size: 13px; color: var(--green); }
.am-commission-box strong { font-size: 18px; font-weight: 700; color: var(--green); }

/* ── PRODUCT PICKER ────────────────────────────────────────── */
.am-product-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.am-product-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  user-select: none;
}
.am-product-pick:hover,
.am-product-pick.selected { border-color: var(--cyan); background: var(--cyan-dim); }
.am-product-pick:active { transform: scale(0.99); }
.am-product-pick-info  { flex: 1; min-width: 0; }
.am-product-pick-name  { font-size: 14px; font-weight: 500; }
.am-product-pick-meta  { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.am-product-pick-price { font-size: 15px; font-weight: 700; color: var(--cyan); flex-shrink: 0; margin-left: 10px; }

/* Stock indicator */
.am-stock { display: inline-block; font-size: 12px; font-weight: 600; }
.am-stock.ok    { color: var(--green); }
.am-stock.low   { color: var(--orange); }
.am-stock.empty { color: var(--red); }

/* ── CLIENT CARDS ──────────────────────────────────────────── */
.am-client-cards { display: flex; flex-direction: column; gap: 10px; }
.am-client-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color var(--transition);
}
.am-client-card:hover { border-color: rgba(0,212,255,0.25); }
.am-client-card-name   { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.am-client-card-meta   { font-size: 13px; color: var(--text-2); }
.am-client-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.am-empty { text-align: center; padding: 48px 24px; color: var(--text-3); }
.am-empty p { font-size: 15px; }

/* ── LOADING ───────────────────────────────────────────────── */
.am-loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.am-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border-2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ─────────────────────────────────────────────────── */
.am-toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  min-width: 260px;
  max-width: 90vw;
}
.am-toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease;
  text-align: center;
}
.am-toast.success { border-color: rgba(0,229,160,0.4); color: var(--green); }
.am-toast.error   { border-color: rgba(255,92,92,0.4); color: var(--red); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── NOTIFICATIONS ─────────────────────────────────────────── */
.am-notif-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}
.am-notif-card.am-notif-unread {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.05);
}
.am-notif-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.am-notif-title { font-size: 15px; font-weight: 700; color: var(--white); flex: 1; }
.am-notif-body  { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 8px; white-space: pre-wrap; }
.am-notif-meta  { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── RECEIPT UPLOAD ────────────────────────────────────────── */
.am-receipt-upload {
  display: block;
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  color: var(--text-2);
}
.am-receipt-upload:hover { border-color: var(--cyan); }
.am-receipt-upload input { display: none; }

/* ── ADMIN CSS (WP backend) ────────────────────────────────── */
.am-admin-wrap { max-width: 900px; }
.am-admin-wrap .am-stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px; margin: 20px 0;
}
@media (min-width: 800px) { .am-admin-wrap .am-stats-grid { grid-template-columns: repeat(4,1fr); } }
.am-admin-wrap .am-stat {
  background: #0f1f38;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px;
  padding: 20px; text-align: center;
}
.am-admin-wrap .am-stat-number { display:block; font-size:30px; font-weight:700; color:#00d4ff; }
.am-admin-wrap .am-stat-label  { font-size:12px; color:#8fb3cc; margin-top:4px; display:block; }
.am-admin-wrap .am-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.am-badge-admin      { background:rgba(0,212,255,0.15); color:#00d4ff; padding:3px 8px; border-radius:4px; font-size:12px; font-weight:600; }
.am-badge-supervisor { background:rgba(255,159,67,0.15); color:#ff9f43; padding:3px 8px; border-radius:4px; font-size:12px; font-weight:600; }
.am-badge-vendor     { background:rgba(255,255,255,0.08); color:#8fb3cc; padding:3px 8px; border-radius:4px; font-size:12px; font-weight:600; }
