.mobile-program-header {
    display: none;
}
@media (max-width: 767.98px) {
    /* Đóng Hero desktop */
    .desktop-program-sidebar {
        display: none !important;
    }
    /* Đóng header cũ của schedule */
    .program-title,
    .program-title + .progress {
        display: none !important;
    }
    .mobile-program-header {
        display: block;
        padding: 5px;
        margin-bottom: 5px;
    }
    .mobile-program-title {
        margin: 10px 0 16px;
        color: #f7f8fb;
        font-size: 21px;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -.03em;
    }
    .mobile-program-card {
        position: relative;
        min-height: 250px;
        overflow: hidden;
        border-radius: 5px;
        background: #111722;
        border: 1px solid rgba(255,255,255,.08);
    }
    .mobile-program-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-program-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                180deg,
                rgba(7,10,16,.05) 0%,
                rgba(7,10,16,.12) 30%,
                rgba(7,10,16,.72) 65%,
                #111722 100%
            );
    }
    .mobile-program-content {
        position: absolute;
        z-index: 2;
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
    .mobile-program-content h2 {
        max-width: 78%;
        margin: 0;
        color: #fff;
        font-size: 23px;
        line-height: 1.06;
        font-weight: 800;
        letter-spacing: -.035em;
    }
    .mobile-program-content p {
        max-width: 78%;
        margin: 8px 0 13px;
        color: rgba(255,255,255,.78);
        font-size: 10px;
        line-height: 1.4;
    }
    .mobile-program-progress-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
        color: #d9dee7;
        font-size: 10px;
        font-weight: 600;
    }
    .mobile-program-progress-header strong {
        color: #fff;
    }
    .mobile-program-progress {
        width: 100%;
        height: 5px;
        overflow: hidden;
        border-radius: 999px;
        background: #303746;
    }
    .mobile-program-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background:
            linear-gradient(
                90deg,
                #7c3aed,
                #9b5cff
            );
    }
}
.mobile-program-meta {
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-program-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 5px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.07);
        border-top: 0;
        border-radius: 5px;
        background: #111722;
    }
    .mobile-meta-item {
        min-width: 0;
        padding: 11px 7px 12px;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,.07);
    }
    .mobile-meta-item:last-child {
        border-right: 0;
    }
    .mobile-meta-item i {
        display: block;
        margin-bottom: 5px;
        color: var(--program-color);
        font-size: 11px;
    }
    .mobile-meta-item span {
        display: block;
        margin-bottom: 3px;
        color: #8f9aaa;
        font-size: 8px;
        line-height: 1.2;
    }
    .mobile-meta-item strong {
        display: block;
        overflow: hidden;
        color: #f5f7fa;
        font-size: 9px;
        font-weight: 600;
        line-height: 1.3;
        text-overflow: ellipsis;
    }
}
/* =========================================================
   MOBILE PROGRAM PROGRESS
   ========================================================= */
.mobile-program-progress-section {
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-program-progress-section {
        display: block;
        margin: 22px 14px 18px;
    }
    /* Heading */
    .mobile-section-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }
    .mobile-section-heading h3 {
        margin: 0;
        color: #f5f7fa;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 700;
    }
    .mobile-progress-detail {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #e5e7eb;
        font-size: 10px;
        cursor: pointer;
    }
    .mobile-progress-detail i {
        color: #c8ccd5;
        font-size: 8px;
    }
    /* Week progress */
    .mobile-week-progress {
        position: relative;
        display: grid;
        grid-template-columns:
            repeat(
                var(--week-count),
                minmax(0, 1fr)
            );
        width: 100%;
    }
    /* Line */
    .mobile-week-line {
        position: absolute;
        top: 18px;
        left: 10%;
        width: 80%;
        height: 2px;
        background: #303642;
        z-index: 0;
    }
    /* Week */
    .mobile-week-item {
        position: relative;
        z-index: 1;
        text-align: center;
    }
    /* Circle */
    .mobile-week-circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin: 0 auto 7px;
        border-radius: 50%;
        background: #252b35;
        border: 1px solid #343b47;
        color: #b9bec8;
        font-size: 13px;
    }
    /* Current */
    .mobile-week-item.is-current .mobile-week-circle,
    .mobile-week-item.is-completed .mobile-week-circle {
        border: 2px solid #9b5cff;
        background: #17131f;
        color: #9b5cff;
    }
    /* Current nổi bật */
    .mobile-week-item.is-current .mobile-week-circle {
        box-shadow:
            0 0 0 3px rgba(155,92,255,.08);
    }
    /* Label */
    .mobile-week-label {
        color: #d8dce4;
        font-size: 9px;
        line-height: 1.2;
    }
    /* Percent */
    .mobile-week-percent {
        min-height: 12px;
        margin-top: 3px;
        color: #f1f3f6;
        font-size: 9px;
        font-weight: 500;
    }
/* Locked */
    .mobile-week-item.is-locked .mobile-week-label {
        color: #9aa1ae;
    }
}
.mobile-week-current-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9b5cff;
}
.mobile-program-progress span {
    background: var(--program-color);
}
.mobile-week-item.is-current .mobile-week-circle,
.mobile-week-item.is-completed .mobile-week-circle {
    border-color: var(--program-color);
    background: #17131f;
    color: var(--program-color);
}
.mobile-week-current-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--program-color);
}
.mobile-progress-detail {
    color: var(--program-color);
}
/* =========================================================
   MOBILE DAY LIST
   ========================================================= */
.mobile-day-list-section {
    display: none;
}
@media (max-width: 767.98px) {
    /* -----------------------------------------------------
       SECTION
       ----------------------------------------------------- */
    .mobile-day-list-section {
        display: block;
        margin: 20px 14px 22px;
    }
.mobile-week-list-header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin: 16px 0 8px;
    padding: 0 12px;
    box-sizing: border-box;
    border-left: 2px solid var(--program-color);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
}
.mobile-week-list-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--program-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.mobile-week-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 1px solid var(--program-color);
    border-radius: 50%;
    color: var(--program-color);
    font-size: 11px;
    font-weight: 700;
}
    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */
    .mobile-day-list-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .mobile-day-list-header h3 {
        margin: 0;
        color: #f5f7fa;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 700;
    }
    .mobile-day-list-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #cfd4dd;
        font-size: 11px;
        cursor: pointer;
    }
    /* -----------------------------------------------------
       LIST
       ----------------------------------------------------- */
    .mobile-day-list {
        display: flex;
        position: relative;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    /* -----------------------------------------------------
       DAY ITEM
       ----------------------------------------------------- */
    .mobile-day-item {
        position: relative;
        display: grid;
        grid-template-columns:
            70px
            minmax(0, 1fr)
            28px;
        align-items: center;
        width: calc(100% - 26px);
        min-height: 70px;
        margin-left: 26px;
        padding: 5px;
        box-sizing: border-box;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 5px;
        background: #111722;
        transition:
            border-color .2s ease,
            background .2s ease,
            box-shadow .2s ease;
    }
    /* =====================================================
    DAY TIMELINE
    ===================================================== */
    .mobile-day-timeline {
        position: absolute;
        left: -26px;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
    }
    /* Đường nối */
    .mobile-day-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -6px;
        bottom: -6px;
        width: 1px;
        background: #64748b;
        transform: translateX(-50%);
    }
    /* Nút tròn */
    .mobile-day-dot {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 12px;
        height: 12px;
        transform: translate(-50%, -50%);
        border: 1.5px solid #64748b;
        border-radius: 50%;
        background: #202636;
        z-index: 2;
    }
    /* Ngày hiện tại */
    .mobile-day-item.is-current .mobile-day-dot {
        border-color: var(--program-color);
        background: var(--program-color);
    }
    /* Ngày hoàn thành */
    .mobile-day-item.is-completed .mobile-day-dot {
        border-color: var(--program-color);
        background: var(--program-color);
    }
    /* Ngày khóa */
    .mobile-day-item.is-locked .mobile-day-dot {
        border-color: #64748b;
        background: #202636;
    }
    /* -----------------------------------------------------
       CURRENT DAY
       ----------------------------------------------------- */
    .mobile-day-item.is-current {
        border-color: var(--program-color);
        background: #151b27;
        box-shadow:
            0 0 0 1px
            rgba(255,255,255,.02);
    }
    /* -----------------------------------------------------
       COMPLETED DAY
       ----------------------------------------------------- */
    .mobile-day-item.is-completed {
        border-color: rgba(255,255,255,.08);
    }
    /* -----------------------------------------------------
       LOCKED DAY
       ----------------------------------------------------- */
    .mobile-day-item.is-locked {
        opacity: .72;
    }
    /* -----------------------------------------------------
       IMAGE
       ----------------------------------------------------- */
        .mobile-day-image {
            width: 75px;
            height: 50px;
            aspect-ratio: 3 / 2;
            flex: 0 0 70px;
            overflow: hidden;
        }
        .mobile-day-image img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }
        .mobile-day-content {
            flex: 1;
            min-width: 0;
        }
        .mobile-day-title {
            white-space: nowrap;
            overflow: hidden;
            font-size: 11px;
            line-height: 1.25;
            padding-left: 5px;
        }
    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */
    .mobile-day-content {
        min-width: 0;
        padding: 0 8px;
    }
    /* -----------------------------------------------------
       TITLE
       ----------------------------------------------------- */
    .mobile-day-title h4 {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            margin: 0;
        }
        .mobile-day-title .day-number,
        .mobile-day-title .day-separator,
        .mobile-day-title .day-name {
            display: inline;
        }
        .mobile-day-title .day-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }
            .mobile-day-title span {
        margin: 0 2px;
        color: #727a88;
    }
    /* -----------------------------------------------------
       META
       ----------------------------------------------------- */
    .mobile-day-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
        color: #969eac;
        font-size: 9px;
        line-height: 1.2;
    }
    .mobile-day-meta span {
        white-space: nowrap;
    }
    .mobile-day-meta i {
        margin-right: 2px;
        font-size: 8px;
    }
    /* -----------------------------------------------------
       CURRENT META
       ----------------------------------------------------- */
    .mobile-day-item.is-current
    .mobile-day-meta span:first-child {
        color: var(--program-color);
    }
    /* -----------------------------------------------------
       ACTION
       ----------------------------------------------------- */
    .mobile-day-action {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 100%;
        color: #858d9a;
        font-size: 11px;
    }
    /* Current arrow */
    .mobile-day-item.is-current
    .mobile-day-action {
        color: var(--program-color);
    }
    /* Completed check */
    .mobile-day-item.is-completed
    .mobile-day-action {
        color: var(--program-color);
    }
    /* -----------------------------------------------------
       MOBILE ONLY
       ----------------------------------------------------- */
    .mobile-day-list-section {
        -webkit-tap-highlight-color: transparent;
    }
}
/* =====================================================
   MOBILE WEEK ACCORDION
   ===================================================== */
.mobile-week-group {
    width: 100%;
}
/* Header */
.mobile-week-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin: 16px 0 8px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 0;
    border-left: 2px solid var(--program-color);
    border-radius: 5px;
    background: rgba(255,255,255,.04);
    color: var(--program-color);
    cursor: pointer;
    text-align: left;
}
/* Title */
.mobile-week-list-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--program-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
/* Week number */
.mobile-week-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 1px solid var(--program-color);
    border-radius: 50%;
    color: var(--program-color);
    font-size: 11px;
    font-weight: 700;
}
/* Content */
.mobile-week-content {
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: height .28s ease;
}
/* Arrow */
.mobile-week-toggle-icon {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--program-color);
    transition: transform .28s ease;
}
.mobile-week-group.is-open .mobile-week-toggle-icon {
    transform: rotate(180deg);
}
/* =========================================================
   RESPONSIVE WORKOUT CONTENT
   ========================================================= */
/* =========================
   DESKTOP
   ========================= */
@media (min-width: 768px) {
    /* Desktop hiển thị nội dung bài tập */
    .schedule-content {
        display: block !important;
        width: 100%;
    }
    /* Mobile layout không xuất hiện trên desktop */
    .mobile-day-list-section {
        display: none !important;
    }
}
/* =========================
   MOBILE
   ========================= */
@media (max-width: 767.98px) {
    /* Mobile dùng danh sách ngày riêng */
    .mobile-day-list-section {
        display: block;
    }
    /* Không hiển thị schedule-content của desktop */
    .schedule-content {
        display: none !important;
    }
}
@media (max-width: 767.98px) {
    .schedule-nav {
        display: none !important;
    }
}
/* =========================================================
   DAY NAVIGATION
   ========================================================= */
.schedule-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 18px 0 12px;
}
/* =========================================================
   ARROW BUTTONS
   ========================================================= */
.schedule-nav .nav-btn {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #3d4655;
    background: #171d28;
    color: #dce1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .15s ease;
}
.schedule-nav .nav-btn:hover {
    border-color: var(--program-color, #f59e0b);
    color: var(--program-color, #f59e0b);
    background: #202532;
}
.schedule-nav .nav-btn:active {
    transform: scale(.94);
}
.schedule-nav .nav-btn:disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
/* =========================================================
   SCROLL AREA
   ========================================================= */
.day-tabs-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.day-tabs {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 4px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
}
.day-tabs::-webkit-scrollbar {
    display: none;
}
/* =========================================================
   DAY ITEM
   ========================================================= */
.day-tabs .day-tab {
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: #b8beca;
    cursor: pointer;
}
.day-tabs .day-tab:disabled {
    cursor: default;
}
/* =========================================================
   CIRCLE
   ========================================================= */
.day-tab-circle {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252b35;
    border: 2px solid #46505f;
    color: #d5dae3;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}
/* =========================================================
   LABEL
   ========================================================= */
.day-tab-label {
    width: 100%;
    text-align: center;
    font-size: 9px;
    line-height: 1.2;
    color: #aeb5c2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =========================================================
   ACTIVE / CURRENT
   ========================================================= */
.day-tab.active .day-tab-circle,
.day-tab.current-day .day-tab-circle {
    border-color: var(--program-color, #f59e0b);
    background: color-mix(
        in srgb,
        var(--program-color, #f59e0b) 12%,
        transparent
    );
    color: var(--program-color, #f59e0b);
    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--program-color, #f59e0b) 10%,
            transparent
        );
}
.day-tab.active .day-tab-label,
.day-tab.current-day .day-tab-label {
    color: #fff;
    font-weight: 700;
}
/* =========================================================
   COMPLETED
   ========================================================= */
.day-tab.completed-day .day-tab-circle {
    background: var(--program-color, #f59e0b);
    border-color: var(--program-color, #f59e0b);
    color: #fff;
}
.day-tab.completed-day .day-tab-label {
    color: #d8dce4;
}
/* =========================================================
   PREVIEW
   ========================================================= */
.day-tab.preview-day .day-tab-circle {
    border-color: #596273;
    color: #d1d5db;
}
/* =========================================================
   LOCKED
   ========================================================= */
.day-tab.locked-day {
    opacity: .45;
}
.day-tab.locked-day .day-tab-circle {
    background: #202631;
    border-color: #303846;
    color: #8b93a1;
}
/* =========================================================
   DAY CONTENT
   ========================================================= */
.schedule-content {
    margin-top: 10px;
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
    .schedule-nav {
        gap: 8px;
        margin: 18px 0 12px;
    }
    .schedule-nav .nav-btn {
        flex-basis: 38px;
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        height: 38px;
        min-height: 38px;
        max-height: 38px;
    }
    .day-tabs {
        gap: 12px;
    }
    .day-tabs .day-tab {
        flex-basis: 58px;
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }
}
/* =========================================================
   MOBILE DAY DETAIL
   ========================================================= */
.mobile-day-detail-section {
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-day-detail-section {
        display: none;
        margin: 0 14px 24px;
    }
    .mobile-day-detail-section.is-active {
        display: block;
    }
    .mobile-day-detail-header {
        display: flex;
        align-items: center;
        min-height: 42px;
        margin-bottom: 12px;
    }
    .mobile-day-detail-back {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin-top: 15px;
        background: transparent;
        color: var(--program-color);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 5px;
        padding: 10px;
        border: 1px solid var(--program-color);
    }
    .mobile-day-detail-list {
        width: 100%;
    }
    .mobile-day-detail-item[hidden] {
        display: none !important;
    }
    .mobile-day-detail-item.is-active {
        display: block;
    }
    .mobile-day-link {
        cursor: pointer;
        -webkit-tap-highlight-color:
            transparent;
    }
    .mobile-day-link.is-disabled {
        cursor: default;
    }
    .mobile-day-link.is-selected
    .mobile-day-item {
        border-color:
            var(--program-color);
    }
    /*
     * Mobile được phép hiển thị
     * nội dung Day Detail riêng.
     */
    .mobile-day-detail-item
    .day-content {
        display: block !important;
        width: 100%;
    }
}
@media (min-width: 768px) {
    .mobile-day-detail-section {
        display: none !important;
    }
}
/* =========================================================
   MOBILE DAY WORKOUT DETAIL
   ========================================================= */
.mobile-day-detail-section {
    width: 100%;
}
.mobile-day-detail-item {
    width: 100%;
}
.mobile-day-detail-item[hidden] {
    display: none !important;
}
/* =========================================================
   HEADER
   ========================================================= */
.mobile-workout-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mobile-workout-detail-title {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--program-color);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.mobile-workout-detail-day {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}
.mobile-workout-detail-separator {
    opacity: .6;
}
/* =========================================================
   SUMMARY
   ========================================================= */
.mobile-workout-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 5px;
    background: rgba(10,17,29,.82);
}
.mobile-workout-summary-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
}
.mobile-workout-summary-item > i {
    flex: 0 0 auto;
    color:var(--program-color);
    font-size: 18px;
}
.mobile-workout-summary-item > div {
    min-width: 0;
}
.mobile-workout-summary-item strong,
.mobile-workout-summary-item span {
    display: block;
}
.mobile-workout-summary-item strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}
.mobile-workout-summary-item span {
    margin-top: 2px;
    color: #9ca3af;
    font-size: 10px;
}
/* =========================================================
   OVERVIEW
   ========================================================= */
.mobile-workout-overview {
    margin-bottom: 20px;
    margin-right: 15px;
}
.mobile-workout-overview h3 {
    margin: 0 0 12px;
    color: var(--program-color);
    font-size: 14px;
    font-weight: 500;
}
.mobile-workout-overview-flow {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 10px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 5px;
    background: rgba(10,17,29,.82);
}
.mobile-workout-overview-step {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.mobile-workout-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: var(--program-color);;
    color: #ffffff;
    font-size: 16px;
}
.mobile-workout-overview-step strong {
    display: block;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}
.mobile-workout-overview-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 18px;
}
/* =========================================================
   PHASE
   ========================================================= */
.mobile-workout-phases{
    margin-right: 15px;
    }
.mobile-workout-phase {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 5px;
    
    background: rgba(18,25,39,.88);
}
.mobile-workout-phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-workout-phase-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.mobile-workout-phase-title > span {
    font-size: 15px;
}
.mobile-workout-phase-title strong {
    color: var(--program-color);
    font-size: 14px;
    font-weight: 600;
}
.mobile-workout-phase-toggle {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #ffffff;
}
.mobile-workout-phase-content {
    display: block;
}
/* =========================================================
   GROUP
   ========================================================= */
.mobile-workout-group {
    width: 100%;
}
.mobile-workout-group-name {
    padding: 8px 14px;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 600;
}
.mobile-workout-group-name span {
    margin-left: 5px;
    color: #8b93a7;
    font-weight: 400;
}
/* =========================================================
   MOBILE EXERCISE ROW
   ========================================================= */
.mobile-workout-exercise {
    position: relative;
    display: grid;
    /*
     * Timeline | Image | Content | Action
     *
     * Content luôn có phần còn lại.
     */
    grid-template-columns:
        22px
        76px
        minmax(0, 1fr)
        45px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: inherit;
    text-decoration: none !important;
}
.mobile-workout-exercise:last-child {
    border-bottom: 0;
}
/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */
.mobile-workout-exercise-image {
    width: 76px;
    height: 68px;
    min-width: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #0b111c;
}
.mobile-workout-exercise-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */
.mobile-workout-exercise-content {
    min-width: 0;
    width: 100%;
    padding-left: 8px;
    box-sizing: border-box;
}
.mobile-workout-exercise-content h4 {
    width: 100%;
    min-width: 0;
    margin: 0 0 6px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ---------------------------------------------------------
   PRESCRIPTION
   --------------------------------------------------------- */
.mobile-workout-exercise-prescription {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    gap: 5px;
    overflow: hidden;
}
.mobile-workout-exercise-prescription span {
    flex: 0 0 auto;
    color: #d1d5db;
    font-size: 9px;
    line-height: 1.3;
    white-space: nowrap;
}
/* ---------------------------------------------------------
   ACTION
   --------------------------------------------------------- */
.mobile-workout-exercise-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    padding-left: 5px;
    box-sizing: border-box;
}
.mobile-exercise-time {
    color: #e5e7eb;
    font-size: 10px;
    white-space: nowrap;
}
.mobile-exercise-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    color: #d1d5db;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}
.mobile-exercise-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--program-color);
    color: #ffffff;
    font-size: 10px;
}
/* =========================================================
   TIMELINE
   ========================================================= */
.mobile-exercise-timeline {
    position: relative;
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mobile-exercise-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(148,163,184,.35);
}
.mobile-workout-exercise:first-child
.mobile-exercise-timeline::after {
    top: 50%;
}
.mobile-workout-exercise:last-child
.mobile-exercise-timeline::after {
    bottom: 50%;
}
.mobile-exercise-dot {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    background: #182131;
}
.mobile-exercise-dot.is-completed {
    border-color: var(--program-color);;
    background: var(--program-color);;
}
/* =========================================================
   ACTION / TIME
   ========================================================= */
.mobile-workout-exercise-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 45px;
    padding-left: 5px;
}
.mobile-exercise-time {
    color: #e5e7eb;
    font-size: 10px;
    white-space: nowrap;
}
.mobile-exercise-start {
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    color: #d1d5db;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}
.mobile-exercise-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--program-color);;
    color: #ffffff;
    font-size: 10px;
}
/* =========================================================
   ACTION BUTTONS
   ========================================================= */
.mobile-workout-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 15px;
    margin-top: 14px;
    padding-bottom: 20px;
}
.mobile-workout-start-button,
.mobile-workout-note-button {
    width: 100%;
    min-height: 44px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}
.mobile-workout-start-button {
    border: 0;
    background: var(--program-color);;
    color: #ffffff;
}
.mobile-workout-note-button {
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(18,25,39,.9);
    color: #ffffff;
}
.mobile-workout-start-button i,
.mobile-workout-note-button i {
    margin-right: 6px;
}
/* =========================================================
   REST DAY
   ========================================================= */
.mobile-rest-day-card {
    min-height: 350px;
    overflow: hidden;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
}
.mobile-rest-day-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 24px;
    background: rgba(7,12,20,.78);
    text-align: center;
}
.mobile-rest-day-icon {
    font-size: 32px;
}
.mobile-rest-day-badge {
    margin-top: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}
.mobile-rest-day-overlay blockquote {
    margin: 18px 0;
    color: #e5e7eb;
    font-size: 13px;
}
.mobile-rest-day-tips {
    display: grid;
    gap: 7px;
    color: #cbd5e1;
    font-size: 11px;
}
.mobile-rest-day-complete {
    margin-top: 20px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: var(--program-color);;
    color: #ffffff;
    font-weight: 600;
}
/* =========================================================
   MOBILE SCHEDULE MODE
   ========================================================= */
/* Mặc định: màn hình danh sách */
.schedule-mobile[data-mobile-mode="list"] .mobile-day-detail-section {
    display: none;
}
/* Khi đang xem chi tiết Day */
.schedule-mobile[data-mobile-mode="detail"] .mobile-program-header,
.schedule-mobile[data-mobile-mode="detail"] .mobile-program-meta,
.schedule-mobile[data-mobile-mode="detail"] .mobile-program-progress-section,
.schedule-mobile[data-mobile-mode="detail"] .mobile-day-list-section {
    display: none;
}
/* Detail chiếm toàn bộ vùng Mobile */
.schedule-mobile[data-mobile-mode="detail"] .mobile-day-detail-section {
    display: block;
}
@media (max-width: 767.98px) {
    .mobile-workout-exercise {
        grid-template-columns:
            20px
            76px
            minmax(0, 1fr)
            40px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .mobile-workout-exercise-image {
        width: 76px;
        height: 68px;
    }
    .mobile-workout-exercise-content {
        min-width: 0;
        overflow: hidden;
    }
    .mobile-workout-exercise-content h4 {
        max-width: 100%;
    }
    .mobile-workout-exercise-prescription {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .mobile-workout-exercise-prescription span {
        white-space: nowrap;
    }
    .mobile-workout-exercise-action {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        padding-left: 3px;
    }
}