/* ===== Мои билеты, электронный билет, избранное. Все классы раздела — с префиксом tk- ===== */
.tk-body{display:flex;flex-direction:column;gap:16px;padding:8px 16px 0}
.tk-body .footer{margin-top:8px}

/* переключатель из двух вкладок: «Предстоящие / Прошедшие», «События / Персоны» */
.tk-seg{position:relative;display:flex;padding:4px;border-radius:24px;background:#fff}
.tk-seg i{position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);border-radius:24px;background:var(--brand-1);transition:transform .4s var(--ease)}
.tk-seg[data-i="1"] i{transform:translateX(100%)}
.tk-seg button{position:relative;z-index:1;flex:1;padding:12px;border-radius:24px;font-size:14px;line-height:18px;font-weight:600;color:var(--text-2);text-align:center;transition:color .25s,transform .18s var(--ease)}
.tk-seg button:active{transform:scale(.96)}
.tk-seg button.on{color:#fff}
.tk-seg.soft{border-radius:12px}
.tk-seg.soft i{border-radius:8px;background:rgba(139,61,255,.12)}
.tk-seg.soft button{border-radius:8px}
.tk-seg.soft button.on{color:#8b3dff}

/* карточка заказа в списке */
.tk-list{display:flex;flex-direction:column;gap:16px}
.tk-card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;width:100%;min-height:223px;padding:14px;border-radius:12px;overflow:hidden;background:#26232a;text-align:left;transition:transform .25s var(--ease)}
.tk-card:active{transform:scale(.98)}
.tk-card>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:50% 22%;transition:transform .6s var(--ease)}
.tk-card:active>img{transform:scale(1.04)}
.tk-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(10,5,20,.05),rgba(10,5,20,.1) 43%,rgba(10,5,20,.98))}
.tk-card::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 12px rgba(245,245,245,.2);pointer-events:none}
.tk-card.st{min-height:227px}
.tk-card.past{min-height:144px}
.tk-card.gray>img{filter:grayscale(1)}
.tk-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.tk-bdg{display:flex;align-items:center;gap:4px;height:24px;padding:4px 6px;border-radius:8px;background:rgba(0,0,0,.24);color:#fff;font-size:12px;line-height:15px;font-weight:500;white-space:nowrap}
.tk-bdg img{width:16px;height:16px;flex:none}
.tk-bdg.moved{background:#ffe4cc;color:#b54708}
.tk-bdg.cancelled{background:#e83e50}
.tk-bdg.cnt{margin-left:auto}
.tk-det{display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:15px;font-weight:500;color:#eeeef0}
.tk-det b{font-size:14px;line-height:18px;font-weight:700;color:#fff}
.tk-sch{display:flex;align-items:center;gap:6px;white-space:nowrap}
.tk-sch s{opacity:.8}
.tk-sch strong{font-weight:700;color:#fff}
.tk-card.cancelled .tk-sch{opacity:.8}

/* пустые состояния */
.tk-msg{display:flex;flex-direction:column;align-items:center;gap:20px;padding:64px 16px;text-align:center;animation:rise .5s var(--ease) both}
.tk-msg .b-m{max-width:326px}
.tk-msg .btn{width:320px;max-width:100%}
.tk-pane.tk-swap{animation:tk-swap .38s var(--ease) both}
@keyframes tk-swap{from{opacity:0;transform:translateX(var(--tk-dx,16px))}}
.tk-fgrid .card{transition:transform .25s var(--ease),opacity .3s}
.tk-fgrid .card.tk-out{opacity:0;transform:scale(.9);pointer-events:none}

/* электронный билет */
.tk-nav{display:flex;align-items:center;gap:20px}
.tk-nav .h-s{flex:1;text-align:center}
.tk-nav .icon-btn img{width:24px;height:24px}
.tk-cards{margin:0 -16px;padding:0 16px;gap:12px;align-items:flex-start;scroll-snap-type:x mandatory}
.tk-tix{position:relative;isolation:isolate;flex:0 0 100%;scroll-snap-align:center;background:#fff;border-radius:16px;overflow:hidden;padding-bottom:20px;animation:rise .6s var(--ease) both;animation-delay:calc(var(--i,0)*70ms)}
.tk-glow{position:absolute;left:0;top:10px;width:100%;height:200px;border-radius:24px;background-size:cover;background-position:50% 22%;filter:blur(34.25px);opacity:.4}
.tk-cover{position:relative;height:200px;border-radius:16px;overflow:hidden;color:#fff}
.tk-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.tk-cover::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(10,5,20,.05),rgba(10,5,20,.1) 43%,rgba(10,5,20,.98))}
.tk-cover::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 12px rgba(245,245,245,.2)}
.tk-cover .b-s{position:absolute;left:16px;top:137px;z-index:1;white-space:nowrap}
.tk-cover .h-l{position:absolute;left:16px;right:16px;top:156px;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-cover .tk-bdg{position:absolute;left:14px;top:14px;z-index:1}
.tk-tix.gray .tk-cover>img{filter:grayscale(1)}
.tk-tix.gray .tk-glow{filter:blur(34.25px) grayscale(1)}
.tk-meta{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 16px 0}
.tk-state{display:flex;align-items:center;gap:6px;font-size:12px;line-height:12px;font-weight:600;color:#17845a;white-space:nowrap}
.tk-state::before{content:"";width:6px;height:6px;border-radius:3px;background:currentColor}
.tk-state.cancelled{color:#e83e50}
.tk-state.done{color:var(--text-3)}
.tk-flds{position:relative;display:grid;grid-template-columns:115px 116px 1fr;padding:20px 16px 0}
.tk-flds.n2{grid-template-columns:115px 1fr}
.tk-flds.n1{grid-template-columns:1fr}
.tk-flds div{display:flex;flex-direction:column;gap:6px;min-width:0}
.tk-flds b{font-size:20px;line-height:24px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-cut{position:relative;height:2px;margin-top:27px;background:url(../assets/v2/tickets/dash.svg) center/353px 2px no-repeat}
.tk-cut::before,.tk-cut::after{content:"";position:absolute;top:-11px;width:24px;height:24px;background:url(../assets/v2/tickets/notch.svg) center/24px no-repeat}
.tk-cut::before{left:-12px}.tk-cut::after{right:-12px}
.tk-code{position:relative;height:102px;margin:27px 20px 0;transition:height .45s var(--ease)}
.tk-code>*{position:absolute;left:50%;top:50%;transition:opacity .3s,transform .45s var(--ease)}
.tk-bar{left:0;width:100%;height:102px;margin:-51px 0 0}
.tk-bar img,.tk-bar svg{display:block;width:100%;height:100%}
.tk-qrc{width:150px;height:150px;margin:-75px 0 0 -75px;opacity:0;transform:scale(.7) rotate(-8deg);pointer-events:none}
.tk-qrc svg{display:block;width:100%;height:100%}
.tk-cards.qr .tk-code{height:150px}
.tk-cards.qr .tk-bar{opacity:0;transform:scaleX(.5)}
.tk-cards.qr .tk-qrc{opacity:1;transform:none}
.tk-tix.dim .tk-code{opacity:.3}
.tk-qrbtn{display:block;width:calc(100% - 32px);margin:16px 16px 0;padding:4px 0;font-size:16px;line-height:1;font-weight:600;color:var(--text-2);text-align:center;transition:transform .18s var(--ease),color .2s}
.tk-qrbtn:active{transform:scale(.96);color:var(--text-1)}
.tk-pag{display:flex;flex-direction:column;align-items:center;gap:14px;height:60px;padding-top:14px}
.tk-dots{display:flex;gap:8px;height:6px}
.tk-dots i{width:6px;height:6px;border-radius:999px;background:rgba(0,0,0,.18);cursor:pointer;transition:width .35s var(--ease),background .35s}
.tk-dots i.on{width:24px;background:#843bf5}
.tk-venue{display:flex;flex-direction:column;margin:24px 8px 0;animation:rise .6s var(--ease) .15s both}
.tk-vrow{display:flex;align-items:center;gap:12px;font-size:14px;line-height:18px;font-weight:700;white-space:pre}
.tk-vrow img{width:20px;height:20px;flex:none}
.tk-vrow+.tk-vrow,.tk-vsub+.tk-vrow{margin-top:8px}
.tk-vsub{margin:1px 0 0 32px;font-size:12px;line-height:15px;font-weight:500;color:var(--text-2)}
.tk-vsub.in{margin-top:4px;color:var(--text-1)}
.tk-vsub.in b{font-weight:700}
.tk-vsub s{color:var(--text-3)}
.tk-hr{height:2px;margin:16px 2px 0;border-radius:2px;background:#dcdde1}
.tk-refund{display:flex;align-items:center;gap:12px;margin:15px 2px 0;padding:15px 16px;border-radius:12px;background:var(--surface-3);font-size:14px;line-height:18px;font-weight:600;color:var(--text-3);transition:transform .18s var(--ease),background .2s}
.tk-refund img{width:20px;height:20px}
.tk-refund:active{transform:scale(.98);background:#e2e2e6}
.tk-ticket .tk-body{padding-bottom:0}
.tk-ticket .tk-body .footer{margin-top:28px}
