/* ===================================
   Pricing & Modules Page Styles
   =================================== */

/* Hero Sections */
.pricing-hero,
.modules-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.toggle-label.active {
    opacity: 1;
    font-weight: 600;
}

.badge-save {
    background: #ffc107;
    color: #333;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Pricing Section */
.pricing-section {
    padding: 50px 0;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pricing-card .card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px 25px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.pricing-card.popular .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

.pricing-card .card-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price-container {
    text-align: center;
    margin-bottom: 30px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    vertical-align: top;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.period {
    font-size: 1rem;
    color: #666;
}

.price-custom {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    padding: 20px 0;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex: 1;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    margin-right: 10px;
    color: #28a745;
    font-size: 1.1rem;
}

.features-list li.disabled {
    opacity: 0.4;
}

.features-list li.disabled i {
    color: #dc3545;
}

/* Plan Buttons */
.btn-plan {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-popular:hover {
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* Feature Comparison Table */
.feature-comparison {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.comparison-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table td {
    padding: 15px 20px;
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table .category-row {
    background: #f5f7fa;
}

.comparison-table .category-row td {
    font-weight: 700;
    color: #667eea;
    padding: 15px 20px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #667eea;
    text-decoration: none;
}

.btn-outline-cta {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-outline-cta:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* ===================================
   Modules Page Styles
   =================================== */

.modules-section {
    padding: 50px 0;
}

.module-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.category-title i {
    margin-right: 15px;
    color: #667eea;
}

/* Module Cards */
.module-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.module-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.module-icon i {
    font-size: 2rem;
    color: white;
}

.module-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.module-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.module-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

/* ===================================
   Modules Dropdown Inside Cards
   =================================== */

.modules-dropdown {
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #667eea;
}

.dropdown-header:hover {
    background: #e9ecef;
}

.dropdown-header i {
    transition: transform 0.3s ease;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 10px;
}

.modules-dropdown.active .dropdown-content {
    padding: 15px 10px 5px;
}

.module-category-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.module-category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.module-category-item strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.module-category-item strong i {
    color: #667eea;
    font-size: 1rem;
}

.module-category-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 25px;
}

.module-category-item ul li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #666;
    position: relative;
}

.module-category-item ul li:before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #667eea;
    font-weight: 700;
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .modules-dropdown {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .dropdown-header {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .module-category-item strong {
        font-size: 0.9rem;
    }

    .module-category-item ul li {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pricing-hero,
    .modules-hero {
        padding: 50px 0 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .btn-cta,
    .btn-outline-cta {
        display: block;
        margin: 10px auto;
        max-width: 300px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .billing-toggle {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .price {
        font-size: 2rem;
    }

    .module-icon {
        width: 60px;
        height: 60px;
    }

    .module-icon i {
        font-size: 1.5rem;
    }
}

/* ===================================
   Accordion Styles for Modules
   =================================== */

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.modules-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.accordion-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.accordion-title i {
    font-size: 1.6rem;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 30px;
}

.accordion-item.active .accordion-content {
    padding: 30px;
}

.module-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    height: 100%;
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #764ba2;
}

.module-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-item h4 i {
    color: #667eea;
    font-size: 1.3rem;
}

/* ===================================
   Neat & Premium SaaS Pricing
   =================================== */

:root {
    --neat-bg: #f8fafc;
    --neat-card-bg: #ffffff;
    --neat-border: #e2e8f0;
    --neat-text-main: #0f172a;
    --neat-text-muted: #64748b;
    --neat-primary: #4f46e5;
    --neat-primary-hover: #4338ca;
    --neat-pop-bg: #f5f3ff;
    --neat-pop-border: #ddd6fe;
}

/* Hero Section Refinement */
.pricing-hero {
    padding: 100px 0 60px;
    background: radial-gradient(circle at center, #f1f5f9 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--neat-border);
}

.pricing-hero .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neat-text-main);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neat-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Neat Toggle */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neat-text-muted);
    transition: 0.2s;
}

.toggle-label.active {
    color: var(--neat-text-main);
}

.save-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.switch {
    width: 52px;
    height: 28px;
}

.slider {
    background-color: #e2e8f0;
    border-radius: 28px;
}

.slider:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

input:checked+.slider {
    background-color: var(--neat-primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Matrix Implementation */
.pricing-matrix-section {
    padding: 20px 0 100px;
    background: var(--neat-bg);
}

.matrix-root {
    background: var(--neat-card-bg);
    border-radius: 16px;
    border: 1px solid var(--neat-border);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Header Cells */
.matrix-table th {
    padding: 48px 32px;
    text-align: center;
    vertical-align: bottom;
}

.feature-label-cell {
    width: 30%;
    text-align: left !important;
}

.label-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neat-text-main);
    margin-bottom: 4px;
}

.label-box p {
    font-size: 0.875rem;
    color: var(--neat-text-muted);
}

.plan-th {
    border-left: 1px solid var(--neat-border);
    transition: background 0.3s;
}

.plan-th.popular {
    background: var(--neat-pop-bg);
    border-left-color: var(--neat-pop-border);
    border-right: 1px solid var(--neat-pop-border);
    position: relative;
}

.pop-chip {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neat-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.plan-tag {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neat-text-main);
    margin-bottom: 20px;
}

.price-box {
    margin-bottom: 24px;
}

.price-box .currency {
    font-size: 1.25rem;
    color: var(--neat-text-muted);
}

.price-box .val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neat-text-main);
}

.price-box .period {
    font-size: 0.875rem;
    color: var(--neat-text-muted);
}

.quote-only .val {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.quote-only .sub {
    font-size: 0.875rem;
    color: var(--neat-text-muted);
}

/* Body Styling */
.matrix-table td {
    padding: 20px 32px;
    border-top: 1px solid var(--neat-border);
    text-align: center;
    color: var(--neat-text-main);
    font-size: 0.95rem;
}

.matrix-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.matrix-table tr td:nth-child(3) {
    background: var(--neat-pop-bg);
    border-left: 1px solid var(--neat-pop-border);
    border-right: 1px solid var(--neat-pop-border);
}

.category-divider td {
    background: #f1f5f9;
    font-weight: 700 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neat-text-muted);
    padding: 12px 32px;
}

/* Icons */
.matrix-table i.fa-check {
    color: var(--neat-primary);
    font-size: 1.1rem;
}

/* Buttons */
.btn-neat,
.btn-neat-ghost {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: 0.2s;
}

.btn-neat {
    background: var(--neat-primary);
    color: white;
}

.btn-neat:hover {
    background: var(--neat-primary-hover);
    color: white;
}

.btn-neat-ghost {
    border: 1px solid var(--neat-border);
    color: var(--neat-text-main);
}

.btn-neat-ghost:hover {
    background: #f8fafc;
    border-color: var(--neat-text-main);
}

/* Footer Links */
.footer-cta-row td {
    padding: 32px;
    border-top: 1px solid var(--neat-border);
}

.link-btn {
    font-weight: 700;
    color: var(--neat-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.link-btn.primary {
    color: var(--neat-primary);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .matrix-root {
        overflow-x: auto;
    }

    .matrix-table {
        min-width: 800px;
    }
}

/* Trust Section Refinement */
.trust-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid var(--neat-border);
}

.trust-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neat-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.trust-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    margin-bottom: 30px;
}

.trust-icons i {
    font-size: 1.25rem;
    color: #cbd5e1;
    transition: 0.3s;
}

.trust-icons i:hover {
    color: var(--neat-text-muted);
}

.trust-section p {
    font-size: 0.725rem;
    color: var(--neat-text-muted);
    margin: 0;
    letter-spacing: 0.03em;
}

/* Mobile Trust Refinement */
@media (max-width: 768px) {
    .trust-icons {
        gap: 25px;
    }
}