/* ═══════════════════════════════════════════════════════════
   Shared Pricing Section — used on app.html & pricing.html
   ═══════════════════════════════════════════════════════════ */

/* ── Tier Colors ── */
.pricing-section {
    --individual-color: #4a9eff;
    --individual-glow: rgba(74, 158, 255, 0.15);
    --pro-color: #a855f7;
    --pro-glow: rgba(168, 85, 247, 0.15);
    --enterprise-color: #f59e0b;
    --enterprise-glow: rgba(245, 158, 11, 0.15);
    --check-green: #22c55e;
}

/* ── Section Layout ── */
.pricing-section {
    padding: 5rem 2rem;
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-section-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary, #f0f2f5);
}

.pricing-section-header p {
    color: var(--text-secondary, #8a8f9d);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Billing Toggle (button-based) ── */
.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0;
    background: var(--bg-surface, #12121a);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-option {
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #5a5f6d);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    background: none;
    font-family: inherit;
    position: relative;
}

.billing-option.active {
    background: var(--individual-color, #4a9eff);
    color: #fff;
    box-shadow: 0 2px 12px rgba(74, 158, 255, 0.3);
}

.billing-option:not(.active):hover {
    color: var(--text-secondary, #8a8f9d);
}

.save-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background: #0c0c11;
    color: var(--check-green, #22c55e);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    border: 1.5px solid var(--check-green, #22c55e);
}

/* ── Card Grid ── */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* ── Card Base ── */
.pricing-card {
    background: var(--bg-surface, #12121a);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ── Featured Card (Professional) ── */
.pricing-card.featured {
    border-color: var(--pro-color);
    background: var(--bg-elevated, #1a1a24);
    box-shadow: 0 0 40px var(--pro-glow), 0 0 80px rgba(168, 85, 247, 0.05);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 50px var(--pro-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-popular-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #0c0c10;
    color: var(--pro-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--pro-color);
}

/* ── Card Content ── */
.pricing-card-tier {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.pricing-card-tier.individual { color: var(--individual-color); }
.pricing-card-tier.professional { color: var(--pro-color); }
.pricing-card-tier.enterprise { color: var(--enterprise-color); }

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #f0f2f5);
}

.pricing-card-desc {
    color: var(--text-secondary, #8a8f9d);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 2.6em;
    line-height: 1.5;
}

/* ── Price Display ── */
.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.pricing-card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary, #8a8f9d);
}

.pricing-card-price .amount {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary, #f0f2f5);
}

.pricing-card-price .period {
    color: var(--text-muted, #5a5f6d);
    font-size: 0.95rem;
}

.pricing-annual-note {
    font-size: 0.8rem;
    color: var(--text-muted, #5a5f6d);
    margin-bottom: 1.5rem;
    height: 1.3em;
}

.pricing-annual-note .original-price {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ── Feature List ── */
.pricing-feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a4b0);
    line-height: 1.4;
}

.pricing-feature-list li .check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.pricing-feature-list .check-on {
    background: rgba(34, 197, 94, 0.15);
    color: var(--check-green);
}

.pricing-feature-list .check-off {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #5a5f6d);
    font-size: 10px;
}

.pricing-feature-list li.disabled {
    color: var(--text-muted, #5a5f6d);
    opacity: 0.5;
}

.pricing-feature-divider {
    height: 1px;
    background: var(--border, rgba(255, 255, 255, 0.06));
    margin: 0.35rem 0;
    list-style: none;
}

/* ── CTA Buttons ── */
.pricing-card-cta {
    display: block;
    width: 100%;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
    border: none;
    margin-top: auto;
}

.pricing-card-cta.cta-individual {
    background: var(--individual-color);
    color: #fff;
}
.pricing-card-cta.cta-individual:hover {
    background: #6ab0ff;
    box-shadow: 0 4px 20px var(--individual-glow);
    transform: translateY(-2px);
}

.pricing-card-cta.cta-professional {
    background: var(--pro-color);
    color: #fff;
}
.pricing-card-cta.cta-professional:hover {
    background: #b66dff;
    box-shadow: 0 4px 20px var(--pro-glow);
    transform: translateY(-2px);
}

.pricing-card-cta.cta-enterprise {
    background: var(--enterprise-color);
    color: #000;
}
.pricing-card-cta.cta-enterprise:hover {
    background: #fbb030;
    box-shadow: 0 4px 20px var(--enterprise-glow);
    transform: translateY(-2px);
}

/* ── Footer Note ── */
.pricing-footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted, #5a5f6d);
    line-height: 1.7;
}

.pricing-footer-note a {
    color: #4a9eff;
    text-decoration: none;
}

.pricing-footer-note a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-section-header h2 {
        font-size: 2rem;
    }
}