@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* existing styles kept */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top center, rgba(229, 41, 58, 0.08), transparent 28%),
                linear-gradient(180deg, #070707 0%, #111 50%, #121212 100%);
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header,
.featured,
.movies,
footer,
.admin-container,
.admin-content {
    position: relative;
    z-index: 2;
}

main, section:not(.featured):not(.movies) {
    flex: 1;
}

header {
    background: linear-gradient(135deg, #e50914 0%, #bf0810 100%);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

    header h1 {
        margin: 0 0 15px 0;
        font-size: 32px;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .header-controls {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    header input {
        flex: 1;
        min-width: 200px;
        padding: 10px 14px;
        border-radius: 6px;
        border: 2px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.95);
        color: #111;
        font-size: 14px;
        transition: all 200ms ease;
    }

    header input:focus {
        outline: none;
        background: #fff;
        border-color: #ffeb3b;
        box-shadow: 0 0 12px rgba(255, 235, 59, 0.3);
    }

    header select {
        padding: 10px 14px;
        border-radius: 6px;
        border: 2px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.95);
        color: #111;
        font-size: 14px;
        cursor: pointer;
        transition: all 200ms ease;
    }

    header select:focus {
        outline: none;
        border-color: #ffeb3b;
        box-shadow: 0 0 12px rgba(255, 235, 59, 0.3);
    }

    .auth-buttons {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    header button {
        padding: 10px 16px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        border: 2px solid rgba(255,255,255,0.5);
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 200ms ease;
    }

    header button:hover {
        background: rgba(255,255,255,0.9);
        color: #e50914;
        border-color: #fff;
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .header-controls {
        flex-direction: column;
        gap: 10px;
    }

    header input {
        width: 100%;
        min-width: unset;
    }

    header select {
        width: 100%;
    }

    .auth-buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    header button {
        flex: 1;
        min-width: 100px;
    }
}

.featured img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 600ms ease;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.featured {
    margin: 30px 0;
    position: relative;
}

.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top center, rgba(255,255,255,0.06), transparent 25%);
}

.movies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    background: rgba(10, 10, 10, 0.78);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.movie {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 14px;
    border-radius: 18px;
    width: 220px;
    min-width: 220px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.movie p {
    margin: 8px 0 0 0;
    font-size: 14px;
}
.movie-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid rgba(255,255,255,0.08);
    background: #111;
}
.movie-title {
    font-weight: 700;
    color: #fff;
    min-height: 48px;
    line-height: 1.2;
}
.movie-genre {
    color: #ffeb3b;
    font-size: 12px;
    min-height: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.movie .movie-synopsis {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    min-height: 48px;
    margin-bottom: 12px;
}
.movie .view-btn {
    margin-top: auto;
    padding: 10px;
    background: linear-gradient(135deg, #e50914 0%, #bf0810 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.movie:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.4);
    border-color: #ffeb3b;
}

button {
    background: linear-gradient(135deg, #e50914 0%, #bf0810 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 200ms ease;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}
button:hover { 
    background: linear-gradient(135deg, #bf0810 0%, #950a0a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.5);
}
button:active { 
    transform: translateY(0);
}

/* Back button styling to match the site and stay visible on the left */
#backButton {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: inline-block;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e50914 0%, #bf0810 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
    transition: all 200ms ease;
    font-size: 14px;
}
#backButton:hover {
    background: linear-gradient(135deg, #bf0810 0%, #950a0a 100%);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.5);
}

/* Movie detail page styles */
#title {
    margin-top: 80px;
    margin-bottom: 20px;
    font-size: 36px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#posterWrap {
    max-width: 300px;
    margin: 20px auto;
    perspective: 1000px;
}

#poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #222;
    display: block;
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.3), 0 0 0 2px rgba(255, 235, 59, 0.2);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

#poster:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(229, 9, 20, 0.4), 0 0 0 3px #ffeb3b;
}

#year, #genre {
    font-size: 16px;
    color: #ffeb3b;
    margin: 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#synopsisWrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
}

#synopsis {
    max-width: 680px;
    width: min(100%, 680px);
    margin: 20px 0;
    line-height: 1.8;
    color: #ddd;
    font-size: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffeb3b;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

#synopsis,
#synopsis * {
    text-align: center !important;
}

#year,
#genre,
#synopsis {
    text-align: center;
}

h2 {
    margin-top: 30px;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ensure movie title sits below the fixed back button */
@media (max-width: 480px) {
    #title {
        margin-top: 70px;
        font-size: 28px;
    }

    #backButton {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    #posterWrap {
        max-width: 250px;
    }

    #synopsis {
        padding: 15px;
        margin: 15px 10px;
        text-align: center;
    }
}

/* Poster area */
#posterWrap {
    max-width: 300px;
    margin: 0 auto 10px;
}

#poster {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #222;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Synopsis and meta */
#year, #genre, #synopsis {
    margin: 10px 0;
}

/* Seat grid and seat styles */
.seats {
    width: min(100%, 1320px);
    margin: 20px auto;
    padding: 0 16px 14px;
    overflow-x: auto;
    box-sizing: border-box;
    transition: opacity 320ms ease;
}

.screen {
    grid-column: 2 / 5;
    grid-row: 1;
    width: min(720px, 100%);
    box-sizing: border-box;
    justify-self: center;
    margin: 0 0 34px;
    padding: 13px 18px 15px;
    background: linear-gradient(180deg, #f2f2f2 0%, #bdbdbd 100%);
    color: #111;
    border-radius: 0 0 50% 50% / 0 0 70% 70%;
    box-shadow: 0 20px 42px rgba(255, 255, 255, 0.18), 0 0 34px rgba(255, 255, 255, 0.08);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.screen small {
    display: block;
    margin-top: 3px;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.screen-spacer {
    grid-row: 1;
}

.seat-map {
    display: inline-grid;
    grid-template-columns: max-content 46px max-content 46px max-content;
    gap: 0 14px;
    align-items: stretch;
    justify-content: center;
    min-width: max-content;
}

.seat-block {
    grid-row: 2;
    padding: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.seat-block-title {
    margin-bottom: 10px;
    color: #ffeb3b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.seat-grid {
    display: grid;
    grid-template-columns: 22px repeat(10, 34px);
    gap: 7px;
    align-items: center;
}

.seat-axis-spacer,
.seat-axis-label {
    width: 22px;
    height: 16px;
}

.seat-axis-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
}

.row-label {
    height: 34px;
    color: #ffeb3b;
}

.seat-grid .row-1 {
    transform: translateY(20px);
}

.seat-grid .row-2 {
    transform: translateY(11px);
}

.seat-grid .row-3 {
    transform: translateY(5px);
}

.seat-grid .row-4,
.seat-grid .row-5 {
    transform: translateY(0);
}

.seat-grid .row-6 {
    transform: translateY(5px);
}

.seat-grid .row-7 {
    transform: translateY(11px);
}

.seat-grid .row-8 {
    transform: translateY(20px);
}

.aisle {
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    color: rgba(255, 255, 255, 0.38);
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.seat {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    cursor: pointer;
    transition: all 200ms ease;
    border-radius: 6px;
    will-change: transform, background;
    border: 2px solid rgba(255, 235, 59, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.seat:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 16px rgba(255, 235, 59, 0.3);
    background: linear-gradient(135deg, #444 0%, #333 100%);
}

.seat.selected {
    background: linear-gradient(135deg, #2f9e63 0%, #17653c 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(47, 158, 99, 0.5);
    border-color: #8fd8a8;
    color: #fff;
}

.seat.pending {
    background: linear-gradient(135deg, #ffeb3b 0%, #d89b28 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #f4d35e;
    color: #111;
    opacity: 0.95;
}

.seat.taken {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #d32f2f;
    opacity: 0.6;
}

.seat.pending:hover,
.seat.taken:hover {
    transform: none;
    box-shadow: none;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 14px auto 18px;
    color: #eadfcb;
    font-size: 13px;
}

.seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-seat {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid rgba(255, 244, 215, 0.25);
}

.legend-seat.available {
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.legend-seat.selected {
    background: linear-gradient(135deg, #2f9e63 0%, #17653c 100%);
}

.legend-seat.pending {
    background: linear-gradient(135deg, #ffeb3b 0%, #d89b28 100%);
}

.legend-seat.reserved {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Selected count/total smooth update (subtle) */
#count, #total {
    transition: color 160ms ease;
    color: #ffeb3b;
    font-weight: 700;
}

/* ---- Modal / overlay styles (kept if present) ---- */

/* hidden helper */
.hidden { display: none; }

/* Modal overlay (if used elsewhere) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

/* Modal panel */
.modal-panel {
    width: 420px;
    max-width: calc(100% - 32px);
    background: #0f0f0f;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    color: #fff;
    position: relative;
    transition: transform 220ms ease, opacity 220ms ease;
}

.modal-panel .modal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.modal-panel input[type="text"],
.modal-panel input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #121212;
    color: #fff;
    box-sizing: border-box;
}

/* primary/secondary buttons consistent with site */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.modal-actions .primary {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}
.modal-actions .secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* close button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

/* When page is ready, apply visible states to animate in content */
body.page-loaded #title,
body.page-loaded #year,
body.page-loaded #genre,
body.page-loaded #synopsis {
    opacity: 1;
    transform: none;
}

body.page-loaded #posterWrap,
body.page-loaded #poster {
    opacity: 1;
    transform: none;
}

body.page-loaded .seats {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e50914 0%, #bf0810 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #bf0810 0%, #950a0a 100%);
}


footer {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-top: 2px solid #e50914;
    padding: 20px;
    text-align: center;
    color: #999;
    margin-top: auto;
    font-size: 13px;
}

footer a {
    color: #ffeb3b;
    text-decoration: none;
    transition: color 200ms ease;
}

footer a:hover {
    color: #e50914;
    text-decoration: underline;
}

/* Small-screen adjustments */
@media (max-width: 480px) {
    .modal-panel { width: calc(100% - 20px); padding: 14px; }
    .modal-close { top: 6px; right: 6px; }
}

.curtain-left,
.curtain-right {
    position: fixed;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 1;
    opacity: 0.92;
    pointer-events: none;
    will-change: transform, opacity;
    box-shadow: inset 8px 0 30px rgba(0, 0, 0, 0.35);
}

.curtain-left {
    left: 0;
    background: linear-gradient(135deg, rgba(74, 0, 0, 0.9) 0%, rgba(50, 0, 0, 0.4) 100%);
}

.curtain-right {
    right: 0;
    background: linear-gradient(225deg, rgba(74, 0, 0, 0.9) 0%, rgba(50, 0, 0, 0.4) 100%);
}

.curtain-left svg,
.curtain-right svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.curtain-rod {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(180deg, #b8860b, #ffd700, #b8860b);
    z-index: 2;
    opacity: 0.95;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

body > section,
footer {
    position: relative;
    z-index: 3;
}

@media (max-width: 900px) {
    .curtain-left,
    .curtain-right {
        width: 180px;
        opacity: 0.85;
    }
}

@media (max-width: 640px) {
    .curtain-left,
    .curtain-right {
        width: 130px;
    }

    .curtain-rod {
        height: 8px;
    }
}

/* ==========================================================
   Premium theatre refresh
   Visual-only layer: preserves existing markup and behavior.
   ========================================================== */
:root {
    --stage-black: #070506;
    --stage-panel: #15100f;
    --stage-panel-2: #211513;
    --curtain-red: #8f1017;
    --curtain-deep: #3e070a;
    --velvet-red: #bd1720;
    --ticket-gold: #d7ad50;
    --ticket-gold-soft: #f2d99a;
    --ticket-cream: #fff4d7;
    --muted-cream: #cdbf9e;
    --line-gold: rgba(215, 173, 80, 0.32);
    --soft-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
    --gold-glow: 0 0 22px rgba(215, 173, 80, 0.18);
}

body {
    background:
        radial-gradient(circle at 50% -12%, rgba(255, 226, 153, 0.18), transparent 28%),
        radial-gradient(circle at 18% 10%, rgba(189, 23, 32, 0.18), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(215, 173, 80, 0.12), transparent 28%),
        linear-gradient(180deg, #050404 0%, #120607 42%, #080606 100%) !important;
    color: var(--ticket-cream);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 80px);
}

header {
    background:
        linear-gradient(180deg, rgba(255, 226, 153, 0.16), transparent 22%),
        linear-gradient(135deg, #6e070d 0%, #b7131e 48%, #430609 100%) !important;
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 244, 215, 0.08) !important;
}

header h1,
.admin-sidebar-header h1,
.dashboard-header h1 {
    color: var(--ticket-cream) !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 24px rgba(215, 173, 80, 0.24) !important;
}

header input,
header select,
.admin-form-field input,
.admin-form-field textarea,
.admin-form-field select,
.form-group input,
.form-group textarea {
    background: rgba(255, 244, 215, 0.96) !important;
    color: #1a1110 !important;
    border: 1px solid rgba(215, 173, 80, 0.58) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

header input:focus,
header select:focus,
.admin-form-field input:focus,
.admin-form-field textarea:focus,
.admin-form-field select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ticket-gold) !important;
    box-shadow: 0 0 0 3px rgba(215, 173, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

button,
.admin-btn,
.admin-logout-btn,
.btn-primary,
.movie .view-btn {
    background: linear-gradient(180deg, #d9b15b 0%, #9f7425 100%) !important;
    color: #1a0d0c !important;
    border: 1px solid rgba(255, 237, 180, 0.44) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
    text-shadow: none !important;
}

button:hover,
.admin-btn:hover,
.admin-logout-btn:hover,
.btn-primary:hover,
.movie .view-btn:hover {
    background: linear-gradient(180deg, #f0cd78 0%, #b98529 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44), var(--gold-glow) !important;
}

.admin-btn-danger,
.btn-danger {
    background: linear-gradient(180deg, #c52730 0%, #7c0c12 100%) !important;
    color: #fff4d7 !important;
    border-color: rgba(255, 197, 197, 0.25) !important;
}

.admin-btn-secondary {
    background: linear-gradient(180deg, #4b3a2a 0%, #251915 100%) !important;
    color: var(--ticket-cream) !important;
}

.featured {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 18px !important;
    border: 1px solid var(--line-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--soft-shadow), var(--gold-glow);
}

.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 244, 215, 0.22), transparent 42%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.44));
}

.featured img {
    height: clamp(260px, 38vw, 460px) !important;
}

.movies {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 36px;
    padding: 28px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(215, 173, 80, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(35, 17, 15, 0.92), rgba(10, 7, 7, 0.94)) !important;
    border: 1px solid var(--line-gold) !important;
    border-radius: 12px !important;
}

.movie {
    width: 224px !important;
    min-width: 224px !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.045), transparent 24%),
        linear-gradient(145deg, #211513 0%, #0d0909 100%) !important;
    border: 1px solid rgba(215, 173, 80, 0.28) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45) !important;
    position: relative;
    overflow: hidden;
}

.movie::before,
.card::before,
.admin-stat-card::before,
.stat-box::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px -7px;
    width: 14px;
    border-radius: 99px;
    background:
        radial-gradient(circle, var(--stage-black) 0 4px, transparent 5px) 0 0 / 14px 34px repeat-y;
    opacity: 0.72;
}

.movie::after,
.card::after,
.admin-stat-card::after,
.stat-box::after {
    content: "";
    position: absolute;
    inset: 10px -7px 10px auto;
    width: 14px;
    border-radius: 99px;
    background:
        radial-gradient(circle, var(--stage-black) 0 4px, transparent 5px) 0 0 / 14px 34px repeat-y;
    opacity: 0.72;
}

.movie:hover {
    border-color: var(--ticket-gold) !important;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.55), 0 0 26px rgba(215, 173, 80, 0.2) !important;
}

.movie-image {
    border-radius: 6px !important;
    border: 1px solid rgba(215, 173, 80, 0.34) !important;
}

.movie-title,
.card-title {
    color: var(--ticket-cream) !important;
}

.movie-genre,
#year,
#genre,
.price,
.stat-number,
.admin-stat-value,
.info-label {
    color: var(--ticket-gold-soft) !important;
}

#poster,
#synopsis,
.seat-block,
.modal-panel,
.card,
.profile-card,
.admin-form-section,
.admin-table-wrapper,
.admin-stat-card,
.stat-box {
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.055), transparent 28%),
        linear-gradient(145deg, rgba(37, 22, 19, 0.96), rgba(10, 7, 7, 0.98)) !important;
    border: 1px solid var(--line-gold) !important;
    box-shadow: var(--soft-shadow) !important;
}

#synopsis {
    border-left: 4px solid var(--ticket-gold) !important;
}

.screen {
    background: linear-gradient(180deg, #fff8df 0%, #d7ad50 100%) !important;
    box-shadow: 0 24px 52px rgba(215, 173, 80, 0.2), 0 0 42px rgba(255, 244, 215, 0.12) !important;
}

.seat {
    background: linear-gradient(180deg, #36231f 0%, #15100f 100%) !important;
    border-color: rgba(215, 173, 80, 0.2) !important;
    color: var(--ticket-cream) !important;
}

.seat.selected {
    background: linear-gradient(180deg, #2f9e63 0%, #17653c 100%) !important;
    border-color: #8fd8a8 !important;
    color: #fff !important;
}

.seat.pending {
    background: linear-gradient(180deg, #ffeb3b 0%, #d89b28 100%) !important;
    border-color: #f4d35e !important;
    color: #190d0b !important;
    cursor: not-allowed !important;
    opacity: 0.96;
}

.seat.taken {
    background: linear-gradient(180deg, #c42b35 0%, #741015 100%) !important;
    color: #f5d6d6 !important;
    cursor: not-allowed !important;
}

/* Admin dashboard polish */
.admin-container {
    background:
        radial-gradient(circle at 76% 0%, rgba(215, 173, 80, 0.12), transparent 34%),
        linear-gradient(135deg, #070506 0%, #150809 55%, #080606 100%) !important;
    text-align: left;
}

.admin-sidebar {
    background:
        linear-gradient(90deg, rgba(255, 244, 215, 0.06), transparent 18%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #42070b 0%, #170708 62%, #090606 100%) !important;
    border-right: 1px solid var(--line-gold) !important;
    box-shadow: 12px 0 42px rgba(0, 0, 0, 0.45) !important;
}

.admin-sidebar-header {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 244, 215, 0.18), transparent 58%),
        linear-gradient(135deg, #9e131b 0%, #4a080b 100%) !important;
    border-bottom: 1px solid var(--line-gold) !important;
}

.admin-nav-btn {
    color: var(--muted-cream) !important;
    border-left-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: linear-gradient(90deg, rgba(215, 173, 80, 0.2), rgba(143, 16, 23, 0.12)) !important;
    color: var(--ticket-cream) !important;
    border-left-color: var(--ticket-gold) !important;
}

.admin-content {
    padding: 28px !important;
}

.admin-header {
    background:
        radial-gradient(circle at 20% 0%, rgba(215, 173, 80, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(43, 24, 20, 0.95), rgba(11, 8, 8, 0.96)) !important;
    border: 1px solid var(--line-gold) !important;
    border-radius: 10px !important;
    margin: 0 0 26px 0 !important;
    box-shadow: var(--soft-shadow) !important;
}

.admin-stats-grid,
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.admin-stat-card,
.stat-box,
.card {
    position: relative;
    overflow: hidden;
    border-radius: 8px !important;
}

.admin-stat-value,
.stat-number {
    font-size: clamp(28px, 4vw, 42px) !important;
    line-height: 1;
}

.admin-stat-label,
.stat-label,
.admin-form-field label {
    color: var(--muted-cream) !important;
}

.admin-table-wrapper {
    overflow-x: auto !important;
    border-radius: 10px !important;
}

.admin-table {
    min-width: 760px;
}

.admin-table thead {
    background: linear-gradient(180deg, rgba(143, 16, 23, 0.55), rgba(61, 10, 11, 0.75)) !important;
}

.admin-table th {
    color: var(--ticket-gold-soft) !important;
    border-bottom: 1px solid var(--line-gold) !important;
}

.admin-table td {
    color: #e7dcc3 !important;
    border-bottom: 1px solid rgba(215, 173, 80, 0.12) !important;
}

.admin-table tr:hover {
    background: rgba(215, 173, 80, 0.08) !important;
}

.admin-empty-state,
.empty-state {
    color: var(--muted-cream) !important;
}

/* User dashboard polish */
.dashboard-container {
    width: min(1180px, calc(100% - 28px));
    max-width: 1180px !important;
    margin: 34px auto !important;
    padding: 26px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(215, 173, 80, 0.1), transparent 35%),
        linear-gradient(180deg, rgba(33, 21, 18, 0.88), rgba(8, 6, 6, 0.92)) !important;
    border: 1px solid var(--line-gold);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    text-align: left;
}

.dashboard-header {
    border-bottom: 1px solid var(--line-gold) !important;
}

.dashboard-nav {
    gap: 8px !important;
    border-bottom: 1px solid rgba(215, 173, 80, 0.22) !important;
}

.nav-tab {
    border: 1px solid rgba(215, 173, 80, 0.18) !important;
    border-radius: 999px !important;
    color: var(--muted-cream) !important;
    background: rgba(255, 244, 215, 0.035) !important;
    box-shadow: none !important;
}

.nav-tab:hover,
.nav-tab.active {
    color: #180d0b !important;
    background: linear-gradient(180deg, #f0d38c, #b7842d) !important;
    border-color: var(--ticket-gold) !important;
}

.profile-card {
    border-radius: 10px !important;
}

.info-item {
    background: rgba(255, 244, 215, 0.06) !important;
    border-left: 3px solid var(--ticket-gold) !important;
    border-radius: 8px !important;
}

.status-badge {
    border: 1px solid rgba(255, 255, 255, 0.18);
    letter-spacing: 0.4px;
}

.status-confirmed {
    background: linear-gradient(180deg, #2f9e63, #17653c) !important;
}

.status-pending {
    background: linear-gradient(180deg, #d89b28, #8c5b12) !important;
}

.status-cancelled {
    background: linear-gradient(180deg, #c42b35, #741015) !important;
}

footer {
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.04), transparent 40%),
        linear-gradient(180deg, #130908, #050404) !important;
    border-top: 1px solid var(--line-gold) !important;
}

footer a {
    color: var(--ticket-gold-soft) !important;
}

@media (max-width: 900px) {
    .movies {
        padding: 20px !important;
    }

    .admin-content {
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 18px !important;
        margin-top: 24px !important;
    }

    .admin-header {
        align-items: flex-start !important;
    }
}

@media (max-width: 600px) {
    .admin-sidebar {
        position: relative !important;
        width: 100% !important;
    }

    .admin-nav-menu {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px !important;
    }

    .admin-nav-btn {
        border: 1px solid rgba(215, 173, 80, 0.18) !important;
        border-radius: 8px !important;
        text-align: center !important;
        padding: 11px 8px !important;
        min-height: 44px;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    .admin-form-actions,
    .user-actions,
    .button-group {
        flex-direction: column !important;
    }
}

/* Realistic curtain pass */
.curtain-left,
.curtain-right {
    width: clamp(130px, 19vw, 310px) !important;
    opacity: 0.96 !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 150, 120, 0.22), transparent 18%),
        repeating-linear-gradient(90deg,
            #2b0306 0 13px,
            #6e0710 13px 28px,
            #b0121e 28px 43px,
            #54050b 43px 61px,
            #1b0204 61px 76px) !important;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.65));
    overflow: hidden;
}

.curtain-left {
    clip-path: polygon(0 0, 100% 0, 76% 18%, 65% 36%, 72% 57%, 60% 100%, 0 100%);
}

.curtain-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 28% 57%, 35% 36%, 24% 18%);
}

.curtain-folds {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 12%, rgba(255, 255, 255, 0.09) 19%, transparent 27%, rgba(0, 0, 0, 0.42) 38%, transparent 52%, rgba(255, 255, 255, 0.07) 63%, rgba(0, 0, 0, 0.45) 78%, transparent),
        linear-gradient(180deg, rgba(255, 220, 170, 0.13), transparent 18%, rgba(0, 0, 0, 0.22) 100%);
}

.curtain-left::before,
.curtain-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent);
}

.curtain-left::before {
    right: 0;
}

.curtain-right::before {
    left: 0;
    transform: scaleX(-1);
}

.curtain-rod {
    height: 16px !important;
    background:
        linear-gradient(180deg, #3d2410 0%, #b98232 28%, #f0c96d 52%, #7a4a1f 100%) !important;
    border-bottom: 1px solid rgba(255, 244, 215, 0.28);
}

/* Homepage banner controls */
.banner-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 72px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    font-size: 44px !important;
    line-height: 1;
    background: rgba(25, 7, 8, 0.78) !important;
    color: #f4d7a0 !important;
    border: 1px solid rgba(244, 215, 160, 0.5) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48) !important;
    transform: translateY(-50%);
}

.banner-control:hover {
    background: rgba(124, 12, 18, 0.9) !important;
    color: #fff4d7 !important;
    transform: translateY(-50%) scale(1.04) !important;
}

.banner-prev {
    left: 16px;
}

.banner-next {
    right: 16px;
}

/* Admin palette correction: velvet red, charcoal, cream; gold is only an accent */
.admin-container {
    color: #eadfcb !important;
}

.admin-sidebar {
    background:
        linear-gradient(180deg, #2a080a 0%, #120607 62%, #080505 100%) !important;
}

.admin-sidebar-header {
    background: linear-gradient(135deg, #6f0c12 0%, #2c0608 100%) !important;
}

.admin-nav-btn {
    color: #d8c8ac !important;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: linear-gradient(90deg, rgba(158, 19, 27, 0.44), rgba(48, 8, 10, 0.25)) !important;
    color: #fff1d2 !important;
    border-left-color: #b84b38 !important;
}

.admin-header,
.admin-form-section,
.admin-table-wrapper,
.admin-stat-card {
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.035), transparent 28%),
        linear-gradient(145deg, #1b1110 0%, #0b0707 100%) !important;
    border-color: rgba(184, 75, 56, 0.36) !important;
}

.admin-header h2,
.admin-form-section h3 {
    color: #f0d8b3 !important;
}

.admin-stat-value {
    color: #d9705d !important;
}

.admin-btn,
.admin-logout-btn {
    background: linear-gradient(180deg, #9e1720 0%, #5f0b10 100%) !important;
    color: #fff1d2 !important;
    border-color: rgba(255, 222, 188, 0.22) !important;
}

.admin-btn:hover,
.admin-logout-btn:hover {
    background: linear-gradient(180deg, #bb2430 0%, #741018 100%) !important;
}

.admin-table thead {
    background: linear-gradient(180deg, rgba(88, 12, 15, 0.9), rgba(37, 7, 8, 0.95)) !important;
}

.admin-table th {
    color: #e6c7a1 !important;
}

.admin-table td {
    color: #d9cbb6 !important;
}

.admin-table tr:hover {
    background: rgba(158, 23, 32, 0.13) !important;
}

@media (max-width: 640px) {
    .banner-control {
        width: 38px;
        height: 58px;
        font-size: 34px !important;
    }
}

/* Final theatre polish pass */
body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

button,
input,
select,
textarea,
label,
table,
.admin-nav-btn,
.auth-form,
.dashboard-container,
.admin-container {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

header h1,
.dashboard-header h1,
.admin-sidebar-header h1,
#title,
.auth-form h2,
.admin-auth-form h2 {
    font-family: "Cinzel", Georgia, serif !important;
    font-weight: 700 !important;
}

/* Richer, more fabric-like homepage curtains */
.curtain-left,
.curtain-right {
    width: clamp(150px, 22vw, 360px) !important;
    background:
        radial-gradient(ellipse at 42% 2%, rgba(255, 95, 72, 0.28), transparent 16%),
        linear-gradient(180deg, rgba(255, 210, 188, 0.1), transparent 12%, rgba(0, 0, 0, 0.32) 100%),
        repeating-linear-gradient(90deg,
            #100102 0 8px,
            #2b0205 8px 16px,
            #65070d 16px 27px,
            #d20e1d 27px 38px,
            #8a0710 38px 49px,
            #260205 49px 61px,
            #050000 61px 70px) !important;
    box-shadow:
        inset 0 0 34px rgba(0, 0, 0, 0.8),
        inset 22px 0 40px rgba(255, 120, 90, 0.08),
        0 18px 46px rgba(0, 0, 0, 0.72) !important;
}

.curtain-left {
    clip-path: polygon(0 0, 100% 0, 92% 11%, 80% 24%, 69% 36%, 56% 49%, 44% 63%, 30% 78%, 22% 100%, 0 100%) !important;
}

.curtain-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 78% 100%, 70% 78%, 56% 63%, 44% 49%, 31% 36%, 20% 24%, 8% 11%) !important;
}

.curtain-folds::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 52% 18%, rgba(0, 0, 0, 0.34), transparent 22%),
        radial-gradient(ellipse at 40% 48%, rgba(255, 210, 190, 0.12), transparent 18%),
        radial-gradient(ellipse at 62% 78%, rgba(0, 0, 0, 0.28), transparent 20%);
    mix-blend-mode: soft-light;
}

.curtain-left::after,
.curtain-right::after {
    content: "";
    position: absolute;
    top: 92px;
    width: 52%;
    height: 16px;
    background: linear-gradient(90deg, rgba(77, 42, 15, 0.2), #9b6926, #e0ba65, #754719);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

body:has(.featured)::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 168px;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 218, 138, 0.42), transparent 38%),
        repeating-linear-gradient(90deg, #5b3218 0 44px, #7a471f 44px 88px, #3b1d0c 88px 132px),
        linear-gradient(180deg, #9c672f, #2a1408);
    clip-path: polygon(0 36%, 100% 36%, 100% 100%, 0 100%);
    opacity: 0.72;
}

.curtain-left::after {
    right: 5%;
    transform: rotate(-9deg);
    border-radius: 999px 30px 30px 999px;
}

.curtain-right::after {
    left: 5%;
    transform: rotate(9deg);
    border-radius: 30px 999px 999px 30px;
}

.curtain-rod {
    height: 18px !important;
}

/* Homepage stage framing */
header {
    backdrop-filter: blur(12px);
}

.featured {
    background: #080505;
    border-width: 2px !important;
    margin-top: 42px !important;
}

.featured::after {
    background:
        linear-gradient(180deg, transparent 68%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(circle at 50% 0%, rgba(255, 244, 215, 0.22), transparent 34%) !important;
}

.featured img {
    filter: saturate(1.08) contrast(1.05);
}

.featured::before {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 208, 118, 0.32), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.58)) !important;
}

/* Auth improvements */
.auth-page,
.admin-auth-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(185, 68, 62, 0.16), transparent 34%),
        linear-gradient(180deg, #080505, #160909 52%, #070505) !important;
}

.auth-form,
.admin-auth-form {
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.05), transparent 26%),
        linear-gradient(145deg, #1b1211, #0b0808) !important;
    border: 1px solid rgba(185, 92, 70, 0.34);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.6) !important;
}

.password-field {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.password-field input {
    flex: 1;
}

.password-toggle {
    width: auto !important;
    min-width: 72px;
    padding: 0 12px !important;
    font-size: 13px !important;
}

.password-strength {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 244, 215, 0.12);
}

.password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8a2020;
    transition: width 180ms ease, background-color 180ms ease;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: #b83232;
}

.password-strength.medium .password-strength-bar {
    width: 68%;
    background: #b98232;
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: #3d9b68;
}

.password-hint,
.auth-message {
    margin: 8px 0 0;
    color: #b9a58a;
    font-size: 12px;
    line-height: 1.45;
}

.auth-message {
    min-height: 18px;
    color: #e49a8d;
}

.auth-message.success {
    color: #8fd8a8;
}

.auth-message.error {
    color: #ff9b9b;
}

.auth-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.link-button {
    margin-top: 12px;
    background: transparent !important;
    border: 1px solid rgba(215, 173, 80, 0.35) !important;
    color: #f4d28a !important;
}

.forgot-panel,
.otp-group {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(215, 173, 80, 0.22);
    border-radius: 8px;
    background: rgba(255, 244, 215, 0.04);
}

.payment-note {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(215, 173, 80, 0.28);
    border-left: 4px solid #d7ad50;
    border-radius: 8px;
    background: rgba(255, 244, 215, 0.055);
    color: #eadfcb;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.button-group button:disabled {
    cursor: default;
    opacity: 0.72;
}

.existing-showtimes-preview {
    min-height: 44px;
    padding: 12px;
    border: 1px solid rgba(215, 173, 80, 0.22);
    border-radius: 8px;
    background: rgba(255, 244, 215, 0.04);
    color: #d8c8ac;
    font-size: 13px;
    line-height: 1.6;
}

.existing-showtime-chip {
    display: inline-block;
    margin: 3px 6px 3px 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(215, 173, 80, 0.35);
    background: rgba(143, 16, 23, 0.38);
    color: #f4d28a;
    font-weight: 700;
}

.admin-form-field input[type="file"] {
    width: 100%;
    padding: 11px;
    border: 1px dashed rgba(215, 173, 80, 0.42);
    border-radius: 8px;
    background: rgba(255, 244, 215, 0.055);
    color: #eadfcb;
}

.terms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 14px;
    color: #d8c8ac;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.terms-check input {
    width: auto !important;
    margin-top: 3px;
}

.terms-check a {
    color: #e8c9a7;
    font-weight: 700;
}

.movies::before {
    content: "Now Showing";
    width: 100%;
    margin: 0 0 4px;
    color: #f0d8b3;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: 0.04em;
    text-align: center;
}

/* Stronger admin redesign */
.admin-container {
    --admin-bg: #080606;
    --admin-panel: #141010;
    --admin-panel-soft: #1d1412;
    --admin-red: #8c1720;
    --admin-red-soft: #b9443e;
    --admin-text: #eadfcb;
    --admin-muted: #a99678;
    --admin-line: rgba(185, 92, 70, 0.3);
    background:
        radial-gradient(circle at 72% -4%, rgba(185, 68, 62, 0.12), transparent 34%),
        linear-gradient(135deg, #060505 0%, #120808 52%, #070505 100%) !important;
    color: var(--admin-text) !important;
}

.admin-sidebar {
    width: 270px !important;
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.035), transparent 18%),
        linear-gradient(180deg, #31080b 0%, #160708 45%, #080505 100%) !important;
    border-right: 1px solid var(--admin-line) !important;
}

.admin-sidebar-header {
    padding: 30px 20px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(240, 216, 179, 0.13), transparent 50%),
        linear-gradient(150deg, #5d0c12 0%, #240607 100%) !important;
}

.admin-sidebar-header h1 {
    color: #f0d8b3 !important;
    font-size: 22px !important;
}

.admin-sidebar-header p {
    color: var(--admin-muted) !important;
    letter-spacing: 0.16em !important;
}

.admin-nav-menu {
    padding: 14px 12px !important;
}

.admin-nav-btn {
    margin-bottom: 6px !important;
    padding: 13px 14px !important;
    border-left: 0 !important;
    border-radius: 8px !important;
    color: #c9b899 !important;
    background: transparent !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background:
        linear-gradient(90deg, rgba(140, 23, 32, 0.74), rgba(140, 23, 32, 0.16)) !important;
    color: #fff2d6 !important;
    box-shadow: inset 3px 0 0 #b9443e, 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

.admin-content {
    margin-left: 270px !important;
    padding: 34px !important;
}

.admin-header {
    min-height: 76px;
    padding: 22px 26px !important;
    background:
        linear-gradient(90deg, rgba(140, 23, 32, 0.18), transparent 48%),
        linear-gradient(145deg, #1b1211, #0b0808) !important;
    border: 1px solid var(--admin-line) !important;
}

.admin-header h2 {
    font-family: "Cinzel", Georgia, serif !important;
    color: #f0d8b3 !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    letter-spacing: 0.02em;
}

.admin-stats-grid {
    gap: 18px !important;
}

.admin-stat-card {
    padding: 24px !important;
    text-align: left !important;
    background:
        linear-gradient(180deg, rgba(185, 68, 62, 0.08), transparent 45%),
        linear-gradient(145deg, #1d1412, #0b0808) !important;
}

.admin-stat-card::before,
.admin-stat-card::after {
    display: none !important;
}

.admin-stat-value {
    color: #e16f63 !important;
    font-weight: 800 !important;
}

.admin-stat-label {
    color: #b9a58a !important;
    font-weight: 700 !important;
}

.admin-form-section {
    padding: 26px !important;
}

.admin-form-section h3 {
    color: #e8c9a7 !important;
    border-bottom: 1px solid var(--admin-line) !important;
    font-family: "Cinzel", Georgia, serif !important;
}

.admin-form-field label {
    color: #b9a58a !important;
}

.admin-form-field input,
.admin-form-field textarea,
.admin-form-field select {
    background: #0d0a0a !important;
    color: #eadfcb !important;
    border: 1px solid rgba(185, 92, 70, 0.34) !important;
    box-shadow: none !important;
}

.admin-form-field input::placeholder,
.admin-form-field textarea::placeholder {
    color: #796b58;
}

.admin-form-field input:focus,
.admin-form-field textarea:focus,
.admin-form-field select:focus {
    border-color: #b9443e !important;
    box-shadow: 0 0 0 3px rgba(185, 68, 62, 0.16) !important;
}

.admin-table-wrapper {
    background: #100c0b !important;
}

.admin-table thead {
    background: #23100f !important;
}

.admin-table th {
    color: #d6b491 !important;
    font-size: 12px !important;
}

.admin-table td {
    color: #dfd2bf !important;
    background: rgba(255, 244, 215, 0.015);
}

.admin-table tr:nth-child(even) td {
    background: rgba(185, 68, 62, 0.035);
}

.admin-btn,
.admin-logout-btn {
    background: linear-gradient(180deg, #a7252f 0%, #641017 100%) !important;
    color: #fff1d8 !important;
    border: 1px solid rgba(240, 216, 179, 0.16) !important;
}

.admin-btn:hover,
.admin-logout-btn:hover {
    background: linear-gradient(180deg, #bd333d 0%, #75151d 100%) !important;
}

.admin-btn-secondary {
    background: #2c2420 !important;
    color: #e0cfb6 !important;
}

.admin-btn-danger {
    background: linear-gradient(180deg, #8f2020 0%, #520e0e 100%) !important;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 210px !important;
    }

    .admin-content {
        margin-left: 210px !important;
    }
}

@media (max-width: 600px) {
    .admin-content {
        margin-left: 0 !important;
    }
}

/* Reference-style premium proscenium curtain for homepage */
body:has(.curtain-valance) {
    background:
        radial-gradient(ellipse at 50% 46%, rgba(255, 211, 121, 0.16), transparent 22%),
        linear-gradient(180deg, #050202 0%, #110304 38%, #050303 100%) !important;
}

.curtain-rod {
    top: 74px !important;
    left: clamp(18px, 5vw, 72px) !important;
    right: clamp(18px, 5vw, 72px) !important;
    height: 14px !important;
    border-radius: 999px;
    background:
        radial-gradient(circle at 0 50%, #fff2b8 0 8px, #9d661c 9px 15px, transparent 16px),
        radial-gradient(circle at 100% 50%, #fff2b8 0 8px, #9d661c 9px 15px, transparent 16px),
        linear-gradient(180deg, #fff0a8 0%, #dba646 32%, #6f4215 68%, #f1ca67 100%) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    z-index: 8 !important;
}

.curtain-valance {
    position: fixed;
    top: 78px;
    left: clamp(34px, 7vw, 105px);
    right: clamp(34px, 7vw, 105px);
    height: 150px;
    z-index: 7;
    pointer-events: none;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.58));
}

.valance-swag {
    position: absolute;
    top: 0;
    height: 130px;
    border-radius: 0 0 50% 50% / 0 0 90% 90%;
    background:
        radial-gradient(ellipse at 50% 95%, rgba(0, 0, 0, 0.58), transparent 34%),
        repeating-radial-gradient(ellipse at 50% -18%, rgba(255, 92, 70, 0.72) 0 10px, rgba(121, 5, 12, 0.78) 11px 22px, rgba(33, 1, 4, 0.72) 23px 30px),
        linear-gradient(180deg, #e31523 0%, #a50813 48%, #510308 100%);
    box-shadow:
        inset 0 16px 24px rgba(255, 150, 120, 0.22),
        inset 0 -24px 36px rgba(0, 0, 0, 0.45);
}

.valance-left {
    left: 0;
    width: 36%;
    transform: skewX(-4deg);
}

.valance-center {
    left: 31%;
    width: 38%;
    height: 148px;
    transform: translateY(-2px);
    z-index: 2;
}

.valance-right {
    right: 0;
    width: 36%;
    transform: skewX(4deg);
}

.valance-rope {
    position: absolute;
    top: 112px;
    height: 10px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(135deg, #5c3610 0 6px, #f3d074 6px 12px, #8b5b1e 12px 18px);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.45);
}

.valance-rope-left {
    left: 2%;
    width: 32%;
    transform: rotate(7deg);
}

.valance-rope-center {
    left: 34%;
    width: 32%;
    top: 132px;
}

.valance-rope-right {
    right: 2%;
    width: 32%;
    transform: rotate(-7deg);
}

.curtain-left,
.curtain-right {
    top: 86px !important;
    width: clamp(155px, 22vw, 340px) !important;
    height: min(74vh, 640px) !important;
    opacity: 1 !important;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 116, 92, 0.32), transparent 15%),
        repeating-linear-gradient(90deg,
            #0d0102 0 9px,
            #340206 9px 19px,
            #7b0710 19px 31px,
            #e51422 31px 43px,
            #9c0812 43px 56px,
            #3a0306 56px 69px,
            #090001 69px 80px) !important;
    box-shadow:
        inset 0 0 48px rgba(0, 0, 0, 0.82),
        inset 24px 0 48px rgba(255, 107, 78, 0.12),
        0 22px 52px rgba(0, 0, 0, 0.72) !important;
    z-index: 6 !important;
}

.curtain-left {
    left: clamp(34px, 7vw, 105px) !important;
    clip-path: polygon(0 0, 100% 0, 88% 12%, 73% 26%, 58% 39%, 45% 52%, 37% 67%, 28% 100%, 0 100%) !important;
}

.curtain-right {
    right: clamp(34px, 7vw, 105px) !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 72% 100%, 63% 67%, 55% 52%, 42% 39%, 27% 26%, 12% 12%) !important;
}

.curtain-folds {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 9%, rgba(255, 150, 124, 0.18) 17%, rgba(0, 0, 0, 0.5) 30%, rgba(255, 92, 72, 0.14) 43%, rgba(0, 0, 0, 0.55) 58%, rgba(255, 155, 130, 0.14) 72%, rgba(0, 0, 0, 0.62) 88%),
        radial-gradient(ellipse at 50% 12%, rgba(255, 200, 170, 0.14), transparent 26%) !important;
}

.curtain-tieback {
    position: absolute;
    top: 43%;
    width: 60%;
    height: 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(135deg, #53300d 0 6px, #f1cf73 6px 12px, #8c5a19 12px 18px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.55);
}

.curtain-tieback::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 22px;
    height: 58px;
    background: linear-gradient(180deg, #f5d77d, #91601e);
    clip-path: polygon(50% 0, 100% 82%, 68% 70%, 50% 100%, 32% 70%, 0 82%);
}

.curtain-left .curtain-tieback {
    right: 7%;
    transform: rotate(-16deg);
}

.curtain-left .curtain-tieback::after {
    right: 4px;
}

.curtain-right .curtain-tieback {
    left: 7%;
    transform: rotate(16deg);
}

.curtain-right .curtain-tieback::after {
    left: 4px;
}

.curtain-left::after,
.curtain-right::after {
    display: none !important;
}

.featured {
    margin-top: 186px !important;
    width: min(1040px, calc(100% - 56px)) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(241, 202, 103, 0.22) !important;
}

header {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .curtain-valance {
        left: 12px;
        right: 12px;
        height: 104px;
    }

    .valance-swag {
        height: 92px;
    }

    .valance-center {
        height: 106px;
    }

    .valance-rope {
        top: 78px;
    }

    .valance-rope-center {
        top: 94px;
    }

    .featured {
        margin-top: 128px !important;
        width: calc(100% - 28px) !important;
    }
}

/* Image-based homepage background.
   Save the uploaded curtain image as assets/theatre-curtain-bg.png. */
body:has(.curtain-valance) {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
        url("assets/theatre-curtain-bg.png?v=red-curtain-no-brown") center top / cover no-repeat fixed,
        #050303 !important;
}

body:has(.curtain-valance)::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(255, 214, 126, 0.08), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.52)) !important;
}

.curtain-rod,
.curtain-valance,
.curtain-left,
.curtain-right {
    display: none !important;
}

header {
    margin-top: 24px !important;
}

.featured {
    margin-top: 0 !important;
}

@media (max-width: 760px) {
    body:has(.curtain-valance) {
        background-size: auto, cover, auto !important;
        background-position: center top, center top, center !important;
    }

    .featured {
        margin-top: 0 !important;
    }
}

/* Compact movie details flow */
.movie-detail-page {
    width: min(1180px, calc(100% - 36px));
    margin: 86px auto 44px;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.08fr);
    gap: 22px;
    align-items: stretch;
}

.movie-poster-panel,
.movie-flow-card,
.seat-section-panel {
    border: 1px solid rgba(215, 173, 80, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 244, 215, 0.055), transparent 28%),
        linear-gradient(145deg, rgba(37, 22, 19, 0.96), rgba(10, 7, 7, 0.98));
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
}

.movie-poster-panel {
    padding: 22px;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: space-between;
}

.movie-detail-page #title {
    margin: 0 0 16px;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.05;
}

.movie-detail-page #posterWrap {
    width: min(100%, 310px);
    max-width: 310px;
    margin: 0 auto 16px;
}

.movie-detail-page #poster {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.movie-meta-strip {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255, 244, 215, 0.08);
}

.movie-detail-page #year,
.movie-detail-page #genre {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.movie-flow-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.movie-flow-card {
    padding: 18px;
}

.movie-detail-page #synopsisWrap {
    display: block;
    width: auto;
    padding: 18px;
}

.movie-detail-page #synopsis {
    width: 100%;
    max-width: none;
    min-height: 150px;
    max-height: 220px;
    margin: 0;
    overflow-y: auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.movie-detail-page #synopsis,
.movie-detail-page #synopsis * {
    text-align: left !important;
}

.movie-detail-page h2 {
    margin: 0 0 14px;
    font-size: 19px;
    font-family: "Cinzel", Georgia, serif;
}

#theatersContainer,
#timeSlotsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.selected-theater-line {
    margin: 0 0 12px;
    color: #b9a58a;
}

.selected-theater-line strong {
    color: var(--ticket-gold-soft, #d7ad50);
}

.selected-showtime-card {
    border-left: 4px solid #2f9e63;
    background:
        linear-gradient(180deg, rgba(47, 158, 99, 0.16), rgba(10, 7, 7, 0.98)) !important;
}

.selected-showtime-card p {
    margin: 5px 0;
}

.seat-section-panel {
    margin-top: 26px;
    padding: 22px;
    overflow: hidden;
    text-align: center;
}

.seat-section-heading {
    width: min(720px, 100%);
    margin: 0 auto 18px;
    text-align: center;
}

.seat-section-heading h2 {
    margin-bottom: 8px;
}

.seat-section-heading p {
    margin: 6px 0;
}

.seat-capacity-note {
    color: #999;
    font-size: 13px;
}

.seat-section-heading .seat-legend {
    margin-top: 12px;
    margin-bottom: 0;
}

.seat-scroll-area {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

.seat-scroll-area .seats {
    width: max-content;
    min-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.seat-section-panel > button {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
}

@media (max-width: 860px) {
    .movie-detail-page {
        width: min(100% - 24px, 680px);
        margin-top: 76px;
    }

    .movie-detail-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster-panel {
        min-height: unset;
    }

    .movie-detail-page #posterWrap {
        max-width: 260px;
    }
}

/* Final homepage spacing: keep a small gap between the navigation and banner. */
body:has(.featured) header {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

body:has(.featured) .featured {
    margin: 0 auto 30px !important;
}

header + .featured {
    margin-top: 14px !important;
}

body:has(.featured) .featured img {
    border-radius: 0 0 14px 14px;
}

.reservation-details-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.reservation-details-dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 26px;
    border-radius: 10px;
    background: linear-gradient(145deg, #211313 0%, #0d0808 100%);
    border: 1px solid rgba(214, 168, 79, 0.38);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    text-align: left;
}

.reservation-details-dialog h2 {
    margin: 8px 42px 18px 0;
    color: #fff3d0;
}

.reservation-details-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: #7e1018;
    color: #fff3d0;
}

.reservation-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.reservation-detail-item {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 244, 215, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reservation-detail-item span {
    display: block;
    margin-bottom: 6px;
    color: #d6a84f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.reservation-detail-item strong {
    display: block;
    color: #f8ead0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.reservation-details-actions {
    justify-content: flex-end;
}
