/* ===============================================
   PRICING PAGE STYLES
   =============================================== */

/* Container */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Current Plan Banner */
.current-plan-banner {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0, 210, 255, 0.05));
    border: 1px solid var(--highlight);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.current-plan-banner i {
    color: var(--highlight);
    font-size: 1.2rem;
}

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.billing-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.billing-label.active {
    color: var(--text-main);
}

.billing-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.billing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 30px;
    transition: 0.4s;
    border: 2px solid var(--accent-glow);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: var(--accent-glow);
    border-radius: 50%;
    transition: 0.4s;
}

.billing-toggle input:checked+.toggle-slider {
    background: var(--highlight);
    border-color: var(--highlight);
}

.billing-toggle input:checked+.toggle-slider:before {
    transform: translateX(30px);
    background: var(--bg-primary);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(180deg, rgba(54, 68, 69, 0.3) 0%, rgba(54, 68, 69, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(141, 153, 174, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--highlight);
}

.pricing-card.popular {
    border-color: var(--highlight);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1) 0%, rgba(54, 68, 69, 0.6) 100%);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -32px;
    background: linear-gradient(135deg, var(--highlight), #0099b3);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.pricing-card.current {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(54, 68, 69, 0.6) 100%);
    border-color: #10b981;
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.plan-icon.free {
    color: var(--accent-glow);
}

.plan-icon.plus {
    color: var(--highlight);
}

.plan-icon.pro {
    color: #fbbf24;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Price Display */
.price-display {
    text-align: center;
    margin-bottom: 32px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.price-yearly {
    display: none;
}

/* Features List */
.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(141, 153, 174, 0.1);
}

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

.features-list i {
    color: var(--highlight);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* CTA Button */
.plan-cta {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-cta.primary {
    background: linear-gradient(to bottom, #00e5ff, var(--btn-primary));
    color: #000;
    box-shadow:
        0 6px 0 var(--btn-shadow-dark),
        0 12px 12px rgba(0, 0, 0, 0.4);
}

.plan-cta.primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 0 var(--btn-shadow-dark),
        0 18px 20px rgba(0, 0, 0, 0.3);
}

.plan-cta.primary:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 var(--btn-shadow-dark),
        0 4px 4px rgba(0, 0, 0, 0.3);
}

.plan-cta.secondary {
    background: transparent;
    border: 2px solid var(--accent-glow);
    color: var(--accent-glow);
}

.plan-cta.secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: var(--highlight);
    color: var(--highlight);
}

.plan-cta.current {
    background: #10b981;
    color: white;
    cursor: default;
}

.plan-cta.current:hover {
    transform: none;
}

.plan-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comparison Section */
.comparison-section {
    margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.comparison-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(141, 153, 174, 0.15);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0, 210, 255, 0.05));
}

.comparison-table th {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--highlight);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    color: var(--text-main);
    border-bottom: 1px solid rgba(141, 153, 174, 0.1);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table i.fa-check {
    color: #10b981;
    font-size: 1.2rem;
}

.comparison-table i.fa-check.limited {
    color: #fbbf24;
}

.comparison-table i.fa-times {
    color: #ef4444;
    font-size: 1.2rem;
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.payment-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.order-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.order-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.summary-row span {
    color: var(--text-muted);
}

.summary-row strong {
    color: var(--text-main);
}

.summary-divider {
    height: 1px;
    background: rgba(141, 153, 174, 0.2);
    margin: 12px 0;
}

.summary-row.total {
    font-size: 1.3rem;
    padding-top: 12px;
}

.summary-row.total strong {
    color: var(--highlight);
}

.btn-block {
    width: 100%;
}

.payment-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.payment-note i {
    color: var(--highlight);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Skeleton Loader */
.pricing-card-skeleton {
    background: rgba(54, 68, 69, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    min-height: 600px;
}

.skeleton-loader {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 25%, rgba(148, 163, 184, 0.2) 50%, rgba(148, 163, 184, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    height: 100%;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

    .modal-content {
        padding: 24px;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

/* Light Mode */
.light-mode .pricing-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.light-mode .comparison-table {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .order-summary {
    background: rgba(0, 0, 0, 0.05);
}