/* ==========================================================================
   BaysideCEU Bundle Builder — Frontend Styles v3.0
   Palette: Dark #03045e | Primary #073d97 | Bright #0077b6 | Gold #ffbd59
   ========================================================================== */

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

.bceu-builder,
.bceu-builder * {
    box-sizing: border-box;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bceu-builder {
    max-width: 860px;
    margin: 0 auto;
    color: #1a1a2e;
    font-size: 15px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARD — shared base for selector & wizard
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Card-level fade transitions (selector ↔ wizard) */
@keyframes bceu-card-fade-out {
    from { opacity: 1; transform: translateY(0);   }
    to   { opacity: 0; transform: translateY(-10px); }
}
@keyframes bceu-card-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.bceu-card--out { animation: bceu-card-fade-out 340ms ease forwards; }
.bceu-card--in  { animation: bceu-card-fade-in  340ms ease forwards; }


/* ══════════════════════════════════════════════════════════════════════════
   HERO BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-hero {
    background: linear-gradient(135deg, #03045e 0%, #073d97 60%, #0077b6 100%);
    padding: 44px 40px 38px;
    text-align: center;
    color: #ffffff;
}

.bceu-hero__pre {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #ffbd59;
    margin: 0 0 14px 0;
}

.bceu-hero__heading {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.15;
}

.bceu-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURE CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 28px 32px;
}

@media (max-width: 640px) {
    .bceu-feature-cards { grid-template-columns: 1fr; padding: 20px; }
}

.bceu-feature-card {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(7,61,151,0.07);
}

.bceu-feature-card__icon {
    width: 48px;
    height: 48px;
    background: #e8f0fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    color: #073d97;
}

.bceu-feature-card__icon svg { width: 22px; height: 22px; }

.bceu-feature-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #03045e;
    margin: 0 0 6px 0;
}

.bceu-feature-card__desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════════════════
   SELECTOR AREA
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-section-rule {
    border: none;
    border-top: 2px solid #ffbd59;
    margin: 0;
}

.bceu-selector-heading {
    font-size: 20px;
    font-weight: 700;
    color: #03045e;
    margin: 28px 32px 4px;
}

.bceu-selector-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 32px 20px;
    line-height: 1.6;
}

.bceu-selector-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 0 32px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .bceu-selector-row     { grid-template-columns: 1fr; padding: 0 20px; }
    .bceu-selector-heading,
    .bceu-selector-sub     { margin-left: 20px; margin-right: 20px; }
}

.bceu-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bceu-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}

.bceu-field select {
    height: 46px;
    padding: 0 40px 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: #1a1a2e;
    background-color: #f8fafc;
    width: 100%;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.bceu-field select:focus {
    border-color: #073d97;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7,61,151,0.1);
}

.bceu-field select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.bceu-selector-footer {
    display: flex;
    justify-content: center;
    padding: 4px 32px 36px;
}


/* ══════════════════════════════════════════════════════════════════════════
   WIZARD CARD
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-wizard-card { padding: 0; }

/* ── Top bar ── */
.bceu-wizard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid #f0f4f9;
    gap: 12px;
    flex-wrap: wrap;
}

.bceu-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    color: #073d97;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.bceu-back-btn:hover { background: #e8f0fb; border-color: #073d97; }

.bceu-selection-chip {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    min-width: 0;
}

.bceu-wizard-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* ── Progress dots ── */
.bceu-progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bceu-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dde3ed;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.bceu-dot--active {
    width: 24px;
    border-radius: 4px;
    background: #073d97;
}

.bceu-dot--done {
    background: #22c55e;
}

.bceu-step-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── Important note ── */
.bceu-important-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 48px 0;
}

.bceu-important-note__icon {
    flex-shrink: 0;
    color: #94a3b8;
    margin-top: 1px;
}

.bceu-important-note__body { flex: 1; min-width: 0; }

.bceu-important-note__title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
    margin: 0 0 3px 0;
}

.bceu-important-note__text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Required course warning banner ── */
.bceu-req-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #ffbd59;
    border-left: 3px solid #ffbd59;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.bceu-req-warning__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #d97706;
    margin-top: 1px;
}

.bceu-req-warning__text {
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
    margin: 0;
    line-height: 1.55;
}


.bceu-step-body {
    padding: 40px 48px 0;
    min-height: 280px;
}

@keyframes bceu-step-exit-left {
    from { opacity: 1; transform: translateX(0);    }
    to   { opacity: 0; transform: translateX(-22px); }
}
@keyframes bceu-step-enter-right {
    from { opacity: 0; transform: translateX(22px);  }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes bceu-step-exit-right {
    from { opacity: 1; transform: translateX(0);    }
    to   { opacity: 0; transform: translateX(22px);  }
}
@keyframes bceu-step-enter-left {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0);    }
}

.bceu-step--exit-left   { animation: bceu-step-exit-left   340ms ease forwards; }
.bceu-step--enter-right { animation: bceu-step-enter-right 400ms ease forwards; }
.bceu-step--exit-right  { animation: bceu-step-exit-right  340ms ease forwards; }
.bceu-step--enter-left  { animation: bceu-step-enter-left  400ms ease forwards; }

/* ── Step section wrapper ── */
.bceu-step-section { padding-bottom: 4px; }

.bceu-step-heading {
    font-size: 24px;
    font-weight: 700;
    color: #073d97;
    margin: 0 0 12px;
    line-height: 1.25;
    text-align: center;
}

.bceu-step-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 auto 28px;
    line-height: 1.7;
    max-width: 600px;
    text-align: center;
}

/* ── Hour progress bar ── */
.bceu-hour-bar {
    padding: 24px 48px 0;
    margin-top: 32px;
    border-top: 1px solid #f0f4f9;
}

.bceu-hour-bar__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bceu-hour-bar__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
}

.bceu-hour-bar__count {
    font-size: 13px;
    font-weight: 700;
    color: #03045e;
}

.bceu-hour-bar__track {
    height: 8px;
    background: #e8edf5;
    border-radius: 99px;
    overflow: hidden;
}

.bceu-hour-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #073d97, #0077b6);
    border-radius: 99px;
    transition: width 0.45s ease, background 0.35s ease;
    min-width: 4px;
}

.bceu-hour-bar__fill.is-complete {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.bceu-hour-remaining {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}

.bceu-hour-remaining.is-met { color: #16a34a; }

/* ── Wizard footer ── */
.bceu-wizard-footer {
    padding: 28px 48px 44px;
    display: flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .bceu-wizard-topbar    { padding: 16px 20px; }
    .bceu-step-body        { padding: 24px 24px 0; }
    .bceu-hour-bar         { padding: 20px 24px 0; }
    .bceu-wizard-footer    { padding: 20px 24px 32px; }
    .bceu-selection-chip   { display: none; }
    .bceu-important-note   { margin: 16px 24px 0; }
}


/* ══════════════════════════════════════════════════════════════════════════
   COURSE LISTS
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Info card (required — no toggle) ── */
.bceu-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #03045e;
    border-radius: 8px;
    padding: 18px 20px;
}

.bceu-info-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #03045e;
    background: #e8f0fb;
    border: 1px solid #b8cef5;
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* ── Toggle card (periodic / alternating) ── */
.bceu-course-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.bceu-course-card.is-off {
    opacity: 0.38;
    background: #f1f5f9;
}

.bceu-course-card.cat--required_every_renewal { border-left-color: #03045e; }
.bceu-course-card.cat--periodic    { border-left-color: #073d97; }
.bceu-course-card.cat--alternating { border-left-color: #0077b6; }

/* ── Shared course content ── */
.bceu-course-info  { flex: 1; min-width: 0; }

.bceu-course-title {
    font-size: 14px;
    font-weight: 600;
    color: #03045e;
    margin: 0 0 5px 0;
}

.bceu-course-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}

.bceu-no-hours-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: #fff5d6;
    color: #7a4f00;
    border: 1px solid #ffbd59;
}

.bceu-course-note {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 5px;
}

.bceu-course-price {
    font-size: 14px;
    font-weight: 700;
    color: #03045e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Toggle ── */
.bceu-toggle-wrap { display: flex; align-items: center; flex-shrink: 0; }

.bceu-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.bceu-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.bceu-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bceu-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.bceu-toggle input:checked + .bceu-toggle-slider            { background: #073d97; }
.bceu-toggle input:checked + .bceu-toggle-slider::before    { transform: translateX(18px); }
.bceu-toggle input:disabled + .bceu-toggle-slider           { cursor: not-allowed; opacity: 0.5; }


/* ══════════════════════════════════════════════════════════════════════════
   ELECTIVE STEP
   ══════════════════════════════════════════════════════════════════════════ */

/* Framing message */
.bceu-elective-framing {
    background: linear-gradient(135deg, #03045e 0%, #073d97 100%);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.bceu-elective-framing__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ffbd59;
    margin: 0 0 7px;
}

.bceu-elective-framing__headline {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.45;
}

.bceu-elective-framing__hours {
    color: #ffbd59;
}

.bceu-elective-framing__sub {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.55;
}

.bceu-elective-empty {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
    font-style: italic;
}

/* Elective cards */
.bceu-elective-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    gap: 12px;
}

.bceu-elective-info  { flex: 1; min-width: 0; }

.bceu-elective-title {
    font-size: 14px;
    font-weight: 600;
    color: #03045e;
    margin: 0 0 4px 0;
}

.bceu-elective-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.bceu-elective-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.bceu-btn-replace,
.bceu-btn-remove {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.bceu-btn-replace { background: #fff; border: 1px solid #073d97; color: #073d97; }
.bceu-btn-replace:hover { background: #e8f0fb; }

.bceu-btn-remove { background: #fff; border: 1px solid #e2e8f0; color: #ef4444; }
.bceu-btn-remove:hover { background: #fef2f2; border-color: #fecaca; }

/* Add elective button */
.bceu-add-elective-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 10px;
    background: transparent;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #64748b;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bceu-add-elective-btn:hover {
    border-color: #073d97;
    color: #073d97;
    background: #e8f0fb;
}


/* ══════════════════════════════════════════════════════════════════════════
   SUMMARY STEP
   ══════════════════════════════════════════════════════════════════════════ */

/* Totals bar */
.bceu-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 32px;
    gap: 16px;
    border: 2px solid #e2e8f0;
    background: #fafbfc;
}

.bceu-summary-total.is-complete {
    background: #f0fdf4;
    border-color: #22c55e;
}

.bceu-summary-total.is-incomplete {
    background: #fffbeb;
    border-color: #ffbd59;
}

.bceu-summary-total__context {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 4px;
}

.bceu-summary-total__hours {
    font-size: 26px;
    font-weight: 700;
    color: #03045e;
    margin: 0 0 3px;
    line-height: 1.1;
}

.bceu-summary-total.is-complete   .bceu-summary-total__hours { color: #15803d; }
.bceu-summary-total.is-incomplete .bceu-summary-total__hours { color: #92400e; }

.bceu-summary-total__hours span {
    font-size: 16px;
    font-weight: 500;
    color: #94a3b8;
}

.bceu-summary-total__status {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.bceu-summary-total.is-complete   .bceu-summary-total__status { color: #15803d; }
.bceu-summary-total.is-incomplete .bceu-summary-total__status { color: #92400e; }

.bceu-summary-total__right { text-align: right; flex-shrink: 0; }

.bceu-summary-total__price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
    margin: 0 0 3px;
}

.bceu-summary-total__price {
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.4px;
}

/* Summary groups */
.bceu-summary-group {
    margin-bottom: 28px;
}

.bceu-summary-group__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin: 0 0 8px;
}

.bceu-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #e2e8f0;
    border-radius: 7px;
    margin-bottom: 8px;
}

.bceu-summary-row.cat--required_every_renewal { border-left-color: #03045e; }
.bceu-summary-row.cat--periodic               { border-left-color: #073d97; }
.bceu-summary-row.cat--alternating            { border-left-color: #0077b6; }
.bceu-summary-row.cat--general_elective       { border-left-color: #64748b; }

.bceu-summary-row__name  { flex: 1; font-size: 13px; font-weight: 500; color: #03045e; min-width: 0; }
.bceu-summary-row__hours { font-size: 12px; color: #64748b; white-space: nowrap; font-weight: 500; }
.bceu-summary-row__price { font-size: 13px; font-weight: 700; color: #03045e; white-space: nowrap; }

/* Checkout section */
.bceu-summary-checkout {
    text-align: center;
    border-top: 1px solid #e8edf5;
    padding-top: 32px;
    margin-top: 12px;
    padding-bottom: 4px;
}

.bceu-checkout-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0;
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 36px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.bceu-btn:focus          { outline: 2px solid #073d97; outline-offset: 2px; }
.bceu-btn:active:not(:disabled) { transform: scale(0.97); }
.bceu-btn:disabled       { opacity: 0.5; cursor: not-allowed; transform: none; }

.bceu-btn--primary {
    background: linear-gradient(135deg, #073d97, #0a4fb5);
    color: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 12px rgba(7,61,151,0.22);
}

.bceu-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #03045e, #073d97);
    box-shadow: 0 4px 18px rgba(7,61,151,0.32);
}

.bceu-btn--checkout {
    background: linear-gradient(135deg, #073d97, #0a4fb5);
    color: #ffffff;
    font-size: 16px;
    height: 54px;
    padding: 0 48px;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(7,61,151,0.22);
}

.bceu-btn--checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #03045e, #073d97);
    box-shadow: 0 4px 22px rgba(7,61,151,0.32);
}


/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3,4,94,0.52);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bceu-modal {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(3,4,94,0.22);
    overflow: hidden;
}

.bceu-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    flex-shrink: 0;
}

.bceu-modal-title { font-size: 18px; font-weight: 700; color: #03045e; margin: 0; }

.bceu-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.bceu-modal-close:hover { color: #03045e; }

.bceu-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 8px 24px 16px;
    flex-shrink: 0;
}

.bceu-modal-list  { flex: 1; overflow-y: auto; padding: 0 24px; }

.bceu-modal-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    gap: 12px;
}

.bceu-modal-course:hover { border-color: #073d97; background: #e8f0fb; }

.bceu-modal-course-info  { flex: 1; }
.bceu-modal-course-title { font-size: 14px; font-weight: 600; color: #03045e; margin: 0 0 4px 0; }
.bceu-modal-course-meta  { font-size: 12px; color: #64748b; display: flex; gap: 12px; }
.bceu-modal-course-arrow { color: #94a3b8; font-size: 16px; flex-shrink: 0; }
.bceu-modal-empty        { text-align: center; padding: 32px 16px; color: #94a3b8; font-size: 14px; }

.bceu-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.bceu-btn-cancel {
    display: block;
    width: 100%;
    height: 44px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.bceu-btn-cancel:hover { background: #fafbfc; }


/* ══════════════════════════════════════════════════════════════════════════
   LOADING / ERROR
   ══════════════════════════════════════════════════════════════════════════ */
.bceu-loading {
    text-align: center;
    padding: 64px 24px;
    color: #64748b;
    font-size: 15px;
}

.bceu-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e8f0fb;
    border-top-color: #073d97;
    border-radius: 50%;
    animation: bceu-spin 0.75s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes bceu-spin { to { transform: rotate(360deg); } }

.bceu-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}
