/**
 * Pricing Page Styles
 * Dark theme pricing table and plan cards
 */

/* Page Layout */
.pricing-page {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #0a0e17 0%, #151b28 100%);
}

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

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: #8892a0;
}

/* Loading & Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #8892a0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a3441;
    border-top-color: #4a9eff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

/* Comparison Section */
.comparison-section {
    background: #1a2233;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.comparison-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #2a3441;
}

.comparison-table th {
    background: #0d1117;
    color: #ffffff;
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
    border-top-left-radius: 8px;
}

.comparison-table th:last-child {
    border-top-right-radius: 8px;
}

.comparison-table th small {
    display: block;
    font-weight: 400;
    color: #8892a0;
    margin-top: 4px;
}

.comparison-table th.featured-plan {
    background: linear-gradient(135deg, #2d1f5e 0%, #1a1235 100%);
    color: #a78bfa;
}

.comparison-table td:first-child {
    text-align: left;
    color: #d1d5db;
}

.comparison-table tbody tr:hover {
    background: rgba(74, 158, 255, 0.05);
}

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

.comparison-table .check {
    color: #22c55e;
    font-size: 1.2rem;
}

.comparison-table .cross {
    color: #6b7280;
    font-size: 1.2rem;
}

/* Plan Selection Section */
.plan-selection-section {
    text-align: center;
    margin-bottom: 40px;
}

.plan-selection-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Test Mode Badge */
.test-mode-badge {
    display: inline-block;
    background: #f59e0b;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    background: #1a2233;
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 26px;
    background: transparent;
    color: #8892a0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    color: #ffffff;
}

.toggle-btn.active {
    background: #4a9eff;
    color: #ffffff;
}

.discount-badge {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
}

/* Plan Cards */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: #1a2233;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: #4a9eff;
    transform: translateY(-4px);
}

.plan-card.featured {
    background: linear-gradient(135deg, #2d1f5e 0%, #1a1235 100%);
    border-color: #a78bfa;
}

.plan-card.featured:hover {
    border-color: #c4b5fd;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #a78bfa;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.plan-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8892a0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    color: #d1d5db;
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '✓';
    color: #22c55e;
    margin-right: 10px;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.btn-secondary {
    background: #2a3441;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #3a4451;
}

.btn-primary {
    background: #4a9eff;
    color: #ffffff;
}

.btn-primary:hover {
    background: #3a8eef;
}

.btn-premium {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #ffffff;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
}

/* FAQ Section */
.faq-section {
    background: #1a2233;
    border-radius: 12px;
    padding: 30px;
}

.faq-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #2a3441;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: #8892a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .toggle-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
