/* Interstitial Container */
#interstitial-ad-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

#interstitial-ad-container.active {
    display: flex;
}

#interstitial-ad-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

#close-interstitial {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: white;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

#close-interstitial.visible {
    opacity: 1;
    pointer-events: all;
}

#close-interstitial:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Loading Spinner */
#ad-loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

#ad-loading-spinner.active {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rewarded Modal */
.rewarded-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.rewarded-modal.active {
    display: block;
}

.rewarded-modal-dialog {
    margin: auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: white;
}

.rewarded-modal-dialog h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.rewarded-modal-dialog p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.rewarded-modal-dialog button {
    padding: 12px 30px;
    background: white;
    border: none;
    border-radius: 25px;
    margin: 8px;
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.rewarded-modal-dialog button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rewarded-modal-dialog button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}