:root {
    --primary: #4db8ff; /* Matched to graphic blue */
    --primary-hover: #2a9be6;
    --dark: #0a0a0c;
    --card-bg: rgba(20, 20, 25, 0.85); 
    --text-main: #4db8ff; 
    --text-muted: rgba(77, 184, 255, 0.7);
    --border: rgba(77, 184, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--dark);
    line-height: 1.5;
}

.bg-image {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/hjvt3t/site/media/69cec03aafafc8.74232428.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10,10,12,0.6) 0%, rgba(10,10,12,0.95) 100%);
    z-index: -1;
}

.content-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.header {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

#header-photo-container {
    width: 100%;
}

.header-photo {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    width: 100%;
    overflow: hidden;
}

.card {
    padding: 40px;
    margin-bottom: 30px;
}

.event-details {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: rgba(77, 184, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.event-details h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-main);
}

.event-details h1 .highlight {
    font-size: 3.5rem;
    color: var(--text-main);
    display: block;
    margin: 5px 0;
    text-shadow: 0 0 25px rgba(77, 184, 255, 0.4);
}

.event-details h1 .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    display: block;
    margin-top: 10px;
}

.venue-info, .time-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.social-follow {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border);
}

.social-follow p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.ig-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(77, 184, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.ig-btn:hover {
    transform: translateY(-2px);
    background: rgba(77, 184, 255, 0.2);
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.2);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.opt-in-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

.error-message {
    background: rgba(77, 184, 255, 0.15);
    border-left: 4px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background: rgba(77, 184, 255, 0.1);
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--text-main);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 184, 255, 0.3);
}

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

/* Thank You Screen */
#thank-you-screen {
    text-align: center;
    padding: 20px 0;
}

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

#thank-you-screen h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#thank-you-screen p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.outline-btn {
    display: inline-block;
    padding: 14px 24px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.outline-btn:hover {
    background: rgba(77, 184, 255, 0.1);
    border-color: var(--text-main);
}

/* Ended / Coming Soon Screens */
#ended-screen, #coming-soon-screen {
    text-align: center;
    padding: 40px 20px;
}

#ended-screen h2, #coming-soon-screen h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#ended-screen p, #coming-soon-screen p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Footer Actions */
.action-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: rgba(77, 184, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: rgba(77, 184, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 184, 255, 0.2);
    border-color: var(--text-main);
}

.rules-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.rules-link:hover {
    color: var(--text-main);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 101;
    background: #111;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-body pre {
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

#wbx-powered-by-slot {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 20px 15px;
    }

    .card {
        padding: 30px 20px;
    }
    
    .event-details h1 {
        font-size: 1.8rem;
    }
    
    .event-details h1 .highlight {
        font-size: 2.8rem;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ig-btn {
        justify-content: center;
    }
}