@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Poppins:wght@300;400;600&display=swap');

/*
  COLOR PALETTE (Darker, Neon Sin Theme):
  - Background: #000000 (Pure Black)
  - Content Background: #101010 (Near Black)
  - Text: #b0b0b0 (Dim Gray)
  - Primary Accent (borders, subtle glows): #4B0082 (Indigo/Deep Purple) - Represents mystery/shadow
  - Secondary Accent (darker elements): #200030 (Very Dark Purple)
  - Highlight (Neon Sin): #FF00FF (Magenta/Fuchsia) - Represents temptation/sin
*/
#app-container {
    position: relative; /* Establish stacking context */
    z-index: 1; /* Ensure it's above the background's z-index: -1 */
}


/* --- Base & Reset --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #00000000;
    color: #b0b0b0;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Hide custom cursor on touch devices --- */
@media (hover: none) and (pointer: coarse) {
    body, button, a {
        cursor: default !important; /* Force default cursor for all elements */
    }
}
@media (hover: hover) and (pointer: coarse) {
     body, button, a {
        cursor: default !important;
    }
}
/* Apply custom cursor ONLY on devices with fine pointer and hover capability */
@media (hover: hover) and (pointer: fine) {
    /* Apply base cursor to html and body */
    html, body {
       /* Simplified SVG, ensure proper encoding */
       cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text x="0" y="24" font-size="24" fill="%23FF00FF">🖤</text></svg>') 16 16, auto; /* Magenta heart */
    }
    /* Apply pointer cursor to interactive elements */
    button, a, input, select, textarea {
        /* Simplified SVG, ensure proper encoding */
         cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text x="0" y="24" font-size="24" fill="%23FF00FF">🩸</text></svg>') 16 16, pointer; /* Blood drop */
    }
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-weight: 700;
    /* Neon Magenta glow */
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6), 0 0 12px rgba(255, 0, 255, 0.4);
}

p {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: #FF00FF; /* Neon Magenta */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom spacing */
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0; /* Vertical padding only */
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.text-sm { font-size: 0.9rem; }
.font-bold { font-weight: bold; }

/* --- Background Slider --- */
#hero-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out; /* Slower transition */
    /* --- PERFORMANCE FIX: Removed Kenburns animation and animated blur --- */
    /* animation: kenburns 35s infinite ease-in-out; */
    /* filter: brightness(0.6) contrast(1.1) blur(1px); */
    filter: brightness(0.6) contrast(1.1); /* Removed blur */
}

.slide.active {
    opacity: 0.6; /* Increased opacity for more visibility */
}



/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #101010;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF00FF, #4B0082); /* Magenta to Indigo */
    border-radius: 10px;
    border: 1px solid #200030;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff33ff, #6a0dad);
}

/* --- Header --- */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker */
    /* --- PERFORMANCE FIX: Reduced backdrop-filter blur --- */
    backdrop-filter: blur(5px); /* Was 12px */
    border-bottom: 1px solid #200030; /* Very Dark Purple */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#app-header h1 {
    font-size: 1.75rem;
    margin: 0;
    cursor: pointer;
    color: #FF00FF; /* Neon Magenta Title */
    text-shadow: 0 0 15px #FF00FF, 0 0 20px #FF00FF;
}

#app-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#app-header nav button {
    font-family: 'Poppins', sans-serif;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5rem;
}

#app-header nav button:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #FF00FF;
}

/* Generic Button Style (Apply to specific buttons below) */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    background-color: transparent;
    color: #FF00FF;
    border: 2px solid #FF00FF;
    padding: 0.7rem 1.6rem;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Neon Button Glow */
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.7), inset 0 0 5px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FF00FF;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 30px rgba(255, 0, 255, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* Secondary Button Style */
.btn-secondary {
    border-color: #4B0082; /* Indigo */
    color: #b0b0b0;
    box-shadow: 0 0 8px rgba(75, 0, 130, 0.6), inset 0 0 4px rgba(75, 0, 130, 0.4);
}

.btn-secondary:hover {
    background-color: #4B0082;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(75, 0, 130, 1), 0 0 20px rgba(75, 0, 130, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Small button variant */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    box-shadow: none;
    letter-spacing: 0.5px;
}


/* Apply .btn style to header button */
#app-header nav button.btn {
    padding: 0.5rem 1rem; /* Adjust padding for header */
}

/* --- Main Content --- */
#app-main {
    padding-top: 80px; /* Increased Header height */
    position: relative;
    z-index: 10;
}

/* --- Hero Section --- */
#hero {
    min-height: calc(100vh - 80px); /* Adjust for header height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background-color: transparent; /* <-- ADD THIS LINE */
    position: relative; /* Ensure it respects z-index relative to app-container */
    z-index: 5; /* Ensure it's above background but below header */
}

#hero-content {
    /* --- ADJUST RGBA ALPHA (LAST VALUE) --- */
    background: rgba(10, 0, 20, 0.65); /* Reduced opacity from 0.75 to 0.65 */
    /* --- PERFORMANCE FIX: Reduced backdrop-filter blur --- */
    backdrop-filter: blur(4px); /* Was 8px */
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid #200030;
    max-width: 700px;
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.5); /* Indigo Shadow */
}

#hero h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 25px #FF00FF, 0 0 40px #FF00FF; /* Stronger Neon */
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cccccc; /* Slightly brighter text */
}

/* --- Sections --- */
.content-section {
    background-color: #000;
    padding: 4rem 0; /* More padding */
    border-top: 1px solid #200030;
    border-bottom: 1px solid #200030;
    margin-bottom: 0; /* Remove margin between sections */
}
/* Alternate section bg */
section:nth-of-type(odd) {
     background-color: #05000a; /* Very slightly off-black */
}

.section-title {
    font-size: 2.8rem; /* Larger */
    color: #FF00FF; /* Neon title */
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem; /* More space below */
    font-weight: 700;
    font-style: italic; /* Add italic for style */
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* --- Events List --- */
#events-list {
    display: grid;
    /* Responsive grid: 1 col mobile, up to 3 cols desktop */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Increased min size */
    gap: 2.5rem; /* More gap */
}

/* --- UPDATED EVENT CARD STYLES --- */
.event-card {
    background-color: #101010;
    border: 1px solid #200030;
    border-radius: 10px; /* Slightly more rounded */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-align: center; /* Center align text by default */
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), /* Stronger Magenta glow */
                0 0 50px rgba(75, 0, 130, 0.4); /* Stronger Indigo glow */
    border-color: #FF00FF; /* Neon border on hover */
}

.event-card img {
    width: 100%;
    /* --- FIX: Use 3:4 aspect ratio for posters --- */
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 3 / 4;
    object-fit: cover; /* Fill the area, cropping if needed */
    border-bottom: 2px solid #4B0082; /* Indigo border */
    filter: saturate(1.1) contrast(1.05);
    display: block; /* Ensure no extra space below image */
}

.event-card-content {
    padding: 2rem; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Justify content center vertically if needed, but space-between might be better */
    justify-content: space-between;
}

.event-card h3 {
    font-size: 2rem; /* Larger title */
    color: #FF00FF;
    margin-top: 0;
    margin-bottom: 0.75rem; /* More space below title */
    font-style: italic;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8); /* Enhance glow */
}

.event-card .event-date {
    font-size: 0.9rem;
    color: #cccccc; /* Slightly brighter date */
    font-weight: 600;
    margin-bottom: 1.5rem; /* More space below date */
    opacity: 0.9;
}

.event-card .event-desc {
    font-size: 1rem; /* Slightly larger description */
    color: #c0c0c0; /* Brighter description text */
    margin-bottom: 2rem; /* More space below description */
    text-align: left; /* Keep description left-aligned for readability */
    max-height: 120px;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar if needed */
    /* Add a subtle fade effect if scrolling */
     -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
     mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
/* Style scrollbar inside description */
.event-card .event-desc::-webkit-scrollbar { width: 4px; }
.event-card .event-desc::-webkit-scrollbar-track { background: transparent; }
.event-card .event-desc::-webkit-scrollbar-thumb { background: #4B0082; border-radius: 4px;}


.event-card-footer {
    display: flex;
    flex-direction: column; /* Stack price and button vertically */
    align-items: center; /* Center items horizontally */
    gap: 1rem; /* Space between price and button */
    margin-top: auto; /* Push footer to bottom */
}

.event-card .event-price {
    font-size: 2rem; /* Make price prominent */
    font-weight: 900; /* Bolder price */
    color: #FF00FF;
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.8);
}

/* Adjust button size within the card footer if needed */
.event-card-footer .btn {
    width: 80%; /* Make button wider */
    max-width: 250px;
    padding: 0.8rem 1rem; /* Adjust padding */
}
/* --- END UPDATED EVENT CARD STYLES --- */


/* --- Gallery --- */
#gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Smaller min size */
    gap: 0.5rem; /* Tighter gap */
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px; /* Sharper */
    cursor: pointer;
    position: relative;
    border: 1px solid #200030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.08) rotate(1deg); /* Slight rotate on hover */
    z-index: 10;
    border-color: #FF00FF;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2); /* Boost saturation */
    transition: filter 0.3s ease;
}
.gallery-item:hover img {
    filter: saturate(1.4) brightness(1.1);
}

/* --- Footer --- */
footer {
    background-color: #000000;
    border-top: 1px solid #200030;
    text-align: center;
    padding: 3rem 1rem;
    color: #666; /* Darker footer text */
    font-size: 0.9rem;
}

footer h3 {
    color: #4B0082; /* Indigo footer title */
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(75, 0, 130, 0.5);
    margin-bottom: 1rem;
}
footer a {
    color: #8a2be2; /* BlueViolet links in footer */
}
footer a:hover {
    color: #FF00FF;
}

/* --- Modals --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9); /* More opaque */
    /* --- PERFORMANCE FIX: Reduced backdrop-filter blur --- */
    backdrop-filter: blur(5px); /* Was 10px */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto; /* Allow backdrop scrolling if modal is huge (unlikely but safe) */
}

.modal-content-container {
    background-color: #0a0a0a; /* Darker modal bg */
    border: 1px solid #4B0082; /* Indigo border */
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(75, 0, 130, 0.6), 0 0 20px rgba(255, 0, 255, 0.4); /* Dual shadow */
    width: 95%;
    max-width: 550px;
    position: relative;
    padding: 2.5rem;
    /* Enable scrolling within the modal */
    max-height: 90vh;
    overflow-y: auto;
    margin: auto; /* Center vertically if space allows */
}

/* Style scrollbar inside modal */
.modal-content-container::-webkit-scrollbar {
    width: 6px;
}
.modal-content-container::-webkit-scrollbar-track {
    background: #101010;
    border-radius: 10px;
}
.modal-content-container::-webkit-scrollbar-thumb {
    background: #4B0082;
    border-radius: 10px;
}

.modal-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #FF00FF;
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-size: 2.2rem; /* Larger title */
    color: #FF00FF; /* Neon Magenta */
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

/* --- Forms --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* More space between fields */
}

form .form-group {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cccccc; /* Brighter labels */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* Ensure labels are left-aligned */
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 1rem; /* More padding */
    background-color: #05000a; /* Slightly off-black */
    border: 1px solid #200030; /* Very Dark Purple */
    border-radius: 4px; /* Sharper */
    color: #cccccc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #FF00FF; /* Neon focus */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    background-color: #101010; /* Darker on focus */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

form small {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.3rem;
    text-align: left;
}


form input[type="file"] {
    background-color: #101010;
    border: 1px dashed #4B0082; /* Indigo dashed border */
    padding: 1rem;
    cursor: pointer;
    color: #b0b0b0;
    border-radius: 4px;
}

/* Style the button that appears within the file input */
form input[type="file"]::-webkit-file-upload-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: #4B0082; /* Indigo button */
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

form input[type="file"]::-webkit-file-upload-button:hover {
    background: #6a0dad; /* Lighter Indigo */
}

/* For Firefox compatibility */
form input[type="file"] {
    line-height: 1.5; /* Adjust as needed */
}
/* Style the button text replacement for Firefox */
/* input[type="file"]::file-selector-button { ... } // Use this if needed */


/* Status messages */
.form-error, .form-progress, .form-success {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
}
.form-error { color: #ff4d6a; background: #33000f; border-color: #ff0033; } /* Sharper Red */
.form-progress { color: #d8bfd8; background: #200030; border-color: #4B0082; } /* Purple/Indigo */
.form-success { color: #ff80ff; background: #330033; border-color: #FF00FF; } /* Magenta */


/* Payment Instructions */
.payment-instructions {
    background: #05000a;
    border: 1px solid #200030;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left; /* Keep instructions left-aligned */
}
.payment-instructions h3 {
    color: #FF00FF; /* Neon Magenta */
    margin-top: 0;
}
.payment-instructions p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

/* --- Profile & Admin Pages --- */
.page-content {
    background-color: rgba(10, 0, 20, 0.8); /* Darker Purple/Black */
    /* --- PERFORMANCE FIX: Reduced backdrop-filter blur --- */
    backdrop-filter: blur(4px); /* Was 8px */
    border: 1px solid #200030;
    border-radius: 8px;
    padding: 2.5rem;
    min-height: 80vh;
}

.page-title {
    font-size: 2.8rem; /* Match section titles */
    color: #FF00FF;
    margin-top: 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #200030;
    padding-bottom: 1rem;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    text-align: center; /* Center page titles */
}

/* Ticket List */
#tickets-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* More space */
}

.ticket-card {
    background-color: #101010; /* Near Black */
    border: 1px solid #200030;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.ticket-card-main {
    display: flex;
    flex-direction: column; /* Stack image and details on small screens */
    gap: 1.5rem;
    padding: 1.5rem;
}

.ticket-card-image {
    width: 100%;
    max-width: 250px; /* Limit image width on larger layouts */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 3 / 4; /* Portrait-like ratio */
    object-fit: cover;
    border-radius: 4px;
    align-self: center; /* Center image when stacked */
    border: 1px solid #200030;
}

.ticket-card-details {
    flex-grow: 1;
    text-align: center; /* Center details text */
}

.ticket-card h3 {
    font-size: 1.8rem; /* Match event card */
    color: #FF00FF;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.ticket-card .ticket-id {
    font-size: 0.8rem;
    color: #777; /* Dimmer ID */
    margin-bottom: 1rem;
    word-break: break-all;
    font-family: monospace; /* Monospace for ID */
}

.ticket-status {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-width: 1px;
    border-style: solid;
}
/* Status colors using new palette */
.ticket-status.approved { color: #ff80ff; background: #330033; border-color: #FF00FF; } /* Magenta */
.ticket-status.pending { color: #d8bfd8; background: #200030; border-color: #4B0082; } /* Thistle/Indigo */
.ticket-status.revoked { color: #ff4d6a; background: #33000f; border-color: #ff0033; } /* Red */

.ticket-card-qr {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem;
    background-color: #05000a; /* Slightly different bg for QR section */
    border-top: 1px solid #200030;
}

.ticket-card-qr .qr-container {
    background-color: #ffffff;
    padding: 10px; /* Smaller padding */
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 4px solid #FF00FF; /* Neon border */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.ticket-card-qr .qr-container > img,
.ticket-card-qr .qr-container > canvas { /* Target both possible QR elements */
    display: block !important; /* Ensure block display */
    margin: 0 auto; /* Center if needed */
}
.ticket-card-qr p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Admin Page */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #200030;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allow tabs to wrap on small screens */
}

.admin-tab-btn {
    background: #101010;
    border: 1px solid #200030;
    border-bottom: none;
    color: #b0b0b0;
    padding: 0.8rem 1.6rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-tab-btn:hover {
    background: #200030;
    color: #FF00FF;
}

.admin-tab-btn.active {
    background: #FF00FF;
    color: #000000;
    border-color: #FF00FF;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-section {
    background: #05000a; /* Slightly off-black */
    border: 1px solid #200030;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.admin-section-title {
    font-size: 1.6rem; /* Slightly smaller */
    color: #FF00FF;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #200030;
    padding-bottom: 0.8rem;
    font-style: italic;
    text-align: left; /* Keep section titles left-aligned */
}

/* Admin Tables */
.admin-table-wrapper { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.admin-table th,
.admin-table td {
    padding: 1rem; /* More padding */
    border-bottom: 1px solid #200030;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: middle;
}
.admin-table th {
    color: #FF00FF;
    font-weight: 600;
    white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background-color: #101010; } /* Hover for body rows only */
.admin-table .actions { display: flex; gap: 0.5rem; flex-wrap: wrap;} /* Allow actions to wrap */


/* Admin Image Grids */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Smaller images */
    gap: 1rem;
}
.admin-image-card {
    position: relative;
    border: 1px solid #200030;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1/1;
}
.admin-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay for buttons */
.admin-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    display: flex;
    gap: 5px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 4px;
}
.admin-image-card:hover .admin-image-overlay {
    opacity: 1; /* Show on hover */
}
.admin-image-overlay button {
    background: none;
    border: none;
    color: #FF00FF;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.admin-image-overlay button:hover {
    color: #fff;
    transform: scale(1.1);
}
.admin-image-overlay .delete-btn { color: #ff4d6a; }
.admin-image-overlay .delete-btn:hover { color: #ff8095; }



/* QR Scanner */
#qr-reader {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    border: 2px solid #FF00FF; /* Neon Border */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}
#qr-reader video { /* Ensure video fills container */
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Image Modal */
#image-modal-content {
    padding: 0; /* Remove padding around image */
    background: none; /* Transparent bg */
    border: none;
    box-shadow: none;
    display: flex; /* Use flex to constrain image */
    justify-content: center;
    align-items: center;
    /* Ensure modal content itself doesn't exceed viewport */
    max-width: 95vw;
    max-height: 95vh;
}
#image-modal-src {
    max-width: 100%;
    max-height: 100%; /* Use container height */
    object-fit: contain;
    border-radius: 5px;
    border: 2px solid #FF00FF; /* Neon border */
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
}
#image-modal .modal-close-btn {
    /* Style close button for image modal */
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 2rem;
    top: 10px;
    right: 10px;
}
#image-modal .modal-close-btn:hover {
     background: rgba(255, 0, 255, 0.7);
     color: #000;
}


/* Loading Spinner */
#loading-spinner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95); /* Near opaque */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#loading-spinner div {
    width: 60px;
    height: 60px;
    border: 6px solid #200030; /* Dark Purple */
    border-top-color: #FF00FF; /* Neon Magenta */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Age Verification Modal */
#age-verification-modal {
    /* This modal should have a higher z-index than the main app, but lower than alerts */
    z-index: 2000; 
    backdrop-filter: blur(20px); /* Stronger blur */
    background-color: rgba(0, 0, 0, 0.95);
}

#age-verification-modal .modal-content-container {
    /* Make border more prominent */
    border: 2px solid #FF00FF;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.7);
}

/* --- Responsive Adjustments --- */

@media (min-width: 480px) {
    /* Event card footer side-by-side */
    .event-card-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
     .event-card-footer .btn {
        width: auto;
        max-width: none;
    }
    /* Ticket card side-by-side */
     .ticket-card-main {
        flex-direction: row;
        align-items: flex-start; /* Align top */
     }
     .ticket-card-image {
         width: 150px; /* Fixed width */
         height: 200px; /* Fixed height */
         align-self: flex-start;
     }
      .ticket-card-details { text-align: left; } /* Align left on larger screens */
}


@media (max-width: 992px) {
     .admin-table { min-width: 800px; } /* Allow more horizontal space */
}

@media (max-width: 768px) {
    #hero h2 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }
    #hero-content { padding: 2rem; width: 90%; }

    #app-main { padding-top: 70px; } /* Adjust for header */
    #app-header h1 { font-size: 1.5rem; }
    #app-header nav { gap: 0.5rem; }
    #app-header nav button { font-size: 0.9rem; padding: 0.5rem 0.25rem; }
    #app-header nav button.btn { padding: 0.4rem 0.8rem; }

    .section-title, .page-title { font-size: 2.2rem; margin-bottom: 2rem;}
    .page-content { padding: 1.5rem; } /* Less padding on smaller */

    .ticket-card-main {
        flex-direction: column; /* Ensure stack on medium */
        align-items: center;
    }
    .ticket-card-image {
        max-width: 70%;
        height: auto;
        width: auto; /* Let aspect ratio control */
    }
    .ticket-card-details { text-align: center; } /* Center when stacked */
    .ticket-card-qr { padding: 1rem; }

    .admin-tab-btn { font-size: 0.9rem; padding: 0.6rem 1rem; }
    .admin-section { padding: 1.5rem; }
}

@media (max-width: 480px) {
    html { font-size: 15px; } /* Slightly smaller base font */
    .container { width: 95%; padding: 1rem 0;}

    #app-main { padding-top: 60px; } /* Adjust for header */
    #hero h2 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }
    #hero-content { padding: 1.5rem; width: 95%;}

    .section-title, .page-title { font-size: 1.8rem; }
    .event-card h3, .ticket-card h3 { font-size: 1.5rem; }
    .event-card .event-price, .ticket-card .event-price { font-size: 1.6rem; } /* Adjust price size */
    .event-card-content { padding: 1.5rem; }


    .modal-content-container { padding: 2rem 1rem; width: 100%; max-height: 95vh;}
    .modal-title { font-size: 1.8rem; }

    .admin-tab-btn { width: calc(50% - 0.25rem); /* Two tabs per row */ }
    .admin-table th, .admin-table td { padding: 0.6rem; font-size: 0.85rem;} /* Smaller table text */
    .admin-image-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem;} /* Smaller admin images */
}