:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #dce2ea;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger: #dc2626;
    --gold: #c24632;
    --platinum: #d9c92e;
    --lounge: #2f8f55;
    --used: #1f2937;
    --selected: #2563eb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.topbar div { display: grid; gap: 2px; }
.topbar strong { font-size: 15px; }
.topbar span, .topbar a, .nav-btn { color: var(--muted); font-size: 12px; }
.topbar nav { display: flex; gap: 10px; align-items: center; }
.topbar a, .nav-btn { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 34px; }

.app-shell, .scanner-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 14px;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stats-strip div {
    display: grid;
    gap: 2px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats-strip b { font-size: 22px; }
.stats-strip span { color: var(--muted); font-size: 12px; }

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.tab, button, .primary, .ghost, .danger-btn {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.tab { background: #e7edf4; color: #334155; font-weight: 700; }
.tab.active { background: var(--text); color: #fff; }

.legend {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.seat-free { background: #fff; border: 1px solid #cbd5e1; }
.seat-selected { background: var(--selected); }
.seat-booked { background: var(--gold); }
.seat-used { background: var(--used); }

.audi-panel { display: none; }
.audi-panel.active { display: block; }

.entry-band, .screen-band {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 36px;
    background: #b93429;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    border-radius: 8px 8px 0 0;
}

.screen-band {
    margin-top: 12px;
    border-radius: 0 0 8px 8px;
    background: #d97706;
}

.seat-map {
    overflow-x: auto;
    padding: 12px 0;
    background: #fff;
    border-inline: 1px solid var(--line);
}

.seat-row {
    display: grid;
    grid-template-columns: 26px max-content 26px;
    align-items: center;
    gap: 6px;
    min-width: max-content;
    padding: 2px 10px;
}

.row-label {
    display: grid;
    place-items: center;
    height: 30px;
    color: #fff;
    font-weight: 800;
    border-radius: 4px;
    background: var(--gold);
}

.section-lounge .row-label { background: var(--lounge); }
.section-platinum .row-label { background: var(--platinum); color: #111827; }
.section-gold .row-label { background: var(--gold); }
.section-lounge .seat { border-color: rgba(47,143,85,.45); }
.section-platinum .seat { border-color: rgba(217,201,46,.65); }
.section-gold .seat { border-color: rgba(194,70,50,.45); }

.seat-line {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 34px;
    gap: 4px;
}

.seat {
    width: 34px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    color: #111827;
    background: #fff;
    font-weight: 800;
    border: 1px solid #cbd5e1;
}

.seat.gap-after { margin-right: 28px; }
.seat.selected { background: var(--selected) !important; color: #fff; outline: 2px solid #93c5fd; }
.seat.booked { background: #991b1b !important; color: #fff; }
.seat.used { background: var(--used) !important; color: #fff; }

.selection-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 15;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .25);
}

.primary, .ghost, .danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-weight: 800;
}

.primary { background: var(--primary); color: #fff; }
.primary:hover { background: var(--primary-dark); }
.ghost { background: #eef2f7; color: #111827; border: 1px solid var(--line); }
.danger-btn { background: #fee2e2; color: var(--danger); }

.modal {
    width: min(640px, calc(100% - 24px));
    border: 0;
    padding: 0;
    border-radius: 14px;
    background: transparent;
}

.modal::backdrop { background: rgba(15, 23, 42, .48); }
.modal-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .25);
}

.modal-card header, .modal-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.modal-card footer { justify-content: flex-end; flex-wrap: wrap; }
.modal-card h2 { margin: 0; font-size: 18px; }
.modal-card header small { color: var(--muted); font-size: 12px; }
.icon-btn { width: 38px; min-height: 38px; background: #f1f5f9; font-size: 24px; line-height: 1; }

label { display: grid; gap: 6px; color: #374151; font-size: 13px; font-weight: 700; }
input, select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 11px;
    font: inherit;
    background: #fff;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selected-chips, .guest-results { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .guest-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    font-size: 13px;
}
.guest-card { width: 100%; text-align: left; min-height: auto; }
.guest-card.active { border-color: var(--primary); background: #e6fffb; }
.guest-card b, .detail-stack b { display: block; }
.guest-card small, .detail-stack small { color: var(--muted); }
.divider { text-align: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.divider span { position: relative; top: -9px; background: #fff; padding: 0 10px; }
.detail-stack { display: grid; gap: 10px; }
.detail-stack div { padding: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }

.auth-page, .ticket-page {
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-card, .ticket-card {
    width: min(430px, 100%);
    display: grid;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .10);
}

.login-card h1, .ticket-card h1 { margin: 0; font-size: 24px; }
.login-card p { margin: 0; color: var(--muted); }
.form-stack { display: grid; gap: 12px; }
.brand-dot { width: 46px; height: 46px; border-radius: 12px; background: var(--primary); }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.alert.danger { color: #991b1b; background: #fee2e2; }

.scanner-shell { display: grid; gap: 14px; }
.scanner-box, .scan-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}
#reader { width: 100%; overflow: hidden; border-radius: 10px; }
.manual-scan { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.scan-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.scan-result.empty { color: var(--muted); }
.scan-result.success { border-color: #86efac; background: #f0fdf4; }
.scan-result.used { border-color: #fca5a5; background: #fff1f2; }

.ticket-card { text-align: center; }
.pill { justify-self: center; padding: 7px 10px; background: #eef2f7; color: #334155; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.ticket-grid div { padding: 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.ticket-grid small { display: block; color: var(--muted); }
.qr { width: 220px; height: 220px; justify-self: center; }
.share-wide { width: 100%; }

@media (min-width: 760px) {
    .app-shell, .scanner-shell { padding: 22px; }
    .scanner-shell { grid-template-columns: 420px 1fr; align-items: start; }
    .selection-bar { width: min(720px, calc(100% - 24px)); left: 50%; right: auto; transform: translateX(-50%); }
}

@media (max-width: 560px) {
    .topbar { align-items: flex-start; }
    .grid-2, .ticket-grid { grid-template-columns: 1fr; }
    .seat-line { grid-auto-columns: 31px; }
    .seat { width: 31px; font-size: 12px; }
    .selection-bar { grid-template-columns: 1fr 72px 88px; }
}

.guest-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.guest-actions button {
    min-height: 34px;
    padding: 0 10px;
}
.registration-card {
    gap: 12px;
}

.registration-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.form-actions {
    margin-top: -4px;
}

.guest-list-panel {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.guest-list-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
}

.guest-list-head span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    padding-bottom: 12px;
}

.guest-list {
    display: grid;
    gap: 8px;
    max-height: min(44vh, 430px);
    overflow: auto;
    padding-right: 2px;
}

.guest-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.guest-main {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #dff6f1;
    color: var(--primary-dark);
    font-weight: 900;
}

.guest-card code {
    display: inline-flex;
    margin-top: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #eef2f7;
    color: #334155;
    font-size: 11px;
}

.pagination {
    display: grid;
    grid-template-columns: 84px 1fr 84px;
    align-items: center;
    gap: 8px;
}

.pagination span {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

@media (max-width: 560px) {
    .registration-form,
    .guest-list-head,
    .guest-card {
        grid-template-columns: 1fr;
    }

    .guest-actions {
        justify-content: stretch;
    }

    .guest-actions button {
        flex: 1;
    }
}
.assign-card {
    gap: 12px;
}

.assign-summary {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.assign-summary small,
.selected-guest small,
.scan-card-head small,
.scan-placeholder small,
.scan-result-head small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.assign-section {
    display: grid;
    gap: 10px;
}

.assign-results {
    display: grid;
    max-height: 238px;
    overflow: auto;
}

.assign-guest-card {
    grid-template-columns: 1fr auto;
}

.selected-guest {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: 10px;
    background: #ecfdf5;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #e6fffb;
    color: var(--primary-dark);
    font-weight: 800;
}

.soft-disabled {
    opacity: .55;
}

.soft-disabled input {
    background: #f8fafc;
}

.scanner-polished {
    width: min(1060px, 100%);
}

.scan-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.scan-card-head,
.scan-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scan-card-head strong,
.scan-placeholder strong,
.scan-result-head strong {
    display: block;
    font-size: 20px;
}

.reader-frame {
    min-height: 260px;
    display: grid;
    place-items: center;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.scan-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: #cbd5e1;
}

.scan-status-dot.on {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, .12);
}

.scan-status-dot.off {
    background: #dc2626;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, .12);
}

.scan-placeholder {
    display: grid;
    gap: 4px;
    min-height: 120px;
    align-content: center;
}

.scan-placeholder span {
    color: var(--muted);
    font-size: 14px;
}

.scan-fallback {
    display: grid;
    gap: 4px;
    text-align: center;
    color: #334155;
}

.scan-fallback span {
    color: var(--muted);
    font-size: 13px;
}

.result-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.result-mark.success {
    background: #dcfce7;
    color: #166534;
}

.result-mark.used {
    background: #fee2e2;
    color: #991b1b;
}

.result-mark.empty {
    background: #eef2f7;
    color: #334155;
}

.scan-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .assign-guest-card,
    .selected-guest {
        grid-template-columns: 1fr;
    }

    .mini-action {
        justify-content: center;
    }

    .reader-frame {
        min-height: 220px;
    }

    .manual-scan {
        grid-template-columns: 1fr;
    }
}
body {
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.primary,
.ghost,
.danger-btn,
.nav-btn,
.topbar a,
.topbar strong,
.scan-card-head strong,
.share-wide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar {
    padding: 12px 18px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.topbar strong {
    color: #0f172a;
    font-size: 16px;
}

.topbar-icon,
.stat-icon,
.brand-mark {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #0f9f8d);
    box-shadow: 0 10px 24px rgba(15, 118, 110, .22);
}

.topbar-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.topbar-icon .icon {
    width: 16px;
    height: 16px;
}

.topbar a,
.nav-btn {
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.topbar a:hover,
.nav-btn:hover,
.ghost:hover {
    transform: translateY(-1px);
    border-color: #bfd0df;
    background: #f8fafc;
}

.stats-strip div {
    position: relative;
    min-height: 96px;
    padding: 14px 14px 14px 58px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.stat-icon {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.stat-icon .icon {
    width: 18px;
    height: 18px;
}

.stats-strip b {
    line-height: 1;
}

.tab {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.tab:hover,
.seat:hover,
.guest-card:hover {
    transform: translateY(-1px);
}

.seat-map,
.entry-band,
.screen-band {
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.seat {
    border-radius: 9px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.seat:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

input:focus,
select:focus {
    border-color: rgba(15, 118, 110, .65);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .11);
    outline: 0;
}

.modal-card,
.login-card,
.ticket-card,
.scanner-box,
.scan-result {
    border-color: rgba(148, 163, 184, .38);
}

.elevated-card {
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.login-card {
    padding: 28px;
    gap: 16px;
}

.brand-dot {
    display: none;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.brand-mark .icon {
    width: 28px;
    height: 28px;
}

.login-subtitle {
    margin-top: -12px;
    color: var(--muted);
    font-size: 13px;
}

.form-stack label,
.registration-form label,
.assign-section label,
.guest-list-head label {
    letter-spacing: 0;
}

.form-stack input,
.form-stack select,
.registration-form input,
.assign-section input,
.guest-list-head input,
.manual-scan input {
    min-height: 48px;
    font-weight: 650;
}

.primary {
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 118, 110, .24);
}

.danger-btn {
    border: 1px solid #fecaca;
}

.icon-btn {
    color: #0f172a;
}

.icon-btn .icon {
    width: 19px;
    height: 19px;
}

.chip {
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.guest-card,
.assign-summary,
.selected-guest,
.registration-form {
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.scanner-polished {
    padding-top: 28px;
}

.scan-card,
.scan-result {
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.reader-frame {
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), transparent),
        #f8fafc;
}

.scan-result-head {
    align-items: flex-start;
}

.ticket-page {
    background:
        radial-gradient(circle at top, rgba(15, 118, 110, .10), transparent 24rem),
        #f5f7fb;
}

.ticket-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.ticket-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--primary), #2563eb, #d97706);
}

.ticket-brand {
    justify-self: center;
    width: 52px;
    height: 52px;
}

.share-wide {
    justify-content: center;
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        padding: 12px;
    }

    .topbar nav {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .topbar a,
    .nav-btn {
        padding: 8px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stats-strip div {
        min-height: 76px;
    }

    .login-card {
        padding: 22px;
    }
}
.seat-line {
    align-items: center;
}

.seat-spacer {
    display: block;
    height: 30px;
}

.gap-entry {
    width: 184px;
}

.gap-stage {
    width: 152px;
}

.gap-short {
    width: 42px;
}

.gap-right-empty {
    width: 152px;
}

[data-panel="AUDI 2"] .gap-entry {
    width: 176px;
}

[data-panel="AUDI 2"] .gap-stage {
    width: 164px;
}

[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
    width: 184px;
}

[data-panel="AUDI 1"] .seat-row.section-gold:last-child .gap-stage {
    width: 200px;
}

@media (max-width: 560px) {
    .gap-entry {
        width: 126px;
    }

    .gap-stage,
    [data-panel="AUDI 2"] .gap-stage {
        width: 110px;
    }

    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
        width: 132px;
    }
}
.seat-line {
    grid-auto-columns: 42px;
    gap: 6px;
}

.seat,
.seat-blank {
    width: 42px;
    height: 36px;
    min-height: 36px;
}

.seat-blank {
    display: block;
    pointer-events: none;
    visibility: hidden;
}

.seat-spacer {
    height: 36px;
}

.gap-entry {
    width: 214px;
}

.gap-stage {
    width: 188px;
}

.gap-short {
    width: 54px;
}

[data-panel="AUDI 1"] .gap-stage {
    width: 188px;
}

[data-panel="AUDI 2"] .gap-stage {
    width: 204px;
}

[data-panel="AUDI 2"] .gap-entry {
    width: 230px;
}

.topbar-icon .icon,
.stat-icon .icon,
.brand-mark .icon {
    color: #fff;
    stroke: #fff;
    stroke-width: 2.4;
    opacity: 1;
}

.topbar a .icon,
.nav-btn .icon,
.primary .icon,
.ghost .icon,
.danger-btn .icon {
    stroke-width: 2.4;
    opacity: 1;
}

.topbar-icon,
.stat-icon,
.brand-mark {
    background: #12877c;
}

.topbar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.stat-icon {
    width: 42px;
    height: 42px;
}

.stats-strip div {
    padding-left: 70px;
}

@media (max-width: 560px) {
    .seat-line {
        grid-auto-columns: 34px;
        gap: 5px;
    }

    .seat,
    .seat-blank {
        width: 34px;
        height: 31px;
        min-height: 31px;
    }

    .gap-entry {
        width: 150px;
    }

    .gap-stage,
    [data-panel="AUDI 2"] .gap-stage {
        width: 136px;
    }

    [data-panel="AUDI 2"] .gap-entry {
        width: 156px;
    }
}
/* Fixed auditorium grid gaps: spacers must occupy real grid columns, not only visual width. */
.seat-spacer {
    width: auto !important;
    min-width: 0;
}

.gap-entry {
    grid-column: span 4;
}

.gap-stage {
    grid-column: span 4;
}

.gap-short {
    grid-column: span 1;
}

.gap-right-empty {
    grid-column: span 4;
}

[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage {
    grid-column: span 5;
}

[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
    grid-column: span 5;
}

[data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
    grid-column: span 5;
}

[data-panel="AUDI 2"] .gap-entry {
    grid-column: span 5;
}

.seat-line {
    grid-auto-columns: 42px;
}

.seat-row {
    grid-template-columns: 34px max-content 34px;
}

.row-label {
    width: 34px;
}

@media (max-width: 560px) {
    .seat-line {
        grid-auto-columns: 34px;
    }

    .gap-entry,
    [data-panel="AUDI 2"] .gap-entry {
        grid-column: span 4;
    }

    .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
        grid-column: span 4;
    }
}
/* AUDI 1 top rows: push the 12/13/14 block to the right side like the reference plan. */
[data-panel="AUDI 1"] .gap-top-right {
    grid-column: span 8;
    width: auto !important;
    min-width: 0;
}

@media (max-width: 560px) {
    [data-panel="AUDI 1"] .gap-top-right {
        grid-column: span 6;
    }
}
/* Section labels and AUDI 1 top right alignment, matching the printed plans. */
.section-strip {
    min-width: max-content;
    width: max-content;
    margin: 3px 10px 2px;
    display: grid;
    grid-template-columns: 34px max-content 34px;
    align-items: center;
}

.section-strip span {
    grid-column: 2;
    display: grid;
    place-items: center;
    height: 22px;
    min-width: calc((42px * 22) + (6px * 21));
    border-radius: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    border: 1px solid rgba(15, 23, 42, .22);
}

.section-strip-lounge span {
    background: #2f8f55;
    color: #fff;
}

.section-strip-platinum span {
    background: #d9c92e;
    color: #111827;
}

.section-strip-gold span {
    background: #fff;
    color: #111827;
}

[data-panel="AUDI 1"] .gap-top-right {
    grid-column: span 8;
    width: auto !important;
    min-width: 0;
}

[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 8;
}

.entry-band {
    margin-bottom: 4px;
}

@media (max-width: 560px) {
    .section-strip span {
        min-width: calc((34px * 22) + (5px * 21));
    }

    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 6;
    }
}
/* Compact auditorium layout: reduce overflow while keeping aisle blocks aligned. */
.app-shell {
    width: min(1240px, 100%);
}

.seat-map {
    padding: 10px 8px;
}

.seat-row {
    grid-template-columns: 30px max-content 30px;
    gap: 5px;
    padding: 2px 6px;
}

.row-label {
    width: 30px;
    height: 32px;
}

.seat-line {
    grid-auto-columns: 38px;
    gap: 5px;
}

.seat,
.seat-blank {
    width: 38px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
}

.seat-spacer {
    height: 32px;
}

.section-strip {
    width: calc(100% - 12px);
    min-width: max-content;
    margin: 3px 6px 2px;
    grid-template-columns: 30px 1fr 30px;
    gap: 5px;
}

.section-strip span {
    width: 100%;
    min-width: 0;
    height: 20px;
    justify-content: center;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 5;
}

.gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
[data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
    grid-column: span 3;
}

.gap-entry,
[data-panel="AUDI 2"] .gap-entry {
    grid-column: span 3;
}

.gap-right-empty {
    grid-column: span 3;
}

.gap-short {
    grid-column: span 0;
    display: none;
}

[data-panel="AUDI 1"] .section-lounge,
[data-panel="AUDI 1"] .section-platinum {
    align-items: center;
}

[data-panel="AUDI 1"] .section-lounge .row-label:last-child,
[data-panel="AUDI 1"] .section-platinum .row-label:last-child {
    margin-left: 0;
}

@media (max-width: 900px) {
    .seat-line {
        grid-auto-columns: 34px;
        gap: 4px;
    }

    .seat,
    .seat-blank {
        width: 34px;
        height: 30px;
        min-height: 30px;
    }

    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 4;
    }

    .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
    [data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
        grid-column: span 2;
    }
}
/* Keep every auditorium row on the same fixed grid so right blocks and A/B/C labels line up. */
.seat-row,
.section-strip {
    width: max-content;
}

.seat-line {
    width: calc((38px * 25) + (5px * 24));
    grid-auto-columns: 38px;
    justify-content: start;
}

.seat-row {
    grid-template-columns: 30px calc((38px * 25) + (5px * 24)) 30px;
}

.section-strip {
    grid-template-columns: 30px calc((38px * 25) + (5px * 24)) 30px;
}

.section-strip span {
    min-width: 0;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 10;
}

.gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
[data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
    grid-column: span 4;
}

[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage {
    grid-column: span 4;
}

@media (max-width: 900px) {
    .seat-line {
        width: calc((34px * 25) + (4px * 24));
        grid-auto-columns: 34px;
    }

    .seat-row {
        grid-template-columns: 30px calc((34px * 25) + (4px * 24)) 30px;
    }

    .section-strip {
        grid-template-columns: 30px calc((34px * 25) + (4px * 24)) 30px;
    }

    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 8;
    }
}
/* Final auditorium tuning: closer right labels, slimmer section bands, smaller center aisle. */
:root {
    --seat-cell: 38px;
    --seat-gap: 5px;
    --seat-grid-cols: 22;
}

.seat-line {
    width: calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1)));
    grid-auto-columns: var(--seat-cell);
    gap: var(--seat-gap);
}

.seat-row,
.section-strip {
    grid-template-columns: 30px calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) 30px;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 7;
}

.gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
[data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
    grid-column: span 3;
}

.section-strip {
    margin-top: 2px;
    margin-bottom: 1px;
}

.section-strip span {
    height: 18px;
    font-size: 12px;
    line-height: 1;
}

.entry-band {
    min-height: 34px;
}

.screen-band {
    min-height: 46px;
}

@media (max-width: 900px) {
    :root {
        --seat-cell: 34px;
        --seat-gap: 4px;
        --seat-grid-cols: 22;
    }

    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 6;
    }

    .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
    [data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
        grid-column: span 2;
    }
}
/* Full section bands and photo-like AUDI 1 right block positioning. */
.section-strip {
    grid-template-columns: 30px calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) 30px;
}

.section-strip span {
    width: 100%;
    min-width: 100%;
    height: 22px;
}

[data-panel="AUDI 1"] .section-strip span {
    min-width: 100%;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 6;
}

[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
    grid-column: span 2;
}

[data-panel="AUDI 1"] .seat-row.section-gold {
    align-items: center;
}

[data-panel="AUDI 1"] .seat-row.section-gold .row-label:last-child {
    margin-left: -4px;
}

@media (max-width: 900px) {
    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 5;
    }

    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
        grid-column: span 2;
    }
}
/* Final correction: section bands full row width and right seat block flush to right. */
.section-strip span {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 100%;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 8;
}

[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
[data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
    grid-column: span 5;
}

[data-panel="AUDI 1"] .seat-row.section-gold .row-label:last-child {
    margin-left: 0;
}

@media (max-width: 900px) {
    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 7;
    }

    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage,
    [data-panel="AUDI 2"] .seat-row.section-gold .gap-stage {
        grid-column: span 4;
    }
}
/* AUDI 1 printed-plan positioning: compact slots and right block in the same lane as Lounge/Platinum. */
[data-panel="AUDI 1"] {
    --seat-cell: 35px;
    --seat-gap: 4px;
    --seat-grid-cols: 22;
}

[data-panel="AUDI 1"] .seat-map {
    padding: 9px 14px 14px;
}

[data-panel="AUDI 1"] .seat-row,
[data-panel="AUDI 1"] .section-strip {
    grid-template-columns: 28px calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) 28px;
    gap: 4px;
}

[data-panel="AUDI 1"] .seat-line {
    width: calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1)));
    grid-auto-columns: var(--seat-cell);
    gap: var(--seat-gap);
}

[data-panel="AUDI 1"] .seat,
[data-panel="AUDI 1"] .seat-blank {
    width: var(--seat-cell);
    height: 28px;
    min-height: 28px;
    border-radius: 5px;
}

[data-panel="AUDI 1"] .row-label {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

[data-panel="AUDI 1"] .section-strip {
    margin: 2px 14px 1px;
}

[data-panel="AUDI 1"] .section-strip span {
    height: 18px;
    grid-column: 1 / -1;
}

[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 8;
}

[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
    grid-column: span 3;
}

[data-panel="AUDI 1"] .seat-row.section-gold .row-label:last-child {
    margin-left: -2px;
}

[data-panel="AUDI 1"] .screen-band {
    margin-top: 10px;
}

@media (max-width: 900px) {
    [data-panel="AUDI 1"] {
        --seat-cell: 32px;
        --seat-gap: 4px;
    }

    [data-panel="AUDI 1"] .seat-row,
    [data-panel="AUDI 1"] .section-strip {
        grid-template-columns: 28px calc((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) 28px;
    }

    [data-panel="AUDI 1"] .gap-top-right,
    [data-panel="AUDI 1"] .section-lounge .gap-top-right,
    [data-panel="AUDI 1"] .section-platinum .gap-top-right {
        grid-column: span 8;
    }

    [data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
    [data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
        grid-column: span 3;
    }
}
/* AUDI 1 top right gap final override */
[data-panel="AUDI 1"] .gap-top-right,
[data-panel="AUDI 1"] .section-lounge .gap-top-right,
[data-panel="AUDI 1"] .section-platinum .gap-top-right {
    grid-column: span 7;
}

/* AUDI 1 gold stage gap final override */
[data-panel="AUDI 1"] .seat-row.section-gold .gap-stage,
[data-panel="AUDI 1"] .seat-row.section-gold:nth-of-type(n+6) .gap-stage {
    grid-column: span 5;
}

/* Trim right-side empty space around auditorium map */
.audi-panel.active {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
}
.audi-panel.active .entry-band,
.audi-panel.active .seat-map,
.audi-panel.active .screen-band {
    width: max-content;
    min-width: 0;
}
.audi-panel.active .entry-band,
.audi-panel.active .screen-band {
    min-width: 0;
}
.app-shell {
    width: min(1120px, 100%);
}
@media (max-width: 900px) {
    .audi-panel.active {
        width: 100%;
    }
    .audi-panel.active .entry-band,
    .audi-panel.active .seat-map,
    .audi-panel.active .screen-band {
        width: max-content;
    }
}

/* Keep entry/screen bars equal to the auditorium grid width after trimming outer whitespace */
.audi-panel.active .entry-band,
.audi-panel.active .screen-band {
    width: calc(60px + ((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) + 8px);
    min-width: calc(60px + ((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) + 8px);
}
.audi-panel.active .seat-map {
    width: calc(60px + ((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) + 28px);
}

/* Unified auditorium width: remove inner scroll and center entry/screen text */
:root {
    --audi-shell-width: calc(60px + ((var(--seat-cell) * var(--seat-grid-cols)) + (var(--seat-gap) * (var(--seat-grid-cols) - 1))) + 28px);
}
.audi-panel.active {
    width: var(--audi-shell-width);
    max-width: calc(100vw - 32px);
    overflow: hidden;
}
.audi-panel.active .entry-band,
.audi-panel.active .seat-map,
.audi-panel.active .screen-band {
    width: 100%;
    min-width: 0;
}
.audi-panel.active .seat-map {
    overflow-x: hidden;
}
.entry-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
}
.entry-band span {
    display: grid;
    place-items: center;
}
.screen-band {
    display: grid;
    place-items: center;
    text-align: center;
}
@media (max-width: 900px) {
    .audi-panel.active {
        max-width: calc(100vw - 24px);
        overflow-x: auto;
    }
    .audi-panel.active .seat-map {
        overflow-x: hidden;
    }
}

/* Entry gap final override */
.gap-entry,
[data-panel="AUDI 2"] .gap-entry {
    grid-column: span 7;
}

/* Real ticket design */
.ticket-page {
    min-height: 100vh;
    padding: 18px;
    background:
        radial-gradient(circle at 20% 10%, rgba(15, 118, 110, .14), transparent 22rem),
        linear-gradient(180deg, #f8fafc, #e8eef5);
}

.real-ticket {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 280px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .16);
}

.ticket-main-panel {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .06), transparent 42%),
        #fff;
}

.ticket-main-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, #cbd5e1 0 10px, transparent 10px 20px);
}

.ticket-ribbon {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-ribbon span,
.stub-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ticket-title-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
}

.ticket-title-row small,
.ticket-info-grid small,
.seat-hero small,
.ticket-stub-panel small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-title-row h1 {
    margin: 2px 0 0;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.05;
}

.seat-hero {
    display: grid;
    gap: 3px;
    width: min(320px, 100%);
    padding: 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0f9f8d);
}

.seat-hero strong {
    font-size: 42px;
    line-height: 1;
}

.seat-hero span {
    font-weight: 900;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ticket-info-grid div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.ticket-info-grid b {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.barcode-line {
    width: min(420px, 100%);
    height: 46px;
    border-radius: 6px;
    background: repeating-linear-gradient(90deg, #111827 0 3px, transparent 3px 7px, #111827 7px 9px, transparent 9px 14px);
    opacity: .88;
}

.real-ticket code {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 8px;
    background: #eef2f7;
    color: #334155;
    font-weight: 900;
}

.ticket-stub-panel {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
}

.ticket-stub-panel::before,
.ticket-stub-panel::after {
    content: "";
    position: absolute;
    left: -17px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e8eef5;
    border: 1px solid rgba(148, 163, 184, .45);
}

.ticket-stub-panel::before { top: -17px; }
.ticket-stub-panel::after { bottom: -17px; }

.ticket-stub-panel .qr {
    width: 190px;
    height: 190px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.ticket-actions {
    width: 100%;
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .real-ticket {
        grid-template-columns: 1fr;
    }

    .ticket-main-panel::after {
        top: auto;
        right: 0;
        bottom: -1px;
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right, #cbd5e1 0 10px, transparent 10px 20px);
    }

    .ticket-stub-panel::before,
    .ticket-stub-panel::after {
        top: -17px;
        left: auto;
    }

    .ticket-stub-panel::before { left: -17px; }
    .ticket-stub-panel::after { right: -17px; bottom: auto; }

    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .ticket-page {
        background: #fff;
        padding: 0;
    }

    .real-ticket {
        box-shadow: none;
        border: 1px solid #111827;
    }

    .ticket-actions {
        display: none;
    }
}
/* Print-perfect ticket layout */
@page {
    size: A4 portrait;
    margin: 10mm;
}
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    html, body {
        width: 100%;
        min-height: 0;
        background: #fff !important;
    }
    .ticket-page {
        min-height: 0;
        display: block;
        padding: 0 !important;
        background: #fff !important;
    }
    .real-ticket {
        width: 180mm;
        max-width: 180mm;
        min-height: 92mm;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 54mm;
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1.2px solid #111827 !important;
        border-radius: 8mm;
        box-shadow: none !important;
        overflow: hidden;
    }
    .ticket-main-panel {
        gap: 4mm;
        padding: 8mm;
    }
    .ticket-title-row {
        grid-template-columns: 14mm 1fr;
        gap: 4mm;
    }
    .ticket-title-row h1 {
        font-size: 22pt;
        line-height: 1.05;
    }
    .brand-mark.ticket-brand {
        width: 14mm;
        height: 14mm;
        border-radius: 4mm;
    }
    .seat-hero {
        width: 82mm;
        padding: 5mm;
        border-radius: 4mm;
    }
    .seat-hero strong {
        font-size: 26pt;
    }
    .ticket-info-grid {
        gap: 3mm;
    }
    .ticket-info-grid div {
        padding: 3mm;
        border-radius: 3mm;
    }
    .barcode-line {
        width: 110mm;
        height: 12mm;
    }
    .ticket-stub-panel {
        padding: 7mm;
        gap: 3mm;
    }
    .ticket-stub-panel .qr {
        width: 42mm;
        height: 42mm;
        padding: 2mm;
        border-radius: 4mm;
    }
    .ticket-actions {
        display: none !important;
    }
    .ticket-ribbon span,
    .stub-label {
        min-height: 7mm;
        padding: 0 4mm;
        font-size: 9pt;
    }
    .real-ticket code {
        font-size: 9pt;
    }
}

/* Improve seat badge text contrast on ticket */
.seat-hero small {
    color: rgba(255,255,255,.88) !important;
    font-weight: 900;
    letter-spacing: .04em;
}
.seat-hero span {
    color: #fff;
}
