/* WhispeeAi Checkout Page Styles */

/* Global Checkout Styles */
html {
    scroll-behavior: smooth;
}

/* Checkout Section */
.checkout-section {
    padding: 90px 1rem 60px;
    background: linear-gradient(135deg, #faf9ff 0%, #f0edff 25%, #e8f4ff 50%, #f0edff 75%, #faf9ff 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Subtle Noise Texture */
.checkout-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Floating Particles Background */
.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(196, 113, 237, 0.06) 0%, transparent 50%);
    animation: float-particles 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-particles {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.checkout-section .container {
    max-width: 1400px;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    position: relative;
    overflow: hidden;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate-gradient 6s linear infinite;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-color: transparent;
    color: white;
    box-shadow: 
        0 10px 24px rgba(102, 126, 234, 0.4), 
        0 0 30px rgba(118, 75, 162, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 10px 24px rgba(102, 126, 234, 0.4), 
            0 0 30px rgba(118, 75, 162, 0.25),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 12px 32px rgba(102, 126, 234, 0.5), 
            0 0 40px rgba(118, 75, 162, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
}

.progress-step.active .step-number::before {
    opacity: 1;
}

.progress-step.active .step-number::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    animation: sparkle-float 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

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

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-color: transparent;
    color: white;
    box-shadow: 
        0 10px 24px rgba(102, 126, 234, 0.4), 
        0 0 30px rgba(118, 75, 162, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

.progress-step.completed .step-number::before {
    opacity: 1;
}

.progress-step.completed .step-number::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    animation: sparkle-float 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
}

.step-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-step.active .step-label {
    font-weight: 800;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.progress-step.active .step-label::after {
    width: 100%;
}

.progress-step.completed .step-label {
    font-weight: 800;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.progress-step.completed .step-label::after {
    width: 100%;
}

.progress-line {
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    margin: 0 0.5rem;
    position: relative;
    top: -16px;
    border-radius: 3px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transition: width 0.6s ease;
    border-radius: 4px;
}

.progress-line.completed {
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-line.completed::after {
    display: none;
}

@keyframes line-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Checkout Container */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.25rem;
}

/* Checkout Card */
.checkout-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.checkout-card:hover {
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-2px);
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.2;
}

.checkout-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.checkout-card:hover::after {
    left: 100%;
}

.card-header {
    margin-bottom: 1rem;
    position: relative;
    padding: 0.75rem;
    padding-bottom: 0.75rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.03) 0%, rgba(240, 147, 251, 0.03) 100%);
    border-radius: 14px;
    overflow: hidden;
}

/* Animated gradient border */
.card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-shift 8s ease infinite, border-glow 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.6;
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        filter: blur(2px);
    }
}

/* Magical floating orb */
.card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-float 6s ease-in-out infinite;
    pointer-events: none;
    filter: blur(20px);
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, -30px) scale(1.3);
        opacity: 1;
    }
}

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: gradient-shift 5s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
    position: relative;
    z-index: 1;
}

.card-header h2 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    animation: gradient-shift 5s ease infinite, icon-float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
    position: relative;
}

/* Sparkle effect on icon */
.card-header h2 i::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    animation: sparkle-rotate 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

@keyframes sparkle-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 1;
    }
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg);
    }
    75% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.card-header p {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
}

.card-header p::before {
    content: '🔒';
    font-size: 1.3rem;
    animation: pulse-secure 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

@keyframes pulse-secure {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Staggered Animation for Plan Cards */
.plan-option:nth-child(1) {
    animation: fade-in-up 0.6s ease-out 0.1s backwards;
}

.plan-option:nth-child(2) {
    animation: fade-in-up 0.6s ease-out 0.2s backwards;
}

.plan-option:nth-child(3) {
    animation: fade-in-up 0.6s ease-out 0.3s backwards;
}

.plan-option:nth-child(4) {
    animation: fade-in-up 0.6s ease-out 0.4s backwards;
}

.plan-option:nth-child(5) {
    animation: fade-in-up 0.6s ease-out 0.5s backwards;
}

.plan-option:nth-child(6) {
    animation: fade-in-up 0.6s ease-out 0.6s backwards;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-option {
    background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

/* Individual plan color schemes - All using Infinity tile background */
.plan-option:nth-child(1) {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.plan-option:nth-child(1)::before {
    background: linear-gradient(135deg, #fb7185 0%, #f472b6 50%, #e879f9 100%);
}

.plan-option:nth-child(2) {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.plan-option:nth-child(2)::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fb923c 100%);
}

.plan-option:nth-child(3) {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.plan-option:nth-child(3)::before {
    background: linear-gradient(135deg, #3b82f6 0%, #667eea 50%, #8b5cf6 100%);
}

.plan-option:nth-child(4) {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.plan-option:nth-child(4)::before {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #14b8a6 100%);
}

.plan-option:nth-child(5) {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.plan-option:nth-child(5)::before {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #c026d3 100%);
}

.plan-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-option:hover::before {
    opacity: 1;
}

.plan-option::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.plan-option:hover::after {
    opacity: 1;
}

.plan-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25), 
                0 0 40px rgba(240, 147, 251, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Enhanced hover states for each plan - all using Infinity tile styling */
.plan-option:nth-child(1):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-option:nth-child(2):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-option:nth-child(3):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-option:nth-child(4):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-option:nth-child(5):hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 
                0 0 40px rgba(147, 51, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-option.active {
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3), 
                0 0 60px rgba(240, 147, 251, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Enhanced active states for each plan - all using Infinity tile styling */
.plan-option:nth-child(1).active {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fae8ff 100%);
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.35), 
                0 0 60px rgba(147, 51, 234, 0.25),
                inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.plan-option:nth-child(2).active {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fae8ff 100%);
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.35), 
                0 0 60px rgba(147, 51, 234, 0.25),
                inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.plan-option:nth-child(3).active {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fae8ff 100%);
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.35), 
                0 0 60px rgba(147, 51, 234, 0.25),
                inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.plan-option:nth-child(4).active {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fae8ff 100%);
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.35), 
                0 0 60px rgba(147, 51, 234, 0.25),
                inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.plan-option:nth-child(5).active {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fae8ff 100%);
    box-shadow: 0 24px 70px rgba(168, 85, 247, 0.35), 
                0 0 60px rgba(147, 51, 234, 0.25),
                inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.plan-option.active::before {
    opacity: 1;
    animation: rotate-gradient 4s linear infinite;
}

.plan-option.recommended {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

/* Enhanced recommended state - typically for BEST VALUE plan */
.plan-option:nth-child(3).recommended {
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
    box-shadow: 0 16px 50px rgba(168, 85, 247, 0.3), 
                0 0 50px rgba(147, 51, 234, 0.2);
}

.plan-option.recommended::before {
    opacity: 1;
}

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

.plan-badge {
    position: absolute;
    top: 35px;
    right: -1px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #667eea 100%);
    background-size: 200% 200%;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(20deg);
    transform-origin: right center;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.5), 0 2px 8px rgba(196, 113, 237, 0.3);
    animation: badge-pulse-checkout 2s ease-in-out infinite, gradient-shift 3s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.plan-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

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

@keyframes badge-pulse-checkout {
    0%, 100% {
        transform: rotate(20deg) scale(1);
        box-shadow: 0 4px 16px rgba(255, 107, 157, 0.5), 0 2px 8px rgba(196, 113, 237, 0.3);
    }
    50% {
        transform: rotate(20deg) scale(1.15);
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6), 0 0 20px rgba(196, 113, 237, 0.4);
    }
}

.demo-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.plan-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin: 1rem 0;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #667eea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.2rem;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #667eea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: -1px;
}

.credits-info {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.savings {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.plan-features li {
    color: #475569;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.plan-features li:hover {
    color: #667eea;
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    padding-left: 8px;
}

.plan-features li i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
}

/* Payment Methods - Enhanced Beautiful Design */
.payment-methods {
    margin-bottom: 2rem;
    position: relative;
}

.payment-methods h3 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    animation: gradient-shift 5s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.payment-methods h3::before {
    content: '💳';
    font-size: 1.8rem;
    animation: icon-bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg);
    }
    75% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.payment-methods h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-radius: 4px;
    opacity: 0.6;
    animation: gradient-shift 5s ease infinite;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    position: relative;
}

.payment-method-option {
    background: linear-gradient(145deg, #ffffff 0%, #faf9ff 100%);
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.payment-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #ffd700 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-border 8s linear infinite;
}

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

.payment-method-option::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(102, 126, 234, 0.15) 60deg,
        rgba(240, 147, 251, 0.15) 120deg,
        transparent 180deg
    );
    opacity: 0;
    transition: all 0.8s ease;
    animation: rotate-gradient 6s linear infinite;
}

.payment-method-option:hover::after {
    opacity: 1;
}

.payment-method-option:hover::before {
    opacity: 1;
}

.payment-method-option:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 40px rgba(240, 147, 251, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.payment-method-option.active {
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 24px 70px rgba(102, 126, 234, 0.35),
        0 0 60px rgba(240, 147, 251, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.payment-method-option.active::before {
    opacity: 1;
}

.payment-method-option.active::after {
    opacity: 1;
}

/* Checkmark for active payment method */
.payment-method-option.active .payment-checkmark {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.5),
        0 0 30px rgba(16, 185, 129, 0.3);
    animation: checkmark-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.payment-method-option.active .payment-checkmark::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.8rem;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.payment-method-option i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
    animation: gradient-shift 4s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.payment-method-option:hover i {
    transform: scale(1.25) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.5));
}

.payment-method-option.active i {
    transform: scale(1.25) rotate(0deg);
    filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.6));
}

.payment-method-option span {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.payment-method-option:hover span,
.payment-method-option.active span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Payment Forms - Enhanced Beautiful Design */
.payment-form {
    margin-top: 2rem;
    animation: fade-in-up 0.6s ease-out;
    position: relative;
}

/* Magical Background Effects for Payment Form */
.payment-form::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(196, 113, 237, 0.08) 0%, transparent 50%);
    animation: float-payment-bg 8s ease-in-out infinite;
    pointer-events: none;
    border-radius: 24px;
    z-index: 0;
}

@keyframes float-payment-bg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(10px, -10px) scale(1.05);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    animation: label-glow 2s ease-in-out infinite;
}

@keyframes label-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.6), 0 0 20px rgba(102, 126, 234, 0.3);
    }
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    display: none;
}

/* Icons removed - no focus animation needed */

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 0.55rem 0.55rem;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid transparent;
    border-radius: 16px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    outline: 3px solid rgba(102, 126, 234, 0);
    outline-offset: 0px;
}

/* Animated gradient border */
.input-with-icon input::before,
.input-with-icon select::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid transparent;
    border-radius: 16px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.08),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02);
    outline: 3px solid rgba(102, 126, 234, 0);
    outline-offset: 0px;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.form-group input:focus,
.form-group select:focus {
    border-color: transparent;
    background: linear-gradient(145deg, #ffffff 0%, #fefbff 100%);
    box-shadow: 
        0 0 0 1px rgba(102, 126, 234, 0.3),
        0 8px 32px rgba(102, 126, 234, 0.25),
        0 0 60px rgba(240, 147, 251, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(102, 126, 234, 0.05);
    transform: translateY(-4px) scale(1.01);
    outline: 3px solid rgba(102, 126, 234, 0.15);
    outline-offset: 3px;
}

/* Magical shimmer effect on focus */
.input-with-icon input:focus::after,
.form-group input:focus::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: input-shimmer 2s infinite;
}

@keyframes input-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.input-with-icon input:hover,
.input-with-icon select:hover,
.form-group input:hover,
.form-group select:hover {
    border-color: transparent;
    box-shadow: 
        0 6px 24px rgba(102, 126, 234, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    outline: 3px solid rgba(102, 126, 234, 0.08);
    outline-offset: 2px;
}

/* Floating label animation for filled inputs */
.input-with-icon input:not(:placeholder-shown),
.form-group input:not(:placeholder-shown) {
    background: linear-gradient(145deg, #fafbff 0%, #f5f7ff 100%);
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.12),
        inset 0 1px 3px rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(102, 126, 234, 0.08);
}

.card-brands {
    position: absolute;
    right: 0.6rem;
    display: flex;
    gap: 0.35rem;
    transition: all 0.3s ease;
    z-index: 2;
    align-items: center;
}

.card-brands img {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(100%) opacity(0.5);
    border-radius: 4px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card-brands img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.input-with-icon input:focus ~ .card-brands img {
    filter: grayscale(0%) opacity(0.8);
    animation: card-bounce 0.6s ease-out;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Card Support Message */
.card-support-message {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-radius: 8px;
    border-left: 2px solid #10b981;
    position: relative;
    overflow: hidden;
    animation: slideInMessage 0.6s ease-out;
    width: fit-content;
    margin-left: auto;
}

.card-support-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.15),
        transparent
    );
    animation: shimmer-message 3s infinite;
}

@keyframes shimmer-message {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

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

.card-support-message i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
    animation: pulse-icon 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 3px 6px rgba(16, 185, 129, 0.5));
    }
}

.card-support-message span {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Success state for inputs */
.input-with-icon input.valid,
.form-group input.valid {
    border-color: transparent;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 
        0 0 0 1px rgba(16, 185, 129, 0.3),
        0 4px 20px rgba(16, 185, 129, 0.2),
        0 0 40px rgba(16, 185, 129, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    outline: 3px solid rgba(16, 185, 129, 0.1);
    outline-offset: 2px;
}

/* Valid state icons removed */

/* Invalid state for inputs */
.input-with-icon input.invalid,
.form-group input.invalid {
    border-color: transparent;
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    box-shadow: 
        0 0 0 1px rgba(239, 68, 68, 0.3),
        0 4px 20px rgba(239, 68, 68, 0.2),
        0 0 40px rgba(239, 68, 68, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    outline: 3px solid rgba(239, 68, 68, 0.1);
    outline-offset: 2px;
}

/* Invalid state icons removed */

/* Add floating particles to input fields on focus */
.input-with-icon input:focus::before,
.form-group input:focus::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.15) 0%, transparent 30%);
    animation: float-particles 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
    z-index: -1;
}

/* Focused input wrapper state */
.input-with-icon.focused {
    position: relative;
}

.input-with-icon.focused::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-radius: 20px;
    opacity: 0.15;
    animation: gradient-shift 3s ease infinite;
    pointer-events: none;
    filter: blur(15px);
    z-index: -1;
}

/* Valid input checkmark indicator */
.input-with-icon input.valid::after,
.form-group input.valid::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 1rem;
    animation: checkmark-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.4));
    pointer-events: none;
}

/* Valid input with icon - adjust checkmark position */
.input-with-icon input.valid {
    padding-right: 1.5rem;
}

.input-with-icon input.valid ~ .card-brands {
    right: 1.75rem;
}

/* UPI Apps - Enhanced Beautiful Design */
.upi-apps {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    border-radius: 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.upi-apps p {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.upi-app-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upi-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 24px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.upi-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upi-app::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upi-app:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.upi-app:hover::before {
    opacity: 1;
}

.upi-app:hover::after {
    opacity: 1;
}

.upi-app img {
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}

.upi-app:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.4));
}

.upi-app span {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.upi-app:hover span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Wallet Options - Enhanced Beautiful Design */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wallet-option {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wallet-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transition: width 0.4s ease;
    border-radius: 14px 0 0 14px;
}

.wallet-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wallet-option:hover {
    border-color: #667eea;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateX(8px);
}

.wallet-option:hover::before {
    width: 6px;
}

.wallet-option:hover::after {
    opacity: 1;
}

.wallet-option input[type="radio"] {
    display: none;
}

.wallet-option input[type="radio"]:checked ~ label {
    color: #667eea;
}

.wallet-option input[type="radio"]:checked + label::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.wallet-option input[type="radio"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.7rem;
    z-index: 1;
}

.wallet-option label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-option label i,
.wallet-option label img {
    font-size: 2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.wallet-option:hover label i,
.wallet-option:hover label img {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.wallet-option input[type="radio"]:checked ~ label i,
.wallet-option input[type="radio"]:checked ~ label img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Billing Section - Enhanced Design */
.billing-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
    position: relative;
}

.billing-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    filter: blur(4px);
    opacity: 0.5;
}

.billing-section h3 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    animation: gradient-shift 5s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.billing-section h3::before {
    content: '📍';
    font-size: 1.8rem;
    animation: icon-bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.billing-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-radius: 4px;
    opacity: 0.6;
    animation: gradient-shift 5s ease infinite;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
}

/* Order Summary */
.order-summary {
    background: linear-gradient(145deg, rgba(250, 249, 255, 0.95) 0%, rgba(240, 237, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: sticky;
    position: relative;
    overflow: hidden;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.order-summary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(240, 147, 251, 0.15) 0%,
        transparent 50%
    );
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.order-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%) 1;
    position: relative;
}

.order-summary h3 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    position: relative;
}

.summary-item .label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-item .value {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-item.total {
    padding-top: 0.75rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    margin: 0.375rem -0.75rem;
    padding: 0.625rem 0.75rem 0.5rem 0.75rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.summary-item.total .label,
.summary-item.total .value {
    font-weight: 800;
    font-size: 1.3rem;
}

.summary-item.total .value {
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #667eea 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

/* Promo Code */
.promo-code {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    position: relative;
}

.promo-code input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.promo-code input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.btn-apply-promo {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-apply-promo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-apply-promo:hover::before {
    width: 300px;
    height: 300px;
}

.btn-apply-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    background-position: 100% 0;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) 1;
    position: relative;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-item:hover {
    color: #667eea;
    transform: translateX(5px);
}

.trust-item i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

/* Features Reminder */
.features-reminder {
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    border: 2px solid transparent;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #667eea 0%, #764ba2 100%) 1;
    border-radius: 16px;
    padding: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    position: relative;
}

.features-reminder h4 {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-reminder h4::before {
    content: '✨';
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-reminder ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-reminder li {
    color: #64748b;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.features-reminder li:hover {
    color: #667eea;
    transform: translateX(5px);
}

.features-reminder li i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
}

/* Buttons */
.btn-full {
    width: 100%;
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: button-shine 3s infinite;
}

@keyframes button-shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(102, 126, 234, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 0;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 100px 0 40px;
    }
    
    .checkout-progress {
        padding: 0 0.5rem;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-card {
        padding: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .card-header h2 i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-header h2 {
        font-size: 1.3rem;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .payment-method-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-step {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-line {
        width: 25px;
    }

    .card-header {
        padding: 1rem;
    }
}

/* Enhanced Input Placeholder Styling */
.input-with-icon input::placeholder,
.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.input-with-icon input:focus::placeholder,
.form-group input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

/* Payment Card Preview (Visual Enhancement) */
.payment-card-preview {
    position: relative;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    aspect-ratio: 1.586;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.payment-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(102, 126, 234, 0.3) 60deg,
        rgba(240, 147, 251, 0.3) 120deg,
        transparent 180deg
    );
    animation: rotate-gradient 8s linear infinite;
}

.payment-card-preview::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
}

/* Floating Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.security-badge i {
    color: #10b981;
    font-size: 1rem;
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.5));
    }
}
