.account-page { background: var(--paper); }
.account-main { max-width: 1080px; margin: 0 auto; padding: 2rem clamp(18px, 4vw, 56px) 4rem; }
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; }
.account-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 2fr 1fr; } }
.span-2 { grid-column: 1 / -1; }
@media (min-width: 900px) { .span-2 { grid-column: 1; } }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-row:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 0.875rem; }
.hidden { display: none !important; }
.paid-tag { color: #065f46; font-weight: 800; font-size: 12px; text-transform: uppercase; }
.status-pill { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.status-pill.paid, .status-pill.delivered, .status-pill.payment_confirmed { background: #d1fae5; color: #065f46; }
.status-pill.pending, .status-pill.pending_payment, .status-pill.payment_submitted { background: #fef3c7; color: #92400e; }
.status-pill.in_production, .status-pill.shipped, .status-pill.accepted { background: #dbeafe; color: #1e40af; }

.auth-card label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.auth-card input, .auth-card select { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.auth-tab { padding: 8px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; font-weight: 800; cursor: pointer; }
.auth-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.text-button { background: none; border: 0; color: var(--copper); font-weight: 800; cursor: pointer; padding: 0; }
.form-status { margin-top: 12px; font-size: 14px; }
.form-status a { color: var(--copper); font-weight: 800; }
.button.small { padding: 8px 14px; font-size: 13px; }

.order-card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 12px; background: var(--paper); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.order-total { font-size: 1.15rem; }
.order-model { margin: 0 0 8px; font-size: 14px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); margin: 10px 0 12px; }
.config-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.config-chip { font-size: 11px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.config-chip em { font-style: normal; color: var(--muted); margin-right: 4px; }
.cart-build-card { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 10px; background: var(--paper); }
.cart-build-head { display: flex; justify-content: space-between; gap: 8px; }
.cart-color { margin: 6px 0; font-size: 13px; }
.cart-total { margin: 12px 0 4px; font-size: 1.1rem; }
.empty-state { padding: 1.5rem; text-align: center; background: var(--paper); border-radius: 8px; border: 1px dashed var(--line); }

.pay-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.pay-method-grid.compact { grid-template-columns: 1fr; }
@media (min-width: 520px) { .pay-method-grid.compact { grid-template-columns: repeat(2, 1fr); } }
.pay-method-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.pay-method-btn.active { border-color: var(--copper); background: #fffaf5; }
.pay-method-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pay-method-btn .ico { font-size: 16px; }

.payment-help { margin-top: 16px; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.payment-help p { margin: 6px 0 10px; color: var(--muted); }
.payment-help-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-page .button.secondary.account-secondary,
.account-page .payment-help .button.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.account-page .button.secondary.account-secondary:hover,
.account-page .payment-help .button.secondary:hover {
  background: var(--paper);
  border-color: var(--ink);
}
.account-page .button.secondary.danger-outline {
  color: #b91c1c;
  border-color: #fecaca;
}
.account-page .button.secondary.danger-outline:hover {
  background: #fef2f2;
}
.cart-build-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cart-item-pay { margin-top: 10px; }
.cart-note { margin: 12px 0 8px; font-size: 13px; }
.order-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-card.cancelled { opacity: 0.65; }
.status-pill.cancelled { background: #f1f5f9; color: #64748b; }
.config-lines li span:last-child { color: var(--ink); }

.order-detail h2 { margin: 0.5rem 0 1rem; }
.detail-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-block { padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.detail-block h3 { margin: 0 0 0.75rem; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.config-lines { margin: 0; padding: 0; list-style: none; }
.config-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.config-lines li:last-child { border-bottom: 0; font-weight: 800; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; margin-top: 5px; flex-shrink: 0; }
.timeline li.done .dot { background: #10b981; }
.timeline li.done { color: var(--ink); }
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-bar span { display: block; height: 100%; background: var(--copper); border-radius: 999px; }
.wire-box { font-size: 13px; line-height: 1.6; }
.wire-box div { display: flex; justify-content: space-between; gap: 1rem; padding: 4px 0; }
.upload-zone { margin-top: 12px; padding: 1rem; border: 2px dashed var(--line); border-radius: 6px; text-align: center; }
.upload-zone input { display: none; }
.proof-list { margin-top: 10px; font-size: 13px; }
.proof-list a { color: var(--copper); }
.back-btn { margin-bottom: 1rem; }
