﻿:root {
    --primary-orange: #FF6B00;
    --primary-orange-dark: #E55A00;
    --accent-yellow: #FFD93D;
    --dark-bg: #1a1a2e;
    --countdown-bg: #0f0f1a;
    --text-light: #ffffff;
    --text-muted: rgba(255,255,255,0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
}

/* ========================================
           COUNTDOWN BANNER - Copy this section
           ======================================== */
.countdown-banner {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 50%, var(--dark-bg) 100%);
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-orange);
}

    .countdown-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(255, 217, 61, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

    .countdown-banner::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100% );
        animation: shimmer 8s ease-in-out infinite;
    }

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(25%);
    }
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.promo-badge {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 0, 0.6);
    }
}

.promo-text {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .promo-text .highlight {
        color: var(--accent-yellow);
        font-weight: 800;
        font-size: 18px;
    }

    .promo-text .code {
        background: rgba(255, 255, 255, 0.1);
        border: 1px dashed rgba(255, 255, 255, 0.3);
        padding: 4px 12px;
        border-radius: 6px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 14px;
        letter-spacing: 1px;
        color: var(--accent-yellow);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .promo-text .code:hover {
            background: rgba(255, 217, 61, 0.2);
            border-color: var(--accent-yellow);
        }

.countdown-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-block {
    background: var(--countdown-bg);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .time-block::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 107, 0, 0.15);
    }

.time-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1;
    position: relative;
}

.time-unit {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 500;
}

.time-separator {
    color: var(--primary-orange);
    font-size: 20px;
    font-weight: 700;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    white-space: nowrap;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    }

.close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

    .close-banner:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

/* Mobile Responsive */
@media (max-width: 900px) {
    .countdown-banner {
        padding: 14px 16px;
    }

    .banner-content {
        gap: 12px;
    }

    .promo-text {
        font-size: 14px;
        text-align: center;
    }

        .promo-text .highlight {
            font-size: 16px;
        }

    .time-block {
        min-width: 48px;
        padding: 6px 8px;
    }

    .time-value {
        font-size: 18px;
    }

    .close-banner {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }

    .promo-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .promo-text {
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-wrapper {
        flex-direction: column;
        gap: 6px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .close-banner {
        position: absolute;
        right: 10px;
        top: 10px;
        transform: none;
    }
}

/* ========================================
           Demo Page Styling (not part of banner)
           ======================================== */
.demo-header {
    background: #333;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

    .demo-logo span {
        color: var(--primary-orange);
    }

.demo-nav {
    display: flex;
    gap: 20px;
}

    .demo-nav a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-size: 14px;
    }

.demo-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.demo-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .demo-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
        color: #333;
    }

    .demo-section p {
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.config-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.config-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.config-item input, .config-item select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

    .config-item input:focus, .config-item select:focus {
        outline: none;
        border-color: var(--primary-orange);
    }

.update-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    font-size: 14px;
    transition: background 0.2s;
}

    .update-btn:hover {
        background: var(--primary-orange-dark);
    }

.code-block {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-top: 15px;
}

    .code-block code {
        color: #e0e0e0;
        font-family: 'JetBrains Mono', monospace;
        font-size: 13px;
        line-height: 1.6;
    }

    .code-block .comment {
        color: #6a9955;
    }

    .code-block .keyword {
        color: #569cd6;
    }

    .code-block .string {
        color: #ce9178;
    }

    .code-block .number {
        color: #b5cea8;
    }
