:root {
    --body: #e4e7ec;
    --card: #ffffff;
    --shadow: 0px 1px 7px #0000004a;
    --htext: #333333;
    --text: #333333;
    --texta: #007f57;
    --textnote: #555;
    --title-weight: 700;
    --body-weight: 400;
    --border-hat: 1px dashed #ccc;
    --comment: #fff;
    --note: #f5f5f5;
    --note-light: #f5f5f5;
    --menu: #eee;
    --menu-mobile: #ddd;
    --menu-mobile-chil: #fff;
    --menu-border: 2px dashed #ccc;
    --down-border: 2px solid var(--texta);
    --scroll: #ccc;
    --bar: #fff;
    --white: #fff;
    --menu-duoi: #ffffff;
    --input: #eee;
    --card-tran: #ffffff82;
    --chapter-bg: #fff;
    --chapter-font: "Times New Roman", serif;
    --chapter-font-size: 16px;
    --chapter-line-height: 120%;
}

html.dark-mode {
    --body: #131313;
    --card: #272727;
    --shadow: 0px 1px 7px #000000d9;
    --text: #ccc;
    --htext: #fff;
    --border: 1px solid #333;
    --border-one: 1px solid #444;
    --textnote: #ccc;
    --border-hat: 1px dashed #444;
    --comment: #000;
    --note: #000;
    --note-light: #363636;
    --menu: #383838;
    --menu-mobile: #1a1a1a;
    --menu-mobile-chil: #383838;
    --menu-border: 2px dashed #555;
    --down-border: 2px solid #6badff;
    --scroll: #444;
    --bar: #2a2a2a;
    --menu-duoi: #2a2a2a;
    --input: #111;
    --card-tran: #0000008c;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}

body {
    font-size: 18px;
    background: var(--body);
    color: var(--text);
    line-height: 1.4;
    margin: 0px;
    height: 100%;
}

main {
    min-height: 70vh;
}

* {
    scrollbar-color: var(--scroll) #ffffff00;
    scrollbar-width: thin !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: none;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll);
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background-color: none;
}

body button,
body input,
body textarea,
body select {
    border: none;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}

body button,
body input {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    background: none;
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    cursor: pointer;
    overflow: visible;
}

input[type="submit"] {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    cursor: pointer;
}

body h1 {
    padding: 0px;
    margin: 0px;
    margin-bottom: 10px;
    font-size: 25px;
}

body h2 {
    padding: 0px;
    margin: 0px;
    margin-bottom: 10px;
    font-size: 23px;
}

body h3 {
    font-size: 22px;
}

body h4 {
    font-size: 21px;
}

body a {
    text-decoration: none;
    color: var(--texta);
}

[aria-current="page"] {
    color: var(--texta);
}

.dp-header {
    background: var(--bar);
    box-shadow: var(--shadow);
    height: 70px;
}

.dp-header .logo a {
    padding: 0px;
    display: block;
}

.dp-header .logo .custom-logo-link {
    height: 70px;
    display: flex;
    align-items: center;
}

.dp-header .custom-logo-link img {
    padding: 7px;
    box-sizing: border-box;
    max-height: 63px;
    width: auto;
    height: auto;
}

.history-info a {
    font-size: 14px;
}

@media (max-width: 700px) {
    .dp-header .custom-logo-link img {
        max-height: 40px;
    }
}

.dp-header img {
    height: auto;
    width: 100%;
}

.dp-header .custom-logo-link img {
    animation: logo 2000ms infinite;
    border-radius: 30px;
}

@keyframes logo {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33.3333% {
        transform: translate3d(0, 0, 0) scale(0.9);
    }

    66.6666% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    0% {
        box-shadow: 0 0 0 0px #8cc9164d, 0 0 0 0px #8cc9164d;
    }

    50% {
        transform: scale(0.8);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(0, 210, 255, 0), 0 0 0 30px rgba(0, 210, 255, 0);
    }
}

.left-sidebar nav ul li a {
    color: var(--texta);
    border-bottom: var(--border);
    padding: 12px 0 12px 12px;
}

.offcanvas-body .navbar-nav .nav-link:hover,
.left-sidebar nav ul li a:hover {
    color: var(--card);
    background: linear-gradient(19deg, rgba(0, 135, 92, 1) 0%, rgba(143, 202, 28, 1) 100%);
    border-radius: 10px;
}

/* ĐẾN ĐÂY RỒI NÈ */
.form-control {
    background-color: var(--card);
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
html.dark-mode .card-text:last-child,
html.dark-mode .story-card .card-title,
html.dark-mode .story-card .section-label,
html.dark-mode .form-control {
    color: var(--text) !important;
}

html.dark-mode body {
    color: var(--text);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.truyen-menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.truyen-menu-toggle svg {
    min-width: 40px;
}

.truyen-notification-btn {
    background-color: var(--input);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0px;
    cursor: pointer;
    color: #00875c;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.truyen-search-container {
    position: relative;
    display: inline-block;
}

.truyen-search-input {
    padding: 10px 10px 10px 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--input);
}

.truyen-search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
}

.dp-header-find-form.dp-header-find-form-pc {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.dp-header-find-form-ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-header-find-form-li {
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.dp-header-find-form-li {
    padding: 12px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px;
}

.dp-header-find-form-image {
    overflow: hidden;
    min-width: 50px;
    max-width: 50px;
    --bs-aspect-ratio: 150%;
}

.dp-header-find-form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-header-find-form-info {
    flex: 1;
}

.catchuoi2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.dp-header-find-form-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--input);
    margin-bottom: 4px;
    line-height: 1.4;
}

.dp-header-find-form-author {
    font-size: 12px;
    color: var(--text);
}

.truyen-auth-buttons {
    gap: 10px;
}

.truyen-login-btn,
.truyen-register-btn {
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(19deg, rgba(0, 135, 92, 1) 0%, rgba(143, 202, 28, 1) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    font-size: 14px;
}

.btn {
    align-items: center;
    background: linear-gradient(19deg, rgba(0, 135, 92, 1) 0%, rgba(143, 202, 28, 1) 100%);
    border-radius: 6px;
    color: var(--white);
    display: inline-flex;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border: none;
}

.bg-dark-mode {
    background: var(--card);
}

header i {
    color: var(--text);
}

.chapter-content {
    background-color: var(--chapter-bg);
    color: var(--text);
    font-size: var(--chapter-font-size);
    line-height: var(--chapter-line-height);
    transition:
        background-color .25s ease,
        color .25s ease,
        font-size .2s ease,
        line-height .2s ease;
}

html.dark-mode .chapter-content {
    background-color: var(--card);
}

.thong-tin-truyen>ul>li {
    border: 1px solid var(--border);
    margin-bottom: 3px;
    padding: 2px 10px;
}

.thong-tin-truyen span {
    font-weight: 400;
}

.btn-dark-mode-toggle {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #00875c;
    background-color: var(--input) !important;
    transition: background-color 0.2s ease;
}

.btn-dark-mode-toggle:hover {
    background-color: var(--body) !important;
    opacity: 0.8;
}

.truyen-options-wrap {
    position: absolute;
    top: 0;
    left: calc(100% - 10px);
    width: max-content;
    height: 100%;
    z-index: 20;
}

.truyen-options {
    top: 0;
    position: sticky;
    transform: translateY(100px);
    -webkit-transform: translateY(100px);
    -moz-transform: translateY(100px);
    -ms-transform: translateY(100px);
    -o-transform: translateY(100px);
}

#truyen-options-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    padding: 16px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
}

#truyen-options-panel.is-open {
    display: block !important;
}

.option-group {
    margin-bottom: 12px;
}

.option-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

html,
body,
header,
footer,
main,
section,
article,
nav,
.card,
.navbar,
.btn {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

a,
.nav-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.card {
    background-color: var(--card, var(--surface)) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

a.btn {
    color: var(--btn-text, #fff) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

strong,
b {
    font-weight: 600;
    color: var(--text);
}

a,
button {
    -webkit-text-decoration: none;
    text-decoration: none;
    outline: none !important;
}


li,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-menu__balance {
    background-color: var(--card);
    font-size: 14px;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 600;
    color: var(--text);
}

.user-menu {
    position: relative;
}

.user-menu__toggle {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.user-menu__toggle::after {
    margin-left: 6px;
    color: var(--text);
}

.dp-header .user-menu__avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.user-menu__name {
    font-size: 16px;
    color: var(--text);
}

.user-menu__dropdown {
    min-width: 220px;
    border-radius: 8px;
    background-color: var(--card);
    border: 1px solid var(--border);
}

.user-menu__dropdown .dropdown-item {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: var(--card);
    color: var(--text);
    transition: background-color 0.2s ease;
}

.user-menu__dropdown .dropdown-item i {
    width: 18px;
}

/* end css thành viên đầu trang */

.sidebar-cmt ul li {
    align-items: flex-start;
    border-bottom: 1px dashed var(--border);
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 8px;
}

.sidebar-cmt ul li:hover {
    background-color: var(--body);
}

.sidebar-cmt ul li>a {
    display: block;
    height: 45px;
    width: 45px;
}

.sidebar-cmt .top-comment ul li img {
    border: 2px solid var(--btn-primary);
    border-radius: 50%;
    height: 45px;
    width: 45px;
}

.sidebar-cmt .top-comment ul li .info-user {
    padding-left: 10px;
    width: calc(100% - 45px);
}

.sidebar-cmt .top-comment ul li .info-user h4 a {
    color: var(--htext);
    font-weight: 600;
}

.hoat-dong-moi-list .left_chapavt {
    margin-right: 8px;
    width: 35px;
}

.dp-vip-status {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5, #ffecec);
    border: 1px solid #f5c2c2;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.dp-vip-status strong {
    color: #d32f2f;
    font-weight: 700;
}

.dp-vip-status strong+text,
.dp-vip-status strong {
    text-transform: uppercase;
}

.dp-vip-status span {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text);
}

.dp-vip-package {
    background: var(--white);
    border-radius: 14px;
    padding: 24px 20px;
    width: 220px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dp-vip-package h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text, #222);
}

.dp-vip-package .price {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-gold, #ff0000);
}

.dp-vip-package .duration {
    font-size: 14px;
    color: var(--text-secondary, #666);
    margin-bottom: 20px;
}

.dp-vip-package .dp-buy-vip {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .dp-vip-package {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

.truyen-comic-card {
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    background: var(--white);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.truyen-comic-image-container {
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    overflow: hidden;
}

.container.dp-category-page.rounded {
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

.truyen-comic-status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(19deg, rgba(0, 135, 92, 1) 0%, rgba(143, 202, 28, 1) 100%);
    color: var(--white);
    padding: 3px 12px;
    font-size: 10px;
    font-weight: bold;
    pointer-events: none;
    z-index: 30;
    border-radius: 0px 25px !important;
}

.truyen-comic-image-box {
    overflow: hidden;
    --bs-aspect-ratio: 150%;
    min-height: 100%;
}

.truyen-comic-image-box img,
.truyen-comic-image-box a {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.truyen-comic-stats {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.73);
    pointer-events: none;
    box-shadow: var(--shadow);
}

.truyen-comic-stat {
    gap: 2px;
    color: var(--text, #fff);
    font-size: 12px;
}

.story-card .dot-separator {
    width: 8px;
    height: 8px;
    background-color: var(--texta);
    border: 1px solid var(--texta);
    border-radius: 50%;
    margin-right: 5px;
}

.story-card .section-label {
    font-size: 12px;
    color: var(--text);
    margin-right: 5px;
    white-space: nowrap;
}

.story-card .genre-badge {
    font-weight: 500;
    font-size: 13px;
    color: var(--white);
    background: linear-gradient(19deg, rgba(143, 202, 28, 1) 100%, rgba(0, 135, 92, 1) 0%);
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
}

.truyen-comic-stat {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--text, #fff);
    font-size: 12px;
}

.truyen-comic-stat img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.story-card .truyen-comic-stat-icon {
    width: 15px;
    height: 15px;
}

.story-card .truyen-comic-stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.truyen-stat-count {
    font-weight: bold;
    font-size: 0.6rem;
    color: var(--texta);
}

.truyen-comic-info {
    padding: 5px 10px;
    color: var(--texta);
}

.truyen-comic-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px;
    text-align: center;
}

.truyen-comic-title span {
    color: var(--texta);
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
}

html.dark-mode .truyen-comic-title span {
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.truyen-comic-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    font-size: 0.6rem;
    color: var(--text);
}

.truyen-comics-section .truyen-comic-meta {
    font-size: 0.48rem;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

main#main-content .box-new-one h4 {
    font-size: 19px;
    font-weight: 500;
    line-height: 26px;
    margin-bottom: 10px;
}

main#main-content .box-new-one h4 a {
    color: var(--htext);
}


.truyen-fire-icon {
    width: 30px;
    display: inline-flex;
}

.truyen-fire-icon {
    width: 25x !important;
    height: 25px !important;
    font-size: inherit !important;
}

.truyen-fire-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transform: initial !important;
    -webkit-transform: initial !important;
    -moz-transform: initial !important;
    -ms-transform: initial !important;
    -o-transform: initial !important;
}

@media(max-width: 850px) {

    .single-chuong button span,
    .single-chuong a span {
        display: none;
    }
}

.right-sidebar .section-title {
    font-size: 16px;
}

.member_list-avatar img {
    border-radius: 50%;
}

/* ====== CHAT UI ====== */

.chat-bubble-wrapper {
    max-width: 80%;
}

.chat-bubble {
    text-align: left;
    word-break: break-word;
    border-radius: 12px !important;
}

.chat-meta {
    font-size: 11px;
    opacity: 0.85;
}

.chat-username {
    font-weight: 600;
    color: var(--htext);
}

.chat-time {
    margin-left: auto;
    font-size: 10px;
}

.chat-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--chat-vip-gradient, linear-gradient(135deg, #ffd700, #ff9800));
    color: var(--chat-vip-color, #fff);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-vip-badge i {
    font-size: 10px;
}

.chat-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chat-emoji-btn {
    border-radius: 999px !important;
    padding: 2px 8px !important;
    line-height: 1.2;
}

/* đánh giá */
.rating-stars {
    display: inline-flex;
    cursor: pointer;
}

.rating-stars .star {
    font-size: 22px;
    color: var(--rating-star-color, #ccc);
    /* Use variable, fallback to original */
    transition: color 0.2s;
}

/* ===============================
   FACEBOOK STYLE ADDITIONS
================================ */

/* Widget Areas */
.widget-area {
    background-color: var(--card);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.title_sidebar,
.widget-title,
.box-heading2 h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--htext);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget-content {
    color: var(--text);
}

/* Sidebar */
.right-sidebar {
    position: sticky;
    top: calc(56px + 20px);
    transition: top 0.3s ease;
}

.right-sidebar .widget-area {
    margin-bottom: 16px;
}

/* Box Category */
.box-category {
    background-color: var(--card);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.post-summary-list ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.2s ease;
}

.post-summary-list ul li:hover {
    padding-left: 8px;
}

.post-summary-list ul li:last-child {
    border-bottom: none;
}

.post-summary-list ul li a {
    color: var(--text);
    font-size: 15px;
}

.post-summary-list ul li i {
    color: var(--text-secondary);
    margin-right: 8px;
}

/* Navbar Search */

/* Navbar Brand */
.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--htext) !important;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-toggler {
    border: none !important;
    padding: 8px;
    border-radius: 8px;
    background-color: var(--body) !important;
    color: var(--text) !important;
    transition: background-color 0.2s ease;
}

.navbar-toggler:hover {
    background-color: var(--body) !important;
    opacity: 0.8;
}

.navbar-toggler:focus {
    box-shadow: var(--shadow);
}

/* Offcanvas (Mobile Menu) */
.offcanvas {
    background-color: var(--card) !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border);
}

.offcanvas-title {
    color: var(--htext);
    font-weight: 600;
    font-size: 20px;
}

.offcanvas-body {
    background-color: var(--card);
}

.offcanvas-body .navbar-nav .nav-link {
    color: var(--text) !important;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background-color 0.2s ease;
}



@media (max-width: 991px) {

    .left_main,
    .right_main {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Entry Content */
.entry-thumbnail img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.entry-header {
    margin-top: 12px;
    margin-bottom: 12px;
}

.entry-content {
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

.entry-content p {
    margin-bottom: 12px;
}

.entry-content a {
    color: var(--texta);
}

/* Cards and Posts */
#dp-posts .bg-dark-mode {
    margin-bottom: 16px;
}

#post-* {
    margin-bottom: 20px;
}

/* Badges */
.badge {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Modal */
.modal-content {
    background-color: var(--card);
    border: 1px solid var(--border) !important;
    border-radius: 8px;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
}

.modal-title {
    color: var(--htext);
    font-weight: 600;
}

.modal-body {
    color: var(--text);
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
    background: var(--bar);
    font-size: 16px;
    color: var(--text);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination .page-link {
    color: var(--text);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--body);
    border-color: var(--btn-primary);
    color: var(--texta);
}

.pagination .page-item.active .page-link {
    background-color: var(--btn-primary);
    border-color: var(--btn-primary);
    color: var(--text, #fff);
}

/* Card Story */
main#main-content .box-new-one h4 a {
    color: var(--htext);
}

/* Additional Facebook-style refinements */
.navbar i {
    font-size: 20px;
}

.rounded-pill {
    border-radius: 20px !important;
}

/* List items */
.list-group-item {
    background-color: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text);
    padding: 12px 16px;
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--body) !important;
}

.list-group-item.active {
    background-color: var(--btn-primary) !important;
    border-color: var(--btn-primary) !important;
    color: var(--text, #fff) !important;
}

/* Thumbnail images */
.entry-thumbnail {
    overflow: hidden;
    border-radius: 8px;
}

.entry-thumbnail img {
    transition: transform 0.3s ease;
}

.entry-thumbnail:hover img {
    transform: scale(1.05);
}

/* Search results */
#header-search-result {
    background-color: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
}

#header-search-result .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

#header-search-result .list-group-item:first-child {
    border-top: none;
    border-radius: 8px 8px 0 0;
}

#header-search-result .list-group-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--selection-bg, rgba(24, 119, 242, 0.2));
    color: var(--text);
}

::-moz-selection {
    background-color: var(--selection-bg, rgba(24, 119, 242, 0.2));
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .right-sidebar {
        position: static;
        margin-top: 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bg-dark-mode {
        padding: 12px;
    }

    .widget-area {
        padding: 12px;
    }
}

/* Tabs Navigation */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: var(--texta);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--btn-primary);
    border-bottom-color: var(--btn-primary);
    background: transparent;
}

/* TOP 1 Card */

.top-1-card .crown-icon {
    filter: drop-shadow(0 2px 4px var(--primary-gold-shadow, rgba(255, 215, 0, 0.5)));
    animation: crown-glow 2s ease-in-out infinite;
}

@keyframes crown-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.top-1-card h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.top-1-card .ranking-meta,
.top-1-card .ranking-stats,
.top-1-card .ranking-info {
    font-size: 14px;
    color: var(--text);
}

.top-1-card .ranking-stats i,
.top-1-card .ranking-info i {
    color: var(--btn-primary);
    margin-right: 4px;
}

.ranking-list {
    list-style: none;
    padding: 0;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    overflow: hidden;
}

.ranking-list-item a {
    background-color: var(--card);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9e9e9;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.ranking-list-item .rank {
    font-weight: 700;
    font-size: 16px;
    color: var(--ranking-rank, #1e1e1e);
    min-width: 50px;
}

html.dark-mode .ranking-list-item .title,
html.dark-mode .ranking-list-item .rank {
    color: var(--text);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

html.dark-mode .views {
    color: var(--text);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.icon-bxh-top {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin: 0px 7px;
}

.ranking-list-item .title {
    font-weight: var(--title-weight);
    font-size: clamp(0.9rem, 0.8692rem + 0.1538vw, 1rem);
    color: var(--text);
    margin-right: 10px;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-list-item .views {
    font-weight: 500;
    font-size: 16px;
    color: var(--ranking-views, #5a5a5a);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.icon-fire {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 3px;
}

.ranking-number {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .top-1-card h3 {
        font-size: 20px;
    }

    .top-1-card .ranking-meta,
    .top-1-card .ranking-stats,
    .top-1-card .ranking-info {
        font-size: 13px;
    }

    .ranking-list-item {
        flex-wrap: wrap;
    }

    .ranking-list-item .ranking-thumbnail img {
        width: 50px;
        height: 65px;
    }

    .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.ranking-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.top-1-card {
    background-color: var(--card);
    border-radius: 12px;
}

.top-1-card .top-1-info {
    flex-grow: 1;
}

.top-1-info {
    display: flex;
    flex-direction: column;
}

.top-1-card .top-1-title {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-1-number {
    font-size: 1.3rem;
    color: var(--texta);
    white-space: nowrap;
}

.icon-crown {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.icon-crown {
    width: 30px;
    height: 40px;
    object-fit: contain;
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
}

.top-1-title-text-name {
    font-weight: 600;
    color: var(--texta);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    line-height: 1.5;
    text-transform: capitalize;
    -webkit-box-orient: vertical;
}

.top-1-card .top-1-genres {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.top-1-card .top-1-label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    margin-right: 8px;
}

html.dark-mode .top-1-card .top-1-genre-badge {
    background: var(--body);
    color: var(--text);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

html.dark-mode .top-1-title-text-name,
html.dark-mode .top-1-card .top-1-label,
html.dark-mode .top-1-card .top-1-stat-label,
html.dark-mode .top-1-card a.top-1-stat-value,
html.dark-mode .top-1-card .top-1-stat-value {
    color: var(--texta);
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.top-1-card .top-1-genre-badge {
    font-weight: 500;
    font-size: 14px;
    color: var(--white);
    background: linear-gradient(19deg, rgba(143, 202, 28, 1) 100%, rgba(0, 135, 92, 1) 0%);
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.top-1-card .top-1-stats {
    gap: 16px;
    font-size: clamp(0.8rem, 0.7385rem + 0.3077vw, 1rem);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.top-1-card .top-1-stat-item {
    display: flex;
    align-items: center;
}

.top-1-card .top-1-stat-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    background-color: #F0F0F0;
    border: 1px solid #389cff;
    border-radius: 50%;
    margin-right: 8px;
}

.top-1-card .top-1-stat-label {
    margin-right: 5px;
}

.top-1-card .top-1-stat-value {
    font-weight: var(--title-weight);
}

.top-1-card a.top-1-stat-value {
    color: var(--texta);
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
}

.top-1-hinh-anh-box,
.post-thumbnail {
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    --bs-aspect-ratio: 150%;
}

.top-1-hinh-anh-box a,
.top-1-hinh-anh-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-top-1-comic {
    width: 45px;
    height: auto;
    position: absolute;
    top: 4%;
    left: 9%;
    z-index: 10;
    transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    z-index: 3;
}

.story-card-new-item {
    overflow: hidden;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: var(--shadow);
}


.card-body {
    height: 100%;
    justify-content: space-between;
}

.story-card .card-title {
    font-size: 16px;
    color: var(--texta) !important;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.story-card .genre-section,
.story-card .intro-section {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.card-text:last-child {
    margin-bottom: 0;
}

.story-card .card-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Container tổng */
.list_chapternew {
    align-items: center;
}

/* Khối ảnh bên trái */
.left_chapavt {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
}

/* Ảnh đại diện */
.left_chapavt img.avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    /* Giữ ảnh vuông, không méo */
    border-radius: 4px;
    /* bo nhẹ cho đẹp */
    display: block;
}

/* Khối nội dung bên phải */
.right_chapinfo {
    flex: 1;
    min-width: 0;
    /* BẮT BUỘC để ellipsis hoạt động trong flex */
}

/* Khối title + info */
.chaplist {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Link tiêu đề */
.chaplist>a {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    /* 1 dòng */
    overflow: hidden;
    /* ẩn phần thừa */
    text-overflow: ellipsis;
    /* dấu ... */
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--input);
    text-decoration: none;
}

/* Category */
.chaplist .catcolor {
    font-weight: 500;
}

/* Thời gian / chương mới */
.time_chap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* Icon "chương mới" */
.chaplist>img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    /* Không bị co méo */
    object-fit: contain;
    vertical-align: middle;
}

/* Khối danh sách chương */
#chapter-list-content {
    max-height: 200px;
    overflow-y: auto;
    /* Tự hiện scroll khi vượt quá 200px */
    overflow-x: hidden;
    /* Tránh scroll ngang */
    scroll-behavior: smooth;
}

/* Tối ưu hiển thị từng dòng chương */
.dp_list_chapter {
    box-sizing: border-box;
}

.user-cover-image {
    overflow: hidden;
    max-height: 350px;
}

.user-cover-image a,
.user-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-box-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.account-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--card-dot-bg, #F0F0F0);
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.my-wall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cover-section {
    position: relative;
    border-radius: 15px;

}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.profile-name-ten {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.profile-name-ten .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    background: var(--input);
    color: var(--text);
}

.so-lieu-thong-ke-box {
    margin-top: 40px;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.profile-info {
    position: relative;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
}

.profile-name-ten {
    font-size: 1.4rem;
    font-weight: var(--title-weight);
    margin-bottom: 10px;
    color: var(--text);
}

.profile-quote {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-style: italic;
    max-width: 280px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.action-buttons {
    position: relative;
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-title i {
    font-size: 1.3rem;
}

.stories-slider {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.story-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.story-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-title {
    font-size: 1rem;
    color: var(--htext);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: var(--title-weight);
}

.story-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.donation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: var(--donation-bg, rgba(0, 128, 255, 0.05));
    transition: all 0.3s ease;
}

.donation-item:hover {
    background: var(--donation-bg-hover, rgba(0, 128, 255, 0.1));
}

.donation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.donation-info {
    flex-grow: 1;
}

.donation-name {
    font-weight: 600;
    color: var(--input);
    margin-bottom: 3px;
}

.donation-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.donation-amount {
    font-weight: 700;
    color: var(--success-color);
    margin-left: auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg, rgba(0, 0, 0, 0.7));
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border-radius: 15px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: var(--shadow);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--input);
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--text);
    box-shadow: var(--shadow);
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Swiper specific styles */
.swiper-container {
    /* width: 100%; */
    padding-bottom: 40px;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination {
    bottom: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text);
}

.cover-section-wrapper {
    position: relative;
    z-index: 5;
    background-color: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);

}

.badge.rounded-pill.bg-danger {
    color: var(--text) !important;
}

.dp-site-bxh-card {
    width: 100%;
    display: flex;
    background-color: var(--card);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--text);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -ms-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    color: var(--text);
}

.dp-site-bxh-card-left {
    overflow: hidden;
}

.dp-site-bxh-card-left img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.dp-site-bxh-user-name {
    font-weight: var(--title-weight);
    font-size: clamp(0.8rem, 0.7692rem + 0.1538vw, 0.9rem);
}

.thong-tin-user-ranking {
    max-width: 100%;
}

.thong-tin-user-ranking {
    font-size: 0.7rem;
}

.dp-site-bxh-rank {
    display: flex;
    align-items: baseline;
    justify-content: start;
    font-weight: var(--title-weight);
    width: 100%;
    padding-left: 10px;
}

.dp-site-bxh-icon-mini-box {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    display: inline-block;
}

.icon-bxh-mini {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
}

.icon-vuong-mien-rank {
    position: absolute;
    top: 0px;
    left: 0;
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    display: inline-block;
    transform: translate(0, 0);
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
}

.dp-site-bxh-stat {
    display: flex;
    width: 100%;
}

.dp-site-bxh-stat-label {
    color: var(--text);
    font-size: 0.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .action-buttons {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 20px;
    }

    .profile-quote {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .profile-image {
        width: 120px;
        height: 120px;
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-info {
        text-align: center;
        padding-top: 60px;
    }

    .profile-stats {
        justify-content: center;
    }
}


/* Dropdown */
.dp-notification-dropdown {
    position: absolute;
    top: 170%;
    left: 0;
    width: 360px;
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: none;
}

/* Header */
.dp-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-extra-light, #eee);
    font-weight: 600;
}

/* List */
.dp-notification-list {
    max-height: 400px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Item */
.dp-notification-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.dp-notification-item:hover {
    background: var(--notification-bg-hover, #f5f7fa);
}

.dp-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary, #666);
}

/* Badge */
.dp-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: var(--text);
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.dark-mode .story-card .card-text span {
    background: transparent !important;
    color: var(--text) !important;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dp-gioi-thieu-title {
    color: var(--htext);
    font-weight: var(--title-weight);
    line-height: 1.5;
    font-size: clamp(1.7rem, 1.6077rem + 0.4615vw, 2rem);
}

.dp-level-progress__bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dp-level-progress__fill {
    display: block;
    height: 100%;
    background: #4caf50;
    transition: width .3s ease;
}

@media (max-width: 768px) {

    .truyen-notification-btn,
    .btn-dark-mode-toggle,
    .dp-header .user-menu__avatar {
        width: 30px;
        height: 30px;
    }

    .offcanvas.offcanvas-start {
        width: 320px;
    }

    .dp-notification-dropdown {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
        max-width: 360px;
    }

    .dp-notification-dropdown {
        max-height: 70vh;
        overflow-y: auto;
    }

    .top-1-number {
        font-size: 0.9rem;
        line-height: 1.5;
        transform: translateY(-1px);
        -webkit-transform: translateY(-1px);
        -moz-transform: translateY(-1px);
        -ms-transform: translateY(-1px);
        -o-transform: translateY(-1px);
    }

    .icon-crown {
        width: 22px;
        height: 22px;
    }

    .top-1-title-text-name {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    .top-1-card .top-1-label {
        font-size: 13px;
    }

    .truyen-menu-toggle {
        font-size: 16px;
    }

    .truyen-menu-toggle svg {
        min-width: 20px;
        max-width: 30px;
    }

    .dp-dieu-huong span {
        display: none;
    }

    .truyen-options-wrap {
        left: calc(100% - 40px);
    }

    .min-vh-100 {
        min-height: 50vh !important;
    }
}