/* Main Popup Container */
#cop-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}

#cop-popup.cop-show {
    visibility: visible;
    opacity: 1;
}

/* Overlay */
.cop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* Modal */
.cop-modal {
    position: relative;
    width: 900px !important; /* Slightly smaller */
    max-width: 95% !important;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: 0.4s ease;
}

#cop-popup.cop-show .cop-modal {
    transform: scale(1);
}

/* Close Button */
.cop-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #cba135;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.cop-close:hover {
    background: #b48a2d;
    transform: rotate(90deg);
}

/* Content Layout */
.cop-content {
    display: flex;
    width: 100%;
}

/* LEFT SIDE */
.cop-left {
    flex: 1;
    padding: 40px 35px; /* Reduced padding */
}

.cop-logo img {
    max-width: 130px !important;
    width:130px;
    margin-bottom: 15px;
}

.cop-badge {
    font-family: "Sen", Sans-serif;
    font-size: 14px; /* Smaller */
    font-weight: 600;
    color: #cba135;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.cop-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #cba135;
    animation: pulseWidth 2s infinite;
}

@keyframes pulseWidth {
    0% { width: 25px; opacity: 0.5; }
    50% { width: 45px; opacity: 1; }
    100% { width: 25px; opacity: 0.5; }
}

/* Attractive but Smaller Discount Heading */
.cop-discount-heading {
    margin-bottom: 15px;
    line-height: 1.1;
}

.cop-discount-number {
    font-family: "Sen", Sans-serif;
    font-size: 52px; /* Reduced from 82px */
    font-weight: 900;
    color: #cba135;
    display: block;
    text-shadow: 2px 2px 0 rgba(203, 161, 53, 0.2);
    animation: glow 2s ease-in-out infinite;
    letter-spacing: -1px;
}

.cop-discount-text {
    font-family: "Sen", Sans-serif;
    font-size: 28px; /* Reduced from 42px */
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-top: -8px;
    position: relative;
    text-transform: uppercase;
}

.cop-discount-text::before {
    content: '✨';
    font-size: 20px; /* Smaller sparkles */
    margin-right: 8px;
    color: #cba135;
    animation: sparkle 1.5s ease-in-out infinite;
}

.cop-discount-text::after {
    content: '✨';
    font-size: 20px; /* Smaller sparkles */
    margin-left: 8px;
    color: #cba135;
    animation: sparkle 1.5s ease-in-out infinite 0.3s;
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 0 rgba(203, 161, 53, 0.2); }
    50% { text-shadow: 4px 4px 8px rgba(203, 161, 53, 0.3); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cop-subtitle {
    font-family: "Sen", Sans-serif;
    font-size: 16px; /* Smaller */
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.cop-subtitle strong {
    font-family: "Sen", Sans-serif;
    color: #cba135;
    font-weight: 700;
    font-size: 17px; /* Slightly larger but still balanced */
}

.cop-deadline {
    font-family: "Sen", Sans-serif;
    font-size: 16px; /* Smaller */
    margin-bottom: 30px;
    color: #333;
    padding: 10px 20px;
    border: 2px dashed #cba135;
    display: inline-block;
    border-radius: 40px;
    background: #fff9e6;
    box-shadow: 0 3px 10px rgba(203, 161, 53, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.cop-deadline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 161, 53, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.cop-deadline strong {
    font-family: "Sen", Sans-serif;
    color: #cba135;
    font-weight: 700;
    font-size: 18px; /* Slightly larger */
}

/* Buttons */
.cop-buttons {
    display: flex;
    gap: 15px;
}

.cop-btn {
    font-family: "Sen", Sans-serif;
    padding: 12px 28px; /* Smaller padding */
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px; /* Smaller font */
    background: #cba135;
    color: #fff;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(203, 161, 53, 0.3);
}

.cop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 161, 53, 0.4);
}

.cop-btn:hover::before {
    left: 100%;
}

/* RIGHT SIDE */
.cop-right {
    flex: 1;
    overflow: hidden;
}

.cop-right img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cop-right img:hover {
    transform: scale(1.05);
}

/* Prevent Scroll */
body.cop-open {
    overflow: hidden;
}

/* Responsive for Tablets */
@media (max-width: 992px) {
    .cop-left {
        padding: 35px 30px;
    }
    
    .cop-discount-number {
        font-family: "Sen", Sans-serif;
        font-size: 46px;
    }
    
    .cop-discount-text {
        font-family: "Sen", Sans-serif;
        font-size: 24px;
    }
    
    .cop-discount-text::before,
    .cop-discount-text::after {
        font-family: "Sen", Sans-serif;
        font-size: 18px;
    }
}

/* Mobile Responsive - Perfect for phones */
@media (max-width: 768px) {
    /* Hide the image on mobile */
    .cop-right {
        display: none;
    }
    
    .cop-content {
        flex-direction: column;
    }

    .cop-left {
        flex: 1 1 auto;
        padding: 30px 25px;
        text-align: center;
    }

    .cop-badge {
        font-family: "Sen", Sans-serif;
        font-size: 13px;
    }
    
    .cop-badge::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
    }
    
    @keyframes pulseWidth {
        0% { width: 25px; opacity: 0.5; }
        50% { width: 40px; opacity: 1; }
        100% { width: 25px; opacity: 0.5; }
    }

    .cop-discount-number {
        font-family: "Sen", Sans-serif;
        font-size: 42px; /* Perfect for mobile */
    }
    
    .cop-discount-text {
        font-family: "Sen", Sans-serif;
        font-size: 22px; /* Perfect for mobile */
    }
    
    .cop-discount-text::before,
    .cop-discount-text::after {
        font-family: "Sen", Sans-serif;
        font-size: 16px;
    }

    .cop-subtitle {
        font-family: "Sen", Sans-serif;
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .cop-subtitle strong {
        font-family: "Sen", Sans-serif;
        font-size: 16px;
    }
    
    .cop-deadline {
        font-family: "Sen", Sans-serif;
        font-size: 15px;
        margin-bottom: 25px;
        padding: 8px 18px;
    }
    
    .cop-deadline strong {
        font-family: "Sen", Sans-serif;
        font-size: 17px;
    }

    .cop-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .cop-btn {
        font-family: "Sen", Sans-serif;
        padding: 11px 24px;
        font-size: 14px;
    }

    .cop-modal {
        flex-direction: column;
        max-width: 90%;
    }
    
    .cop-logo img {
        max-width: 120px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .cop-left {
        padding: 25px 20px;
    }
    
    .cop-logo {
    text-align: justify;
    }

    .cop-logo img {
        max-width: 150px;
    }
    
    .cop-badge {
        font-family: "Sen", Sans-serif;
        font-size: 12px;
    }
    
    .cop-discount-number {
        font-family: "Sen", Sans-serif;
        font-size: 65px; /* Smaller for very small phones */
    }
    
    .cop-discount-text {
        font-family: "Sen", Sans-serif;
        font-size: 20px; /* Smaller for very small phones */
    }
    
    .cop-discount-text::before,
    .cop-discount-text::after {
        font-family: "Sen", Sans-serif;
        font-size: 14px;
    }
    
    .cop-subtitle {
        font-family: "Sen", Sans-serif;
        font-size: 14px;
    }
    
    .cop-subtitle strong {
        font-family: "Sen", Sans-serif;
        font-size: 25px;
    }
    
    .cop-deadline {
        font-family: "Sen", Sans-serif;
        font-size: 14px;
        padding: 7px 15px;
    }
    
    .cop-deadline strong {
        font-family: "Sen", Sans-serif;
        font-size: 16px;
    }
    
    .cop-btn {
        font-family: "Sen", Sans-serif;
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .cop-close {
        font-family: "Sen", Sans-serif;
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 12px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .cop-discount-number {
        font-family: "Sen", Sans-serif;
        font-size: 34px;
    }
    
    .cop-discount-text {
        font-family: "Sen", Sans-serif;
        font-size: 18px;
    }
    
    .cop-buttons {
        max-width: 220px;
    }
}