:root {
    --primary: #f97316; /* Brew Thru Orange */
    --primary-hover: #ea580c;
    --secondary: #fbbf24; /* Brew Thru Yellow */
    --secondary-hover: #f59e0b;
    --brand-orange: #f97316;
    --brand-orange-dark: #ea580c;
    --brand-green: #0a5c36; /* Brew Thru Green */
    --brand-green-dark: #063d23;
    --dark: #063d23; /* Dark green for text */
    --light: #fff7ed;
    --white: #ffffff;
    --gray: #4b5563;
    --gray-light: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

.mt-4 { margin-top: 1rem; }

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    color: var(--brand-green-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-image-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(2deg);
    transition: transform 0.4s ease;
    border: 8px solid white;
    background: white;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.eyebrow {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: var(--brand-green-dark);
    transition: background 0.3s ease;
}

a.eyebrow:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--brand-green-dark);
    text-shadow: 0 2px 15px rgba(255,255,255,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--brand-green-dark);
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 40px;
}

.cd-box {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 85px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cd-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
    color: var(--brand-green-dark);
}

.cd-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--brand-green-dark);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 30px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(6, 61, 35, 0.6);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    min-height: 48px;
}

.tab-btn:hover {
    color: var(--brand-green-dark);
}

.tab-btn.active {
    color: var(--brand-green-dark);
    border-bottom-color: var(--brand-green-dark);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Card */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: var(--brand-green-dark);
    text-align: center;
}

.section-desc {
    color: var(--gray);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Form */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--dark);
    min-height: 48px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

/* Checkboxes */
.checkbox-group {
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-display {
    border: 2px dashed var(--gray-light);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
}

.file-upload-wrapper:hover .file-upload-display {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.file-upload-display svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-display svg {
    transform: translateY(-5px);
}

#file-name {
    font-weight: 600;
    color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 10px;
    min-height: 48px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: var(--gray);
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* Success & Sharing */
.success-message {
    text-align: center;
}

.success-icon {
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 6px rgba(16, 185, 129, 0.2));
}

.share-panel {
    margin-top: 40px;
    padding: 30px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--gray-light);
}

.share-panel h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.share-panel p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.share-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

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

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

.btn-social {
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.btn-fb { background: #1877f2; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); }
.btn-tw { background: #000000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }

/* Gallery Layout */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header .section-title {
    color: var(--brand-green-dark);
}

.gallery-header .section-desc {
    color: rgba(6, 61, 35, 0.8);
    font-weight: 600;
}

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

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--gray);
}

.empty-icon {
    color: var(--gray-light);
    margin-bottom: 15px;
}

.gallery-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-thumb-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--light);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.08);
}

.gallery-item-details {
    padding: 20px;
}

.gallery-item-caption {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark);
}

.gallery-item-author {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.gallery-item-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.gallery-footer {
    text-align: center;
    padding-top: 20px;
}

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

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.lightbox-image-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 250px;
    max-height: 60vh;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.lightbox-details {
    padding: 30px;
    background: var(--white);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}

.lightbox-caption {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.3;
}

.lightbox-author {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-vote-stat .vote-count {
    background: var(--light);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    border: 1px solid var(--gray-light);
}

.lightbox-actions {
    max-width: 300px;
    margin: 0 auto;
}

.btn-vote {
    font-size: 1.1rem;
    padding: 16px;
}

.btn-vote.voted {
    background: var(--success);
    box-shadow: none;
    cursor: default;
    color: white;
}

.btn-vote.voted:hover {
    transform: none;
}

.vote-msg {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--success);
    text-align: center;
    font-weight: 600;
}

/* Utilities */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

.status-message {
    background: var(--white);
    padding: 50px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 60px;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .countdown {
        justify-content: center;
    }
    
    .hero-image {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .tabs {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 10px;
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .share-input-group {
        flex-direction: column;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .lightbox-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .lightbox-image-container {
        max-height: 45vh;
        min-height: 200px;
    }
    
    .lightbox-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .lightbox-actions {
        max-width: 100%;
    }
    
    .lightbox-details {
        padding: 20px;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .cd-box {
        padding: 10px 12px;
        min-width: 70px;
    }
    
    .cd-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        flex-basis: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
}