/**
 * Art Challenge – Graffiti Contest Voting Portal
 * Graffiti / Street-Art Design
 * Farbschema: Schwarz (#000), Gold (#D4AF37, #B8860B), Weiß (#FFF)
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #111111;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #888888;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --gold-light: #F0D060;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --success: #27ae60;
    --error: #e74c3c;
    --font-display: 'Bebas Neue', 'Oswald', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold) !important;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
    color: var(--black) !important;
    background: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
}

/* Spray-paint splatter decorative */
.spray-dots {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.spray-dots-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -50px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    filter: blur(2px);
}

.spray-dots-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: -30px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    padding: 8px 24px;
    margin-bottom: 20px;
    position: relative;
}

.hero-badge::before,
.hero-badge::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
}

.hero-badge::before { top: -4px; left: -4px; }
.hero-badge::after { bottom: -4px; right: -4px; }

.hero-title {
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--white);
    letter-spacing: 5px;
    text-shadow: 3px 3px 0 rgba(212, 175, 55, 0.3);
}

.title-accent {
    color: var(--gold);
    font-size: clamp(4rem, 14vw, 10rem);
    text-shadow:
        3px 3px 0 var(--gold-dark),
        6px 6px 0 rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 1px var(--gold-dark);
}

.hero-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 24px;
    border-radius: 4px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
}

.step-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black) !important;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 16px 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: var(--black) !important;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-secondary {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold);
}

.cta-secondary:hover {
    background: var(--gold);
    color: var(--black) !important;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--dark-gray);
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 20px 40px;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-gray);
}

/* ============================================
   PRIZES SECTION
   ============================================ */
.prizes-section {
    padding: 80px 0;
    background: var(--dark);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: var(--white);
    letter-spacing: 5px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 15px auto 0;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gold-box {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gold-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.gold-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.prize-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.prize-badge {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 12px 0;
}

.prize-description {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--dark-gray);
    text-align: center;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================
   UPLOAD PAGE
   ============================================ */
.upload-page {
    padding: 40px 0 60px;
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Alerts */
.alert {
    padding: 20px 24px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.alert h3 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border-color: var(--success);
    color: #a8e6c5;
}

.alert-success a {
    color: var(--gold);
    font-weight: 600;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--error);
    color: #f5b7b1;
}

.alert-error ul {
    list-style: none;
    padding-left: 0;
}

.alert-error li::before {
    content: '• ';
    color: var(--error);
}

/* Upload Form */
.upload-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 8px;
}

.form-group label small {
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    color: var(--light-gray);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--medium-gray);
    border: 2px solid transparent;
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: var(--light-gray);
}

/* ============================================
   CONSENT CHECKBOXES
   ============================================ */

/* Consent & Terms sections – clean left-aligned checkboxes */
.consent-section,
.terms-section {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.04);
}

.consent-section {
    border-style: dashed;
    border-width: 2px;
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.terms-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* Individual checkbox items */
.consent-item,
.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    min-height: 44px;
}

.consent-item + .consent-item,
.terms-item + .terms-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Styled native checkbox – 20x20, gold accent */
.consent-item input[type="checkbox"],
.terms-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    background: var(--medium-gray);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.consent-item input[type="checkbox"]::after,
.terms-item input[type="checkbox"]::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

/* Checked state – gold */
.consent-item input[type="checkbox"]:checked,
.terms-item input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.consent-item input[type="checkbox"]:checked::after,
.terms-item input[type="checkbox"]:checked::after {
    border-color: var(--black);
    transform: translate(-50%, -55%) rotate(45deg) scale(1);
}

/* Focus ring for accessibility */
.consent-item input[type="checkbox"]:focus-visible,
.terms-item input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
    outline: none;
}

/* Label styling */
.consent-item label,
.terms-item label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--white);
    user-select: none;
    -webkit-user-select: none;
    transition: color 0.2s ease;
}

.consent-item label:hover,
.terms-item label:hover {
    color: var(--gold-light);
}

/* Mobile: bigger touch targets */
@media (max-width: 600px) {
    .consent-item,
    .terms-item {
        gap: 12px;
        padding: 12px 0;
    }

    .consent-item input[type="checkbox"],
    .terms-item input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        /* Touch target 44x44 via padding */
        padding: 10px;
        margin: -10px;
        margin-right: 2px;
    }

    .consent-section,
    .terms-section {
        padding: 16px 18px;
    }
}

/* Error state for unchecked checkboxes */
.consent-item.has-error input[type="checkbox"],
.terms-item.has-error input[type="checkbox"] {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

/* Consent error message below checkboxes */
.consent-error {
    background: rgba(231, 76, 60, 0.12);
    color: #f5b7b1;
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* File upload area */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--gold);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.03);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold-light);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    color: var(--white);
}

.upload-browse {
    color: var(--gold);
    font-weight: 600;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 5px;
}

/* File preview */
.file-preview {
    position: relative;
}

.file-preview img {
    max-height: 300px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.submit-button {
    width: 100%;
    font-size: 1.3rem;
    padding: 18px;
    margin-top: 10px;
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-page {
    padding: 40px 0 60px;
    min-height: 100vh;
}

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

.gallery-card {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--black);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image {
    transform: scale(1.05);
}

.card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 1.3rem;
    padding: 4px 12px;
    border-radius: 4px;
    line-height: 1.2;
}

.card-info {
    padding: 16px 20px 20px;
}

.card-artist {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 4px;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 16px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Vote button */
.vote-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    /* touch-friendly */
}

.vote-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.vote-button:active:not(:disabled) {
    transform: scale(0.95);
}

.vote-button.voted {
    background: rgba(127, 255, 0, 0.15);
    border-color: #7FFF00;
    color: #7FFF00;
    cursor: default;
}

.vote-button:disabled {
    opacity: 0.9;
}

/* Vote count bump animation */
.count-number.bump {
    animation: bump 0.5s ease;
}

@keyframes bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); color: #7FFF00; }
}

/* Voting closed badge (replaces vote button when round ended) */
.voting-closed-badge {
    background: rgba(128, 128, 128, 0.15);
    border: 2px solid rgba(128, 128, 128, 0.3);
    color: #999;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.vote-icon {
    font-size: 1.2rem;
}

/* Vote count */
.vote-count {
    text-align: right;
}

.count-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}

.count-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-gray);
}

/* Empty gallery */
.empty-gallery {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-gallery h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20001;
    line-height: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    cursor: default;
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   VOTE TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 30000;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
    max-width: 90vw;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-color: var(--success);
}

.toast.toast-error {
    border-color: var(--error);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--black);
    border-top: 2px solid var(--gold);
    padding: 30px 0;
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--gold);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
        padding: 12px 16px;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        min-height: 90vh;
    }

    .hero-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .upload-form {
        padding: 24px 20px;
    }

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

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

    .stats-grid {
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2.5rem;
    }

    .title-accent {
        font-size: 3.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        letter-spacing: 4px;
        padding: 6px 16px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .card-actions {
        flex-direction: row;
    }

    .vote-button {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-card:nth-child(8) { animation-delay: 0.4s; }
.gallery-card:nth-child(9) { animation-delay: 0.45s; }

/* Vote button pulse on vote */
@keyframes voteSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.vote-button.animate {
    animation: voteSuccess 0.4s ease;
}



/* ============================================
   CONTEST PHASE SYSTEM
   ============================================ */

/* --- Hero Phase Badge --- */
.hero-phase-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.hero-phase-badge.phase-upload {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.hero-phase-badge.phase-voting {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.hero-phase-badge.phase-ended {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
    animation: none;
}

.hero-phase-badge.phase-waiting,
.hero-phase-badge.phase-between {
    background: rgba(52, 152, 219, 0.2);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.hero-phase-badge.phase-open {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: none;
}

/* --- Parallel Phase (Upload & Voting active simultaneously) --- */
.hero-phase-badge.phase-parallel {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25), rgba(212, 175, 55, 0.25));
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.5);
    animation: pulse-badge 2s ease-in-out infinite;
}

.hero-dual-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-dual-cta .cta-button {
    min-width: 200px;
}

.cta-button.cta-vote {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.cta-button.cta-vote:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hero-phase-info.hero-phase-parallel {
    color: #2ecc71;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Phase banner - parallel variant (gallery) */
.phase-banner.phase-parallel {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.12), rgba(212, 175, 55, 0.12));
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-left: 4px solid #2ecc71;
}

.phase-banner.phase-parallel .phase-banner-text a {
    color: var(--gold);
    text-decoration: underline;
}

/* Admin: parallel info banner */
.admin-parallel-info {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-left: 4px solid #2ecc71;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--off-white);
}

/* Admin status bar - parallel color */
.admin-contest-status-bar.phase-parallel {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(212, 175, 55, 0.15));
    border-color: rgba(39, 174, 96, 0.4);
}

/* Settings: parallel info hint */
.settings-info-parallel {
    background: rgba(39, 174, 96, 0.08) !important;
    border-color: rgba(39, 174, 96, 0.3) !important;
    border-left: 4px solid #2ecc71 !important;
}

/* --- Hero Countdown Timer --- */
.hero-countdown {
    margin: 1.5rem 0;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 70px;
    transition: border-color 0.3s ease;
}

.countdown-block:hover {
    border-color: var(--gold);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.countdown-unit {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: rgba(212, 175, 55, 0.4);
    margin-top: -10px;
}

/* --- Hero Ended Badge --- */
.hero-ended-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 14px 24px;
    margin: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.hero-ended-badge span:first-child {
    font-size: 1.5rem;
}

/* --- Hero Phase Info --- */
.hero-phase-info {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* --- Schedule Info Box (index.php) --- */
.schedule-info-box {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    padding: 1.5rem 2rem;
}

.schedule-info-box h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-info-item:last-child {
    border-bottom: none;
}

.schedule-info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Phase Message Box (upload.php) --- */
.phase-message-box {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    border-radius: 14px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
}

.phase-message-box.info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #85c1e9;
}

.phase-message-box.warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
}

.phase-message-box.ended {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #f1948a;
}

.phase-message-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.phase-message-box p {
    margin-bottom: 0.5rem;
}

.phase-message-box strong {
    color: var(--white);
}

/* --- Phase Banner (gallery.php) --- */
.phase-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.phase-banner.info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.25);
    color: #85c1e9;
}

.phase-banner.success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.25);
    color: #58d68d;
}

.phase-banner.warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold-light);
}

.phase-banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.phase-banner-text {
    flex: 1;
}

/* --- Inline Phase Countdown --- */
.phase-countdown-inline {
    display: inline;
    font-weight: 600;
    color: var(--gold);
}

/* --- Vote Disabled State --- */
.vote-button.vote-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(60%);
}

.vote-button.vote-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   WINNER SECTION
   ============================================ */

.winner-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark) 0%, #0a0a0a 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.winner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.winner-hero-banner {
    text-align: center;
    margin-bottom: 50px;
}

.winner-trophy {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.winner-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Podium Grid */
.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: end;
}

/* Podium Card */
.podium-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.podium-card:hover {
    transform: translateY(-8px);
}

/* 1st Place – Gold */
.podium-card.winner-gold {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.03) 100%);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    padding: 40px 24px;
    order: 0;
}

.podium-card.winner-gold:hover {
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.25);
}

/* 2nd Place – Silver */
.podium-card.winner-silver {
    border: 2px solid #a0a0a0;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.08) 0%, rgba(192, 192, 192, 0.02) 100%);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
    order: -1;
}

.podium-card.winner-silver:hover {
    box-shadow: 0 0 45px rgba(192, 192, 192, 0.18);
}

/* 3rd Place – Bronze */
.podium-card.winner-bronze {
    border: 2px solid #cd7f32;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.08) 0%, rgba(205, 127, 50, 0.02) 100%);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.1);
    order: 1;
}

.podium-card.winner-bronze:hover {
    box-shadow: 0 0 45px rgba(205, 127, 50, 0.18);
}

.podium-medal {
    font-size: 3rem;
    margin-bottom: 8px;
    line-height: 1;
}

.podium-place {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.7;
}

.winner-gold .podium-place { color: var(--gold); opacity: 1; }
.winner-silver .podium-place { color: #c0c0c0; opacity: 1; }
.winner-bronze .podium-place { color: #cd7f32; opacity: 1; }

.podium-image-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.winner-gold .podium-image-wrap {
    width: 240px;
    height: 240px;
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.winner-silver .podium-image-wrap {
    border-color: #a0a0a0;
}

.winner-bronze .podium-image-wrap {
    border-color: #cd7f32;
}

.podium-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.podium-card:hover .podium-image {
    transform: scale(1.05);
}

.podium-artist {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.winner-gold .podium-artist {
    font-size: 1.6rem;
    color: var(--gold);
}

.podium-votes {
    font-size: 0.95rem;
    color: var(--light-gray);
    font-weight: 600;
}

.winner-gold .podium-votes { color: var(--gold-light); }

/* --- Responsive adjustments for countdown + winners --- */
@media (max-width: 900px) {
    .podium-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .podium-card.winner-gold {
        grid-column: 1 / -1;
        order: -1;
    }

    .podium-card.winner-silver { order: 0; }
    .podium-card.winner-bronze { order: 1; }
}

@media (max-width: 600px) {
    .countdown-block {
        min-width: 58px;
        padding: 10px 12px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-separator {
        font-size: 1.3rem;
    }

    .schedule-info-box {
        margin: 1.5rem 1rem;
        padding: 1.2rem 1.5rem;
    }

    .phase-message-box {
        margin: 1.5rem 1rem;
        padding: 1.2rem 1.5rem;
    }

    .phase-banner {
        flex-direction: column;
        gap: 6px;
        padding: 12px 18px;
    }

    .hero-ended-badge {
        padding: 10px 18px;
        font-size: 1rem;
    }

    /* Winners mobile */
    .podium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .winner-section {
        padding: 50px 0;
    }

    .winner-hero-title {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }

    .winner-trophy {
        font-size: 2.5rem;
    }

    .podium-image-wrap,
    .winner-gold .podium-image-wrap {
        width: 180px;
        height: 180px;
    }
}



/* ============================================
   VOTING POPUP – Schönes Modal-Overlay
   ============================================ */

/* Fullscreen Overlay */
.voting-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vpFadeIn 0.3s ease-out;
}

.voting-popup-overlay.hidden {
    display: none !important;
}

@keyframes vpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup Card */
.voting-popup {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 3px solid #FFD700;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    padding: 40px 30px;
    position: relative;
    box-shadow:
        0 20px 60px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: vpPopIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

@keyframes vpPopIn {
    0%   { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(255,215,0,0.3);
}

.popup-close:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    transform: rotate(90deg);
}

.popup-close:active {
    transform: scale(0.9);
}

/* Icon */
.popup-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: vpPulse 2s infinite;
}

@keyframes vpPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

/* Title */
.popup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: #FFD700;
    margin: 0 0 8px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.popup-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #7FFF00;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content */
.popup-content {
    margin: 20px 0;
}

.popup-text {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-text strong {
    color: #FFD700;
}

/* Countdown */
.popup-countdown {
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

.countdown-label {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-display {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Action Buttons */
.popup-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0 0;
}

.popup-btn {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
    text-align: center;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #FFF 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: #000;
    text-decoration: none;
}

.popup-btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.popup-btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    color: #FFD700;
    text-decoration: none;
}

/* Footer */
.popup-footer {
    color: #777;
    font-size: 0.82rem;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    line-height: 1.4;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .voting-popup {
        padding: 30px 20px;
        max-width: 95%;
    }
    .popup-icon {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }
    .popup-title {
        font-size: 1.8rem;
    }
    .popup-subtitle {
        font-size: 1rem;
    }
    .popup-actions {
        flex-direction: column;
    }
    .countdown-display {
        font-size: 1.8rem;
    }
    .popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* Hide the old site-header completely */
.site-header {
    display: none !important;
}

/* ============================================
   3-RUNDEN SECTION & TIMELINE
   ============================================ */
.rounds-section {
    padding: 80px 0;
    background: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--light-gray);
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 40px;
}

/* Timeline */
.challenge-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark), var(--medium-gray));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--dark);
}

.timeline-active .timeline-dot {
    background: #2ecc71;
    color: var(--white);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Timeline Cards */
.timeline-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(4px);
    border-color: var(--gold);
}

.round-card-summer { border-left: 4px solid #2ecc71; }
.round-card-autumn { border-left: 4px solid #e67e22; }
.round-card-finale { border-left: 4px solid var(--gold); }

/* Round badges */
.round-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.round-badge-active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.round-badge-upcoming {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.round-badge-finale {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.round-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.round-dates {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.round-location {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.round-desc {
    font-size: 0.95rem;
    color: var(--off-white);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Round Prize box */
.round-prize {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.round-prize-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.round-prize-grand {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-color: var(--gold);
}

.round-grand-prize {
    color: var(--gold) !important;
    font-weight: 600;
}

/* Round feature tags */
.round-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.round-feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--medium-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--off-white);
}

.round-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cta-sm {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
}

/* ============================================
   ANNOUNCEMENT PAGE (announcement.php)
   ============================================ */
.announce-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a0a 50%, #0a0a0a 100%);
    padding: 120px 20px 60px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.announce-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.announce-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.announce-hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.announce-hero-title span {
    display: block;
}

.announce-hero-sub {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Intro section */
.announce-intro {
    padding: 60px 0;
    background: var(--dark);
}

.announce-intro-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 32px;
}

.announce-intro-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.announce-intro-card p {
    color: var(--off-white);
    line-height: 1.7;
    margin-bottom: 20px;
}

.announce-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.announce-highlight {
    text-align: center;
    padding: 16px;
    background: var(--medium-gray);
    border-radius: 8px;
}

.announce-highlight-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}

.announce-highlight strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.announce-highlight span:last-child {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Detailed round cards */
.announce-rounds {
    background: var(--black);
}

.round-detail-card {
    max-width: 800px;
    margin: 0 auto 32px;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    overflow: hidden;
}

.round-detail-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.round-detail-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--light-gray);
}

.round-detail-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    flex: 1;
}

.round-detail-summer .round-detail-header { border-bottom: 3px solid #2ecc71; }
.round-detail-autumn .round-detail-header { border-bottom: 3px solid #e67e22; }
.round-detail-finale .round-detail-header { border-bottom: 3px solid var(--gold); }

.round-detail-body {
    padding: 24px;
}

.round-detail-info {
    margin-bottom: 20px;
}

.round-detail-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.round-detail-row:last-child {
    border-bottom: none;
}

.round-detail-label {
    flex-shrink: 0;
    width: 100px;
    font-size: 0.85rem;
    color: var(--light-gray);
}

.round-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.round-detail-features {
    margin-top: 16px;
}

.round-detail-features h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
}

/* FAQ */
.announce-faq {
    padding: 60px 0;
    background: var(--dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    padding: 20px 24px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--off-white);
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announce-hero-title {
        font-size: 2rem;
    }
    .announce-highlight-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        padding-left: 56px;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-dot {
        left: 4px;
    }
    .round-detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .round-detail-label {
        width: auto;
        font-weight: 600;
    }
    .round-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* ══════════════════════════════════════════════════════════════════════
   MULTI-ROUND SYSTEM STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── Gallery Breadcrumbs ────────────────────────────────────────────── */
.gallery-breadcrumbs {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    padding: 8px 0;
}
.gallery-breadcrumbs a {
    color: #D4AF37;
    text-decoration: none;
}
.gallery-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ── Round Tabs ─────────────────────────────────────────────────────── */
.round-tabs {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.round-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    color: #ccc;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}
.round-tab:hover {
    border-color: #D4AF37;
    color: #fff;
    background: rgba(212,175,55,0.1);
}
.round-tab-active {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.15);
    color: #D4AF37;
    box-shadow: 0 0 20px rgba(212,175,55,0.2);
}
.round-tab-ended {
    opacity: 0.75;
}
.round-tab-ended.round-tab-active {
    opacity: 1;
}
.round-tab-count {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: 'Open Sans', sans-serif;
}
.round-tab-active .round-tab-count {
    background: rgba(212,175,55,0.3);
}
.round-tab-badge-active {
    background: #22c55e;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}
.round-tab-badge-ended {
    font-size: 0.85rem;
}

/* ── Round Tab Season Colors ────────────────────────────────────────── */
.round-tab-spring {
    border-color: rgba(127,255,0,0.3);
}
.round-tab-spring:hover {
    border-color: #7FFF00;
    background: rgba(127,255,0,0.1);
}
.round-tab-spring.round-tab-active {
    border-color: #7FFF00;
    background: rgba(127,255,0,0.15);
    color: #7FFF00;
    box-shadow: 0 0 20px rgba(127,255,0,0.2);
}
.round-tab-spring.round-tab-active .round-tab-count {
    background: rgba(127,255,0,0.3);
}
.round-tab-autumn {
    border-color: rgba(255,107,53,0.3);
}
.round-tab-autumn:hover {
    border-color: #FF6B35;
    background: rgba(255,107,53,0.1);
}
.round-tab-autumn.round-tab-active {
    border-color: #FF6B35;
    background: rgba(255,107,53,0.15);
    color: #FF6B35;
    box-shadow: 0 0 20px rgba(255,107,53,0.2);
}
.round-tab-autumn.round-tab-active .round-tab-count {
    background: rgba(255,107,53,0.3);
}
.round-tab-upcoming {
    opacity: 0.85;
    border-style: dashed;
}
.round-tab-badge-upcoming {
    font-size: 0.85rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ── Upcoming Round Teaser ─────────────────────────────────────────── */
.upcoming-round {
    text-align: center;
    padding: 60px 32px;
    margin: 32px 0;
    border-radius: 20px;
    border: 2px dashed rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}
.upcoming-round.upcoming-spring {
    border-color: rgba(127,255,0,0.3);
    background: linear-gradient(135deg, rgba(127,255,0,0.05), rgba(0,0,0,0));
}
.upcoming-round.upcoming-autumn {
    border-color: rgba(255,107,53,0.3);
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(0,0,0,0));
}
.upcoming-round-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pulse 3s ease-in-out infinite;
}
.upcoming-round-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #D4AF37;
    margin: 0 0 8px 0;
    letter-spacing: 0.05em;
}
.upcoming-round-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 12px 0;
}
.upcoming-round-text {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin: 0 0 24px 0;
}
.upcoming-countdown-box {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 16px;
    padding: 20px 40px;
    margin-bottom: 24px;
}
.upcoming-spring .upcoming-countdown-box {
    background: rgba(127,255,0,0.1);
    border-color: rgba(127,255,0,0.3);
}
.upcoming-countdown-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.upcoming-countdown-timer {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #FF6B35;
    letter-spacing: 0.05em;
}
.upcoming-spring .upcoming-countdown-timer {
    color: #7FFF00;
}
.upcoming-round-link {
    display: inline-block;
    color: #D4AF37;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.3);
    transition: all 0.3s ease;
}
.upcoming-round-link:hover {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* ── Upload Closed Notice ──────────────────────────────────────────── */
.upload-closed-notice {
    border-left: 4px solid #FF6B35;
}

/* ── Round Ended Label ──────────────────────────────────────────────── */
.round-ended-label {
    color: #D4AF37;
    font-weight: 600;
}

/* ── Round Winner Banner (gallery page) ─────────────────────────────── */
.round-winner-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 2px solid #D4AF37;
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0 24px;
}
.round-winner-banner-trophy {
    font-size: 3rem;
    flex-shrink: 0;
}
.round-winner-banner-content {
    flex: 1;
}
.round-winner-banner-content h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4rem;
    color: #D4AF37;
    margin: 0 0 4px;
    letter-spacing: 0.05em;
}
.round-winner-banner-artist {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
}
.round-winner-banner-votes {
    color: #D4AF37;
    font-family: 'Open Sans', sans-serif;
    margin-top: 4px;
}
.round-winner-banner-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #D4AF37;
    flex-shrink: 0;
}

/* ── Archive Mode ───────────────────────────────────────────────────── */
.phase-ended-archive {
    background: linear-gradient(135deg, rgba(100,100,100,0.2), rgba(60,60,60,0.2));
    border-left: 4px solid #888;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.gallery-card-archived {
    opacity: 0.85;
    position: relative;
}
.gallery-card-archived::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border-radius: inherit;
}

/* ── Card Winner Badge ──────────────────────────────────────────────── */
.card-winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #D4AF37, #f0d060);
    color: #000;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}

/* ── Round Indicator (upload page) ──────────────────────────────────── */
.round-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}
.round-indicator-badge {
    background: #D4AF37;
    color: #000;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.round-indicator-text {
    color: #ccc;
    font-size: 0.95rem;
}
.round-indicator-text strong {
    color: #fff;
}

/* ── Round Winners (index.php) ──────────────────────────────────────── */
.round-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.round-winner-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.round-winner-card:hover {
    border-color: #D4AF37;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.15);
}
.round-winner-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), transparent);
}
.round-winner-card-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    color: #D4AF37;
    margin: 0;
    letter-spacing: 0.05em;
}
.round-winner-card-trophy {
    font-size: 2rem;
}
.round-winner-card-body {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    align-items: center;
}
.round-winner-card-image-wrap {
    flex-shrink: 0;
}
.round-winner-card-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #D4AF37;
}
.round-winner-card-info {
    flex: 1;
}
.round-winner-card-artist {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}
.round-winner-card-votes {
    color: #D4AF37;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.round-winner-card-prize {
    color: #aaa;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}
.round-winner-card-link {
    display: block;
    text-align: center;
    padding: 12px 24px;
    background: rgba(212,175,55,0.1);
    color: #D4AF37;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s;
}
.round-winner-card-link:hover {
    background: rgba(212,175,55,0.2);
}

/* ── Finale Teaser ──────────────────────────────────────────────────── */
.finale-teaser {
    text-align: center;
    padding: 40px 24px;
    margin-top: 32px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.03));
    border: 2px dashed rgba(212,175,55,0.3);
    border-radius: 16px;
}
.finale-teaser-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.finale-teaser-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #D4AF37;
    margin: 0 0 12px;
    letter-spacing: 0.05em;
}
.finale-teaser-text {
    color: #ccc;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ── Admin Round Indicator (dashboard) ──────────────────────────────── */
.admin-round-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
}
.admin-round-info {
    color: #D4AF37;
}
.admin-round-mini-stats {
    display: flex;
    gap: 16px;
}
.admin-round-stat {
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ── Admin Rounds Page ──────────────────────────────────────────────── */
.rounds-active-badge {
    background: #D4AF37;
    color: #000;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}
.admin-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}
.admin-alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}
.admin-alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.round-admin-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}
.round-card-active {
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 25px rgba(34,197,94,0.1);
}
.round-card-ended {
    border-color: rgba(212,175,55,0.3);
    opacity: 0.9;
}
.round-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}
.round-admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.round-admin-title h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}
.round-admin-icon {
    font-size: 1.5rem;
}
.round-admin-status {
    text-align: right;
}
.round-admin-status small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 4px;
}
.round-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}
.round-status-active {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
}
.round-status-ended {
    background: rgba(212,175,55,0.2);
    color: #D4AF37;
}
.round-status-inactive {
    background: rgba(255,255,255,0.05);
    color: #999;
}
.round-admin-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.round-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.round-stat-num {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #D4AF37;
}
.round-stat-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
}
.round-winner-display {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.round-winner-trophy {
    font-size: 2rem;
}
.round-winner-info {
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
}
.round-winner-info strong {
    color: #D4AF37;
}
.round-winner-votes {
    display: block;
    color: #D4AF37;
    font-size: 0.9rem;
    margin-top: 4px;
}
.round-winner-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #D4AF37;
}
.round-no-winner {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
    color: #999;
    font-family: 'Open Sans', sans-serif;
    justify-content: center;
}
.round-leaders {
    margin-bottom: 16px;
}
.round-leaders h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: #ccc;
    margin: 0 0 8px;
}
.round-leader-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
}
.round-leader-medal {
    font-size: 1.1rem;
}
.round-leader-name {
    flex: 1;
    color: #fff;
    font-weight: 600;
}
.round-leader-votes {
    color: #D4AF37;
    font-size: 0.85rem;
}
.round-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.rounds-info-box {
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    padding: 24px;
    font-family: 'Open Sans', sans-serif;
    color: #ccc;
    line-height: 1.7;
}
.rounds-info-box h3 {
    font-family: 'Oswald', sans-serif;
    color: #D4AF37;
    margin: 0 0 12px;
}
.rounds-info-box ul {
    padding-left: 20px;
    margin: 0 0 12px;
}
.rounds-info-box li {
    margin-bottom: 6px;
}
.rounds-info-box p {
    margin: 8px 0 0;
}

/* ── Admin Button Variants (for rounds page) ────────────────────────── */
.admin-btn-success {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}
.admin-btn-success:hover {
    background: rgba(34,197,94,0.3);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .round-tabs {
        flex-direction: column;
    }
    .round-tab {
        justify-content: center;
    }
    .upcoming-round {
        padding: 40px 20px;
    }
    .upcoming-round-icon {
        font-size: 3rem;
    }
    .upcoming-round-title {
        font-size: 1.6rem;
    }
    .upcoming-countdown-box {
        padding: 16px 24px;
    }
    .round-winner-banner {
        flex-direction: column;
        text-align: center;
    }
    .round-winner-banner-img {
        width: 80px;
        height: 80px;
    }
    .round-winners-grid {
        grid-template-columns: 1fr;
    }
    .round-winner-card-body {
        flex-direction: column;
        text-align: center;
    }
    .rounds-grid {
        grid-template-columns: 1fr;
    }
    .round-admin-header {
        flex-direction: column;
    }
    .admin-round-indicator {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-round-mini-stats {
        flex-direction: column;
        gap: 8px;
    }
    .round-indicator {
        flex-direction: column;
        text-align: center;
    }
}



/* ══════════════════════════════════════════════════════════════════════
   BETWEEN-EVENTS & CHALLENGE STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero Winner Preview (between-events hero) ───────────────────── */
.hero-winner-preview {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px auto;
    max-width: 500px;
}

.hero-winner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    padding: 16px 24px;
    width: 100%;
}

.hero-winner-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #D4AF37;
    flex-shrink: 0;
}

.hero-winner-info {
    text-align: left;
}

.hero-winner-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #D4AF37;
    font-weight: 600;
}

.hero-winner-votes {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.hero-winner-prize {
    font-size: 0.8rem;
    color: rgba(212,175,55,0.8);
    margin-top: 2px;
}

/* ── Hero Challenge Text ─────────────────────────────────────────── */
.hero-challenge-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 16px 0;
    line-height: 1.3;
}

.hero-subtitle-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 550px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

/* ── Hero Next Event ─────────────────────────────────────────────── */
.hero-next-event {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 30px;
    padding: 10px 20px;
    margin-top: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #D4AF37;
    letter-spacing: 0.5px;
}

.next-event-icon {
    font-size: 1.2rem;
}

.next-event-text {
    font-weight: 500;
}

.next-date-icon {
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════════════
   BETWEEN-EVENTS SECTION (full card below hero)
   ══════════════════════════════════════════════════════════════════════ */
.between-events-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 100%);
}

.between-events-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.between-events-left {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.05);
    border-right: 1px solid rgba(212,175,55,0.15);
}

.between-events-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.between-events-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.6rem;
    color: #D4AF37;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ── Between-Events Winner Display ───────────────────────────────── */
.between-events-winner {
    text-align: center;
}

.between-events-winner-img {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #D4AF37;
    box-shadow: 0 8px 32px rgba(212,175,55,0.25);
    margin-bottom: 16px;
}

.between-events-winner-info {
    margin-top: 8px;
}

.between-events-winner-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.between-events-winner-votes {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.between-events-winner-prize {
    font-size: 0.85rem;
    color: #D4AF37;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Between-Events Challenge ────────────────────────────────────── */
.between-events-challenge {
    margin-bottom: 24px;
}

.challenge-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.challenge-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    color: rgba(212,175,55,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.challenge-body {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.challenge-bolt {
    color: #D4AF37;
    font-size: 1.3em;
}

.challenge-teaser {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

/* ── Between-Events Next Event Info ──────────────────────────────── */
.between-events-next {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.between-events-next-date {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #D4AF37;
    font-weight: 600;
}

.between-events-next-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   TIMELINE ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════════ */

/* Done state for completed timeline items */
.timeline-done .timeline-dot {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(74,222,128,0.3);
}

.timeline-done .timeline-card {
    border-color: rgba(74,222,128,0.3);
}

.round-badge-done {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.3);
}

/* ── Round Winner Inline (inside timeline) ───────────────────────── */
.round-winner-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #fff;
}

.round-winner-inline-trophy {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Finale Teaser Stay ──────────────────────────────────────────── */
.finale-teaser-stay {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE – Between-Events & Challenge
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-winner-preview {
        flex-direction: column;
        gap: 12px;
    }
    .hero-winner-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .hero-winner-info {
        text-align: center;
    }
    .hero-challenge-text {
        font-size: 1.3rem;
    }
    .between-events-card {
        grid-template-columns: 1fr;
    }
    .between-events-left {
        border-right: none;
        border-bottom: 1px solid rgba(212,175,55,0.15);
        padding: 30px 20px;
    }
    .between-events-right {
        padding: 30px 20px;
    }
    .between-events-winner-img {
        width: 140px;
        height: 140px;
    }
    .challenge-body {
        font-size: 1.2rem;
    }
    .between-events-next {
        flex-direction: column;
        text-align: center;
    }
    .round-winner-inline {
        flex-direction: column;
        text-align: center;
    }
}



/* ══════════════════════════════════════════════════════════════════════
   EV-* EVENT BOXES – Visuell starkes Card-Layout
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero (announcement.php) ─────────────────────────────────────── */
.ev-hero {
    background: #000;
    padding: 40px 20px 60px;
    text-align: center;
    border-bottom: 4px solid #D4AF37;
}
.ev-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}
.ev-hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    color: #D4AF37;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.ev-hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4.5rem;
    color: #FFD700;
    letter-spacing: 6px;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255,215,0,0.3), 0 4px 8px rgba(0,0,0,0.5);
}
.ev-hero-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 24px auto;
}
.ev-hero-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #D4AF37;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.ev-hero-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

/* ── Section header (for index.php) ──────────────────────────────── */
.ev-section {
    padding: 60px 0 40px;
}
.ev-section-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 20px;
    background: rgba(212,175,55,0.04);
    border: 2px solid rgba(212,175,55,0.15);
    border-radius: 16px;
}
.ev-section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: #FFD700;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 0 30px rgba(255,215,0,0.2);
}
.ev-section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 16px auto;
}
.ev-section-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   EV-BOX – Die einzelnen Event-Cards
   ══════════════════════════════════════════════════════════════════════ */
.ev-box {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    margin-bottom: 36px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ev-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

/* Farbige Borders pro Event */
.ev-box-spring {
    border: 2px solid rgba(127,255,0,0.35);
    border-left: 8px solid #7FFF00;
}
.ev-box-autumn {
    border: 2px solid rgba(255,107,53,0.35);
    border-left: 8px solid #FF6B35;
}
.ev-box-overall,
.ev-box-winner {
    border: 2px solid rgba(212,175,55,0.5);
    border-left: 8px solid #D4AF37;
}
.ev-box-finale {
    border: 2px solid rgba(255,215,0,0.35);
    border-left: 8px solid #FFD700;
}

/* ── Box Header ──────────────────────────────────────────────────── */
.ev-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ev-box-spring .ev-box-header {
    background: rgba(127,255,0,0.04);
}
.ev-box-autumn .ev-box-header {
    background: rgba(255,107,53,0.04);
}
.ev-box-overall .ev-box-header,
.ev-box-winner .ev-box-header {
    background: rgba(212,175,55,0.06);
}
.ev-box-finale .ev-box-header {
    background: rgba(255,215,0,0.04);
}

.ev-box-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    flex-shrink: 0;
}

.ev-box-titles {
    flex: 1;
}

.ev-box-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #fff;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
}

.ev-box-date {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
}

/* ── Status Badges ───────────────────────────────────────────────── */
.ev-status {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border-radius: 24px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.ev-status-active {
    background: rgba(212,175,55,0.2);
    color: #FFD700;
    border: 2px solid rgba(212,175,55,0.5);
    box-shadow: 0 0 12px rgba(212,175,55,0.15);
}
.ev-status-done {
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border: 2px solid rgba(74,222,128,0.35);
}
.ev-status-next {
    background: rgba(255,107,53,0.15);
    color: #FF6B35;
    border: 2px solid rgba(255,107,53,0.35);
}
.ev-status-overall {
    background: rgba(212,175,55,0.15);
    color: #D4AF37;
    border: 2px solid rgba(212,175,55,0.35);
}
.ev-status-finale {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    border: 2px solid rgba(255,215,0,0.35);
}

/* ── Box Body / Rows ─────────────────────────────────────────────── */
.ev-box-body {
    padding: 12px 32px 28px;
}

.ev-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 20px;
    align-items: baseline;
}
.ev-row:last-child {
    border-bottom: none;
}

.ev-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    width: 180px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ev-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    flex: 1;
}

/* Prize row gold highlight */
.ev-row-prize {
    background: rgba(255,215,0,0.04);
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-bottom-color: rgba(255,215,0,0.1);
}
.ev-row-prize .ev-value {
    color: #FFD700;
}
.ev-row-prize .ev-value strong {
    color: #fff;
}

/* ── Winner inline ───────────────────────────────────────────────── */
.ev-winner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 20px;
    background: rgba(212,175,55,0.1);
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #fff;
}

/* ── Event Tags (Herbst-Programm) ────────────────────────────────── */
.ev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.ev-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-family: 'Open Sans', sans-serif;
}

/* ── CTA Section ─────────────────────────────────────────────────── */
.ev-cta-section {
    padding: 20px 0 80px;
}
.ev-cta-card {
    text-align: center;
    padding: 48px 32px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ev-cta-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
    margin: 0 0 12px;
}
.ev-cta-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
    line-height: 1.6;
}
.ev-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE – EV-* Event Boxes
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ev-hero {
        padding: 80px 16px 40px;
    }
    .ev-hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    .ev-hero-sub {
        font-size: 1.2rem;
    }
    .ev-section-title {
        font-size: 2rem;
    }
    .ev-section-header {
        padding: 24px 16px;
    }
    .ev-box-header {
        flex-wrap: wrap;
        padding: 20px;
        gap: 12px;
    }
    .ev-box-icon {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
    .ev-box-name {
        font-size: 1.5rem;
    }
    .ev-status {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .ev-box-body {
        padding: 8px 20px 20px;
    }
    .ev-row {
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }
    .ev-label {
        width: auto;
    }
    .ev-row-prize {
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .ev-cta-card {
        padding: 32px 20px;
    }
    .ev-cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .ev-hero-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    .ev-box-name {
        font-size: 1.3rem;
    }
    .ev-section-title {
        font-size: 1.6rem;
    }
}



/* ══════════════════════════════════════════════════════════
   SITE HEADER – JW Logo + Title
   ══════════════════════════════════════════════════════════ */
.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-bottom: 4px solid #FFD700;
    padding: 14px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
    transition: all 0.3s ease;
}

.header-logo img:hover {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.8));
}

.header-titles {
    flex-grow: 1;
}

.header-titles h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 0 16px rgba(255,215,0,0.4);
    letter-spacing: 3px;
    line-height: 1.1;
}

.header-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 3px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Nav-Logo with Image ── */
.nav-logo-img {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo-img img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.4));
    transition: transform 0.3s ease;
}

.nav-logo-img:hover img {
    transform: rotate(5deg) scale(1.1);
}

.nav-logo-img span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: #D4AF37;
    letter-spacing: 2px;
}

/* ── Hero Logo Large ── */
.hero-logo-large {
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-logo-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.25) 0%,
        rgba(255, 215, 0, 0.15) 30%,
        rgba(255, 215, 0, 0.08) 50%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-logo-large img {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.4));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 50px rgba(255, 215, 0, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 60px rgba(255, 215, 0, 0.6));
    }
}

/* ── Responsive Logo ── */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    .header-container {
        gap: 12px;
    }
    .header-logo img {
        width: 60px;
        height: 60px;
    }
    .header-titles h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    .header-subtitle {
        font-size: 0.8rem;
    }
    .hero-logo-large img {
        width: 120px;
        height: 120px;
    }
    .hero-logo-large::before {
        width: 200px;
        height: 200px;
    }
    .nav-logo-img img {
        width: 32px;
        height: 32px;
    }
    .nav-logo-img span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        width: 45px;
        height: 45px;
    }
    .header-titles h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    .header-subtitle {
        font-size: 0.7rem;
    }
    .hero-logo-large img {
        width: 100px;
        height: 100px;
    }
    .hero-logo-large::before {
        width: 170px;
        height: 170px;
    }
}



/* Security Modal styles are now inline in gallery.php */
