:root {
    --primary: #f40302;
    --primary-hover: #c40000;
    --secondary: #7be9f0;
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 15, 0.85);
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.15);
    --error: #fc8181;
    --success: #7be9f0;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(244, 3, 2, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(123, 233, 240, 0.05) 0%, transparent 40%);
}

h1, h2, h3, .tour-date, .badge, .stub-show {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 60px 0;
}

/* HERO */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 80px 20px 40px;
    text-align: center;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/pjpd7z/site/media/6aac5b62c2ce26.25668637.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center top;
}

.solid-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(244, 3, 2, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(244, 3, 2, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.accent-text {
    color: var(--secondary);
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(123, 233, 240, 0.4);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* MAIN CONTENT */
.main-content {
    padding: 30px 20px;
}

/* STATUS BANNER */
.status-banner {
    background: rgba(244, 3, 2, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 500;
}

/* TABS */
.tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 14px;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(244, 3, 2, 0.3);
}

/* TOUR LIST */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.tour-row:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(25,25,25,0.9);
}

.tour-row.has-checkins {
    background: rgba(123, 233, 240, 0.1);
    border-color: rgba(123, 233, 240, 0.4);
    border-left-color: var(--secondary);
}

.tour-row-info {
    flex: 1;
}

.tour-date {
    font-size: 1.25rem;
    color: var(--secondary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tour-city {
    font-size: 1.1rem;
    font-weight: 500;
}

.checkin-count {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.tour-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tour-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tour-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* TOUR WALL */
.wall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wall-header h2 {
    font-size: 2rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.wall-controls select {
    appearance: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 40px 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Ticket Stub Style Gallery Cards */
.gallery-card {
    background: #e6e4df; /* Vintage paper color */
    border-radius: 4px;
    overflow: hidden;
    color: #1a1a1a;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #c7c5c0;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.stub-header {
    background: #d9d6d0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-clip: padding-box;
}

.stub-show {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8c0000;
}

.stub-admit {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    z-index: 1;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #555;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;

    padding: 8px 14px 10px;
    background: transparent;
    border: none;

    transform: rotate(-2deg);
    flex-shrink: 0;
}

/* Outer ticket outline */
.stub-admit::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;

    background: #777;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 32%,
        96% 50%,
        100% 68%,
        100% 100%,
        0 100%,
        0 68%,
        4% 50%,
        0 32%
    );
}

/* Inner paper area */
.stub-admit::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;

    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 4px,
            rgba(85, 85, 85, 0.65) 4px,
            rgba(85, 85, 85, 0.65) 5px
        ) left 9px bottom 4px / calc(100% - 18px) 1px no-repeat,
        #d9d6d0;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 32%,
        96% 50%,
        100% 68%,
        100% 100%,
        0 100%,
        0 68%,
        4% 50%,
        0 32%
    );
}

.gallery-media {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    position: relative;
    overflow: hidden;
   
}

.gallery-media img, .gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-caption {
    padding: 16px 16px 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    color: #333;
}

.gallery-meta {
    padding: 8px 16px 16px;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.gallery-load-more {
    text-align: center;
    margin-top: 30px;
}

/* PROMO SECTIONS */
.album-promo, .merch-promo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.album-promo::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(244, 3, 2, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.merch-promo::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(123, 233, 240, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .promo-content {
        flex-direction: row;
        align-items: center;
    }
    .promo-image-col {
        flex: 1;
        max-width: 350px;
    }
    .promo-text-col {
        flex: 1;
        padding-left: 24px;
    }
}

.promo-text-col h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.promo-text-col p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.promo-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 600px) {
    .promo-buttons {
        flex-direction: row;
    }
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.promo-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 3, 2, 0.4);
}

.promo-btn-secondary {
    background: var(--secondary);
    color: #000;
}

.promo-btn-secondary:hover {
    background: #5bc8cf;
    box-shadow: 0 8px 20px rgba(123, 233, 240, 0.4);
}

#merch-btn {
    background: var(--primary) !important;
    color: #fff !important;
}

#merch-btn:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 8px 20px rgba(244, 3, 2, 0.4) !important;
}


/* MODAL & FORM */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
}

.form-header span {
    color: var(--secondary);
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 3, 2, 0.2);
}

.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group {
    flex: 1;
}

/* Custom File Upload */
.media-type-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.media-type-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-main);
}
.media-type-toggle input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-visual {
    background: rgba(0,0,0,0.3);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-upload-wrapper:hover .file-upload-visual {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.02);
}

.file-upload-wrapper input:focus + .file-upload-visual {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 3, 2, 0.2);
}

/* Button & States */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #8c0000 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 3, 2, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.error-message {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.state-container {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    color: var(--success);
    margin-bottom: 20px;
}

.success-icon svg {
    filter: drop-shadow(0 0 10px rgba(123, 233, 240, 0.4));
}

.state-container h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.state-container p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.share-panel {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.share-panel h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.share-input-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}
.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .tour-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .tour-row-action {
        width: 100%;
    }
    .tour-btn {
        width: 100%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .accent-text {
        font-size: 3rem;
    }
    .wall-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .wall-controls {
        width: 100%;
    }
    .wall-controls select {
        width: 100%;
    }
}
