:root {
    --bg: #0f1116;
    --panel: #171a21;
    --panel-alt: #1d222c;
    --text: #f2f3f5;
    --muted: #b6bcc8;
    --accent: #e10600;
    --accent-hover: #ff2f27;
    --border: #2b3140;
    --success: #15b66b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-image:
        linear-gradient(rgba(15, 17, 22, 0.62), rgba(15, 17, 22, 0.70)),
        url('./images/background.png');
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 17, 22, 0.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--accent);
}

.brand span {
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-open-btn {
    padding: 8px 12px;
}

.step-indicator {
    color: var(--muted);
    font-size: 0.95rem;
}

.icon-btn {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 8px 11px;
    border-radius: 10px;
    cursor: pointer;
}

.notification {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 280px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.notification-item {
    border-bottom: 1px solid var(--border);
    padding: 8px 4px;
    font-size: 0.92rem;
    color: var(--muted);
}

.notification-item:last-child {
    border-bottom: 0;
}

.hidden {
    display: none;
}

.container {
    width: min(1080px, 92%);
    margin: 0 auto;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0 40px;
}

.step-page {
    display: none;
    background: linear-gradient(180deg, var(--panel), var(--panel-alt));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: min(980px, 100%);
    max-width: 980px;
    margin: 0 auto;
}

.step-page.active {
    display: block;
}

h1,
h2 {
    margin-top: 0;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.option-card {
    background: #12151c;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: #454f66;
}

.option-card.selected {
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.option-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.price {
    color: var(--accent);
    font-weight: 700;
    margin: 12px 0;
}

.card-action {
    display: flex;
    justify-content: flex-end;
}

.summary-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #11141b;
    padding: 16px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.navigation {
    display: flex;
    justify-content: space-between;
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #2a303d;
    color: var(--text);
}

.booking-message {
    margin-top: 12px;
    color: var(--success);
    font-weight: 600;
}

.payment-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #11141b;
    padding: 16px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.payment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--muted);
}

.input-group input {
    border: 1px solid var(--border);
    background: #0b0f16;
    color: var(--text);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent);
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wallet-btn {
    display: block;
    width: 100%;
    background: #20293a;
    color: #fff;
    margin-top: 10px;
}

.wallet-btn:hover {
    background: #2d3750;
}

.final-success-box {
    margin-top: 14px;
    border: 1px solid rgba(21, 182, 107, 0.35);
    background: linear-gradient(180deg, rgba(21, 182, 107, 0.14), rgba(21, 182, 107, 0.06));
    border-radius: 12px;
    padding: 14px;
}

.final-success-box h3 {
    margin: 0 0 6px;
    color: #59dd9f;
}

.final-success-box p {
    margin: 0;
    color: #d8f9ea;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.auth-modal {
    width: min(460px, 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--panel), #121720);
    padding: 16px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auth-header h3 {
    margin: 0;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
}

.auth-tab:not(.active):hover {
    background: #364056;
}

.seat-modal {
    width: min(580px, 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--panel), #121720);
    padding: 16px;
    max-height: 85vh;
    overflow-y: auto;
}

.seat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.seat-modal-header h3 {
    margin: 0;
}

.grandstand-grid {
    display: grid;
    grid-template-columns: auto repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    background: #0b0f16;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.grandstand-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--muted);
    min-width: 30px;
}

.seat-button {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    background: #1a1f2e;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.seat-button:hover {
    border-color: #454f66;
    background: #242d3d;
}

.seat-button.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.selected-seat-display {
    text-align: center;
    color: var(--success);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 640px) {
    .topbar {
        padding: 12px 14px;
    }

    .container {
        justify-content: flex-start;
        min-height: auto;
        padding-top: 20px;
    }

    .step-page {
        padding: 18px;
    }

    .navigation {
        gap: 10px;
    }

    .navigation .btn {
        flex: 1;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }

    .topbar-right {
        gap: 8px;
    }

    .step-indicator {
        display: none;
    }
}
