/* ============================================================
   BALLOONS TICKETING — Global Stylesheet
   ============================================================ */

:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --dark: #2c3e50;
    --light: #f9f9f9;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --font: 'Poppins', sans-serif;
    --header-height: 72px;
    --footer-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   LAYOUT — Fixed header & footer, scrollable content
   ============================================================ */
html, body {
    height: 100%;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--dark);
    color: white;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    flex-shrink: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

    .logo span {
        color: var(--secondary);
    }

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

    .site-nav a,
    .site-nav .nav-logout {
        color: white;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 0.9rem;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
        background: transparent;
        border: none;
        font-size: 0.95rem;
        font-family: inherit;
        cursor: pointer;
    }

        .site-nav a:hover,
        .site-nav .nav-logout:hover {
            background: rgba(255,255,255,0.12);
            color: var(--secondary);
        }

/* ============================================================
   CONTAINER (scrollable area, hidden scrollbar)
   ============================================================ */
.container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .container::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: #bdc3c7;
    padding: 0;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

    .card h1 {
        margin-bottom: 0.5rem;
    }

    .card h3 {
        margin-bottom: 0.75rem;
        color: var(--dark);
    }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
    text-decoration: none;
}

    .btn:hover {
        background: #e55a5a;
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(255,107,107,0.4);
    }

    .btn:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-secondary {
    background: var(--secondary);
}

    .btn-secondary:hover {
        background: #3cb3ab;
    }

.btn-warning {
    background: var(--warning);
}

    .btn-warning:hover {
        background: #d68910;
    }

.btn-danger {
    background: var(--danger);
}

    .btn-danger:hover {
        background: #c0392b;
    }

.btn-success {
    background: var(--success);
}

    .btn-success:hover {
        background: #27ae60;
    }

.btn-info {
    background: #17a2b8;
}

    .btn-info:hover {
        background: #138496;
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

    .btn-outline:hover {
        background: var(--dark);
        color: white;
    }

.btn-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--dark);
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: 0 2px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .btn-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .btn-icon.confirm {
        background: #d4edda;
        color: #155724;
    }

    .btn-icon.cancel {
        background: #f8d7da;
        color: #721c24;
    }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ============================================================
   FORMS
   ============================================================ */
label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="datetime-local"]:focus {
        border-color: var(--primary);
        outline: none;
    }

/* ============================================================
   TABLES
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 0.9rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--dark);
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f5f5f5;
}

/* ============================================================
   TIMER BOX
   ============================================================ */
.timer-box {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

    .timer-box .label {
        font-size: 0.85rem;
        opacity: 0.8;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

/* ============================================================
   SEAT LAYOUT (matches Create Event preview)
   ============================================================ */
.seat-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.section-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-vip {
    background: linear-gradient(135deg, #ffd700, #ffb400);
    color: #4a3500;
}

.badge-ga {
    background: linear-gradient(135deg, #4ecdc4, #38b2ac);
    color: white;
}

.section-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.section-allowance {
    margin-left: auto;
    font-size: 0.85rem;
    color: #64748b;
}

    .section-allowance strong {
        color: var(--primary);
        font-weight: 800;
    }

.vip-cap-note {
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    border-left: 3px solid #94a3b8;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.vip-cap-lifted {
    background: #ecfdf5;
    border-left-color: #2ecc71;
    color: #0d6b3c;
}

/* --- The seat layout container --- */
.seat-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.seat-stage-bar {
    padding: 0.4rem 2.5rem;
    background: linear-gradient(135deg, var(--dark), #4a5568);
    color: white;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(44,62,80,0.25);
}

/* --- Individual row --- */
.seat-row-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 100%;
}

.seat-row-label {
    width: 26px;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.seat-row-items {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* --- Clickable seat tiles --- */
.seat {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    user-select: none;
    border: 2px solid transparent;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0;
}

    .seat input {
        display: none;
    }

    .seat .seat-num {
        pointer-events: none;
        font-size: 0.68rem;
        color: #475569;
    }

    /* --- Seat states --- */
    .seat.available {
        background: #d4f7e4;
        border-color: #2ecc71;
    }

        .seat.available .seat-num {
            color: #0d6b3c;
        }

        .seat.available:hover {
            transform: translateY(-2px) scale(1.08);
            box-shadow: 0 6px 12px rgba(46,204,113,0.35);
        }

    .seat.selected {
        background: linear-gradient(135deg, #ffd700, #ffb400);
        border-color: #e6b800;
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(255,193,7,0.25), 0 4px 10px rgba(255,180,0,0.4);
    }

        .seat.selected .seat-num {
            color: #4a3500;
        }

    .seat.reserved {
        background: #e2e8f0;
        border-color: #94a3b8;
        cursor: not-allowed;
        opacity: 0.75;
    }

        .seat.reserved .seat-num {
            color: #64748b;
        }

    .seat.sold {
        background: #fecaca;
        border-color: #ef4444;
        cursor: not-allowed;
        opacity: 0.8;
    }

        .seat.sold .seat-num {
            color: #991b1b;
        }

/* --- Legend --- */
.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

    .legend-dot.available {
        background: #d4f7e4;
        border: 2px solid #2ecc71;
    }

    .legend-dot.selected {
        background: linear-gradient(135deg, #ffd700, #ffb400);
        border: 2px solid #e6b800;
    }

    .legend-dot.reserved {
        background: #e2e8f0;
        border: 2px solid #94a3b8;
    }

    .legend-dot.sold {
        background: #fecaca;
        border: 2px solid #ef4444;
    }

/* --- GA closed banner --- */
.ga-closed-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.ga-closed-icon {
    font-size: 1.8rem;
}

.ga-closed-banner strong {
    display: block;
    color: #475569;
}

.ga-closed-banner p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Shake animation (for conflict errors) --- */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ============================================================
   CHILD INPUT ROWS
   ============================================================ */
.child-entry {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

    .child-entry input {
        flex: 1;
        min-width: 120px;
    }

.validation-result {
    font-size: 0.9rem;
    font-weight: 500;
}

    .validation-result.success {
        color: var(--success);
    }

    .validation-result.error {
        color: var(--danger);
    }

/* ============================================================
   HERO (HOME PAGE) — STICKY
   ============================================================ */
.hero-section {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    border-radius: 0 0 24px 24px;
    padding: 2.5rem 2rem;
    margin: 0 0 2rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255,107,107,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0.5rem 0 1.5rem;
}

.hero-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-pill {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.35);
}

.hero-balloons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.balloon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.5;
    animation: floatUp 6s ease-in-out infinite;
}

.balloon-1 {
    left: 5%;
    bottom: -20px;
    animation-delay: 0s;
}

.balloon-2 {
    left: 20%;
    bottom: -20px;
    animation-delay: 1s;
    font-size: 2rem;
}

.balloon-3 {
    left: 50%;
    bottom: -20px;
    animation-delay: 2s;
    font-size: 3rem;
}

.balloon-4 {
    left: 75%;
    bottom: -20px;
    animation-delay: 0.5s;
}

.balloon-5 {
    left: 90%;
    bottom: -20px;
    animation-delay: 1.5s;
    font-size: 2rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-250px) rotate(15deg);
        opacity: 0;
    }
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.events-section {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

    .section-header h2 {
        font-size: 1.6rem;
        margin: 0 0 0.2rem;
        color: var(--dark);
    }

    .section-header p {
        font-size: 0.9rem;
        color: #7f8c8d;
        margin: 0;
    }

.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

    .events-grid > .event-card {
        flex: 0 0 340px;
        max-width: 100%;
    }

.event-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(44,62,80,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(0,0,0,0.04);
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(44,62,80,0.15);
    }



.event-ribbon {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.ribbon-open {
    background: #d4edda;
    color: #155724;
}

.ribbon-upcoming {
    background: #fff3cd;
    color: #856404;
}

.ribbon-ended {
    background: #f8d7da;
    color: #721c24;
}

.event-header {
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.event-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.event-name {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    color: var(--dark);
}

.event-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #7f8c8d;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.event-body {
    padding: 0.85rem 1rem;
    flex: 1;
}

.event-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.info-icon {
    font-size: 0.95rem;
}

.info-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #95a5a6;
    font-weight: 700;
}

.info-value {
    font-size: 0.78rem;
    color: #34495e;
    font-weight: 500;
    line-height: 1.3;
}

.event-prices {
    display: flex;
    gap: 0.5rem;
}

.price-tag {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.price-vip {
    background: linear-gradient(135deg, #fff8d6, #ffe9a3);
    color: #7a5a00;
}

.price-ga {
    background: linear-gradient(135deg, #d9f8f5, #a8ece7);
    color: #0b5c55;
}

.price-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    opacity: 0.8;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 800;
}

.event-footer {
    padding: 0.75rem 1rem 1rem;
}

.btn-event {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-open {
    background: linear-gradient(135deg, var(--primary), #e55a5a);
    color: white;
    box-shadow: 0 4px 14px rgba(255,107,107,0.3);
}

    .btn-open:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255,107,107,0.45);
    }

.event-countdown {
    text-align: center;
    font-size: 0.78rem;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.countdown-icon {
    font-size: 0.9rem;
}

.empty-events {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(44,62,80,0.08);
}

    .empty-events .empty-icon {
        font-size: 3rem;
        display: block;
        margin-bottom: 0.75rem;
        opacity: 0.6;
    }

    .empty-events h3 {
        margin: 0 0 0.4rem;
        color: var(--dark);
    }

    .empty-events p {
        color: #7f8c8d;
        margin: 0;
        font-size: 0.9rem;
    }

/* ============================================================
   ORDER FORM — LAYOUT WITH STICKY SIDEBAR
   ============================================================ */
.order-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    overflow: visible;
}

.order-main {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.order-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 4rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .order-sidebar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

/* Event header banner on the order form */
.event-header-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(44,62,80,0.08);
}

    .event-header-banner > div:not(.event-header-icon) {
        flex: 1;
        min-width: 0;
    }

.event-header-icon {
    flex: 0 0 auto;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), #e55a5a);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}

.event-header-banner h1 {
    margin: 0 0 0.1rem;
    font-size: 1.15rem;
}

.event-header-banner p {
    margin: 0;
    font-size: 0.82rem;
}

/* ============================================================
   SUMMARY CARD (SIDEBAR)
   ============================================================ */
.summary-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height) - var(--footer-height) - 4rem);
}

.summary-header {
    background: linear-gradient(135deg, var(--primary) 0%, #e55a5a 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

    .summary-header h3 {
        margin: 0;
        font-size: 1.15rem;
        letter-spacing: 0.5px;
        color: white;
    }

.summary-icon {
    font-size: 1.4rem;
}

.summary-body {
    padding: 1rem 1.25rem;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .summary-body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

.empty-summary {
    text-align: center;
    padding: 1.5rem 0.5rem;
    color: #95a5a6;
}

.empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-summary p {
    margin: 0;
    font-weight: 600;
    color: #7f8c8d;
}

.empty-summary small {
    color: #bdc3c7;
}

.summary-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0e0;
}

    .summary-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-vip {
    background: linear-gradient(135deg, #ffd700, #ffb400);
    color: #4a3500;
}

.badge-ga {
    background: linear-gradient(135deg, #4ecdc4, #38b2ac);
    color: white;
}

.section-price {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.seat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

    .seat-list li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.3rem 0;
        font-size: 0.9rem;
        color: #34495e;
        font-weight: 500;
    }

.seat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vip-dot {
    background: #ffb400;
}

.ga-dot {
    background: #38b2ac;
}

.subtotal {
    font-size: 0.8rem;
    text-align: right;
    color: #7f8c8d;
}

    .subtotal strong {
        color: #2c3e50;
    }

.summary-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    flex-shrink: 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.total-value {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #e55a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #95a5a6;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.3;
}

    .summary-note span {
        font-size: 0.9rem;
    }

/* Payment block inside the sidebar */
.payment-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.payment-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .payment-input:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
    }

.submit-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #e55a5a);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255,107,107,0.4);
    }

    .submit-btn:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ============================================================
   PENDING ORDER CHIP + MODAL
   ============================================================ */
.pending-chip {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8a3 100%);
    border: 2px solid #ffb400;
    color: #5a4500;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    margin-bottom: 1rem;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 6px 18px rgba(255,180,0,0.25);
    overflow: hidden;
}

    .pending-chip::before {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
        transform: skewX(-20deg);
        transition: left 0.6s;
    }

    .pending-chip:hover::before {
        left: 125%;
    }

    .pending-chip:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #fff4cf 0%, #ffdb70 100%);
        box-shadow: 0 10px 26px rgba(255,180,0,0.4);
    }

.pending-chip-pulse {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 0 0 rgba(255,107,107,0.7);
    animation: pendingPulse 1.8s infinite;
}

@keyframes pendingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,107,107,0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255,107,107,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,107,107,0);
    }
}

.pending-chip-icon {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ffd700, #ffb400);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,180,0,0.4);
}

.pending-chip-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pending-chip-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #7a5a00;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.pending-chip-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: #a68430;
    margin-top: 0.15rem;
}

.pending-chip-count {
    background: linear-gradient(135deg, #ff6b6b, #e55a5a);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
    border-radius: 50px;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255,107,107,0.4);
    flex-shrink: 0;
}

/* --- Modal overlay --- */
.pending-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

    .pending-modal-overlay.open {
        display: flex;
    }

.pending-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.pending-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), #e55a5a);
    color: white;
    flex-shrink: 0;
}

    .pending-modal-header h3 {
        margin: 0;
        font-size: 1.05rem;
        color: white;
    }

.pending-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

    .pending-modal-close:hover {
        background: rgba(255,255,255,0.35);
    }

.pending-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.pending-order-card {
    background: #fffaf0;
    border: 1px solid #f0d68c;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

    .pending-order-card:last-child {
        margin-bottom: 0;
    }

.pending-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

    .pending-order-top strong {
        color: #7a5a00;
        font-size: 0.9rem;
    }

.pending-order-meta {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    color: #8a7040;
}

.status-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: #ffb400;
    color: #4a3500;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pending-order-seats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.chip-child {
    display: inline-block;
    width: auto;
    background: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a4500;
    border: 1px solid #f0d68c;
}

.chip-vip {
    display: inline-block;
    width: auto;
    background: linear-gradient(135deg, #ffd700, #ffb400);
    color: #4a3500;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pending-seat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}

.chip-seat {
    display: inline-block;
    width: auto;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.chip-seat-vip {
    background: #fff3c4;
    color: #7a5a00;
    border: 1px solid #e6b800;
}

.chip-seat-ga {
    background: #d9f8f5;
    color: #0b5c55;
    border: 1px solid #4ecdc4;
}

.pending-order-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

    .pending-order-link:hover {
        text-decoration: underline;
    }

.pending-modal-footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    flex-shrink: 0;
}

.pending-order-note {
    padding: 0.55rem 0.75rem;
    background: #fff8e1;
    border: 1px dashed #d4a017;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #5a4500;
}

.pending-order-note-locked {
    background: #ffeaea;
    border-color: #e57373;
    color: #8b1a1a;
}

.pending-order-note strong {
    color: #b8860b;
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

    .dashboard-header h1 {
        margin: 0;
    }

.order-count {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card-static {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

/* --- Simple search box (Parents page, legacy) --- */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border: 2px solid #e0e0e0;
        border-radius: 50px;
        font-size: 1rem;
        transition: border-color 0.2s;
    }

        .search-box input:focus {
            border-color: var(--secondary);
            outline: none;
        }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.search-box form {
    margin: 0;
}

/* ============================================================
   SEARCH ROW (matches Pending Orders page)
   ============================================================ */
.search-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .search-row .search-box {
        flex: 1;
        min-width: 260px;
        position: relative;
        margin-bottom: 0;
    }

        .search-row .search-box input[type="text"] {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            font-size: 1rem;
            font-family: inherit;
            background: white;
            transition: border-color 0.2s;
        }

            .search-row .search-box input[type="text"]:focus {
                border-color: var(--secondary);
                outline: none;
            }

    .search-row .search-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.6;
        z-index: 1;
        pointer-events: none;
    }

/* Event filter dropdown */
.event-filter {
    position: relative;
    min-width: 200px;
}

    .event-filter select {
        width: 100%;
        height: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1.25rem;
        border: 2px solid #e0e0e0;
        border-radius: 50px;
        font-size: 0.95rem;
        font-family: inherit;
        background: white;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        transition: border-color 0.2s;
        color: var(--dark);
        font-weight: 500;
    }

        .event-filter select:focus {
            border-color: var(--secondary);
            outline: none;
        }

        .event-filter select:hover {
            border-color: #cbd5e0;
        }

    .event-filter::after {
        content: '';
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #64748b;
    }

/* Active filters row */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.filter-tag-group {
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid #bfdbfe;
}

.filter-clear {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    margin-left: 0.25rem;
}

    .filter-clear:hover {
        text-decoration: underline;
    }

/* ============================================================
   TABLE CONTAINER & ORDERS TABLE
   ============================================================ */
.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.9rem;
}

    .orders-table th,
    .orders-table td {
        padding: 0.9rem 0.6rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .orders-table th {
        background: var(--dark);
        color: white;
        font-weight: 600;
    }

    .orders-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.15s;
    }

        .orders-table tbody tr:hover {
            background: #f8f9fa;
        }

    .orders-table td.ellipsis {
        max-width: 0;
    }

.action-cell {
    white-space: nowrap;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

/* Event chip used in admin tables */
.event-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: linear-gradient(135deg, #e8f1ff, #d3e3ff);
    color: #1c3d7a;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Status badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================================
   ORDER STATUS / REVIEW PAGE
   ============================================================ */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.order-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
}

    .section-block h4 {
        margin-top: 0;
        margin-bottom: 1rem;
    }

.clean-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .clean-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f1f1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

.badge-light {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.price-tag-inline {
    font-weight: 600;
    color: var(--primary);
}

.qr-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 1rem;
}

.qr-image {
    max-width: 250px;
    border: 3px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================================
   EVENTS ADMIN — FORMS
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
}

    .form-row label {
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        color: #555;
    }

    .form-row input {
        padding: 0.6rem;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.95rem;
        font-family: inherit;
    }

        .form-row input:focus {
            border-color: var(--secondary);
            outline: none;
        }

.checkbox-row {
    justify-content: flex-end;
}

    .checkbox-row label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-direction: row;
        cursor: pointer;
    }

    .checkbox-row input[type="checkbox"] {
        width: auto;
    }

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .order-layout {
        flex-direction: column;
    }

    .order-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .summary-card {
        max-height: none;
    }

    .summary-body {
        max-height: none;
    }
}

@media (max-width: 768px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    body {
        height: auto;
        min-height: 100vh;
    }

    .container {
        overflow: visible;
    }

    /* Disable sticky hero on mobile */
    .hero-section {
        position: relative;
        top: auto;
        border-radius: 24px;
        margin-top: 1rem;
    }

    .header-inner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        text-align: center;
        font-size: 1.3rem;
    }

    .site-nav {
        justify-content: center;
    }

    .footer-inner {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

   /* .events-grid {
        grid-template-columns: 1fr;
    }*/

    .child-entry {
        flex-direction: column;
    }

    /* Smaller seat tiles on mobile */
    .seat-row-label {
        width: 20px;
        font-size: 0.6rem;
    }

    .seat {
        width: 26px;
        height: 26px;
    }

        .seat .seat-num {
            font-size: 0.6rem;
        }

    .seat-row-items {
        gap: 3px;
    }

    .order-details-grid,
    .order-sections,
    .summary-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .event-header-banner {
        flex-direction: column;
        text-align: center;
    }

    /* Search row stacking */
    .search-row {
        flex-direction: column;
    }

    .event-filter {
        min-width: 100%;
    }

    /* Responsive admin table */
    .orders-table thead {
        display: none;
    }

    .orders-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 0.5rem;
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.6rem;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
    }

        .orders-table td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #6c757d;
            margin-right: 1rem;
        }

        .orders-table td.ellipsis {
            white-space: normal;
        }

    .action-cell {
        justify-content: center;
    }
    /* ============================================================
   EVENT CHIP FILTERS
   ============================================================ */
    .event-chips {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .event-chip-filter {
        padding: 0.4rem 1rem;
        border-radius: 50px;
        background: white;
        border: 2px solid #e2e8f0;
        color: #64748b;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
        white-space: nowrap;
    }

        .event-chip-filter:hover {
            border-color: var(--secondary);
            color: var(--dark);
            transform: translateY(-1px);
        }

        .event-chip-filter.active {
            background: linear-gradient(135deg, var(--primary), #e55a5a);
            border-color: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(255,107,107,0.35);
        }

    /* Simple full-width search below the chips */
    .search-row-simple {
        margin-bottom: 1rem;
    }

        .search-row-simple .search-box {
            position: relative;
            margin-bottom: 0;
        }

            .search-row-simple .search-box input[type="text"] {
                width: 100%;
                padding: 0.75rem 1rem 0.75rem 2.5rem;
                border: 2px solid #e0e0e0;
                border-radius: 50px;
                font-size: 0.95rem;
                font-family: inherit;
                background: white;
                transition: border-color 0.2s;
            }

                .search-row-simple .search-box input[type="text"]:focus {
                    border-color: var(--secondary);
                    outline: none;
                }

        .search-row-simple .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.6;
            pointer-events: none;
        }

    /* ============================================================
   MY ORDERS PAGE — COMPACT LIST
   ============================================================ */

    .myorders-header {
        margin-bottom: 1.25rem;
    }

        .myorders-header h1 {
            margin: 0 0 0.2rem;
            font-size: 1.5rem;
        }

        .myorders-header p {
            margin: 0;
            font-size: 0.9rem;
        }

    /* Stats */
    .myorders-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .myorders-stat {
        background: white;
        border-radius: 12px;
        padding: 0.85rem 1rem;
        box-shadow: 0 4px 12px rgba(44,62,80,0.06);
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        border: 1px solid rgba(0,0,0,0.04);
    }

    .myorders-stat-num {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--dark);
        line-height: 1.1;
    }

    .myorders-stat-lbl {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #94a3b8;
    }

    /* Empty */
    .myorders-empty {
        text-align: center;
        padding: 3.5rem 1rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(44,62,80,0.08);
    }

    .myorders-empty-icon {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
        opacity: 0.7;
    }

    .myorders-empty h2 {
        margin: 0 0 0.4rem;
        font-size: 1.15rem;
        color: var(--dark);
    }

    .myorders-empty p {
        margin: 0 0 1.25rem;
        color: #7f8c8d;
        font-size: 0.9rem;
    }

    /* Group */
    .myorders-group {
        margin-bottom: 2rem;
    }

    .myorders-group-title {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--dark);
        margin: 0 0 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .myorders-group-count {
        background: #eef2f7;
        color: #475569;
        padding: 0.1rem 0.55rem;
        border-radius: 50px;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0;
    }

    /* List */
    .myorders-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Row */
    .myorders-row {
        background: white;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 3px 10px rgba(44,62,80,0.05);
        overflow: hidden;
        transition: box-shadow 0.2s, border-color 0.2s;
    }

        .myorders-row:hover {
            box-shadow: 0 6px 18px rgba(44,62,80,0.1);
        }

        .myorders-row.open {
            border-color: var(--secondary);
            box-shadow: 0 6px 18px rgba(78,205,196,0.15);
        }

    /* Main line */
    .myorders-row-main {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
        cursor: pointer;
        user-select: none;
        flex-wrap: wrap;
    }

    .myorders-row-left {
        flex: 1 1 220px;
        min-width: 0;
    }

    .myorders-row-event {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .myorders-row-meta {
        font-size: 0.75rem;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

        .myorders-row-meta span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .myorders-dot {
        color: #cbd5e0;
    }

    .myorders-row-mid {
        flex: 2 1 260px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .myorders-chip-group {
        display: flex;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .myorders-mini-chip {
        background: #f1f5f9;
        color: #475569;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.15rem 0.55rem;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
    }

    .myorders-seat-list {
        display: flex;
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .myorders-seat {
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0.12rem 0.45rem;
        border-radius: 5px;
        letter-spacing: 0.3px;
    }

        .myorders-seat.seat-vip {
            background: #fff3c4;
            color: #7a5a00;
            border: 1px solid #e6b800;
        }

        .myorders-seat.seat-ga {
            background: #d9f8f5;
            color: #0b5c55;
            border: 1px solid #4ecdc4;
        }

    .myorders-row-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .myorders-total {
        font-size: 1rem;
        font-weight: 800;
        color: var(--dark);
    }

    .myorders-badge {
        padding: 0.2rem 0.6rem;
        border-radius: 50px;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.8px;
    }

    .badge-confirmed {
        background: #d4f7e4;
        color: #0d6b3c;
    }

    .badge-pending {
        background: #fff3cd;
        color: #856404;
    }

    .badge-cancelled {
        background: #eef2f7;
        color: #64748b;
    }

    .myorders-expand {
        color: #94a3b8;
        font-size: 0.8rem;
        transition: transform 0.2s;
        width: 20px;
        text-align: center;
    }

    .myorders-row.open .myorders-expand {
        transform: rotate(180deg);
    }

    /* Expanded details */
    .myorders-row-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.2s ease;
        padding: 0 1rem;
        background: #fafbfc;
        border-top: 1px dashed transparent;
    }

    .myorders-row.open .myorders-row-details {
        max-height: 1000px;
        padding: 0.9rem 1rem 1rem;
        border-top-color: #e2e8f0;
    }

    .myorders-details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
        margin-bottom: 0.9rem;
    }

    .myorders-detail {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .myorders-detail-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #94a3b8;
    }

    .myorders-detail-value {
        font-size: 0.85rem;
        color: var(--dark);
        font-weight: 500;
        word-break: break-word;
    }

    .myorders-details-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .myorders-btn {
        padding: 0.5rem 1.1rem;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 700;
        border: none;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
        transition: all 0.2s;
        display: inline-block;
    }

        .myorders-btn.primary {
            background: linear-gradient(135deg, var(--primary), #e55a5a);
            color: white;
            box-shadow: 0 3px 10px rgba(255,107,107,0.3);
        }

            .myorders-btn.primary:hover {
                transform: translateY(-1px);
                box-shadow: 0 6px 16px rgba(255,107,107,0.4);
            }

        .myorders-btn.secondary {
            background: white;
            color: #475569;
            border: 2px solid #e2e8f0;
        }

            .myorders-btn.secondary:hover {
                border-color: var(--secondary);
                color: var(--dark);
            }

    .myorders-pending-note {
        margin-top: 0.75rem;
        padding: 0.6rem 0.85rem;
        background: #fff8e1;
        border-left: 3px solid #ffb400;
        border-radius: 6px;
        font-size: 0.8rem;
        color: #5a4500;
    }

    /* Cancelled collapsed */
    .myorders-cancelled {
        margin-top: 1rem;
        background: white;
        border-radius: 12px;
        padding: 0.75rem 1rem;
        box-shadow: 0 3px 10px rgba(44,62,80,0.05);
    }

        .myorders-cancelled summary {
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 700;
            color: #64748b;
            list-style: none;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

            .myorders-cancelled summary::-webkit-details-marker {
                display: none;
            }

            .myorders-cancelled summary::before {
                content: '';
                display: inline-block;
                width: 0;
                height: 0;
                border-top: 4px solid transparent;
                border-bottom: 4px solid transparent;
                border-left: 6px solid #64748b;
                transition: transform 0.2s;
            }

        .myorders-cancelled[open] summary::before {
            transform: rotate(90deg);
        }

    .myorders-row-cancelled {
        opacity: 0.85;
    }

        .myorders-row-cancelled .myorders-row-main {
            cursor: default;
        }

    /* QR modal */
    .myorders-qr-modal {
        position: fixed;
        inset: 0;
        background: rgba(44,62,80,0.7);
        backdrop-filter: blur(4px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 1.5rem;
    }

        .myorders-qr-modal.open {
            display: flex;
        }

    .myorders-qr-box {
        background: white;
        border-radius: 18px;
        padding: 1.5rem;
        text-align: center;
        max-width: 320px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    }

        .myorders-qr-box h4 {
            margin: 0 0 1rem;
            font-size: 0.95rem;
            color: var(--dark);
        }

        .myorders-qr-box img {
            max-width: 220px;
            border: 3px solid #f0f0f0;
            border-radius: 12px;
            padding: 0.5rem;
            background: white;
        }

        .myorders-qr-box p {
            margin: 0.85rem 0;
            font-size: 0.8rem;
            color: #64748b;
        }

    /* Mobile */
    @media (max-width: 700px) {
        .myorders-row-main {
            flex-direction: column;
            align-items: stretch;
            gap: 0.6rem;
        }

        .myorders-row-mid {
            order: 3;
        }

        .myorders-row-right {
            justify-content: space-between;
            width: 100%;
        }

        .myorders-row-left {
            flex: 1;
        }

        .myorders-details-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ============================================================
   GCASH INPUT WITH INLINE SCAN BUTTON
   ============================================================ */
    .gcash-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
    }

    .payment-input.has-icon {
        padding-right: 3rem; /* leave room for the icon button */
    }

    .gcash-scan-btn {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--primary), #e55a5a);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        padding: 0;
        box-shadow: 0 3px 8px rgba(255,107,107,0.3);
    }

        .gcash-scan-btn:hover {
            transform: translateY(-50%) scale(1.08);
            box-shadow: 0 5px 14px rgba(255,107,107,0.5);
        }

        .gcash-scan-btn:disabled {
            background: #cbd5e0;
            cursor: wait;
            transform: translateY(-50%);
            box-shadow: none;
            opacity: 0.8;
        }

        .gcash-scan-btn .scan-icon {
            font-size: 1rem;
            line-height: 1;
        }

        .gcash-scan-btn.scanning .scan-icon {
            animation: scan-pulse 0.8s infinite;
        }

    @keyframes scan-pulse {
        0%, 100% {
            opacity: 1;
        }

        50% {
            opacity: 0.35;
        }
    }

    /* Status message (only appears after scan) */
    .ocr-status {
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.75rem;
        line-height: 1.4;
    }

        .ocr-status.loading {
            background: #eff6ff;
            color: #1e40af;
            border-left: 3px solid #3b82f6;
        }

        .ocr-status.success {
            background: #ecfdf5;
            color: #0d6b3c;
            border-left: 3px solid #2ecc71;
        }

        .ocr-status.error {
            background: #fef2f2;
            color: #991b1b;
            border-left: 3px solid #ef4444;
        }

    

}
