/* ── Customer account (/account) — builds on nimu.css tokens ── */
.acct { padding: 140px 24px 90px; min-height: 80vh; }
.acct-wrap { max-width: 1040px; margin: 0 auto; }
.acct-narrow { max-width: 460px; margin: 0 auto; }

.acct-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.acct-card + .acct-card { margin-top: 20px; }
.acct-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }

.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-head h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.acct-head p { color: var(--text2); font-size: .9rem; margin-top: 6px; }
.acct-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: .85rem; font-weight: 600; margin-bottom: 14px; text-decoration: none; }
.acct-back:hover { color: var(--primary); }

/* Auth forms */
.acct-auth h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.acct-auth .acct-sub { color: var(--text2); font-size: .88rem; text-align: center; margin-bottom: 26px; }
.acct-field { margin-bottom: 16px; }
.acct-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; }
.acct-field input[type="email"], .acct-field input[type="password"], .acct-field input[type="text"] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--input-border, var(--border)); background: var(--input-bg, var(--bg2)); color: var(--text); font-family: inherit; font-size: .9rem; }
.acct-field input:focus { outline: none; border-color: var(--primary); }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .84rem; margin-bottom: 20px; }
.acct-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); }
.acct-row a, .acct-links a { color: var(--primary); font-weight: 700; text-decoration: none; }
.acct-links { text-align: center; font-size: .84rem; color: var(--text2); margin-top: 20px; }
.acct-auth .btn-primary { width: 100%; justify-content: center; }

.acct-alert { border-radius: 10px; padding: 12px 16px; font-size: .84rem; margin-bottom: 18px; }
.acct-alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; }
.acct-alert-ok { background: rgba(0,200,83,.1); border: 1px solid rgba(0,200,83,.3); color: #00a844; }

/* Status badge */
.acct-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: rgba(108,71,255,.12); color: var(--primary); }
.acct-badge.is-warn { background: rgba(245,158,11,.14); color: #d97706; }
.acct-badge.is-done { background: rgba(0,200,83,.13); color: #00a844; }
.acct-badge.is-muted { background: var(--bg2); color: var(--text2); }

/* Orders list */
.acct-orders { display: grid; gap: 16px; }
.acct-order { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.acct-order:hover { border-color: rgba(108,71,255,.4); transform: translateY(-2px); }
.acct-order-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.acct-order h3 { font-size: 1.05rem; font-weight: 800; }
.acct-order-meta { color: var(--text2); font-size: .82rem; }
.acct-order-money { display: flex; gap: 22px; text-align: right; }
.acct-order-money span { display: block; font-size: .72rem; color: var(--text2); text-transform: uppercase; letter-spacing: .6px; }
.acct-order-money strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.acct-order-money .is-due strong { color: #d97706; }

.acct-empty { text-align: center; padding: 50px 24px; }
.acct-empty i { font-size: 2.4rem; color: var(--primary); margin-bottom: 14px; }
.acct-empty p { color: var(--text2); margin: 8px 0 22px; }

/* Order detail */
.acct-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.acct-money { display: grid; gap: 10px; }
.acct-money-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.acct-money-row span { color: var(--text2); }
.acct-money-row strong { font-variant-numeric: tabular-nums; }
.acct-money-row.is-total { border-top: 1px solid var(--border2); padding-top: 12px; margin-top: 4px; font-size: 1rem; }
.acct-money-row.is-due strong { color: #d97706; }
.acct-progress { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 14px 0 4px; }
.acct-progress > div { height: 100%; background: var(--grad); border-radius: 999px; }
.acct-pay { margin-top: 20px; }
.acct-pay .btn-primary { width: 100%; justify-content: center; }
.acct-pay-note { color: var(--text2); font-size: .76rem; margin-top: 10px; text-align: center; }
.acct-pay .pay-options { grid-template-columns: 1fr; margin-bottom: 14px; }

/* Status timeline */
.acct-steps { list-style: none; margin: 0; padding: 0; }
.acct-step { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.acct-step:last-child { padding-bottom: 0; }
.acct-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border2); }
.acct-step:last-child::before { display: none; }
.acct-step.is-done::before { background: var(--primary); }
.acct-step-dot { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--bg2); color: var(--text2); border: 2px solid var(--border2); position: relative; z-index: 1; }
.acct-step.is-done .acct-step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.acct-step.is-current .acct-step-dot { background: var(--card); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(108,71,255,.15); }
.acct-step-label { padding-top: 4px; font-size: .9rem; font-weight: 600; color: var(--text2); }
.acct-step.is-done .acct-step-label, .acct-step.is-current .acct-step-label { color: var(--text); }
.acct-step.is-current .acct-step-label { font-weight: 800; }
.acct-step-label small { display: block; font-weight: 500; color: var(--primary); font-size: .76rem; margin-top: 2px; }

/* Payment history */
.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.acct-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text2); font-weight: 700; padding: 0 12px 10px 0; border-bottom: 1px solid var(--border2); }
.acct-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.acct-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--text2); }

.acct-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.acct-items li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.acct-items li span:last-child { font-variant-numeric: tabular-nums; color: var(--text2); }

@media (max-width: 860px) {
  .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acct { padding: 120px 16px 70px; }
  .acct-card { padding: 22px 18px; }
  .acct-head h1 { font-size: 1.6rem; }
  .acct-order { grid-template-columns: 1fr; padding: 18px; }
  .acct-order-money { text-align: left; justify-content: space-between; }
}

/* Payment-option cards (same as the checkout in solutions.css) */
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pay-option { position: relative; display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option-body { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
.pay-option:hover .pay-option-body { border-color: rgba(108,71,255,.35); }
.pay-option input:checked + .pay-option-body { border-color: var(--primary); background: rgba(108,71,255,.08); box-shadow: 0 0 0 3px rgba(108,71,255,.15); }
.pay-option input:focus-visible + .pay-option-body { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-option-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text2); }
.pay-option-amount { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.pay-option-sub { font-size: .74rem; color: var(--text2); }

/* Payment request page (/pay/{token}) */
.pay-request { text-align: center; }
.pay-request-amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -.5px; margin: 6px 0 14px; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-request-desc { color: var(--text2); font-size: .9rem; line-height: 1.6; margin-bottom: 22px; white-space: pre-line; }
.pay-request .acct-pay-note { margin-top: 12px; }
