/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--accent-blue-h); box-shadow: 0 4px 24px rgba(59,130,246,0.4); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: var(--accent-green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-success:hover { background: var(--accent-green-h); transform: translateY(-1px); }

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}
.btn-danger:hover { background: var(--accent-red-h); transform: translateY(-1px); }

.btn-secondary {
  background: var(--card);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--border-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.btn-amber {
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
}
.btn-amber:hover { background: var(--accent-amber-h); transform: translateY(-1px); }

.btn-sm { padding: 6px 12px; font-size: var(--text-xs); }
.btn-lg { padding: 12px 24px; font-size: var(--text-md); }
.btn-xl { padding: 16px 32px; font-size: var(--text-lg); font-weight: 700; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-w-full { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.card-glass {
  background: rgba(26, 26, 38, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

.card-interactive {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
}
.card-interactive:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-interactive:active { transform: translateY(0); }

/* ============================================================
   KPI CARDS (Apple Stocks style)
   ============================================================ */
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.kpi-card:hover { border-color: var(--border-light); }
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--kpi-accent, var(--accent-blue));
  border-radius: var(--radius) var(--radius) 0 0;
}
.kpi-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.kpi-card-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.kpi-card-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.kpi-icon {
  position: absolute;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kpi-accent, var(--accent-blue));
}
.kpi-icon svg { width: 20px; height: 20px; }

/* ============================================================
   DELTA BADGE
   ============================================================ */
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.delta svg { width: 11px; height: 11px; }
.delta-up   { background: rgba(34,197,94,0.12);  color: var(--accent-green); }
.delta-down { background: rgba(239,68,68,0.12);  color: var(--accent-red); }
.delta-neutral { background: rgba(124,124,150,0.12); color: var(--text-muted); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
}
.badge-blue    { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.badge-green   { background: rgba(34,197,94,0.15);  color: var(--accent-green); }
.badge-red     { background: rgba(239,68,68,0.15);  color: var(--accent-red); }
.badge-amber   { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.badge-purple  { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.badge-muted   { background: rgba(124,124,150,0.12); color: var(--text-muted); }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.input::placeholder { color: var(--text-disabled); }
.input:disabled { opacity: 0.5; cursor: not-allowed; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7c96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.select option { background: var(--card); color: var(--text-primary); }
.textarea { resize: vertical; min-height: 80px; }

.input-group { position: relative; }
.input-group .input { padding-left: 40px; }
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-group .input-icon svg { width: 16px; height: 16px; }

/* Search input */
.search-wrapper { position: relative; }
.search-wrapper .input { padding-left: 40px; }
.search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrapper .search-icon svg { width: 15px; height: 15px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
thead { background: rgba(255,255,255,0.02); }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(37,37,56,0.5);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition-fast); cursor: pointer; }
tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ============================================================
   LIST ROWS (Apple Stocks style mobile)
   ============================================================ */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(37,37,56,0.5);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(255,255,255,0.025); }
.list-row:active { background: rgba(255,255,255,0.04); }

.list-row-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-row-icon svg { width: 18px; height: 18px; }
.list-row-icon-blue   { background: rgba(59,130,246,0.12);  color: var(--accent-blue); }
.list-row-icon-green  { background: rgba(34,197,94,0.12);   color: var(--accent-green); }
.list-row-icon-red    { background: rgba(239,68,68,0.12);   color: var(--accent-red); }
.list-row-icon-amber  { background: rgba(245,158,11,0.12);  color: var(--accent-amber); }
.list-row-icon-purple { background: rgba(168,85,247,0.12);  color: var(--accent-purple); }
.list-row-icon-muted  { background: rgba(124,124,150,0.08); color: var(--text-muted); }

.list-row-content { flex: 1; min-width: 0; }
.list-row-title {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.list-row-trailing { text-align: right; flex-shrink: 0; }
.list-row-value {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.list-row-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.list-row-chevron {
  color: var(--text-disabled);
  flex-shrink: 0;
}
.list-row-chevron svg { width: 14px; height: 14px; }

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.chip-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.chip:hover { border-color: var(--border-light); color: var(--text-primary); }
.chip.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.chip svg { width: 13px; height: 13px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(8px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-lg { max-width: 720px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.modal-close-btn svg { width: 16px; height: 16px; }
.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
}

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
  white-space: nowrap;
}
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}
.toast-info    { background: rgba(59,130,246,0.9);  color: #fff; }
.toast-success { background: rgba(34,197,94,0.9);   color: #fff; }
.toast-error   { background: rgba(239,68,68,0.9);   color: #fff; }
.toast-warning { background: rgba(245,158,11,0.9);  color: #000; }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(59,130,246,0.15);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  gap: var(--space-4);
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-disabled);
}
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 280px;
}

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}
.section-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ============================================================
   STATUS DOTS
   ============================================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot-green  { background: var(--accent-green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.status-dot-red    { background: var(--accent-red);   box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.status-dot-amber  { background: var(--accent-amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.status-dot-muted  { background: var(--text-disabled); }

/* ============================================================
   STOCK LEVEL
   ============================================================ */
.stock-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.stock-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.stock-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}
.stock-bar-fill-green  { background: var(--accent-green); }
.stock-bar-fill-amber  { background: var(--accent-amber); }
.stock-bar-fill-red    { background: var(--accent-red); }

/* ============================================================
   CONFIRM DIALOG
   ============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.confirm-dialog {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.confirm-icon svg { width: 24px; height: 24px; }
.confirm-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.confirm-message {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.confirm-actions { display: flex; gap: var(--space-3); }
.confirm-actions .btn { flex: 1; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: var(--space-5) 0;
}
.divider-label::before, .divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   PRODUCT CARD (POS)
   ============================================================ */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), var(--shadow);
  transform: translateY(-2px);
}
.product-card:active { transform: translateY(0); }
.product-card-cat {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-card-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
}
.product-card-stock {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.product-card.out-of-stock {
  opacity: 0.5;
  pointer-events: none;
}
.product-card-oos-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(239,68,68,0.2);
  color: var(--accent-red);
}

/* ============================================================
   CART ITEM
   ============================================================ */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(37,37,56,0.5);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.cart-qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: 700;
}
.cart-qty-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.cart-qty-display {
  min-width: 28px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.cart-item-total {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  min-width: 72px;
  text-align: right;
}
.cart-item-remove {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-disabled);
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.cart-item-remove:hover { color: var(--accent-red); background: rgba(239,68,68,0.08); }
.cart-item-remove svg { width: 14px; height: 14px; }

/* ============================================================
   PAYMENT METHOD
   ============================================================ */
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.payment-method-card:hover { border-color: var(--border-light); }
.payment-method-card.selected {
  border-color: var(--accent-blue);
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 1px var(--accent-blue);
}
.payment-method-card svg {
  width: 24px;
  height: 24px;
  margin: 0 auto var(--space-2);
  color: var(--text-muted);
}
.payment-method-card.selected svg { color: var(--accent-blue); }
.payment-method-card span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}
.payment-method-card.selected span { color: var(--accent-blue); }

/* ============================================================
   RECEIPT
   ============================================================ */
.receipt-preview {
  background: #fff;
  color: #111;
  border-radius: var(--radius);
  padding: var(--space-6);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.receipt-header { text-align: center; margin-bottom: 16px; }
.receipt-header h2 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.receipt-header p { font-size: 11px; color: #555; }
.receipt-divider { border: none; border-top: 1px dashed #ccc; margin: 12px 0; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { text-align: left; font-size: 10px; text-transform: uppercase; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.receipt-table td { padding: 4px 0; vertical-align: top; }
.receipt-table td:last-child { text-align: right; }
.receipt-totals { margin-top: 12px; }
.receipt-total-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.receipt-total-row.grand { font-weight: 700; font-size: 14px; border-top: 1px solid #111; padding-top: 8px; margin-top: 8px; }
.receipt-footer { text-align: center; margin-top: 16px; font-size: 11px; color: #555; }

/* ============================================================
   CHART CONTAINER
   ============================================================ */
.chart-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.chart-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}
canvas { display: block; }

/* ============================================================
   OFFLINE BANNER
   ============================================================ */
.offline-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(245,158,11,0.1);
  border-bottom: 1px solid rgba(245,158,11,0.2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-amber);
}
.offline-banner svg { width: 14px; height: 14px; }

/* ============================================================
   USER AVATAR
   ============================================================ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
