:root {
    --primary: #ff6b6b;
    --primary-hover: #fa5252;
    --secondary: #20c997;
    --accent: #fcc419;
    --dark: #343a40;
    --text: #495057;
    --light: #f8f9fa;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Page Layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    position: relative;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Glass Card / Main Panel */
.glass-panel {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
}

/* Giveaway Image */
.giveaway-image-container {
    text-align: center;
    margin-bottom: 32px;
}

.giveaway-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Typography */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(252, 196, 25, 0.2);
    color: #e67700;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ff9a9e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 80px;
    border: 1px solid rgba(0,0,0,0.05);
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

/* Forms */
.form {
    max-width: 500px;
    margin: 0 auto;
}

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

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

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: var(--dark);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a9e 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #e9ecef;
    color: var(--dark);
    font-size: 0.9rem;
    padding: 12px 20px;
}

.btn-secondary:hover {
    background: #dee2e6;
}

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

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alert-error {
    background: #ffe3e3;
    color: #c92a2a;
    border: 1px solid #ffc9c9;
}

/* Success State */
.success-icon {
    width: 80px;
    height: 80px;
    background: #e6fcf5;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

/* Share Panel */
.share-panel {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px dashed #ced4da;
}

.share-panel h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 12px;
}

.share-input-group {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.share-input-group input {
    flex: 1;
    background: #fff;
}

.social-share {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-social {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.9rem;
    flex: 1;
}

.btn-social:hover {
    opacity: 0.9;
}

.btn-fb { background: #1877f2; }
.btn-tw { background: #1da1f2; }

/* Status Box */
.status-box {
    text-align: center;
    padding: 40px 20px;
}

.status-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 12px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2.25rem;
    }
    
    .countdown-box {
        min-width: 65px;
        padding: 8px 12px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .social-share {
        flex-direction: column;
    }
}
