/* Componentes compartilhados: cartão, rota, pódio, connect, paginação, vazio, confiança, trilha */
/* cartão de produto */
.tv-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}
.tv-card{position:relative;background:var(--off);color:var(--night);border-radius:var(--radius-lg);padding:12px;border:var(--tv-border);box-shadow:6px 6px 0 var(--deep);transition:transform .25s var(--ease-out),box-shadow .25s var(--ease-out);animation:tv-rise .6s var(--ease-out) both}
.tv-card:nth-child(2){animation-delay:.08s}.tv-card:nth-child(3){animation-delay:.16s}.tv-card:nth-child(4){animation-delay:.24s}
.tv-card:hover,.tv-card:focus-within{transform:translate(-3px,-5px) rotate(-1.2deg);box-shadow:10px 11px 0 var(--sun)}
.tv-card__link{position:absolute;inset:0;z-index:1;border-radius:inherit}
.tv-card__media{aspect-ratio:4/3;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:radial-gradient(90% 70% at 50% 100%,var(--deep-2),var(--night) 70%)}
.tv-card__media img{width:100%;height:100%;object-fit:cover}
.tv-card__media .tv-logo-icon{width:30%}
.tv-card__name{margin:12px 4px;font-weight:800;font-size:1rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tv-card__row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 4px 2px}
.tv-card__price{margin:0;font-weight:900;font-size:1.25rem;line-height:1.1}
.tv-card__price s{display:block;font-size:.75rem;opacity:.6;font-weight:600}
.tv-card__price small{display:block;font-size:.6875rem;font-weight:600;opacity:.7}
.tv-card__add{position:relative;z-index:2;width:46px;height:46px;flex-shrink:0;border-radius:12px;border:none;background:var(--night);color:var(--sun);display:grid;place-items:center;cursor:pointer;text-decoration:none;transition:transform .2s var(--ease-out)}
.tv-card__add:hover{transform:scale(1.08)}
.tv-badge{position:absolute;z-index:3;top:-12px;right:-10px;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--earth);color:var(--off);border:3px solid var(--night);font-weight:900;font-size:.8125rem;line-height:1;transform:rotate(12deg)}
/* rota (categorias): faixa de papel off-white, bordas escuras (alto contraste) */
.tv-rota{position:relative;z-index:2;background:var(--off);color:var(--night);border-top:4px solid var(--night);border-bottom:4px solid var(--night);padding:32px 0 34px}
.tv-rota__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.tv-rota__stops{list-style:none;margin:0;padding:6px 4px 8px;display:flex;position:relative;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.tv-rota__stops::before{content:"";position:absolute;left:28px;right:28px;top:27px;border-top:3px dashed rgba(17,30,41,.35)}
.tv-rota__stop{flex:1 0 120px;scroll-snap-align:start;position:relative}
.tv-rota__stop a{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;text-decoration:none;color:var(--night);padding:0 6px 4px}
.tv-rota__pin{width:52px;height:52px;border-radius:50%;background:var(--off);border:3px solid var(--night);display:grid;place-items:center;font-weight:900;font-size:.9375rem;box-shadow:3px 3px 0 var(--night);transition:transform .2s var(--ease-out),box-shadow .2s var(--ease-out)}
.tv-rota__stop a:hover .tv-rota__pin{transform:translate(-2px,-3px);box-shadow:5px 6px 0 var(--night)}
.tv-rota__stop.is-active .tv-rota__pin{background:var(--sun);transform:scale(1.1);box-shadow:4px 4px 0 var(--night)}
.tv-rota__name{font-weight:800;text-transform:uppercase;font-size:.8125rem}
.tv-rota__stop.is-active .tv-rota__name{background:var(--night);color:var(--sun);padding:2px 8px;border-radius:6px}
.tv-rota__head .tv-label--earth{color:#7a4a28}
.tv-rota__count{font-size:.6875rem;font-weight:600;color:#7a4a28;margin-top:-4px}
/* pódio */
.tv-podio__steps{list-style:none;margin:0 auto;padding:0;max-width:640px;display:flex;justify-content:center;gap:16px;align-items:flex-end}
.tv-podio__step{flex:1 1 0;max-width:210px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.tv-podio__av{width:58px;height:58px;border-radius:50%;background:var(--deep);border:3px solid var(--off);display:grid;place-items:center;font-weight:900;font-size:1.25rem;box-shadow:4px 4px 0 var(--sky)}
.tv-podio__name{font-weight:800;font-size:.875rem;overflow-wrap:anywhere}
.tv-podio__spent{font-size:.75rem;font-weight:600;color:var(--sun)}
.tv-podio__blk{width:100%;border-radius:16px 16px 0 0;border:3px solid var(--night);border-bottom:none}
.tv-podio__step--1 .tv-podio__av{background:var(--sun);color:var(--night);width:70px;height:70px;font-size:1.5rem;box-shadow:5px 5px 0 var(--earth)}
.tv-podio__step--1 .tv-podio__blk{height:120px;background:linear-gradient(180deg,var(--sun),var(--sun-2))}
.tv-podio__step--2 .tv-podio__blk{height:84px;background:linear-gradient(180deg,var(--sky),#5f9ab1)}
.tv-podio__step--3 .tv-podio__blk{height:60px;background:linear-gradient(180deg,var(--earth),#7f4f2e)}
.tv-podio__crown{color:var(--sun);font-size:1.375rem;line-height:1;margin-bottom:-4px}
/* connect */
.tv-connect{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:10px 16px;border:2px dashed var(--sky);border-radius:var(--radius);background:transparent;color:var(--sky);cursor:pointer;font-size:.875rem}
.tv-connect b{color:var(--off);font-weight:700}
.tv-connect__dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(91,208,138,.2)}
.tv-connect.is-copied{border-style:solid;color:var(--ok)}
/* paginação, vazio, confiança, trilha */
.tv-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:36px;flex-wrap:wrap}
.tv-pagination__info{font-size:.875rem;opacity:.75}
.tv-empty{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:48px 16px}
.tv-empty .tv-logo-icon{width:72px}
.tv-empty p{margin:0;opacity:.75;max-width:420px}
.tv-trust{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tv-trust li{border:2px dashed rgba(248,245,237,.2);border-radius:12px;padding:10px 12px;font-size:.75rem;line-height:1.4;display:flex;gap:10px;align-items:center}
.tv-trust svg{flex-shrink:0;color:var(--sun)}
.tv-crumb ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:20px 0 0;font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase}
.tv-crumb li+li::before{content:"//";color:var(--sun);font-weight:900;letter-spacing:0;margin-right:6px}
.tv-crumb a{text-decoration:none;opacity:.7;display:inline-flex;align-items:center;min-height:44px}
.tv-crumb b{color:var(--sun)}
@media (prefers-reduced-motion:reduce){.tv-card{animation:none}.tv-card:hover,.tv-card:focus-within{transform:none}}

/* passagem (produto e pedido) */
.tv-ticket{position:relative;display:grid;grid-template-columns:1fr 170px;background:var(--off);color:var(--night);border-radius:var(--radius-xl);border:var(--tv-border);box-shadow:8px 8px 0 var(--sun)}
.tv-ticket::before,.tv-ticket::after{content:"";position:absolute;right:156px;width:28px;height:28px;border-radius:50%;background:var(--night)}
.tv-ticket::before{top:-16px}.tv-ticket::after{bottom:-16px}
.tv-ticket__main{padding:24px 24px 22px;min-width:0}
.tv-ticket__title{margin:6px 0 4px;font-weight:900;text-transform:uppercase;font-size:clamp(1.5rem,1.6vw + 1rem,2rem);line-height:1.1}
.tv-ticket__route{display:flex;align-items:center;gap:10px;margin:14px 0 6px;font-weight:900;text-transform:uppercase;font-size:.8125rem}
.tv-ticket__route i{flex:1;border-top:3px dashed rgba(17,30,41,.35);position:relative}
.tv-ticket__route i::after{content:"";position:absolute;left:50%;top:-9px;width:14px;height:14px;background:var(--sun);border:2px solid var(--night);border-radius:50%}
.tv-ticket__stub{border-left:3px dashed rgba(17,30,41,.35);padding:24px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;border-radius:0 calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px) 0;background:repeating-linear-gradient(135deg,rgba(216,167,58,.12) 0 8px,transparent 8px 16px)}
.tv-ticket__stub s{font-size:.8125rem;opacity:.6;font-weight:600}
.tv-ticket__from{margin:0;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;opacity:.7}
.tv-ticket__price{margin:0;font-weight:900;font-size:1.625rem;line-height:1.1;white-space:nowrap}
.tv-ticket__off{margin:2px 0 0;font-weight:700;font-size:.8125rem;color:var(--earth)}
.tv-barcode{display:block;height:56px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--night) 0 2px,transparent 2px 4px,var(--night) 4px 7px,transparent 7px 9px,var(--night) 9px 10px,transparent 10px 13px)}
.tv-stars{margin:0;font-size:.8125rem;opacity:.85}
.tv-stars b{color:var(--sun-2);letter-spacing:2px}
.tv-pills{margin:16px 0 0}
.tv-pills ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tv-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:2.5px solid var(--night);border-radius:999px;padding:6px 16px;font-weight:800;font-size:.8125rem;color:var(--night);text-decoration:none}
.tv-pill small{font-weight:700;opacity:.7}
a.tv-pill:hover{background:rgba(17,30,41,.08)}
.tv-pill[aria-current="true"]{background:var(--night);color:var(--sun)}
.tv-pill[aria-current="true"] small{opacity:.9}
.tv-pill.is-out{opacity:.45;cursor:not-allowed;text-decoration:line-through}
a.tv-pill:focus-visible{outline:3px solid var(--deep-2);outline-offset:2px}
.tv-roblox__row{display:flex;align-items:center;gap:8px}
.tv-roblox__mini{width:20px;height:20px;border-radius:50%}
.tv-roblox__loader{width:14px;height:14px;border-radius:50%;border:2px solid var(--earth);border-right-color:transparent;animation:tv-spin .8s linear infinite;flex:none}
@keyframes tv-spin{to{transform:rotate(360deg)}}
.tv-roblox__err{margin:2px 0 0;font-size:.75rem;font-weight:700;color:#b3261e}
.tv-roblox__result{display:flex;align-items:center;gap:10px;margin-top:6px;padding:6px;border:2px dashed rgba(17,30,41,.3);border-radius:10px}
.tv-roblox__result img{width:32px;height:32px;border-radius:50%;object-fit:cover}
.tv-roblox__result span{display:flex;flex-direction:column;min-width:0;flex:1;font-size:.8125rem}
.tv-roblox__result button{min-height:44px;padding:0 14px;border-radius:8px;border:2px solid var(--night);background:var(--night);color:var(--sun);font-weight:800;cursor:pointer}
.tv-cells{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.tv-cell{border:2.5px solid var(--night);border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.tv-cell--wide{grid-column:1/-1}
.tv-cell label,.tv-cell__k{font-size:.625rem;letter-spacing:.2em;text-transform:uppercase;color:var(--earth);font-weight:700}
.tv-cell input,.tv-cell select{border:none;background:transparent;font:700 .9375rem var(--font);color:var(--night);min-height:32px;padding:0;width:100%}
.tv-cell input:focus,.tv-cell select:focus{outline:none}
.tv-cell:focus-within{box-shadow:0 0 0 3px var(--deep-2)}
.tv-cell [aria-invalid="true"]{color:#b3261e}
.tv-cell:has([aria-invalid="true"]){border-color:#b3261e}
.tv-req{color:#b3261e}
.tv-qty{display:flex;align-items:center;gap:6px}
.tv-qty button{width:44px;height:44px;flex:none;border-radius:8px;border:2px solid var(--night);background:transparent;color:var(--night);font-weight:900;cursor:pointer}
.tv-qty input{text-align:center;-moz-appearance:textfield;appearance:textfield}
.tv-qty input::-webkit-inner-spin-button,.tv-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tv-stamp{position:absolute;right:22px;top:46%;transform:translateY(-50%) rotate(-16deg);border:4px solid var(--earth);color:var(--earth);border-radius:12px;padding:6px 12px;font-weight:900;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;background:rgba(248,245,237,.6);box-shadow:inset 0 0 0 2px var(--off),inset 0 0 0 4px var(--earth)}
@media (max-width:640px){
  .tv-ticket{grid-template-columns:1fr}
  .tv-ticket::before,.tv-ticket::after{display:none}
  .tv-ticket__stub{border-left:none;border-top:3px dashed rgba(17,30,41,.35);border-radius:0 0 calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px);flex-direction:row;align-items:center}
  .tv-barcode{width:110px;flex:none}
  .tv-cells{grid-template-columns:1fr}
}
/* ===== status do pagamento/pedido (tv-pstat): usado em pages/payment.html e pages/order.html ===== */
.tv-pstat{display:inline-flex;align-items:center;gap:10px;margin:0;border:2px solid var(--sun);color:var(--sun);border-radius:999px;padding:7px 14px;font-weight:800;font-size:.75rem;line-height:1.4;text-transform:uppercase;letter-spacing:.08em}
.tv-pstat i{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:currentColor}
.tv-pstat--wait i{animation:tv-pulse 1.4s ease-in-out infinite}
.tv-pstat--ok{border-color:var(--ok);color:var(--ok)}
.tv-pstat--bad{border-color:var(--earth);color:var(--earth)}
@keyframes tv-pulse{0%,100%{box-shadow:0 0 0 0 rgba(216,167,58,.6)}50%{box-shadow:0 0 0 7px rgba(216,167,58,0)}}
@media (prefers-reduced-motion:reduce){.tv-pstat--wait i{animation:none}}
/* tv-pstat sobre o papel da mini-passagem (account/orders): pílula escura para manter contraste */
.tv-minipass .tv-pstat{background:var(--night)}
.tv-minipass .tv-pstat--bad{color:var(--sand)}
