/* ==========================================================================
   PARTICIPANT DASHBOARD (RESPONSIVE)
   ========================================================================== */

.dash-container {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 2.5rem 3rem;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    border: none;
}

.receipt-card {
    border: 1px solid #eee;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    margin-top: 1.5rem;
    background: #fafafa;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.fee-box {
    background: var(--dark, #111);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    margin-top: 1rem;
}

.dash-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-dash {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(134, 4, 4, 0.25);
    background: rgba(134, 4, 4, 0.07);
    color: var(--maroon, #860404);
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-dash:hover {
    background: rgba(134, 4, 4, 0.16);
    border-color: rgba(134, 4, 4, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 4, 4, 0.1);
}

.btn-outline-dash {
    background: transparent;
    color: var(--dark, #111);
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    transition: 0.3s ease;
}

.btn-outline-dash:hover {
    border-color: var(--dark, #111);
    background: rgba(0,0,0,0.02);
}

.event-tag {
    display: inline-block;
    background: #eee;
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 50px;
    margin: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .dash-container {
        margin: 50px 1rem 50px;
        padding: 1.5rem 1rem;
        border-radius: 24px;
        width: auto;
    }

    .receipt-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    /* Collapse the 2-column receipt text to a single column */
    .receipt-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .fee-box {
        font-size: 1.1rem;
        padding: 1rem;
        flex-direction: row;
    }

    /* Stack buttons full-width and neatly ordered on mobile */
    .dash-actions {
        flex-direction: column-reverse;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .btn-primary-dash, 
    .btn-outline-dash {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media print {
    body * { visibility: hidden; }
    .navbar, footer, .footer-revealer { display: none !important; }
    #printable-receipt, #printable-receipt * { visibility: visible; }
    #printable-receipt {
        position: absolute; left: 0; top: 0; width: 100%;
        border: none !important; background: white !important; padding: 0 !important;
    }
    .no-print { display: none !important; }
}

/* ---- Tickets ---- */
.tickets-title { font-family: 'neue-haas-grotesk-display', sans-serif; font-size: 1.8rem; margin: 2rem 0 1rem; }
.tickets-list { display: grid; gap: 1rem; }
.ticket-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.2rem 1.5rem; border: 1px dashed rgba(134, 4, 4, .4); border-radius: 20px; background: #fff; }
.ticket-card.used { opacity: .5; }
.ticket-qr { width: 132px; height: 132px; flex-shrink: 0; }
.ticket-qr svg { width: 100%; height: 100%; display: block; }
.ticket-meta h3 { font-family: 'Playfair Display', serif; font-style: italic; color: var(--maroon, #860404); font-size: 1.5rem; margin-bottom: .3rem; }
.ticket-meta p { font-size: .95rem; color: #555; }
.ticket-holder { font-weight: 700; color: var(--dark, #111) !important; margin-top: .6rem; }
.ticket-code { font-family: 'IBM Plex Mono', monospace; font-size: 1.15rem !important; letter-spacing: 2px; color: var(--dark, #111) !important; }
.ticket-state { font-size: .8rem !important; margin-top: .3rem; }
@media (max-width: 480px) { .ticket-card { flex-direction: column; text-align: center; } }
@media print {
    body.print-tickets #printable-receipt { display: none !important; }
    body.print-tickets #tickets-section, body.print-tickets #tickets-section * { visibility: visible; }
    body.print-tickets #tickets-section { position: absolute; left: 0; top: 0; width: 100%; }
}
/* ---- Manual ticket requests ---- */
.req-card .ticket-meta { width: 100%; }
.req-status { display: inline-block; font: 700 .72rem 'Manrope', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 50px; margin-bottom: .6rem; background: #eee; color: #555; }
.req-status.req-pending { background: #fff4d6; color: #7a5800; }
.req-status.req-approved { background: #dff3e4; color: #1b6b32; }
.req-status.req-rejected { background: #fbe1e1; color: #860404; }
.req-note { color: #860404 !important; font-weight: 600; }
@media print { body.print-tickets #requests-section { display: none !important; } }
