:root {
    --primary: #00d4ff;
    --primary-dark: #008eb3;
    --secondary: #ff3366;
    --secondary-hover: #e62e5c;
    --bg-dark: #020024;
    --bg-light: #f0f8ff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #333;
    --text-light: #fff;
    --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);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.countdown-bar {
    background: linear-gradient(90deg, var(--bg-dark), #090979);
    color: var(--text-light);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.hero {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 0, 36, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.hero-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 24px;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

.two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.card p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

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

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    background: #f9f9f9;
}

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

.image-preview {
    margin-top: 15px;
    max-width: 100%;
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #ff6b8b);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
}

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

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

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    width: auto;
}

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

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
    border-left: 4px solid #c62828;
}

.status-message {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.status-message h2 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.prize-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.prize-panel img, .prize-showcase img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 1/1;
}

.prize-panel h3, .prize-showcase h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.prize-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eee;
}

.share-panel {
    background: #f0f8ff;
    border: 1px solid #b3e5fc;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.share-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.share-controls input {
    flex: 1;
    margin: 0;
}

.gallery-section {
    width: 100%;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.gallery-header p {
    font-size: 1.15rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.gallery-img-wrap {
    position: relative;
    padding-top: 100%;
    background: #f0f0f0;
}

.gallery-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-author {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.gallery-caption {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
}

.vote-btn:not(:disabled):hover {
    background: #e0e0e0;
}

.vote-btn.voted {
    background: var(--primary-dark);
    color: white;
    cursor: default;
}

.vote-btn.voted svg path {
    fill: white;
}

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

.footer-links {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.opt-in-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links a {
    color: #666;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

#wbx-powered-by-slot {
    display: none !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .prize-showcase {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 30px 20px;
    }
}
