/*
* @Author: Lalit
* @Date:   2025-04-29 18:14:02
* @Last Modified by:   Lalit
* @Last Modified time: 2025-05-09 17:59:15
*/

/*Top Bar Css Start*/
.cashback-alert {
        background: linear-gradient(90deg, #ff7e5f, #feb47b);
        color: white;
        width: 100%;
        padding: 8px 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 1000;
      }
    
      .alert-content {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
      }
    
      .alert-icon {
        margin-right: 10px;
        display: flex;
        align-items: center;
      }
    
      .alert-text {
        font-weight: 600;
        font-size: 14px;
      }
    
      .alert-cta {
        background-color: #ffffff;
        color: #ff7e5f;
        border: none;
        border-radius: 4px;
        padding: 4px 12px;
        margin-left: 12px;
        font-weight: 600;
        font-size: 12px;
        cursor: pointer;
        transition: background-color 0.2s;
      }
    
      .alert-cta:hover {
        background-color: #f8f8f8;
      }
    
      .alert-close {
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
      }
    
      /* Media Query for smaller screens */
      @media (max-width: 600px) {
        .alert-text {
          font-size: 12px;
        }
        
        .alert-cta {
          font-size: 11px;
          padding: 3px 8px;
        }
      }

/*Top Bar Css End*/

/*Sidebar Tag Css*/
.cashback-sidebar{
  font-size: 10px;
    font-weight: 700;
    padding: 0px 5px;
    background-color: #30C033;
    /* padding-right: 7px; */
    margin-left: 6px;
    /* padding-top: 5px; */
    /* padding-bottom: 5px; */
    border-radius: 5px;
    color: #fff;
    border: 1px solid #7D7D7D;
}
/*Sidebar Tag Css*/

/*Scratch Card Popup*/
#scratchCardModal{
     .modal-dialog{margin-top: 7em;margin-bottom: 7em;}
       .modal-content {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        .modal-body {
            padding: 25px;
            text-align: center;
        }
}

.top-alert {
            margin-bottom: 0;
            border-radius: 0;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            background: linear-gradient(45deg, #FF5E62, #FF9966);
            color: white;
            border: none;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
        }
       
        /* Enhanced Scratch Card Heading */
        .reward-heading {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 25px;
            position: relative;
            color: #333;
            text-align: center;
            padding: 10px 0;
            text-transform: uppercase;
            letter-spacing: 1px;
            background: linear-gradient(45deg, #FF9966, #FF5E62);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0px 2px 2px rgba(255, 255, 255, 0.5);
        }
        .reward-heading-icon {
            display: inline-block;
            margin: 0 10px;
            animation: tada 2s infinite;
        }
        @keyframes tada {
            0% { transform: scale(1); }
            10%, 20% { transform: scale(0.9) rotate(-3deg); }
            30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
            40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
            100% { transform: scale(1) rotate(0); }
        }
        /* Enhanced Scratch Card Styling */
        .scratch-card-container {
            position: relative;
            width: 300px;
            height: 200px;
            margin: 0 auto;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            overflow: hidden;
            background: #fff;
            transform: perspective(1000px) rotateX(5deg);
            transition: all 0.3s;
            border: 5px solid gold;
        }
        .scratch-card-container:hover {
            transform: perspective(1000px) rotateX(0deg) scale(1.02);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }
        .scratch-card-inner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: linear-gradient(45deg, #F9F4E2, #FFF6E5);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
            z-index: 5;
        }
        .reward-amount {
            font-size: 48px;
            font-weight: bold;
            color: #FF5E62;
            margin-bottom: 10px;
            text-shadow: 0 2px 5px rgba(0,0,0,0.1);
            animation: pulse 1.5s infinite alternate;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            100% { transform: scale(1.05); }
        }
        .reward-text {
            font-size: 18px;
            color: #555;
            margin-bottom: 5px;
        }
        .canvas-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 15;
        }
        #scratchCanvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
        .scratch-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #FF9966, #FF5E62);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            z-index: 10;
            cursor: pointer;
            border-radius: 15px;
            border: 2px dashed white;
            box-shadow: inset 0 0 0 4px rgba(255,255,255,0.3);
        }
        .scratch-instruction {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .scratch-instruction i {
            font-size: 36px;
            margin-bottom: 10px;
            animation: moveFingerIcon 1.5s infinite;
        }
        .scratch-instruction span {
            font-size: 22px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        @keyframes moveFingerIcon {
            0% { transform: translate(-10px, -10px); }
            50% { transform: translate(10px, 10px); }
            100% { transform: translate(-10px, -10px); }
        }
        .progress-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100px;
            height: 100px;
            z-index: 25;
            display: none;
        }
        .progress-circle svg {
            width: 100%;
            height: 100%;
        }
        .progress-circle circle {
            fill: transparent;
            stroke: white;
            stroke-width: 8;
            stroke-dasharray: 283;
            stroke-dashoffset: 283;
            animation: progressAnimation 3s forwards;
        }
        @keyframes progressAnimation {
            to { stroke-dashoffset: 0; }
        }
        .close-btn {
            background: linear-gradient(45deg, #3498DB, #2980B9);
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px 25px;
            font-weight: bold;
            margin-top: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .close-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }
        .reward-message {
            margin-top: 25px;
            padding: 15px;
            border-radius: 10px;
            background: linear-gradient(45deg, #E8F5E9, #C8E6C9);
            color: #2E7D32;
            font-weight: bold;
            display: none;
            font-size: 18px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: 1px solid #A5D6A7;
            animation: fadeInUp 0.5s;
        }
        /* Confetti styles */
        .confetti {
            position: absolute;
            width: 15px;
            height: 15px;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
        }
        .confetti-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }
        .celebration-text {
            display: none;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #FF5E62;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            animation: bounceIn 1s;
        }
        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); opacity: 1; }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }
        .scratch-card-wrapper {
            position: relative;
            margin: 0 auto;
            width: 320px;
            padding: 10px;
            border-radius: 25px;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.5));
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            transition: all 0.5s;
        }
        .scratch-card-wrapper::before,
        .scratch-card-wrapper::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 158, 102, 0.8);
            filter: blur(15px);
            animation: pulse-glow 4s infinite alternate;
        }
        .scratch-card-wrapper::before {
            top: -10px;
            left: -10px;
            animation-delay: 0s;
        }
        .scratch-card-wrapper::after {
            bottom: -10px;
            right: -10px;
            animation-delay: 2s;
        }
        @keyframes pulse-glow {
            0% { opacity: 0.5; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.5); }
        }
        .reveal-animation {
            animation: revealBounce 1s forwards;
        }
        @keyframes revealBounce {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.1); opacity: 1; }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }
        #initialConfetti {
            display: none;
        }

        @media only screen and (max-width:767px) and (min-width: 300px){
            .reward-heading {font-size: 18px;}
            .reward-heading-icon{margin: 0 0px;}
        }
/*Scratch Card Popup*/

