/**
 * Site-wide theme — body.site-theme (excludes translator-workspace)
 * Design system: typography, colors, layout, buttons.
 */

body.site-theme:not(.translator-workspace) {
    --anchor-color: #1e293b;
    --highlight-color: #475569;
    --tag-color: #1e293b;
    --tag-color-dark: #0f172a;
    --tag-color-lighter: #e2e8f0;
    --tab-bg: rgba(15, 23, 42, 0.06);
    --tab-bg-border: #cbd5e1;
    --tab-bg-sel: #1e293b;
    --tab-text: #334155;
    --button-bg: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
    --button-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
    --st-accent: #0d9488;
    --st-accent-dark: #0f766e;
    --st-accent-soft: rgba(13, 148, 136, 0.08);
    --st-violet: #6366f1;
    --st-gradient: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
    --st-icon: #64748b;
    --st-text: #1e293b;
    --st-text-muted: #64748b;
    --st-bg: #f1f5f9;
    --st-surface: #ffffff;
    --st-border: #e2e8f0;
    --st-radius-sm: 8px;
    --st-radius-md: 12px;
    --st-radius-lg: 16px;
    --st-radius-pill: 999px;
    --st-fs-xs: 0.8rem;
    --st-fs-sm: 0.9rem;
    --st-fs-base: 1.1rem;
    --st-fs-md: 0.9667rem;
    --st-fs-lg: 1.2rem;
    --st-fs-xl: 1.333rem;
    --st-cover-ratio: 140%;
    --st-cover-thumb-w: 80px;
    --st-cover-thumb-h: 114px;
    --st-cover-rank-w: 48px;
    --st-cover-rank-h: 68px;
    --st-avatar-sm: 40px;
    --st-avatar-md: 96px;
    --st-avatar-lg: 120px;
    --st-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --st-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --st-lock: #dc2626;
    --st-unlock: #16a34a;
    --text-color-sub: #64748b;
    --border-color-2: #e2e8f0;
    --bg-color-2: #ffffff;
    --bg-color-8: #f8fafc;
}

/* ---- Bỏ outline / tap highlight sau click ---- */
body.site-theme:not(.translator-workspace) {
    -webkit-tap-highlight-color: transparent;
}

body.site-theme:not(.translator-workspace) a,
body.site-theme:not(.translator-workspace) button,
body.site-theme:not(.translator-workspace) input,
body.site-theme:not(.translator-workspace) select,
body.site-theme:not(.translator-workspace) textarea,
body.site-theme:not(.translator-workspace) label,
body.site-theme:not(.translator-workspace) .nav-link,
body.site-theme:not(.translator-workspace) .dropdown-toggle,
body.site-theme:not(.translator-workspace) .nightmode_switch,
body.site-theme:not(.translator-workspace) .btn,
body.site-theme:not(.translator-workspace) .getmorebtn {
    -webkit-tap-highlight-color: transparent;
}

body.site-theme:not(.translator-workspace) a:focus,
body.site-theme:not(.translator-workspace) a:active,
body.site-theme:not(.translator-workspace) button:focus,
body.site-theme:not(.translator-workspace) button:active,
body.site-theme:not(.translator-workspace) input:focus,
body.site-theme:not(.translator-workspace) select:focus,
body.site-theme:not(.translator-workspace) textarea:focus,
body.site-theme:not(.translator-workspace) .btn:focus,
body.site-theme:not(.translator-workspace) .btn:active,
body.site-theme:not(.translator-workspace) .nav-link:focus,
body.site-theme:not(.translator-workspace) .dropdown-toggle:focus,
body.site-theme:not(.translator-workspace) .dropdown-toggle:active,
body.site-theme:not(.translator-workspace) .nightmode_switch:focus,
body.site-theme:not(.translator-workspace) .nightmode_switch:active,
body.site-theme:not(.translator-workspace) #mobile-menu-btn:focus,
body.site-theme:not(.translator-workspace) #notification:focus,
body.site-theme:not(.translator-workspace) .getmorebtn:focus {
    outline: none !important;
    box-shadow: none !important;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile input:focus,
body.site-theme:not(.translator-workspace) .form-change-info-profile select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #94a3b8 !important;
}

body.site-theme:not(.translator-workspace) #inputContent:focus {
    outline: none !important;
    border-color: #94a3b8;
    box-shadow: none !important;
}

body.site-theme:not(.translator-workspace) .comment-area textarea:focus {
    outline: none !important;
    border-color: #94a3b8;
    border-bottom: 2px solid #64748b;
    box-shadow: none !important;
}

html.dark body.site-theme:not(.translator-workspace),
html[color-mode="dark"] body.site-theme:not(.translator-workspace),
body.dark.site-theme:not(.translator-workspace) {
    --anchor-color: #e2e8f0;
    --highlight-color: #94a3b8;
    --tag-color: #e2e8f0;
    --tag-color-dark: #f8fafc;
    --tag-color-lighter: #334155;
    --tab-bg: rgba(255, 255, 255, 0.06);
    --tab-bg-border: #475569;
    --tab-bg-sel: #e2e8f0;
    --tab-text: #cbd5e1;
    --st-icon: #94a3b8;
    --st-text: #e2e8f0;
    --st-text-muted: #94a3b8;
    --st-accent: #2dd4bf;
    --st-accent-dark: #14b8a6;
    --st-accent-soft: rgba(45, 212, 191, 0.12);
    --st-bg: #0f172a;
    --st-surface: #1e293b;
    --st-border: #334155;
    --text-color-sub: #94a3b8;
    --border-color-2: #334155;
    --bg-color-2: #1e293b;
    --bg-color-4: #243044;
    --bg-color-5: #1a2332;
    --bg-color-8: #334155;
    --st-lock: #f87171;
    --st-unlock: #4ade80;
    --text-color-4: #94a3b8;
}

/* ---- Dark mode: danh sách chương (không dùng nền xám chói legacy) ---- */
html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li {
    background-color: transparent !important;
    border-bottom-color: var(--st-border) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n),
html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1),
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n),
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1),
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n),
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1),
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n),
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n):hover,
html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1):hover,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n):hover,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1):hover,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n):hover,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1):hover,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n):hover,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1):hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.vol-section,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.vol-section,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.vol-section,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.vol-section {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--st-text) !important;
}

html.dark body.site-theme:not(.translator-workspace) .novel-body,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) .novel-body,
body.dark.site-theme:not(.translator-workspace) .novel-body {
    background-color: var(--st-surface);
    color: var(--st-text);
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a {
    color: var(--st-text-muted) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .chapter-title,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .chapter-title,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .chapter-title,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .chapter-title,
html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover .chapter-title,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover .chapter-title,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover .chapter-title,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover .chapter-title {
    color: var(--st-text) !important;
}

html.dark body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b {
    color: var(--st-text) !important;
}

/* ---- Icon đồng bộ toàn site (xám, không tô màu chữ) ---- */
body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu a i.fa,
body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a i,
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats i,
body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap > span:not(.bookmark-chapter) i.fa,
body.site-theme:not(.translator-workspace) .comment-area .tab-comment-area ul li i,
body.site-theme:not(.translator-workspace) .section-header h2 i,
body.site-theme:not(.translator-workspace) .novel-section-title i,
body.site-theme:not(.translator-workspace) footer .links ul li:before {
    color: var(--st-icon);
}

body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu a,
body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a,
body.site-theme:not(.translator-workspace) .comment-area .tab-comment-area ul li,
body.site-theme:not(.translator-workspace) .comment-list .head h4,
body.site-theme:not(.translator-workspace) .section-header,
body.site-theme:not(.translator-workspace) .section-header h2,
body.site-theme:not(.translator-workspace) .novel-section-title,
body.site-theme:not(.translator-workspace) footer .links a,
body.site-theme:not(.translator-workspace) #membership h1,
body.site-theme:not(.translator-workspace) .payment .panel-heading a,
body.site-theme:not(.translator-workspace) .payment-history .text-center h5 a,
body.site-theme:not(.translator-workspace) .payment .text-center h5 a,
body.site-theme:not(.translator-workspace) .pagination a,
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.selected a,
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.selected h6.chapter-title,
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover,
body.site-theme:not(.translator-workspace) .contentPage a.btn-user {
    color: var(--st-text);
}

/* Lock screen: chữ trắng + link nổi trên nền tối */
body.site-theme:not(.translator-workspace) .lock-screen .center-lock-screen,
body.site-theme:not(.translator-workspace) .lock-screen .center-lock-screen .no-login {
    color: #fff;
}

body.site-theme:not(.translator-workspace) .lock-screen .center-lock-screen a.btn-user {
    color: #fbbf24 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.site-theme:not(.translator-workspace) .lock-screen .center-lock-screen a.btn-user:hover,
body.site-theme:not(.translator-workspace) .lock-screen .center-lock-screen a.btn-user:focus {
    color: #fde68a !important;
}

body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu a:hover,
body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a:hover {
    color: var(--st-text);
    background: var(--st-accent-soft);
}

body.site-theme:not(.translator-workspace) .navbar-menu .nightmode_switch:hover i {
    color: var(--st-icon);
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats .status.cpl {
    color: var(--st-text);
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b {
    color: var(--st-text);
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b .fa-lock {
    color: var(--st-lock) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap b .fa-unlock {
    color: var(--st-unlock) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap .fa-lock {
    color: var(--st-lock) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap .fa-unlock {
    color: var(--st-unlock) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap .bookmark-chapter i.fa {
    width: auto;
    min-width: 0;
    font-size: 1.25rem;
    margin-right: 0;
    vertical-align: middle;
    color: var(--st-icon);
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap .bookmark-chapter.bookmark-chapter-on,
body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap .bookmark-chapter.bookmark-chapter-on i.fa {
    color: #f59e0b;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:has(.bookmark-chapter-on) .chapter-title {
    color: #f59e0b;
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .bookmark-chapter-on,
body.site-theme:not(.translator-workspace) #chapter-list-page .bookmark-chapter-on i {
    color: #f59e0b;
}

/* ---- Buttons (chữ trắng trên nút — OK) ---- */
body.site-theme:not(.translator-workspace) .button:not(.light) {
    background-image: var(--button-bg);
    box-shadow: var(--button-shadow);
    border: none;
    border-radius: var(--st-radius-pill);
    color: #fff;
    font-size: var(--st-fs-sm);
    font-weight: 600;
    padding: 10px 22px;
    line-height: 1.4;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

body.site-theme:not(.translator-workspace) .button.light {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    color: var(--st-text);
    border-radius: var(--st-radius-pill);
    font-size: var(--st-fs-sm);
    font-weight: 600;
    padding: 9px 20px;
    box-shadow: var(--st-shadow-sm);
}

body.site-theme:not(.translator-workspace) .button.light:hover {
    background: var(--bg-color-8, #f8fafc);
    color: var(--st-text);
}

body.site-theme:not(.translator-workspace) .button:not(.light):hover {
    opacity: 0.92;
    color: #fff;
}

body.site-theme:not(.translator-workspace) .btn-primary {
    background: var(--button-bg, var(--st-gradient)) !important;
    background-image: var(--button-bg, var(--st-gradient)) !important;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--st-radius-pill);
    font-weight: 600;
    font-size: var(--st-fs-sm);
    padding: 9px 20px;
    box-shadow: var(--button-shadow);
}

body.site-theme:not(.translator-workspace) .btn-success {
    background: var(--bg-color-8, #f8fafc);
    border: 1px solid var(--st-border);
    color: var(--st-text);
    border-radius: var(--st-radius-pill);
    font-weight: 600;
    font-size: var(--st-fs-sm);
    padding: 9px 20px;
}

body.site-theme:not(.translator-workspace) .btn-primary:hover,
body.site-theme:not(.translator-workspace) .btn-success:hover {
    opacity: 0.92;
}

body.site-theme:not(.translator-workspace) .login-wrap-nav .login.button,
body.site-theme:not(.translator-workspace) .login-wrap-nav button.login,
body.site-theme:not(.translator-workspace) .login-wrap-nav a.login.button {
    background: var(--button-bg) !important;
    background-image: var(--button-bg) !important;
    background-color: transparent !important;
    box-shadow: var(--button-shadow) !important;
    border: none;
    border-radius: 999px;
    color: #fff !important;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
}

html.dark body.site-theme:not(.translator-workspace) .login-wrap-nav .login.button,
html.dark body.site-theme:not(.translator-workspace) .login-wrap-nav button.login,
html.dark body.site-theme:not(.translator-workspace) .login-wrap-nav a.login.button,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) .login-wrap-nav .login.button,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) .login-wrap-nav button.login,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) .login-wrap-nav a.login.button,
body.dark.site-theme:not(.translator-workspace) .login-wrap-nav .login.button,
body.dark.site-theme:not(.translator-workspace) .login-wrap-nav button.login,
body.dark.site-theme:not(.translator-workspace) .login-wrap-nav a.login.button {
    background: var(--button-bg) !important;
    background-image: var(--button-bg) !important;
    box-shadow: var(--button-shadow) !important;
    color: #fff !important;
}

body.site-theme:not(.translator-workspace) .btn-bar-ontop {
    background: var(--st-gradient);
    color: #fff;
    border: none;
    padding: 0 5px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

/* ---- Header search ---- */
body.site-theme:not(.translator-workspace) #novelSearchForm .search_label svg path {
    fill: var(--st-icon);
}

body.site-theme:not(.translator-workspace) #inputContent:focus {
    border-color: #94a3b8;
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) #novelSearchForm {
        display: block;
    }
}

/* ---- Comments ---- */
body.site-theme:not(.translator-workspace) .comment-area .tab-comment-area .comment-active,
body.site-theme:not(.translator-workspace) .comment-area .tab-comment-area ul li.comment-active {
    color: var(--st-text);
    border-bottom: 2px solid var(--st-text);
    font-weight: 700;
}

body.site-theme:not(.translator-workspace) .comment-area textarea:focus {
    border-color: #94a3b8;
    border-bottom: 2px solid #64748b;
}

body.site-theme:not(.translator-workspace) .btn-submit-comment,
body.site-theme:not(.translator-workspace) .comment-area .comment-actions .button,
body.site-theme:not(.translator-workspace) .comment-list .head .button {
    background-image: var(--button-bg) !important;
    box-shadow: var(--button-shadow) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
}

body.site-theme:not(.translator-workspace) .comment-list ul li .comment-item .comment-action a {
    color: var(--st-text);
}

/* ---- Chapter list buttons ---- */
body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button,
body.site-theme:not(.translator-workspace) #chapter-list-page .load-more-chapter button {
    border-radius: 999px;
}

body.site-theme:not(.translator-workspace) .pagination .active span,
body.site-theme:not(.translator-workspace) .pagination .active a {
    background: var(--st-text);
    border-color: var(--st-text);
    color: #fff;
}

/* ---- Login modal ---- */
body.site-theme:not(.translator-workspace) .panel-login > .panel-heading a {
    color: var(--st-text-muted);
}

body.site-theme:not(.translator-workspace) .panel-login > .panel-heading a.active {
    color: var(--st-accent, #0d9488);
    font-weight: 700;
}

body.site-theme:not(.translator-workspace) .panel-login .btn-submit,
body.site-theme:not(.translator-workspace) .panel-login button[type="submit"],
body.site-theme:not(.translator-workspace) #form-modal .btn-default[type="submit"] {
    background: var(--st-gradient);
    background-image: var(--button-bg);
    border: none;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
}

/* ---- Profile / passport pages ---- */
body.site-theme:not(.translator-workspace) .container.manga-profile {
    max-width: 1040px;
    width: 100%;
    margin: 24px auto 40px;
    padding: 0 16px;
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) .container.manga-profile::before,
body.site-theme:not(.translator-workspace) .container.manga-profile::after {
    display: none !important;
    content: none !important;
}

body.site-theme:not(.translator-workspace) .container.manga-profile > .col-md-4,
body.site-theme:not(.translator-workspace) .container.manga-profile > .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

body.site-theme:not(.translator-workspace) .manga-profile-left {
    width: 100% !important;
    padding: 16px 0 !important;
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .manga-profile-left,
body.site-theme:not(.translator-workspace) .manga-profile-right,
body.site-theme:not(.translator-workspace) .manga-profile .info-point,
body.site-theme:not(.translator-workspace) .manga-change-pass-right {
    background: var(--st-surface, var(--bg-color-2, #fff));
    border: 1px solid var(--st-border, var(--border-color-2, #e2e8f0));
    border-radius: 12px;
    box-shadow: none;
}

body.site-theme:not(.translator-workspace) .manga-profile-right,
body.site-theme:not(.translator-workspace) .manga-profile .info-point,
body.site-theme:not(.translator-workspace) .manga-change-pass-right {
    padding: 24px !important;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .avatar-manga-profile {
    width: var(--st-avatar-md);
    margin: 0 auto 12px;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .avatar-manga-profile img {
    width: var(--st-avatar-md);
    height: var(--st-avatar-md);
    object-fit: cover;
    border-radius: 12px;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .name-manga-profile {
    font-size: 15px;
    font-weight: 600;
    padding: 0 16px 12px;
    width: 100%;
    opacity: 1;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 8px 12px !important;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li {
    opacity: 1 !important;
    border-bottom: none !important;
    line-height: 1.4 !important;
    margin-bottom: 2px;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a {
    font-size: 14px !important;
    color: var(--text-color, #2a2e2e) !important;
    line-height: 1.4;
    padding: 10px 12px !important;
    margin: 0 !important;
    border-radius: 8px;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a i {
    width: 18px;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .manga-profile-right > form {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
    margin-bottom: 8px;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .preview-avatar {
    float: none !important;
    width: auto !important;
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .preview-avatar img {
    width: var(--st-avatar-lg);
    height: var(--st-avatar-lg);
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 10px;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .form-change-info-profile {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    grid-column: 2;
    grid-row: 1;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile .form-group {
    margin-bottom: 14px;
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile span {
    max-width: none !important;
    width: auto !important;
}

body.site-theme:not(.translator-workspace) .row-radio {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    margin-bottom: 6px;
    padding-right: 0;
}

body.site-theme:not(.translator-workspace) .row-radio input {
    margin-right: 0 !important;
}

body.site-theme:not(.translator-workspace) #membership {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color-2, #e2e8f0);
    clear: both;
}

body.site-theme:not(.translator-workspace) #membership h1 {
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border-color-2, #e2e8f0);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

body.site-theme:not(.translator-workspace) #membership > span {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-color-sub, #64748b);
    font-style: normal;
    padding: 0 0 8px;
}

body.site-theme:not(.translator-workspace) #membership .StepProgress-item {
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 14px !important;
}

body.site-theme:not(.translator-workspace) #membership .StepProgress-item strong {
    display: inline;
    font-size: 14px;
    margin-right: 4px;
}

body.site-theme:not(.translator-workspace) .manga-profile .info-point h2 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0 0 10px;
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) .manga-profile .info-point h3 {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 8px;
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) .manga-profile .info-point span,
body.site-theme:not(.translator-workspace) .manga-profile .info-point p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-color-sub, #64748b);
}

body.site-theme:not(.translator-workspace) .manga-profile .list-group {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .manga-profile .list-group-item {
    padding: 10px 14px;
    border-color: var(--border-color-2, #e2e8f0);
    font-size: 0.875rem;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a {
    border-radius: 8px;
    transition: background 0.15s ease;
}

body.site-theme:not(.translator-workspace) .role-user-membership {
    box-shadow: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    display: inline-block;
    margin-top: 6px;
    color: #fff;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile label {
    color: var(--text-color, #2a2e2e);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile input,
body.site-theme:not(.translator-workspace) .form-change-info-profile select {
    border-radius: 8px;
    border: 1px solid var(--border-color-2, #e2e8f0) !important;
    box-shadow: none !important;
    background: var(--st-bg, var(--bg-color-8, #f8fafc)) !important;
    padding: 9px 12px;
    max-width: 100% !important;
    width: 100%;
    font-size: 14px;
    color: var(--st-text, var(--text-color, #2a2e2e));
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) .form-change-info-profile input:focus,
body.site-theme:not(.translator-workspace) .form-change-info-profile select:focus {
    border-color: #94a3b8 !important;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .btn-submit,
body.site-theme:not(.translator-workspace) .form-change-info-profile .btn-default.btn-submit {
    background: var(--st-gradient) !important;
    background-image: var(--button-bg) !important;
    background-size: auto !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 28px;
    width: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 0;
    display: inline-block;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .btn-upload {
    background: var(--text-color, #2a2e2e) !important;
    background-image: none !important;
    color: #fff;
    border-radius: 8px;
    width: auto;
    min-width: 100px;
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    padding: 0 16px;
    margin: 10px auto;
}

body.site-theme:not(.translator-workspace) .manga-profile-right .btn-remove {
    color: #64748b;
    font-size: 12px;
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* ---- Membership timeline ---- */
body.site-theme:not(.translator-workspace) #membership .StepProgress-item.is-done::before,
body.site-theme:not(.translator-workspace) #membership .StepProgress-item.current::before {
    border-left-color: var(--border-color-2, #e2e8f0);
}

body.site-theme:not(.translator-workspace) #membership .StepProgress-item.is-done::after {
    border-color: #64748b;
    background-color: #64748b;
}

body.site-theme:not(.translator-workspace) #membership .StepProgress-item.current::after {
    border-color: var(--text-color, #2a2e2e);
    background-color: #fff;
}

/* ---- Payment & content ---- */
body.site-theme:not(.translator-workspace) .payment {
    max-width: 1040px;
    width: 100%;
    margin: 20px auto 36px;
    padding: 20px 22px;
    background: var(--bg-color-2, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) .payment-info span {
    background: var(--st-gradient);
    border-radius: 999px;
    color: #fff;
}

body.site-theme:not(.translator-workspace) .history-button a {
    background: var(--st-text);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
}

body.site-theme:not(.translator-workspace) .contentPage {
    max-width: 1040px;
    width: 100%;
    margin: 20px auto 36px;
    padding: 0 16px;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) .contentPage .contentProfile,
body.site-theme:not(.translator-workspace) .contentPage .mainContent {
    background: var(--bg-color-2, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 20px 22px;
}

body.site-theme:not(.translator-workspace) .alert-info {
    border-left: 4px solid var(--st-icon);
}

body.site-theme:not(.translator-workspace) .modal-content .btn-default[type="submit"],
body.site-theme:not(.translator-workspace) .modal-content .btn-primary {
    background: var(--st-gradient);
    border: none;
    color: #fff;
    border-radius: 999px;
}

body.site-theme:not(.translator-workspace) #membership .btn-primary {
    background: var(--st-gradient);
    border: none;
    border-radius: 999px;
    color: #fff;
}

/* ---- Header ---- */
body.site-theme:not(.translator-workspace) .navbar-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.site-theme:not(.translator-workspace) .navbar-menu > li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .navbar-menu .nav-link,
body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-toggle {
    font-size: var(--st-fs-sm);
    font-weight: 500;
    color: var(--text-color, #2a2e2e) !important;
    white-space: nowrap;
    line-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

body.site-theme:not(.translator-workspace) .navbar-menu button.dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    gap: 4px;
}

body.site-theme:not(.translator-workspace) .navbar-menu button.dropdown-toggle:focus {
    outline: none;
}

body.site-theme:not(.translator-workspace) .mobile-nav-header {
    display: none;
}

body.site-theme:not(.translator-workspace) .navbar-menu .nightmode_switch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    padding: 0;
    margin: 0;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

body.site-theme:not(.translator-workspace) .navbar-menu li .nightmode_switch i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    margin: 0;
    border: 1px solid var(--border-color-2, #e2e8f0) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1;
    color: var(--st-icon);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) .navbar-menu li .nightmode_switch::after {
        content: none !important;
        display: none !important;
    }
}

body.site-theme:not(.translator-workspace) .login-wrap-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0 !important;
    border-top: none !important;
    min-height: 40px;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .login-wrap-nav .login.button,
body.site-theme:not(.translator-workspace) .login-wrap-nav button.login,
body.site-theme:not(.translator-workspace) .login-wrap-nav a.login.button {
    min-height: 36px;
    height: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
    padding: 0 16px;
    background: var(--button-bg) !important;
    background-image: var(--button-bg) !important;
    background-color: transparent !important;
    box-shadow: var(--button-shadow) !important;
    color: #fff !important;
}

body.site-theme:not(.translator-workspace) .navigation-bar {
    align-items: center;
}

body.site-theme:not(.translator-workspace) .navigation-bar nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) #inputContent {
    height: 40px;
    font-size: 14px;
    box-sizing: border-box;
}

/* ---- Icon thống nhất: eye / star / files-o ---- */
body.site-theme:not(.translator-workspace) .novel-stats i.fa,
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats i.fa,
body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap > span:not(.bookmark-chapter) i.fa {
    display: inline-block;
    width: 14px;
    min-width: 14px;
    text-align: center;
    margin-right: 4px;
    font-size: 13px;
    vertical-align: -1px;
    color: var(--st-icon);
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats {
    font-size: var(--st-fs-sm);
    line-height: 1.5;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats > span,
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats > a {
    display: inline;
    margin-bottom: 0;
    color: var(--text-color-sub, #64748b);
}

/* ---- Novel card: sao + lượt xem cùng hàng, chapter 1 dòng ---- */
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats--card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-top .rating-star {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-top .novel-view-stat {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text-color-sub, #64748b);
    font-size: 13px;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-chapter {
    color: var(--text-color-sub, #64748b);
    font-size: 13px;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-chapter a,
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-stats-row-chapter span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: 13px;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .rating-star {
    display: flex;
    align-items: center;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .rating-star p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: var(--st-fs-sm);
    color: var(--text-color-sub, #64748b);
    min-width: 0;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .rating-star strong {
    color: var(--text-color, #111827);
    font-size: var(--st-fs-sm);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .star-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .star-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .star-box svg.star {
    width: 13px;
    height: 13px;
    display: block;
    fill: #cbd5e1;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .star-box svg.star.star-on {
    fill: #fbbf24;
}

/* ---- Khung / padding trang con ---- */
body.site-theme:not(.translator-workspace) .novel-body.container {
    padding-left: 16px;
    padding-right: 16px;
}

body.site-theme:not(.translator-workspace) .section-body {
    margin-bottom: 20px;
}

body.site-theme:not(.translator-workspace) #explore.container {
    padding-top: 16px;
    padding-bottom: 28px;
}

body.site-theme:not(.translator-workspace) .manga-profile-left .menu-manga-profile li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Homepage: arrow thay "Xem nhiều hơn" ---- */
body.site-theme:not(.translator-workspace) .section-header {
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

body.site-theme:not(.translator-workspace) .section-header .getmorebtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-left: 12px;
    border: 1px solid var(--border-color-2, #e2e8f0);
    border-radius: 50%;
    background: var(--bg-color-2, #fff);
    color: var(--text-color, #2a2e2e);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.site-theme:not(.translator-workspace) .section-header .getmorebtn i {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

body.site-theme:not(.translator-workspace) .section-header .getmorebtn:hover {
    background: var(--bg-color-8, #f8fafc);
    border-color: #cbd5e1;
    color: var(--text-color, #2a2e2e);
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .getmorebtn {
    display: inline-block;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 10px 0 4px;
    margin-top: 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--st-text);
    text-decoration: none;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .getmorebtn:hover {
    color: var(--st-text);
    text-decoration: underline;
    background: transparent;
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) .main-header {
        height: 64px;
    }

    body.site-theme:not(.translator-workspace) .main-header .wrapper {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 20px;
        width: 970px;
        max-width: calc(100% - 32px);
        padding: 0 16px !important;
        height: 100%;
    }

    body.site-theme:not(.translator-workspace) .main-header .nav-logo {
        flex: 0 0 120px;
        width: 120px !important;
        margin: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .main-header .nav-logo img {
        max-height: 100%;
        max-width: 100%;
        width: 140px;
        height: auto;
    }

    body.site-theme:not(.translator-workspace) .main-header .navigation-bar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        transform: none !important;
        -webkit-transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: auto !important;
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        z-index: 1;
    }

    body.site-theme:not(.translator-workspace) .main-header .navigation-bar nav {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item.dropdown {
        position: relative;
        padding-bottom: 14px;
        margin-bottom: -14px;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% - 14px);
        left: 0;
        z-index: 1200;
        min-width: 220px;
        margin: 0;
        padding: 8px;
        list-style: none;
        background: var(--bg-color-2, #fff);
        border: 1px solid var(--border-color-2, #e2e8f0);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu.columns {
        column-count: 3;
        min-width: 480px;
        max-width: min(90vw, 720px);
        max-height: 70vh;
        overflow-y: auto;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item.dropdown._active > .dropdown-menu {
        display: block;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item.dropdown._active > .dropdown-menu.columns {
        display: block;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu .nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        height: auto;
        line-height: 1.4;
        padding: 10px 12px;
        border-radius: 8px;
        white-space: nowrap;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu .nav-link:hover {
        background: var(--st-accent-soft, rgba(0, 0, 0, 0.04));
    }

    body.site-theme:not(.translator-workspace) .main-header .navbar-menu {
        flex-wrap: nowrap;
        overflow: visible;
    }

    body.site-theme:not(.translator-workspace) .main-header #notification {
        flex: 0 0 auto;
        margin: 0 !important;
        align-self: center;
    }

    body.site-theme:not(.translator-workspace) .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    body.site-theme:not(.translator-workspace) #novelSearchForm {
        width: 220px;
    }

    body.site-theme:not(.translator-workspace) #inputContent {
        width: 220px;
        min-width: 220px;
    }

    body.site-theme:not(.translator-workspace) .container.vspace {
        width: 100%;
        max-width: 970px;
        padding: 12px 0 28px;
        margin: 16px auto;
    }
}

@media (min-width: 1270px) {
    body.site-theme:not(.translator-workspace) #novelSearchForm {
        width: 280px;
    }

    body.site-theme:not(.translator-workspace) #inputContent {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 991px) {
    body.site-theme:not(.translator-workspace) .container.manga-profile {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    body.site-theme:not(.translator-workspace) .manga-profile-right > form {
        grid-template-columns: 1fr;
    }

    body.site-theme:not(.translator-workspace) .manga-profile-right .preview-avatar,
    body.site-theme:not(.translator-workspace) .manga-profile-right .form-change-info-profile {
        grid-column: 1;
    }

    body.site-theme:not(.translator-workspace) .manga-profile-right,
    body.site-theme:not(.translator-workspace) .manga-profile .info-point,
    body.site-theme:not(.translator-workspace) .manga-change-pass-right {
        padding: 18px 16px !important;
    }
}

/* ---- Footer alignment ---- */
body.site-theme:not(.translator-workspace) footer .wrapper {
    max-width: 970px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) footer .wrapper .col.logo {
    flex: 0 0 auto;
}

body.site-theme:not(.translator-workspace) footer .wrapper .col.links {
    flex: 1 1 140px;
    min-width: 120px;
}

body.site-theme:not(.translator-workspace) footer .footer-logo {
    max-height: 56px;
    width: auto;
    height: auto;
}

body.site-theme:not(.translator-workspace) footer .copyright {
    display: block;
    margin-top: 8px;
    color: var(--text-color-sub, #64748b);
}

body.site-theme:not(.translator-workspace) footer .links a {
    color: var(--text-color-sub, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

body.site-theme:not(.translator-workspace) footer .links a:hover {
    color: var(--st-text);
}

/* ---- Notification bell (Asset85.svg missing) ---- */
body.site-theme:not(.translator-workspace) #notification {
    background: none !important;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-color-2, #e2e8f0);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) #notification i {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #notification::before {
    content: "\f0f3";
    font-family: FontAwesome;
    font-size: 14px;
    color: var(--st-icon, #64748b);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    pointer-events: none;
}

/* ---- Notification popover ---- */
body.site-theme:not(.translator-workspace) .popover {
    background: var(--bg-color-2, #fff) !important;
    border: 1px solid var(--border-color-2, #e2e8f0) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    max-width: 320px !important;
    color: var(--text-color, #2a2e2e) !important;
    z-index: 1005 !important;
}

body.site-theme:not(.translator-workspace) .popover .arrow::after {
    border-bottom-color: var(--bg-color-2, #fff) !important;
}

body.site-theme:not(.translator-workspace) .popover-title {
    background: var(--bg-color-2, #fff) !important;
    border-bottom: 1px solid var(--border-color-2, #e2e8f0) !important;
    color: var(--text-color, #2a2e2e) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
}

body.site-theme:not(.translator-workspace) .popover-content {
    padding: 10px 14px !important;
    color: var(--text-color, #2a2e2e) !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification li {
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--border-color-2, #e2e8f0) !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification li:last-child {
    border-bottom: none !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification li a {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    text-decoration: none !important;
    color: var(--text-color, #2a2e2e) !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification li img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification .area-info-notificaton {
    flex: 1 !important;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) .popover .short-notification .area-info-notificaton h6 {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 0 4px !important;
    font-weight: 500;
    color: var(--text-color, #2a2e2e) !important;
}

body.site-theme:not(.translator-workspace) .popover .short-notification .area-info-notificaton h6.readed {
    opacity: 0.65;
}

body.site-theme:not(.translator-workspace) .popover .short-notification .area-info-notificaton span {
    font-size: 11px !important;
    color: var(--text-color-sub, #64748b) !important;
}

body.site-theme:not(.translator-workspace) .popover .view-all-notification,
body.site-theme:not(.translator-workspace) .popover .mark-read-all {
    display: block;
    font-size: 12px !important;
    padding: 8px 0 4px !important;
    color: var(--text-color, #2a2e2e) !important;
    text-decoration: none !important;
}

body.site-theme:not(.translator-workspace) .popover .mark-read-all {
    color: var(--text-color-sub, #64748b) !important;
}

body.site-theme:not(.translator-workspace) .popover .notification-translator {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color-2, #e2e8f0);
}

body.site-theme:not(.translator-workspace) .popover .notification-translator .title-bought {
    font-size: 13px !important;
    margin: 0 0 6px !important;
    font-weight: 600;
}

@media (max-width: 1023px) {
    body.site-theme:not(.translator-workspace) .main-header .wrapper {
        position: relative;
    }

    body.site-theme:not(.translator-workspace) .main-header #notification {
        display: flex !important;
        position: absolute !important;
        right: 65px;
        top: 50%;
        left: auto !important;
        transform: translateY(-50%);
        margin: 0 !important;
        width: 36px;
        height: 36px;
        z-index: 1002;
    }

    body.site-theme:not(.translator-workspace) .popover {
        max-width: min(320px, calc(100vw - 24px)) !important;
    }
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) .main-header #notification {
        flex-shrink: 0;
        margin-left: 4px;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item--notification {
        display: none;
    }
}

/* ---- Mobile drawer menu ---- */
@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) .main-header {
        height: auto;
        min-height: 56px;
    }

    body.site-theme:not(.translator-workspace) .main-header .wrapper {
        min-height: 56px;
        height: 56px;
        padding: 0 12px !important;
        align-items: center;
        justify-content: flex-start;
    }

    body.site-theme:not(.translator-workspace) .main-header .nav-logo {
        height: 36px;
        width: auto;
        flex: 0 0 auto !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        overflow: visible;
    }

    body.site-theme:not(.translator-workspace) .main-header .nav-logo a {
        height: 100%;
        display: flex;
        align-items: center;
    }

    body.site-theme:not(.translator-workspace) .main-header .nav-logo img {
        height: 36px;
        width: auto;
        max-height: 36px;
        object-fit: contain;
    }

    body.site-theme:not(.translator-workspace) #mobile-menu-btn {
        top: 50%;
        transform: translateY(-50%);
        padding: 12px 14px;
        height: auto;
    }

    body.site-theme:not(.translator-workspace) footer .footer-logo {
        height: auto !important;
        max-height: 42px !important;
        width: auto;
        max-width: 150px;
    }

    body.site-theme:not(.translator-workspace) footer .wrapper .col.logo {
        padding: 4px 0 8px;
    }
}

@media (max-width: 1023px) {
    body.site-theme:not(.translator-workspace) .main-header {
        position: relative;
        z-index: 1000;
    }

    body.site-theme:not(.translator-workspace) #mobile-menu-btn {
        z-index: 1002 !important;
    }

    body.site-theme:not(.translator-workspace) #mobile-nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: min(360px, 100%);
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
        cursor: pointer;
    }

    body.site-theme:not(.translator-workspace) .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-color-2, #e2e8f0);
        flex-shrink: 0;
        box-sizing: border-box;
    }

    body.site-theme:not(.translator-workspace) .mobile-nav-logo {
        display: block;
        height: 36px;
    }

    body.site-theme:not(.translator-workspace) .mobile-nav-logo img {
        height: 100%;
        width: auto;
    }

    body.site-theme:not(.translator-workspace) .mobile-nav-close {
        background: transparent;
        border: none;
        color: var(--text-color, #2a2e2e);
        font-size: 32px;
        line-height: 1;
        padding: 4px 8px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Chỉ giữ 1 nút close trong drawer — ẩn burger X khi menu mở */
    body.site-theme:not(.translator-workspace).navigation #mobile-menu-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.site-theme:not(.translator-workspace) .navigation-bar {
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(100%, 360px) !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        border-left: 1px solid var(--border-color-2, #e2e8f0);
        box-sizing: border-box;
        position: fixed !important;
        z-index: 1001 !important;
        visibility: hidden !important;
        opacity: 0;
        transform: translate3d(100%, 0, 0);
        pointer-events: none !important;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    body.site-theme:not(.translator-workspace).navigation .navigation-bar {
        visibility: visible !important;
        opacity: 1;
        transform: translate3d(0, 0, 0) !important;
        pointer-events: auto !important;
    }

    body.site-theme:not(.translator-workspace) .navigation-bar nav {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 16px;
        margin: 0 !important;
        width: 100%;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        gap: 0;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu > li {
        width: 100%;
        display: block;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu li + li {
        margin-top: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item {
        width: 100%;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu #novelSearchForm {
        width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu #inputContent {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-link,
    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-toggle {
        width: 100%;
        height: auto;
        min-height: 48px;
        line-height: 1.4;
        padding: 12px 16px !important;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 0;
        text-align: left;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-toggle i.fa-caret-down {
        color: var(--st-icon, #64748b);
        font-size: 14px;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .dropdown-menu {
        display: none !important;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu .nav-item.dropdown._active > .dropdown-menu {
        display: none !important;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu li .nightmode_switch {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 12px 16px;
        justify-content: flex-start;
        gap: 10px;
        box-sizing: border-box;
        border-radius: 0 !important;
        border: none !important;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu li .nightmode_switch i {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    body.site-theme:not(.translator-workspace) .navbar-menu li .nightmode_switch::after {
        content: attr(data-content) !important;
        display: inline !important;
        position: static !important;
        font-size: 15px !important;
        line-height: 1.4;
        color: var(--text-color, #2a2e2e);
        white-space: nowrap;
    }

    body.site-theme:not(.translator-workspace) .navigation-bar .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 16px 20px;
        border-top: 1px solid var(--border-color-2, #e2e8f0);
        flex-shrink: 0;
        box-sizing: border-box;
    }

    body.site-theme:not(.translator-workspace) .navigation-bar .login-wrap-nav {
        width: 100%;
        padding-top: 16px;
        border-top: none;
    }

    body.site-theme:not(.translator-workspace) .navigation-bar .login-wrap-nav .login.button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 999px;
    }

    /* Fullscreen submenu (Danh sách / Thể loại / Chức năng) */
    body.site-theme:not(.translator-workspace) .mobile-submenu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        z-index: 1003;
        background: var(--bg-color-sub, #fff);
        color: var(--text-color, #2a2e2e);
        flex-direction: column;
        overflow: hidden;
        animation: mobileSubmenuIn 0.28s ease;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-overlay.active {
        display: flex;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-overlay.closing {
        animation: mobileSubmenuOut 0.28s ease forwards;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-color-2, #e2e8f0);
        background: var(--bg-color-sub, #fff);
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-header h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        color: var(--text-color, #2a2e2e);
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-close {
        background: transparent;
        border: none;
        color: var(--text-color, #2a2e2e);
        font-size: 32px;
        line-height: 1;
        padding: 4px 8px;
        cursor: pointer;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-content {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 24px;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-list > li {
        margin: 0;
        padding: 0;
        border: none;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-list > li > a {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        line-height: 1.4;
        color: var(--text-color, #2a2e2e) !important;
        text-decoration: none;
        box-sizing: border-box;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-list > li > a i {
        width: 18px;
        min-width: 18px;
        text-align: center;
        color: var(--st-icon, #64748b);
        font-size: 15px;
    }

    body.site-theme:not(.translator-workspace) .mobile-submenu-list > li > a:active,
    body.site-theme:not(.translator-workspace) .mobile-submenu-list > li > a:hover {
        background: var(--st-accent-soft, rgba(0, 0, 0, 0.04));
    }

    @keyframes mobileSubmenuIn {
        from {
            transform: translateX(100%);
            opacity: 0.6;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes mobileSubmenuOut {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0.6;
        }
    }
}

/* ============================================================
   Layout foundation — typography, pages, cards, filters
   ============================================================ */

body.site-theme:not(.translator-workspace) {
    font-family: "Nunito Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--st-fs-base);
    line-height: 1.6;
    color: var(--st-text);
    background-color: var(--st-bg);
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    html:has(body.site-theme:not(.translator-workspace)) {
        font-size: 15px;
    }
}

html.dark body.site-theme:not(.translator-workspace),
html[color-mode="dark"] body.site-theme:not(.translator-workspace) {
    background-color: var(--st-bg);
}

body.site-theme:not(.translator-workspace) a {
    color: var(--st-text);
    transition: color 0.15s ease;
}

body.site-theme:not(.translator-workspace) #myModal a,
body.site-theme:not(.translator-workspace) .lock-screen a {
    transition: color 0.15s ease;
}

body.site-theme:not(.translator-workspace) a:hover {
    color: var(--tag-color-dark);
}

body.site-theme:not(.translator-workspace) main {
    min-height: calc(100vh - 120px);
}

/* ---- Containers ---- */
body.site-theme:not(.translator-workspace) .container,
body.site-theme:not(.translator-workspace) #index,
body.site-theme:not(.translator-workspace) #search-section,
body.site-theme:not(.translator-workspace) #explore.container,
body.site-theme:not(.translator-workspace) .novel-body.container {
    max-width: 970px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #search-section {
    padding-top: 20px;
    padding-bottom: 36px;
}

body.site-theme:not(.translator-workspace) #explore.container {
    padding-top: 20px;
    padding-bottom: 40px;
}

body.site-theme:not(.translator-workspace) .container.vspace {
    padding-top: 8px;
    padding-bottom: 24px;
}

/* ---- Page & section headings ---- */
body.site-theme:not(.translator-workspace) .section-header {
    border-bottom: 1px solid var(--st-border);
    margin-bottom: 16px;
    padding-bottom: 12px;
}

body.site-theme:not(.translator-workspace) .section-header h1,
body.site-theme:not(.translator-workspace) .section-header h3 {
    font-size: var(--st-fs-lg);
    font-weight: 700;
    color: var(--st-text);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

body.site-theme:not(.translator-workspace) #search-section .popular-novels h1,
body.site-theme:not(.translator-workspace) .header-novel .header-title,
body.site-theme:not(.translator-workspace) #explore header h1 {
    font-size: var(--st-fs-xl);
    font-weight: 700;
    color: var(--st-text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--st-border);
    line-height: 1.3;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
    margin: 1rem auto;
}

body.site-theme:not(.translator-workspace) #explore header::after {
    display: none;
}

body.site-theme:not(.translator-workspace) #explore header .description {
    font-size: var(--st-fs-sm);
    color: var(--st-text-muted);
    line-height: 1.6;
    margin: 0;
}

body.site-theme:not(.translator-workspace) .header-novel span,
body.site-theme:not(.translator-workspace) .desc-content-column {
    font-size: var(--st-fs-sm);
    color: var(--st-text-muted);
    line-height: 1.55;
}

/* ---- Chapter list (ajax on manga detail) ---- */
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a {
    font-size: var(--st-fs-sm);
    color: var(--st-text-muted);
}

body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .chapter-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--st-text);
}

body.site-theme:not(.translator-workspace) #chapter-list-page .info-chap {
    font-size: 13px;
}

body.site-theme:not(.translator-workspace) #chapter-list-page input[type=text] {
    font-size: var(--st-fs-sm);
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav,
body.site-theme:not(.translator-workspace) #chapter-list-page .pagination {
    font-size: var(--st-fs-sm);
}

/* ---- Images: covers, thumbs, avatars ---- */
body.site-theme:not(.translator-workspace) .novel-list:not(.horizontal) .novel-item .novel-cover {
    padding-top: var(--st-cover-ratio);
    border-radius: var(--st-radius-sm);
    overflow: hidden;
    background: var(--bg-color-8, #f8fafc);
}

body.site-theme:not(.translator-workspace) .novel-list:not(.horizontal) .novel-item .novel-cover img {
    object-fit: cover;
    object-position: top center;
}

/* Danh sách ngang: thumb cố định */
body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap {
    width: var(--st-cover-thumb-w) !important;
    min-width: var(--st-cover-thumb-w);
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap .novel-cover {
    margin: 0;
    width: var(--st-cover-thumb-w);
    height: var(--st-cover-thumb-h);
    padding-top: 0 !important;
    position: relative;
    border-radius: var(--st-radius-sm);
    overflow: hidden;
    background: var(--bg-color-8, #f8fafc);
}

body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap .novel-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--st-radius-sm);
}

/* Bookmark col3: card ngang trong ô lưới */
body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item > a:has(.cover-wrap) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item .cover-wrap {
    width: var(--st-cover-thumb-w);
    min-width: var(--st-cover-thumb-w);
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item .cover-wrap .novel-cover {
    margin: 0;
    width: 100%;
    height: var(--st-cover-thumb-h);
    padding-top: 0 !important;
    position: relative;
    border-radius: var(--st-radius-sm);
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item .cover-wrap .novel-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item .item-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Bookmark / History pages: grid đều (col3) */
body.site-theme:not(.translator-workspace) #search-section .popular-novels .novel-list.col3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 12px;
    margin-left: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #search-section .popular-novels .novel-list.col3 .novel-item {
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #search-section .popular-novels .novel-list.col3 .novel-item > a {
    width: 100% !important;
}

body.site-theme:not(.translator-workspace) #search-section .popular-novels .novel-list.col3 .close-bookmark {
    width: 60px;
    margin: 6px auto 0 !important;
}

@media (min-width: 768px) {
    body.site-theme:not(.translator-workspace) #search-section .popular-novels .novel-list.col3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px 14px;
    }
}

/* BXH trang chủ */
body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .novel-item .item-cover {
    width: var(--st-cover-rank-w);
    min-width: var(--st-cover-rank-w);
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .novel-item .item-cover .novel-cover {
    width: var(--st-cover-rank-w);
    height: var(--st-cover-rank-h);
    padding-top: 0 !important;
    position: relative;
    margin: 0;
    border-radius: var(--st-radius-sm);
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .novel-item .item-cover .novel-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Avatar bình luận / review */
body.site-theme:not(.translator-workspace) .comment-list ul li .comment-item .user-info .avatar {
    width: var(--st-avatar-sm);
    height: var(--st-avatar-sm);
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

body.site-theme:not(.translator-workspace) .comment-list ul li .comment-item .user-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

body.site-theme:not(.translator-workspace) .review-list .review-item .review-info img.avatar,
body.site-theme:not(.translator-workspace) .review-section .review-content .review-scroll .review-item .header .avatar {
    width: var(--st-avatar-sm);
    height: var(--st-avatar-sm);
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Novel cards ---- */
body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--st-text);
    line-height: 1.35;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-title a {
    color: inherit;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-cover {
    border-radius: var(--st-radius-sm);
    overflow: hidden;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item .novel-cover img {
    transition: transform 0.25s ease;
}

body.site-theme:not(.translator-workspace) .novel-list .novel-item:hover .novel-cover img {
    transform: scale(1.03);
}

body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-md);
    padding: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item:hover {
    box-shadow: var(--st-shadow-md);
    border-color: #cbd5e1;
}

/* Trang thể loại (#explore): giữ layout flex gốc, không bọc card */
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item:hover {
    box-shadow: none;
    border-color: transparent;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-title,
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-title a {
    font-size: var(--st-fs-md);
    font-weight: 700;
    line-height: 1.4;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats {
    font-size: var(--st-fs-sm);
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats:not(.novel-stats--card) {
    font-size: var(--st-fs-sm);
    margin-top: 2px;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats-row-top .rating-star strong,
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats-row-chapter,
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats-row-top .novel-view-stat {
    font-size: var(--st-fs-sm);
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .star-box,
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .star-box svg.star {
    width: 13px;
    height: 13px;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .scroll-wrapper .proplist {
    width: 100%;
}

body.site-theme:not(.translator-workspace) #explore header {
    margin: 24px 0 28px;
    width: 100%;
}

body.site-theme:not(.translator-workspace) #explore header .description {
    font-size: var(--st-fs-base);
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-cover img {
    transform: none;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item:hover .novel-cover img {
    transform: none;
}

body.site-theme:not(.translator-workspace) .novel-list.col5 .novel-item,
body.site-theme:not(.translator-workspace) .novel-list.col3 .novel-item,
body.site-theme:not(.translator-workspace) .novel-list .novel-item {
    margin-bottom: 0.8rem;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item {
    margin-bottom: 1rem;
}

/* ---- Mobile: 2 story cards per row (site-wide) ---- */
/* Exclude hero slider track + reading strip (horizontal scroll) */
@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) .novel-list:not(.horizontal):not(.top-slide-track):not(.reading-scroll) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px;
        margin-left: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list:not(.horizontal):not(.top-slide-track):not(.reading-scroll) .novel-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list:not(.horizontal):not(.top-slide-track):not(.reading-scroll) .novel-item.ads {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px;
        margin-left: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        flex-direction: column !important;
        padding-left: 0 !important;
        align-items: stretch !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap .novel-cover {
        width: 100% !important;
        height: auto !important;
        padding-top: var(--st-cover-ratio, 140%) !important;
        position: relative !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .cover-wrap .novel-cover img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.site-theme:not(.translator-workspace) .novel-list.horizontal .novel-item .item-body {
        margin-left: 0 !important;
        width: 100%;
        min-width: 0;
    }
}

/* ---- Category filters (trang thể loại) ---- */
body.site-theme:not(.translator-workspace) #explore nav.filters {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 18px 18px 16px;
    margin-bottom: 24px;
    box-shadow: var(--st-shadow-sm);
}

body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--st-border);
}

body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block-row .filter-block {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .proptitle {
    display: block;
    font-size: var(--st-fs-sm);
    font-weight: 700;
    color: var(--st-text);
    margin: 0 0 12px;
    padding: 0 0 0 10px;
    border: none;
    border-left: 3px solid var(--st-accent);
    border-bottom: none !important;
    line-height: 1.35;
}

body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    font-size: var(--st-fs-base);
}

body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li {
    display: block;
    margin: 0 !important;
    padding: 0;
    font-size: inherit;
}

body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--st-text) !important;
    background: var(--bg-color-8, #f8fafc);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a:hover {
    background: var(--st-accent-soft);
    border-color: #5eead4;
    color: var(--st-accent-dark) !important;
}

body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a.active {
    background: var(--st-accent, #0d9488);
    border-color: var(--st-accent, #0d9488);
    color: #fff !important;
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a {
    font-weight: 600;
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412 !important;
}

body.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a.active {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a,
body.dark.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a {
    background: var(--bg-color-8, #334155);
    border-color: var(--st-border, #475569);
    color: var(--st-text, #e2e8f0) !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a:hover,
body.dark.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: #2dd4bf;
    color: #99f6e4 !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a.active,
body.dark.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a.active {
    background: var(--st-accent, #2dd4bf);
    border-color: var(--st-accent, #2dd4bf);
    color: #0f172a !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a,
body.dark.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(251, 146, 60, 0.45);
    color: #fdba74 !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a.active,
body.dark.site-theme:not(.translator-workspace) #explore nav.filters #categorylist .proplist li:nth-child(-n+3) a.active {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff !important;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .scroll-wrapper {
    margin: 0;
    padding: 0;
    overflow: visible;
    width: 100%;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .scroll-wrapper .proplist {
    width: 100% !important;
    height: auto !important;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block--translator ul.proplist {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block--half ul.proplist {
    flex-direction: row;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) #explore nav.filters {
        padding: 16px;
        margin-bottom: 22px;
    }

    body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block-row .filter-block {
        padding-bottom: 18px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--st-border);
    }

    body.site-theme:not(.translator-workspace) #explore nav.filters .filter-block-row .filter-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    body.site-theme:not(.translator-workspace) #explore nav.filters ul.proplist li a {
        min-height: 38px;
        padding: 8px 14px;
    }
}

/* ---- Explore: danh sách truyện ---- */
body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal {
    margin-left: 0 !important;
    gap: 20px 24px;
    width: 100%;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal.col2 .novel-item {
    width: calc(50% - 12px) !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    align-items: flex-start;
    gap: 12px;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .cover-wrap {
    width: var(--st-cover-thumb-w) !important;
    min-width: var(--st-cover-thumb-w);
    flex-shrink: 0;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .cover-wrap .novel-cover {
    margin: 0;
    width: var(--st-cover-thumb-w);
    height: var(--st-cover-thumb-h);
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .cover-wrap .novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--st-radius-sm);
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .item-body {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal .novel-item .novel-stats > span {
    min-width: 0;
    display: inline;
    white-space: normal;
}

body.site-theme:not(.translator-workspace) #explore nav.paging {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) #explore .novel-list.horizontal {
        gap: 14px 10px;
    }
}

/* ---- Search form ---- */
body.site-theme:not(.translator-workspace) #search-section .search-container {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-md);
    padding: 18px;
    box-shadow: var(--st-shadow-sm);
}

body.site-theme:not(.translator-workspace) #inputContent,
body.site-theme:not(.translator-workspace) #search-section form input.form-control,
body.site-theme:not(.translator-workspace) #search-section form select {
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    background: var(--st-surface);
    color: var(--st-text);
    font-size: var(--st-fs-sm);
}

body.site-theme:not(.translator-workspace) #inputContent::placeholder,
body.site-theme:not(.translator-workspace) #search-section form input::placeholder,
body.site-theme:not(.translator-workspace) input.form-control::placeholder,
body.site-theme:not(.translator-workspace) textarea.form-control::placeholder {
    color: var(--st-text-muted);
    opacity: 1;
}

body.site-theme:not(.translator-workspace) .main-header #inputContent {
    background: var(--bg-color-8, #f8fafc);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
}

/* ---- Header surface ---- */
body.site-theme:not(.translator-workspace) .main-header {
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
}

/* ---- Footer ---- */
body.site-theme:not(.translator-workspace) footer {
    background: var(--st-surface);
    border-top: 1px solid var(--st-border);
    padding: 32px 0 28px;
    margin-top: 24px;
}

body.site-theme:not(.translator-workspace) footer .copyright {
    font-size: var(--st-fs-xs);
}

/* ---- Pagination ---- */
body.site-theme:not(.translator-workspace) .pagination {
    margin: 28px 0 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

body.site-theme:not(.translator-workspace) .pagination li a,
body.site-theme:not(.translator-workspace) .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: var(--st-surface);
    color: var(--st-text);
    font-size: var(--st-fs-sm);
    font-weight: 500;
    line-height: 1;
}

body.site-theme:not(.translator-workspace) .pagination li a:hover {
    background: var(--bg-color-8, #f8fafc);
    border-color: #cbd5e1;
}

body.site-theme:not(.translator-workspace) .pagination .active span,
body.site-theme:not(.translator-workspace) .pagination .active a {
    background: var(--st-text);
    border-color: var(--st-text);
    color: #fff;
    font-weight: 600;
}

/* ---- Rank tabs (homepage) ---- */
body.site-theme:not(.translator-workspace) .index-rank label {
    font-size: var(--st-fs-sm);
    font-weight: 600;
    color: var(--st-text-muted) !important;
    padding: 8px 14px;
    border-radius: var(--st-radius-pill);
    border: 1px solid var(--st-border) !important;
    background: var(--st-surface) !important;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.site-theme:not(.translator-workspace) .index-rank input[type="radio"]:checked + label,
body.site-theme:not(.translator-workspace) .index-rank input[type=radio]:checked + label {
    background: var(--st-accent, #0d9488) !important;
    border-color: var(--st-accent, #0d9488) !important;
    color: #fff !important;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container h3 {
    font-size: var(--st-fs-md);
    font-weight: 700;
    color: var(--st-text);
    margin-bottom: 12px;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container h3 span {
    background-color: var(--st-accent, #0d9488) !important;
    color: #fff !important;
    border-top-right-radius: 8px;
    border-top-left-radius: 3px;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container h3:after {
    background-image: linear-gradient(to right, var(--st-accent, #0d9488) 40%, transparent) !important;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul > i {
    display: block;
    width: 100%;
    padding: 20px 8px;
    text-align: center;
    font-style: normal;
    font-size: var(--st-fs-sm);
    color: var(--st-text-muted) !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank label,
body.dark.site-theme:not(.translator-workspace) .index-rank label {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--st-border) !important;
    color: var(--st-text-muted) !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank input[type="radio"]:checked + label,
html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank input[type=radio]:checked + label,
body.dark.site-theme:not(.translator-workspace) .index-rank input[type="radio"]:checked + label,
body.dark.site-theme:not(.translator-workspace) .index-rank input[type=radio]:checked + label {
    background: #475569 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank .rank-container h3 span,
body.dark.site-theme:not(.translator-workspace) .index-rank .rank-container h3 span {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank .rank-container h3:after,
body.dark.site-theme:not(.translator-workspace) .index-rank .rank-container h3:after {
    background-image: linear-gradient(to right, #64748b 40%, transparent) !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) .index-rank .rank-container ul > i,
body.dark.site-theme:not(.translator-workspace) .index-rank .rank-container ul > i {
    color: var(--st-text-muted, #94a3b8) !important;
}

body.site-theme:not(.translator-workspace) .index-rank .rank-container ul .novel-item .novel-title {
    font-size: var(--st-fs-sm);
}

/* ---- Login modal ---- */
body.site-theme:not(.translator-workspace) #myModal .modal-contents,
body.site-theme:not(.translator-workspace) #myModal .modal-body,
body.site-theme:not(.translator-workspace) #myModal .panel-login,
body.site-theme:not(.translator-workspace) #myModal .panel-login > .panel-heading,
body.site-theme:not(.translator-workspace) #myModal .panel-login .panel-body {
    background: var(--st-surface);
    color: var(--st-text);
}

body.site-theme:not(.translator-workspace) .modal-contents,
body.site-theme:not(.translator-workspace) .panel-login {
    border-radius: var(--st-radius-md);
    overflow: hidden;
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-md, 0 8px 30px rgba(15, 23, 42, 0.12));
}

body.site-theme:not(.translator-workspace) #myModal .panel-login {
    border: none;
    box-shadow: none;
    padding: 1.25rem 1.5rem 1.5rem;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login > .panel-heading {
    border-color: var(--st-border);
    padding-bottom: 0;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login > .panel-heading a {
    color: var(--st-text-muted);
    font-size: var(--st-fs-base);
    font-weight: 600;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login > .panel-heading a.active {
    color: var(--st-accent, #0d9488);
    font-weight: 700;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login > .panel-heading hr {
    background: var(--st-border);
    background-image: none;
    height: 1px;
    margin-top: 12px;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login .form-control {
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: var(--st-bg);
    color: var(--st-text);
    font-size: var(--st-fs-base);
    padding: 12px 14px;
    height: auto;
    line-height: 1.45;
}

body.site-theme:not(.translator-workspace) #myModal .panel-login .form-control::placeholder {
    color: var(--st-text-muted);
    opacity: 1;
    font-size: var(--st-fs-base);
}

body.site-theme:not(.translator-workspace) #myModal .panel-login .form-control:focus {
    border-color: var(--st-accent, #0d9488);
    box-shadow: 0 0 0 3px var(--st-accent-soft);
}

body.site-theme:not(.translator-workspace) #myModal #forget-form-link {
    color: var(--st-accent, #0d9488);
    font-weight: 500;
}

body.site-theme:not(.translator-workspace) #myModal #forget-form-link:hover {
    color: var(--st-accent-dark, #0f766e);
}

body.site-theme:not(.translator-workspace) #myModal label[for="agree_terms_small_footer"],
body.site-theme:not(.translator-workspace) #myModal label[for="agree_terms_small_footer"] a {
    color: var(--st-text-muted);
}

body.site-theme:not(.translator-workspace) #myModal label[for="agree_terms_small_footer"] a {
    color: var(--st-accent, #0d9488) !important;
}

body.site-theme:not(.translator-workspace) .panel-login .form-control {
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    font-size: var(--st-fs-base);
    padding: 12px 14px;
    height: auto;
    line-height: 1.45;
}

body.site-theme:not(.translator-workspace) .panel-login .btn-login,
body.site-theme:not(.translator-workspace) .panel-login .btn-register {
    background: var(--st-gradient) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--st-radius-pill) !important;
    font-weight: 600;
    font-size: var(--st-fs-base);
    padding: 11px 22px;
    height: auto;
}

body.site-theme:not(.translator-workspace) .panel-login > .panel-heading a {
    font-size: var(--st-fs-base);
}

/* ---- Scroll to top ---- */
body.site-theme:not(.translator-workspace) .btn-bar-ontop {
    border-radius: var(--st-radius-sm);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

/* ---- Top slide carousel ---- */
body.site-theme:not(.translator-workspace) .top-home-hot {
    margin-top: 16px;
}

body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item a,
body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a {
    border-radius: var(--st-radius-md);
    overflow: hidden;
    display: block;
    line-height: 0;
}

body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item img,
body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--st-radius-md);
}

@media (min-width: 768px) {
    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item a,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a {
        margin-bottom: 3px;
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item img,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a img {
        height: 170px !important;
    }
}

@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) .top-home-hot {
        margin-top: 12px;
        margin-bottom: 4px;
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .owl-dots,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .owl-dots {
        display: none !important;
    }

    body.site-theme:not(.translator-workspace) .top-slide-dots-compact {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 10px 0 2px;
        padding: 0;
        width: 100%;
    }

    body.site-theme:not(.translator-workspace) .top-slide-dots-compact.is-visible {
        display: flex;
    }

    body.site-theme:not(.translator-workspace) .top-slide-dots-compact span {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--st-border, #cbd5e1);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    body.site-theme:not(.translator-workspace) .top-slide-dots-compact span.active {
        background: var(--st-accent, #0d9488);
        transform: scale(1.15);
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .owl-stage-outer,
    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .owl-stage,
    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .owl-item {
        height: auto !important;
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item a,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a {
        position: relative;
        display: block;
        width: 100%;
        margin-bottom: 0 !important;
        padding-top: var(--st-cover-ratio, 140%);
        height: 0;
        background: var(--bg-color-8, #f8fafc);
    }

    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item img,
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover;
        object-position: top center;
    }
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) .top-home-hot .top-slide .item a img,
    body.site-theme:not(.translator-workspace) .top-home-hot .owl-carousel .item img {
        height: 185px !important;
    }
}

@media (min-width: 1024px) {
    body.site-theme:not(.translator-workspace) .container.vspace {
        padding-top: 12px;
        padding-bottom: 28px;
    }
}

@media (max-width: 1023px) {
    body.site-theme:not(.translator-workspace) #search-section .search-container {
        padding: 16px;
    }

    body.site-theme:not(.translator-workspace) .section-header h1,
    body.site-theme:not(.translator-workspace) .section-header h3 {
        font-size: var(--st-fs-md);
    }
}

/* ---- Search page: filter dropdowns ---- */
body.site-theme:not(.translator-workspace) #search-section #novelSearchForm {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

body.site-theme:not(.translator-workspace) #search-section .advance-search {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) #search-section .advance-search .search-item {
    flex: 1 1 0;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) #search-section .advance-search .search-item .ui.dropdown,
body.site-theme:not(.translator-workspace) #search-section .advance-search .search-item .ui.selection.dropdown {
    width: 100% !important;
    min-width: 0;
}

body.site-theme:not(.translator-workspace) #search-section .ui.selection.dropdown {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px !important;
    border: 1px solid var(--st-border, #e2e8f0) !important;
    border-radius: var(--st-radius-sm, 8px) !important;
    background: var(--st-surface, #fff) !important;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #search-section .ui.selection.dropdown > .text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--st-fs-sm, 0.8667rem);
}

body.site-theme:not(.translator-workspace) #search-section .ui.selection.dropdown > .dropdown.icon {
    flex-shrink: 0;
    margin-left: 8px;
}

body.site-theme:not(.translator-workspace) #search-section form > .button {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    min-height: 44px;
    padding: 0 24px !important;
    white-space: nowrap;
}

@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) #search-section #novelSearchForm {
        flex-wrap: wrap;
    }

    body.site-theme:not(.translator-workspace) #search-section .advance-search {
        flex-wrap: wrap;
    }

    body.site-theme:not(.translator-workspace) #search-section .advance-search .search-item {
        flex: 1 1 100%;
    }

    body.site-theme:not(.translator-workspace) #search-section form > .button {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ---- Chapter list pagination (trang chi tiết truyện) ---- */
body.site-theme:not(.translator-workspace) #chapter-list-page .filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--st-border, #e2e8f0);
    padding: 0 0 14px;
    margin-top: 8px;
    margin-bottom: 16px;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters #gotochap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .pagination-container {
    margin: 0;
    display: flex;
    align-items: center;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .pagination {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px;
    padding: 0;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .pagination > li {
    display: flex;
    align-items: center;
    float: none;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .pagination > li > a,
body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .pagination > li > span {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 10px;
    margin: 0;
    font-size: var(--st-fs-sm, 0.8667rem);
    line-height: 1.2;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .form-goto {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav .form-goto form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .form-goto input[type=text] {
    width: 110px;
    min-height: 34px;
    margin: 0;
    box-sizing: border-box;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .form-goto .button {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    body.site-theme:not(.translator-workspace) #chapter-list-page .filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page .filters .pagenav {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
}

/* ---- Chapter list: màu dịu, đồng bộ dark/light (ghi đè legacy) ---- */
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n),
body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:nth-child(4n-1) {
    background-color: rgba(15, 23, 42, 0.035) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li:hover {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li.vol-section {
    background-color: rgba(15, 23, 42, 0.05) !important;
}

body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap input[type="text"] {
    background: var(--st-bg) !important;
    border: 1px solid var(--st-border) !important;
    color: var(--st-text) !important;
    border-radius: var(--st-radius-sm);
    font-size: 13px;
}

body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap input[type="text"]::placeholder {
    color: var(--st-text-muted) !important;
    opacity: 1;
}

body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button {
    background-image: var(--button-bg) !important;
    background-color: transparent !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22) !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button {
    background-image: none !important;
    background-color: #334155 !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
}

html[color-mode="dark"] body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button:hover,
body.dark.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button:hover,
body.dark body.site-theme:not(.translator-workspace) #chapter-list-page #gotochap .button:hover {
    background-color: #475569 !important;
}

/* ---- Chapter list: full width (mobile) ---- */
@media (max-width: 767px) {
    body.site-theme:not(.translator-workspace) #chapter-list-page,
    body.site-theme:not(.translator-workspace) #chapter-list-page #chpagedlist,
    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list-scroll {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list li {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list .list-body {
        max-width: none !important;
        width: 100% !important;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list a {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.site-theme:not(.translator-workspace) #chapter-list-page input[type="text"] {
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    body.site-theme:not(.translator-workspace) #chapter-list-page #chpagedlist,
    body.site-theme:not(.translator-workspace) #chapter-list-page .chapter-list-scroll {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
