
    .hpa-highlight {
        background: linear-gradient(90deg, var(--coral) 0%, var(--coral-soft) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(24px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    [data-anim] {
        opacity: 0;
        animation: fadeUp 0.65s var(--ease-out) both;
    }

    [data-anim="fade"] {
        animation-name: fadeIn;
    }

    @media (prefers-reduced-motion: reduce) {
        [data-anim] {
            animation: none;
            opacity: 1;
        }
    }

    /* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
    .dn-hero {
        background: linear-gradient(135deg, #091830 0%, #0d2d5e 55%, #1a4a7a 100%);
        padding: var(--space-9) 0 var(--space-8);
        position: relative;
        overflow: hidden;
    }

    .dn-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 64px 64px;
        pointer-events: none;
    }

    /* teal glow top-right */
    .dn-hero::after {
        content: '';
        position: absolute;
        top: -100px;
        right: -60px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(56, 217, 192, 0.12) 0%, transparent 65%);
        pointer-events: none;
    }

    .dn-hero-sep {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    }

    .dn-hero-inner {
        position: relative;
        z-index: 1;
        max-width: 740px;
    }

    .dn-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        padding: 6px 14px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-full);
        background: rgba(255, 255, 255, 0.07);
        font-size: var(--text-sm);
        font-weight: 500;
        color: rgba(255, 255, 255, 0.75);
        margin-bottom: var(--space-5);
    }

    .dn-eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--coral);
        flex-shrink: 0;
    }

    .dn-hero h1 {
        font-size: clamp(36px, 5vw, 72px);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.035em;
        color: #fff;
        margin-bottom: var(--space-4);
    }

    .dn-hero h1 .accent {
        color: var(--teal);
    }

    .dn-hero-sub {
        font-size: var(--text-md);
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.7;
        max-width: 560px;
        margin-bottom: var(--space-6);
    }

    .dn-hero-actions {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        flex-wrap: wrap;
    }

    .dn-btn {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        height: 48px;
        padding: 0 var(--space-6);
        border-radius: var(--radius-full);
        font-size: var(--text-base);
        font-weight: 700;
        cursor: pointer;
        border: none;
        text-decoration: none;
        white-space: nowrap;
        transition: transform var(--duration) var(--ease-out), box-shadow var(--duration), background var(--duration);
    }

    .dn-btn:hover {
        transform: translateY(-2px);
    }

    .dn-btn:active {
        transform: translateY(0);
    }

    .dn-btn-primary {
        background: var(--coral);
        color: white;
        box-shadow: 0 4px 20px rgba(56, 217, 192, 0.3);
    }

    .dn-btn-ghost {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.85);
        border: 1.5px solid rgba(255, 255, 255, 0.16);
    }

    .dn-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.14);
    }


    /* ── Header ── */
    .qt-header {
        text-align: center;
        margin-bottom: var(--space-8);
    }

    .qt-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        font-size: var(--text-sm);
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: var(--coral);
        margin-bottom: var(--space-4);
    }

    .qt-eyebrow::before {
        content: '';
        width: 18px;
        height: 2px;
        background: var(--coral);
        border-radius: var(--radius-full);
        flex-shrink: 0;
    }

    .hpa-headline {
        font-size: var(--text-xl);
        font-weight: 800;
        line-height: 1.2;
        color: var(--navy-900);
        margin-bottom: var(--space-5);
    }

    /* coral gradient on the percentage */
    .hpa-highlight {
        background: linear-gradient(90deg, var(--coral) 0%, var(--coral-soft) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }


    /* ===== Luồng dữ liệu vận hành ===== */

    .flow-section {
        padding: var(--space-9) 0;
        background: var(--surface-page);
    }

    .flow-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(230px, 1fr));
        gap: var(--space-5);
    }

    .flow-card {
        position: relative;
        background: var(--surface-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-5) var(--space-5) var(--space-6);
        box-shadow: var(--shadow-sm);
        transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    }

    .flow-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .flow-card__num {
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
        color: var(--coral-hex);
        margin-bottom: var(--space-3);
    }

    .flow-card__num span {
        font-size: 16px;
        font-weight: 700;
        color: var(--navy-300);
        margin-left: 2px;
    }

    .flow-card h3 {
        font-size: var(--text-md);
        font-weight: 700;
        color: var(--navy-900);
        margin-bottom: var(--space-2);
    }

    .flow-card p {
        font-size: var(--text-base);
        line-height: 1.55;
        color: var(--navy-300);
    }

    .flow-card__next {
        position: absolute;
        right: var(--space-4);
        bottom: var(--space-4);
        color: var(--navy-500);
        opacity: .35;
        font-size: 13px;
    }

    /* ===== Responsive: flow-section ===== */

    /* Laptop / tablet ngang ≤ 1100px → 3 cột */
    @media (max-width: 100%) {
        .flow-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Tablet dọc ≤ 768px → 2 cột */
    @media (max-width: 768px) {
        .flow-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-4);
        }
    }

    /* Mobile ≤ 480px → 1 cột */
    @media (max-width: 480px) {
        .flow-grid {
            grid-template-columns: 1fr;
            gap: var(--space-3);
        }

        .flow-card {
            padding: var(--space-4);
            padding-bottom: calc(var(--space-4) + 20px);
            /* chừa chỗ cho icon → */
        }
    }

    @media (max-width: 375px) {
        .container {
            padding: 0 var(--space-4);
        }
    }

    /* ===================== FORMULAR CONTAINER & HEADING ===================== */

    .mamaliho-formula-container {
        max-width: 1280px;
        margin: 0 auto;
        padding-bottom: var(--space-9);
    }

    /* ===================== GRID ===================== */

    .formula-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        position: relative;
    }

    /* ===================== CARD ===================== */

    .formula-column {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        background: var(--surface-card);
        border: 1px solid var(--border);
        border-top: 4px solid var(--border);
        border-radius: var(--radius-xl);
        padding: var(--space-6);
        /* box-shadow: var(--shadow-sm); */
        transition: transform var(--duration) var(--ease-out),
            box-shadow var(--duration) var(--ease-out),
            border-color var(--duration) var(--ease-out);
    }

    .formula-column:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        /* border-color: var(--border-hover); */
    }

    .formula-column h3 {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: clamp(19px, 2vw, 20px);
        font-weight: 700;
        letter-spacing: -.01em;
        text-align: center;
        line-height: 1.35;
        margin-bottom: var(--space-4);
    }

    .formula-description {
        font-size: var(--text-base);
        color: var(--navy-300);
        line-height: 1.65;
        margin-bottom: var(--space-5);
    }

    .formula-legend {
        list-style: none;
        margin-top: auto;
        padding-top: var(--space-4);
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .formula-legend li {
        position: relative;
        padding-left: var(--space-4);
        font-size: var(--text-sm);
        color: var(--navy-300);
        line-height: 1.5;
    }

    .formula-legend li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 7px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .formula-legend strong {
        color: var(--navy-900);
        font-weight: 700;
    }

    /* ===================== COLOR VARIANTS (1st/3rd = coral, 2nd = teal) ===================== */


    .formula-column:nth-child(1) h3,
    .formula-column:nth-child(3) h3 {
        color: var(--coral-hex);
    }

    .formula-column:nth-child(1) .formula-legend li,
    .formula-column:nth-child(3) .formula-legend li {
        color: var(--coral-hex);
    }

    .formula-column:nth-child(1) .formula-legend li::before,
    .formula-column:nth-child(3) .formula-legend li::before {
        color: var(--coral-hex);
    }


    .formula-column:nth-child(2) h3 {
        color: var(--teal-dark);
    }

    .formula-column:nth-child(2) .formula-legend li {
        color: var(--teal-dark);
    }

    .formula-column:nth-child(2) .formula-legend li::before {
        color: var(--teal-dark);
    }

    /* legend text itself stays neutral; only the bullet + strong term use color */
    .formula-legend li {
        color: var(--navy-300) !important;
    }

    .formula-legend li::before {
        background: currentColor;
    }

    .formula-column:nth-child(1) .formula-legend li::before,
    .formula-column:nth-child(3) .formula-legend li::before {
        background: var(--coral-hex);
    }

    .formula-column:nth-child(2) .formula-legend li::before {
        background: var(--teal-dark);
    }

    /* ===================== SEQUENCE CONNECTOR (this is a real build-up chain, not decoration) ===================== */

    .formula-column:not(:last-child)::after {
        content: "→";
        position: absolute;
        top: 50%;
        right: -29px;
        transform: translateY(-50%);
        font-size: 20px;
        font-weight: 700;
        color: var(--navy-500);
        opacity: .45;
        z-index: 1;
    }

    /* ===================== SCROLL-IN REVEAL ===================== */

    .mamaliho-formula-container h2,
    .formula-column {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    }

    .mamaliho-formula-container.in-view h2,
    .mamaliho-formula-container.in-view .formula-column {
        opacity: 1;
        transform: translateY(0);
    }

    /* keep hover/border transitions independent of the reveal transition */
    .formula-column {
        transition: opacity .7s var(--ease-out),
            transform .7s var(--ease-out),
            box-shadow var(--duration) var(--ease-out),
            border-color var(--duration) var(--ease-out);
    }

    .mamaliho-formula-container h2 {
        transition-delay: 0s;
    }

    .formula-column:nth-child(1) {
        transition-delay: .15s;
    }

    .formula-column:nth-child(2) {
        transition-delay: .27s;
    }

    .formula-column:nth-child(3) {
        transition-delay: .39s;
    }

    @media (prefers-reduced-motion: reduce) {

        .mamaliho-formula-container h2,
        .formula-column {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
    }

    /* ===================== RESPONSIVE ===================== */

    @media (max-width: 1024px) {
        .mamaliho-formula-container {
            padding: var(--space-7) var(--space-5);
        }
    }

    @media (max-width: 768px) {
        .formula-grid {
            grid-template-columns: 1fr;
            gap: var(--space-7);
        }

        .formula-column:not(:last-child)::after {
            content: "↓";
            top: auto;
            right: 50%;
            bottom: calc(-1 * var(--space-7) / 2 - 10px);
            transform: translate(50%, 0);
        }

        .mamaliho-formula-container h2::after {
            margin-bottom: var(--space-5);
        }
    }

    @media (max-width: 480px) {
        .mamaliho-formula-container {
            padding: var(--space-6) var(--space-4);
        }

        .formula-column {
            padding: var(--space-5);
        }

        .formula-description {
            font-size: var(--text-sm);
        }
    }

    /* ===== Notice Warning ===== */
    .notice-warning {
        display: flex;
        align-items: flex-start;
        gap: var(--space-4);
        background: #fdf6f4;
        border: 1.5px solid #c0392b33;
        border-radius: var(--radius-lg);
        padding: var(--space-4) var(--space-5);
    }

    .notice-warning__icon {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8b1a1a;
        font-size: 22px;
        margin-top: 2px;
    }

    .notice-warning__title {
        font-size: var(--text-md);
        font-weight: 700;
        color: #8b1a1a;
        margin-bottom: var(--space-1, 4px);
    }

    .notice-warning__text {
        font-size: var(--text-base);
        line-height: 1.6;
        color: var(--navy-500);
        margin: 0;
    }

    /* Responsive */
    @media (max-width: 480px) {
        .notice-warning {
            gap: var(--space-3);
            padding: var(--space-3) var(--space-4);
        }

        .notice-warning__icon {
            width: 34px;
            height: 34px;
            font-size: 18px;
        }

        .notice-warning__text {
            font-size: 13px;
        }
    }

    /* ══════════════════════════════════════════
       SECTION
       ══════════════════════════════════════════ */
    .section-quy-trinh {
        padding-bottom: var(--space-9);
        background: var(--surface-page);
    }

    /* ── Header ── */
    .qt-header {
        text-align: center;
        margin-bottom: var(--space-8);
    }

    .qt-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        font-size: var(--text-sm);
        font-weight: 700;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: var(--coral);
        margin-bottom: var(--space-4);
    }

    .qt-eyebrow::before {
        content: '';
        width: 18px;
        height: 2px;
        background: var(--coral);
        border-radius: var(--radius-full);
        flex-shrink: 0;
    }

    .hpa {
        font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
        font-weight: 800;
        color: var(--navy-900);
        line-height: 1.2;
    }

    /* ══════════════════════════════════════════
   5-CARD GRID  —  hàng 1: 3 card | hàng 2: 2 card căn giữa
   Dùng 6 cột ảo để chia đều
   ══════════════════════════════════════════ */
    .qt-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-5);
        position: relative;
    }

    .qt-card:nth-child(1) {
        grid-column: 1 / 3;
    }

    .qt-card:nth-child(2) {
        grid-column: 3 / 5;
    }

    .qt-card:nth-child(3) {
        grid-column: 5 / 7;
    }

    /* hàng 2: offset 1 cột để 2 card nằm giữa */
    .qt-card:nth-child(4) {
        grid-column: 2 / 4;
    }

    .qt-card:nth-child(5) {
        grid-column: 4 / 6;
    }

    /* ── Step card ── */
    .qt-card {
        background: var(--surface-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        padding: var(--space-5);
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition:
            box-shadow var(--dur) ease,
            border-color var(--dur) ease,
            transform var(--dur) var(--ease-out);
    }

    .qt-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

    .qt-card.is-active {
        border-color: var(--border-active);
        box-shadow: var(--shadow-md);
    }

    /* bottom coral accent line */
    .qt-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: var(--space-5);
        right: var(--space-5);
        height: 3px;
        border-radius: var(--radius-full) var(--radius-full) 0 0;
        background: linear-gradient(90deg, var(--coral), var(--coral-soft));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s var(--ease-out);
    }

    .qt-card:hover::after,
    .qt-card.is-active::after {
        transform: scaleX(1);
    }

    /* ── Big step number (watermark) ── */
    .qt-num {
        position: absolute;
        top: var(--space-4);
        right: var(--space-4);
        font-size: 56px;
        font-weight: 900;
        color: var(--navy-100);
        line-height: 1;
        letter-spacing: -0.03em;
        pointer-events: none;
        transition: color var(--dur) ease;
        user-select: none;
    }

    .qt-card:hover .qt-num,
    .qt-card.is-active .qt-num {
        color: #dce8f5;
    }

    /* ── Icon circle ── */
    .qt-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--navy-100);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: var(--space-6);
        margin-top: var(--space-2);
        transition: background var(--dur) ease;
    }

    .qt-card:hover .qt-icon,
    .qt-card.is-active .qt-icon {
        background: var(--coral-dim);
    }

    .qt-icon svg {
        width: 24px;
        height: 24px;
        stroke: var(--navy-500);
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke var(--dur) ease;
    }

    .qt-card:hover .qt-icon svg,
    .qt-card.is-active .qt-icon svg {
        stroke: var(--coral);
    }

    .qt-card:hover .qt-icon i,
    .qt-card.is-active .qt-icon i {
        color: var(--coral);
    }

    /* ── Text ── */
    .qt-title {
        font-size: var(--text-lg);
        /* tăng lên từ text-md */
        font-weight: 700;
        color: var(--navy-900);
        margin-bottom: var(--space-2);
        line-height: 1.3;
    }

    .qt-desc {
        font-size: var(--text-base);
        /* tăng lên từ text-sm */
        line-height: 1.75;
        color: var(--navy-300);
    }

    /* ── Arrow connector (desktop) ── */
    .qt-arrow {
        position: absolute;
        top: 50%;
        right: -14px;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qt-arrow svg {
        width: 16px;
        height: 16px;
        stroke: var(--navy-100);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
    .anim-fade {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .5s ease, transform .5s var(--ease-out);
    }

    .anim-fade.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .qt-header {
        transition-delay: .00s;
    }

    .qt-card:nth-child(1) {
        transition-delay: .06s;
    }

    .qt-card:nth-child(2) {
        transition-delay: .14s;
    }

    .qt-card:nth-child(3) {
        transition-delay: .22s;
    }

    .qt-card:nth-child(4) {
        transition-delay: .30s;
    }

    .qt-card:nth-child(5) {
        transition-delay: .38s;
    }

    /* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

    /* Tablet: 2 + 2 + 1 */
    @media (max-width: 1024px) {
        .container {
            padding: 0 var(--space-6);
        }

        .qt-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        /* reset tất cả grid-column về auto */
        .qt-card:nth-child(n) {
            grid-column: auto;
        }

        /* card 5 một mình: chiếm 50% căn giữa */
        .qt-card:nth-child(5) {
            grid-column: 1 / 2;
            max-width: 100%;
            width: 50%;
            margin: 0 auto;
            /* đặt vào giữa 2 cột: span 2, margin auto */
            grid-column: 1 / 3;
            max-width: 50%;
        }

        .qt-arrow {
            display: none;
        }
    }

    /* Mobile: 1 cột */
    @media (max-width: 580px) {
        .container {
            padding: 0 var(--space-5);
        }

        .qt-grid {
            grid-template-columns: 1fr;
            gap: var(--space-4);
        }

        /* reset hết */
        .qt-card:nth-child(n) {
            grid-column: auto;
            max-width: 100%;
            width: 100%;
            margin: 0;
        }

        .section-quy-trinh {
            padding: var(--space-8) 0;
        }
    }

    @media (max-width: 380px) {
        .container {
            padding: 0 var(--space-4);
        }
    }

    /* ===== Keyframes ===== */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(22px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeLeft {
        from {
            opacity: 0;
            transform: translateX(28px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideBar {
        from {
            transform: scaleX(0);
        }

        to {
            transform: scaleX(1);
        }
    }

    /* ===== Section ===== */
    .ld-section {
        padding: var(--space-9) 0;
        background: var(--surface-page);
    }

    /* ===== Header ===== */
    .ld-eyebrow-bar {
        display: inline-block;
        width: 32px;
        height: 2px;
        background: var(--coral-hex);
        border-radius: 2px;
        vertical-align: middle;
        margin-right: var(--space-2);
        transform-origin: left;
        transform: scaleX(0);
        animation: slideBar .45s var(--ease-out) .05s forwards;
    }

    .ld-eyebrow {
        opacity: 0;
        animation: fadeUp .5s var(--ease-out) .1s forwards;
    }

    .ld-headline {
        font-size: clamp(20px, 3.5vw, 28px);
        font-weight: 800;
        color: var(--navy-900);
        margin-bottom: var(--space-6);
        line-height: 1.2;
        opacity: 0;
        animation: fadeUp .55s var(--ease-out) .22s forwards;
    }

    .ld-highlight {
        color: var(--coral-hex);
    }

    /* ===== Layout ===== */
    .ld-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
        align-items: start;
    }

    /* ===== Cards grid ===== */
    .ld-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .ld-card {
        background: var(--surface-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: var(--space-6);
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        box-shadow: var(--shadow-sm);
        height: 100%;
        opacity: 0;
        animation: fadeUp .5s var(--ease-out) forwards;
        transition:
            transform var(--duration) var(--ease-out),
            box-shadow var(--duration) var(--ease-out),
            border-color var(--duration);
    }

    .ld-card:nth-child(1) {
        animation-delay: .35s;
    }

    .ld-card:nth-child(2) {
        animation-delay: .45s;
    }

    .ld-card:nth-child(3) {
        animation-delay: .55s;
    }

    .ld-card:nth-child(4) {
        animation-delay: .65s;
    }

    @media (hover: hover) {
        .ld-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--border-hover);
        }
    }

    .ld-card__icon {
        width: 44px;
        height: 44px;
        background: rgba(232, 112, 95, 0.08);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--coral-hex);
        font-size: 22px;
        flex-shrink: 0;
    }

    .ld-card h3 {
        font-size: var(--text-md);
        font-weight: 700;
        color: var(--navy-900);
        line-height: 1.3;
    }

    .ld-card p {
        font-size: var(--text-base);
        line-height: 1.6;
        color: var(--navy-300);
    }

    /* ===== Visual / Photo ===== */
    .ld-visual {
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        min-height: 340px;
        background: var(--navy-100);
        opacity: 0;
        animation: fadeLeft .65s var(--ease-out) .4s forwards;
    }

    .ld-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .6s var(--ease-out);
    }

    @media (hover: hover) {
        .ld-visual:hover img {
            transform: scale(1.03);
        }
    }

    .ld-visual__quote {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(13, 45, 94, 0.82);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: var(--space-5);
        opacity: 0;
        animation: fadeUp .5s var(--ease-out) .85s forwards;
    }

    .ld-visual__quote-mark {
        font-size: 32px;
        font-weight: 900;
        color: var(--coral-hex);
        line-height: 1;
        margin-bottom: var(--space-2);
    }

    .ld-visual__quote-text {
        font-size: var(--text-md);
        line-height: 1.65;
        color: #e8eef7;
        font-weight: 500;
        margin-bottom: var(--space-2);
    }

    .ld-visual__quote-author {
        font-size: var(--text-base);
        color: var(--coral-hex);
        font-weight: 700;
        letter-spacing: .05em;
    }

    /* ===== Responsive ===== */

    /* Tablet ngang ≤ 1024px */
    @media (max-width: 1024px) {
        .container {
            padding: 0 var(--space-6);
        }
    }

    /* Tablet dọc ≤ 860px → stack dọc */
    @media (max-width: 860px) {
        .ld-layout {
            grid-template-columns: 1fr;
        }

        .ld-visual {
            min-height: 280px;
            animation-name: fadeUp;
        }
    }

    /* Mobile ≤ 580px */
    @media (max-width: 580px) {
        .container {
            padding: 0 var(--space-4);
        }

        .ld-section {
            padding: var(--space-7) 0;
        }

        .ld-cards {
            gap: 10px;
        }

        .ld-visual {
            min-height: 240px;
        }

        .ld-visual__quote-text {
            font-size: var(--text-base);
        }
    }

    /* Mobile nhỏ ≤ 480px → cards 1 cột */
    @media (max-width: 480px) {
        .ld-cards {
            grid-template-columns: 1fr;
        }

        .ld-card {
            flex-direction: row;
            align-items: flex-start;
            gap: var(--space-4);
            padding: var(--space-4);
        }

        .ld-card__icon {
            width: 38px;
            height: 38px;
            font-size: 18px;
            flex-shrink: 0;
        }

        .ld-card:nth-child(1) {
            animation-delay: .28s;
        }

        .ld-card:nth-child(2) {
            animation-delay: .36s;
        }

        .ld-card:nth-child(3) {
            animation-delay: .44s;
        }

        .ld-card:nth-child(4) {
            animation-delay: .52s;
        }
    }

    /* Quote che ảnh trên mobile → thu gọn hoặc ẩn quote-mark */
    @media (max-width: 480px) {
        .ld-visual {
            min-height: 320px;
            /* tăng chiều cao ảnh để lộ phần trên */
        }

        .ld-visual__quote {
            padding: var(--space-3) var(--space-4);
        }

        .ld-visual__quote-mark {
            display: none;
            /* ẩn dấu " cho gọn */
        }

        .ld-visual__quote-text {
            font-size: var(--text-sm);
            /* 13px */
            line-height: 1.5;
            margin-bottom: var(--space-1);
        }

        .ld-visual__quote-author {
            font-size: var(--text-xs);
            /* 11px */
        }
    }

    /* ══════════════════════════════════════
     CTA SECTION
  ══════════════════════════════════════ */
    .cta-section {
        padding: 0 0 var(--space-9);
    }

    .cta-banner {
        background: linear-gradient(135deg, #0d2d5e 0%, #1a3a6e 50%, #2d1b4e 100%);
        border-radius: var(--radius-lg);
        padding: var(--space-8) var(--space-8);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-6);
    }

    .cta-content {
        flex: 1;
    }

    .cta-heading {
        font-size: clamp(22px, 2.8vw, 38px);
        font-weight: 700;
        color: #ffffff;
        letter-spacing: -0.02em;
        line-height: 1.2;
        margin-bottom: var(--space-3);
    }

    .cta-sub {
        font-size: var(--text-base);
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.5;
    }

    .cta-actions {
        display: flex;
        gap: var(--space-3);
        flex-shrink: 0;
        align-items: center;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 0 var(--space-6);
        border-radius: var(--radius-full);
        font-size: var(--text-base);
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: transform var(--duration) var(--ease-out),
            box-shadow var(--duration) var(--ease-out),
            background var(--duration) var(--ease-out);
        white-space: nowrap;
        text-decoration: none;
    }

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn-primary {
        background: var(--coral);
        color: #ffffff;
        box-shadow: 0 4px 16px oklch(68% .17 22 / 35%);
    }

    .btn-primary:hover {
        background: var(--coral-soft);
        box-shadow: 0 6px 20px oklch(68% .17 22 / 45%);
    }

    .btn-outline {
        background: transparent;
        color: #ffffff;
        border: 1.5px solid rgba(255, 255, 255, 0.35);
    }

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.6);
    }

    /* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
    @media (max-width: 1024px) {
        .testimonials-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .container {
            padding: 0 var(--space-4);
        }

        .testimonials {
            padding: var(--space-7) 0;
        }

        .testimonials-grid {
            grid-template-columns: 1fr;
            gap: var(--space-4);
        }

        .cta-section {
            padding: 0 0 var(--space-7);
        }

        .cta-banner {
            flex-direction: column;
            align-items: flex-start;
            padding: var(--space-6) var(--space-5);
            gap: var(--space-5);
        }

        .cta-actions {
            width: 100%;
            flex-direction: column;
        }

        .btn {
            width: 100%;
            height: 50px;
        }
    }

    @media (max-width: 480px) {
        .testimonials {
            padding: var(--space-6) 0;
        }

        .testimonial-card {
            padding: var(--space-5);
        }
    }

    /* Base state — ẩn trước khi animate */
    [data-animate] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.55s ease, transform 0.55s ease;
        will-change: opacity, transform;
    }

    /* Triggered state */
    [data-animate].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Container bọc ngoài để căn giữa hoặc giới hạn độ rộng nếu cần */
.tabs-container {
    width: 100%;
    padding: var(--space-4) 0;
    display: flex;
    justify-content: center; /* Căn giữa giống như trong Screenshot 2026-06-23 at 11.34.05.png */
}

/* Thanh điều hướng chính */
.tabs-nav {
    display: flex;
    background-color: var(--surface-card);
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    gap: var(--space-2);
    position: relative;
    max-width: 100%;
    border: 1px solid var(--coral);
    align-items: center;
    justify-content: space-between; 
}

/* Định dạng các nút Tab */
.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy-300);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    cursor: pointer;
    white-space: nowrap;
    transition: 
        color var(--duration) var(--ease-out), 
        background-color var(--duration) var(--ease-out),
        box-shadow var(--duration) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

/* Hiệu ứng khi Hover (chưa active) */
.tab-btn:hover:not(.active) {
    color: var(--navy-700);
    background-color: var(--surface-muted);
}

/* Trạng thái Tab đang được chọn (Active) */
.tab-btn.active {
    color: #ffffff;
    background-color: var(--coral); /* Màu san hô chủ đạo */
    box-shadow: 0 4px 14px var(--coral-dim); /* Đổ bóng nhẹ cùng tone màu */
}

/* --- Giải pháp Responsive tối ưu --- */
@media (max-width: 768px) {
    .tabs-container {
        padding: var(--space-3) var(--space-4);
        justify-content: center; /* Đưa về góc trái để cuộn mượt hơn */
    }

    .tabs-nav {
        overflow-x: auto; /* Tự động kích hoạt thanh cuộn ngang nếu tab quá dài */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
        width: 100%;
        /* Ẩn thanh cuộn vật lý để trông sạch sẽ hơn */
        scrollbar-width: none; 
        justify-content: center;
        max-width: max-content;
    }

    .tabs-nav::-webkit-scrollbar {
        display: none; 
    }

    .tab-btn {
        padding: var(--space-2) var(--space-4); /* Thu nhỏ khoảng cách trên mobile */
        font-size: var(--text-sm);
    }
}


/* ============================================================== */
/* QUICKSCAN WIZARD (flowchart 7 bước)                            */
/* ============================================================== */
.wizard {
    padding: 24px;
}

.wizard-progress {
    margin-bottom: 24px;
}
.progress-track {
    height: 6px;
    background: rgba(255,255,255,.12);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#01F57B,#008f51);
    transition: width .35s ease;
    width: 14%;
}
.progress-pct {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 6px;
    text-align: right;
}

.wizard-head {
    margin-bottom: 22px;
}
.wizard-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.wizard-sub {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
}

/* Form grid */
.form-group-grid {
    display: grid;
    gap: 14px;
}
.fg label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.18);
    color: #fff;
    font-size: 14px;
}
.form-control:focus {
    outline: none;
    border-color: #01F57B;
    background: rgba(0,0,0,.28);
}

/* Decision buttons */
.decision-prompt,
.member-welcome,
.pdf-complete {
    text-align: center;
    padding: 16px 0;
}
.decision-prompt .big-icon,
.member-welcome .big-icon,
.pdf-complete .complete-check,
.end-view .big-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg,#01F57B,#008f51);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}
.decision-prompt h3,
.member-welcome h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.decision-prompt p,
.member-welcome p {
    color: #cbd5e1;
    margin: 0 0 20px;
    font-size: 14px;
}

.decision-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.decision-buttons.side-by-side {
    gap: 18px;
}
.btn-decision {
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 160px;
    transition: all .2s ease;
}
.btn-decision i {
    font-size: 22px;
    margin-bottom: 6px;
}
.btn-decision.primary {
    background: linear-gradient(135deg,#01F57B,#008f51);
    border-color: transparent;
    color: #042b18;
}
.btn-decision.primary.alt {
    background: linear-gradient(135deg,#f4c542,#F7941B);
    color: #4a2900;
}
.btn-decision.ghost {
    background: transparent;
    color: #cbd5e1;
}
.btn-decision:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.btn-decision .btn-title {
    font-size: 15px;
    font-weight: 700;
}
.btn-decision .btn-desc {
    font-size: 12px;
    opacity: .85;
    font-weight: 400;
}

.btn-decision.pdf-btn {
    margin: 16px auto;
    display: inline-flex;
    flex-direction: row;
    min-width: auto;
    padding: 12px 28px;
}

/* Topic grid (Step 7 + Step 5b) */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 10px;
    margin-top: 6px;
}
.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.topic-card i {
    font-size: 22px;
    color: #01F57B;
}
.topic-card span {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}
.topic-card input {
    display: none;
}
.topic-card.selected {
    border-color: #01F57B;
    background: rgba(1,245,123,.08);
}
.topic-card.selected i {
    color: #01F57B;
}

/* Survey */
.survey-progress {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: right;
}
.survey-foot-inline {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* End view */
.end-view {
    text-align: center;
    padding: 24px 0;
}
.end-view .end-icon {
    background: linear-gradient(135deg,#f4c542,#008f51);
}
.end-view h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
}
.end-view p {
    color: #cbd5e1;
    margin: 0 0 18px;
}
.end-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.step-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    margin: 20px 0;
}

/* Status card */
.status-card .step .step-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.status-card .step.done .step-ring {
    background: linear-gradient(135deg,#01F57B,#008f51);
    color: #042b18;
}
.status-card .step.current .step-ring {
    background: linear-gradient(135deg,#f4c542,#F7941B);
    color: #4a2900;
    box-shadow: 0 0 0 4px rgba(244,197,66,.18);
}

@media (max-width: 768px) {
    .decision-buttons { flex-direction: column; }
    .btn-decision { width: 100%; }
}

/* Compact status panel — ẩn description, chỉ hiện step + title */
.status-card .step {
    padding: 6px 0 !important;
    gap: 8px !important;
}
.status-card .step h4 {
    font-size: 13px !important;
    margin: 0 !important;
    font-weight: 500 !important;
}
.status-card .step p {
    display: none !important; /* Ẩn description, compact */
}
.status-card {
    padding: 18px !important;
}
.status-card .head h3 {
    font-size: 14px !important;
    margin: 0 0 12px !important;
}
.status-card .head .icon {
    width: 32px !important;
    height: 32px !important;
}
.status-card .head .icon svg {
    width: 18px !important;
    height: 18px !important;
}

/* Improve topic cards visibility — đậm, dễ thấy */
.topic-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px !important;
    border: 1.5px solid rgba(255,255,255,.22) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.06) !important;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    min-height: 92px;
    justify-content: center;
}
.topic-card:hover {
    border-color: rgba(1,245,123,.5);
    background: rgba(1,245,123,.08);
    transform: translateY(-1px);
}
.topic-card i {
    font-size: 24px !important;
    color: #01F57B !important;
    width: 24px;
    text-align: center;
}
.topic-card span {
    font-size: 12px !important;
    color: #fff !important;
    font-weight: 500;
    line-height: 1.25;
}
.topic-card.selected {
    border-color: #01F57B !important;
    background: rgba(1,245,123,.14) !important;
    box-shadow: 0 0 0 2px rgba(1,245,123,.3);
}
.topic-grid {
    gap: 12px !important;
}

/* Compact decision prompt */
.decision-prompt {
    padding: 8px 0 !important;
}
.decision-prompt .big-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 22px !important;
    margin: 0 auto 12px !important;
}
.decision-prompt h3 {
    font-size: 16px !important;
    margin: 0 0 6px !important;
    font-weight: 600 !important;
}
.decision-prompt p {
    font-size: 13px !important;
    margin: 0 0 16px !important;
}

/* Wizard card padding */
.wizard {
    padding: 18px 22px !important;
}
.wizard-title {
    font-size: 18px !important;
    margin: 0 0 4px !important;
}
.wizard-sub {
    font-size: 13px !important;
    margin: 0 !important;
}

/* Form fields compact */
.fg label {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    font-weight: 500;
}
.form-control {
    padding: 9px 11px !important;
    font-size: 13px !important;
}

/* Survey option cards (q1-q9) compact */
.qblock {
    padding: 6px 0;
}
.q-num {
    font-size: 12px !important;
    width: 22px !important;
    height: 22px !important;
}
.q-text {
    font-size: 13px !important;
}
.opt {
    padding: 8px 10px !important;
    font-size: 13px !important;
}

/* Hide large completion icon when in wizard card */
.pdf-complete .complete-check {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
    margin: 0 auto 10px !important;
}
.pdf-complete h3 {
    font-size: 16px !important;
    margin: 0 0 6px !important;
}

/* === LIGHT THEME FIX: topic cards trên nền trắng === */
.wizard,
.wizard .wizard-head,
.wizard .wizard-progress,
.wizard .wizard-foot {
    background: transparent !important;
}

/* Force topic cards to have visible appearance on light bg */
.topic-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.topic-card:hover {
    border-color: #01F57B !important;
    box-shadow: 0 4px 12px rgba(1,245,123,.15);
}
.topic-card.selected {
    border-color: #01F57B !important;
    background: rgba(1,245,123,.08) !important;
    box-shadow: 0 0 0 2px #01F57B !important;
}
.topic-card i {
    color: #0a7d4d !important;
}
.topic-card.selected i {
    color: #01F57B !important;
}
.topic-card span {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Wizard card dùng dark theme để icon/gradient rõ */
.wizard {
    background: linear-gradient(180deg,#0f172a,#1e293b) !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
}
.wizard .wizard-title {
    color: #fff !important;
}
.wizard .wizard-sub {
    color: #cbd5e1 !important;
}
.wizard .form-control {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.2) !important;
}
.wizard .fg label {
    color: #cbd5e1 !important;
}
.wizard .btn-ghost {
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.18);
}
.wizard .btn-ghost:hover { background: rgba(255,255,255,.15); }
.wizard .btn-primary {
    background: linear-gradient(135deg,#01F57B,#008f51);
    color: #042b18;
    border: none;
}
.wizard .btn-primary:hover { transform: translateY(-1px); }

/* Status card dark theme */
.status-card {
    background: linear-gradient(180deg,#0f172a,#1e293b) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255,255,255,.1);
}
.status-card .head h3 {
    color: #fff !important;
}
.status-card .step h4 {
    color: #cbd5e1 !important;
}

/* Progress bar */
.progress-track {
    background: rgba(255,255,255,.1) !important;
}
.progress-pct {
    color: #94a3b8 !important;
}

/* === POLISHED LAYOUT === */
.step-content {
    padding: 4px 0;
}

/* Move status panel to bottom on small screens */
@media (max-width: 100%) {
    .layout {
        grid-template-columns: 1fr !important;
    }
}

/* Wizard head tighter */
.wizard-head {
    margin-bottom: 12px !important;
}

/* Score display for step 6 */
.score-display {
    text-align: center;
    font-size: 16px;
    color: #fff;
    margin: 8px 0 16px;
}
.score-display strong {
    color: #01F57B;
    font-size: 24px;
    margin: 0 4px;
}

/* PDF button compact */
.btn-decision.pdf-btn {
    margin: 0 auto 16px;
}

/* Member welcome lead text */
.lead-text {
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    padding: 0 16px;
}
.lead-text a {
    color: #01F57B;
    text-decoration: underline;
}
.member-welcome {
    text-align: center;
}

/* Smaller status card with horizontal layout when possible */
@media (min-width: 1101px) {
    .status-card {
        padding: 16px !important;
        position: sticky;
        top: 16px;
    }
}

/* === EQUAL HEIGHT LAYOUT (use grid for side-by-side cards) === */
.layout {
    display: grid !important;
    grid-template-columns: 7fr 3fr !important;
    align-items: stretch !important;
    gap: 20px !important;
}
.layout > .wizard,
.layout > .rail {
    height: 100%;
    min-height: 100%;
}

/* Wizard card uses flex column to push footer to bottom */
.wizard {
    display: flex !important;
    flex-direction: column !important;
}
.wizard .wizard-progress {
    flex-shrink: 0;
}
.wizard .wizard-head {
    flex-shrink: 0;
}
.wizard .step-content {
    flex: 1 1 auto;
}
.wizard .wizard-foot {
    flex-shrink: 0;
    margin-top: auto !important;
    padding-top: 12px;
}

/* Status card height 100% */
.status-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* === SURVEY STEP — DARK THEME OVERRIDE === */
.wizard .q-text {
    color: #f1f5f9 !important;  /* Light text for dark background */
    font-size: 14px !important;
    line-height: 1.5;
}
.wizard .q-num {
    background: linear-gradient(135deg, #01F57B, #008f51) !important;
    color: #042b18 !important;
    width: 26px;
    height: 26px;
}
.wizard .opt {
    background: #fff !important;  /* White card on dark background */
    border: 1.5px solid #e2e8f0 !important;
    color: #1e293b !important;  /* Dark text on white */
}
.wizard .opt:hover {
    border-color: #01F57B !important;
    background: #f0fdf4 !important;
}
.wizard .opt.selected {
    background: rgba(1, 245, 123, 0.12) !important;
    border-color: #01F57B !important;
    box-shadow: 0 0 0 2px rgba(1, 245, 123, 0.3);
}
.wizard .opt span.label {
    color: #1e293b !important;  /* Dark text */
    font-size: 14px;
}
.wizard .opt .radio {
    background: #fff !important;
    border-color: #cbd5e1 !important;
}
.wizard .opt.selected .radio {
    background: #01F57B !important;
    border-color: #01F57B !important;
}
.wizard .opt.selected .radio svg {
    stroke: #042b18 !important;
}
.wizard .qblock {
    margin-bottom: 16px !important;
    padding: 6px 0;
}
.wizard .q-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}
.wizard .options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* === SURVEY LAYOUT FIX: ép 1 cột dù bị đè === */
.wizard #survey-body,
.wizard #survey-body * {
    box-sizing: border-box;
}
.wizard #survey-body {
    display: block !important;
    width: 100% !important;
}
.wizard #survey-body .qblock {
    display: block !important;
    width: 100% !important;
    margin-bottom: 18px;
    padding: 0;
}
.wizard #survey-body .options {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px;
}
.wizard #survey-body .opt {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    text-align: left;
    min-height: 44px;
}
.wizard #survey-body .scale-row,
.wizard #survey-body .text-wrap,
.wizard #survey-body .q-row {
    width: 100% !important;
}

/* === COLUMN HEADERS (2 cột Khảo sát / Quy trình) === */
.column-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(1, 245, 123, 0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.column-head i {
    color: #01F57B;
    font-size: 14px;
}
.rail > .column-head {
    margin-bottom: 10px;
}

/* === BALANCED 2-COLUMN LAYOUT === */
.wizard-quick-scan .layout {
    display: grid !important;
    grid-template-columns: 7fr 3fr !important;
    gap: 20px !important;
    align-items: stretch !important;
    max-width: 100%;
    margin: 0 auto;
}
.wizard-quick-scan .wizard {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.08);
    padding: 22px 28px !important;
    color: #fff;
}
.wizard-quick-scan .status-card {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    padding: 22px 18px !important;
}

/* Compact step 1 form: 2-column layout for fields */
.wizard .form-group-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
}
.wizard .form-group-grid .fg-full {
    grid-column: 1 / -1;
}
.wizard .form-control {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 11px 13px !important;
    font-size: 13px !important;
    height: 42px;
    width: 100%;
}
.wizard .form-control::placeholder {
    color: rgba(255,255,255,.35) !important;
}
.wizard .form-control:focus {
    border-color: #01F57B !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1,245,123,.15);
}
.wizard .fg label {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Compact status card header */
.wizard-quick-scan .status-card .head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.wizard-quick-scan .status-card .head h3 {
    font-size: 14px !important;
    font-weight: 600;
    margin: 0 !important;
    color: #fff;
}

/* Status steps — small icons + labels, vertical */
.wizard-quick-scan .status-card .step {
    padding: 8px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wizard-quick-scan .status-card .step:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.wizard-quick-scan .status-card .step .step-ring {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
    flex-shrink: 0;
}
.wizard-quick-scan .status-card .step h4 {
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: #cbd5e1;
}
.wizard-quick-scan .status-card .step.done h4 {
    color: #fff;
}
.wizard-quick-scan .status-card .step.current h4 {
    color: #01F57B;
    font-weight: 600;
}

/* Center wizard buttons */
.wizard .wizard-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.wizard .wizard-foot button {
    min-width: 110px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
}
.wizard .btn-primary {
    background: #01F57B;
    color: #042b18;
    border: none;
    cursor: pointer;
}
.wizard .btn-primary:hover {
    background: #00d96a;
}
.wizard .btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
}
.wizard .btn-ghost:hover {
    background: rgba(255,255,255,.06);
}

/* Progress bar at top */
.wizard .wizard-progress {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.wizard .progress-track {
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}
.wizard .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01F57B, #00d96a);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.wizard .progress-text {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}
.wizard .wizard-head {
    margin-bottom: 18px;
}
.wizard .wizard-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.wizard .wizard-head p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* === REMOVE TOP MARGIN from status card on desktop === */
.wizard-quick-scan .status-card {
    margin-top: 0 !important;
}
.wizard-quick-scan .status-card .head {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.wizard-quick-scan > .container > .layout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.wizard-quick-scan {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure both cards top-align with no internal margin */
.wizard-quick-scan .layout > .card:first-child,
.wizard-quick-scan .layout > .card:last-child {
    margin-top: 0 !important;
    align-self: stretch;
}

/* === EQUAL HEIGHT CARDS === */
.wizard-quick-scan > .container > .layout {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}
.wizard-quick-scan > .container > .layout > .wizard {
    height: auto !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
}
.wizard-quick-scan .status-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: flex-start !important;
}
.wizard-quick-scan .wizard {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* === GRID-BASED EQUAL HEIGHT === */
.wizard-quick-scan .container > .layout {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
    align-items: stretch !important;
    gap: 20px !important;
    max-width: 100%;
    margin: 0 auto;
}
.wizard-quick-scan .container > .layout > .wizard {
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
}
.wizard-quick-scan .container > .layout > .status-card {
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* === FIX: status-card inside .rail, make .rail stretch (NO display:flex on .layout) === */
.wizard-quick-scan .container > .layout > .wizard {
    min-width: 0;
}
.wizard-quick-scan .container > .layout > .rail {
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}
.wizard-quick-scan .container > .layout > .rail > .status-card {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
}

/* === FALLBACK: ensure .rail stretches + .status-card fills === */
.wizard-quick-scan .layout {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
    grid-template-rows: 1fr !important;
    gap: 20px !important;
    max-width: 100%;
    margin: 0 auto;
    align-items: start !important;
}
.wizard-quick-scan .layout > .wizard {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.wizard-quick-scan .layout > .rail {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.wizard-quick-scan .layout > .rail > .status-card {
    flex: 1 1 auto !important;
    min-height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* === FIX: status-card inside .rail wrapper === */
.wizard-quick-scan .rail {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
}
.wizard-quick-scan .rail > .status-card {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 400px;
}
/* Make each step row visible with proper spacing */
.wizard-quick-scan .rail > .status-card > .step {
    flex-shrink: 0 !important;
}

/* === STATUS CARD - FORCE VISIBLE STEP DIVS === */
.wizard-quick-scan .status-card .step {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 6px 0 !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 28px !important;
}
.wizard-quick-scan .status-card .step .step-ring {
    display: flex !important;
    visibility: visible !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    align-items: center !important;
    justify-content: center !important;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}
.wizard-quick-scan .status-card .step > div {
    flex: 1;
    display: block !important;
    visibility: visible !important;
}
.wizard-quick-scan .status-card .step h4 {
    display: block !important;
    visibility: visible !important;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.wizard-quick-scan .status-card .step p {
    display: none;
}

/* === FIX: step ring must stay circular (NO stretching) === */
.wizard-quick-scan .status-card .step .step-ring {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 26px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    max-width: 26px;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
}
.wizard-quick-scan .status-card .step > div:not(.step-ring) {
    flex: 1 1 auto;
    min-width: 0;
}

/* === ACTIVE STEP: full orange solid (no gradient) === */
.wizard-quick-scan .status-card .step.current .step-ring,
.status-card .step.current .step-ring {
    background: #F7941B !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(247,148,27,.25) !important;
}

/* === STATUS CARD: auto height (no stretch) === */
.wizard-quick-scan .status-card,
.wizard-quick-scan .container > .layout > .rail > .status-card,
.wizard-quick-scan .container > .layout > .status-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
}
.wizard-quick-scan .container > .layout,
.wizard-quick-scan .layout {
    align-items: start !important;
}
.wizard-quick-scan .rail {
    height: auto !important;
    min-height: 0 !important;
}

/* === WIZARD PAGE: container giữ padding 48px chuẩn như các trang khác === */
/* (không override padding - để width khớp với trang-chu, doanh-nghiep) */

/* === STATUS CARD: fill grid column width (balanced layout) === */
.wizard-quick-scan .container > .layout > .rail > .status-card,
.wizard-quick-scan .container > .layout > .status-card {
    width: 100% !important;
    flex: 0 0 auto !important;
    max-width: none !important;
}
