/* ✨ ULTRA FABULOUS ₹1 STORE - CSS ✨ */

/* 🎴 MAGICAL GLASSMORPHISM CARDS */
.insta-card {
    min-width: 170px;
    position: relative;
    border-radius: 28px;
    padding: 20px 16px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}

.insta-card.locked {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.insta-card.unlocked {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(249, 240, 255, 0.95) 50%,
        rgba(254, 243, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 10px 40px -10px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 20px 60px -15px rgba(236, 72, 153, 0.2);
    animation: card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.insta-card.unlocked:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(124, 58, 237, 0.4),
        0 0 0 2px rgba(168, 85, 247, 0.5) inset,
        0 30px 80px -20px rgba(236, 72, 153, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
}

.insta-card.unlocked:active {
    transform: translateY(-8px) scale(0.98);
}

/* 🌟 MAGICAL GLOW EFFECT */
.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.card-glow.unlocked {
    background: linear-gradient(45deg, 
        #ec4899, #8b5cf6, #3b82f6, #06b6d4, #10b981, #f59e0b, #ec4899);
    background-size: 300% 300%;
    animation: glow-rotate 8s linear infinite;
    opacity: 0.15;
    filter: blur(20px);
}

@keyframes glow-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 🎯 FLOATING ACTION BUTTON */
.add-btn-floating {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    overflow: hidden;
    font-size: 16px;
}

.add-btn-floating.locked {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.add-btn-floating.unlocked {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    box-shadow: 
        0 8px 24px rgba(168, 85, 247, 0.5),
        0 0 0 0 rgba(168, 85, 247, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.add-btn-floating.unlocked:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(168, 85, 247, 0.6),
        0 0 0 4px rgba(168, 85, 247, 0.2);
}

.add-btn-floating.unlocked:active {
    transform: scale(0.95);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5), 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5), 0 0 0 8px rgba(168, 85, 247, 0);
    }
}

/* 💫 BUTTON RIPPLE EFFECT */
.btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple-pulse 2s ease-out infinite;
}

@keyframes ripple-pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 🏷️ UNLOCK BADGE */
.unlock-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
    z-index: 15;
    animation: badge-bounce 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes badge-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

/* 🖼️ PRODUCT IMAGE CONTAINER */
.product-image-container {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.product-image-container.locked {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-image-container.unlocked {
    background: linear-gradient(135deg, 
        rgba(243, 232, 255, 0.4) 0%, 
        rgba(254, 243, 255, 0.4) 50%,
        rgba(252, 231, 243, 0.4) 100%);
}

.product-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.product-image.locked {
    filter: blur(3px) grayscale(0.8) brightness(0.9);
    opacity: 0.5;
}

.product-image.unlocked:hover {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.3));
}

/* 🔒 IMAGE OVERLAY FOR LOCKED STATE */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(229, 231, 235, 0.4) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lock-icon {
    font-size: 36px;
    color: #9ca3af;
    opacity: 0.6;
    animation: lock-shake 3s ease-in-out infinite;
}

@keyframes lock-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ✨ IMAGE SHINE EFFECT */
.image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: shine-sweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}

@keyframes shine-sweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* 📝 PRODUCT INFO */
.product-info {
    position: relative;
    z-index: 5;
}

.product-name {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    letter-spacing: -0.2px;
}

/* 💰 PRICE SECTION */
.price-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.original-price {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 600;
}

.offer-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 2px;
    position: relative;
}

.rupee-symbol {
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-price {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.price-sparkle {
    position: absolute;
    top: -8px;
    right: -16px;
    font-size: 14px;
    animation: sparkle-twinkle 1.5s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

/* 🏷️ DISCOUNT BADGE */
.discount-badge {
    position: relative;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.discount-badge.locked {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #6b7280;
}

.discount-badge.unlocked {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(236, 72, 153, 0.6);
    }
}

.badge-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    transform: rotate(45deg);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.discount-text {
    position: relative;
    z-index: 2;
}

/* 💝 SAVINGS BAR */
.savings-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.savings-bar.locked {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

.savings-bar.unlocked {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.savings-star {
    color: #fbbf24;
    animation: star-spin 4s linear infinite;
}

@keyframes star-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 💎 CORNER SPARKLES */
.corner-sparkle {
    position: absolute;
    font-size: 16px;
    z-index: 20;
    animation: sparkle-float 3s ease-in-out infinite;
}

.corner-top-right {
    top: 8px;
    right: 60px;
}

.corner-bottom-left {
    bottom: 8px;
    left: 8px;
    animation-delay: 1.5s;
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-8px) rotate(180deg); opacity: 1; }
}

/* 🎊 PROGRESS BAR EFFECTS */
.unlocked-progress {
    background: linear-gradient(90deg, 
        #fbbf24 0%, 
        #ec4899 25%, 
        #8b5cf6 50%, 
        #3b82f6 75%, 
        #fbbf24 100%) !important;
    background-size: 200% 100% !important;
    animation: progress-shimmer 3s linear infinite !important;
    position: relative;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shine-slide 2s ease-in-out infinite;
}

@keyframes shine-slide {
    0% { left: -100%; }
    100% { left: 200%; }
}

.progress-pulse {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-fade 2s ease-in-out infinite;
}

@keyframes pulse-fade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 🎯 STATUS TEXT STYLING */
.status-unlocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
}

.unlock-icon {
    font-size: 28px;
    animation: icon-bounce 1s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.unlock-text {
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.unlock-subtitle {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.status-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
    color: #374151;
}

.lock-pulse {
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.highlight-amount {
    font-weight: 900;
    color: #7c3aed;
    font-size: 16px;
}

/* 🏆 GOAL REACHED STYLING */
.goal-reached {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trophy-bounce {
    display: inline-block;
    animation: trophy-jump 1s ease-in-out infinite;
}

@keyframes trophy-jump {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-10deg); }
    75% { transform: translateY(-10px) rotate(10deg); }
}

.amount-needed {
    font-size: 13px;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: 0.5px;
}

/* 🎊 SCREEN FLASH EFFECT */
.screen-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, 
        rgba(251, 191, 36, 0.4) 0%, 
        rgba(236, 72, 153, 0.3) 50%, 
        transparent 100%);
    z-index: 999997;
    animation: flash-fade 1s ease-out forwards;
    pointer-events: none;
}

@keyframes flash-fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 🎨 CUSTOM ALERTS */
.custom-alert {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.custom-alert.show {
    opacity: 1;
}

.alert-content {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert.show .alert-content {
    transform: scale(1);
}

.alert-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: alert-icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alert-icon-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.alert-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.alert-content p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.alert-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.locked-alert .alert-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.warning-alert .alert-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-btn:active {
    transform: scale(0.95);
}

/* 🎉 FABULOUS SUCCESS TOAST */
.fabulous-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 999998;
    min-width: 300px;
    max-width: 90%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fabulous-toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toast-image-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-image-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.toast-checkmark {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: checkmark-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes checkmark-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.toast-text {
    flex: 1;
    text-align: left;
}

.toast-text h4 {
    font-size: 16px;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.toast-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 0 0 24px 24px;
    animation: toast-progress 3.5s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* 🌟 SPARKLE FALL ANIMATION */
@keyframes sparkle-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 📱 MOBILE OPTIMIZATIONS */
@media (max-width: 640px) {
    .insta-card {
        min-width: 155px;
        padding: 16px 12px;
    }

    .product-image-container {
        height: 120px;
    }

    .product-image {
        height: 85px;
    }

    .product-name {
        font-size: 13px;
    }

    .offer-price {
        font-size: 28px;
    }

    .discount-badge {
        padding: 5px 10px;
        font-size: 9px;
    }
}

/* 🎭 REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}