/* Pricing Page Styles */


/* ===== GENERAL STYLES ===== */

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 80px;
}

.pricing-header .display-4 {
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}


/* ===== PRICING CARDS ===== */

.pricing-cards {
    margin-bottom: 100px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #007bff;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 20px;
    border-radius: 0 16px 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.pricing-card .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.pricing-card.pro-tier .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.tier-price {
    margin-bottom: 15px;
}

.tier-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: inherit;
}

.tier-price .period {
    font-size: 1rem;
    opacity: 0.8;
    color: inherit;
}

.tier-description {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.pricing-card .card-body {
    padding: 40px 30px;
}

.everything-in-free {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    color: #495057;
}

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

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.feature-list li i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.current-plan {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}


/* ===== COMPARISON TABLE ===== */

.comparison-table {
    background: white;
    padding: 80px 0;
    margin-bottom: 80px;
}

.comparison-table table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.comparison-table thead th {
    padding: 20px 15px;
    font-weight: 600;
    border: none;
    font-size: 1.1rem;
}

.comparison-table tbody tr {
    transition: background-color 0.2s ease;
}

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

.comparison-table tbody td {
    padding: 15px;
    border-color: #e9ecef;
    vertical-align: middle;
}

.comparison-table .category-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

.comparison-table .category-header td {
    padding: 20px 15px;
    font-size: 1.05rem;
    color: #495057;
}

.comparison-table .fas {
    font-size: 1.2rem;
}


/* ===== FAQ SECTION ===== */

.pricing-faq {
    background: #f8f9fa;
    padding: 80px 0;
    margin-bottom: 80px;
}

.pricing-faq h2 {
    font-weight: 700;
    color: #212529;
}

.accordion-item {
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #212529;
    text-align: left;
    border-radius: 8px;
}

.accordion-button:not(.collapsed) {
    background: #e3f2fd;
    color: #1976d2;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.accordion-body {
    padding: 20px 25px;
    background: white;
    line-height: 1.6;
}


/* ===== CTA SECTION ===== */

.pricing-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.pricing-cta h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-cta .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

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

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-primary:hover {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.cta-buttons .btn-outline-primary:hover {
    background: white;
    color: #667eea;
}


/* ===== TIER BADGES ===== */

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.free {
    background: #e3f2fd;
    color: #1976d2;
}

.tier-badge.pro {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}


/* ===== UPGRADE PAGE STYLES ===== */

.upgrade-benefits {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefit-card h4 {
    margin-bottom: 15px;
    color: #212529;
    font-weight: 600;
}

.feature-comparison {
    padding: 80px 0;
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.comparison-item {
    display: contents;
}

.comparison-item:nth-child(even) {
    background: #f8f9fa;
}

.feature-name {
    font-weight: 600;
    color: #212529;
    padding: 15px 20px;
    border-radius: 8px 0 0 8px;
}

.current-value {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    font-weight: 500;
}

.arrow {
    text-align: center;
    color: #007bff;
    font-size: 1.2rem;
}

.pro-value {
    text-align: center;
    padding: 15px;
    color: #28a745;
    font-weight: 600;
}

.upgrade-form {
    padding: 80px 0;
    background: #f8f9fa;
}

.upgrade-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upgrade-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px;
    text-align: center;
}

.upgrade-card .card-body {
    padding: 40px;
}

.pricing-display {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-display .price {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.pricing-display .amount {
    color: #007bff;
}

.pricing-display .period {
    font-size: 1.2rem;
    color: #6c757d;
}

.billing-note {
    margin-top: 10px;
}

.upgrade-benefits-list {
    margin-bottom: 30px;
}

.upgrade-benefits-list ul {
    list-style: none;
    padding: 0;
}

.upgrade-benefits-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.upgrade-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    font-weight: 600;
}

.security-note {
    text-align: center;
    margin-top: 20px;
}

.upgrade-faq {
    background: white;
    padding: 80px 0;
}


/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .pricing-header {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    .pricing-header .display-4 {
        font-size: 2rem;
    }
    .pricing-cards {
        margin-bottom: 60px;
    }
    .pricing-card {
        margin-bottom: 30px;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    .pricing-card .card-header {
        padding: 30px 20px;
    }
    .pricing-card .card-body {
        padding: 30px 20px;
    }
    .tier-price .price {
        font-size: 2.5rem;
    }
    .comparison-table {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    .comparison-table table {
        font-size: 0.9rem;
    }
    .comparison-table thead th {
        padding: 15px 10px;
    }
    .comparison-table tbody td {
        padding: 12px 10px;
    }
    .pricing-faq {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    .pricing-cta {
        padding: 60px 0;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .comparison-item {
        display: grid;
        grid-template-columns: 2fr 1fr auto 1fr;
        gap: 10px;
        align-items: center;
        background: #f8f9fa;
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 15px;
    }
    .feature-name {
        border-radius: 8px;
        padding: 10px;
    }
    .current-value,
    .pro-value {
        padding: 10px;
    }
    .upgrade-benefits {
        padding: 60px 0;
    }
    .feature-comparison {
        padding: 60px 0;
    }
    .upgrade-form {
        padding: 60px 0;
    }
    .upgrade-faq {
        padding: 60px 0;
    }
    .upgrade-card .card-header {
        padding: 20px;
    }
    .upgrade-card .card-body {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .pricing-header .display-4 {
        font-size: 1.8rem;
    }
    .pricing-header .lead {
        font-size: 1.1rem;
    }
    .tier-price .price {
        font-size: 2rem;
    }
    .popular-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    .comparison-table table {
        font-size: 0.8rem;
    }
    .accordion-button {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    .accordion-body {
        padding: 15px 20px;
    }
}


/* ===== ANIMATIONS ===== */

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pricing-card.popular {
    animation: pulse 2s ease-in-out infinite;
}


/* ===== ACCESSIBILITY ===== */

.pricing-card:focus,
.accordion-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


/* ===== UTILITY CLASSES ===== */

.btn-action {
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}