/* Contra8 — касса (cashier.js). Лист снизу внутри колонки-телефона, компактный масштаб, белый/чёрный/золотой. */
.csh .csh__dlg{max-height:min(92dvh,760px);padding:16px 16px calc(18px + env(safe-area-inset-bottom));gap:12px}
.csh__head{display:flex;align-items:center;gap:10px;margin:0}
.csh__head h3{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csh__head .icon-btn{width:36px;height:36px;border-radius:11px}
.csh__head .icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.csh__back[hidden]{display:none}
.csh__tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:13px;background:var(--surface-2)}
.csh__tabs button{height:36px;border-radius:10px;font-size:13px;font-weight:700;color:var(--muted);transition:background .2s,color .2s}
.csh__tabs button.on{background:var(--white);color:var(--ink)}
.csh__body{flex:1;min-height:200px;overflow-y:auto;overscroll-behavior:contain;margin:0 -16px;padding:2px 16px 4px;display:flex;flex-direction:column;gap:12px}

/* состояния: загрузка, ошибка */
.csh-state{display:grid;justify-items:center;gap:12px;padding:36px 12px;text-align:center;color:var(--muted);font-size:var(--fs-body)}
.csh-state--err p{margin:0;color:var(--kerr,#ff8a80)}
.csh-spin{width:22px;height:22px;border-radius:50%;border:2.5px solid var(--line-2);border-top-color:var(--g2);animation:csh-spin .8s linear infinite}
@keyframes csh-spin{to{transform:rotate(360deg)}}
.csh-k{margin:2px 0 -4px;font-size:var(--fs-micro);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.csh-hint{margin:-4px 0 0;font-size:var(--fs-small);color:var(--dim)}
.csh-hint--c{text-align:center;margin:0}
.csh-notice{margin:0;padding:10px 12px;border-radius:12px;background:rgba(237,198,54,.1);border:1px solid rgba(237,198,54,.3);color:var(--tg1,var(--g1));font-size:13px;line-height:1.4}

/* выводимый баланс */
.csh-wd{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 10px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.csh-wd span{font-size:var(--fs-small);color:var(--muted)}
.csh-wd b{font:700 17px var(--disp);color:var(--tg2,var(--g2));font-variant-numeric:tabular-nums}
.csh-wd small{grid-column:1/-1;font-size:11.5px;color:var(--dim)}
.csh-wd--slim{padding:9px 12px}
.csh-wd--slim b{font-size:14px}

/* способы оплаты */
.csh-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.csh-m{display:grid;justify-items:start;align-content:start;gap:4px;min-height:104px;padding:10px;border-radius:14px;background:var(--surface);border:1px solid var(--line);text-align:left;transition:transform .2s var(--ease),border-color .2s}
.csh-m:active{transform:scale(.97);border-color:var(--g2)}
.csh-m b{font-size:13.5px;line-height:1.2}
.csh-m small{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.csh-m .csh-m__eta{color:var(--dim)}

/* логотип способа: часть файла 250×140 или файл целиком; при ошибке — значок категории */
.csh-logo{position:relative;display:grid;place-items:center;min-height:34px;padding:4px 6px;border-radius:9px;background:var(--surface-2);overflow:hidden}
.csh-logo--plate{background:#fff}
.csh-logo__crop{position:relative;display:block;overflow:hidden;max-width:100%}
.csh-logo__crop img{position:absolute;max-width:none;height:auto}
.csh-logo--whole img{display:block;width:92px;height:40px;object-fit:contain}
.csh-logo__cat{display:none;place-items:center;width:28px;height:28px;color:var(--tg2,var(--g2))}
.csh-logo__cat svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.csh-logo--cat .csh-logo__cat,.csh-logo--err .csh-logo__cat{display:grid}
.csh-logo--err{background:var(--surface-2)}
.csh-logo--err .csh-logo__crop,.csh-logo--err img{display:none}

/* форма */
.csh-form{display:flex;flex-direction:column;gap:12px}
.csh-mhead{display:flex;align-items:center;gap:12px}
.csh-mhead>div{display:grid;gap:2px;min-width:0}
.csh-mhead b{font-size:14px}
.csh-mhead small{font-size:var(--fs-small);color:var(--muted);font-variant-numeric:tabular-nums}
.csh-in{height:46px;width:100%;padding:0 12px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);font:500 16px var(--ui);outline:0;transition:border-color .2s}
.csh-in:focus{border-color:var(--g2)}
select.csh-in{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}
.csh-amt{position:relative;display:block}
.csh-amt i{position:absolute;left:14px;top:50%;transform:translateY(-50%);font:700 18px var(--disp);font-style:normal;color:var(--tg2,var(--g2))}
.csh-amt input{height:54px;padding-left:36px;font:700 20px var(--disp);font-variant-numeric:tabular-nums}
.csh-quick{display:flex;gap:6px;margin-top:-4px;overflow-x:auto;scrollbar-width:none}
.csh-quick:empty{display:none}
.csh-quick .chip{height:32px;padding:0 12px;font-size:12.5px}
.csh-bonus{display:grid;gap:6px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.csh-bonus legend{padding:0 4px;font-size:var(--fs-micro);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.csh-radio,.csh-check{display:flex;align-items:flex-start;gap:10px;padding:6px 0;font-size:13.5px;cursor:pointer}
.csh-radio input,.csh-check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--g2)}
.csh-radio small{display:block;margin-top:2px;font-size:11.5px;color:var(--muted)}
.csh-check[hidden]{display:none}
.csh-check a{margin-left:6px;color:var(--tg2,var(--g2));font-weight:700;text-decoration:underline;text-underline-offset:3px}
.csh-check a[hidden]{display:none}
.csh-go{position:sticky;bottom:0;margin-top:4px;box-shadow:0 -10px 20px var(--k1a1a1a,#1a1a1a),0 10px 30px rgba(237,198,54,.2)}
.csh-go:disabled{filter:grayscale(.6) brightness(.8)}
.csh-go.has-bonus{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.15}
.csh-go.has-bonus small{font-size:11.5px;font-weight:700;opacity:.82;animation:csh-bonus .35s cubic-bezier(.2,.8,.2,1) both}
@keyframes csh-bonus{from{opacity:0;transform:translateY(4px)}to{opacity:.82;transform:none}}
@media (prefers-reduced-motion:reduce){.csh-go.has-bonus small{animation:none}}
.csh-form :disabled{opacity:.7}

/* итог операции */
.csh-out{display:grid;justify-items:center;gap:8px;padding:12px 4px 4px;text-align:center}
.csh-out h4{margin:4px 0 0;font:700 16px var(--disp)}
.csh-out p{margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.csh-out__mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--surface-2);font:700 22px var(--disp);color:var(--text)}
.csh-out__mark--ok{background:var(--gold);color:var(--ink)}
.csh-out--warn .csh-out__mark{background:rgba(237,198,54,.15);color:var(--tg2,var(--g2))}
.csh-out--err .csh-out__mark{background:rgba(255,90,77,.14);color:var(--kerr,#ff8a80)}
.csh-out .btn{margin-top:6px}
.csh-insbox{display:grid;width:100%;margin-top:6px;border-radius:14px;background:var(--surface);border:1px solid var(--line);text-align:left}
.csh-ins{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;padding:10px 12px;border-top:1px solid var(--line)}
.csh-ins:first-child{border-top:0}
.csh-ins span{grid-column:1;font-size:11.5px;color:var(--muted)}
.csh-ins b{grid-column:1;font-size:14px;font-weight:600;word-break:break-all;font-variant-numeric:tabular-nums}
.csh-copy{grid-column:2;grid-row:1/span 2;height:30px;padding:0 10px;border-radius:9px;border:1px solid var(--line-2);font-size:12px;font-weight:700;color:var(--tg2,var(--g2))}
.csh-actions{display:grid;gap:8px}

/* история: вкладки «Tümü / Yatırımlar / Çekimler» */
.csh-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.csh-filters::-webkit-scrollbar{display:none}
.csh-filters .chip{flex:none;height:34px;padding:0 13px;font-size:12.5px}
.csh-filters .chip,.csh-dir .chip,.csh-sum .chip,.csh-warn button{position:relative}
.csh-filters .chip::after,.csh-dir .chip::after,.csh-sum .chip::after,.csh-warn button::after{content:"";position:absolute;inset:-5px 0}   /* нажатие — от 40 px */
.csh-n{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--white);color:var(--ink);font:700 11px/1 var(--ui);font-style:normal;letter-spacing:0;font-variant-numeric:tabular-nums}
.chip.on .csh-n{background:var(--ink);color:var(--white)}
.csh-sec{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:-4px}
.csh-sec .csh-k{margin:0}
.csh-dir{display:flex;gap:6px}
.csh-dir .chip{height:30px;padding:0 12px;font-size:12px}

/* заявки на пополнение и вывод: способ, дата, сумма, метка статуса */
.csh-pay{display:grid;margin:0;padding:0;list-style:none;border-radius:14px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.csh__body>.csh-filters,.csh__body>.csh-pay,.csh__body>.csh-pend{flex:none}   /* лист — колонка flex: блоки с overflow не должны сжиматься */
.csh-pay>li{border-top:1px solid var(--line)}
.csh-pay>li:first-child{border-top:0}
.csh-p{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:58px;padding:10px 12px;text-align:left}
button.csh-p{transition:background .2s}
button.csh-p:active{background:var(--surface-2)}
.csh-p__ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--surface-2);color:var(--muted)}
.csh-p__ic svg{width:18px;height:18px}
.csh-p__main{display:grid;gap:2px;min-width:0}
.csh-p__main b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csh-p__main small{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.csh-p__side{display:grid;justify-items:end;gap:4px}
.csh-p__amt{font:700 14px var(--disp);font-variant-numeric:tabular-nums;color:var(--text)}
.csh-p--in.csh-p--completed .csh-p__amt{color:var(--tg2,var(--g2))}          /* золото — только деньги, которые пришли */
.csh-p--declined .csh-p__amt{color:var(--dim)}
.csh-st{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px 0 4px;border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
.csh-st svg{flex:none;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.csh-st--new{background:rgba(var(--ov,255,255,255),.1);color:var(--text)}
.csh-st--processing{background:rgba(237,198,54,.13);color:var(--tg1,var(--g1))}
.csh-st--declined{background:rgba(255,90,77,.13);color:var(--kerr,#ff8a80)}
.csh-st--completed{background:rgba(61,220,151,.11);color:#6fe0ae}
.csh-p__more{display:grid;gap:5px;margin:-2px 12px 11px 56px;padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:12px;line-height:1.35}
.csh-p__more div{display:flex;justify-content:space-between;gap:12px}
.csh-p__more dt{flex:none;color:var(--dim)}
.csh-p__more dd{margin:0;min-width:0;text-align:right;color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.csh-p__more .csh-p__note{display:grid;gap:1px}
.csh-p__note dd{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-align:left;color:var(--muted)}

/* незавершённые заявки: блок на «Tümü» и строка-итог на вкладке */
.csh-pend{display:grid;gap:8px}
.csh-pend .csh-k{display:flex;align-items:center;gap:8px;margin:2px 0 0}
.csh-link{justify-self:center;height:40px;margin:-8px 0;padding:0 14px;font-size:12.5px;font-weight:700;color:var(--muted)}
.csh-warn{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:7px 7px 7px 12px;border-radius:12px;border:1px solid var(--line);font-size:var(--fs-small);color:var(--muted)}
.csh-warn button{flex:none;height:30px;padding:0 10px;border-radius:9px;border:1px solid var(--line-2);font-size:12px;font-weight:700;color:var(--text)}
.csh-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px 9px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.csh-sum>span{display:grid;gap:1px;min-width:0}
.csh-sum b{font-size:13px;font-weight:600}
.csh-sum small{font:700 13.5px var(--disp);color:var(--tg2,var(--g2));font-variant-numeric:tabular-nums}
.csh-sum .chip{flex:none;height:32px;padding:0 12px;font-size:12px}
.csh-more{display:grid;justify-items:center;gap:8px;text-align:center}
.csh-more small{font-size:var(--fs-small);color:var(--dim);font-variant-numeric:tabular-nums}
.csh-more p{margin:0;font-size:var(--fs-small);color:var(--kerr,#ff8a80)}
.csh-more .btn{width:100%;height:44px}
.csh-none{display:grid;justify-items:center;gap:14px;padding:32px 16px;border-radius:14px;border:1px dashed var(--line-2);text-align:center;color:var(--muted)}
.csh-none p{margin:0}
.csh-none .btn{height:42px}
.csh-tx{display:grid;margin:0;padding:0;list-style:none;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.csh-tx li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid var(--line)}
.csh-tx li:first-child{border-top:0}
.csh-tx li>div{display:grid;gap:2px;min-width:0}
.csh-tx b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csh-tx small{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.csh-tx__amt{flex:none;font:700 13.5px var(--disp);font-variant-numeric:tabular-nums;color:var(--text)}
.csh-tx__amt--in{color:var(--tg2,var(--g2))}

.quiet .csh .dlg{animation:none}
@media (prefers-reduced-motion:reduce){.csh-spin{animation-duration:2s}}

/* ---- 2026-11-22: yöntem çipleri + son kullanılan (D2), çekim kartı ve kilitli yöntemler (W1), bonus kartları + özet, geçmiş (gün gün) + detay ---- */
.csh-m{position:relative}
.csh-m--last{border-color:rgba(230,194,90,.65);background:linear-gradient(160deg,rgba(230,194,90,.14),transparent 60%),var(--surface)}
.csh-tag{order:0;margin:1px 0 1px;padding:2px 6px;border-radius:6px;background:var(--gold,#e6c25a);color:#141414;font:800 8.5px var(--disp);letter-spacing:.06em;font-style:normal;text-transform:uppercase}
.csh__body>.csh-methods,.csh__body>.csh-grp,.csh__body>.csh-wdc{flex:none}
.csh-wdc{display:grid;gap:3px;padding:14px;border-radius:16px;background:linear-gradient(135deg,#fff3cc,#e2bb55 50%,#b88a2a);color:#141007}
.csh-wdc span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.csh-wdc b{font:800 28px var(--disp);font-variant-numeric:tabular-nums}
.csh-wdc small{font-size:11px;opacity:.75}
.csh-grp{display:flex;flex-direction:column;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.csh-grp h6{display:flex;align-items:center;gap:6px;margin:0;padding:10px 12px 6px;font:700 10.5px var(--ui);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.csh-grp h6 i{font-style:normal;padding:1px 6px;border-radius:8px;background:var(--surface-2);letter-spacing:0}
.csh-grp--pend{box-shadow:inset 0 0 0 1px rgba(230,194,90,.35)}
.csh-grp .csh-pay{margin:0;padding:0;list-style:none;border:0;border-radius:0;background:none}
.csh-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border-top:1px solid var(--line);text-align:left;transition:background .2s}
.csh-grp h6+.csh-row{border-top:0}
.csh-row:active{background:var(--surface-2)}
.csh-row .csh-logo{flex:none;width:76px;min-height:32px;padding:3px 7px}
.csh-row .csh-logo--whole img{width:62px;height:28px}
.csh-row__t{flex:1;min-width:0;display:grid;gap:2px}
.csh-row__t b{font-size:13.5px}
.csh-row__t small{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.csh-row__end{flex:none;width:16px;height:16px;fill:none;stroke:var(--dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.csh-row--lock .csh-logo{opacity:.5;filter:grayscale(1)}
.csh-row--lock .csh-row__t b{color:var(--muted)}
.csh-row--lock .csh-row__end{opacity:.7}
.csh-row--lock .csh-row__t small{color:var(--tg2,var(--g2))}
.csh-grp__more{padding:11px;border-top:1px solid var(--line);font:600 12px var(--ui);color:var(--muted)}
.csh-amt input{height:58px;font-size:24px}
.csh-quick .chip.on{background:var(--white);color:var(--ink)}
.csh-bonus--cards{padding:10px}
.csh-bcards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.csh-bc{position:relative;display:grid;align-content:start;gap:2px;padding:10px;border-radius:13px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer;transition:box-shadow .2s,opacity .2s}
.csh-bc input{position:absolute;opacity:0;pointer-events:none}
.csh-bc__p{font:800 20px var(--disp);color:var(--tg2,var(--g2))}
.csh-bc__p--none{color:var(--dim)}
.csh-bc span{font-size:11.5px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.csh-bc small{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.csh-bc.on,.csh-bc:has(input:checked){background:linear-gradient(160deg,rgba(230,194,90,.2),rgba(230,194,90,.05));box-shadow:inset 0 0 0 1.5px var(--g2)}
.csh-bc:has(input:focus-visible){outline:2px solid var(--g2);outline-offset:2px}
.csh-bc.off{opacity:.45}
.csh-sumbox{display:grid;gap:6px;padding:11px 13px;border-radius:13px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.csh-sumbox[hidden]{display:none}
.csh-sumbox div{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted)}
.csh-sumbox b{color:var(--text);font-variant-numeric:tabular-nums}
.csh-sumbox b.g{color:var(--tg2,var(--g2))}
.csh-sumbox .t{padding-top:6px;border-top:1px dashed var(--line-2);color:var(--text);font-weight:700}
.csh-sumbox .t b{font:800 16px var(--disp)}
.csh-filters--st .chip{height:28px;font-size:11.5px;color:var(--muted)}
.csh-filters--st .chip.on{color:var(--ink)}
.csh-p__ic--deposit{color:#4be08a}
.csh-p__ic--withdraw{color:#ff7a6b}
.csh-p__ic svg,.csh-det__ic svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.csh-det{display:grid;justify-items:center;gap:6px;padding:6px 0;text-align:center}
.csh-det__ic{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--surface-2)}
.csh-det__ic svg{width:24px;height:24px}
.csh-det>small{font-size:12.5px;color:var(--muted)}
.csh-det__amt{font:800 30px var(--disp);font-variant-numeric:tabular-nums}
.csh-det dl{width:100%;margin:10px 0 8px;text-align:left}
.csh-det dl div{display:flex;justify-content:space-between;gap:12px;padding:10px 2px;border-top:1px solid var(--line);font-size:13px}
.csh-det dt{flex:none;color:var(--muted)}
.csh-det dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.csh-det dd.g{color:var(--tg2,var(--g2))}
.csh-det .btn{width:100%}
html[data-theme=light] .csh-p__ic--deposit{color:#1a8a4a}
html[data-theme=light] .csh-p__ic--withdraw{color:#c0392b}
