:root {
    --bs-primary: #2d60ff;
    --bs-success: #20c997;
    --bs-warning: #ffc107;
    --bs-dark: #1a1d53;
    --bs-light-blue: #f8f9ff;
}

/* Background Styles */
.pricing-hero-bg {
    background: linear-gradient(90deg, rgba(13, 1, 1, 0.97) 0%, rgba(248, 249, 255, 0.10) 100%),
    url('/static/images/backgrounds/bg-woman1.jpg') no-repeat center center;
    background-size: cover;
}

.comparison-bg {
    background: var(--bs-light-blue);
}

.why-us-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.faq-section {
    background: #ffffff;
}

.final-cta-bg {
    background: linear-gradient(90deg, rgba(26, 29, 83, 0.9) 0%, rgba(45, 96, 255, 0.8) 100%),
    url('/static/images/backgrounds/person-scanning2.jpg') no-repeat center center;
    background-size: cover;
}

/* Pricing Card Styles */
.pricing-tier {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: white;
    height: 100%;
}


.pricing-tier:hover, .pricing-tier.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.pricing-tier.featured {
    border-color: var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(45, 96, 255, 0.15);
    z-index: 1;
}

.pricing-tier.featured:before {
    content: "MOST POPULAR";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-bottom-left-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.toggle-container {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    display: inline-flex;
    border: 2px solid #e9ecef;
    margin-bottom: 1rem;
}

.toggle-btn {
    padding: 0.75rem 2.5rem;
    border-radius: 25px;
    border: none;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-btn.active {
    background: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 96, 255, 0.2);
}

/* Price Display */
.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.savings-badge {
    background: linear-gradient(135deg, #20c997 0%, #0daa7a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.per-month {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Why Choose Us Section */
.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    padding: 1.5rem;
    font-weight: 600;
    border: none;
    background: white;
    color: var(--bs-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--bs-light-blue);
    color: var(--bs-primary);
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    color: #666;
    background: white;
}

/* ============= NordVPN Style Comparison Table ============= */
.comparison-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Header - Fixed alignment */
.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background: var(--bs-dark);
    color: white;
    align-items: stretch;
    min-height: 200px;
}

.header-feature-column {
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.header-plan-column {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header-plan-column.featured-header {
    background: linear-gradient(135deg, rgba(45, 96, 255, 0.1) 0%, rgba(45, 96, 255, 0.05) 100%);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.most-popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bs-primary);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.plan-title-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.price-header {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    margin-bottom: 0.25rem;
}

.price-header span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.billing-header {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Table Body */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.comparison-table tr:hover {
    background-color: rgba(187, 189, 195, 0.15);
}

/* Category Rows */
.category-row {
    background: rgba(26, 29, 83, 0.05);
}

.category-cell {
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1rem;
    text-align: left;
    border: none;
}

/* Feature Rows - Perfect alignment */
.feature-name-cell {
    padding: 1.25rem 2rem;
    text-align: left;
    min-width: 300px;
    border: none;
    vertical-align: middle;
}

.feature-name-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px; /* Exact height for alignment */
}

.feature-text {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-info-btn {
    background: none;
    border: none;
    color: var(--bs-primary);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Feature Check Cells - Only icons, perfect alignment */
.feature-check i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Button alignment fix */
.header-plan-column .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: 140px; /* Fixed width for alignment */
    margin-top: auto; /* Push to bottom */
}

/* Benefit Cards Update */

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-icon:hover {
    transform: translateY(-5px);
}

.benefit-icon i {
    font-size: 1.5rem;
}

/* Color-specific styles */
.benefit-icon.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.benefit-icon.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.benefit-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.benefit-icon.bg-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.benefit-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.benefit-icon.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.benefit-icon.bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

/* Tooltip Customization */
.tooltip {
    --bs-tooltip-bg: var(--bs-dark);
    --bs-tooltip-color: white;
    --bs-tooltip-font-size: 0.875rem;
}

.tooltip-inner {
    max-width: 250px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: left;
    line-height: 1.4;
}

/* Responsive for comparison table */
@media (max-width: 1200px) {
    .comparison-table-container {
        overflow-x: auto;
    }

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

    .feature-name-cell {
        position: sticky;
        left: 0;
        background: white;
        z-index: 5;
    }

    .comparison-table tr:hover .feature-name-cell {
        background-color: rgba(187, 189, 195, 0.15);
    }

    .category-cell {
        position: sticky;
        left: 0;
        background: rgba(26, 29, 83, 0.05);
        z-index: 5;
    }
}

@media (max-width: 768px) {
    .header-feature-column,
    .header-plan-column {
        padding: 1.5rem;
    }

    .price-header {
        font-size: 2rem;
    }

    .feature-name-cell,
    .feature-check-cell {
        padding: 1rem 1.5rem;
    }

    .category-cell {
        padding: 0.75rem 1.5rem;
    }

    .header-plan-column .btn {
        width: 120px;
        padding: 0.5rem 1rem;
    }
}



/* ============= MOBILE RESPONSIVE STYLES ============= */

/* Prevent zooming on mobile */
html, body {
    touch-action: manipulation;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    /* Adjust hero section */
    .pricing-hero-bg {
        padding: 3rem 0 !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Pricing plans - stack vertically on mobile */
    .col-lg-3, .col-lg-12, .col-lg-10 {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    /* Remove featured plan scaling on mobile */
    .pricing-tier.featured {
        transform: scale(1) !important;
        margin: 1rem 0 !important;
    }

    .pricing-tier.featured:before {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    /* Adjust pricing card padding */
    .pricing-tier .p-4 {
        padding: 1.5rem !important;
    }

    /* Price display font size */
    .price-display {
        font-size: 2.5rem !important;
    }

    /* Toggle buttons - make them full width */
    .toggle-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .toggle-btn {
        padding: 0.75rem 1.5rem;
        flex: 1;
        font-size: 0.85rem;
    }

    /* Feature list - adjust spacing */
    .pricing-tier ul li {
        margin-bottom: 0.75rem !important;
        font-size: 0.9rem;
    }

    .pricing-tier ul li i {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    /* Add-ons section */
    .col-md-6, .col-lg-4 {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    /* Enterprise card */
    .enterprise-card .d-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .enterprise-card .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* Why Choose Section */
    .col-md-6, .col-lg-3 {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem !important;
    }

    /* FAQ Section */
    .accordion-button {
        padding: 1rem !important;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem !important;
        font-size: 0.9rem;
    }

    /* Final CTA */
    .final-cta-bg .row {
        flex-direction: column;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Remove display classes on mobile */
    .display-7 {
        font-size: 1.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Smaller font sizes */
    h1.display-6 {
        font-size: 1.5rem !important;
    }

    h2.display-7 {
        font-size: 1.35rem !important;
    }

    .price-display {
        font-size: 2rem !important;
    }

    /* Compact pricing cards */
    .pricing-tier .p-4 {
        padding: 1rem !important;
    }

    /* More compact feature lists */
    .pricing-tier ul li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
        line-height: 1.4;
    }

    /* Button adjustments */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Hero section adjustments */
    .pricing-hero-bg {
        padding: 2rem 0 !important;
    }

    /* Toggle container */
    .toggle-container {
        width: 90%;
    }

    .toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 992px) {
    .col-lg-3 {
        width: 50% !important;
        float: left;
    }

    /* Clearfix for tablet */
    .row.g-4::after {
        content: "";
        clear: both;
        display: table;
    }

    .pricing-tier.featured {
        transform: scale(1.02);
    }
}

/* Ensure proper spacing between stacked elements */
@media (max-width: 992px) {
    section.py-7 {
        padding: 3rem 0 !important;
    }

    .mb-6 {
        margin-bottom: 2rem !important;
    }
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6,
p, span, div, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Improve button tap targets on mobile */
.btn {
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------------*/
/* Mobile Accordion Styles */
.price-display-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.25rem 0;
}

.pricing-tier-mobile {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.pricing-tier-mobile.featured {
    border-color: var(--bs-primary);
}

.accordion-button {
    background: white;
    color: var(--bs-dark);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: #f8f9ff;
    color: var(--bs-dark);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(45, 96, 255, 0.25);
}

/* Hide desktop grid on mobile and mobile accordion on desktop */
@media (max-width: 991px) {
    .d-lg-block {
        display: none !important;
    }

    .d-lg-none {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }
}

/* Mobile accordion item styling */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

/* Ensure accordion body has proper padding */
.accordion-body {
    padding: 0 !important;
}

/* Mobile-specific adjustments for accordion */
@media (max-width: 768px) {
    .price-display-mobile {
        font-size: 1.25rem;
    }

    .accordion-button {
        padding: 1rem 1.25rem;
    }

    .pricing-tier-mobile .p-4 {
        padding: 1.5rem !important;
    }
}