/**
 * Pricing Page - Modern SaaS with glassmorphism
 * Full width, interactive, animated
 */

.pricing-page {
    min-height: 100vh;
    padding-top: calc(90px + 2rem);
    padding-bottom: 4rem;
    position: relative;
    overflow-x: hidden;
}

html.has-guest-top-banner .pricing-page {
    padding-top: calc(124px + 2rem);
}

/* Ambient background */
.pricing-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.pricing-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(99, 102, 241, 0.06), transparent),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.pricing-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero */
.pricing-hero {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 0 var(--spacing-md, 1rem);
}

.pricing-hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color, #6366f1);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInDown 0.6s ease-out;
}

.pricing-hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.pricing-hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Animated Toggle */
.pricing-toggle-wrapper {
    margin-top: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.pricing-toggle {
    position: relative;
    display: inline-flex;
    padding: 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-toggle-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pricing-toggle-btn:hover {
    color: #475569;
}

.pricing-toggle-btn.active {
    color: #fff;
}

.pricing-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-toggle-icon svg {
    width: 20px;
    height: 20px;
}

.pricing-toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, var(--primary-color, #6366f1), #8b5cf6);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pricing-toggle.mentor-active .pricing-toggle-slider {
    transform: translateX(calc(100% + 6px));
}

/* Content panels */
.pricing-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 var(--spacing-xl, 2rem);
    width: 100%;
    min-height: 480px;
}

.pricing-content {
    overflow: hidden;
}

.pricing-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl, 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pricing-panel.active {
    position: relative;
    margin: 0 auto;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Slide animations */
.pricing-panel.slide-out-left {
    visibility: visible;
    animation: slideOutLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-panel.slide-in-right {
    visibility: visible;
    animation: slideInRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-panel.slide-out-right {
    visibility: visible;
    animation: slideOutRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-panel.slide-in-left {
    visibility: visible;
    animation: slideInLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Pricing highlight (fees / earnings) - glassmorphism */
.pricing-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
}

.pricing-highlight-earnings {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.25);
}

.pricing-highlight-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-highlight-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color, #6366f1);
}

.pricing-highlight-earnings .pricing-highlight-value {
    color: #16a34a;
}

.pricing-highlight-note {
    font-size: 0.75rem;
    color: #64748b;
}

.pricing-example {
    font-size: 0.95rem;
    color: #475569;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pricing-example strong {
    color: #16a34a;
}

/* Glassmorphism card - modern */
.pricing-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 2px 4px rgba(99, 102, 241, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card-mentor {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(248, 250, 252, 0.5) 100%);
    border-color: rgba(15, 23, 42, 0.08);
}

.pricing-card-mentor:hover {
    border-color: rgba(15, 23, 42, 0.15);
}

.pricing-card-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.pricing-card-mentor .pricing-card-glow {
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.06) 0%, transparent 60%);
}

.pricing-card-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.pricing-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.pricing-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color, #6366f1);
}

.pricing-card-mentor .pricing-card-icon {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(51, 65, 85, 0.06) 100%);
    border-color: rgba(15, 23, 42, 0.12);
}

.pricing-card-mentor .pricing-card-icon svg {
    color: #334155;
}

.pricing-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #6366f1);
    margin: 0;
}

.pricing-card-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.pricing-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pricing-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.pricing-card:hover .pricing-benefits li {
    color: #334155;
}

.pricing-benefits .check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
}

.pricing-card-close {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pricing-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color, #6366f1), #8b5cf6);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.pricing-card-cta:hover {
    transform: translateY(-4px);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.pricing-card-mentor .pricing-card-cta,
.pricing-card-mentors .pricing-card-cta {
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.pricing-card-mentor .pricing-card-cta:hover,
.pricing-card-mentors .pricing-card-cta:hover {
    transform: translateY(-4px);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

/* CTA section */
.pricing-cta {
    text-align: center;
    padding: 2rem var(--spacing-md);
}

.btn-pricing-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #6366f1), #8b5cf6);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-pricing-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .pricing-page {
        padding-top: calc(58px + 1rem);
    }

    html.has-guest-top-banner .pricing-page {
        padding-top: calc(88px + 1rem);
    }

    .pricing-content {
        max-width: 100%;
        padding: 0 var(--spacing-sm, 0.75rem);
        min-height: 0;
    }

    .pricing-panel {
        max-width: 100%;
        padding: 0;
    }

    .pricing-panel.active {
        margin: 0;
    }

    .pricing-card,
    .pricing-card-single {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .pricing-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .pricing-toggle-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .pricing-card,
    .pricing-card-single {
        width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .pricing-hero-title {
        font-size: 2rem;
    }
}
