.affcoupon-box {
    margin: 1em 0;
    position: relative;
}

.affcoupon-banner {
    padding: 15px;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-right: 40px;
}

.affcoupon-banner:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Peel-off effect */
.affcoupon-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.3) 50%);
    transform: rotate(45deg) translate(20%, -60%);
    box-shadow: -2px 2px 3px rgba(0,0,0,0.1);
}

.affcoupon-revealed-code {
    display: none;
    padding: 20px;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #ddd;
    animation: fadeIn 0.5s;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.affcoupon-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.affcoupon-popup-content {
    background: white;
    padding: 30px 20px 20px;
    border-radius: 10px;
    width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.affcoupon-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: #333;
    padding: 5px;
    z-index: 10000;
    transition: color 0.2s ease;
}

.affcoupon-close:hover {
    color: #000;
}

.affcoupon-copy {
    margin-top: 10px;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.affcoupon-copy:hover {
    background: #2980b9;
}

.affcoupon-instructions {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.affcoupon-affiliate-link {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.affcoupon-copy-notice {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    animation: slideUpFade 0.5s ease-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 10000;
}

.affcoupon-code {
    display: block;
    font-size: 2em;
    margin: 15px 0;
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .affcoupon-popup-content {
        width: 90%;
        max-width: 300px;
        padding: 25px 15px 15px;
    }
    
    .affcoupon-close {
        font-size: 40px;
        top: 5px;
        right: 10px;
    }
    
    .affcoupon-code {
        font-size: 1.5em;
    }
    
    .affcoupon-banner {
        padding: 12px;
        font-size: 0.95em;
    }
}