/* ==========================================================================
   Pricing Page Styles
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Hero Section Enhancements
   ----------------------------------------------------------------------------- */

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f57b2c 0%, #ff9a56 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(8, 15, 68, 0.1);
}

.billing-label {
    font-size: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.billing-label.active {
    color: #080f44;
}

.discount-badge {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: #2f44df;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* -----------------------------------------------------------------------------
   Pricing Tiers Section
   ----------------------------------------------------------------------------- */

.pricing-tiers-section {
    padding: 80px 0 100px;
    background: #f2f4ff;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.pricing-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    margin: 15px 0;
    box-shadow: 0 4px 20px rgba(8, 15, 68, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(8, 15, 68, 0.15);
}

.pricing-card.popular {
    border: 2px solid #f57b2c;
    box-shadow: 0 8px 30px rgba(245, 123, 44, 0.2);
}

.pricing-card.popular:hover {
    box-shadow: 0 16px 50px rgba(245, 123, 44, 0.25);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f57b2c;
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tier-name {
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #080f44;
    margin: 0 0 8px 0;
}

.tier-description {
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    min-height: 42px;
}

.pricing-card-price {
    text-align: center;
    padding: 20px 0;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-display .currency {
    font-size: 28px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #080f44;
}

.price-display .price-monthly,
.price-display .price-annual {
    font-size: 56px;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    color: #080f44;
    line-height: 1;
}

.price-display .period {
    font-size: 18px;
    font-family: "Sora", sans-serif;
    font-weight: 500;
    color: #6b7280;
}

.price-display.custom-price .price-label {
    font-size: 42px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #080f44;
}

.billing-info {
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: #6b7280;
    margin: 8px 0 0 0;
}

.pricing-card-cta {
    padding: 20px 0;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-btn.btn-primary {
    background: #f57b2c;
    color: #fff;
    border: 2px solid #f57b2c;
}

.pricing-btn.btn-primary:hover {
    background: #080f44;
    border-color: #080f44;
}

.pricing-btn.btn-secondary {
    background: #2f44df;
    color: #fff;
    border: 2px solid #2f44df;
}

.pricing-btn.btn-secondary:hover {
    background: #080f44;
    border-color: #080f44;
}

.pricing-btn.btn-outline {
    background: transparent;
    color: #080f44;
    border: 2px solid #080f44;
}

.pricing-btn.btn-outline:hover {
    background: #080f44;
    color: #fff;
}

.pricing-card-features {
    flex-grow: 1;
    padding-top: 16px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    color: #080f44;
    line-height: 1.4;
}

.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon.check {
    color: #10b981;
}

.feature-icon.x {
    color: #9ca3af;
}

.feature-list.not-included {
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 12px;
}

.feature-list.not-included li {
    color: #9ca3af;
}

/* -----------------------------------------------------------------------------
   Feature Comparison Section
   ----------------------------------------------------------------------------- */

.feature-comparison-section {
    padding: 100px 0;
    background: #fff;
}

.feature-comparison-section .heading {
    text-align: center;
    margin-bottom: 50px;
}

.feature-comparison-section h2 {
    font-size: 48px;
    color: #080f44;
    font-family: "Poppins", sans-serif;
    line-height: 66px;
    margin: 0;
    padding: 20px 0 15px 0;
    font-weight: 700;
}

.feature-comparison-section h2 span {
    font-weight: 400;
}

.feature-comparison-section h4 {
    font-size: 18px;
    color: #2f44df;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 28px;
}

.feature-comparison-section h4 img {
    padding: 0 10px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead th {
    position: relative;
}

.comparison-table th {
    background: #080f44;
    color: #fff;
    padding: 20px 16px;
    font-size: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    text-align: center;
}

.comparison-table th:first-child {
    text-align: left;
    border-radius: 8px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 8px 0 0;
}

.comparison-table th.popular {
    background: #f57b2c;
}

.comparison-table .feature-column {
    width: 30%;
}

.comparison-table .tier-column {
    width: 17.5%;
}

.category-header td {
    background: #f2f4ff;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    color: #080f44;
    text-align: left;
}

.category-toggle .toggle-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.category-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.feature-row td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-family: "Sora", sans-serif;
}

.feature-row .feature-name {
    color: #080f44;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-row .feature-value {
    text-align: center;
    color: #080f44;
}

.feature-row .feature-value.popular {
    background: rgba(245, 123, 44, 0.05);
}

.value-icon {
    width: 22px;
    height: 22px;
    margin: 0 auto;
}

.value-icon.check {
    color: #10b981;
}

.value-dash {
    color: #d1d5db;
    font-size: 18px;
}

.value-text {
    font-weight: 500;
}

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.tooltip-trigger svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.tooltip {
    position: absolute;
    z-index: 1000;
    background: #080f44;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: "Sora", sans-serif;
    max-width: 280px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #080f44 transparent transparent transparent;
}

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

/* -----------------------------------------------------------------------------
   Trust Section
   ----------------------------------------------------------------------------- */

.trust-section {
    padding: 60px 0;
    background: #080f44;
}

.trust-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 42px;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-family: "Sora", sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

/* -----------------------------------------------------------------------------
   FAQ Section
   ----------------------------------------------------------------------------- */

.faq-section {
    padding: 100px 0;
    background: #f2f4ff;
}

.faq-section .heading {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 48px;
    color: #080f44;
    font-family: "Poppins", sans-serif;
    line-height: 66px;
    margin: 0;
    padding: 20px 0 15px 0;
    font-weight: 700;
}

.faq-section h2 span {
    font-weight: 400;
}

.faq-section h4 {
    font-size: 18px;
    color: #2f44df;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 28px;
}

.faq-section h4 img {
    padding: 0 10px;
}

.faq-subtitle {
    font-size: 18px;
    font-family: "Sora", sans-serif;
    color: #6b7280;
    margin: 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(8, 15, 68, 0.06);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    color: #080f44;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(47, 68, 223, 0.03);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: #2f44df;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    padding: 0 28px 24px 28px;
    margin: 0;
    font-size: 16px;
    font-family: "Sora", sans-serif;
    color: #4b5563;
    line-height: 1.7;
}

/* -----------------------------------------------------------------------------
   CTA Section
   ----------------------------------------------------------------------------- */

.pricing-cta-section {
    padding: 100px 0;
    background: url(../images/frombg.png) no-repeat;
    background-size: cover;
}

.pricing-cta-section h2 {
    font-size: 48px;
    color: #fff;
    text-align: center;
    font-family: "Poppins", sans-serif;
    line-height: 66px;
    margin: 0;
    padding: 0 0 10px 0;
    font-weight: 700;
}

.pricing-cta-section p {
    font-size: 18px;
    font-family: "Sora", sans-serif;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0 0 30px 0;
    line-height: 34px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-cta-section .getbtn {
    margin: 0;
}

.pricing-cta-section .getbtn2 {
    margin: 0;
    background: #fff;
    color: #080f44;
    border-color: #fff;
}

.pricing-cta-section .getbtn2:hover {
    background: #080f44;
    color: #fff;
    border-color: #080f44;
}

/* -----------------------------------------------------------------------------
   Dark Mode Styles
   ----------------------------------------------------------------------------- */

.dark-mode .pricing-badge {
    background: linear-gradient(135deg, #f57b2c 0%, #ff9a56 100%);
}

.dark-mode .billing-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .billing-label {
    color: rgba(255, 255, 255, 0.6);
}

.dark-mode .billing-label.active {
    color: #fff;
}

.dark-mode .pricing-tiers-section {
    background: #03152e;
}

.dark-mode .pricing-card {
    background: #0d2143;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .pricing-card.popular {
    border-color: #f57b2c;
    box-shadow: 0 8px 30px rgba(245, 123, 44, 0.3);
}

.dark-mode .pricing-card-header {
    border-bottom-color: #1e3a5f;
}

.dark-mode .tier-name {
    color: #fff;
}

.dark-mode .tier-description {
    color: #9ca3af;
}

.dark-mode .price-display .currency,
.dark-mode .price-display .price-monthly,
.dark-mode .price-display .price-annual,
.dark-mode .price-display.custom-price .price-label {
    color: #fff;
}

.dark-mode .price-display .period {
    color: #9ca3af;
}

.dark-mode .billing-info {
    color: #9ca3af;
}

.dark-mode .pricing-btn.btn-outline {
    color: #fff;
    border-color: #fff;
}

.dark-mode .pricing-btn.btn-outline:hover {
    background: #fff;
    color: #080f44;
}

.dark-mode .feature-list li {
    color: #e5e7eb;
}

.dark-mode .feature-list.not-included {
    border-top-color: #1e3a5f;
}

.dark-mode .feature-comparison-section {
    background: #000;
}

.dark-mode .feature-comparison-section h2 {
    color: #fff;
}

.dark-mode .feature-comparison-section h4 {
    color: #7b8fff;
}

.dark-mode .comparison-table th {
    background: #1e3a5f;
}

.dark-mode .comparison-table th.popular {
    background: #f57b2c;
}

.dark-mode .category-header td {
    background: #0d2143;
    border-top-color: #1e3a5f;
}

.dark-mode .category-toggle {
    color: #fff;
}

.dark-mode .category-toggle .toggle-icon {
    color: #9ca3af;
}

.dark-mode .feature-row td {
    border-bottom-color: #1e3a5f;
}

.dark-mode .feature-row .feature-name {
    color: #e5e7eb;
}

.dark-mode .feature-row .feature-value {
    color: #e5e7eb;
}

.dark-mode .feature-row .feature-value.popular {
    background: rgba(245, 123, 44, 0.1);
}

.dark-mode .value-dash {
    color: #4b5563;
}

.dark-mode .tooltip-trigger svg {
    color: #6b7280;
}

.dark-mode .faq-section {
    background: #03152e;
}

.dark-mode .faq-section h2 {
    color: #fff;
}

.dark-mode .faq-section h4 {
    color: #7b8fff;
}

.dark-mode .faq-subtitle {
    color: #9ca3af;
}

.dark-mode .faq-item {
    background: #0d2143;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .faq-question {
    color: #fff;
}

.dark-mode .faq-question:hover {
    background: rgba(123, 143, 255, 0.05);
}

.dark-mode .faq-icon {
    color: #7b8fff;
}

.dark-mode .faq-answer p {
    color: #c5c7d0;
}

/* -----------------------------------------------------------------------------
   Responsive Styles
   ----------------------------------------------------------------------------- */

@media only screen and (max-width: 1200px) {
    .pricing-grid .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media only screen and (max-width: 992px) {
    .trust-stats {
        gap: 40px;
    }

    .stat-value {
        font-size: 36px;
    }
}

@media only screen and (max-width: 768px) {
    .pricing-badge {
        font-size: 14px;
        padding: 8px 18px;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .billing-label {
        font-size: 14px;
    }

    .discount-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .pricing-tiers-section {
        padding: 50px 0 60px;
    }

    .pricing-grid .col-lg-3,
    .pricing-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pricing-card {
        margin: 10px 0;
    }

    .price-display .price-monthly,
    .price-display .price-annual {
        font-size: 48px;
    }

    .feature-comparison-section {
        padding: 50px 0;
    }

    .feature-comparison-section h2,
    .faq-section h2,
    .pricing-cta-section h2 {
        font-size: 26px;
        line-height: 38px;
        padding: 12px 0;
    }

    .feature-comparison-section h4,
    .faq-section h4 {
        font-size: 13px;
    }

    .feature-comparison-section h4 img,
    .faq-section h4 img {
        display: none;
    }

    .comparison-table {
        min-width: 700px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .trust-section {
        padding: 40px 0;
    }

    .trust-stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

    .faq-section {
        padding: 50px 0;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-answer p {
        padding: 0 20px 20px 20px;
        font-size: 15px;
    }

    .pricing-cta-section {
        padding: 50px 0;
    }

    .pricing-cta-section .getbtn,
    .pricing-cta-section .getbtn2 {
        width: 100%;
        margin: 10px 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0;
    }
}

@media only screen and (max-width: 480px) {
    .price-display .price-monthly,
    .price-display .price-annual {
        font-size: 42px;
    }

    .price-display .currency {
        font-size: 24px;
    }

    .tier-name {
        font-size: 22px;
    }
}
