:root {
    --bg-dark: #0b0f14;
    --text-white: #ffffff;
    --accent-red: #ff0000;
    --alert-red: #d10000;
    --progress-bg: #f5c6c6;
    --progress-fill: #22c55e;
    --video-bg: #6b4fb3;
    --font-primary: 'Arial', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Fixed Top Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--progress-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 2000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Start at 0% for animation */
    background-color: var(--progress-fill);
    z-index: -1;
    transition: width 2s cubic-bezier(0.1, 0, 0.1, 1); /* Smoother, longer transition */
    box-shadow: inset 0 -2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Shimmer Effect on Progress Bar */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 3s infinite linear;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-percent {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Alert Banner - Below Fixed Header */
.alert-banner {
    background-color: var(--alert-red);
    color: var(--text-white);
    text-align: center;
    padding: 12px 20px;
    font-size: 15px; /* Subtle increase from 13px */
    font-weight: bold;
    width: 100%;
    margin-top: 40px; /* Offset for fixed header */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .alert-banner {
        font-size: 17px; /* Subtle increase from 15px */
    }
}

/* Main Layout */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 900px;
        padding: 40px 20px;
    }
}

/* Upsell Container with Delay */
.upsell-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
    pointer-events: none;
}

.upsell-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide MundPay Title and Price */
.upsell-title, 
.upsell-price {
    display: none !important;
}

/* Section Headline */
.headline-section {
    padding: 30px 20px;
    background-color: var(--bg-dark); /* Dark section bg */
    text-align: center;
}

.headline {
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.highlight {
    color: var(--accent-red);
    position: relative;
    display: inline-block;
}

/* Mobile Font Size */
@media (max-width: 767px) {
    .headline { font-size: 18px !important; }
}

/* Desktop Font Size */
@media (min-width: 768px) {
    .headline { font-size: 28px !important; }
}

/* Video Player */
.video-wrapper {
    border-radius: 8px; /* Requirement was 8px */
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px auto;
    width: 95%; /* Better mobile padding */
}

@media (min-width: 768px) {
    .video-wrapper {
        width: 100%;
        max-width: 400px; /* Matching the player max-width */
    }
}


/* Resume Modal Overlay */
.resume-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.resume-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.resume-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-white);
}

.resume-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.btn-resume, .btn-restart {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-resume {
    background-color: var(--progress-fill);
    color: #000;
}

.btn-resume:hover {
    background-color: #1eb353;
    transform: translateY(-2px);
}

.btn-restart {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-restart:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .resume-actions {
        flex-direction: row;
        max-width: none;
    }
    .resume-title {
        font-size: 1.5rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
