/* ── Subscription Plans Styling ────────────────── */

/* Used on the public landing page */
.plans-section {
    padding: 60px 24px;
    background: var(--bg-page);
}

/* Used inside the student dashboard plans view */
.plans-container {
    width: 100%;
    box-sizing: border-box;
}

.plans-header {
    text-align: center;
    margin-bottom: 28px;
}

.plans-header .heading-lg {
    margin-bottom: 6px;
}

/* ── Grid ── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* ── Card ── */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 156, 219, 0.12);
    border-color: var(--primary);
}

/* Featured (Starter) */
.plan-card.featured {
    border: 1.5px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45,156,219,0.04) 100%);
    box-shadow: 0 4px 16px rgba(45, 156, 219, 0.1);
}

/* ── "Most Popular" Badge ── */
.plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(45, 156, 219, 0.3);
    z-index: 2;
}

/* ── Plan Icon ── */
.plan-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.plan-icon svg {
    width: 17px;
    height: 17px;
}

/* ── Plan Name & Price ── */
.plan-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: 0.1px;
}

.plan-tier-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* ── Divider ── */
.plan-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
    opacity: 0.6;
}

/* ── Feature list ── */
.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.plan-feature-item svg.check-icon {
    width: 12px;
    height: 12px;
    color: var(--success);
    flex-shrink: 0;
    stroke-width: 3;
}

/* ── Note ── */
.plan-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px dashed var(--border);
    width: fit-content;
    margin: 0 auto;
}

/* ══ Responsive ══════════════════════════════════ */

/* 2 columns on medium screens (tablet) */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column on mobile */
@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan-card {
        padding: 16px 14px;
    }

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