/* Conversion-Focused Pricing Styles */
:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --highlight-color: #f59e0b;
    --success-color: #10b981;
    --card-bg: #ffffff;
    --bg-surface: #f8fafc;
    --brand-blue: #2563eb;
}

/* Section Wrapper */
#pricing {
    background-color: var(--bg-surface);
    font-family: 'Inter', sans-serif;
}

/* Pricing Toggle - CENTERED & UPDATED */
.pricing-toggle-container {
    background: #e2e8f0;
    padding: 0.35rem;
    border-radius: 99px;
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 3rem auto;
    /* CENTERED */
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-label {
    padding: 0.6rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    position: relative;
    z-index: 2;
    user-select: none;
    font-size: 0.95rem;
}

.pricing-label.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

/* Updated Best Value Badge */
.save-badge {
    position: absolute;
    top: -14px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    box-shadow: 0 4px 10px -2px rgba(234, 88, 12, 0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: gentlePulse 2s infinite ease-in-out;
    z-index: 10;
    line-height: 1;
}

.save-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #ea580c transparent transparent transparent;
}

@keyframes gentlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px -2px rgba(234, 88, 12, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px -2px rgba(234, 88, 12, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px -2px rgba(234, 88, 12, 0.4);
    }
}

/* Card Container */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography */
.card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.5px;
}

.card .display-4 {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

.card .billing-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Feature List */
.card ul li {
    font-size: 0.9375rem;
    color: #475569;
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
    line-height: 1.5;
}

.card ul li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Direct Action Buttons */
.btn-checkout {
    width: 100%;
    padding: 0.875rem 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

/* Secondary Buttons */
.btn-outline-primary {
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.btn-outline-primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    color: #0f172a;
    border-color: #94a3b8;
}

/* Primary Conversion Button (Business Plan) */
.btn-primary.btn-checkout {
    background: var(--brand-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary.btn-checkout:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* BUSINESS PLAN - HERO CARD */
.card.border-primary {
    border: 2px solid var(--brand-blue);
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    z-index: 10;
}

.card.border-primary:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Best Seller Ribbon */
.card.border-primary .position-absolute.top-0 {
    background: var(--brand-blue);
    color: white;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.6rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Pricing Switch Hidden */
.pricing-switch {
    display: none;
}

/* Trust Text */
.trust-text {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 500;
}

.trust-text i {
    color: #059669;
    /* Green shield */
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .card.border-primary {
        transform: scale(1);
        margin: 2rem 0;
    }

    .pricing-toggle-container {
        width: auto;
        display: inline-flex;
    }
}