/* =============================================
   ROOT & RESET
   ============================================= */
:root {
  --bg-deep: #0f172a;
  --bg-card: #1e293b;
  --bg-card2: #263348;
  --border: #334155;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fcd34d;
  --green: #10b981;
  --green-dark: #059669;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =============================================
   TOPNAV
   ============================================= */
.topnav {
  height: 56px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  color: var(--text-muted);
}
.nav-link:hover { background: var(--bg-card2); color: var(--text); }
.nav-link.nav-active { color: var(--accent); background: rgba(245,158,11,.1); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.nav-username {
  font-size: .85rem;
  color: var(--text-muted);
}

.nav-logout {
  color: var(--red) !important;
  border: 1px solid transparent;
}
.nav-logout:hover { border-color: var(--red); background: rgba(239,68,68,.1) !important; color: var(--red) !important; }

/* Notification dot on nav avatar */
.nav-username { position: relative; }
.nav-username .notify-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.role-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.role-user    { background: rgba(59,130,246,.25); color: #93c5fd; border: 1px solid rgba(59,130,246,.4); }
.role-shipping { background: rgba(16,185,129,.25); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.role-admin   { background: rgba(245,158,11,.25); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}

/* Floating background items */
.bg-boxes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.box {
  position: absolute;
  font-size: 2.5rem;
  opacity: .15;
  animation: floatBox 15s infinite linear;
  user-select: none;
}
.b1 { left: 5%;  top: 80%; animation-duration: 18s; animation-delay: 0s;   font-size: 3rem; }
.b2 { left: 15%; top: 90%; animation-duration: 14s; animation-delay: -4s;  }
.b3 { left: 30%; top: 85%; animation-duration: 20s; animation-delay: -7s;  font-size: 2rem; }
.b4 { left: 50%; top: 88%; animation-duration: 16s; animation-delay: -2s;  font-size: 2.8rem; }
.b5 { left: 65%; top: 82%; animation-duration: 12s; animation-delay: -9s;  }
.b6 { left: 75%; top: 90%; animation-duration: 22s; animation-delay: -5s;  font-size: 3.5rem; }
.b7 { left: 85%; top: 84%; animation-duration: 17s; animation-delay: -3s;  }
.b8 { left: 93%; top: 88%; animation-duration: 13s; animation-delay: -11s; }

@keyframes floatBox {
  0%   { transform: translateY(0) rotate(0deg); opacity: .15; }
  50%  { opacity: .25; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow), 0 0 60px rgba(245,158,11,.12);
  text-align: center;
  animation: cardIn .5s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo .logo-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
  animation: logoSpin 3s ease-in-out infinite alternate;
}
@keyframes logoSpin {
  from { transform: rotate(-5deg) scale(1); }
  to   { transform: rotate(5deg) scale(1.1); }
}

.login-logo h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.tagline {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 32px;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1100;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  margin-bottom: 16px;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,158,11,.5);
}
.btn-login:active { transform: translateY(0); }

.login-note {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: 8px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 20px;
  text-align: left;
}
.alert-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #fca5a5;
}

/* =============================================
   APP LAYOUT
   ============================================= */
.app-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-layout {
  display: grid;
  grid-template-columns: 360px 1fr 300px;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,158,11,.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.05) 0%, transparent 60%),
    var(--bg-deep);
}

/* =============================================
   LEFT SHELF PANEL
   ============================================= */
.shelf-panel {
  background: var(--bg-card);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shelf-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}
.shelf-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.shelf-search {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: .85rem;
  outline: none;
  transition: border-color .2s;
}
.shelf-search:focus { border-color: var(--accent); }
.shelf-search::placeholder { color: var(--text-muted); }

.shelf-items {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.category-group {
  margin-bottom: 4px;
}
.category-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 8px 4px;
}

.shelf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 3px;
  cursor: grab;
  transition: all .2s;
  user-select: none;
  position: relative;
}
.shelf-item:hover {
  border-color: var(--accent);
  background: rgba(245,158,11,.08);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--accent);
}
.shelf-item:active { cursor: grabbing; transform: scale(.97); }
.shelf-item.dragging {
  opacity: .5;
  transform: scale(.95);
}

.item-emoji { font-size: 1.1rem; flex-shrink: 0; }
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-name { font-size: .82rem; font-weight: 500; line-height: 1.3; }
.item-desc { font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-unit { font-size: .68rem; color: var(--text-muted); flex-shrink: 0; }

.drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: var(--accent);
  color: #1a1100;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow);
  transform: rotate(-3deg) scale(1.05);
  white-space: nowrap;
}

/* =============================================
   CENTER CART ZONE
   ============================================= */
.cart-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Warehouse floor lines */
.warehouse-floor {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Floor perspective lines */
.cart-zone::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 60px,
    rgba(245,158,11,.04) 60px,
    rgba(245,158,11,.04) 62px
  );
  pointer-events: none;
}

.cart-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border: 3px dashed var(--border);
  border-radius: 20px;
  width: 100%;
  min-height: 220px;
  transition: all .3s;
  background: rgba(255,255,255,.02);
}
.cart-drop-area.drag-over {
  border-color: var(--accent);
  background: rgba(245,158,11,.06);
  box-shadow: 0 0 40px rgba(245,158,11,.2);
}

.cart-svg-wrap {
  width: 160px;
  filter: drop-shadow(0 8px 20px rgba(245,158,11,.3));
  transition: transform .3s;
  flex-shrink: 0;
}
.cart-drop-area.drag-over .cart-svg-wrap {
  transform: scale(1.06) translateY(-4px);
}
.cart-svg { width: 100%; animation: cartBob 3s ease-in-out infinite; }
@keyframes cartBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.drop-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
  transition: opacity .3s;
}
.drop-hint.hidden { opacity: 0; pointer-events: none; }
.drop-arrow { font-size: 1.5rem; display: block; animation: bounce 1.5s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── Staged area ──────────────────────────────── */
.staged-area {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: slideUp .3s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.staged-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.staged-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.staged-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .75rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.staged-clear-btn:hover { color: var(--red); background: rgba(239,68,68,.1); }

.staged-list { max-height: 200px; overflow-y: auto; scrollbar-width: thin; }

.staged-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  animation: slideIn .2s ease-out;
}
.staged-item:last-child { border-bottom: none; }

.staged-thumb-wrap {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.staged-thumb { width: 100%; height: 100%; object-fit: cover; }
.staged-emoji { line-height: 1; }

.staged-info { flex: 1; min-width: 0; }
.staged-name {
  font-size: .85rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staged-notes {
  font-size: .72rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staged-qty {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.staged-qty small { font-weight: 400; color: var(--text-muted); font-size: .7rem; }

.staged-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.staged-remove:hover { color: var(--red); background: rgba(239,68,68,.1); }

/* ── Confirm Order button ─────────────────────── */
.confirm-zone {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: slideUp .35s ease-out;
}

.btn-confirm-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #f59e0b, #d97706, #f59e0b);
  background-size: 200% 100%;
  color: #1a1100;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(245,158,11,.45);
  animation: confirmAppear .4s cubic-bezier(.34,1.56,.64,1) forwards,
             confirmPulse  2s ease-in-out 0.4s infinite;
  width: 100%;
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}
/* shimmer sweep */
.btn-confirm-order::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2.5s ease-in-out 0.8s infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 140%; }
}
@keyframes confirmAppear {
  from { transform: scale(0.7) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
@keyframes confirmPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(245,158,11,.45); transform: scale(1); }
  50%       { box-shadow: 0 8px 40px rgba(245,158,11,.7);  transform: scale(1.02); }
}
.btn-confirm-order:disabled {
  animation: none;
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-confirm-order:hover:not(:disabled) {
  background-position: 100% 0;
}

.confirm-truck {
  font-size: 1.6rem;
  animation: truckBounce 0.6s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes truckBounce {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-4px) rotate(2deg); }
}

.confirm-text { flex: 1; text-align: center; }

.confirm-badge {
  background: #1a1100;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Truck Overlay ────────────────────────────── */
.truck-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 10, 20, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  pointer-events: none;
  animation: overlayIn 0.3s ease-out;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.truck-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.truck-star {
  position: absolute;
  animation: starTwinkle 1.2s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
  from { opacity: .2; transform: scale(.7); }
  to   { opacity: 1;  transform: scale(1.3); }
}

.truck-status-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  animation: statusGlow 0.9s ease-in-out infinite alternate;
  margin: 0;
}
@keyframes statusGlow {
  from { text-shadow: 0 0 12px rgba(245,158,11,.3); }
  to   { text-shadow: 0 0 32px rgba(245,158,11,1), 0 0 64px rgba(245,158,11,.4); }
}

.truck-road-scene {
  position: relative;
  width: 100vw;
  height: 120px;
  overflow: hidden;
}

.truck-road {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 56px;
  background: #141b2e;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
}
.truck-road::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 1px,
    transparent 1px, transparent 60px
  );
}
.truck-road::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 200%;
  height: 3px;
  margin-top: -1.5px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.5) 0, rgba(255,255,255,.5) 32px,
    transparent 32px, transparent 72px
  );
  animation: roadScroll 0.45s linear infinite;
}
@keyframes roadScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100px); }
}

.truck-vehicle {
  position: absolute;
  bottom: 4px;
  left: -180px;
  transition: left 2.2s cubic-bezier(.2, 0, .6, 1);
}
.truck-vehicle.truck-go { left: calc(100% + 200px); }

.truck-emoji {
  font-size: 5.5rem;
  line-height: 1;
  display: block;
  animation: truckBob 0.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 28px rgba(245,158,11,.9));
}
@keyframes truckBob {
  from { transform: translateY(0)   rotate(-.4deg); }
  to   { transform: translateY(-5px) rotate(.4deg); }
}

.truck-dust-puff {
  position: absolute;
  font-size: 1.4rem;
  animation: dustPuff 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes dustPuff {
  0%   { opacity: .9; transform: scale(.4) translateY(0); }
  100% { opacity: 0;  transform: scale(2.2) translateY(-50px); }
}

.truck-speed-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.7), transparent);
  animation: speedLine 0.45s ease-out forwards;
  pointer-events: none;
}
@keyframes speedLine {
  0%   { opacity: .9; transform: scaleX(1) translateX(0); }
  100% { opacity: 0;  transform: scaleX(.2) translateX(-80px); }
}

/* XP Bar */
.xp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
}
.xp-label { font-size: .8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.xp-bar { flex: 1; height: 12px; background: var(--bg-deep); border-radius: 6px; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent), #fde68a); border-radius: 6px; transition: width .5s cubic-bezier(.34,1.56,.64,1); }
.xp-count { font-size: .8rem; font-weight: 700; color: var(--accent-light); white-space: nowrap; }

/* =============================================
   RIGHT CLIPBOARD PANEL
   ============================================= */
.clipboard-panel {
  background: var(--bg-card);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clipboard {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

.clipboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(59,130,246,.08) 27px,
      rgba(59,130,246,.08) 28px
    );
  pointer-events: none;
}

.clipboard-clip {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4px;
}
.clipboard h3 {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.order-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  position: relative;
  z-index: 1;
}

.empty-order {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 24px;
  line-height: 1.8;
}

.order-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px dashed var(--border);
  animation: slideIn .3s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.order-item-emoji { font-size: 1.1rem; flex-shrink: 0; padding-top: 2px; }
.order-item-info { flex: 1; }
.order-item-name { font-size: .82rem; font-weight: 600; }
.order-item-meta { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.order-item-qty  { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.order-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.order-item-remove:hover { color: var(--red); background: rgba(239,68,68,.1); }

.clipboard-footer {
  padding-top: 12px;
  border-top: 2px solid var(--border);
  text-align: right;
  font-size: .82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.clipboard-footer strong { color: var(--accent); }

/* Archive toggle */
.archived-section {
  border-top: 2px solid var(--border);
  padding: 12px;
}
.btn-toggle-archive {
  width: 100%;
  padding: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.btn-toggle-archive:hover { border-color: var(--accent); color: var(--text); }

.archive-list {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.archive-item {
  padding: 8px 6px;
  border-bottom: 1px dashed var(--border);
  font-size: .78rem;
  opacity: .7;
}
.archive-item .archive-name { font-weight: 600; }
.archive-item .archive-meta { color: var(--text-muted); font-size: .7rem; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { transform: scale(.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.modal-emoji { font-size: 2rem; }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; }

.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-body label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 40px; height: 40px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--accent); color: #1a1100; border-color: var(--accent); }

.qty-input {
  width: 80px;
  text-align: center;
  padding: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
}
.qty-input:focus { border-color: var(--accent); }

.unit-hint { color: var(--text-muted); font-weight: 400; }

.text-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.text-input:focus { border-color: var(--accent); }
.text-input::placeholder { color: var(--text-muted); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1100;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.4); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-success {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,.4); }
.btn-danger {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: white;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--blue); }

/* =============================================
   PARTICLES
   ============================================= */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-size: 1.5rem;
  animation: particleFly 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes particleFly {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-150px) scale(0) rotate(180deg); opacity: 0; }
}

/* =============================================
   SHIPPING PAGE
   ============================================= */
.shipping-page .app-layout { display: block; }

.shipping-layout {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.shipping-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.progress-ring-wrap { flex-shrink: 0; }
.progress-ring { width: 100px; height: 100px; }

.ring-fill {
  transition: stroke-dashoffset 1s cubic-bezier(.34,1.56,.64,1);
}

.shipping-stats h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }

.stat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}
.pending-pill { background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.4); color: var(--accent-light); }
.done-pill    { background: rgba(16,185,129,.2); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }

.shipping-actions { margin-left: auto; }

.shopping-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shopping-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Item group (grouped by name) ─────────────── */
.item-group {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: slideIn .3s ease-out;
  transition: border-color .2s;
}
.item-group:hover { border-color: rgba(59,130,246,.4); }
.item-group.item-group-done {
  border-color: rgba(16,185,129,.3);
  opacity: .75;
}

.item-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: var(--bg-card2);
  transition: background .2s;
}
.item-group-header:hover { background: rgba(255,255,255,.04); }

.group-info { flex: 1; min-width: 0; }
.group-name {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}
.group-total {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

.group-chevron {
  font-size: .85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

/* ── Breakdown rows ───────────────────────────── */
.item-group-rows {
  border-top: 1px solid var(--border);
}

.item-breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 20px;
  border-bottom: 1px dashed var(--border);
  transition: background .2s;
  animation: slideIn .2s ease-out;
}
.item-breakdown-row:last-child { border-bottom: none; }
.item-breakdown-row:hover { background: rgba(255,255,255,.03); }
.item-breakdown-row.row-done { background: rgba(16,185,129,.04); }

/* Standalone row (single request — no group wrapper) */
.item-breakdown-row.row-standalone {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  animation: slideIn .3s ease-out;
}
.item-breakdown-row.row-standalone:hover {
  border-color: rgba(59,130,246,.4);
  background: rgba(255,255,255,.03);
}
.item-breakdown-row.row-standalone.row-done {
  border-color: rgba(16,185,129,.3);
  opacity: .75;
}
.item-breakdown-row.row-standalone .row-qty { font-size: 1rem; }
.item-breakdown-row.row-standalone .row-meta { font-size: .82rem; }
.row-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.item-breakdown-row.completing {
  animation: itemDone .5s ease-out forwards;
}
@keyframes itemDone {
  30% { background: rgba(16,185,129,.2); transform: scale(1.01); }
  100% { opacity: .7; transform: scale(1); }
}

.row-info {
  flex: 1;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-width: 0;
}
.row-qty {
  font-weight: 700;
  color: var(--accent);
  font-size: .9rem;
  margin-right: 6px;
}
.row-meta { display: block; }
.row-done-badge {
  display: block;
  font-size: .75rem;
  color: #6ee7b7;
  margin-top: 2px;
}

.row-actions { flex-shrink: 0; }

/* ── Custom checkbox ─────────────────────────── */
.master-check-wrap,
.row-check-wrap {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.master-check-wrap input,
.row-check-wrap input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check-custom {
  display: block;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2.5px solid var(--border);
  background: transparent;
  transition: all .2s;
  position: relative;
}
/* checked */
.master-check:checked  ~ .check-custom,
.row-check:checked     ~ .check-custom {
  background: var(--green);
  border-color: var(--green);
}
.master-check:checked  ~ .check-custom::after,
.row-check:checked     ~ .check-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: .75rem;
  font-weight: 700;
}
/* indeterminate */
.master-check:indeterminate ~ .check-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.master-check:indeterminate ~ .check-custom::after {
  content: '–';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #1a1100;
  font-size: .9rem;
  font-weight: 800;
}
.master-check-wrap:hover .check-custom,
.row-check-wrap:hover .check-custom {
  border-color: var(--green);
}

/* keep old .item-btn for delete button */
.item-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  background: none;
}
.item-btn-del {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #fca5a5;
}
.item-btn-del:hover { background: var(--red); color: white; }

.done-header {
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  padding: 12px 0 8px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.loading-shimmer {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

.all-done-banner {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn .5s ease-out;
}
.all-done-content {
  text-align: center;
  animation: bounceIn .6s ease-out;
}
.all-done-emoji { font-size: 5rem; margin-bottom: 16px; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.all-done-content h2 { font-size: 2.5rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.all-done-content p { color: var(--text-muted); font-size: 1.1rem; }
@keyframes bounceIn {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-page .app-layout { display: block; }

.admin-layout {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-header h1 { font-size: 1.6rem; font-weight: 800; flex: 1; }
.admin-subtitle { color: var(--text-muted); font-size: .88rem; }

.users-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.users-table thead {
  background: var(--bg-card2);
}
.users-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}
.users-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.users-table tr:hover td { background: rgba(255,255,255,.02); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
}
.status-active   { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }
.status-disabled { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.4);  color: #fca5a5; }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid;
  transition: all .2s;
}
.action-btn-edit    { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.4); color: #93c5fd; }
.action-btn-edit:hover { background: var(--blue); color: white; }
.action-btn-dupe    { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.4); color: #93c5fd; }
.action-btn-dupe:hover { background: var(--blue); color: white; }
.action-btn-disable { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.3);  color: var(--accent-light); }
.action-btn-disable:hover { background: var(--accent); color: #1a1100; }
.action-btn-enable  { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.action-btn-enable:hover { background: var(--green); color: white; }
.action-btn-delete  { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.action-btn-delete:hover { background: var(--red); color: white; }

.loading-cell { padding: 40px; text-align: center; color: var(--text-muted); }

/* =============================================
   ERROR PAGE
   ============================================= */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.error-container {
  text-align: center;
  padding: 40px;
}
.error-icon { font-size: 4rem; margin-bottom: 16px; }
.error-container h1 { font-size: 4rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.error-container p { color: var(--text-muted); margin-bottom: 24px; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 300px 1fr 260px;
  }
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    overflow-y: auto;
  }
  .shelf-panel { max-height: 200px; border-right: none; border-bottom: 2px solid var(--border); }
  .clipboard-panel { border-left: none; border-top: 2px solid var(--border); max-height: 250px; }
  .shipping-header { flex-direction: column; text-align: center; }
}

/* =============================================
   SHELF ITEM — photo support
   ============================================= */
.item-photo {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.item-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* =============================================
   ADMIN ITEMS PAGE
   ============================================= */
.items-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.items-count {
  font-size: .82rem;
  color: var(--text-muted);
  margin-left: auto;
}

.items-category-section { margin-bottom: 28px; }
.items-category-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.items-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* ── Emoji picker ─────────────────────────────── */
.emoji-picker {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  width: 272px;
}
.emoji-opt {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  text-align: center;
}
.emoji-opt:hover { background: rgba(255,255,255,.1); }

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.item-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card2);
  overflow: hidden;
}
.item-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.item-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-deep));
}
.item-card-photo-btn {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.7);
  border: none; border-radius: 6px;
  padding: 4px 8px; font-size: .78rem; cursor: pointer;
  color: white; transition: background .2s;
  opacity: 0;
}
.item-card-photo-remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(239,68,68,.8);
  border: none; border-radius: 50%;
  width: 22px; height: 22px; cursor: pointer;
  color: white; font-size: .7rem; line-height: 22px; text-align: center;
  transition: background .2s;
  opacity: 0;
}
.item-card:hover .item-card-photo-btn,
.item-card:hover .item-card-photo-remove { opacity: 1; }
.item-card-photo-btn:hover { background: var(--accent); color: #1a1100; }
.item-card-photo-remove:hover { background: var(--red); }

.item-card-body {
  padding: 10px 12px;
  flex: 1;
}
.item-card-name {
  font-size: .88rem; font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.item-card-meta { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.item-card-unit {
  font-size: .7rem;
  padding: 2px 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px;
  color: var(--accent-light);
}
.item-card-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card2);
}

/* Upload drop zone */
.upload-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(245,158,11,.05);
}
.upload-preview {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--text-muted);
}
.upload-preview img { pointer-events: none; }

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-card {
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-avatar {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #1a1100;
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  padding: 36px;
  line-height: 1;
}

.profile-info {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.profile-info h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.profile-username { color: var(--text-muted); font-size: .88rem; margin: 0; }
.profile-email    { color: var(--text-muted); font-size: .85rem; margin: 4px 0 0; }

.profile-settings { padding: 20px 28px; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.setting-info { flex: 1; }
.setting-label { font-size: .95rem; font-weight: 600; margin-bottom: 3px; }
.setting-desc  { font-size: .8rem; color: var(--text-muted); }
.setting-note  { font-size: .78rem; color: var(--text-muted); margin-top: 10px; min-height: 18px; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px; height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 28px;
  transition: background .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 4px;
  background: white;
  border-radius: 50%;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

/* Admin table notify badge */
.notify-on  { color: #6ee7b7; font-size: 1rem; }
.notify-off { color: var(--border); font-size: 1rem; }
