#loginBox {
    background-color: #fefefe;
    backdrop-filter: blur(10px);
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.membership-card-text {
    color: #1a1a1a !important;

    /* Rich dark text */
    opacity: 1 !important;

    /* Override Bootstrap muted */
}

/* OPTIONAL: keep Basic badge green, Plus badge black */
.save-badge-basic {
    /* inherits base .save-badge styles you already have */
}

.save-badge-plus {
    background: #000;

    /* black badge */
    color: #fff;

    /* white text */
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* a slightly stronger flash that works on dark badges too */
@keyframes flashPulseStrong {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.08);
        filter: brightness(1.35);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.flash-on-strong {
    animation: flashPulseStrong .9s ease-in-out 3;
}

/* Force black text in PLUS column only */
.plus-card,


.plus-card * {
    color: #000 !important;
}

/* Small currency symbol, top-left next to price digits */
.pricing_items__price_info .price-currency {
    font-size: 1.25rem;

    /* small £ */
    line-height: 1;
    margin-right: .25rem;
    align-self: flex-start;

    /* keep at top of the price row */
    transform: translateY(-0.25em);
}

/* Billing toggle wrapper */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 16px;
}

/* Toggle track (rounded background) */
.toggle-pill {
    display: inline-flex;
    background: #f3f4f6;

    /* light gray track */
    border-radius: 9999px;

    /* full pill */
    padding: 6px;

    /* spacing inside the track */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Buttons inside */
.toggle-pill button {
    border: none;
    background: transparent;
    padding: 12px 28px;

    /* bigger buttons */
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;

    /* slightly larger text */
    cursor: pointer;
    transition: all 0.25s ease;
    color: #374151;

    /* default gray text */
}

/* Active button */
.toggle-pill .active {
    background: #111827;

    /* dark fill */
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Soft pulse on yearly so parents notice the discount (only when not selected) */
@keyframes le-yearly-nudge-pulse {
    0%, 100% {
        background: transparent;
        box-shadow: none;
        color: #374151;
    }
    50% {
        background: rgba(255, 193, 7, 0.35);
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.22);
        color: #111827;
    }
}
.toggle-pill #btnYearly.le-yearly-nudge:not(.active) {
    animation: le-yearly-nudge-pulse 2.4s ease-in-out infinite;
}
.toggle-pill #btnYearly.le-yearly-nudge-strong:not(.active) {
    animation: le-yearly-nudge-pulse 1.35s ease-in-out infinite;
    font-weight: 800;
}
.toggle-pill #btnYearly.active {
    animation: none;
}

/* —— Quick plan advice (above billing toggle) —— */
.le-plan-advice {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    padding: 1.35rem 1.4rem 1.25rem;
    text-align: left;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #fff8e7 100%);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.le-plan-advice-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    font-weight: 900;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.02em;
    text-align: center;
}
.le-plan-advice-sub {
    margin: 0 0 1.1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.98rem;
    font-weight: 600;
}
.le-plan-advice-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.le-plan-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    user-select: none;
}
.le-plan-advice-item:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.18);
}
.le-plan-advice-item:has(.le-plan-advice-check:checked) {
    border-color: #198754;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.12);
}
.le-plan-advice-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.le-plan-advice-box {
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: 0.1rem;
    border-radius: 0.45rem;
    border: 2.5px solid #9ca3af;
    background: #fff;
    position: relative;
    transition: all 0.18s ease;
}
.le-plan-advice-check:checked + .le-plan-advice-box {
    border-color: #198754;
    background: #198754;
}
.le-plan-advice-check:checked + .le-plan-advice-box::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.18rem;
    width: 0.42rem;
    height: 0.78rem;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.le-plan-advice-text {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #374151;
    text-align: left;
}
/* Recommendation = status message (not a CTA button) */
.le-plan-advice-result {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    background: #fff;
    color: #111827;
    border: 1.5px solid #e5e7eb;
    border-left: 4px solid #9ca3af;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    user-select: text;
}
.le-plan-advice-result.d-none {
    display: none !important;
}
.le-plan-advice-result-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.le-plan-advice-result.is-pro .le-plan-advice-result-icon {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.le-plan-advice-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.le-plan-advice-result-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.2;
}
.le-plan-advice-result-text {
    flex: 0 1 auto;
    color: #111827;
}
.le-plan-advice-result.is-plus {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
    color: #111827;
}
.le-plan-advice-result.is-pro {
    background: #fff7ed;
    border-color: #fed7aa;
    border-left-color: #ff6b35;
    color: #111827;
}

/* Advice highlight handled in plan-compare.css (inset grow + column gaps) */

@media (max-width: 575.98px) {
    .le-plan-advice {
        padding: 1.1rem 0.9rem;
    }
    .le-plan-advice-text {
        font-size: 0.95rem;
    }
    .toggle-pill button {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

nav[aria-label="Language selector"] a {
    color: inherit;
}

nav[aria-label="Language selector"] a:hover img {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

nav[aria-label="Language selector"] img {
    transition: .15s ease;
}

/* ── Membership comparison table ── */
.le-plan-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.75rem auto 0;
    padding-top: 0.85rem;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    background: #fff;
    border: 1px solid #e8ecf1;
}

.le-plan-compare {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 12px 0;
    margin: 0;
    font-size: 0.95rem;
    table-layout: fixed;
}

.le-plan-compare th,
.le-plan-compare td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #eef1f5;
    text-align: center;
}

.le-plan-compare tbody td {
    vertical-align: top;
    padding-top: 1rem;
}

.le-plan-compare th.le-feat,
.le-plan-compare td.le-feat {
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    width: 22%;
    min-width: 10rem;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 20;
    box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.18);
}

.le-plan-compare thead th.le-col-free,
.le-plan-compare thead th.le-col-basic,
.le-plan-compare thead th.le-col-plus,
.le-plan-compare thead th.le-col-pro,
.le-plan-compare tbody td.le-col-free,
.le-plan-compare tbody td.le-col-basic,
.le-plan-compare tbody td.le-col-plus,
.le-plan-compare tbody td.le-col-pro,
.le-plan-compare tfoot td.le-col-free,
.le-plan-compare tfoot td.le-col-basic,
.le-plan-compare tfoot td.le-col-plus,
.le-plan-compare tfoot td.le-col-pro {
    width: 19.5%;
}

.le-plan-compare thead th {
    border-bottom: 2px solid #e5e7eb;
    background: #fafbfc;
    vertical-align: top;
}

.le-plan-compare thead th.le-feat {
    background: #fafbfc;
    z-index: 22;
}

.le-plan-compare thead th {
    padding: 1.35rem 0.75rem 1.15rem;
}

.le-plan-compare thead .le-plan-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
}

.le-plan-compare .le-plan-icon {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.le-plan-compare .le-plan-icon.le-plan-icon-pro {
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    width: 152px;
    height: 152px;
}

.le-plan-compare .le-plan-name {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    color: #111827;
}

.le-plan-compare .le-plan-tag {
    display: block;
    font-size: 1rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
    margin-top: 0.25rem;
}

.le-plan-compare .le-plan-price {
    font-size: 2.75rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.05;
    margin-top: 0.65rem;
}

.le-plan-compare .le-plan-price .le-currency {
    font-size: 1.35rem;
    font-weight: 800;
    vertical-align: super;
    margin-right: 2px;
}

.le-plan-compare .le-plan-price .term {
    font-size: 1.15rem;
    font-weight: 700;
    color: #6b7280;
}

.le-plan-compare .le-cell-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    max-width: 7.5rem;
    vertical-align: top;
}

.le-plan-compare .le-cell-stack .le-check {
    flex-shrink: 0;
}

.le-plan-compare .le-cell-stack .le-cell-text {
    margin: 0;
}

.le-plan-compare .le-col-free { background: #fff; }
.le-plan-compare .le-col-basic { background: rgba(25, 135, 84, 0.06); }
.le-plan-compare .le-col-plus { background: rgba(255, 193, 7, 0.14); }
.le-plan-compare .le-col-pro { background: rgba(255, 107, 53, 0.07); }

.le-plan-compare thead .le-col-basic,
.le-plan-compare tfoot .le-col-basic { background: rgba(25, 135, 84, 0.1); }
.le-plan-compare thead .le-col-plus,
.le-plan-compare tfoot .le-col-plus { background: rgba(255, 193, 7, 0.22); }
.le-plan-compare thead .le-col-pro,
.le-plan-compare tfoot .le-col-pro { background: rgba(255, 107, 53, 0.12); }

/* PLUS = most popular highlight */
.le-plan-compare thead th.le-col-plus {
    border: 3px solid #e6a800;
    border-bottom: 2px solid #e6a800;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
    position: relative;
    z-index: 1;
}
.le-plan-compare tbody td.le-col-plus {
    border-left: 3px solid #e6a800;
    border-right: 3px solid #e6a800;
}
.le-plan-compare tfoot td.le-col-plus {
    border: 3px solid #e6a800;
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.le-most-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: inline-block;
    background: #111827;
    color: #ffc107;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.le-top-tier {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: inline-block;
    background: #111827;
    color: #ff6b35;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.le-plan-compare .le-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.le-plan-compare .le-cross {
    color: #c4c9d1;
    font-size: 1.1rem;
    font-weight: 700;
}

.le-plan-compare .le-cell-text {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
}

.le-plan-compare .le-cell-muted {
    color: #9ca3af;
    font-weight: 500;
}

.le-plan-compare tr.le-sep td {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.le-plan-compare tr.le-sep td.le-feat {
    background: #f3f4f6 !important;
    color: #4b5563;
    box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.12);
}

.le-plan-compare tr.le-sep td.le-col-free {
    background: #ffffff !important;
    color: #6b7280;
}

.le-plan-compare tr.le-sep td.le-col-basic {
    background: #198754 !important;
    color: rgba(255, 255, 255, 0.85);
}

.le-plan-compare tr.le-sep td.le-col-plus {
    background: #ffc107 !important;
    color: #5b6472;
}

.le-plan-compare tr.le-sep td.le-col-pro {
    background: #ff6b35 !important;
    color: rgba(255, 255, 255, 0.85);
}

.le-plan-compare tfoot td {
    border-bottom: none;
    padding: 1rem 0.65rem;
}

.le-plan-compare tfoot td.le-feat {
    background: #fff !important;
    z-index: 22;
}

.le-plan-compare tfoot .btn {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: normal;
    line-height: 1.25;
    padding: 0.55rem 0.65rem;
    border-radius: 9999px;
    min-height: 2.75rem;
}

.le-plan-compare .plan-savings {
    display: block;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.le-plan-compare .save-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: #111827;
    color: #fff;
}

.le-plan-compare-reg .le-col-free {
    outline: none;
}

/* FREE grey also in style.css (plan-compare.css has the !important winner) */
.le-plan-compare-wrap.le-plan-compare-reg th.le-col-free,
.le-plan-compare-wrap.le-plan-compare-reg td.le-col-free {
    background: #f3f4f6 !important;
}

.le-reg-signup-panel {
    background: linear-gradient(160deg, #146c43 0%, #198754 55%, #20c997 100%);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 32px rgba(20, 108, 67, 0.28);
    max-width: 420px;
}

.le-reg-signup-panel .form-control {
    border: none;
}

@media (max-width: 991.98px) {
    .le-plan-compare {
        font-size: 0.88rem;
    }
    .le-plan-compare .le-plan-icon {
        width: 100px;
        height: 100px;
        margin-bottom: -2.5rem;
    }
    .le-plan-compare .le-plan-icon.le-plan-icon-pro {
        width: 112px;
        height: 112px;
        margin-bottom: -2.7rem;
    }
    .le-plan-compare .le-plan-price-card {
        padding-top: 2.9rem;
    }
    .le-plan-compare .le-plan-name {
        font-size: 1.1rem;
    }
    .le-plan-compare .le-plan-tag {
        font-size: 0.8rem;
    }
    .le-plan-compare .le-plan-price {
        font-size: 2rem;
    }
    .le-plan-compare .le-plan-price .le-currency {
        font-size: 1rem;
    }
    .le-plan-compare .le-plan-price .term {
        font-size: 0.9rem;
    }
}
