/* Pricing Page Styles */

/* Pricing Hero */
.pricing-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.pricing-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Pricing Toggle */
.pricing-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    margin: 40px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.toggle-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-badge {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 36px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-color);
    transition: .4s;
    border-radius: 36px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(34px);
}

.toggle-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Pricing Plans */
.pricing-plans {
    padding: 100px 0;
    background-color: var(--light-color);
}

body.dark-mode .pricing-plans {
    background-color: #0f172a;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.dark-mode .plan-card {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-card.enterprise {
    border-color: var(--secondary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

body.dark-mode .plan-header h3 {
    color: white;
}

.plan-description {
    color: var(--gray-color);
    font-size: 1rem;
    margin: 0;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

body.dark-mode .price-amount {
    color: #60a5fa;
}

.price-period {
    font-size: 1.1rem;
    color: var(--gray-color);
    display: block;
    margin-top: 5px;
}

.plan-savings {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

body.dark-mode .plan-savings {
    background: rgba(16, 185, 129, 0.2);
}

.savings-amount {
    font-weight: 700;
}

.plan-features {
    flex: 1;
    margin-bottom: 30px;
}

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

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dark-color);
}

body.dark-mode .plan-features li {
    color: #e2e8f0;
}

.plan-features li i {
    margin-top: 3px;
    flex-shrink: 0;
}

.plan-features li i.fa-check {
    color: var(--success-color);
}

.plan-features li i.fa-times {
    color: var(--danger-color);
}

.plan-features .disabled {
    color: var(--gray-color);
    text-decoration: line-through;
}

.plan-action {
    margin-top: auto;
}

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.plan-note {
    text-align: center;
    padding: 20px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

body.dark-mode .plan-note {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.plan-note p {
    margin: 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.dark-mode .plan-note p {
    color: #e2e8f0;
}

.plan-note i {
    color: var(--primary-color);
}

/* Comparison Table */
.comparison-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-mode .comparison-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

body.dark-mode .section-header h2 {
    color: white;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

body.dark-mode .comparison-table {
    background: var(--gray-light);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th:first-child {
    text-align: left;
    width: 30%;
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark-color);
    font-weight: 500;
}

body.dark-mode .comparison-table td {
    color: #e2e8f0;
    border-color: var(--gray-dark);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.05);
}

body.dark-mode .comparison-table td:first-child {
    background: rgba(37, 99, 235, 0.1);
}

.comparison-table tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

body.dark-mode .comparison-table tr:hover {
    background: rgba(37, 99, 235, 0.1);
}

.comparison-table i.fa-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: var(--danger-color);
    font-size: 1.2rem;
}

/* Payment Methods */
.payment-methods {
    padding: 100px 0;
    background-color: var(--light-color);
}

body.dark-mode .payment-methods {
    background-color: #0f172a;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.payment-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

body.dark-mode .payment-card {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.payment-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.payment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

body.dark-mode .payment-card h3 {
    color: white;
}

.payment-card p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

.payment-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.payment-features i {
    color: var(--primary-color);
}

/* FAQ Section */
.pricing-faq {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-mode .pricing-faq {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: rgba(37, 99, 235, 0.05);
}

body.dark-mode .faq-item.active .faq-question {
    background: rgba(37, 99, 235, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark-color);
    font-weight: 600;
}

body.dark-mode .faq-question h3 {
    color: white;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 30px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.7;
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

body.dark-mode .faq-cta {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.faq-cta p {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

body.dark-mode .faq-cta p {
    color: #e2e8f0;
}

.faq-cta a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.faq-cta a:hover {
    text-decoration: underline;
}

/* CTA Section */
.pricing-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.pricing-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pricing-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.pricing-cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.pricing-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.pricing-cta .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.pricing-cta .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .plan-card.popular {
        transform: scale(1);
    }

    .plan-card.popular:hover {
        transform: scale(1) translateY(-10px);
    }
}

@media (max-width: 992px) {
    .pricing-hero h1 {
        font-size: 2.8rem;
    }

    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-card.popular {
        order: -1;
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 140px 0 60px;
    }

    .pricing-hero h1 {
        font-size: 2.2rem;
    }

    .pricing-hero p {
        font-size: 1.1rem;
    }

    .pricing-toggle {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .plans-container {
        grid-template-columns: 1fr;
    }

    .plan-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 3rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .pricing-cta h2 {
        font-size: 2rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .pricing-hero h1 {
        font-size: 1.8rem;
    }

    .toggle-container {
        flex-direction: column;
        gap: 15px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .plan-card {
        padding: 30px 20px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.plan-card:nth-child(1) {
    animation-delay: 0.1s;
}

.plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.plan-card:nth-child(3) {
    animation-delay: 0.3s;
}

.plan-card:nth-child(4) {
    animation-delay: 0.4s;
}

.payment-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.payment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.payment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.payment-card:nth-child(3) {
    animation-delay: 0.3s;
}

.payment-card:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.5s;
}

.faq-item:nth-child(6) {
    animation-delay: 0.6s;
}