/* TIVEZ PRO customer account: page-specific additions on top of /css/tz-silver.css («نقره‌ی تیوز»).
   Tokens, header, dock, drawer, buttons, .acc-in, .otp, .member, .stats, .menu-l, .tk, .nt come from tz-silver.css. */

.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;top:-60px;inset-inline-start:12px;z-index:100;background:var(--black);color:#fff;padding:10px 14px;border-radius:12px;font-weight:600}
.skip:focus{top:10px}
[hidden]{display:none!important}

main.acc{max-width:620px;margin:0 auto;padding-top:18px}
#accBody{outline:none;display:grid;align-content:start}
#accBody>*{min-width:0}

/* ---------- logged out ---------- */
.acc-in .top h2{flex:1;min-width:0}
.acc-p{margin:0;font-size:13.5px;line-height:1.9;color:var(--on-black-2)}
.acc-p .ph{color:#fff;font-weight:600;white-space:nowrap}
.acc-in .lform{display:grid;gap:12px}
.acc-in .fld{margin:0}
.acc-in .fld input{text-align:right;font-size:17px;letter-spacing:.6px}
.acc-in .fld input::placeholder{color:#A3A8B0;letter-spacing:.4px}
.acc-in .fld input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--sale)}
.acc-in .btn-chrome{font-size:16px}
.acc-in .muted{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;min-height:24px}
.acc-in .muted .tm{direction:ltr;font-weight:600;unicode-bidi:isolate;color:#fff;display:inline-block;min-width:34px;text-align:center}
.acc-in .muted .sep{opacity:.5}
.acc-in .muted button{min-height:32px;padding:0 4px}
.ferr{margin:0;min-height:0;font-size:13px;font-weight:600;line-height:1.7;color:#FF8E7C}
.ferr:empty{display:none}
.otp-f{border:0;margin:0;padding:0;min-width:0}
.otp{gap:6px}
.otp input{caret-color:var(--gold)}
.otp input[readonly]{opacity:.7}
.otp.shake{animation:shake .38s var(--ease)}
@keyframes shake{0%,100%{transform:none}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
#otpForm{display:grid;gap:12px}
.guest{margin-top:12px;text-align:center;justify-items:center;padding:16px}
.guest b{font-size:15px}
.guest small{line-height:1.8;max-width:420px}
.guest .btn{margin-top:8px;height:48px}

/* ---------- spinner + skeletons ---------- */
.spin{width:18px;height:18px;border-radius:50%;border:2px solid currentColor;border-inline-end-color:transparent;animation:spin .7s linear infinite;flex:none}
.spin.dark{color:var(--graphite)}
@keyframes spin{to{transform:rotate(360deg)}}
.sk{border-radius:var(--r-m);background:linear-gradient(100deg,rgba(255,255,255,.55) 20%,rgba(255,255,255,.95) 40%,rgba(255,255,255,.55) 60%) 0 0/300% 100%,var(--silver-hi);box-shadow:var(--sh-card);animation:sk 1.3s linear infinite}
@keyframes sk{from{background-position:100% 0}to{background-position:-200% 0}}
.sk-member{height:142px;border-radius:22px;background:linear-gradient(100deg,#1a1b1f 20%,#2c2e33 40%,#1a1b1f 60%) 0 0/300% 100%;box-shadow:var(--sh-press)}
.sk-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 22px}
.sk-row .sk{height:64px}
.sk-ord{height:150px;margin-bottom:8px}
.sk-tk{height:62px}

/* ---------- empty / error ---------- */
.state{display:grid;justify-items:center;gap:6px;text-align:center;padding:24px 18px 18px;border-radius:var(--r-m);background:var(--card);box-shadow:var(--sh-card)}
.state b{font-size:15px;font-weight:700}
.state small{font-size:13px;color:var(--steel);line-height:1.8;max-width:400px}
.state .btn{margin-top:10px;height:48px}
.state-ic{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:var(--gloss);box-shadow:var(--sh-press);color:var(--gold-hi);margin-bottom:4px}
.state.err .state-ic{background:rgba(210,65,45,.1);box-shadow:none;color:var(--sale)}
.state.slim{padding:18px 16px}
.out-lnk{display:block;margin:14px auto 0;color:var(--graphite);font-size:13px;font-weight:600;min-height:40px}

/* ---------- logged in: member + stats ---------- */
.member .who{flex:1;min-width:0}
.member .who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member .who small.lat{text-align:right;letter-spacing:.6px}
.member .bell{flex:none}
.member .bell .ic{width:21px;height:21px}
.stats a{background:var(--card);border-radius:var(--r-m);box-shadow:var(--sh-card);padding:12px 6px;display:grid;justify-items:center;gap:0;transition:transform .12s var(--ease)}
.stats a:active{transform:scale(.97)}
.sub-h a{font-size:13px;color:var(--graphite);font-weight:600;min-height:32px;display:inline-flex;align-items:center}

/* ---------- order cards ---------- */
.ord{background:var(--card);border-radius:var(--r-m);box-shadow:var(--sh-card);padding:14px;display:grid;gap:10px;min-width:0}
.ord-h{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center}
.ord-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--gloss);box-shadow:var(--sh-press)}
.ord-ic .ic{width:20px;height:20px;stroke:url(#cg)}
.ord-t{min-width:0}
.ord-t b{display:block;font-size:14.5px;font-weight:600;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ord-t small{display:block;font-size:12px;color:var(--steel);line-height:1.6}
.ord-t small .lat{white-space:nowrap}
.ord-t small .lat{letter-spacing:.4px}
.ord .chip{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:24px}
.chip.st-ok{background:rgba(23,149,92,.12);color:var(--ok)}
.chip.st-wait{background:linear-gradient(180deg,#FFF6DD,#F6E6BA);color:var(--gold-ink);box-shadow:inset 0 0 0 1px rgba(212,166,70,.35)}
.chip.st-run{background:var(--black);color:var(--on-black)}
.chip.st-no{background:rgba(210,65,45,.1);color:var(--sale)}
.ord-m{display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--rule)}
.money.gold{font-size:17px;color:var(--gold-ink)}
.ord-k{font-size:12.5px;color:var(--graphite);display:flex;flex-wrap:wrap;gap:2px 6px}
.ord-k i{font-style:normal;color:var(--steel)}
.ord-n{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--graphite);background:var(--silver-hi);border-radius:12px;padding:8px 10px}
.ord-n .ic{width:17px;height:17px}
.ord-n .lat{font-weight:600;color:var(--ink)}
.ord-n.warn{background:rgba(210,65,45,.08);color:var(--sale);font-weight:600}
.ord-a{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.btn.sm{height:40px;padding:0 13px;border-radius:13px;font-size:13px;gap:6px}
.btn.sm .ic{width:17px;height:17px}
.btn.sm.grow{flex:1}
.lnk{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 6px;margin-inline-start:auto;font-size:13px;font-weight:600;color:var(--graphite)}
.lnk .dn{width:16px;height:16px;transition:transform .2s var(--ease)}
.lnk[aria-expanded="true"] .dn{transform:rotate(180deg)}
.ord-ev .tl{margin:0;box-shadow:none;background:var(--silver-hi);padding:14px}
.ord-ev .tl small{display:block}
.ord-ev .tl .ev-m{color:var(--graphite);font-size:12.5px;line-height:1.7}
.ev-load,.ev-empty,.ev-err{display:flex;align-items:center;gap:8px;margin:0;padding:12px;border-radius:12px;background:var(--silver-hi);font-size:13px;color:var(--graphite)}
.ev-err{color:var(--sale);justify-content:space-between}
.ev-err .lnk{margin:0}

/* ---------- sub screens ---------- */
.pv-back{width:fit-content;margin-bottom:6px}
.pv-back .ic{width:18px;height:18px}
.step-t{font-size:22px}
.nt{align-items:flex-start}
.nt-b{min-width:0}
.nt time{display:block;font-size:11.5px;color:var(--steel);margin-top:2px}
a.tk{transition:transform .12s var(--ease)}
a.tk:active{transform:scale(.985)}
.tk .r b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk .chip{flex:none}
.tkf{margin-top:22px;display:grid;gap:0;padding:16px}
.tkf h3{margin:0 0 12px;font-size:17px}
.fld-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.fld select{height:54px;border-radius:16px;border:0;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23757B85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center/18px;box-shadow:var(--sh-card),inset 0 0 0 1px var(--rule);padding:0 14px 0 38px;font:inherit;font-size:14.5px;color:var(--ink);-webkit-appearance:none;appearance:none;min-width:0;width:100%}
.fld select:focus{outline:none;box-shadow:var(--sh-card),inset 0 0 0 2px var(--ink)}
.fld input,.fld textarea{width:100%;min-width:0}
.tkf .upload{cursor:pointer;margin-bottom:12px}
.tkf .upload small{color:var(--steel);font-weight:500}
.tkf .upload .ic{width:20px;height:20px}
.tkf .ferr,.reply .ferr{color:var(--sale);margin:0 0 10px}
.imgs{display:flex;flex-wrap:wrap;gap:8px}
.imgs:not(:empty){margin-bottom:12px}
.imgs .th{position:relative;width:64px;height:64px;border-radius:14px;overflow:hidden;box-shadow:var(--sh-card)}
.imgs .th img{width:100%;height:100%;object-fit:cover}
.imgs .th button{position:absolute;top:3px;inset-inline-end:3px;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:rgba(13,14,16,.75);color:#fff}
.imgs .th button .ic{width:14px;height:14px;stroke-width:2.2}

.tkh{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tkh .step-t{margin:0;font-size:20px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.tkh .chip{flex:none;margin-top:6px}
.thread{display:grid;gap:12px;margin:4px 0 16px}
.msg{display:flex;flex-direction:column;max-width:86%}
.msg.me{justify-self:end;align-items:flex-end}
.msg.them{justify-self:start;align-items:flex-start}
.bub{padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.85;overflow-wrap:anywhere}
.bub p{margin:0;white-space:pre-wrap}
.msg.me .bub{background:var(--gloss);color:var(--on-black);box-shadow:var(--sh-press);border-end-end-radius:6px}
.msg.them .bub{background:var(--card);color:var(--ink);box-shadow:var(--sh-card);border-end-start-radius:6px}
.msg small{font-size:11.5px;color:var(--steel);margin-top:4px;padding:0 4px}
.bimgs{display:grid;grid-template-columns:repeat(3,minmax(0,72px));gap:6px}
.bub p+.bimgs{margin-top:8px}
.bimgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.reply{padding:12px;display:grid;gap:0}
.reply .fld{margin-bottom:10px}
.reply textarea{min-height:84px}
.rp-a{display:flex;gap:8px}
.rp-a label{cursor:pointer}

/* ---------- desktop ---------- */
@media (min-width:960px){
  main.acc{padding-top:30px}
  .ord{padding:16px 18px}
  .toast{bottom:28px}
}
@media (max-width:370px){
  .otp{gap:5px}
  .otp input{height:52px;font-size:22px}
  .ord-a .btn.sm{padding:0 11px}
  .fld-2{grid-template-columns:1fr;gap:0}
}

/* ---------- installments (اقساط) inside an order card ---------- */
.ins{display:grid;gap:10px;padding:12px;border-radius:16px;background:var(--silver-hi);min-width:0}
.ins-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ins-h b{font-size:14.5px;font-weight:700}
.ins-h small{font-size:12px;color:var(--steel)}
.ins .prog{margin:0}
.ins-p{margin:0;font-size:13px;line-height:1.85;color:var(--graphite)}
.ins-sum{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;font-size:12px;color:var(--steel)}
.ins-sum b{color:var(--ink);font-weight:600}
.ins-next{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:14px;background:var(--card);box-shadow:var(--sh-card)}
.ins-next>div{display:grid;gap:2px;min-width:0}
.ins-next small{font-size:12px;color:var(--steel);line-height:1.6}
.ins-next .money{font-size:18px}
.ins-next .dd b{font-weight:600;color:var(--graphite)}
.ins-next.ov{box-shadow:var(--sh-card),inset 0 0 0 1.5px rgba(210,65,45,.45)}
.ins-next.ov>div>small:first-child,.ins-next.ov .dd b{color:var(--sale);font-weight:600}
.ins-next .btn{flex:none}
.ins-done{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(23,149,92,.1);color:var(--ok);font-size:13px;font-weight:600;line-height:1.7}
.ins-done .ic{width:18px;height:18px;flex:none;margin-top:2px;stroke-width:2.2}
.ins-tg{margin:0;justify-self:start;padding:0 2px}
.ins-l{list-style:none;margin:0;padding:4px 12px;display:grid;background:var(--card);border-radius:14px;box-shadow:var(--sh-card)}
.ins-l li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;grid-template-areas:"sq dt ch" "sq am pay";gap:4px 10px;align-items:center;padding:11px 0}
.ins-l .chip{grid-area:ch;justify-self:end;height:22px;font-size:11px;padding:0 7px;max-width:none}
.ins-l .am{grid-area:am;min-width:0}
.ins-l .am .money{font-size:14px;white-space:nowrap}
.ins-l .pay{grid-area:pay;justify-self:end;min-height:30px;margin:0;padding:0 2px;font-size:12.5px;color:var(--ink)}
.ins-l .sq{align-self:start;margin-top:2px}
.ins-l li+li{border-top:1px solid var(--rule)}
.ins-l .sq{grid-area:sq;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--silver);color:var(--graphite)}
.ins-l li.paid .sq{background:var(--gloss);color:var(--gold-hi)}
.ins-l li.overdue .sq{background:rgba(210,65,45,.12);color:var(--sale)}
.ins-l .dt{grid-area:dt;min-width:0}
.ins-l .dt b{display:block;font-size:13.5px;font-weight:600}
.ins-l .dt small{display:block;font-size:11.5px;color:var(--steel)}
.ins-l li.overdue .dt small{color:var(--sale)}
.ins-pay{display:grid;gap:12px;padding:14px;border-radius:16px;background:var(--card);box-shadow:var(--sh-card)}
.ins-ph{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ins-ph b{font-size:15px}
.ins-ph .lnk{margin:0}
.ins-pay .code{margin:0;box-shadow:none;background:var(--silver-hi);gap:10px}
.ins-pay .code>div{min-width:0}
.ins-pay .code b{font-size:15px;overflow-wrap:anywhere}
.ins-pay .howto{margin:0}
.ins-pay .metal .num{font-size:19px;letter-spacing:1px}
.ins-pay .metal .num .lat{white-space:nowrap;direction:ltr}
@media (max-width:400px){.ins-pay .metal .num{font-size:16px;letter-spacing:.5px}}
.ins-pay .upload{cursor:pointer}
.ins-pay .imgs:not(:empty){margin:0}
.ins-pay .ferr{color:var(--sale)}

/* ---------- verified review form ---------- */
.rvw{display:grid;gap:8px}
.rvw-i{display:grid;gap:10px}
.rvw-i>.btn{width:100%}
.rvw-i .st{width:17px;height:17px;color:var(--gold)}
.rvw-d{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--graphite);padding:8px 10px;border-radius:12px;background:var(--silver-hi)}
.rvw-d b{font-weight:600;color:var(--ink)}
.stars .bi.off{opacity:.22}
.rvw-f{padding:14px;border-radius:16px;background:var(--silver-hi)}
.rvw-f form{display:grid;gap:0}
.rvw-q{margin:0 0 8px;font-size:13.5px;font-weight:600;line-height:1.7}
.rate{display:flex;align-items:center;gap:4px;margin-bottom:14px}
.rate button{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--card);box-shadow:var(--sh-card);color:var(--silver-lo)}
.rate button .bi{width:24px;height:24px}
.rate button.on{color:var(--gold)}
.rate button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.rate-l{margin-inline-start:auto;font-size:13px;font-weight:600;color:var(--gold-ink)}
.rvw-f .fld small{font-weight:500;color:var(--steel)}
.rvw-f .fld .cnt{justify-self:end;font-size:11.5px}
.rvw-f textarea{min-height:96px}
.rvw-n{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px;font-size:12px;line-height:1.75;color:var(--steel)}
.rvw-n .ic{width:16px;height:16px;flex:none;margin-top:3px}
.rvw-f .ferr{color:var(--sale);margin:0 0 10px}
@media (max-width:370px){
  .ins-next{flex-direction:column;align-items:stretch}
  .ins-next .btn{width:100%}
  .rate button{width:38px;height:38px}
}

/* refund request form */
#rfForm{display:grid;gap:14px;padding:18px;border-radius:20px;background:var(--card,#fff)}
#rfForm h3{margin:0 0 2px;font-size:18px}
#rfForm textarea{min-height:92px;padding:12px 14px;border-radius:16px;border:0;background:#f4f5f7;font:inherit;resize:vertical}
.rf-note{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:#eef0f3;line-height:1.9}
.rf-note b{font-size:15px}.rf-note small{color:#5b6573;font-size:13px}
#rfForm .err{margin:0;color:var(--sale,#c0392b);font-size:14px;line-height:1.8}
