* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b0c10;
    color: #c5c6c7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

.header {
    width: 100%;
    background-color: #1f2833;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #45f3ff;
}

.header-name {
    color: #fff;
    font-size: 1.4rem;
    display: inline-block;
}

.header-tag {
    background: #45f3ff;
    color: #0b0c10;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Kept at center for total stability */
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    background-color: #1f2833;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #2f3e46;
    
    /* THE PUSH: Safe layout margin that blocks top ad overlapping */
    margin-top: 25px; 
}

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

.card-title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 0.85rem;
    color: #a9b7c6;
    margin-bottom: 15px;
    line-height: 1.35;
}

.ad-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* max-width added so fixed ad-unit dimensions can't overflow narrow
   viewports (iPhone SE / 320-375px) once card + main-content padding
   is subtracted from the screen width. */
.banner-300 { width: 300px; max-width: 100%; height: 250px; background: #151a22; border-radius: 4px; }
.banner-320 { width: 320px; max-width: 100%; height: 50px; background: #151a22; border-radius: 4px; }

.timer-wrap {
    margin: 20px 0 10px 0;
}

#countdown {
    font-size: 3rem;
    font-weight: bold;
    color: #45f3ff;
}

.timer-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #a9b7c6;
    margin-top: 5px;
}

.progress-track {
    width: 100%;
    background-color: #0b0c10;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

#progressBar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #45f3ff, #00ff87);
    transition: width 0.2s linear;
}

#watchBtn {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    color: #0b0c10;
    text-decoration: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

/* MONETAG SMARTLINK CTA BUTTON */
.smartlink-wrap {
    margin-top: 25px;
    width: 100%;
}

.smartlink-btn-premium {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 8, 68, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 22px rgba(255, 8, 68, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 8, 68, 0.4);
    }
}

.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
    background-color: #0b0c10;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px; /* Adds healthy breathing room between lines and links on mobile */
    line-height: 1.4;
}

.footer span, .footer a {
    display: inline-block;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    color: #45f3ff;
    text-decoration: underline;
}

/* Tighter card padding on very narrow screens (iPhone SE and similar)
   so fixed-width ad units have more room before they get clipped. */
@media (max-width: 360px) {
    .card {
        padding: 16px;
    }
}