/* ================================
   PRICING & SUBSCRIPTION STYLES
   ================================ */

/* Plan Selection Button States */
.btn-plan.upgrade-option {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
}

.btn-plan.upgrade-option:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
}

.btn-plan.downgrade-option {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #f59e0b !important;
    color: white !important;
}

.btn-plan.downgrade-option:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3) !important;
}

.btn-plan.change-option {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #6366f1 !important;
    color: white !important;
}

.btn-plan.change-option:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3) !important;
}

.btn-plan.selected {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-color: #059669 !important;
    color: white !important;
    position: relative;
}

.btn-plan.selected::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
}

/* Color utilities for icons */
.text-green-600 {
    color: #10b981 !important;
}

.text-amber-600 {
    color: #f59e0b !important;
}

.btn-plan.cancel-option {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-plan.cancel-option:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3) !important;
}

/* Pricing Page Styles */
.pricing-nav {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pricing-main {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.pricing-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

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

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

.pricing-card.current-subscription {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trial-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-card.trial {
    border-color: #10b981;
}

.pricing-card.featured {
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.trial-note {
    color: #10b981 !important;
    font-weight: 500;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}

.period {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.plan-description {
    color: #666;
    font-size: 1rem;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
}

.features-list li i {
    width: 20px;
    font-size: 1rem;
}

.features-list li.unavailable {
    color: #999;
}

.features-list .fa-check {
    color: #10b981;
}

.features-list .fa-times {
    color: #ef4444;
}

.btn-plan {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-plan.upgrade {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-plan.upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-plan.trial-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.btn-plan.trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-buttons .btn-plan {
    margin: 0;
}

.btn-plan.current {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border-color: #22c55e !important;
    color: white !important;
    cursor: not-allowed;
    position: relative;
}

.btn-plan.current::after {
    content: '✓ ';
    font-weight: bold;
    margin-right: 5px;
}

.btn-plan.current:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3) !important;
}

/* Continue Trial Button */
.btn-plan.continue-trial {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    position: relative;
}

.btn-plan.continue-trial::before {
    content: '⏰ ';
    font-weight: bold;
    margin-right: 5px;
}

.btn-plan.continue-trial:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}

/* Trial Expired Button */
.btn-plan.trial-expired {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

.btn-plan.trial-expired:hover {
    background: #f3f4f6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-plan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Selected Plan State */
.btn-plan.selected {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white;
    border: 2px solid #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-plan.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.pricing-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
}

.pricing-card.selected .plan-header h3::after {
    content: " ✓";
    color: #10b981;
    font-weight: 700;
}

/* Plan Switching Notice */
.plan-switch-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.plan-switch-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-switch-notice i {
    color: #3b82f6;
}

/* Trial Upgrade/Downgrade Button Styles */
.btn-plan.trial-btn:not(.selected):not(.current) {
    position: relative;
}

.btn-plan.trial-btn[data-upgrade="true"] {
    background: linear-gradient(135deg, #059669, #10b981);
    border: 1px solid #10b981;
}

.btn-plan.trial-btn[data-downgrade="true"] {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: 1px solid #f59e0b;
}

.btn-plan.trial-btn:not(.selected):not(.current):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* FAQ Section */
.faq-section {
    margin-top: 80px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
}

.faq-section h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: #667eea;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.subscription-summary h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.price-summary {
    text-align: center;
    margin: 20px 0 30px;
}

.price-summary .total {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.benefits-summary {
    list-style: none;
    margin: 20px 0;
}

.benefits-summary li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #333;
}

.benefits-summary .fa-check {
    color: #10b981;
}

#payment-element {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

/* Demo Payment Styles */
.demo-payment-form {
    width: 100%;
}

.demo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #1e40af;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.demo-notice i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.demo-card-form h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-card-form h4 i {
    color: #667eea;
}

.demo-card-form .form-group {
    margin-bottom: 20px;
}

.demo-card-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.demo-card-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.demo-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.demo-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .demo-card-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-notice {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: notificationSlide 0.3s ease;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.error .notification-content i {
    color: #ef4444;
}

.notification.success .notification-content i {
    color: #10b981;
}

.notification.info .notification-content i {
    color: #3b82f6;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    margin-left: auto;
}

.close-notification:hover {
    color: #333;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card.popular {
        transform: none;
    }

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

    .faq-section {
        padding: 40px 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}