:root {
    --flipkart-blue: #047BD6;
    --flipkart-blue-dark: #0056b3;
    --flipkart-yellow: #FFE11B;
    --flipkart-orange: #FF6F00;
    --header-grad-1: #2563eb;
    --header-grad-2: #1d4ed8;
    --header-grad-3: #0ea5e9;
}

/* Dynamic Icon Styles */
/* Animated section heading */
.title-hero {
    color: #0f172a;
    letter-spacing: -0.02em;
    position: relative;
}
.title-hero .title-icon { display: inline-block; margin-right: 8px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); }
.title-hero .title-text {
    background: linear-gradient(90deg, #111827, #0ea5e9, #111827);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: shimmerSweep 3s linear infinite;
}
.title-hero::after {
    content: '';
    display: block;
    height: 3px;
    width: 120px;
    margin: 10px auto 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--flipkart-yellow), #fff);
    animation: underlineGrow 900ms cubic-bezier(.2,.8,.2,1) forwards;
    transform-origin: center;
    transform: scaleX(0.2);
}
@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* Subtitle entrance with soft glow */
.subtitle-animated {
    color: #4b5563;
    text-shadow: 0 0 0 rgba(255,225,27,0);
    animation: subtitleIn 700ms ease-out both;
}
@keyframes subtitleIn {
    0% { opacity: 0; transform: translateY(8px); text-shadow: 0 0 0 rgba(255,225,27,0); }
    60% { opacity: 1; transform: translateY(0); text-shadow: 0 4px 18px rgba(14,165,233,0.25); }
    100% { text-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* Reveal utility (reused) */
.reveal-up { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .title-hero .title-text { animation: none; }
    .title-hero::after { animation: none; }
    .subtitle-animated { animation: none; }
}
.dynamic-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dynamic-icon {
    font-size: 0.8em;
    color: var(--flipkart-yellow);
    animation: iconPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 225, 27, 0.5));
    position: relative;
    overflow: visible;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dynamic-icon:hover {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 20px rgba(255, 225, 27, 0.8));
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 225, 27, 0.5));
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 15px rgba(255, 225, 27, 0.7));
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        filter: drop-shadow(0 0 20px rgba(255, 225, 27, 0.9));
    }
    75% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 15px rgba(255, 225, 27, 0.7));
    }
}

.icon-change {
    animation: iconChange 0.5s ease-in-out;
}

@keyframes iconChange {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.8) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.dynamic-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 225, 27, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dynamic-icon:hover::before {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}

/* Sparkle effect for icons */
.dynamic-icon::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.5em;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dynamic-icon:hover::after {
    opacity: 1;
    transform: scale(1) rotate(360deg);
}

/* Pulse effect for active icons */
.dynamic-icon.active {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 225, 27, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 225, 27, 0.8));
    }
}

/* Sparkle float animation */
@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Header animated background */
#headerBanner {
    background: linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2), var(--header-grad-3));
    background-size: 200% 200%;
    animation: headerGradient 12s ease infinite;
}

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

/* Reveal on scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer title */
.shimmer-text {
    background: linear-gradient(90deg, #fff, #fde047, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: shimmerSweep 3s linear infinite;
}

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

/* Header ticker */
.header-ticker {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    display: block;
    max-width: 860px;
    width: calc(100% - 2rem);
    margin: 14px auto 18px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    z-index: 1;
}
.header-ticker .ticker-track {
    display: inline-flex;
    gap: 32px;
    white-space: nowrap;
    padding-left: 0;
    animation: tickerScroll 22s linear infinite;
    animation-play-state: var(--ticker-play, running);
}
.header-ticker .ticker-track span {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Parallax items */
.parallax-item {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #headerBanner { animation: none; }
    .header-ticker .ticker-track { animation: none; }
    .shimmer-text { animation: none; }
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.flipkart-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2), var(--header-grad-3));
    background-size: 200% 200%;
    animation: headerGradient 12s ease infinite;
    box-shadow: 0 6px 20px rgba(4, 123, 214, 0.25);
}

.flipkart-btn {
    background: linear-gradient(135deg, var(--flipkart-blue) 0%, var(--flipkart-blue-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(4, 123, 214, 0.3);
}

.flipkart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 123, 214, 0.4);
}
/* Navbar: links */
.nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover { color: #FFE11B; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    height: 2px; width: 100%;
    background: linear-gradient(90deg, #FFE11B, #fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Navbar: search */
.nav-search { width: 100%; }
.nav-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.8); }
.nav-search-input:focus {
    border-color: #FFE11B;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(255, 225, 27, 0.25);
}
.nav-search-icon {
    position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.9);
}

/* Navbar: actions */
.btn-nav { display: inline-flex; align-items: center; gap: 6px; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--flipkart-yellow), #fff59e);
    color: #0b2957;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 9999px;
    box-shadow: 0 6px 14px rgba(255,225,27,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(255,225,27,0.4); }

.nav-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: #ff6464;
    color: #fff;
    font-size: 11px; line-height: 18px; text-align: center;
    border-radius: 9px;
}

/* Navbar: mobile menu */
.nav-mobile {
    display: none;
    background: rgba(4, 123, 214, 0.95);
    border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-mobile.open { display: block; animation: slideDown 220ms ease; }

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile: logo-only navbar */
@media (max-width: 767px) {
    .flipkart-navbar #navToggle,
    .flipkart-navbar .nav-actions,
    .flipkart-navbar .nav-search,
    .flipkart-navbar .nav-mobile {
        display: none !important;
    }
}

/* Mobile navbar simplification and hide live ticker */
@media (max-width: 767px) {
    .flipkart-navbar .nav-actions,
    .flipkart-navbar .nav-search,
    .flipkart-navbar .nav-links,
    #navToggle,
    .nav-mobile,
    .header-ticker {
        display: none !important;
    }
    .flipkart-navbar .flex.items-center.space-x-4 {
        justify-content: center;
        width: 100%;
    }
}

.flipkart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.wheel {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 12px solid #fff;
    box-shadow: 
        0 0 0 8px var(--flipkart-blue),
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 0 50px rgba(255,255,255,0.1);
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: conic-gradient(
        var(--flipkart-blue) 0deg 45deg,
        var(--flipkart-yellow) 45deg 90deg,
        var(--flipkart-orange) 90deg 135deg,
        var(--flipkart-blue-dark) 135deg 180deg,
        var(--flipkart-blue) 180deg 225deg,
        var(--flipkart-yellow) 225deg 270deg,
        var(--flipkart-orange) 270deg 315deg,
        var(--flipkart-blue-dark) 315deg 360deg
    );
}


.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    padding: 20px 10px 10px;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wheel-segment:nth-child(1) { 
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%); 
    transform: rotate(0deg); 
}
.wheel-segment:nth-child(2) { 
    background: linear-gradient(135deg, #4ECDC4 0%, #26C6DA 100%); 
    transform: rotate(45deg); 
}
.wheel-segment:nth-child(3) { 
    background: linear-gradient(135deg, #45B7D1 0%, #2196F3 100%); 
    transform: rotate(90deg); 
}
.wheel-segment:nth-child(4) { 
    background: linear-gradient(135deg, #96CEB4 0%, #4CAF50 100%); 
    transform: rotate(135deg); 
}
.wheel-segment:nth-child(5) { 
    background: linear-gradient(135deg, #FECA57 0%, #FFC107 100%); 
    transform: rotate(180deg); 
}
.wheel-segment:nth-child(6) { 
    background: linear-gradient(135deg, #FF9FF3 0%, #E91E63 100%); 
    transform: rotate(225deg); 
}
.wheel-segment:nth-child(7) { 
    background: linear-gradient(135deg, #54A0FF 0%, #3F51B5 100%); 
    transform: rotate(270deg); 
}
.wheel-segment:nth-child(8) { 
    background: linear-gradient(135deg, #5F27CD 0%, #673AB7 100%); 
    transform: rotate(315deg); 
}

.wheel-segment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-22.5deg);
    width: 100px;
    margin-top: 15px;
}

.wheel-segment-icon {
    font-size: 24px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wheel-segment-text {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wheel-segment-price {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 2px;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--flipkart-blue), var(--flipkart-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 
        0 0 0 6px #fff,
        0 0 20px rgba(4, 123, 214, 0.4),
        inset 0 2px 10px rgba(255,255,255,0.3);
    z-index: 10;
    animation: centerPulse 2s infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.2);
}

@keyframes centerPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 6px #fff,
            0 0 20px rgba(4, 123, 214, 0.4),
            inset 0 2px 10px rgba(255,255,255,0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 
            0 0 0 6px #fff,
            0 0 30px rgba(4, 123, 214, 0.6),
            inset 0 2px 10px rgba(255,255,255,0.3);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--flipkart-orange);
    z-index: 20;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}


.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 35px;
    left: -15px;
    width: 30px;
    height: 15px;
    background: var(--flipkart-orange);
    border-radius: 0 0 50% 50%;
}

.spin-button {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--flipkart-orange) 0%, #e55a00 100%);
    color: white;
    font-weight: 800;
    padding: 20px 50px;
    border-radius: 60px;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 111, 0, 0.4),
        inset 0 2px 10px rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.spin-button::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;
}

.spin-button:hover:not(:disabled)::before {
    left: 100%;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(255, 111, 0, 0.5),
        inset 0 2px 10px rgba(255,255,255,0.2);
}

.spin-button:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.spin-button:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wheel-container {
    background: transparent !important;
}

.wheel {
    border-color: transparent;
}

.wheel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(4, 123, 214, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--flipkart-blue);
    box-shadow: 0 0 0 3px rgba(4, 123, 214, 0.1);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.06), transparent 40%),
        radial-gradient(900px 500px at 80% 110%, rgba(255,255,255,0.05), transparent 40%),
        linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2), var(--header-grad-3));
    background-size: 200% 200%;
    animation: headerGradient 12s ease infinite, fadeIn 0.3s ease-in;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px) saturate(120%);
    animation: slideUp 0.5s ease-out;
}
.loading-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,225,27,0.85), rgba(255,255,255,0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShift 3s linear infinite;
}

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

.loading-spinner {
    --size: 64px;
    --thickness: 6px;
    width: var(--size);
    height: var(--size);
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffffff 10%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0.08) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 0);
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
    animation: spin 1s linear infinite;
}
.loading-spinner::after {
    content: '';
    position: absolute;
    width: calc(var(--size) - var(--thickness)*2.5);
    height: calc(var(--size) - var(--thickness)*2.5);
    left: 50%; top: 50%; transform: translate(-50%,-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.18), transparent 60%);
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--flipkart-yellow);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.6;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loading-overlay { animation: none; }
    .loading-content::before { animation: none; }
    .loading-spinner { animation: spin 1.6s linear infinite; }
    .loading-dots span { animation-duration: 2s; }
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--flipkart-yellow);
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.progress-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--flipkart-blue), var(--flipkart-blue-dark));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.countdown-container {
    animation: countdown-pulse 2s infinite;
}

@keyframes countdown-pulse {
    0%, 100% { 
        background-color: rgba(239, 68, 68, 0.1);
        transform: scale(1);
    }
    50% { 
        background-color: rgba(239, 68, 68, 0.2);
        transform: scale(1.02);
    }
}

.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .wheel {
        width: 320px;
        height: 320px;
        border: 8px solid #fff;
    }
    .wheel-glow {
        width: 370px;
        height: 370px;
    }
    .wheel-segment {
        font-size: 10px;
    }
    .wheel-segment-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .wheel-segment-text {
        font-size: 9px;
    }
    .wheel-segment-price {
        font-size: 8px;
    }
    .wheel-center {
        width: 65px;
        height: 65px;
        font-size: 14px;
    }
    .spin-button {
        padding: 16px 40px;
        font-size: 18px;
    }
}

/* Header Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

.count-animation {
    animation: countUp 0.8s ease-out;
}

/* Mystery Box Animation Styles */
.mystery-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.box-base {
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    left: 10px;
    box-shadow: 
        inset 0 -10px 20px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #654321;
}

.box-lid {
    width: 190px;
    height: 80px;
    position: absolute;
    top: 0;
    left: 5px;
    transform-origin: bottom center;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.box-lid.open {
    transform: rotateX(-120deg) translateZ(40px);
}

.lid-top {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 8px 8px 4px 4px;
    border: 3px solid #654321;
    box-shadow: 
        inset 0 5px 15px rgba(255,255,255,0.2),
        0 5px 20px rgba(0,0,0,0.3);
}

.ribbon-vertical {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 90px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    box-shadow: 
        inset 2px 0 4px rgba(255,255,255,0.3),
        inset -2px 0 4px rgba(0,0,0,0.2);
}

.ribbon-horizontal {
    position: absolute;
    top: 35px;
    left: -5px;
    width: 200px;
    height: 20px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.bow {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
}

.bow-left, .bow-right {
    position: absolute;
    width: 15px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    border-radius: 50% 10px 50% 10px;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.3);
}

.bow-left {
    left: 2px;
    transform: rotate(-25deg);
}

.bow-right {
    right: 2px;
    transform: rotate(25deg);
}

.bow-center {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 10px;
    background: linear-gradient(135deg, #FF5252 0%, #E53E3E 100%);
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.3);
}

.mystery-box-modern {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
    animation: mbox-breathe 4s ease-in-out infinite;
}

/* Ensure smooth anchor alignment under sticky navbar */
#mysteryBoxContainer, #mysteryBox, #prizeResult { scroll-margin-top: 96px; }

.mystery-box-modern .box-base {
    width: 180px;
    height: 120px;
    background: linear-gradient(145deg, var(--flipkart-blue), var(--flipkart-blue-dark));
    border-radius: 12px;
    position: absolute;
    bottom: 0;
    left: 10px;
    box-shadow: 0 12px 30px rgba(4, 123, 214, 0.18), inset 0 -8px 14px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}

.mystery-box-modern .box-lid .lid-top {
    background: linear-gradient(145deg, var(--flipkart-blue-dark), var(--flipkart-blue));
    border-radius: 10px 10px 6px 6px;
    box-shadow: inset 0 6px 16px rgba(255,255,255,0.08), 0 6px 18px rgba(0,0,0,0.25);
}

.mystery-box-modern .ribbon-vertical,
.mystery-box-modern .ribbon-horizontal {
    background: linear-gradient(90deg, var(--flipkart-yellow), #FFB300);
}

.mystery-box-modern .bow-left,
.mystery-box-modern .bow-right {
    background: linear-gradient(135deg, var(--flipkart-orange), var(--flipkart-orange-light));
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.25);
}


.mystery-box-modern .mbox-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 380ms ease;
    background:
        radial-gradient(80px 80px at 50% 40%, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%),
        conic-gradient(from -20deg, rgba(4,123,214,0.0) 0deg, rgba(4,123,214,0.25) 40deg, rgba(34,211,238,0.25) 90deg, rgba(247,201,72,0.22) 120deg, rgba(4,123,214,0.0) 160deg);
    filter: blur(0.5px) saturate(1.1);
}

.mystery-box-modern.opened .mbox-burst {
    opacity: 1;
}

.mystery-box-modern:focus { outline: none; }
.mystery-box-modern:focus-visible { box-shadow: 0 0 0 3px rgba(4,123,214,0.35); border-radius: 14px; }

.mystery-box-modern:hover .box-base {
    box-shadow: 0 14px 34px rgba(4, 123, 214, 0.22), inset 0 -8px 14px rgba(0,0,0,0.25);
}

.mystery-box-modern .box-lid.open {
    transform: rotateX(-115deg) translateZ(32px);
    filter: brightness(1.08);
}

@keyframes mbox-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .mystery-box-modern { animation: none; }
    .mystery-box-modern .box-lid { transition: none; }
}
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sparkles.show {
    opacity: 1;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkleFloat 2s infinite ease-in-out;
    animation-delay: var(--delay);
    transform: translate(var(--x), var(--y));
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translate(var(--x), var(--y)) scale(0.8) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translate(var(--x), calc(var(--y) - 20px)) scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.prize-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.5s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.popup-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4, #45B7D1);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 767px) {
    .prize-popup {
        align-items: stretch;
    }
    .popup-content {
        max-width: none;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    .prize-title { font-size: 26px; margin-bottom: 8px; }
    .prize-card { margin: 8px auto 16px; max-width: 420px; }
    .prize-meta { font-size: 12px; }
    .cta-claim {
        width: 100%;
        margin-top: 16px;
        position: sticky;
        bottom: env(safe-area-inset-bottom);
        left: 0;
        right: 0;
        border-radius: 12px;
    }
}

.prize-title {
    text-align: center;
    background: linear-gradient(90deg, #0ea5e9, #22c55e, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: shimmerSweep 4s linear infinite;
}
.prize-card {
    color: #0b1f34;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background:
    radial-gradient(600px 200px at 50% -10%, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(255,255,255,0.55));
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.prize-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(34,197,94,0.5), rgba(14,165,233,0.5), rgba(34,197,94,0.5));
    opacity: 0.25;
    pointer-events: none;
    filter: blur(18px);
}
.prize-icon-ring {
    --ring: 96px;
    margin: 0 auto 14px;
    width: var(--ring);
    height: var(--ring);
    border-radius: 50%;
    display: grid; place-items: center;
    background:
        conic-gradient(from 0deg, #22c55e, rgba(14,165,233,0.6), rgba(34,197,94,0.6), rgba(14,165,233,0.6));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    box-shadow: 0 0 30px rgba(34,197,94,0.25);
    position: relative;
}
.prize-icon-ring i {
    font-size: 36px; color: #0b1f34; background: #fff; border-radius: 50%; padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.prize-name { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 6px; }
.prize-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0;
    padding: 6px 10px; border-radius: 9999px; margin: 4px auto 8px; text-align: center;
}
.prize-meta { text-align: center; font-size: 12px; color: #475569; }
.cta-claim { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #22c55e, #0ea5e9); box-shadow: 0 12px 30px rgba(14,165,233,0.35); }
.cta-claim:hover { box-shadow: 0 16px 36px rgba(14,165,233,0.45); }

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body:has(.step.active#step4) #headerBanner {
    display: none !important;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.otp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fafbff;
}

.otp-input.filled {
    border-color: #10b981;
    background-color: #f0fdf4;
    color: #059669;
}

.otp-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.resend-timer {
    color: #6b7280;
    font-size: 14px;
    margin-top: 16px;
}

.resend-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.resend-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.trust-footer {
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .otp-container {
        gap: 8px;
    }
    
    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 18px;
    }
}

/* Professional Step 3 (Delivery Information) styles */
.pro-card {
    background-color: #f1f1f1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
}

/* Mobile full-screen delivery form */
@media (max-width: 767px) {
    .pro-step {
        padding: 0;
        margin: 0;
    }
    
    .pro-step .max-w-2xl {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .pro-card {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        padding: 20px;
        box-shadow: none;
        border: none;
    }
    
    .pro-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .pro-description {
        text-align: center;
        margin-bottom: 32px;
        font-size: 16px;
    }
    
    .pro-form .form-input {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .pro-field-label {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .pro-actions {
        margin-top: 32px;
    }
    
    .pro-btn {
        padding: 16px 24px;
        font-size: 18px;
        border-radius: 8px;
    }
}

.pro-card .pro-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
    margin: 4px 0 16px;
    text-align: left;
}

.pro-card .pro-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.pro-field-label {
    display: block;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
}

.pro-form .form-input {
    border-width: 1px;
    border-color: #d1d5db;
    padding: 12px 14px;
}

.pro-form .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pro-trust-note {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.pro-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.pro-btn {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.pro-btn:hover {
    background: linear-gradient(135deg, #1fb16a, #0d93cc);
}