/* ============================================
   TradeXil Pricing Page - Minimal Design
   3-tier pricing per section
   ============================================ */

/* Hero Section */
.pricing-hero {
    position: relative;
    padding: calc(var(--spacing-xl) * 1.2) 0 var(--spacing-xl) 0;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.pricing-hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 14, 24, 0.95) 0%, rgba(6, 14, 24, 0.9) 60%, var(--bg-primary) 100%),
        radial-gradient(circle at 15% 20%, rgba(162, 207, 255, 0.28), transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(56, 239, 125, 0.18), transparent 60%);
    opacity: 1;
}

.pricing-hero-content {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-primary);
}

.pricing-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-ice);
    margin-bottom: var(--spacing-sm);
}

.pricing-hero-title {
    font-family: var(--font-headings);
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.pricing-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: calc(var(--spacing-xl) - 1rem) 0;
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-lg) - 0.5rem);
}

.section-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Pricing Grid & Cards
   ============================================ */

.pricing-grid {
    display: grid;
    gap: calc(var(--spacing-md) + 0.5rem);
}

.api-grid,
.bot-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: calc(var(--spacing-lg) - 3rem) var(--spacing-md);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-ice), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.pricing-card:hover {
    border-color: var(--accent-ice);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(162, 207, 255, 0.12);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border: 1.5px solid rgba(162, 207, 255, 0.6);
    box-shadow: 0 12px 35px rgba(162, 207, 255, 0.16);
}

.pricing-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(162, 207, 255, 0.24);
}

.badge-pick {
    position: absolute;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #38ef7d, #1dd1a1);
    color: #02131f;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.basic-card {
    background: radial-gradient(circle at 0% 0%, rgba(162, 207, 255, 0.18), transparent 55%), var(--bg-primary);
}

.standard-card {
    background: radial-gradient(circle at 0% 0%, rgba(124, 191, 255, 0.28), transparent 60%), var(--bg-primary);
}

.premium-card {
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.24), transparent 60%), var(--bg-primary);
}

/* ============================================
   Card Header & Price
   ============================================ */

.plan-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-slate);
    margin-bottom: var(--spacing-xs);
}

.card-header {
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-ice), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-headings);
}

.period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
    font-style: italic;
}

/* ============================================
   Features List
   ============================================ */

.card-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
}

.card-features li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color var(--transition-fast);
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0.05rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-ice), #7dd3fc);
    box-shadow: 0 0 0 3px rgba(162, 207, 255, 0.12);
}

.card-features li.unavailable {
    color: var(--accent-slate);
    opacity: 0.7;
}

.card-features li.unavailable::before {
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.5);
    box-shadow: none;
    top: 0.5rem;
}

/* ============================================
   Card Buttons
   ============================================ */

.card-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-ice), #7dd3fc);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 207, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-ice);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-ice);
    background-color: rgba(162, 207, 255, 0.05);
    box-shadow: 0 4px 12px rgba(162, 207, 255, 0.15);
}

/* ============================================
   Comparison Table
   ============================================ */

/* ============================================
   FAQ Section (Backtest Style)
   ============================================ */

.pricing-faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--accent-ice);
    box-shadow: 0 0 15px rgba(162, 207, 255, 0.1);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--accent-ice);
    font-size: 1.05rem;
    font-weight: 600;
}

.faq-item p {
    margin: var(--spacing-xs) 0 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .pricing-grid {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    }

    .pricing-hero-title {
        font-size: 2.1rem;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
    }

    .pricing-section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .pricing-card {
        padding: calc(var(--spacing-md) + 0.25rem) var(--spacing-xs);
    }

    .price {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .badge-pick {
        position: static;
        align-self: center;
        margin-bottom: var(--spacing-xs);
        transform: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .pricing-hero-title {
        font-size: 1.65rem;
    }

    .pricing-hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .price {
        font-size: 1.75rem;
    }

    .card-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-features li {
        font-size: 0.85rem;
        gap: var(--spacing-xs);
    }
}