/* ============================================================================
   soft-futur-components.css
   Soft Futuristic Minimalism — Component layer
   ----------------------------------------------------------------------------
   Load SAU css/luyenai/default-soft-futur.css.
   Token reference: --sft-* trong default-soft-futur.css.
   Spec: docs/superpowers/specs/2026-05-20-soft-futur-foundation-design.md
   Naming: prefix .sft-, BEM-lite (.block__element, .block--modifier).
   ============================================================================ */

/* ===== 1. Hero greeting ===================================================
   Class: .sft-hero  (+ .is-new / .is-streak-active / .is-streak-risk /
                       .is-completed-today / .is-premium)
   ========================================================================== */

.sft-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 24px 28px;
    text-align: center;
    border-radius: var(--sft-r-2xl);
    background: var(--sft-glass);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-rest);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}
@supports not (backdrop-filter: blur(1px)) {
    .sft-hero { background: var(--sft-glass-hi); }
}

.sft-hero__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--sft-shadow-chip);
    font-size: 28px;
    line-height: 1;
}

.sft-hero__greeting {
    font-family: var(--sft-font-display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--sft-ink);
    margin: 0 0 12px;
}

.sft-hero__subtitle {
    font-family: var(--sft-font-body);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.5;
    color: var(--sft-ink-muted);
    margin: 0 0 16px;
    font-weight: 400;
}

.sft-hero__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ----- State modifiers ----- */
.sft-hero.is-new .sft-hero__avatar         { background: var(--sft-canvas-2); }
.sft-hero.is-new .sft-hero__greeting       { color: var(--sft-ink); }

.sft-hero.is-streak-active                 { border-color: rgba(154,205,50,0.45); }
.sft-hero.is-streak-active .sft-hero__avatar { background: var(--sft-lime-soft); color: var(--sft-lime-deep); }
.sft-hero.is-streak-active::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit; pointer-events: none;
    z-index: -1;
    box-shadow: 0 0 0 1px var(--sft-lime-glow), 0 24px 48px rgba(154,205,50,0.12);
}

.sft-hero.is-streak-risk                   { border-color: rgba(240,178,122,0.5); }
.sft-hero.is-streak-risk .sft-hero__avatar { background: var(--sft-warm-soft); color: #B26B3A; }

.sft-hero.is-completed-today               { border-color: rgba(15,20,25,0.08); }
.sft-hero.is-completed-today .sft-hero__avatar { background: var(--sft-canvas-3); color: var(--sft-lime-deep); font-weight: 600; }

.sft-hero.is-premium {
    border-color: rgba(0,51,102,0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(221,242,255,0.7) 100%);
}
.sft-hero.is-premium .sft-hero__avatar { background: #fff; color: #003366; }
.sft-hero.is-premium .sft-hero__greeting { color: #0F1E33; }

@media (max-width: 480px) {
    .sft-hero { padding: 24px 18px 20px; border-radius: var(--sft-r-xl); }
    .sft-hero__avatar { width: 56px; height: 56px; font-size: 24px; }
}

/* ===== 2. Glass card ======================================================
   Class: .sft-card (+ .sft-card--sm/--md/--lg, --lime/--sky/--quiet)
   ========================================================================== */

.sft-card {
    position: relative;
    background: var(--sft-glass);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-rest);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    color: var(--sft-ink);
    transition: transform 280ms ease, box-shadow 280ms ease;
}
@supports not (backdrop-filter: blur(1px)) {
    .sft-card { background: var(--sft-glass-hi); }
}

.sft-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sft-shadow-lift);
}

.sft-card__header { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.sft-card__body   { font-size: 14px; line-height: 1.55; color: var(--sft-ink-soft); }
.sft-card__footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sft-ink-hair); }

/* ----- Size modifiers ----- */
.sft-card--sm { padding: 16px; border-radius: var(--sft-r-lg); }
.sft-card--md { padding: 22px; border-radius: var(--sft-r-xl); }
.sft-card--lg { padding: 28px; border-radius: var(--sft-r-2xl); }

@media (min-width: 640px) {
    .sft-card--md { padding: 24px; }
    .sft-card--lg { padding: 32px; }
}

/* ----- Tone modifiers ----- */
.sft-card--lime { border-color: rgba(154,205,50,0.32); }
.sft-card--lime::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--sft-lime);
}

.sft-card--sky { border-color: rgba(79,168,255,0.32); }
.sft-card--sky::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--sft-sky);
}

.sft-card--warm { border-color: rgba(224,144,47,0.34); }
.sft-card--warm::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0; background: #E0902F;
}

.sft-card--quiet {
    background: #ffffff;
    border: 1px solid var(--sft-ink-hair);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.sft-card--quiet:hover { box-shadow: var(--sft-shadow-rest); transform: none; }

/* ===== 3. Progress chip ===================================================
   Class: .sft-chip (+ .sft-chip--streak/--rank/--points/--diamond/--completed)
   ========================================================================== */

.sft-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 12px;
    border-radius: var(--sft-r-pill);
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-chip);
    font-family: var(--sft-font-body);
    font-size: 13px;
    line-height: 1;
    color: var(--sft-ink);
    white-space: nowrap;
    transition: transform 200ms ease;
}
.sft-chip:hover { transform: translateY(-1px); }

.sft-chip__icon  { display: inline-flex; align-items: center; justify-content: center; width: 18px; font-size: 13px; line-height: 1; }
.sft-chip__label { color: var(--sft-ink-muted); font-weight: 500; }
.sft-chip__value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ----- Kind modifiers ----- */
.sft-chip--streak    { background: var(--sft-warm-soft); border-color: rgba(240,178,122,0.4); }
.sft-chip--streak .sft-chip__icon  { color: #B26B3A; }
.sft-chip--streak .sft-chip__value { color: #B26B3A; }

.sft-chip--rank      { background: rgba(0,51,102,0.06); border-color: rgba(0,51,102,0.2); }
.sft-chip--rank .sft-chip__icon  { color: #003366; }
.sft-chip--rank .sft-chip__value { color: #003366; }

.sft-chip--points    { background: var(--sft-lime-soft); border-color: rgba(154,205,50,0.4); }
.sft-chip--points .sft-chip__icon  { color: var(--sft-lime-deep); }
.sft-chip--points .sft-chip__value { color: var(--sft-lime-deep); }

.sft-chip--diamond   { background: var(--sft-sky-soft); border-color: rgba(79,168,255,0.32); }
.sft-chip--diamond .sft-chip__icon  { color: #1F6FB3; }
.sft-chip--diamond .sft-chip__value { color: #1F6FB3; }

.sft-chip--completed { background: rgba(255,255,255,0.9); border-color: var(--sft-ink-hair); }
.sft-chip--completed .sft-chip__icon  { color: var(--sft-lime-deep); }
.sft-chip--completed .sft-chip__value { color: var(--sft-ink); }

/* ===== 4. Quick action pill ===============================================
   Class: .sft-quick-action (+ .sft-quick-actions wrapper)
   ========================================================================== */

.sft-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 720px) {
    .sft-quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sft-quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    border-radius: var(--sft-r-xl);
    background: var(--sft-glass-hi);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-rest);
    text-decoration: none;
    color: var(--sft-ink);
    font-family: var(--sft-font-body);
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.sft-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--sft-shadow-lift);
}
.sft-quick-action:focus-visible {
    outline: 2px solid var(--sft-lime);
    outline-offset: 3px;
}

.sft-quick-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--sft-canvas-2);
    font-size: 18px;
    line-height: 1;
    margin-bottom: 6px;
}

.sft-quick-action__label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sft-quick-action__meta {
    font-size: 12px;
    color: var(--sft-ink-muted);
    font-weight: 500;
}

/* ----- Preset modifiers ----- */
.sft-quick-action--rollcall .sft-quick-action__icon { background: var(--sft-lime-soft); color: var(--sft-lime-deep); }
.sft-quick-action--qa       .sft-quick-action__icon { background: var(--sft-sky-soft);  color: #1F6FB3; }
.sft-quick-action--essay    .sft-quick-action__icon { background: rgba(0,51,102,0.08);  color: #003366; }
.sft-quick-action--deep     .sft-quick-action__icon { background: var(--sft-warm-soft); color: #B26B3A; }

/* ===== 5. Daily command pill ==============================================
   Class: .sft-command (+ .sft-command--compact)
   ========================================================================== */

.sft-command {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: var(--sft-r-pill);
    background: var(--sft-glass-hi);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-lift);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}
@supports not (backdrop-filter: blur(1px)) {
    .sft-command { background: #ffffff; }
}

.sft-command:focus-within {
    box-shadow: 0 0 0 3px var(--sft-lime-soft), var(--sft-shadow-lift);
    border-color: rgba(154,205,50,0.5);
}

.sft-command__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 12px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--sft-font-body);
    font-size: 16px;
    color: var(--sft-ink);
}
.sft-command__input::placeholder { color: var(--sft-ink-muted); font-weight: 400; }

.sft-command__plus,
.sft-command__mic,
.sft-command__send {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, background 160ms ease;
}

.sft-command__plus { background: var(--sft-canvas-2); color: var(--sft-ink); }
.sft-command__plus:hover { background: var(--sft-canvas-3); transform: translateY(-1px); }

.sft-command__mic  { background: var(--sft-canvas-2); color: var(--sft-ink-soft); }
.sft-command__mic:hover { background: var(--sft-sky-soft); color: #1F6FB3; }

.sft-command__send { background: var(--sft-lime); color: #fff; font-weight: 700; }
.sft-command__send:hover { background: var(--sft-lime-deep); transform: translateY(-1px); }

@media (min-width: 720px) {
    .sft-command__input { height: 60px; font-size: 17px; padding: 0 16px; }
}

/* ----- Compact modifier ----- */
.sft-command--compact { padding: 6px; box-shadow: var(--sft-shadow-rest); }
.sft-command--compact .sft-command__input { height: 44px; font-size: 15px; }
.sft-command--compact .sft-command__plus,
.sft-command--compact .sft-command__send { width: 36px; height: 36px; font-size: 16px; }

/* ===== 6. Completion moment ===============================================
   Class: .sft-completion (+ .sft-completion--quiet)
   ========================================================================== */

.sft-completion {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 24px 20px;
    border-radius: var(--sft-r-2xl);
    background: var(--sft-glass-hi);
    border: 1px solid rgba(154,205,50,0.32);
    box-shadow: var(--sft-shadow-rest);
    text-align: center;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    animation: sftCompletionEnter 220ms ease-out both;
}
@supports not (backdrop-filter: blur(1px)) {
    .sft-completion { background: #ffffff; }
}

@keyframes sftCompletionEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sft-completion__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--sft-lime-soft);
    color: var(--sft-lime-deep);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.sft-completion__title {
    font-family: var(--sft-font-display);
    font-weight: 400;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--sft-ink);
}

.sft-completion__body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--sft-ink-muted);
    margin: 0 0 16px;
}

.sft-completion__cta {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ----- Quiet modifier (no animation, no glow) ----- */
.sft-completion--quiet {
    animation: none;
    border-color: var(--sft-ink-hair);
}
.sft-completion--quiet .sft-completion__icon {
    background: var(--sft-canvas-3);
    color: var(--sft-ink);
}

@media (prefers-reduced-motion: reduce) {
    .sft-completion { animation: none; }
}

/* ===== 7. Mentor bubble (stretch goal) ====================================
   Class: .sft-mentor
   ========================================================================== */

.sft-mentor {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.sft-mentor__avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--sft-shadow-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.sft-mentor__bubble {
    position: relative;
    flex: 1 1 auto;
    padding: 14px 16px;
    border-radius: 18px 18px 18px 6px;
    background: var(--sft-glass-hi);
    border: 1px solid var(--sft-glass-border);
    box-shadow: var(--sft-shadow-chip);
    color: var(--sft-ink);
}

.sft-mentor__text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
}

.sft-mentor__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sft-mentor__btn {
    appearance: none;
    border: 1px solid transparent;
    background: var(--sft-lime);
    color: #fff;
    font-family: var(--sft-font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}
.sft-mentor__btn:hover { transform: translateY(-1px); background: var(--sft-lime-deep); }

.sft-mentor__btn--ghost {
    background: transparent;
    color: var(--sft-ink);
    border-color: var(--sft-ink-hair);
}
.sft-mentor__btn--ghost:hover { background: var(--sft-canvas-2); transform: translateY(-1px); }


/* ===== 9. Lộ trình 3 bước (Journey) ======================================
   Đồng bộ RollCall(1) · PersonalizedRecord(2) · BasicClass(3) thành một lộ trình
   liền mạch. "Chuyển sắc theo bước": Bước 1 lime → Bước 2 sky → Bước 3 cam.
   - .lai-journey : rail ngang đầu thân control; trạng thái tĩnh qua data-active.
   - .lai-eyebrow : nhãn "Bước N · Tên" cho header.
   - .lai-handoff : thẻ trao gậy "Tiếp theo · Bước N+1" (tô sắc bước kế).
   Token sắc bước định nghĩa cục bộ (mirror admin-default.css .tp-card) để dùng
   được cả khi control render độc lập. CSS thuần — không JS/code-behind.
   ========================================================================== */

.lai-journey, .lai-eyebrow, .lai-handoff {
    --s1: #79A82B; --s1-soft: rgba(154,205,50,.16); --s1-deep: #5E8C1A; --s1-ring: rgba(121,168,43,.40);
    --s2: #3E97F0; --s2-soft: rgba(79,168,255,.16); --s2-deep: #1F6FB3; --s2-ring: rgba(62,151,240,.40);
    --s3: #E0902F; --s3-soft: rgba(240,178,122,.22); --s3-deep: #C9721B; --s3-ring: rgba(224,144,47,.44);
}

/* ---- Rail lộ trình ---- */
.lai-journey {
    --lai-line: rgba(15,20,25,.10);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 20px;
    padding: 13px 18px;
    border-radius: var(--sft-r-xl, 20px);
    background: var(--sft-glass, rgba(255,255,255,.72));
    border: 1px solid var(--sft-glass-border, rgba(255,255,255,.85));
    box-shadow: var(--sft-shadow-rest, 0 1px 2px rgba(15,20,25,.04), 0 12px 32px rgba(15,20,25,.05));
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    font-family: var(--sft-font-body, 'Be Vietnam Pro', -apple-system, sans-serif);
}
@supports not (backdrop-filter: blur(1px)) {
    .lai-journey { background: var(--sft-glass-hi, rgba(255,255,255,.92)); }
}

.lai-step {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 13px;
    text-decoration: none;
    color: inherit;
    transition: background .18s ease;
}
.lai-step:hover { background: rgba(15,20,25,.04); }
.lai-step[data-step="1"] { --c: var(--s1); --c-soft: var(--s1-soft); --c-deep: var(--s1-deep); }
.lai-step[data-step="2"] { --c: var(--s2); --c-soft: var(--s2-soft); --c-deep: var(--s2-deep); }
.lai-step[data-step="3"] { --c: var(--s3); --c-soft: var(--s3-soft); --c-deep: var(--s3-deep); }

.lai-step-num {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(15,20,25,.16), 0 1px 2px rgba(15,20,25,.06);
    font: 600 14px/1 var(--sft-font-display, 'Fraunces', Georgia, serif);
    font-variant-numeric: tabular-nums;
    color: rgba(15,20,25,.45);
    transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}
.lai-step[data-step="1"] .lai-step-num::before { content: "1"; }
.lai-step[data-step="2"] .lai-step-num::before { content: "2"; }
.lai-step[data-step="3"] .lai-step-num::before { content: "3"; }

.lai-step-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.1; }
.lai-step-kicker {
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(15,20,25,.40);
    transition: color .2s ease;
}
.lai-step-label {
    font-family: var(--sft-font-display, 'Fraunces', Georgia, serif);
    font-size: 14px; font-weight: 600; letter-spacing: -.01em;
    color: rgba(15,20,25,.55); white-space: nowrap;
    transition: color .2s ease;
}

.lai-step-bar {
    flex: 1 1 auto;
    min-width: 14px; height: 2px;
    border-radius: 2px;
    background: var(--lai-line);
    transition: background .3s ease;
}

/* ĐÃ XONG — các bước trước bước đang xem */
.lai-journey[data-active="2"] .lai-step[data-step="1"] .lai-step-num,
.lai-journey[data-active="3"] .lai-step[data-step="1"] .lai-step-num,
.lai-journey[data-active="3"] .lai-step[data-step="2"] .lai-step-num {
    background: var(--c-soft);
    box-shadow: inset 0 0 0 1.5px var(--c);
}
.lai-journey[data-active="2"] .lai-step[data-step="1"] .lai-step-num::before,
.lai-journey[data-active="3"] .lai-step[data-step="1"] .lai-step-num::before,
.lai-journey[data-active="3"] .lai-step[data-step="2"] .lai-step-num::before {
    content: "\2713"; color: var(--c-deep); font-size: 15px; font-weight: 700;
}
.lai-journey[data-active="2"] .lai-step[data-step="1"] .lai-step-kicker,
.lai-journey[data-active="3"] .lai-step[data-step="1"] .lai-step-kicker,
.lai-journey[data-active="3"] .lai-step[data-step="2"] .lai-step-kicker { color: var(--c-deep); }
.lai-journey[data-active="2"] .lai-step[data-step="1"] .lai-step-label,
.lai-journey[data-active="3"] .lai-step[data-step="1"] .lai-step-label,
.lai-journey[data-active="3"] .lai-step[data-step="2"] .lai-step-label { color: rgba(15,20,25,.72); }

/* ĐANG Ở — bước hiện tại */
.lai-journey[data-active="1"] .lai-step[data-step="1"] .lai-step-num,
.lai-journey[data-active="2"] .lai-step[data-step="2"] .lai-step-num,
.lai-journey[data-active="3"] .lai-step[data-step="3"] .lai-step-num {
    background: var(--c-deep);
    box-shadow: inset 0 0 0 1.5px var(--c-deep), 0 0 0 4px var(--c-soft), 0 2px 6px rgba(15,20,25,.12);
}
.lai-journey[data-active="1"] .lai-step[data-step="1"] .lai-step-num::before,
.lai-journey[data-active="2"] .lai-step[data-step="2"] .lai-step-num::before,
.lai-journey[data-active="3"] .lai-step[data-step="3"] .lai-step-num::before { color: #fff; }
.lai-journey[data-active="1"] .lai-step[data-step="1"] .lai-step-kicker,
.lai-journey[data-active="2"] .lai-step[data-step="2"] .lai-step-kicker,
.lai-journey[data-active="3"] .lai-step[data-step="3"] .lai-step-kicker { color: var(--c-deep); }
.lai-journey[data-active="1"] .lai-step[data-step="1"] .lai-step-label,
.lai-journey[data-active="2"] .lai-step[data-step="2"] .lai-step-label,
.lai-journey[data-active="3"] .lai-step[data-step="3"] .lai-step-label { color: var(--sft-ink, #0F1419); }
.lai-journey[data-active="1"] .lai-step[data-step="1"],
.lai-journey[data-active="2"] .lai-step[data-step="2"],
.lai-journey[data-active="3"] .lai-step[data-step="3"] { cursor: default; }

/* ĐƯỜNG NỐI đã đi qua — gradient sắc bước này sang bước kế */
.lai-journey[data-active="2"] .lai-step-bar[data-seg="1"],
.lai-journey[data-active="3"] .lai-step-bar[data-seg="1"] {
    background: linear-gradient(90deg, var(--s1) 0%, var(--s2) 100%);
}
.lai-journey[data-active="3"] .lai-step-bar[data-seg="2"] {
    background: linear-gradient(90deg, var(--s2) 0%, var(--s3) 100%);
}

@media (max-width: 560px) {
    .lai-journey { padding: 11px 12px; gap: 4px; border-radius: 16px; }
    .lai-step { gap: 7px; padding: 4px; }
    .lai-step-num { width: 26px; height: 26px; font-size: 13px; }
    .lai-step-kicker { font-size: 9px; }
    .lai-step-label { font-size: 12.5px; }
    .lai-step-bar { min-width: 8px; }
}
@media (max-width: 400px) {
    .lai-step-kicker { display: none; }
    .lai-step-label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .lai-step, .lai-step-num, .lai-step-kicker, .lai-step-label, .lai-step-bar { transition: none; }
}

/* ---- Eyebrow "Bước N · Tên" ---- */
.lai-eyebrow {
    --c: var(--s1); --c-soft: var(--s1-soft); --c-deep: var(--s1-deep); --c-ring: var(--s1-ring);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--c-soft);
    border: 1px solid var(--c-ring);
    font-family: var(--sft-font-body, 'Be Vietnam Pro', sans-serif);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-deep);
    line-height: 1;
}
.lai-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c);
}
.lai-eyebrow[data-step="2"] { --c: var(--s2); --c-soft: var(--s2-soft); --c-deep: var(--s2-deep); --c-ring: var(--s2-ring); }
.lai-eyebrow[data-step="3"] { --c: var(--s3); --c-soft: var(--s3-soft); --c-deep: var(--s3-deep); --c-ring: var(--s3-ring); }

/* ---- Handoff "Tiếp theo · Bước N+1" ---- */
.lai-handoff {
    --c: var(--s2); --c-soft: var(--s2-soft); --c-deep: var(--s2-deep); --c-ring: var(--s2-ring);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 28px auto 4px;
    padding: 16px 20px;
    border-radius: var(--sft-r-xl, 20px);
    background: linear-gradient(135deg, var(--c-soft) 0%, rgba(255,255,255,0) 62%), #fff;
    border: 1px solid var(--c-ring);
    box-shadow: var(--sft-shadow-rest, 0 1px 2px rgba(15,20,25,.04), 0 12px 32px rgba(15,20,25,.05));
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.lai-handoff:hover {
    transform: translateY(-2px);
    box-shadow: var(--sft-shadow-lift, 0 18px 50px rgba(15,20,25,.10));
}
.lai-handoff[data-step="1"] { --c: var(--s1); --c-soft: var(--s1-soft); --c-deep: var(--s1-deep); --c-ring: var(--s1-ring); }
.lai-handoff[data-step="2"] { --c: var(--s2); --c-soft: var(--s2-soft); --c-deep: var(--s2-deep); --c-ring: var(--s2-ring); }
.lai-handoff[data-step="3"] { --c: var(--s3); --c-soft: var(--s3-soft); --c-deep: var(--s3-deep); --c-ring: var(--s3-ring); }

.lai-handoff__icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--c-deep);
    color: #fff;
    font: 600 18px/1 var(--sft-font-display, 'Fraunces', Georgia, serif);
    font-variant-numeric: tabular-nums;
}
.lai-handoff__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lai-handoff__kicker {
    font-family: var(--sft-font-body, 'Be Vietnam Pro', sans-serif);
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--c-deep);
}
.lai-handoff__title {
    font-family: var(--sft-font-display, 'Fraunces', Georgia, serif);
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    color: var(--sft-ink, #0F1419);
}
.lai-handoff__arrow {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-soft);
    color: var(--c-deep);
    font-size: 18px; font-weight: 700;
    transition: transform .2s ease;
}
.lai-handoff:hover .lai-handoff__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
    .lai-handoff, .lai-handoff__arrow { transition: none; }
}
