/* تایید نهایی و پرداخت (/checkout) — موبایل‌محور، ستون وسط در دسکتاپ */
body.tg-page{background:#f6f7f9}
.ck-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:center;height:58px;background:#fff;border-bottom:1px solid #e9ebf0;direction:rtl}
.ck-top h1{margin:0;font-size:17px;font-weight:700;color:#17181c}
.ck-back{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:grid;place-items:center;color:#17181c;border-radius:50%}
.ck-back:hover{background:#f1f3f6}
.ck-toast{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:60;max-width:92vw;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;color:#fff;background:#d92d20;box-shadow:0 10px 30px rgba(0,0,0,.18);transition:opacity .4s,transform .4s;direction:rtl}
.ck-toast.ok{background:#12b76a}
.ck-toast.out{opacity:0;transform:translate(-50%,-12px);pointer-events:none}
.ck{max-width:640px;margin:0 auto;padding:14px 14px 150px;direction:rtl;color:#17181c}
.ck-guest{opacity:.55;pointer-events:none;filter:blur(1px)}
.ck-items{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
.ck-item{background:#fff;border:1px solid #e4e4e7;border-radius:16px;padding:14px}
.ck-it-top{display:flex;gap:12px;align-items:flex-start}
.ck-th{width:64px;height:64px;border-radius:12px;object-fit:cover;flex:none;background:#eceef2}
.ck-ti{min-width:0;flex:1}
.ck-ti p{margin:0}
.ck-ti .n{font-size:14.5px;font-weight:700;line-height:1.8}
.ck-ti .t{font-size:13px;color:#5b6170;line-height:1.8}
.ck-ti .d{font-size:12.5px;color:#7d7d87;line-height:1.8}
.ck-it-bot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.ck-step{display:inline-flex;align-items:center;gap:10px}
.ck-step .c{min-width:22px;text-align:center;font-weight:700;font-size:15px}
.ck-plus,.ck-minus{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:#f3f3f5;color:#17181c;font:inherit;font-size:22px;line-height:1;cursor:pointer;text-decoration:none;transition:background .15s}
.ck-plus:hover,.ck-minus:hover{background:#e9e9ee}
.ck-plus.ld{opacity:.5}
.ck-pr{margin:0;font-size:13px;color:#5b6170}.ck-pr b{font-size:18px;color:#17181c;margin-inline-end:3px}
.ck-sec{background:#fff;border:1px solid #e4e4e7;border-radius:16px;padding:16px;margin-bottom:12px}
.ck-sec h2{margin:0 0 14px;font-size:16px;font-weight:700}
.ck-sub{margin:0 0 10px;font-size:13.5px;color:#5b6170}
.ck-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:420px){.ck-fields{grid-template-columns:1fr}}
.ck-f label{display:block;margin:0 0 6px;font-size:13px;font-weight:600;color:#5b6170}
.ck-f input{width:100%;box-sizing:border-box;height:50px;border:1.5px solid #dfe2e8;border-radius:14px;background:#f7f8fa;padding:0 14px;font:inherit;font-size:15px;outline:0;transition:border-color .15s,background .15s}
.ck-f input:focus{border-color:#E4002B;background:#fff}
.ck-ph{margin:12px 2px 0;font-size:13px;color:#5b6170;line-height:1.9}
.ck-ph b{color:#17181c}.ck-ph span{color:#98a2b3;font-size:12px}
.ck-chips{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;transition:opacity .2s}
.ck-chips.dim{opacity:.4}
.ck-chip{flex:none;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 20px;border:1.5px solid #dfe2e8;border-radius:999px;background:#fff;font-size:15px;font-weight:600;cursor:pointer}
.ck-chip input{position:absolute;opacity:0;pointer-events:none}
.ck-chip.on{background:#17181c;border-color:#17181c;color:#fff}
.ck-wal{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #eef0f4;cursor:pointer}
.ck-wal .wi{width:44px;height:44px;border-radius:12px;background:#fff0f2;color:#E4002B;display:grid;place-items:center;flex:none}
.ck-wal .wt{flex:1;min-width:0}
.ck-wal .wt b{display:block;font-size:15px}
.ck-wal .wt small{display:block;font-size:12.5px;color:#7d7d87;line-height:1.8}
.ck-wal.off{opacity:.6;cursor:not-allowed}
.sw{position:relative;flex:none;width:52px;height:30px}
.sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:inherit;z-index:2}
.sw i{position:absolute;inset:0;border-radius:999px;background:#c9d2d9;transition:background .2s}
.sw i:after{content:"";position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.sw input:checked+i{background:#E4002B}
.sw input:checked+i:after{transform:translateX(-22px)}
.ck-topup{display:inline-block;margin-top:10px;font-size:13px;color:#E4002B;text-decoration:underline}
.ck-cp{padding:0}
.ck-cp details summary{list-style:none;display:flex;align-items:center;gap:10px;padding:16px;cursor:pointer;font-size:15px;font-weight:600;color:#5b6170}
.ck-cp details summary::-webkit-details-marker{display:none}
.ck-cp .ci{color:#7d7d87;display:grid;place-items:center}
.ck-cp .ch{margin-inline-start:auto;width:10px;height:10px;border:solid #7d7d87;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s}
.ck-cp details[open] .ch{transform:rotate(-135deg)}
.ck-cp-in{display:flex;gap:10px;padding:0 16px 16px}
.ck-cp-in input{flex:1;min-width:0;height:48px;border:1.5px solid #dfe2e8;border-radius:14px;padding:0 14px;font:inherit;font-size:15px;background:#f7f8fa;outline:0}
.ck-cp-in input:focus{border-color:#E4002B;background:#fff}
.ck-cp-in button{flex:none;height:48px;padding:0 22px;border:0;border-radius:14px;background:#17181c;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.ck-cp-on{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;font-size:14px;color:#067647}
.ck-cp-on a{color:#d92d20;text-decoration:underline;font-size:13px}
.ck-sum{padding:4px 4px 0}
.ck-sum .r{display:flex;justify-content:space-between;align-items:center;padding:12px 6px;font-size:15px;border-bottom:1px solid #eceff3}
.ck-sum .r:last-child{border-bottom:0}
.ck-sum .r span{color:#17181c}.ck-sum .r b{font-weight:600}
.ck-vpn{margin:10px 6px 0;font-size:12.5px;color:#7d7d87;line-height:1.9}
.ck-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:640px;margin:0 auto;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e4e4e7;border-radius:18px 18px 0 0;box-shadow:0 -8px 24px rgba(16,24,40,.06);direction:rtl}
.ck-tot{display:flex;flex-direction:column;gap:2px}
.ck-tot span{font-size:12.5px;color:#7d7d87}
.ck-tot b{font-size:18px}
.ck-pay{flex:1;max-width:240px;height:56px;border:0;border-radius:16px;background:#E4002B;color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:opacity .15s,transform .1s}
.ck-pay:active{transform:scale(.98)}
.ck-pay[disabled]{opacity:.6;cursor:default}
@media(min-width:900px){body.tg-page{background:#eef0f4}.ck{padding-top:22px}.ck-bar{bottom:14px;border:1px solid #e4e4e7;border-radius:20px}}

/* مراحل خرید در صفحه‌ی تایید نهایی */
.cks{max-width:640px;margin:12px auto 0!important;padding-inline:14px}

/* سبد خالی */
.ck-emp{padding-bottom:40px}
.ck-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:clamp(40px,12vh,120px)}
.ck-em-ill{max-width:78vw;height:auto}
.ck-em-t{margin:6px 0 0;font-size:18px;font-weight:600;color:#17181c}
.ck-home{display:flex;align-items:center;justify-content:center;height:56px;margin:clamp(40px,12vh,110px) 0 0;border-radius:16px;background:#17181c;color:#fff;font-size:17px;font-weight:700;text-decoration:none}
.ck-home:active{transform:scale(.99)}

/* بازدیدهای اخیر */
.ck-recent{max-width:1100px;margin:6px auto 0;padding:10px 14px 120px;direction:rtl}
.ck-emp+.ck-recent{padding-bottom:60px}
.ck-rh{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ck-rh i{width:8px;height:34px;border-radius:4px;background:#E4002B;flex:none}
.ck-rh .a{margin:0;font-size:13px;color:#E4002B}
.ck-rh .t{margin:0;font-size:18px;font-weight:700;color:#17181c}
.rel-nx.ck-rail{display:flex;gap:14px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.rel-nx.ck-rail>div{flex:0 0 280px;min-width:0;scroll-snap-align:start}
@media(min-width:900px){.rel-nx.ck-rail>div{flex-basis:300px}}
