/* /account, the client portal (js/account.js). The flow look: dark ink, yellow, round buttons. */
.acct{position:relative;max-width:880px;margin:0 auto;padding:48px 20px 40px;min-height:calc(100dvh - 220px)}
.acct [hidden],.acct-dlg [hidden]{display:none!important}
.acct .muted{color:var(--text-3)}
.acct .small{font-size:14px}
.acct-loading{display:flex;align-items:center;gap:12px;color:var(--text-2);font-size:16px;padding:40px 0}
.acct-spin{width:18px;height:18px;border-radius:50%;border:2px solid var(--line-2);border-top-color:var(--yellow);animation:acct-spin .8s linear infinite}
@keyframes acct-spin{to{transform:rotate(1turn)}}

/* signed out */
.acct-out{display:grid;gap:28px;padding-top:12px}
.acct-out h1{font-size:clamp(36px,5.6vw,56px);font-weight:800;line-height:1.06;letter-spacing:-.035em;margin-bottom:16px;max-width:15em}
.acct-out .lede{color:var(--text-2);font-size:19px;line-height:1.6;max-width:32em}
.out-list{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px;max-width:640px}
.out-list li{display:flex;flex-direction:column;gap:3px;padding-top:14px;border-top:1px solid var(--line-2)}
.out-list b{font-family:Manrope,sans-serif;font-weight:800;font-size:18px;color:#fff}
.out-list span{color:var(--text-2);font-size:15.5px;line-height:1.5}
.out-small{color:var(--text-3);font-size:15px;line-height:1.6;margin-top:22px;max-width:36em}
.out-small a,.acct a:not(.btn):not(.link){color:var(--yellow-2);text-underline-offset:3px}
.out-error{color:#ff9b8a;font-weight:600;margin-top:14px}
.acct .btn-icon{font-weight:800}
button.btn{font-family:inherit}
.btn[disabled]{opacity:.55;pointer-events:none}

/* signed in */
.acct-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.who{display:flex;align-items:center;gap:14px;min-width:0}
.who img,.who-initial{width:52px;height:52px;border-radius:50%;flex:none;border:2px solid rgba(255,208,0,.5)}
.who-initial{display:grid;place-items:center;background:var(--ink-3);color:var(--yellow);font-weight:800;font-size:22px}
.who h1{font-size:clamp(26px,4vw,34px);font-weight:800;letter-spacing:-.025em;line-height:1.15}
.who p{font-size:15px;overflow-wrap:anywhere}
.acct-out-btn{min-height:46px;font-size:15px;padding-left:18px}
.acct-out-btn .btn-icon{width:34px;height:34px}
.acct-body{display:grid;gap:16px}
.sec{font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin:18px 0 -4px}

.alert{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px 12px 18px;border-radius:var(--r-inner);margin-bottom:12px;font-weight:600;font-size:15.5px}
.alert.tone-warn{background:rgba(255,208,0,.12);border:1px solid rgba(255,208,0,.45);color:#fff3c2}
.alert.tone-bad{background:rgba(255,95,70,.12);border:1px solid rgba(255,95,70,.5);color:#ffd2c9}

.card{position:relative;padding:22px 22px 18px;border-radius:var(--r-card);background:var(--ink-2);border:1px solid var(--line)}
.card.plan.tone-warn{border-color:rgba(255,208,0,.45)}
.card.plan.tone-bad{border-color:rgba(255,95,70,.5)}
.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.card h2{font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.card .eyebrow{color:var(--yellow);font-weight:700;font-size:14px;margin-bottom:4px}
.card>p,.card .card-top p{font-size:15.5px;line-height:1.55;margin-top:8px}
.pill{flex:none;display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}
.pill.ok{background:rgba(60,207,110,.14);color:#8ff0b0}
.pill.warn{background:rgba(255,208,0,.16);color:var(--yellow-2)}
.pill.bad{background:rgba(255,95,70,.16);color:#ffab9c}
.pill.mute{background:rgba(244,242,234,.08);color:var(--text-3)}
.year{height:6px;border-radius:6px;background:rgba(244,242,234,.08);margin:16px 0 4px;overflow:hidden}
.year i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,var(--yellow),#ffb000)}
.tone-bad .year i{background:#ff6a4f}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 0}
.facts dt{color:var(--text-3);font-size:13px;font-weight:600}
.facts dd{margin:2px 0 0;color:#fff;font-weight:700;font-size:16px}
.nowrap{white-space:nowrap}
.card.greetings.tone-warn{border-color:rgba(255,208,0,.45)}
.g-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;counter-reset:none}
.g-steps li{position:relative;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(244,242,234,.04);border:1px solid var(--line)}
.g-steps i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-style:normal;font-weight:800;font-size:14px;background:rgba(244,242,234,.08);color:var(--text-3)}
.g-steps b{display:block;color:#fff;font-size:15px}
.g-steps span{display:block;font-size:13px;line-height:1.4;margin-top:2px}
.g-steps li.done i{background:rgba(60,207,110,.18);color:#8ff0b0}
.g-steps li.now{border-color:rgba(255,208,0,.5);background:rgba(255,208,0,.06)}
.g-steps li.now i{background:var(--yellow);color:var(--on-yellow,#121419)}
.facts dd.mono{font-family:ui-monospace,Consolas,monospace;font-size:14px;overflow-wrap:anywhere}
.note{padding:10px 14px;border-radius:12px;background:rgba(244,242,234,.05);color:var(--text-2)}
.note.ok{background:rgba(60,207,110,.1);color:#bdf5d0}
.card-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:16px}
.card-acts .btn{min-height:48px;font-size:16px;padding-left:20px}
.card-acts .btn .btn-icon{width:36px;height:36px}
.chip{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:#fff;font:600 14px/1 inherit;cursor:pointer;transition:border-color .2s,background-color .2s}
.chip:hover{border-color:rgba(255,208,0,.6);background:rgba(255,208,0,.06)}
.chip.danger:hover{border-color:rgba(255,95,70,.6);background:rgba(255,95,70,.08)}
.more{margin-top:14px;border-top:1px solid var(--line)}
.more summary{cursor:pointer;padding:12px 0 2px;color:var(--text-2);font-weight:600;font-size:15px;list-style-position:outside}
.more summary:hover{color:#fff}
.devices,.pays,.lines,.ask-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.devices li{display:flex;gap:10px;align-items:center}
.devices code,.pay-id code{font-family:ui-monospace,Consolas,monospace;letter-spacing:.05em;color:#fff;background:rgba(244,242,234,.06);padding:4px 8px;border-radius:8px}
.pays li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.pays li:last-child{border-bottom:0}
.pays b{color:#fff}
.lines li{position:relative;padding-left:18px;color:var(--text-2);font-size:15.5px}
.lines li::before{content:"";position:absolute;left:2px;top:.6em;width:7px;height:7px;border-radius:2px;background:var(--yellow)}
.ask-list li{padding:12px 0;border-bottom:1px solid var(--line)}
.ask-list li:last-child{border-bottom:0}
.ask-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ask-head b{color:#fff}
.ask-list p{margin-top:4px;font-size:15px}
.answer{padding:10px 12px;border-radius:12px;background:rgba(255,208,0,.07);color:var(--text-2)}
.answer b{color:var(--yellow-2)}
.card.empty h2{margin-bottom:6px}

/* dialogs */
.acct-dlg{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line-2);border-radius:22px;background:var(--ink-2);color:var(--text);box-shadow:0 30px 80px -20px rgba(0,0,0,.7)}
.acct-dlg::backdrop{background:rgba(8,9,12,.66);backdrop-filter:blur(3px)}
.acct-dlg[open]{animation:dlg-in .35s var(--ease)}
@keyframes dlg-in{from{opacity:0;transform:translateY(14px) scale(.98)}}
.dlg-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 0}
.dlg-top h2{font-size:21px;font-weight:800;letter-spacing:-.02em}
.dlg-x{width:40px;height:40px;border-radius:50%;border:1px solid var(--line-2);background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.dlg-body{display:grid;gap:14px;padding:16px 20px 20px}
.dlg-body h3{font-size:16px;font-weight:800;color:#fff;margin-bottom:6px}
.dlg-body p{font-size:15px;line-height:1.55}
.dlg-acts{display:flex;justify-content:flex-end;align-items:center;gap:20px}
.pay-how,.pay-form{display:grid;gap:10px}
.pay-form{padding-top:14px;border-top:1px solid var(--line)}
.pay-id{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pay-id code{font-size:16px;padding:8px 12px}
.pay-upi{justify-self:start}
.pay-scan{display:flex;align-items:center;gap:16px}
.pay-qr{flex:none;width:168px;height:168px;padding:6px;border-radius:14px;background:#fff}
.pay-qr svg{display:block;width:100%;height:100%}
@media (max-width:420px){.pay-scan{flex-direction:column;align-items:flex-start}}
.pay-bank summary{cursor:pointer;color:var(--text-2);font-weight:600;font-size:15px}
.pay-bank pre{white-space:pre-wrap;font:15px/1.5 ui-monospace,Consolas,monospace;color:#fff;margin:8px 0 0}
.fld{display:grid;gap:6px}
.fld span{color:var(--text-2);font-size:14px;font-weight:600}
.fld input,.fld select,.fld textarea{width:100%;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid var(--line-2);background:var(--ink);color:#fff;font:16px/1.4 inherit}
.fld textarea{resize:vertical}
.fld :is(input,select,textarea):focus-visible{outline:2px solid var(--yellow);outline-offset:1px;border-color:transparent}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dlg-body .btn{justify-self:start;min-height:50px;font-size:16px}
.dlg-body .btn .btn-icon{width:38px;height:38px}
.acct-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 32px);padding:12px 18px;border-radius:14px;background:#fff;color:var(--on-yellow);font-weight:700;font-size:15px;box-shadow:0 18px 40px -12px rgba(0,0,0,.6);animation:dlg-in .3s var(--ease);transition:opacity .5s}
.acct-toast.out{opacity:0}

/* the printed receipt */
.receipt-sheet{display:none}
@media print{
  body.printing>*:not(.receipt-sheet){display:none!important}
  body.printing{background:#fff!important}
  body.printing .receipt-sheet{display:block;color:#14171d;font:14px/1.5 Inter,Arial,sans-serif}
  .rc{max-width:640px;margin:0 auto;padding:24px}
  .rc-top{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:3px solid #ffd000;margin-bottom:18px}
  .rc-top img{height:44px;width:auto}
  .rc-logo{font-size:26px}
  .rc-no{text-align:right;display:grid}
  .rc-no b{font-size:20px}
  .rc table{width:100%;border-collapse:collapse}
  .rc th,.rc td{text-align:left;padding:10px 0;border-bottom:1px solid #ddd}
  .rc th{width:40%;color:#555;font-weight:600}
  .rc-foot{margin-top:26px;color:#666;font-size:12px}
}

@media (max-width:640px){
  .acct{padding-top:30px}
  .out-list{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr 1fr}
  .facts div:last-child{grid-column:1/-1}
  .g-steps{grid-template-columns:1fr}
  .card{padding:18px 16px 16px}
  .two{grid-template-columns:1fr}
  .acct-out-btn{width:100%;justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){.acct-dlg[open],.acct-toast,.acct-spin{animation:none}}
