:root {
    --sky: #73b9df;
    --blue: #183d75;
    --blue-dark: #102c59;
    --red: #b51d19;
    --red-dark: #8d1613;
    --ink: #15233b;
    --muted: #63718a;
    --line: #dce5ef;
    --surface: #ffffff;
    --canvas: #f3f7fb;
    --green: #0e8b67;
    --shadow: 0 18px 48px rgba(24, 61, 117, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid rgba(24,61,117,.09);
    backdrop-filter: blur(14px);
}
.site-header-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: #fff; background: var(--blue); box-shadow: 4px 4px 0 var(--red); transform: rotate(-4deg); }
.brand-mark i { transform: rotate(4deg); font-size: 19px; }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { letter-spacing: .08em; font-size: 18px; }
.brand small { color: var(--red); margin-top: 5px; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.official-badge { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.official-badge i { color: var(--green); margin-right: 5px; }
.btn-header, .btn-poster, .btn-checkout { border: 0; color: #fff; font-weight: 800; }
.btn-header { background: var(--red); border-radius: 9px; padding: 11px 17px; }
.btn-header:hover, .btn-poster:hover { color: #fff; background: var(--red-dark); }
.landing-main { width: min(1180px, calc(100% - 36px)); margin: 28px auto 72px; }
.poster-section { position: relative; overflow: hidden; background: var(--sky); border-radius: 24px; box-shadow: var(--shadow); }
.poster-section picture, .poster-section img { display: block; width: 100%; }
.poster-section img { height: auto; }
.poster-cta { position: absolute; right: 24px; bottom: 23px; display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 15px; color: #fff; background: rgba(16,44,89,.92); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; box-shadow: 0 10px 25px rgba(16,44,89,.25); }
.poster-cta span { font-size: 13px; font-weight: 700; }
.poster-cta span i { color: #75ddae; }
.btn-poster { padding: 10px 14px; background: var(--red); border-radius: 9px; white-space: nowrap; }
.event-intro { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 24px 0 18px; padding: 25px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(24,61,117,.05); }
.section-kicker { display: block; color: var(--red); font-weight: 900; font-size: 11px; letter-spacing: .15em; }
.event-intro h1, .checkout-heading h2, .account-card h2 { margin: 4px 0 5px; color: var(--blue); font-weight: 900; letter-spacing: -.025em; }
.event-intro h1 { font-size: clamp(24px, 3vw, 36px); }
.event-intro p { margin: 0; color: var(--muted); }
.event-facts { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-top: 14px; color: var(--blue); font-size: 14px; font-weight: 700; }
.event-facts i { color: var(--red); }
.intro-lock { display: flex; align-items: center; gap: 10px; min-width: 160px; padding: 13px 15px; color: var(--green); border: 1px solid #cdeee2; border-radius: 12px; background: #f1fbf7; font-weight: 800; }
.intro-lock i { font-size: 24px; }
.intro-lock small { color: var(--muted); font-weight: 600; }
.account-card, .checkout-section, .help-strip { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 28px rgba(24,61,117,.05); }
.account-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); align-items: center; gap: 20px; margin: 18px 0; padding: 24px 28px; }
.account-card h2 { font-size: 22px; }
.account-copy p { max-width: 700px; margin: 0; color: var(--muted); }
.account-action { justify-self: end; width: min(100%, 330px); text-align: right; }
.google-login-button { min-height: 44px; }
.google-login-button > div { margin-left: auto; }
.account-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.account-note i { color: var(--blue); }
.account-logged-in { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-profile { display: inline-flex; align-items: center; gap: 11px; }
.account-profile strong, .account-profile small { display: block; }
.account-profile strong { color: var(--blue); }
.account-profile small { color: var(--muted); font-size: 13px; }
.account-avatar, .account-picture { width: 40px; height: 40px; border-radius: 50%; }
.account-avatar { display: grid; place-items: center; color: var(--blue); background: #e8f0ff; }
.account-picture { object-fit: cover; }
.btn-account-light { color: var(--blue); border: 1px solid #cfdaea; background: #f8fbff; font-weight: 800; }
.account-sales { grid-column: 1 / -1; display: grid; gap: 8px; }
.account-sales-title { margin: 3px 0 0; color: var(--blue); font-size: 14px; font-weight: 900; }
.account-sale-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }
.account-sale-row strong, .account-sale-row small { display: block; }
.account-sale-row strong { color: var(--blue); font-size: 14px; }
.account-sale-row small { color: var(--muted); font-size: 12px; }
.account-sale-row .btn { white-space: nowrap; font-size: 12px; }
.checkout-section { padding: 30px 28px 28px; }
.checkout-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.checkout-heading h2 { font-size: 30px; }
.checkout-heading p { margin: 0; color: var(--muted); }
.checkout-secure { flex: 0 0 auto; padding: 9px 13px; color: var(--green); border: 1px solid #ccecdf; border-radius: 999px; background: #f0fcf7; font-weight: 800; font-size: 13px; }
.purchase-card { padding: 21px; border: 1px solid #e2e9f2; border-radius: 16px; background: #fbfdff; }
.ticket-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ticket-option { position: relative; display: flex; flex-direction: column; min-height: 162px; padding: 17px; border: 2px solid #e1e8f2; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.ticket-option:hover { border-color: #9fb9dc; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24,61,117,.08); }
.ticket-option.selected { border-color: var(--red); box-shadow: 0 9px 22px rgba(181,29,25,.12); }
.ticket-option.selected::after { position: absolute; top: 11px; right: 12px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; content: "✓"; font-size: 14px; font-weight: 900; border-radius: 50%; background: var(--red); }
.ticket-option input { position: absolute; opacity: 0; pointer-events: none; }
.ticket-index { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.ticket-option h3 { max-width: 85%; margin: 7px 0 3px; color: var(--blue); font-size: 18px; font-weight: 900; }
.ticket-option p { min-height: 43px; margin: 0; color: var(--muted); font-size: 13px; }
.ticket-price { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.ticket-price strong { color: var(--red); font-size: 22px; }
.ticket-price span { color: var(--green); font-size: 12px; font-weight: 800; }
.configuration-note { margin: 10px 0 0; padding: 10px 12px; color: #7b5b13; border: 1px solid #f1dfad; border-radius: 10px; background: #fff9e9; font-size: 13px; }
.purchase-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 20px; margin-top: 24px; }
.buyer-data, .quantity-panel { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.form-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.form-section-title > span { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 13px; font-weight: 900; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { color: var(--blue); }
.form-section-title small { color: var(--muted); font-size: 12px; }
label { display: block; margin-bottom: 6px; color: var(--blue); font-size: 13px; font-weight: 800; }
.form-control { min-height: 46px; border-color: #d6e0eb; border-radius: 9px; }
.form-control:focus { border-color: var(--sky); box-shadow: 0 0 0 .2rem rgba(115,185,223,.22); }
.quantity-panel > label { margin-top: 2px; }
.quantity-control { display: grid; grid-template-columns: 42px 1fr 42px; overflow: hidden; border: 1px solid #d6e0eb; border-radius: 9px; }
.quantity-control button { color: var(--blue); border: 0; background: #edf4fc; font-weight: 900; }
.quantity-control button:hover { background: #dceafa; }
.quantity-control input { width: 100%; min-height: 44px; text-align: center; color: var(--blue); border: 0; outline: none; font-weight: 900; }
.order-total { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #ccd7e5; color: var(--muted); font-size: 13px; }
.order-total strong { color: var(--red); font-size: 21px; }
.holder-fields { margin-top: 20px; padding: 17px; border: 1px solid #dce5ef; border-radius: 13px; background: #f9fbfe; }
.holder-fields .form-section-title { margin-bottom: 4px; }
.holder-help { margin: 0 0 13px 39px; color: var(--muted); font-size: 12px; }
.holder-row { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line); }
.holder-row:first-of-type { border-top: 0; }
.holder-row > span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--blue); border-radius: 50%; background: #e6f0fc; font-size: 12px; font-weight: 900; }
.holder-row small { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.holder-row input { min-height: 41px; }
.payment-step { margin: 22px 0 12px; }
.btn-checkout { min-height: 53px; background: var(--red); font-size: 17px; border-radius: 10px; }
.btn-checkout:hover { background: var(--red-dark); }
.btn-checkout:disabled { opacity: .65; }
.payment-legal { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.payment-legal i { color: var(--green); }
.event-message { margin-bottom: 14px; padding: 13px 15px; border-radius: 11px; font-size: 14px; }
.error-message { color: #8d1613; border: 1px solid #f2c5c2; background: #fff1f0; }
.status-host { margin-top: 20px; }
.payment-result, .tickets-result { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.payment-result { text-align: center; }
.result-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 11px; color: var(--blue); border-radius: 50%; background: #eaf2ff; font-size: 23px; }
.payment-result h3, .tickets-result h3 { margin: 0 0 6px; color: var(--blue); font-weight: 900; }
.payment-result p, .tickets-result p { color: var(--muted); }
.payment-url { display: block; overflow: hidden; max-width: 620px; margin: 12px auto; padding: 10px 12px; color: var(--blue); border: 1px dashed #aec1da; border-radius: 8px; background: #f7faff; text-overflow: ellipsis; white-space: nowrap; }
.payment-qr { display: grid; place-items: center; width: 192px; min-height: 192px; margin: 17px auto; padding: 7px; border: 1px solid #e0e8f2; border-radius: 10px; background: #fff; }
.payment-qr img { display: block; max-width: 100%; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.tickets-result { padding-bottom: 18px; }
.tickets-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.print-ticket { position: relative; padding: 17px; overflow: hidden; border: 1px solid #d8e2ee; border-top: 5px solid var(--red); border-radius: 13px; background: #fff; }
.print-ticket::after { position: absolute; top: 50px; right: -23px; width: 75px; height: 75px; content: ""; border-radius: 50%; background: rgba(115,185,223,.12); }
.print-ticket-brand { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 900; }
.print-ticket-brand i { color: var(--red); }
.print-ticket h4 { margin: 13px 0 3px; color: var(--blue); font-size: 17px; font-weight: 900; }
.print-ticket .holder-name { margin: 0 0 2px; font-weight: 800; }
.print-ticket .ticket-meta { margin: 0; color: var(--muted); font-size: 12px; }
.ticket-qr { display: grid; place-items: center; min-height: 142px; margin: 13px 0 8px; }
.ticket-qr img { width: 135px; height: 135px; }
.ticket-barcode { display: block; width: 100%; height: 42px; }
.ticket-code { display: block; margin-top: 6px; color: var(--blue); text-align: center; font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.ticket-status { display: inline-block; margin-top: 9px; padding: 4px 8px; color: var(--green); border-radius: 999px; background: #e6f8f0; font-size: 11px; font-weight: 900; }
.empty-account { margin: 0; color: var(--muted); font-size: 13px; }
.help-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; padding: 20px 24px; }
.help-strip > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 11px; }
.help-strip i { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; color: var(--red); border-radius: 10px; background: #fff0ee; }
.help-strip strong { color: var(--blue); font-size: 14px; }
.help-strip span { color: var(--muted); font-size: 12px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 34px; color: var(--muted); font-size: 13px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: var(--blue); letter-spacing: .08em; }
.site-footer span:last-child { color: var(--red); font-weight: 900; }
.noscript-message { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 30px; color: var(--blue); background: #fff; text-align: center; font-weight: 800; }
.d-none { display: none !important; }

@media (max-width: 900px) {
    .ticket-options { grid-template-columns: repeat(3, minmax(175px, 1fr)); overflow-x: auto; padding-bottom: 5px; }
    .ticket-option { min-width: 175px; }
    .purchase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .site-header-inner, .landing-main, .site-footer { width: min(100% - 24px, 620px); }
    .site-header-inner { min-height: 65px; }
    .official-badge { display: none; }
    .btn-header { padding: 9px 11px; font-size: 13px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand strong { font-size: 16px; }
    .landing-main { margin-top: 12px; margin-bottom: 45px; }
    .poster-section { margin-right: -12px; margin-left: -12px; border-radius: 0; box-shadow: none; }
    .poster-cta { position: static; display: flex; justify-content: space-between; border: 0; border-radius: 0; box-shadow: none; padding: 12px; }
    .poster-cta span { font-size: 11px; }
    .poster-cta span i { margin-right: 2px !important; }
    .btn-poster { padding: 9px 10px; font-size: 12px; }
    .event-intro { align-items: flex-start; margin-top: 15px; padding: 19px 17px; }
    .event-intro h1 { font-size: 25px; }
    .intro-lock { display: none; }
    .account-card { display: block; padding: 19px 17px; }
    .account-card h2 { font-size: 20px; }
    .account-action { width: 100%; margin-top: 16px; text-align: left; }
    .google-login-button > div { margin-left: 0; }
    .account-logged-in { margin-top: 17px; }
    .account-sale-row { align-items: flex-start; flex-direction: column; }
    .checkout-section { padding: 21px 13px 14px; border-radius: 16px; }
    .checkout-heading { display: block; }
    .checkout-heading h2 { font-size: 26px; }
    .checkout-secure { display: inline-block; margin-top: 13px; }
    .purchase-card { padding: 11px; }
    .ticket-options { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(225px, 82%); margin-right: -2px; margin-left: -2px; }
    .ticket-option { min-height: 148px; }
    .buyer-data, .quantity-panel, .holder-fields { padding: 13px; }
    .holder-row { grid-template-columns: 26px 1fr; }
    .holder-row > div { grid-column: 2; }
    .holder-row small { grid-column: 2; }
    .tickets-result, .payment-result { padding: 17px 12px; }
    .tickets-result-head { display: block; }
    .tickets-result-head .btn { width: 100%; margin-top: 10px; }
    .help-strip { grid-template-columns: 1fr; padding: 17px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 20px; }
}

@media print {
    body { background: #fff; }
    #site-header, .poster-section, .event-intro, #account-section, #compra, .help-strip, .site-footer, .noscript-message { display: none !important; }
    .landing-main { width: 100%; margin: 0; }
    .status-host { margin: 0; }
    .tickets-result { padding: 0; border: 0; box-shadow: none; }
    .tickets-result-head { margin-bottom: 15px; }
    .tickets-result-head .btn, .result-actions { display: none !important; }
    .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .print-ticket { break-inside: avoid; page-break-inside: avoid; }
    .print-ticket::after { display: none; }
}
