/* assets/ui/tickets.css - public Awards and Tickets pages (awards.php, tickets.php, buy_ticket.php, ticket_order.php) */
.tk-page { background: #F8F9FF; }
.tk-hero { padding: 120px 0 40px; background: linear-gradient(180deg, #F1EFFF 0%, #F8F9FF 100%); }
.tk-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 8px 0 10px; color: #1A1A2E; }
.tk-hero .lead { color: #555; max-width: 680px; }
.tk-back { text-decoration: none; color: #6C63FF; font-weight: 500; display: inline-block; margin-bottom: 10px; }
.tk-room { display: inline-block; background: rgba(108, 99, 255, .1); color: #554FD8; border-radius: 20px; padding: 4px 12px; font-size: .85rem; font-weight: 600; margin-left: 10px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #555; }
.tk-desc { color: #555; margin-top: 12px; max-width: 760px; }
.tk-main { padding-bottom: 70px; }
.tk-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(108, 99, 255, .1); margin-bottom: 20px; }
.tk-muted-icon { color: rgba(108, 99, 255, .4); }
.tk-step { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tk-step span:first-child { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6C63FF, #FF6584); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.tk-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tk-tier { position: relative; cursor: pointer; margin: 0; }
.tk-tier input { position: absolute; opacity: 0; }
.tk-tier-body { border: 2px solid #ececf6; border-radius: 16px; padding: 16px; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tk-tier input:checked + .tk-tier-body { border-color: #6C63FF; box-shadow: 0 8px 20px rgba(108, 99, 255, .18); transform: translateY(-2px); }
.tk-tier input:focus-visible + .tk-tier-body { outline: 3px solid rgba(108, 99, 255, .4); }
.tk-tier-name { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.tier-normal .tk-tier-name { color: #13795B; }
.tier-vip .tk-tier-name { color: #B26A00; }
.tier-vvip .tk-tier-name { color: #C0283E; }
.tk-tier-price { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.35rem; margin: 4px 0; color: #1A1A2E; }
.tk-tier-benefits { font-size: .82rem; color: #666; margin-bottom: 6px; }
.tk-tier-left { font-size: .78rem; color: #6C63FF; font-weight: 600; }
.tk-tier.soldout { cursor: not-allowed; opacity: .55; }
.tk-tier.soldout .tk-tier-left { color: #C0283E; }
.tk-total { font-size: 1.05rem; background: #F4F3FF; border-radius: 12px; padding: 10px 14px; width: 100%; }
.tk-page .form-control, .tk-page .form-select { border-radius: 12px; border: 2px solid #eee; padding: 10px 14px; }
.tk-page .form-control:focus, .tk-page .form-select:focus { border-color: #6C63FF; box-shadow: 0 0 0 .2rem rgba(108, 99, 255, .15); }
.tk-btn { background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%); color: #fff !important; border: none; border-radius: 12px; padding: 12px 20px; font-weight: 600; }
.tk-btn:hover { opacity: .92; }
.tk-btn:disabled { opacity: .55; }
.tk-otp { font-size: 1.3rem; letter-spacing: 6px; text-align: center; max-width: 220px; }
.tk-wait { text-align: center; padding: 20px 0; }
.tk-wait i { font-size: 2.4rem; color: #6C63FF; }
.tk-accounts { display: grid; gap: 10px; }
.tk-account { display: flex; align-items: center; gap: 14px; border: 2px solid #ececf6; border-radius: 14px; padding: 12px 14px; }
.tk-account > i { width: 40px; height: 40px; border-radius: 12px; background: rgba(108, 99, 255, .1); color: #6C63FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tk-acc-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 1px; }
.tk-side { position: sticky; top: 100px; }

/* listing cards (awards.php, tickets.php) */
.tk-search { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(108, 99, 255, .1); margin-top: -28px; position: relative; }
.tk-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tk-pills a { border: 2px solid #ececf6; border-radius: 20px; padding: 5px 14px; font-size: .85rem; color: #1A1A2E; text-decoration: none; background: #fff; }
.tk-pills a.on { border-color: #6C63FF; color: #6C63FF; background: rgba(108, 99, 255, .06); }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 24px; }
.tk-item { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(108, 99, 255, .1); display: flex; flex-direction: column; transition: transform .2s; }
.tk-item:hover { transform: translateY(-4px); }
.tk-item-top { background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%); color: #fff; padding: 18px 20px; position: relative; }
.tk-item-top h3 { font-size: 1.15rem; font-weight: 800; margin: 6px 0 0; line-height: 1.3; word-break: break-word; }
.tk-item-top .tk-code { font-size: .78rem; opacity: .85; letter-spacing: .05em; }
.tk-badge { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .22); color: #fff; }
.tk-badge.live { background: #36D399; }
.tk-item-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: #555; }
.tk-item-body .row-x { display: flex; align-items: center; gap: 8px; }
.tk-item-body .row-x i { width: 18px; color: #6C63FF; text-align: center; }
.tk-prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.tk-price-chip { border-radius: 10px; padding: 3px 9px; font-size: .78rem; font-weight: 600; background: #F4F3FF; color: #554FD8; }
.tk-item-foot { padding: 0 20px 20px; display: flex; gap: 8px; }
.tk-item-foot .btn { flex: 1; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.tk-empty { text-align: center; padding: 60px 10px; color: #777; }
.tk-empty i { font-size: 2.6rem; color: rgba(108, 99, 255, .35); margin-bottom: 12px; }
.tk-pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.tk-pager a, .tk-pager span { border-radius: 10px; padding: 6px 13px; border: 2px solid #ececf6; text-decoration: none; color: #1A1A2E; background: #fff; }
.tk-pager span { border-color: #6C63FF; color: #6C63FF; }

/* ticket_order.php */
.tk-ticket { border: 2px dashed #d9d6ff; border-radius: 18px; padding: 16px; display: flex; gap: 16px; align-items: center; margin-bottom: 12px; background: #fff; }
.tk-ticket .qr { width: 96px; height: 96px; flex-shrink: 0; }
.tk-ticket .qr img, .tk-ticket .qr canvas { width: 96px !important; height: 96px !important; }
.tk-ticket-code { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.4rem; letter-spacing: 2px; }
.tk-ticket.used { opacity: .55; }
.tk-status { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.tk-status.paid { background: #E3F9EF; color: #13795B; }
.tk-status.waiting { background: #FFF4E0; color: #8a5300; }
.tk-status.bad { background: #FFE5E8; color: #C0283E; }

@media (max-width: 576px) {
    .tk-hero { padding: 100px 0 30px; }
    .tk-room { margin-left: 0; }
    .tk-card { padding: 18px; }
    .tk-side { position: static; }
    .tk-ticket { flex-direction: column; text-align: center; }
}
@media print {
    .navbar, footer, .sv-ui, .tk-back, .no-print { display: none !important; }
    .tk-hero { padding: 10px 0; }
}

/* awards.php: the award's logo as the card background (SimuVote logo as a white watermark when the award has none), taller cards */
.tk-award-top { position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.tk-award-top > * { position: relative; z-index: 2; }
.tk-award-top::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--logo) right -20px center / auto 115% no-repeat; filter: brightness(0) invert(1); opacity: .16; }
.tk-award-top.has-logo { background: #1A1A2E; }
/* The award's logo fills the whole top of the card; dark shades top and bottom keep the badge and name readable */
.tk-award-top.has-logo::before { background: var(--logo) center / cover no-repeat; filter: none; opacity: 1; transition: transform .4s ease; }
.tk-award-top.has-logo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26, 26, 46, .45) 0%, rgba(26, 26, 46, 0) 30%, rgba(26, 26, 46, 0) 45%, rgba(26, 26, 46, .9) 100%); }
.tk-award-top.has-logo .tk-badge { background: rgba(26, 26, 46, .6); color: #fff; backdrop-filter: blur(4px); }
.tk-award-top.has-logo .tk-badge.live { background: #36D399; }
.tk-item:hover .tk-award-top.has-logo::before { transform: scale(1.05); }
.tk-award-top .tk-badge { margin-bottom: auto; }
.tk-award-top h3 { text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.tk-grid .tk-item { min-height: 450px; }
.tk-item-body { padding: 18px 20px; gap: 8px; }

/* Buy page: event header with the award's logo in a framed tile (whole logo shown, never cropped) */
.tk-event-head { display: flex; align-items: center; gap: 28px; }
.tk-event-head.has-logo { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 14px 40px rgba(108, 99, 255, .12); margin-top: 6px; }
.tk-event-logo { width: 168px; height: 168px; flex-shrink: 0; border-radius: 20px; padding: 6px; background: linear-gradient(135deg, #6C63FF, #FF6584); box-shadow: 0 10px 26px rgba(108, 99, 255, .25); }
.tk-event-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 15px; background: #fff; display: block; }
.tk-event-info { min-width: 0; }
.tk-event-info h1 { margin-top: 10px; word-break: break-word; }
.tk-event-head.has-logo .tk-event-info h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.tk-event-info .tk-desc { margin-bottom: 0; }
@media (max-width: 576px) {
    .tk-event-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .tk-event-head.has-logo { padding: 16px; }
    .tk-event-logo { width: 110px; height: 110px; border-radius: 16px; padding: 5px; }
}
.tk-page .btn-outline-primary { color: #6C63FF; border-color: #6C63FF; }
.tk-page .btn-outline-primary:hover { background: #6C63FF; border-color: #6C63FF; color: #fff; }

/* Payment proof on the buy page */
.tk-proof-intro { background: #F4F2FF; color: #4b45b8; border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }
.tk-upload { display: flex; align-items: center; gap: 14px; border: 2px dashed #CFCBFF; border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #FBFAFF; transition: border-color .2s, background .2s; margin: 0; }
.tk-upload:hover, .tk-upload.has-file { border-color: #6C63FF; background: #F4F2FF; }
.tk-upload-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #6C63FF, #FF6584); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.tk-upload-text { flex: 1; font-size: .9rem; color: #444; line-height: 1.35; word-break: break-word; }
.tk-upload-text small { display: block; color: #888; font-size: .76rem; margin-top: 2px; }
.tk-upload-preview { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }

/* Order page: payment sent, and link not found */
.tk-thanks { text-align: center; }
.tk-thanks-icon, .tk-notfound-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.tk-thanks-icon { background: #E3F9EF; color: #13795B; }
.tk-notfound-icon { background: #F1EFFF; color: #6C63FF; }
.tk-thanks h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem; }
.tk-steps { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 420px; text-align: left; }
.tk-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #999; font-weight: 500; }
.tk-steps li span { width: 32px; height: 32px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.tk-steps li.done { color: #13795B; } .tk-steps li.done span { background: #36D399; color: #fff; }
.tk-steps li.now { color: #8a5300; } .tk-steps li.now span { background: #FFB347; color: #fff; }
.tk-sent { background: #F8F9FF; border-radius: 12px; padding: 10px 14px; display: inline-flex; flex-direction: column; gap: 4px; text-align: left; }
.tk-paymsg { max-width: 260px; white-space: normal; background: #F8F9FF; border-radius: 8px; padding: 6px 8px; margin-top: 4px; color: #444; }

/* Awards and Tickets page headers: same look as the Subscriptions page header (centred, gradient title) */
.tk-hero.tk-hero-plan { text-align: center; padding: 120px 0 44px; background: radial-gradient(circle at 10% 30%, rgba(108, 99, 255, .03) 0%, rgba(255, 101, 132, .02) 100%); }
.tk-hero.tk-hero-plan h1 { display: inline-block; font-size: clamp(1.7rem, 3.6vw, 2.15rem); font-weight: 800; margin: 0 0 10px; background: linear-gradient(135deg, #1A1A2E 30%, #6C63FF 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tk-hero.tk-hero-plan .lead { font-size: 1.1rem; color: #5a5a7a; max-width: 700px; margin: 0 auto; }
@media (max-width: 991px) { .tk-hero.tk-hero-plan { padding: 100px 0 46px; } }
@media (max-width: 576px) { .tk-hero.tk-hero-plan .lead { font-size: 1rem; } }
