:root {
    --primary-color: #ec4899; /* Hot Pink */
    --primary-dark: #be185d;
    --secondary-color: #f59e0b; /* Amber/Orange */
    --secondary-dark: #d97706;
    --accent-color: #0ea5e9; /* Ocean Blue */
    --text-main: #1e293b;
    --text-light: #475569;
    --bg-light: #fff5f8;
    --error-color: #ef4444;
    --success-color: #10b981;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #0f172a;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.app-background {
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(245, 158, 11, 0.4) 100%), url('https://offertabs.s3.amazonaws.com/offer/5fbc9x/site/media/6a20617ca82bf4.38146966.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 1.5rem;
}

.app-container {
    width: 100%;
    max-width: 740px; /* Slightly wider to accommodate dual columns */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    box-shadow: 0 30px 60px -15px rgba(236, 72, 153, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header {
    margin-bottom: 2.5rem;
}

.eyebrow {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-bottom: 0.1em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 600;
}

/* Countdown Styles */
.countdown-section {
    width: 100%;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(236, 72, 153, 0.2);
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.time-block {
    background: white;
    min-width: 75px;
    padding: 1rem 0.75rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Status Alert */
.status-alert {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: #fef2f2;
    color: var(--error-color);
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid #fecaca;
}

.status-alert.info {
    background: #e0f2fe;
    color: var(--accent-color);
    border-color: #bae6fd;
}

/* Form Styles */
#entry-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.dual-col {
    display: flex;
    gap: 1.25rem;
    width: 100%;
}

.dual-col .input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

/* File Upload Styles */
input[type="file"] {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: white;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--bg-light);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(236, 72, 153, 0.1);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    margin-left: 0.25rem;
    display: block;
    line-height: 1.4;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    text-align: center;
}

.disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.error-msg {
    background: #fef2f2;
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
    border-left: 4px solid var(--error-color);
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.15rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

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

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Section */
.success-panel {
    width: 100%;
}

.success-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0) rotate(-15deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-panel h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.success-panel p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Share Panel */
.share-box {
    background: var(--bg-light);
    border: 2px dashed rgba(236, 72, 153, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
}

.share-box h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.share-box p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.share-controls {
    display: flex;
    gap: 0.75rem;
}

#share-url {
    flex-grow: 1;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    background: white;
    font-weight: 600;
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.copy-feedback {
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.75rem;
    text-align: right;
}

/* Powered By */
#wbx-powered-by-slot {
    margin-top: 2rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
    .glass-panel {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-block {
        min-width: 65px;
        padding: 0.75rem 0.5rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .dual-col {
        flex-direction: column;
        gap: 1.25rem;
    }

    .share-controls {
        flex-direction: column;
    }
    
    .btn-secondary {
        padding: 1rem;
    }
}
