/* ===== MODERN COUPON MODAL REDESIGN ===== */

/* Modal Overlay */
#singleModal {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
}

/* Modal Dialog */
.coupon-modal.uk-modal-dialog {
    max-width: 360px !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    background: white !important;
}

/* Close Button */
.coupon-modal .uk-modal-close-default {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coupon-modal .uk-modal-close-default:hover {
    background: #ed174f;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Modal Header Section */
.coupon-modal .modal-header-section {
    background: linear-gradient(135deg, #ed174f 0%, #d01445 100%);
    padding: 20px 18px 18px 18px;
    text-align: center;
    position: relative;
}

.coupon-modal .modal-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Store Logo */
.coupon-modal .image {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    background: white;
    border-radius: 10px;
    padding: 8px;
    margin: 0 auto 12px auto !important;
    display: block !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

/* Modal Title */
.coupon-modal .title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    position: relative;
    z-index: 1;
}

/* Modal Description Text */
.coupon-modal .modal-header-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 12px !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

.coupon-modal .modal-header-section p a {
    color: white !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Modal Body Section */
.coupon-modal .modal-body-section {
    padding: 18px;
}

/* Coupon Code Container */
.coupon-modal .coupon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #ed174f;
    border-radius: 10px;
    padding: 12px;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    position: relative;
    overflow: hidden;
}

.coupon-modal .coupon::before {
    content: '✂';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ed174f;
    animation: scissorFloat 2s ease-in-out infinite;
}

@keyframes scissorFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(-10deg); }
}

.coupon-modal .coupon > div:first-child {
    flex: 1;
    padding-left: 12px;
}

.coupon-modal .coupon p {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ed174f !important;
    margin: 0 !important;
    letter-spacing: 1px !important;
    font-family: 'Courier New', monospace !important;
}

/* Copy Button */
.coupon-modal .copy {
    background: linear-gradient(135deg, #ed174f 0%, #d01445 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(237, 23, 79, 0.3) !important;
}

.coupon-modal .copy:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(237, 23, 79, 0.4) !important;
}

.coupon-modal .copy:active {
    transform: translateY(0) !important;
}

/* Deal Button (No Code) */
.coupon-modal .deal-button {
    background: linear-gradient(135deg, #ed174f 0%, #d01445 100%) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 8px !important;
    box-shadow: 0 3px 10px rgba(237, 23, 79, 0.3) !important;
}

.coupon-modal .deal-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(237, 23, 79, 0.4) !important;
}

/* Likes Section */
.coupon-modal .likes {
    margin: 12px 0 !important;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.coupon-modal .likes p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
}

.coupon-modal .like,
.coupon-modal .deslike {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    background: white !important;
    border: 2px solid #e9ecef !important;
    margin: 0 4px !important;
}

.coupon-modal .like:hover {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
    transform: translateY(-2px);
}

.coupon-modal .deslike:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    transform: translateY(-2px);
}

.coupon-modal .thanks {
    color: #28a745 !important;
    font-weight: 600 !important;
    margin-top: 12px !important;
}

/* Divider */
.coupon-modal hr {
    border: none !important;
    height: 1px !important;
    background: #e9ecef !important;
    margin: 16px 0 !important;
}

/* Details Toggle Button */
.coupon-modal .details-toggle-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coupon-modal .details-toggle-btn:hover {
    background: #ed174f;
    color: white;
    border-color: #ed174f;
}

.coupon-modal .details-toggle-btn.active {
    background: #ed174f;
    color: white;
    border-color: #ed174f;
}

.coupon-modal .details-toggle-btn i {
    transition: transform 0.3s ease;
}

.coupon-modal .details-toggle-btn.active i {
    transform: rotate(180deg);
}

/* Details Section */
.coupon-modal .details-section {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-modal .details-section p {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

/* Share Section */
.coupon-modal .share-section {
    text-align: center;
}

.coupon-modal .share-section p {
    font-size: 13px !important;
    color: #666 !important;
    margin-bottom: 12px !important;
}

/* Success Message */
.coupon-modal .copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 10000;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .coupon-modal.uk-modal-dialog {
        max-width: 90% !important;
        margin: 20px auto !important;
    }
    
    .coupon-modal .modal-header-section {
        padding: 18px 16px 16px 16px;
    }
    
    .coupon-modal .image {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 10px !important;
        padding: 8px;
    }
    
    .coupon-modal .title {
        font-size: 14px !important;
    }
    
    .coupon-modal .modal-body-section {
        padding: 16px;
    }
    
    .coupon-modal .coupon {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    
    .coupon-modal .coupon > div:first-child {
        padding-left: 0;
    }
    
    .coupon-modal .coupon p {
        font-size: 16px !important;
    }
    
    .coupon-modal .copy {
        width: 100%;
        padding: 10px 16px !important;
    }
    
    .coupon-modal .deal-button {
        width: 100%;
        justify-content: center;
    }
    
    .coupon-modal .likes {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .coupon-modal .like,
    .coupon-modal .deslike {
        width: 100%;
        justify-content: center;
    }
}
