/* Dynamic Billing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 2.5rem 0 4rem;
    position: relative;
    z-index: 5;
}

.pricing-toggle-btn {
    width: 64px;
    height: 34px;
    background: rgba(255, 90, 0, 0.15);
    border: 2px solid rgba(255, 90, 0, 0.25);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 300ms ease;
}

.pricing-toggle-btn.active {
    background: rgba(217, 70, 239, 0.15);
    border-color: rgba(217, 70, 239, 0.3);
}

.toggle-slider {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    box-shadow: 0 4px 10px rgba(255, 90, 0, 0.35);
    transition: left 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms ease, box-shadow 300ms ease;
}

.pricing-toggle-btn.active .toggle-slider {
    left: 32px;
    background: var(--gradient-primary-full);
    box-shadow: 0 4px 10px rgba(217, 70, 239, 0.35);
}

.toggle-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 300ms ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label.active {
    color: var(--text-dark);
}

.savings-pill {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(255, 90, 0, 0.1) 100%);
    border: 1px solid rgba(217, 70, 239, 0.25);
    color: var(--accent-cyber-dark);
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: scalePulse 2s infinite ease-in-out;
}

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

/* Pricing Grid */
.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    border-radius: 24px 24px 0 0;
    transition: background 300ms ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 90, 0, 0.2);
}

.pricing-card:hover::before {
    background: var(--gradient-primary);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #FF5A00 0%, #D84200 100%);
    border: none;
    box-shadow: var(--shadow-xl), 0 20px 50px rgba(255, 90, 0, 0.25);
}

.pricing-card.featured::before {
    display: none;
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-2xl), 0 25px 60px rgba(255, 90, 0, 0.35);
    transform: translateY(-8px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 90, 0, 0.08);
    position: relative;
}

.pricing-card.featured .pricing-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.pricing-card.featured .pricing-header h3 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.price-currency {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-right: 0.15rem;
}

.pricing-card.featured .price-currency {
    color: #ffffff;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    transition: all 150ms ease;
}

.pricing-card.featured .price-value {
    color: #ffffff;
}

.price-period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 0.25rem;
    white-space: nowrap;
}

.pricing-card.featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.billing-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.25rem;
    min-height: 1.2rem;
    transition: all 150ms ease;
}

.pricing-card.featured .billing-detail {
    color: rgba(255, 255, 255, 0.75);
}

.member-limit {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
}

.pricing-card.featured .member-limit {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.plan-includes {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.pricing-card.featured .plan-includes {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-features li.included i {
    color: var(--accent-green);
    font-size: 1rem;
}

.pricing-card.featured .pricing-features li.included i {
    color: #86EFAC;
}

.pricing-features li.not-included {
    color: var(--text-light);
}

.pricing-features li.not-included i {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.6;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.4rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.25);
    white-space: nowrap;
    z-index: 10;
}

/* Dynamic Annual Savings Banner Redesign */
.annual-savings-banner {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.annual-savings-banner.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.banner-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary-full);
}

.savings-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(255, 90, 0, 0.1) 100%);
    border: 1px solid rgba(217, 70, 239, 0.2);
    color: var(--accent-cyber-dark);
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.savings-plan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.savings-plan-item .plan-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-plan-item .plan-saving-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.savings-plan-item .plan-saved-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green-dark);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.savings-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 90, 0, 0.15);
}

.banner-footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Comparison Table Styling Redesign */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    transition: all 250ms ease;
}

.comparison-table th {
    background: var(--bg-dark);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table th small {
    display: block;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.comparison-table th.featured-col {
    background: var(--primary);
    position: relative;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 2rem;
}

.comparison-table td.featured-col {
    background: rgba(255, 90, 0, 0.02);
    font-weight: 600;
}

.comparison-table .text-success {
    color: var(--accent-green);
    font-size: 1.15rem;
}

.comparison-table .text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comparison-table tbody tr {
    transition: background 200ms ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 90, 0, 0.02);
}

.comparison-table tbody tr:hover td {
    color: var(--text-dark);
}

.comparison-table tbody tr:hover td.featured-col {
    background: rgba(255, 90, 0, 0.05);
}

/* Contact Pricing Box Redesign */
.contact-pricing-redesign {
    margin-top: 4rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-pricing-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.pricing-questions-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .pricing-questions-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.icon-blob {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 90, 0, 0.1) 0%, rgba(255, 90, 0, 0.02) 100%);
    border: 1px solid rgba(255, 90, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.questions-content {
    flex-grow: 1;
}

.questions-content h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.questions-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.questions-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .questions-actions {
        flex-direction: column;
        width: 100%;
    }
    .questions-actions .btn {
        width: 100%;
    }
}

/* FAQ System Accordion Custom */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 90, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(255, 90, 0, 0.08);
    border-color: rgba(255, 90, 0, 0.2);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 90, 0, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    gap: 1.25rem;
}

.faq-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 90, 0, 0.1) 0%, rgba(255, 90, 0, 0.02) 100%);
    border: 1px solid rgba(255, 90, 0, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.faq-question h4 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.faq-toggle i {
    color: var(--primary);
    font-size: 0.85rem;
    transition: transform 300ms ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
}

.faq-item.active .faq-toggle i {
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-answer p {
    padding: 0 2rem 1.75rem 5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
}

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

@media (max-width: 1024px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .savings-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
}
