.qp-educator-plans {
    --qp-primary: #2563eb;
    --qp-primary-dark: #1d4ed8;
    --qp-success: #16a34a;
    --qp-warning: #f59e0b;
    --qp-danger: #e11d48;
    --qp-dark: #0f172a;
    --qp-muted: #64748b;
    --qp-soft: #eef4ff;
    --qp-border: #e5e7eb;

    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 34rem),
        linear-gradient(180deg, #f4f7ff 0%, #f8fafc 45%, #ffffff 100%);
    margin-top: -1px;
}

.qp-educator-plans .qp-hero {
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(239, 246, 255, .88)),
        radial-gradient(circle at 90% 15%, rgba(22, 163, 74, .12), transparent 18rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.qp-educator-plans .qp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .8rem;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--qp-primary-dark);
    font-size: .82rem;
    font-weight: 700;
}

.qp-educator-plans .qp-hero-title {
    color: var(--qp-dark);
    letter-spacing: -.035em;
}

.qp-educator-plans .qp-hero-text {
    max-width: 720px;
    color: var(--qp-muted);
    line-height: 1.75;
}

.qp-educator-plans .qp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    color: #334155;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.qp-educator-plans .qp-mini-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
    backdrop-filter: blur(12px);
}

.qp-educator-plans .qp-mini-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(37, 99, 235, .10);
    color: var(--qp-primary);
    flex: 0 0 auto;
}

.qp-educator-plans .qp-plan-card {
    position: relative;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.qp-educator-plans .qp-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 24px 55px rgba(15, 23, 42, .13);
}

.qp-educator-plans .qp-plan-card.qp-popular {
    border: 2px solid rgba(37, 99, 235, .55);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .16);
}

.qp-educator-plans .qp-popular-ribbon {
    position: absolute;
    top: 18px;
    right: -42px;
    width: 160px;
    transform: rotate(38deg);
    background: linear-gradient(135deg, var(--qp-primary), #7c3aed);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-align: center;
    padding: .35rem 0;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .25);
}

.qp-educator-plans .qp-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    border-radius: 999px;
    padding: .42rem .72rem;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
}

.qp-educator-plans .qp-badge-parent {
    background: rgba(22, 163, 74, .10);
    color: #15803d;
    border-color: #15803d;
}

.qp-educator-plans .qp-badge-teacher {
    background: rgba(245, 158, 11, .14);
    color: #a16207;
    border-color: #a16207;
}

.qp-educator-plans .qp-badge-business {
    background: rgba(6, 182, 212, .12);
    color: #0e7490;
    border-color: #0e7490;
}

.qp-educator-plans .qp-plan-title {
    color: var(--qp-dark);
    letter-spacing: -.02em;
}

.qp-educator-plans .qp-plan-subtitle {
    color: var(--qp-muted);
    min-height: 44px;
}

.qp-educator-plans .qp-price {
    color: var(--qp-dark);
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1;
}

.qp-educator-plans .qp-price small {
    color: var(--qp-muted);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 0;
}

.qp-educator-plans .qp-yearly-line {
    min-height: 28px;
    color: var(--qp-muted);
}

.qp-educator-plans .qp-save-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .48rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, .10);
    color: #15803d;
    font-weight: 800;
    white-space: nowrap;
}

.qp-educator-plans .qp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qp-educator-plans .qp-feature-list li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    color: #475569;
    font-size: .94rem;
    padding: .56rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, .42);
}

.qp-educator-plans .qp-feature-list li:last-child {
    border-bottom: 0;
}

.qp-educator-plans .qp-feature-list i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, .10);
    color: var(--qp-success);
    font-size: .72rem;
    margin-top: .05rem;
    flex: 0 0 auto;
}

.qp-educator-plans .qp-limit-box {
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, .95));
}

.qp-educator-plans .qp-limit-label {
    color: var(--qp-muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.qp-educator-plans .qp-limit-value {
    color: var(--qp-dark);
    font-size: 1.08rem;
    font-weight: 900;
}

.qp-educator-plans .qp-btn-buy {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--qp-primary), #7c3aed);
    color: #fff;
    font-weight: 800;
    padding: .86rem 1rem;
    box-shadow: 0 14px 26px rgba(37, 99, 235, .24);
}

.qp-educator-plans .qp-btn-buy:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--qp-primary-dark), #6d28d9);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .32);
}

.qp-educator-plans .qp-btn-disabled {
    border-radius: 16px;
    padding: .86rem 1rem;
    font-weight: 800;
}

/* Shared frontend primitives opt in only for the intro and guidance, preserving plan/table styling. */
.qp-educator-plans .qp-ui {
    font-family: inherit;
}

.qp-educator-plans .qp-edu-intro > .qp-ui-card {
    background:
        radial-gradient(ellipse at top right, var(--qp-ui-primary-soft), transparent 65%),
        #fff;
}

.qp-edu-intro-title {
    font-size: clamp(2rem, 3.1vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
}

.qp-edu-intro-description {
    --qp-ui-font-body: 1rem;
    max-width: 760px;
}

.qp-edu-guide-head {
    background: #f5f8fd;
    border-bottom: 1px solid var(--qp-ui-border);
}

.qp-edu-guide-head .qp-ui-card-title {
    font-size: 1.125rem;
    line-height: 1.4;
}

.qp-edu-access {
    --qp-ui-surface: var(--qp-ui-success-soft);
}

@media (max-width: 575.98px) {
    .qp-educator-plans .qp-edu-intro-title {
        font-size: 1.75rem;
    }

    .qp-educator-plans .qp-edu-guide-head,
    .qp-educator-plans .qp-edu-guide .qp-ui-card > .p-4 {
        padding: 20px !important;
    }
}
@media (max-width: 767.98px) {
    .qp-educator-plans .qp-hero {
        border-radius: 22px;
    }

    .qp-educator-plans .qp-plan-card {
        border-radius: 22px;
    }

    .qp-educator-plans .qp-plan-subtitle {
        min-height: auto;
    }
}

/* Dark plan cards experiment */
.qp-educator-plans .qp-plan-card {
    background:
        radial-gradient(circle at 90% 0%, rgba(37, 99, 235, .20), transparent 16rem),
        linear-gradient(145deg, #0f172a 0%, #111827 54%, #0b1120 100%);
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 20px 45px rgba(2, 6, 23, .18);
}

.qp-educator-plans .qp-plan-card:hover {
    border-color: rgba(96, 165, 250, .45);
    box-shadow: 0 28px 60px rgba(2, 6, 23, .28);
}

.qp-educator-plans .qp-plan-card.qp-popular {
    border: 2px solid rgba(96, 165, 250, .75);
    box-shadow: 0 26px 70px rgba(37, 99, 235, .28);
}

.qp-educator-plans .qp-plan-card .qp-plan-title,
.qp-educator-plans .qp-plan-card .qp-price,
.qp-educator-plans .qp-plan-card .qp-limit-value,
.qp-educator-plans .qp-plan-card .text-dark,
.qp-educator-plans .qp-plan-card strong {
    color: #f8fafc !important;
}

.qp-educator-plans .qp-plan-card .qp-plan-subtitle,
.qp-educator-plans .qp-plan-card .qp-yearly-line,
.qp-educator-plans .qp-plan-card .text-muted,
.qp-educator-plans .qp-plan-card del,
.qp-educator-plans .qp-plan-card .qp-feature-list li {
    color: #cbd5e1 !important;
}

.qp-educator-plans .qp-plan-card .qp-price small {
    color: #cbd5e1;
}

.qp-educator-plans .qp-plan-card .qp-limit-box {
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .22);
}

.qp-educator-plans .qp-plan-card .qp-limit-label {
    color: #93a4b8;
}

.qp-educator-plans .qp-plan-card .qp-mini-icon {
    background: rgba(59, 130, 246, .16);
    color: #60a5fa;
}

.qp-educator-plans .qp-plan-card .qp-feature-list li {
    border-bottom: 1px dashed rgba(148, 163, 184, .22);
}

.qp-educator-plans .qp-plan-card .qp-feature-list i {
    background: rgba(34, 197, 94, .16);
    color: #4ade80;
}

.qp-educator-plans .qp-plan-card .qp-badge-parent {
    background: rgba(34, 197, 94, .15);
    color: #86efac;
    border-color: #86efac !important;
}

.qp-educator-plans .qp-plan-card .qp-badge-teacher {
    background: rgba(245, 158, 11, .18);
    color: #facc15;
    border-color: #facc15 !important;
}

.qp-educator-plans .qp-plan-card .qp-badge-business {
    background: rgba(6, 182, 212, .16);
    color: #67e8f9;
    border-color: #67e8f9 !important;
}

.qp-educator-plans .qp-plan-card .qp-save-pill {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.qp-educator-plans .qp-plan-card .qp-btn-buy {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .32);
}

.qp-educator-plans .qp-plan-card .qp-btn-buy:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Compare Plans */
.qp-educator-plans .qp-compare-card {
    overflow: hidden;
}

.qp-educator-plans .qp-compare-card:hover {
    transform: none;
}

.qp-educator-plans .qp-compare-table {
    --bs-table-bg: transparent;
    --bs-table-color: #cbd5e1;
    --bs-table-border-color: rgba(148, 163, 184, .18);
    --qp-ui-comparison-feature-bg: #0f172a;
    min-width: var(--qp-ui-comparison-width, 1180px);
    margin-bottom: 0;
}

.qp-educator-plans .qp-compare-table> :not(caption)>*>* {
    background-color: transparent;
    color: inherit;
    border-bottom-color: rgba(148, 163, 184, .18);
    box-shadow: none;
    padding: var(--qp-ui-comparison-cell-padding, 1rem .9rem);
    vertical-align: middle;
}

.qp-educator-plans .qp-compare-table thead th {
    background: rgba(37, 99, 235, .10);
    color: #f8fafc;
    font-weight: 800;
    border-bottom: 1px solid rgba(96, 165, 250, .25);
}

.qp-educator-plans .qp-compare-table thead th:first-child {
    min-width: var(--qp-ui-comparison-feature-width, 250px);
    text-align: left;
}

.qp-educator-plans .qp-compare-table tbody th {
    min-width: var(--qp-ui-comparison-feature-width, 250px);
    color: #e2e8f0;
    font-weight: 700;
}

.qp-educator-plans .qp-compare-table tbody td {
    min-width: var(--qp-ui-comparison-plan-width, 165px);
    text-align: center;
    color: #cbd5e1;
}

.qp-educator-plans .qp-compare-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #4ade80;
    font-weight: 600;
}

.qp-educator-plans .qp-compare-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #94a3b8;
    font-weight: 700;
}

.qp-educator-plans .qp-compare-value {
    color: #f8fafc;
    font-weight: 800;
}

.qp-educator-plans .qp-compare-feature-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, .14);
    color: #60a5fa;
    margin-right: .55rem;
    flex: 0 0 auto;
}

.qp-educator-plans .qp-compare-footer {
    border-top: 1px solid rgba(148, 163, 184, .18);
    color: #cbd5e1;
}

.qp-educator-plans .qp-compare-footer i {
    color: #4ade80;
}

@media (max-width: 575.98px) {
    .qp-educator-plans .qp-compare-feature-icon {
        width: 22px;
        height: 22px;
        margin-right: .375rem;
        border-radius: 7px;
        font-size: .8125rem;
    }
}
