/* Pricing Page Styles - Cyberpunk Theme */
.pricing-page {
    background: var(--cyber-bg, #14141e);
    color: var(--cyber-text, rgba(255, 255, 255, 0.95));
    min-height: 100vh;
}

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

/* Header Section */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyber-accent, #aaff00);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.pricing-title .highlight {
    background: linear-gradient(135deg, var(--cyber-accent, #aaff00), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Billing Period Switcher */
.pricing-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.switcher-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.switcher-section {
    display: flex;
    align-items: center;
}

.switcher-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    transition: color 0.3s ease;
}

.switcher-title.active {
    color: var(--cyber-accent, #aaff00);
}

.switcher-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.switcher-toggle.active {
    background: var(--cyber-accent, #aaff00);
}

.switcher-button {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switcher-toggle.active .switcher-button {
    transform: translateX(28px);
}

/* Pricing Plans Grid */
.pricing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.pricing-plan-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(170, 255, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(170, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-self: stretch;
}


.pricing-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-accent, #aaff00) 20%, 
        #00ff88 50%, 
        var(--cyber-accent, #aaff00) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 20px rgba(170, 255, 0, 0.6);
}

.pricing-plan-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 120%;
    max-height: 120%;
    background: radial-gradient(circle, rgba(170, 255, 0, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.pricing-plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyber-accent, #aaff00);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(170, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    z-index: 10;
}

.pricing-plan-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 30px rgba(170, 255, 0, 0.8);
}

.pricing-plan-card:hover::after {
    opacity: 1;
}

.pricing-plan-card.popular {
    border-color: var(--cyber-accent, #aaff00);
    border-width: 2px;
    box-shadow: 
        0 0 40px rgba(170, 255, 0, 0.5),
        0 0 80px rgba(170, 255, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(20, 30, 20, 0.9) 0%, rgba(10, 20, 10, 0.95) 100%);
}

.pricing-plan-card.popular::before {
    opacity: 1;
    box-shadow: 0 0 25px rgba(170, 255, 0, 0.8);
}

.pricing-plan-card.popular:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(170, 255, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--cyber-accent, #aaff00) 0%, #00ff88 100%);
    color: #14141e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 
        0 4px 15px rgba(170, 255, 0, 0.5),
        0 0 20px rgba(170, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 10;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(170, 255, 0, 0.5),
            0 0 20px rgba(170, 255, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(170, 255, 0, 0.7),
            0 0 30px rgba(170, 255, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Plan Header */
.plan-header {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.plan-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(170, 255, 0, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-subtitle {
    font-size: 0.95rem;
    color: var(--cyber-accent, #aaff00);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(170, 255, 0, 0.4);
}

.plan-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.75rem 0 0 0;
    line-height: 1.6;
    padding: 0.75rem;
    background: rgba(170, 255, 0, 0.05);
    border-left: 3px solid rgba(170, 255, 0, 0.3);
    border-radius: 6px;
}

/* Plan Price */
.plan-price {
    margin-bottom: 2rem;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.price-prefix {
    font-size: 1.5rem;
    color: var(--cyber-accent, #aaff00);
}

.price-integer {
    color: #ffffff;
}

.price-duration {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Plan Divider */
.plan-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2rem 0;
}

/* Plan Features Wrapper */
.plan-features-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 0;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    min-height: 0;
    overflow: visible;
    position: relative;
    width: 100%;
}

/* Separator for expanded features */
.features-separator {
    display: block;
    list-style: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(170, 255, 0, 0.25), transparent);
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.features-separator.visible {
    opacity: 1;
    max-height: 10px;
    margin: 0.75rem 0;
}

.feature-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    min-height: 0 !important;
}

.feature-item.feature-hidden.show {
    opacity: 1 !important;
    max-height: 1000px !important;
    margin-bottom: 0.875rem !important;
    padding: 1rem 1.125rem !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    min-height: 3rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.875rem !important;
    animation: featureSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(170, 255, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 3rem;
}

.feature-item:hover {
    background: rgba(20, 25, 30, 0.9);
    border-color: rgba(170, 255, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 8px rgba(170, 255, 0, 0.15);
    transform: translateY(-2px);
}

/* Expanded features inherit all styles from .feature-item automatically */


.feature-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    color: var(--cyber-accent, #aaff00);
    filter: drop-shadow(0 0 6px rgba(170, 255, 0, 0.6));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item:hover .feature-icon {
    filter: drop-shadow(0 0 10px rgba(170, 255, 0, 0.8));
    transform: scale(1.05);
}

.feature-icon svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block;
}

.feature-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.3s ease;
    flex: 1;
}

.feature-item:hover .feature-text {
    color: rgba(255, 255, 255, 1);
}

.feature-item.feature-hidden.show .feature-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-item.feature-hidden.show .feature-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    flex: 1;
    display: block;
}

/* Expand Features Button */
.expand-features-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0 0;
    background: transparent;
    border: 1px solid rgba(170, 255, 0, 0.3);
    border-radius: 8px;
    color: var(--cyber-accent, #aaff00);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.expand-features-btn:hover {
    background: rgba(170, 255, 0, 0.1);
    border-color: var(--cyber-accent, #aaff00);
    box-shadow: 0 0 12px rgba(170, 255, 0, 0.2);
    transform: translateY(-1px);
}


.expand-features-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.expand-features-btn.expanded .expand-icon {
    display: none;
}

.expand-features-btn.expanded .collapse-icon {
    display: block !important;
}

.expand-features-btn:not(.expanded) .collapse-icon {
    display: none !important;
}

.expand-features-btn:not(.expanded) .expand-icon {
    display: block;
}

/* Plan Footer */
.plan-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 1.5rem;
}

.plan-button {
    display: block;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--cyber-accent, #aaff00) 0%, #88cc00 100%);
    border: 2px solid var(--cyber-accent, #aaff00);
    border-radius: 12px;
    color: #14141e;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(170, 255, 0, 0.4),
        0 0 30px rgba(170, 255, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-button::before {
    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;
}

.plan-button:hover::before {
    left: 100%;
}

.plan-button:hover {
    background: linear-gradient(135deg, #88cc00 0%, var(--cyber-accent, #aaff00) 100%);
    border-color: var(--cyber-accent, #aaff00);
    color: #14141e;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(170, 255, 0, 0.6),
        0 0 50px rgba(170, 255, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button-text {
    display: inline-block;
}

/* No Plans Message */
.no-plans {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Pricing Detail Page */
.pricing-detail-page {
    background: var(--cyber-bg, #14141e);
    color: var(--cyber-text, rgba(255, 255, 255, 0.95));
    min-height: 100vh;
}

.pricing-detail-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyber-accent, #aaff00);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #ffffff;
    gap: 0.75rem;
}

.back-arrow {
    display: flex;
    align-items: center;
}

.back-arrow svg {
    width: 20px;
    height: 20px;
}

.pricing-plan-detail {
    max-width: 800px;
    margin: 0 auto;
}

.plan-detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
}

.plan-detail-card.popular {
    border-color: var(--cyber-accent, #aaff00);
    box-shadow: 0 0 30px rgba(170, 255, 0, 0.3);
}

.plan-description {
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.plan-features-section {
    margin-top: 2rem;
}

.features-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 2rem 1rem;
    }

    .pricing-title {
        font-size: 2.5rem;
    }

    .pricing-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-plan-card {
        padding: 1.75rem;
    }

    .plan-detail-card {
        padding: 2rem;
    }

    .plan-header {
        margin-bottom: 1.25rem;
    }

    .plan-description {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .feature-item {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .expand-features-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}
