/* Trình đọc EPUB mới (Admin/Views/EBook/ReadEpub.cshtml) */

/* Không cho in */
@media print {
    * {
        display: none;
    }
}

html.reader-locked #viewer,
html.reader-locked .sidebar-content,
html.reader-locked #notePopup,
html.reader-locked #currentChapter {
    visibility: hidden !important;
}

.reader-guard-message {
    position: fixed;
    inset: 48px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 15px;
    color: #e4e4e4;
    background: #121214;
    z-index: 300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Netflix Sans', sans-serif;
    background: #121214;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.reader-container {
    display: flex;
    height: 100vh;
    gap: 1px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: rgb(41 41 43);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0; /* Không có gap - text sát vào logo/icon */
    flex: 1;
    min-width: 0; /* Cho phép text bị cắt thay vì đẩy header-right */
    overflow: hidden; /* Ẩn text vượt quá */
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex-shrink: 0; /* Logo không co lại */
}

    .logo:hover {
        opacity: 0.8;
    }

.logo-full {
    height: 30px;
    display: block;
}

.logo-short {
    display: none;
}

/* Home icon cho mobile */
.home-icon {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #e4e4e4;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    .home-icon:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .home-icon:active {
        transform: scale(0.95);
    }

/* Container cho title và chapter */
.header-left > div {
    flex: 0 1 auto; /* Chỉ chiếm không gian cần thiết của text */
    min-width: 0;
    overflow: hidden;
    margin-left: 8px; /* Khoảng cách giữa logo/icon và text */
}

/* Nút quay lại (thay logo): không nền, chỉ hiện nền khi rê chuột */
.btn-icon.btn-back {
    background: transparent;
    flex-shrink: 0;
}

    .btn-icon.btn-back:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.header-title {
    font-size: 14px;
    color: #e4e4e4;
    font-weight: 600;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* Cho phép ellipsis hoạt động */
}

.header-chapter {
    font-size: 13px;
    color: #808080;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* Cho phép ellipsis hoạt động */
}

.header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e4;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .btn-icon:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .btn-icon:active {
        transform: scale(0.95);
    }

    /* small plus / minus overlays (two separate elements) */
    .btn-icon .bookmark-plus,
    .btn-icon .bookmark-minus {
        position: absolute;
        inset: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        line-height: 1;
        width: 20px;
        height: 20px;
        margin: auto;
        pointer-events: none;
        background: transparent;
        border-radius: 4px;
        padding-bottom: 5px;
    }

    .btn-icon .bookmark-plus {
        color: #00d4ff;
    }

    .btn-icon .bookmark-minus {
        color: #ff4d4f;
        display: none;
        font-weight: 700;
    }

    .btn-icon.bookmarked .bookmark-plus {
        display: none;
    }

    .btn-icon.bookmarked .bookmark-minus {
        display: inline-flex;
    }

/* Main Content */
.content-wrapper {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #1a1a1d;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: left 0.3s ease;
    z-index: 50;
    padding-top: 48px;
}

    .sidebar.hidden {
        left: -300px;
        pointer-events: none;
    }

    .sidebar:not(.hidden) {
        left: 0;
        pointer-events: auto;
    }

/* Sidebar header: 1 hàng = tab (Mục lục | Dấu trang | Ghi chú) + nút đóng */
.sidebar-header {
    position: absolute;
    top: 48px; /* below top site header */
    left: -300px;
    width: 300px;
    height: 44px; /* fixed header block height (khớp margin-top của .sidebar-content) */
    padding: 0 6px 0 8px;
    display: flex;
    align-items: stretch;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1d;
    z-index: 51;
    transition: left 0.3s ease;
}

    /* Tabs dạng gạch chân */
    .sidebar-header .tab-row {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: stretch;
    }

        .sidebar-header .tab-row button {
            flex: 1 1 0;
            min-width: 0;
            padding: 0 6px;
            background: transparent;
            color: #9a9a9a;
            border: none;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px; /* gạch chân đè lên border-bottom của header */
            font-weight: 600;
            font-size: 13px;
            text-align: center;
            white-space: nowrap;
            cursor: pointer;
            transition: color 0.18s ease, border-color 0.18s ease;
        }

            .sidebar-header .tab-row button:hover {
                color: #e4e4e4;
            }

            .sidebar-header .tab-row button.active {
                color: #00d4ff;
                border-bottom-color: #00d4ff;
            }

.sidebar:not(.hidden) ~ .sidebar-header,
.sidebar:not(.hidden) .sidebar-header {
    left: 0;
}

.btn-close-sidebar {
    align-self: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9a9a9a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-close-sidebar:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #e4e4e4;
    }

    .btn-close-sidebar:active {
        transform: scale(0.95);
    }

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    /* push content below the sidebar-header block */
    margin-top: 44px;
    transition: inherit;
}

.toc-item {
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #b3b3b3;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .toc-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #e4e4e4;
    }

    .toc-item.active {
        background: rgba(255, 255, 255, 0.12);
        color: #00d4ff;
        border-left-color: #00d4ff;
    }

    .toc-item.level-2 {
        padding-left: 24px;
        font-size: 12px;
        opacity: 0.8;
    }

    .toc-item.level-3 {
        padding-left: 38px;
        font-size: 11px;
        opacity: 0.6;
    }

#bookmarksPanel .toc-item,
#notesPanel .toc-item {
    padding: 7px 10px;
    gap: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bookmarksPanel .delete-btn,
#notesPanel .delete-btn {
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}
/* Reader Area */
.reader-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#viewer {
    flex: 1;
    margin-top: 48px;
    background: #1a1a1d;
    overflow: hidden;
    color: #ffffff;
}


/* Bottom Controls */
.controls-bottom {
    /*position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(18,18,20,0.95), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;*/
    padding: 0 24px 6px;
    background: rgb(41 41 43);
    /* z-index: 100;
    backdrop-filter: blur(10px);*/
}

.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 12px;
    color: #ffff;
    display: flex;
    justify-content: flex-start;
    gap: 4px;               /* "Trang 326 / 1572" nằm sát nhau bên trái */
}

    /* % đã đọc: đẩy sang sát bên phải */
    .progress-text .progress-percent {
        margin-left: auto;
        color: #b3b3b3;
    }

.nav-buttons {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    z-index: 45;
    pointer-events: none;
}

/* Nút lật trang: tròn, nền xám đậm, mũi tên trắng */
.btn-nav {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(44, 44, 46, 0.92);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

    .btn-nav svg {
        width: 18px;
        height: 18px;
    }

    .btn-nav:hover {
        background: rgba(72, 72, 76, 0.95);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 10px rgba(0, 0, 0, 0.45);
    }

    .btn-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* Hide ::before on desktop */
    .btn-nav::before {
        display: none;
    }

/* Settings Panel */
.settings-panel {
    position: fixed;
    right: -350px;
    top: 48px;
    width: 320px;
    height: 100vh;
    background: #1a1a1d;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 60;
    overflow-y: auto;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .settings-panel.open {
        right: 0;
    }

.settings-header {
    font-size: 16px;
    font-weight: 600;
    color: #e4e4e4;
    margin-bottom: 10px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-label {
    font-size: 12px;
    color: #808080;
    font-weight: 500;
    text-transform: uppercase;
}

.setting-options {
    display: flex;
    gap: 8px;
}

.setting-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

    .setting-btn.active {
        background: #00d4ff;
        color: #000;
        border-color: #00d4ff;
    }

    .setting-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.12);
    }

.slider-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    outline: none;
}

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #00d4ff;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #00d4ff;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
    }

.slider-value {
    font-size: 12px;
    color: #b3b3b3;
    min-width: 30px;
}

.color-btn {
    flex: 1;
    width: 100%;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

    .color-btn[data-bg-color="#1a1a1d"] {
        background: #1a1a1d;
        color: #1a1a1d;
    }

    .color-btn[data-bg-color="#2a3f5f"] {
        background: #2a3f5f;
        color: #2a3f5f;
    }

    .color-btn[data-bg-color="#1a2332"] {
        background: #1a2332;
        color: #1a2332;
    }

    .color-btn[data-bg-color="#2d1b1b"] {
        background: #2d1b1b;
        color: #2d1b1b;
    }

    .color-btn:hover {
        border-color: rgba(0, 212, 255, 0.6);
        transform: scale(1.05);
    }

    .color-btn.active {
        border-color: #00d4ff;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

.text-color-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
}

    .text-color-btn[data-text-color="#ffffff"] {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
    }

    .text-color-btn[data-text-color="#e4e4e4"] {
        color: #e4e4e4;
        background: rgba(228, 228, 228, 0.15);
    }

    .text-color-btn[data-text-color="#ffeb3b"] {
        color: #ffeb3b;
        background: rgba(255, 235, 59, 0.15);
    }

    .text-color-btn[data-text-color="#a8d5ff"] {
        color: #a8d5ff;
        background: rgba(168, 213, 255, 0.15);
    }

    .text-color-btn:hover {
        border-color: rgba(0, 212, 255, 0.6);
    }

    .text-color-btn.active {
        border-color: #00d4ff;
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    }

.font-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

    .font-select:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .font-select:focus {
        outline: none;
        border-color: #00d4ff;
        background: rgba(0, 212, 255, 0.1);
    }

.note-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    border-radius: 50%;
    display: none;
}

    .note-indicator.active {
        display: block;
    }

.keyboard-hint {
    font-size: 11px;
    color: #808080;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 2px solid #00d4ff;
}

    .keyboard-hint strong {
        color: #00d4ff;
    }

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 40;
}

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

/* Popup ghi chú (luôn tối, không đổi theo chế độ hiển thị -> !important đè style inline của ThemeManager) */
#notePopup {
    position: fixed;
    z-index: 310;
    width: 260px;
    padding: 16px;
    border-radius: 14px;
    background: #1f1f22 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.note-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.note-popup-title {
    font-size: 15px;
    font-weight: 700;
}

.note-popup-close {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1f1f22;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

    .note-popup-close:hover {
        opacity: 0.8;
    }

.note-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

    .note-colors .color-choice {
        height: 34px;
        border-radius: 8px;
        border: 2px solid transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.15s ease;
    }

        .note-colors .color-choice:hover {
            transform: translateY(-1px);
        }

        /* Màu đang chọn: viền xanh + dấu tick tròn ở giữa */
        .note-colors .color-choice.selected {
            border-color: #12b886;
        }

            .note-colors .color-choice.selected::after {
                content: '';
                width: 18px;
                height: 18px;
                border-radius: 50%;
                background: #12b886 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
            }

#noteText {
    display: block;
    width: 100%;
    height: 86px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.15s ease;
}

    #noteText::placeholder {
        color: rgba(255, 255, 255, 0.45);
    }

    #noteText:focus {
        border-color: rgba(255, 255, 255, 0.4) !important;
    }

.note-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.note-counter {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

    .note-counter.limit {
        color: #ff6b6b;
    }

.note-save-btn {
    min-width: 112px;
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: #12b886;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .note-save-btn:hover {
        background: #0ca678;
    }

/* EPUB initial loading overlay */
.epub-loading-overlay {
    position: absolute; /* overlay inside viewer */
    inset: 0;
    background: rgba(0,0,0,0.96); /* almost opaque to hide reader */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 49; /* dưới sidebar (50) -> loading không che mục lục */
    color: #fff;
    font-size: 14px;
    flex-direction: column;
    pointer-events: auto;
}

    /* Theme variations for overlay */
    .epub-loading-overlay.light {
        background: rgba(255,255,255,0.92);
        color: #111;
    }

    .epub-loading-overlay.dark {
        background: rgba(0,0,0,0.96);
        color: #fff;
    }

    .epub-loading-overlay .spinner {
        width: 56px;
        height: 56px;
        border: 6px solid rgba(255,255,255,0.12);
        border-top-color: #00d4ff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 12px;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* When viewer has .loading, hide all its children except the overlay */
#viewer.loading > *:not(.epub-loading-overlay) {
    visibility: hidden !important;
}

/* File Upload */
.upload-area {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.upload-box {
    background: #1a1a1d;
    border: 2px dashed rgba(0, 212, 255, 0.5);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: #e4e4e4;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 12px;
    color: #808080;
    margin-bottom: 20px;
}

#fileInput {
    display: none;
}

.btn-primary {
    padding: 12px 24px;
    background: #00d4ff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: #00b3d4;
        transform: translateY(-2px);
    }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        height: 100vh;
        z-index: 55;
    }

    .header-title {
        max-width: 150px;
    }

    .controls-bottom {
        height: 80px;
        padding: 0;
    }

    /* Mobile Logo */
    .logo-full {
        display: none;
    }

    /* Hide fullscreen button on mobile */
    #fullscreenBtn {
        display: none !important;
    }

    .home-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide scrollbar on mobile */
    #viewer::-webkit-scrollbar {
        display: none;
    }

    #viewer {
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        /*padding-bottom: 110px;*/ /* Space for navigation buttons + gradient */
    }

    /* Mobile Navigation Buttons */
    .nav-buttons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        display: flex;
        justify-content: space-between;
        padding: 10px 12px;
        z-index: 45;
        pointer-events: none;
        background: linear-gradient(to top, rgba(18,18,20,0.95), transparent);
        gap: 10px;
    }

    .progress-text {
        padding: 0 5px 0 5px;
    }

    .btn-nav {
        width: auto;
        height: 30px;
        border: 1px solid rgba(0, 212, 255, 0.5);
        background: rgba(0, 212, 255, 0.15);
        color: #00d4ff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        pointer-events: auto;
        backdrop-filter: blur(10px);
        flex: 1;
        padding: 0 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 0;
        box-shadow: none; /* bỏ bóng đổ của nút tròn bản desktop */
    }

        .btn-nav::before {
            font-size: 14px;
            display: block;
        }

        .btn-nav:hover {
            background: rgba(0, 212, 255, 0.25);
            border-color: rgba(0, 212, 255, 0.8);
            transform: translateY(-2px);
        }

        .btn-nav:active {
            transform: scale(0.95);
        }
}
