/* --- CSS Variables and Base Styles --- */
:root {
    --color-dark: #120B2A;
    --color-primary: #FF416C;
    --color-secondary: #FF4B2B;
    --color-accent: #FFD200;
    --color-light: #FFFFFF;
    --color-text: #EAE3FC;
    --color-text-muted: #A89BCC;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text);
    background-image: linear-gradient(160deg, var(--color-dark) 0%, #302b63 100%), url('https://offertabs.s3.amazonaws.com/offer/a3ir5m/69c062bcdf5a45.55928916.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 65, 108, 0.4);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-light);
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Utility Styles --- */
.hidden {
    display: none !important;
}

/* --- Hero Section & Countdown --- */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 550px;
}

.countdown {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 2rem;
}

.countdown p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.countdown .timer {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-light);
    letter-spacing: 2px;
}

/* --- Product Showcase --- */
.showcase {
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-light);
}

/* --- Entry Form Section --- */
.entry-card, .coupon-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.entry-card p {
    margin-bottom: 1.5rem;
}

#entry-form .form-group {
    margin-bottom: 1rem;
}

#entry-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--color-light);
    transition: all 0.3s ease;
}

#entry-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

#entry-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 65, 108, 0.3);
}

.cta-button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover, .cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: var(--color-accent);
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Coupon/Result Section --- */
.coupon-card h2 {
    color: var(--color-accent);
}

.coupon-code-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

#coupon-code {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    padding: 0.75rem 1.5rem;
    border: 2px dashed var(--color-accent);
    border-radius: 12px;
    background-color: rgba(0,0,0,0.2);
    color: var(--color-accent);
}

#copy-code-button {
    padding: 0 1rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-light);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

#copy-code-button:hover {
    background-color: rgba(255,255,255,0.2);
}

.coupon-instructions {
    margin-bottom: 2rem;
}

.shop-now {
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Status Messages (Ended/Not Started) --- */
.status-message {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
}

/* --- Powered By --- */
#wbx-powered-by-slot {
    margin-top: auto; /* Pushes to bottom in flex container */
    padding-top: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .entry-card, .coupon-card {
        padding: 1.5rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    .countdown .timer {
        font-size: 1.5rem;
    }
}
