/* Coupon Section Styles */
.coupon-section {
    padding: 30px 0;
    margin: 40px 0;
}

.coupon-container {
    margin: 0 auto;
    padding-top: 10px;
}

.coupon-card {
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 20px auto;
    border: 1px solid #eee;
    height: 200px;
    max-width: 1200px;

}

.coupon-card:hover {
    transform: translateY(-5px);
}

.coupon-left {
    padding: 20px 5px;
    color: white;
    text-align: center;
    min-width: 180px;
    position: relative;
}

.discount-percent {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    background: linear-gradient(180deg, #0eb1bd 0, #03c6d5 35%, rgba(4, 164, 225, .8799894957983193) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.discount-percent::first-line {
    font-size: 3.5rem;
}

.discount-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.9;
}

.coupon-center {
    flex: 1;
    padding: 40px 30px;
}

.coupon-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.coupon-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.coupon-validity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

.coupon-validity i {
    color: #03c6d5;
}

.coupon-right {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Button Stack Container */
.coupon-btn-stack {
    position: relative;
    width: 200px;
    height: 60px;
    perspective: 1000px;
}

.coupon-btn {
    background: linear-gradient(90deg, #0ca8b4 0, #02b5c4 35%, rgba(3, 147, 202, 1) 100%);
    color: white;
    border: 0px solid transparent;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 60px;
}

/* Get Button Specific Styles */
.coupon-btn-get {
    z-index: 2;
    transform-origin: center bottom;
}

/* Code Button Specific Styles */
.coupon-btn-code {
    z-index: 1;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

/* Hover Effect - Rotate get button up to reveal code button */
.coupon-btn-stack.hover-reveal .coupon-btn-get {
    transform: rotateX(-15deg) translateY(-5px);
}

.coupon-btn-stack.hover-reveal .coupon-btn-code {
    transform: translateY(0px);
    opacity: 0.7;
}

/* Show code state - hide get button completely */
.coupon-btn-stack.show-code .coupon-btn-get {
    transform: rotateX(-90deg) translateY(-30px);
    opacity: 0;
    pointer-events: none;
}

.coupon-btn-stack.show-code .coupon-btn-code {
    transform: translateY(0);
    opacity: 1;
    z-index: 3;
}

.coupon-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;
}


.coupon-btn:hover::before {
    left: 100%;
}

.coupon-btn-get:hover {
    transform: translateY(-10px) rotateZ(-5deg) !important;
    background: linear-gradient(90deg, #0ca8b4 0, #02b5c4 35%, rgba(3, 147, 202, 1) 100%);
}

.coupon-btn:hover {
    display: block !important;
}
.coupon-btn-code:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Code button states */
.coupon-btn-code.copying {
    animation: copyingPulse 0.6s ease-in-out;
}

.coupon-btn-code.copied {
    background: #0ca8b4 !important;
    color: white !important;
    border-color: #0ca8b4 !important;
    animation: successBounce 0.5s ease;
}

.coupon-btn-code.error {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    animation: errorShake 0.5s ease;
}

/* Copy icon styles */
.copy-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}



.coupon-code-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.copy-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.coupon-dashed-line {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    width: 2px;
    background-image: linear-gradient(to bottom, #9a9a9a 50%, transparent 50%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
}

.coupon-dashed-line i{
    position: absolute;
    left: -6px;
    bottom: 20px;
    color: #9a9a9a;
    z-index: 9;
    background: #fff;
}




@keyframes pulseSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes copyingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes successBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.1); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #03c6d5;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.error {
    background: #dc3545;
}

.toast-notification.error i {
    color: #fff;
}

.toast-notification i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .coupon-card {
        flex-direction: column;
        text-align: center;
    }
    
    .coupon-left {
        width: 100%;
        min-width: auto;
        padding: 30px;
    }
    
    .coupon-left::after {
        display: none;
    }
    
    .coupon-center,
    .coupon-right {
        padding: 30px;
    }
    
    .coupon-dashed-line {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: auto;
        width: auto;
        height: 2px;
        background-image: linear-gradient(to right, #ddd 50%, transparent 50%);
        background-size: 10px 2px;
    }
    
    .discount-percent {
        font-size: 2.5rem;
    }
    
    .coupon-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .coupon-container {
        padding: 15px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    }
    .coupon-section {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .coupon-dashed-line {
        display: none;  
    }
    
    .coupon-left,
    .coupon-center,
    .coupon-right {
        padding: 0;
    }
    
    .coupon-card {
        height: 100% !important;
        gap: 15px;
        padding: 40px 20px 30px 20px;
        margin: 0;
        border: 2px dashed #03c6d5;
    }

    .discount-percent {
        font-size: 1.3rem;
    }
    
    .coupon-btn-stack {
        width: 250px;
    }
    
    .coupon-btn {
        padding: 12px 24px;
        font-size: 1.2rem;
        height: 55px;
    }
    .coupon-validity{
        justify-content: center;
    }
}

