/* ===================================
   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;
}

.module-item p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.module-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-item ul li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.module-item ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}