/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Background effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40,40,40,0.2) 0%, rgba(0,0,0,0) 70%);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(60,60,60,0.15) 0%, rgba(0,0,0,0) 70%);
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -250px;
    right: -250px;
    background: radial-gradient(circle, rgba(50,50,50,0.1) 0%, rgba(0,0,0,0) 70%);
}

/* Main Container */
.container {
    max-width: 800px;
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeIn 0.8s ease forwards;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

/* Typography */
h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* Ad Container */
.ad-container {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.ad-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ad-image {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.ad-image:hover {
    transform: scale(1.03);
}

.ad-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #d0d0d0;
    max-width: 90%;
    margin: 0 auto;
}

/* Countdown */
.countdown {
    font-size: 1.4rem;
    margin: 30px 0;
    font-weight: 600;
    color: #7e7e7e;
    letter-spacing: 1px;
}

#countdown {
    color: #ffcc00;
    font-weight: 700;
}

/* Button */
.btn {
    background: linear-gradient(to right, #555, #333);
    border: none;
    border-radius: 50px;
    padding: 18px 45px;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.btn.visible:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(2px);
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
    color: #888;
}

/* Loading */
.loading {
    display: none;
    margin-top: 25px;
    font-size: 1.1rem;
    color: #aaa;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, -5px) rotate(2deg); }
    50% { transform: translate(10px, 5px) rotate(-2deg); }
    75% { transform: translate(-5px, 10px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .ad-container {
        padding: 20px;
    }
    
    .ad-container h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .countdown {
        font-size: 1.2rem;
    }
    
    .ad-image {
        max-width: 250px;
    }
}