@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

/* ═══════════════════════════════════════════════════════
   SUBSCRIPTION PAGE — BFA Ground Class
   Responsive: Mobile / Tablet / Desktop
═══════════════════════════════════════════════════════ */

body {
    font-family: 'Outfit', sans-serif;
    background: #f0f4ff;
    color: #0f172a;
}

.dashboard-content {
    background: #f0f4ff;
}

/* ════════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════ */
.sub-page {
    padding: 36px 40px 48px;
    max-width: 1080px;
}

/* ════════════════════════════════════════
   HERO HEADER
════════════════════════════════════════ */
.subscription-header {
    position: relative;
    background: linear-gradient(130deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
    border-radius: 18px;
    padding: 44px 44px 40px;
    margin-bottom: 32px;
    overflow: hidden;
    color: #fff;
}

/* Decorative rings */
.subscription-header::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.subscription-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    bottom: -60px;
    right: 80px;
    pointer-events: none;
}

.sub-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-header-text {}

.sub-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 8px;
}

.subscription-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #fff;
}

.subscription-header p {
    font-size: 15px;
    color: #bfdbfe;
    font-weight: 400;
    margin: 0;
    max-width: 440px;
}

/* Active plan pill in header */
.active-plan-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.18);
    border: 1px solid rgba(16,185,129,0.45);
    border-radius: 10px;
    padding: 12px 18px;
    flex-shrink: 0;
    color: #d1fae5;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.active-plan-pill strong {
    color: #fff;
    font-weight: 700;
}

.active-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ════════════════════════════════════════
   FEATURES STRIP
════════════════════════════════════════ */
.features-row {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 9px 16px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    white-space: nowrap;
}

.feature::before {
    content: '✓';
    font-size: 11px;
    font-weight: 700;
    color: #4f5fe0;
    background: #eef2ff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   PRICING GRID
════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 36px;
}

/* ════════════════════════════════════════
   PRICING CARD
════════════════════════════════════════ */
.pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.3),
                box-shadow 0.25s ease;
}

@media (hover: hover) {
    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(79,95,224,0.12);
    }
}

/* Recommended card */
.pricing-card.recommended {
    border: 2px solid #4f5fe0;
    background: linear-gradient(160deg, #fafbff 0%, #f0f4ff 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79,95,224,0.14);
}

@media (hover: hover) {
    .pricing-card.recommended:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(79,95,224,0.2);
    }
}

/* Recommended badge */
.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #4f5fe0, #6366f1);
    color: #fff;
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(79,95,224,0.35);
}

/* Plan name */
.pricing-card h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 16px;
}

.pricing-card.recommended h3 {
    color: #4f5fe0;
}

/* Price */
.price {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

.price span {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #94a3b8;
}

.duration {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

/* Feature list */
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card ul li {
    font-size: 13.5px;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.4;
}

.pricing-card ul li::before {
    content: '✓';
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: #d1fae5;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Subscribe button */
.subscribe-btn {
    width: 100%;
    padding: 13px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    letter-spacing: 0.02em;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.subscribe-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.25);
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Recommended card — indigo button */
.pricing-card.recommended .subscribe-btn {
    background: linear-gradient(135deg, #4f5fe0, #6366f1);
}

.pricing-card.recommended .subscribe-btn:hover {
    background: linear-gradient(135deg, #3d4dc8, #4f46e5);
    box-shadow: 0 6px 20px rgba(79,95,224,0.35);
}

/* Disabled state */
.subscribe-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ════════════════════════════════════════
   SUPPORT BOX
════════════════════════════════════════ */
.support-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.support-box-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.support-box-text p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.support-box-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #eef2ff;
    color: #4f5fe0;
    border: 1px solid #c7d2fe;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.support-box-action a:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,95,224,0.15);
}

/* ════════════════════════════════════════
   TABLET  640px – 1023px
════════════════════════════════════════ */
@media (max-width: 1023px) {
    .sub-page {
        padding: 24px 24px 40px;
    }

    .subscription-header {
        margin-top: 58px;
        padding: 32px 28px;
        border-radius: 14px;
    }

    .subscription-header h1 { font-size: 28px; }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .pricing-card {
        padding: 24px 20px 22px;
    }

    .price { font-size: 36px; }

    .support-box { padding: 24px; }
}

/* ════════════════════════════════════════
   MOBILE  < 640px
════════════════════════════════════════ */
@media (max-width: 639px) {
    .sub-page {
        padding: 16px 14px 36px;
    }

    .subscription-header {
        padding: 24px 20px 22px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .subscription-header h1 { font-size: 24px; }
    .subscription-header p  { font-size: 13px; }

    .sub-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .active-plan-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .features-row {
        gap: 8px;
        margin-bottom: 24px;
    }

    .feature {
        font-size: 12px;
        padding: 7px 12px;
    }

    /* Stack pricing cards vertically on mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Reset recommended card scale on mobile */
    .pricing-card.recommended {
        transform: none;
    }

    @media (hover: hover) {
        .pricing-card.recommended:hover {
            transform: translateY(-4px);
        }
    }

    .pricing-card { padding: 24px 20px 20px; }
    .price { font-size: 38px; }

    .support-box {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }

    .support-box-action { width: 100%; }
    .support-box-action a { width: 100%; justify-content: center; }
}
