/* Modern Pricing Cards - Dynamic TrueCost Integration */

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

.pricing-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Pricing Cards Container */
#pricing-cards-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
}

#pricing-cards-container > div {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 300px;
}

@media (max-width: 991px) {
    #pricing-cards-container > div {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    #pricing-cards-container > div {
        flex: 0 1 100%;
    }
}

/* Pricing Card Base Styles */
.pricing-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    position: relative !important;
    border: 2px solid #f0f0f0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.pricing-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Popular Card - Growth Plan */
.pricing-card.popular {
    border: 3px solid #0d6efd;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.2);
}

.pricing-card.popular:hover {
    box-shadow: 0 16px 40px rgba(13, 110, 253, 0.3);
    transform: scale(1.05) translateY(-4px);
}

/* Popular Badge */
.pricing-card .popular-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    margin: 0 !important;
    border: none !important;
}

/* Card Header */
.pricing-card .card-header {
    padding: 2rem 2rem 1.5rem !important;
    text-align: center !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: none !important;
    margin: 0 !important;
}

.pricing-card.popular .card-header {
    background: linear-gradient(135deg, #e7f1ff 0%, #ffffff 100%) !important;
    padding-top: 3rem !important;
}

.pricing-card .plan-name {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.pricing-card.popular .plan-name {
    color: #0d6efd !important;
}

/* Price Container */
.pricing-card .price-container {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

.pricing-card .price-container .currency {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
}

.pricing-card .price-container .price {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1 !important;
}

.pricing-card.popular .price-container .price {
    color: #0d6efd !important;
}

.pricing-card .price-container .period {
    font-size: 1rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Card Body */
.pricing-card .card-body {
    padding: 2rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: none !important;
}

/* Features List */
.pricing-card .features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

.pricing-card .features-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    text-decoration: none !important;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #28a745;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pricing-card.popular .features-list li i {
    color: #0d6efd;
}

/* CTA Container */
.pricing-card .cta-container {
    text-align: center !important;
    margin-top: auto !important;
}

.pricing-card .cta-btn {
    display: inline-block !important;
    width: 100% !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    text-align: center !important;
}

.pricing-card .cta-btn.btn-outline-primary {
    background: #ffffff !important;
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.pricing-card .cta-btn.btn-outline-primary:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.pricing-card .cta-btn.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}

.pricing-card .cta-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%) !important;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4) !important;
    transform: translateY(-2px) !important;
}

.pricing-card .cta-btn.btn-dark {
    background: linear-gradient(135deg, #212529 0%, #000000 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.pricing-card .cta-btn.btn-dark:hover {
    background: linear-gradient(135deg, #000000 0%, #212529 100%) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Feature Comparison Matrix */
#feature-matrix-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.feature-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-comparison-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 3px solid #dee2e6;
}

.feature-comparison-table thead th.feature-col {
    text-align: left;
    width: 40%;
}

.feature-comparison-table thead th.popular-col {
    background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
    color: #0d6efd;
    position: relative;
}

.feature-comparison-table thead th.popular-col::after {
    content: '★';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: #ffc107;
}

.feature-comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.feature-comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.feature-comparison-table tbody td {
    padding: 1rem;
    font-size: 0.95rem;
    color: #495057;
}

.feature-comparison-table tbody td.feature-name {
    font-weight: 500;
    color: #212529;
}

.feature-comparison-table tbody td i {
    font-size: 1.5rem;
}

.feature-comparison-table tbody td i.text-success {
    color: #28a745 !important;
}

.feature-comparison-table tbody td i.text-muted {
    color: #dee2e6 !important;
}

/* Category Rows */
.category-row {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.category-header {
    padding: 1rem 1.5rem !important;
    font-weight: 700;
    font-size: 1rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enterprise Footer */
.enterprise-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.enterprise-footer p {
    font-size: 1.125rem;
    color: #495057;
    margin: 0;
}

.enterprise-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.enterprise-link:hover {
    border-bottom-color: #0d6efd;
}

/* =============================================
   Enterprise Card - Full-Width Row
   ============================================= */

.enterprise-row-wrapper {
    width: 100%;
    flex: 0 1 100% !important;
}

.enterprise-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    border: 2px solid #4a9eff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0 !important;
    flex-direction: row !important;
    height: auto !important;
}

.enterprise-card:hover {
    box-shadow: 0 16px 48px rgba(74, 158, 255, 0.35) !important;
    transform: translateY(-4px) !important;
}

.enterprise-badge {
    background: linear-gradient(135deg, #4a9eff 0%, #0d6efd 100%);
    color: #ffffff;
    padding: 0.4rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 14px 14px 0 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.enterprise-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    margin-top: 0.5rem;
}

.enterprise-left {
    flex: 0 1 220px;
    min-width: 180px;
}

.enterprise-card .plan-name {
    color: #ffffff !important;
    font-size: 2rem !important;
}

.enterprise-price-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a9eff;
    display: block;
    margin-bottom: 0.5rem;
}

.enterprise-tagline {
    color: #a0aec0;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.enterprise-features {
    flex: 1 1 340px;
}

.enterprise-card .features-list {
    margin: 0 !important;
    columns: 2;
    column-gap: 1.5rem;
}

.enterprise-card .features-list li {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    break-inside: avoid;
}

.enterprise-card .features-list li i {
    color: #4a9eff !important;
}

.enterprise-cta {
    flex: 0 1 220px;
    min-width: 200px;
    text-align: center;
}

.btn-enterprise {
    background: linear-gradient(135deg, #4a9eff 0%, #0d6efd 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.4) !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.btn-enterprise:hover {
    background: linear-gradient(135deg, #6db3ff 0%, #3a85ff 100%) !important;
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.55) !important;
    transform: translateY(-2px) !important;
}

.enterprise-cta-note {
    color: #718096;
    font-size: 0.8rem;
    margin: 0.75rem 0 0;
    line-height: 1.4;
}

/* Enterprise column in comparison table */
.feature-comparison-table thead th.enterprise-col {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #4a9eff;
    position: relative;
}

.feature-comparison-table thead th.enterprise-col::after {
    content: '★';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.25rem;
    color: #4a9eff;
}

.feature-comparison-table td.enterprise-cell {
    background: rgba(10, 10, 26, 0.04);
    font-weight: 600;
    color: #1a1a2e;
}

.feature-comparison-table td.enterprise-cell i.text-success {
    color: #0d6efd !important;
}

/* Enterprise footer button style */
.enterprise-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.enterprise-link-btn:hover {
    border-bottom-color: #0d6efd;
}

/* Responsive: stack enterprise card vertically on mobile */
@media (max-width: 767px) {
    .enterprise-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .enterprise-card .features-list {
        columns: 1;
    }

    .enterprise-cta {
        width: 100%;
    }

    .enterprise-cta .cta-btn {
        width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

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

    .feature-comparison-table {
        font-size: 0.875rem;
    }

    .feature-comparison-table thead th,
    .feature-comparison-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 767px) {
    .pricing-hero h2 {
        font-size: 2rem;
    }

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

    .feature-comparison-table thead th.feature-col {
        width: 35%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
