* { box-sizing: border-box; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #0f172a; color: #e2e8f0; padding-bottom: 90px; }
.container { max-width: 560px; margin: 0 auto; padding: 16px; }
h1, h2, h3 { font-weight: 600; margin: 0 0 8px 0; }
.hidden { display: none !important; }
.error { color: #fca5a5; font-size: 14px; }
.muted { color: #94a3b8; font-size: 13px; }

header.top {
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid #1e293b;
  position: sticky; top: 0; background: #0f172a; z-index: 5;
}
header.top .table-pill {
  display: inline-block; background: #1e293b; color: #86efac;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-top: 4px;
}

.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0 16px; }
.category-tabs button {
  flex: none; background: #1e293b; color: #e2e8f0; border: 1px solid #334155;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.category-tabs button.active { background: #22c55e; color: #06210f; border-color: #22c55e; font-weight: 600; }

.item-card {
  display: flex; gap: 12px; background: #1e293b; border-radius: 10px;
  padding: 12px; margin: 10px 16px;
}
.item-card img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #334155; flex: none; }
.item-info { flex: 1; min-width: 0; }
.item-info h3 { font-size: 15px; }
.item-info p.desc { font-size: 12px; color: #94a3b8; margin: 2px 0 6px 0; }
.item-info .price { font-weight: 600; color: #86efac; font-size: 14px; }
.item-actions { display: flex; align-items: center; justify-content: flex-end; }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: #334155;
  color: #e2e8f0; font-size: 16px; cursor: pointer; line-height: 1;
}
.qty-stepper button.add-btn { width: auto; height: auto; border-radius: 6px; padding: 6px 14px; background: #22c55e; color: #06210f; font-weight: 600; }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 600; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #22c55e; color: #06210f;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; cursor: pointer; z-index: 10;
}

.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: #0f172a; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 20px 16px 24px 16px;
}
.sheet-handle { width: 40px; height: 4px; background: #334155; border-radius: 2px; margin: 0 auto 14px auto; }

.cart-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1e293b; gap: 10px; }
.cart-line .name { flex: 1; font-size: 14px; }
.cart-line .line-total { font-size: 13px; color: #86efac; min-width: 70px; text-align: right; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin: 6px 0; }
.summary-row.total { font-size: 17px; font-weight: 700; margin-top: 10px; border-top: 1px solid #334155; padding-top: 10px; }

input, textarea, select {
  width: 100%; padding: 11px; margin: 6px 0; border-radius: 8px; border: 1px solid #334155;
  background: #1e293b; color: #e2e8f0; font-size: 14px;
}
label.field-label { display: block; font-size: 13px; color: #94a3b8; margin-top: 12px; }

.pay-option {
  display: flex; align-items: center; gap: 10px; background: #1e293b; border: 1px solid #334155;
  border-radius: 8px; padding: 10px 12px; margin: 6px 0; cursor: pointer;
}
.pay-option.selected { border-color: #22c55e; }
.pay-option input { width: auto; margin: 0; }

.currency-toggle { display: flex; gap: 8px; margin: 6px 0 4px; }
.currency-btn {
  flex: 1; background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 10px;
  color: #e2e8f0; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
}
.currency-btn.selected { border-color: #22c55e; background: #14532d; color: #bbf7d0; }
.currency-btn .sub { display: block; font-size: 11px; font-weight: 400; color: #94a3b8; margin-top: 2px; }
.currency-btn.selected .sub { color: #86efac; }
.fx-note { font-size: 11px; color: #64748b; margin: 2px 0 0; }
.momo-details { background: #14532d; color: #bbf7d0; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }

button.primary {
  width: 100%; background: #22c55e; color: #06210f; border: none; padding: 14px;
  border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer; margin-top: 14px;
}
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary {
  width: 100%; background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 12px;
  border-radius: 10px; font-weight: 600; cursor: pointer; margin-top: 8px;
}

.status-card { text-align: center; padding: 30px 16px; }
.status-card .big-icon { font-size: 48px; margin-bottom: 10px; }
.status-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700;
  background: #1e293b; color: #86efac; margin: 10px 0;
}
.order-items-list { text-align: left; background: #1e293b; border-radius: 10px; padding: 14px; margin-top: 16px; }
.order-items-list .row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }

.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
