
        .seat-booking-page {
            --seat-bg: #f6f5fb;
            --seat-surface: #fff;
            --seat-surface-soft: #faf9fd;
            --seat-border: #e6e1ef;
            --seat-text: #26213a;
            --seat-muted: #7d768e;
            --seat-purple: #6d35b5;
            --seat-green: #13a66b;
            max-width: 980px;
            margin: 0 auto;
            padding-bottom: 24px;
            color: var(--seat-text);
        }

        .seat-full-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding: 13px; border: 1px solid #ffd37b; border-radius: 15px; background: #fff7df; color: #76510d; }
        .seat-full-alert__text { display: flex; align-items: center; gap: 9px; font-size: .68rem; font-weight: 800; }
        .seat-full-alert__text i { font-size: 1.05rem; }
        .seat-full-alert .btn { flex: 0 0 auto; border-radius: 10px; font-size: .65rem; font-weight: 800; }

        .seat-map-card { margin-top: 15px; padding: 19px; border: 1px solid var(--seat-border); border-radius: 22px; background: var(--seat-surface); box-shadow: 0 12px 32px rgba(36, 25, 68, .08); }
        .seat-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
        .seat-map-heading h2 { margin: 0; color: var(--seat-text); font-size: 1.02rem; }
        .seat-capacity { margin-bottom: 20px; }
        .seat-capacity__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--seat-muted); font-size: .58rem; font-weight: 800; }
        .seat-capacity__meta strong { color: var(--seat-text); font-size: .62rem; }
        .seat-capacity__track { height: 10px; overflow: hidden; border: 1px solid #ddd6e8; border-radius: 20px; background: #eeeaf4; box-shadow: inset 0 1px 3px rgba(36,25,68,.08); }
        .seat-capacity__fill { width: var(--capacity); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#22b97a,#7d43c0); box-shadow: 0 0 10px rgba(109,53,181,.24); transition: width .4s ease; }
        .seat-capacity.is-full .seat-capacity__track { border-color: #ef9ba5; background: #f9e2e5; }
        .seat-capacity.is-full .seat-capacity__fill { background: linear-gradient(90deg,#e94355,#bd1f34); box-shadow: 0 0 12px rgba(214,51,71,.32); }
        .game-seat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
        .game-seat { position: relative; display: flex; min-width: 0; min-height: 138px; overflow: hidden; flex-direction: column; align-items: stretch; padding: 11px 9px 9px; border: 1px solid var(--seat-border); border-radius: 16px; background: var(--seat-surface-soft); color: var(--seat-text)!important; text-align: center; text-decoration: none!important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
        button.game-seat { width: 100%; appearance: none; cursor: pointer; font-family: inherit; }
        .game-seat::before { width: 54%; height: 7px; margin: -4px auto 8px; border-radius: 8px; background: #dcd6e7; content: ""; }
        .game-seat.is-available { border-color: #c9eadc; background: linear-gradient(160deg,#fbfffd,#edfaf4); }
        .game-seat.is-available::before { background: linear-gradient(90deg,#0d9760,#31cb8b); box-shadow: 0 3px 9px rgba(19,166,107,.24); }
        .game-seat.is-available:hover { z-index: 2; border-color: var(--seat-green); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(19,166,107,.16); }
        .game-seat.is-reserved { border-color: #f1d4d9; background: linear-gradient(160deg,#fffafa,#fff0f2); opacity: .84; }
        .game-seat.is-reserved::before { background: #e88a96; }
        .game-seat__number { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--seat-text); font-size: .78rem; font-weight: 900; }
        .game-seat__number i { color: var(--seat-purple); }
        .game-seat__price { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 9px 0 7px; color: #533077; }
        .game-seat__price img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(90,46,0,.25)); }
        .game-seat__price strong { font-size: .73rem; }
        .game-seat__price small { color: var(--seat-muted); font-size: .46rem; white-space: nowrap; }
        .game-seat__status { margin-top: 4px; padding: 6px; border-radius: 9px; font-size: .55rem; font-weight: 900; }
        .is-available .game-seat__status { background: #dff6eb; color: #08794b; }
        .is-reserved .game-seat__status { background: #f8dfe3; color: #b23447; }

        .seat-booking-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
        .seat-booking-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: .57rem; font-weight: 900; white-space: nowrap; }
        .seat-booking-action--coin { border: 1px solid #d9c7f2; background: #f4edff; color: #6332a1!important; }
        .seat-booking-action--tickets { border: 1px solid #cfe5f6; background: #edf7ff; color: #246b9d!important; }
        .seat-booking-action img { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(70,30,0,.23)); }
        .seat-arrival-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 12px 14px; border: 1px solid #f1dfae; border-radius: 14px; background: #fffaf0; color: #79632c; font-size: .62rem; line-height: 1.9; }
        .seat-arrival-note i { margin-top: 3px; color: #e69b14; }

        #reserveModal { background: rgba(31, 22, 47, .42); }
        #reserveModal .modal-dialog { background: transparent; }
        #reserveModal .modal-content { overflow: hidden; border: 1px solid #ddd4ea; border-radius: 20px; background: #fff; color: #26213a; box-shadow: 0 20px 60px rgba(22,12,43,.3); }
        #reserveModal .modal-header { border-bottom-color: #e6e1ef; background: linear-gradient(135deg,#f7f1ff,#fff); }
        #reserveModal .modal-title { color: var(--seat-text); font-size: .95rem; font-weight: 900; }
        #reserveModal .modal-body { background: #fff; }
        #reserveModal .modal-footer { border-top-color: #e6e1ef; background: #faf8fd; }
        .selected-seat-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px; border: 1px solid #ddcff0; border-radius: 13px; background: #f8f3ff; color: #5b318d; }
        .selected-seat-summary i { display: grid; width: 36px; height: 36px; border-radius: 10px; background: #6d35b5; color: #fff; place-items: center; }
        .selected-seat-summary strong,.selected-seat-summary small { display: block; }
        .selected-seat-summary strong { font-size: .7rem; }
        .selected-seat-summary small { margin-top: 3px; font-size: .57rem; opacity: .75; }
        #reserveModal .form-check { display: flex!important; align-items: center; gap: 8px; min-height: 30px; padding: 0; }
        #reserveModal .form-check-input { float: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; cursor: pointer; }
        #reserveModal .form-check-label { display: flex; align-items: center; min-height: 18px; margin: 0; color: var(--seat-text); line-height: 1.4; cursor: pointer; }

        .theme-dark .seat-booking-page { --seat-surface:#1b202b; --seat-surface-soft:#171c25; --seat-border:#303747; --seat-text:#f1f2f7; --seat-muted:#9ba3b2; }
        .theme-dark .seat-map-card { box-shadow:0 12px 34px rgba(0,0,0,.25); }
        .theme-dark .game-seat.is-available { border-color:#285d49; background:linear-gradient(160deg,#17251f,#142d23); }
        .theme-dark .game-seat.is-reserved { border-color:#62343c; background:linear-gradient(160deg,#2c1b20,#351d24); }
        .theme-dark .seat-capacity__track { border-color:#3b4352; background:#252b36; }
        .theme-dark .seat-capacity.is-full .seat-capacity__track { border-color:#713844; background:#3b2026; }
        .theme-dark .game-seat__price { color:#e5c5ff; }
        .theme-dark .is-available .game-seat__status { background:#1d4937; color:#8be1ba; }
        .theme-dark .is-reserved .game-seat__status { background:#522932; color:#ff9cab; }
        .theme-dark .seat-full-alert { border-color:#705a29; background:#302916; color:#f4d88c; }
        .theme-dark .seat-booking-action--coin { border-color:#51386f; background:#292039; color:#cba9f8!important; }
        .theme-dark .seat-booking-action--tickets { border-color:#2d506b; background:#192d3b; color:#8ac8ef!important; }
        .theme-dark .seat-arrival-note { border-color:#594a27; background:#292417; color:#d7c58e; }
        .theme-dark #reserveModal { background: rgba(0, 0, 0, .7); }
        .theme-dark #reserveModal .modal-content { border-color:#353d4c; background:#1b202b; color:#f1f2f7; }
        .theme-dark #reserveModal .modal-header { border-bottom-color:#303747; background:linear-gradient(135deg,#272031,#1b202b); }
        .theme-dark #reserveModal .modal-body { background:#1b202b; }
        .theme-dark #reserveModal .modal-footer { border-top-color:#303747; background:#171c25; }
        .theme-dark .selected-seat-summary { border-color:#513b6b; background:#292037; color:#d8b9fa; }
        .theme-dark #reserveModal .btn-close { filter:invert(1); }
        .theme-dark #reserveModal .form-control { border-color:#3a4352; background:#151922; color:#f1f2f7; }
        .theme-dark #reserveModal .alert-info { border-color:#31536e; background:#1a3040; color:#9dd4f4; }
        .theme-dark #reserveModal .alert-warning { border-color:#665224; background:#302918; color:#efd488; }
        .theme-dark #reserveModal .text-muted { color:#9ba3b2!important; }

        @media(max-width:700px) {
            .game-seat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
            .seat-map-heading { align-items: center; flex-direction: row; flex-wrap: nowrap; gap: 5px; }
            .seat-map-heading > div:first-child { flex: 0 0 auto; }
            .seat-map-heading h2 { font-size: .76rem; white-space: nowrap; }
            .seat-booking-actions { flex: 1 1 auto; width: auto; min-width: 0; justify-content: flex-end; gap: 4px; }
            .seat-booking-action { min-height: 30px; padding: 4px 6px; border-radius: 8px; font-size: .48rem; }
            .seat-booking-action img { width: 16px; height: 16px; }
        }

        @media(max-width:420px) {
            .seat-map-card { padding: 14px 11px; }
            .game-seat { min-height: 130px; padding-inline: 6px; }
            .game-seat__price { flex-wrap: wrap; }
            .game-seat__price small { flex-basis: 100%; }
            .seat-full-alert { align-items: stretch; flex-direction: column; }
            .seat-map-heading { gap: 3px; }
            .seat-map-heading h2 { font-size: .69rem; }
            .seat-booking-actions { width: auto; justify-content: flex-end; gap: 3px; }
            .seat-booking-action { min-height: 28px; padding: 3px 5px; font-size: .44rem; }
            .seat-booking-action img { width: 14px; height: 14px; }
        }

/* Square table: seats follow the perimeter clockwise, independent of RTL text. */
.seat-map-heading p { margin: 7px 0 0; color: var(--seat-muted); font-size: .65rem; line-height: 1.8; }
.seat-map-heading { flex-wrap: wrap; }
.seat-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:18px; margin:18px 0 8px; color:var(--seat-muted); font-size:.65rem; }
.seat-legend span { display:flex; align-items:center; gap:6px; }
.seat-legend i { width:9px; height:9px; border-radius:50%; background:#2589ed; }
.seat-legend .reserved-dot { background:#e64d65; }
.game-seat-grid { direction:ltr; isolation:isolate; width:100%; max-width:620px; margin:24px auto; grid-template-columns:repeat(var(--table-tracks),minmax(0,1fr)); grid-template-rows:repeat(var(--table-tracks),minmax(0,1fr)); gap:10px; aspect-ratio:1; }
.game-table { direction:rtl; grid-column:2 / -2; grid-row:2 / -2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; margin:5px; padding:14px; border:1px solid #cbd9ee; border-radius:24px; text-align:center; background:radial-gradient(ellipse at top,#eef6ff,#e4eafa); box-shadow:inset 0 0 0 7px rgba(255,255,255,.6),0 12px 24px rgba(32,68,112,.1); color:#283f62; }
.game-table > i { font-size:1.5rem; color:#6484b5; }
.game-table strong { font-size:1.2rem; font-weight:900; }
.game-table small { font-size:.65rem; line-height:1.9; color:#647796; }
.game-table__count { padding:6px 12px; border-radius:20px; background:rgba(255,255,255,.7); font-size:.65rem; }
.game-seat, button.game-seat { direction:rtl; width:100%; min-height:0; padding:5px; justify-content:center; align-items:center; border-radius:14px; overflow:visible; box-shadow:0 4px 0 rgba(35,100,173,.12); }
.game-seat::before { position:absolute; top:4px; width:45%; height:4px; margin:0; }
.game-seat.is-available { border-color:#a9d3ff; background:linear-gradient(145deg,#f1f8ff,#dceeff); color:#1765ad!important; }
.game-seat.is-available::before { background:#2589ed; box-shadow:none; }
.game-seat.is-available:hover { border-color:#2589ed; transform:translateY(-3px); box-shadow:0 8px 18px rgba(37,137,237,.22); }
.game-seat:focus-visible { outline:3px solid #1765ad; outline-offset:3px; }
.game-seat.is-reserved { opacity:1; border-color:#f4a9b6; background:linear-gradient(145deg,#fff2f4,#ffe1e7); box-shadow:0 4px 0 rgba(184,48,71,.12); }
.game-seat.is-reserved::before { background:#e64d65; }
.game-seat__number { flex-direction:column; gap:3px; font-size:1rem; color:inherit; }
.game-seat__number i { font-size:.85rem; color:inherit; }
.is-reserved .game-seat__number { color:#c3334d; }
.game-seat__price,.game-seat__status { display:none; }
.theme-dark .game-seat.is-available { border-color:#276399; background:linear-gradient(145deg,#172d43,#193b5b); color:#8ac9ff!important; }
.theme-dark .game-table { border-color:#384d69; background:radial-gradient(ellipse at top,#243b55,#1a293c); color:#edf5ff; box-shadow:inset 0 0 0 7px rgba(255,255,255,.025),0 12px 24px rgba(0,0,0,.2); }
.theme-dark .game-table small { color:#a1b3cd; }
.theme-dark .game-table__count { background:#304560; }
.theme-dark .is-reserved .game-seat__number { color:#ffa0b2; }
@media(max-width:700px) { .game-seat-grid { gap:7px; } .seat-map-heading { flex-wrap:wrap; gap:12px; } .seat-map-heading p { font-size:.6rem; } .seat-booking-actions { flex:0 1 auto; flex-wrap:wrap; } }
@media(max-width:420px) { .game-seat-grid { gap:5px; margin:18px auto; } .game-seat { min-height:0; padding:3px; border-radius:9px; } .game-seat__number { font-size:.75rem; gap:2px; } .game-seat__number i { font-size:.65rem; } .game-table { margin:2px; padding:8px; gap:7px; border-radius:16px; } .game-table strong { font-size:.9rem; } .game-table small,.game-table__count { font-size:.52rem; } .game-table > i { font-size:1rem; } }
@media(prefers-reduced-motion:reduce) { .game-seat,.seat-capacity__fill { transition:none; } }

/* Invitation shown once after a successful seat purchase. */
