/* Premium Pricing Styles - Higgsfield Inspired */

/* 1. Enhanced Pricing Cards */
.pricing-card {
    position: relative;
    overflow: visible; /* IMPORTANT: Allow badge to show outside */
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 28px;
    margin-top: 20px; /* Space for badge */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-12px) !important;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.6), 
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(139, 92, 246, 0.1);
}

/* Highlighted/Popular Card */
.pricing-card.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    transform: scale(1.03);
}

.pricing-card.highlight:hover {
    transform: scale(1.06) translateY(-8px) !important;
}

/* 2. Shine Effect on Highlight Card */
.pricing-card.highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: shine 5s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    0% { transform: translateX(0%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* 3. Typography & Pricing */
.pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.pricing-price {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-compare {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #34d399;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.price-compare s {
    color: #94a3b8;
    font-weight: 400;
}

/* 4. Badges */
.popular-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 99px;
    color: white;
}

.lifetime-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 99px;
    color: white;
    white-space: nowrap;
}

.save-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 5. Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}

/* 6. Toggle Switch */
.pricing-toggle {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
}

.pricing-label {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-label:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-label.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.2);
    font-weight: 600;
}

/* Pricing Category Headers */
.pricing-category {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-category-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.lifetime-category .pricing-category-title {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    animation: goldShine 3s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Lifetime Card Styles - ULTRA PREMIUM */
.lifetime-card {
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    background: linear-gradient(180deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(245, 158, 11, 0.02) 50%,
        var(--bg-secondary) 100%) !important;
    position: relative;
    overflow: visible !important;
    margin-top: 24px !important; /* More space for the badge */
}

/* Shimmer effect on lifetime cards - using inner div instead */
.lifetime-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 158, 11, 0.1),
        transparent
    );
    animation: cardShimmer 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

.lifetime-card .card-header {
    position: relative;
    overflow: hidden;
}

@keyframes cardShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.lifetime-card:hover {
    border-color: rgba(245, 158, 11, 0.8) !important;
    box-shadow:
        0 20px 50px rgba(245, 158, 11, 0.25),
        0 0 40px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-8px) scale(1.02);
}

/* Lifetime badge - PREMIUM STYLE */
.lifetime-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% 100%;
    animation: badgeShine 2s linear infinite;
    box-shadow:
        0 4px 15px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 10px 24px;
    border: none;
    z-index: 10;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 99px;
    color: #1a1a2e;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

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

/* Lifetime card price styling */
.lifetime-card .price {
    color: #fbbf24 !important;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Lifetime card features checkmarks */
.lifetime-card .features-list li::before {
    content: "✓";
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Trust indicators for lifetime */
.lifetime-card .price-compare {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

/* Lifetime Plans Grid - 2 columns centered */
#lifetime-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 750px;
    margin: 0 auto;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    #lifetime-plans {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Lifetime category section styling */
.lifetime-category {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.lifetime-category .pricing-category-subtitle {
    color: #fbbf24;
    font-weight: 500;
}

.toggle-switch {
    width: 56px;
    height: 30px;
}

.toggle-slider {
    background-color: #334155;
}

.toggle-slider:before {
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* 7. Buttons */
.pricing-card .btn {
    width: 100%;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.pricing-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.pricing-card .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.pricing-card .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.5);
}

/* 8. Security Badge */
.security-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-note::before {
    content: "🔒";
}

/* 9. Grid Spacing */
.pricing-grid {
    gap: 32px;
    max-width: 1100px;
}
