/* Event ticketing — public event pages and the gate scanner. Builds on site.css tokens. */
.tk-hero { position: relative; color: #fff; background: linear-gradient(160deg, var(--lp-navy, #123b56) 0%, var(--lp-blue, #1A5276) 60%, #17708a 100%); padding: 56px 0 48px; overflow: hidden; }
.tk-hero.has-image { background-size: cover; background-position: center; }
.tk-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,34,51,.55), rgba(15,34,51,.85)); }
.tk-hero > * { position: relative; }
.tk-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .5rem 0 1rem; }
.tk-hero .tk-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; color: rgba(255,255,255,.9); }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.tk-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lp-line, #e3e9ef); border-radius: 16px; overflow: hidden; text-decoration: none !important; color: var(--lp-ink, #0f2233) !important; transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.tk-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(18,59,86,.45); }
.tk-card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--lp-blue, #1A5276), var(--lp-teal, #21c4cf)); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 2rem; }
.tk-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tk-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tk-card-body h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.tk-card-meta { font-size: .85rem; color: var(--lp-muted, #5b6b7b); }
.tk-price { margin-top: auto; font-weight: 800; color: var(--lp-blue, #1A5276); }
.tk-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tk-filters .form-control { width: auto; min-width: 150px; border-radius: 10px; }
.tk-panel { background: #fff; border: 1px solid var(--lp-line, #e3e9ef); border-radius: 16px; padding: 1.25rem; }
.tk-ticket-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--lp-line, #e3e9ef); }
.tk-ticket-row:last-child { border-bottom: 0; }
.tk-ticket-row .form-control { width: 84px; }
.tk-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #eef4f8; color: var(--lp-blue, #1A5276); }
.tk-notice { border-radius: 12px; padding: .9rem 1rem; background: #fff7e6; border: 1px solid #f6c453; color: #6b4a00; }
.tk-ticket { border: 2px dashed var(--lp-line, #e3e9ef); border-radius: 16px; padding: 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; background: #fff; }
.tk-ticket svg { width: 180px; height: 180px; }
.tk-sticky { position: sticky; top: 90px; }
@media (max-width: 575px) {
    .tk-ticket { grid-template-columns: 1fr; text-align: center; }
    .tk-ticket svg { margin: 0 auto; width: 220px; height: 220px; }
    .tk-ticket-row { flex-wrap: wrap; }
}

/* Gate scanner (mobile first) */
.sc-body { background: #0f2233; color: #fff; min-height: 100vh; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: #123b56; position: sticky; top: 0; z-index: 5; }
.sc-top a, .sc-top a:hover { color: #fff; }
.sc-wrap { max-width: 560px; margin: 0 auto; padding: 1rem; }
.sc-video { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #000; border-radius: 16px; overflow: hidden; }
.sc-video video { width: 100%; height: 100%; object-fit: cover; }
.sc-video .sc-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.75); border-radius: 18px; pointer-events: none; }
.sc-result { border-radius: 16px; padding: 1rem 1.1rem; margin-top: 1rem; display: none; }
.sc-result.is-visible { display: block; }
.sc-result h2 { font-weight: 900; letter-spacing: .04em; margin: 0 0 .25rem; font-size: 1.9rem; }
.sc-result.tone-success { background: #1e8e3e; }
.sc-result.tone-warning { background: #e59b2f; color: #1d1300; }
.sc-result.tone-danger { background: #c62828; }
.sc-btn { min-height: 48px; font-weight: 700; border-radius: 12px; }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.sc-stats div { background: rgba(255,255,255,.08); border-radius: 12px; padding: .6rem; text-align: center; }
.sc-stats strong { display: block; font-size: 1.4rem; }
.sc-body .form-control { min-height: 48px; font-size: 1.05rem; }
.sc-body label { font-weight: 600; }
