/* Pricing Hero */
.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
}

/* Pricing Toggle */
.pricing-toggle {
    display: inline-flex;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.pricing-toggle-btn {
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    background: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    color: #6c757d;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
    transform: translateY(-2px);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    border-color: #007bff;
}

.popular-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    animation: pulse 2s infinite;
}

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

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.pricing-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.pricing-price {
    font-size: 4rem;
    font-weight: 900;
    margin: 1.5rem 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Buttons */
.premium-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.6);
}

.btn-outline-primary {
    border: 3px solid #007bff;
    color: #007bff;
    font-weight: 700;
    transition: all 0.4s ease;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,123,255,0.4);
}

/* Feature Table */
.feature-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: none;
}

/* Mobile table optimization */
@media (max-width: 576px) {
    .table-responsive {
        border-radius: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .feature-table {
        min-width: 300px;
        border-radius: 15px;
    }
    
    .feature-table th:first-child,
    .feature-table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 10;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        padding-left: 12px !important;
    }
    
    .feature-table thead th:first-child {
        background: linear-gradient(135deg, #007bff, #0056b3);
        padding-left: 12px !important;
    }
    
    .section-header {
        position: sticky !important;
        left: 0 !important;
        background: linear-gradient(135deg, #f8f9ff, #e8f2ff) !important;
        z-index: 10 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1) !important;
        padding-left: 12px !important;
    }
}

.feature-table thead th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: 800;
    padding: 20px 10px;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-table td, .feature-table th {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 1rem;
}

.section-header {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff) !important;
    color: #007bff !important;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-table tr:hover td {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    transform: scale(1.01);
}

.feature-table .fas {
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .feature-table .fas {
        font-size: 0.9rem;
        padding: 4px;
    }
}

.text-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
}

.text-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white !important;
}

/* Accordion */
.accordion-item {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.accordion-button {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    padding: 25px;
    border-radius: 15px !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: none;
}

.accordion-body {
    background: #f8f9ff;
    padding: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CTA Section */
.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Mobile First Responsive Design */
@media (max-width: 576px) {
    .pricing-hero {
        padding: 60px 0 40px;
    }
    
    .pricing-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .pricing-hero .lead {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .pricing-hero .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .pricing-toggle {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .pricing-toggle-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin: 2px 0;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
        border-radius: 20px;
    }
    
    .pricing-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
        margin: 1rem 0;
    }
    
    .price-period {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .premium-btn, .btn-outline-primary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    .feature-table {
        font-size: 0.9rem;
    }
    
    .feature-table td, .feature-table th {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .feature-table thead th {
        padding: 12px 6px;
        font-size: 0.8rem;
    }
    
    .accordion-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 1rem;
    }
    
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .d-flex.justify-content-center.gap-3 .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 80px 0 60px;
    }
    
    .pricing-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-price {
        font-size: 3rem;
    }
    
    .feature-table {
        font-size: 1rem;
    }
    
    .pricing-toggle-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .pricing-toggle {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .pricing-hero .col-md-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .feature-table {
        margin: 0 -15px;
    }
}

/* Ultra-small screens (< 400px) */
@media (max-width: 400px) {
    .pricing-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .pricing-hero .lead {
        font-size: 1rem !important;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-header {
        padding: 1.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .feature-table td, .feature-table th {
        padding: 8px 3px;
        font-size: 0.75rem;
    }
    
    .feature-table thead th {
        padding: 10px 3px;
        font-size: 0.7rem;
    }
    
    .popular-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .pricing-card:hover {
        transform: none;
    }
    
    .pricing-card {
        transition: none;
    }
    
    .premium-btn:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    .premium-btn,
    .btn-outline-primary {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .pricing-toggle-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .accordion-button {
        min-height: 44px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .pricing-hero {
        padding: 40px 0 30px;
    }
    
    .pricing-hero h1 {
        font-size: 2rem !important;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}

/* Improve scrolling performance on mobile */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    .pricing-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .feature-table {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Reduce animations on mobile for better performance */
    .pricing-hero::before,
    .pricing-header::after {
        animation: none;
    }
    
    .popular-badge {
        animation: none;
    }
}