.reading .reading-control .chapter-nav.scroll-to-fixed-fixed.scroll-up {
    visibility: visible !important;
    top: unset !important;
    bottom: 0px !important;
}

reading .reading-control .chapter-nav.scroll-to-fixed-fixed {
    background-color: rgba(255, 255, 255, 0.8);
}

.text-danger {
    color: red !important;
}

.text-success {
    color: #23a903 !important;
}

#comment_email,
.sort-comments {
    display: none;
}

/* Modal Content/Box */

.modal .modal-content {
    background-color: #fefefe;
    margin: 12% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

/* The Close Button */

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.dark .chapter a {
    color: #fff;
}

.dark .modal-content {
    background-color: #423e3e;
}

.h-auto,
.h-auto * {
    height: auto;
}

.h-auto {
    text-align: center;
}

.my-banner {
    text-align: center;
}

.my-banner * {
    max-width: 100%;
}

video {
    max-width: 100%;
}

.banner-ads {
    display: flex;
    flex-direction: column;
}

.banner-desktop.container img,
.banner-desktop-go88.container img,
.banner-desktop-yo88.container img,
.banner-desktop-gem.container img,
.banner-desktop-789.container img {
    width: 100%;
    aspect-ratio: 728 / 90;
}

.banner-desktop.container,
.banner-desktop-go88.container,
.banner-desktop-yo88.container,
.banner-desktop-gem.container,
.banner-desktop-789.container {
    max-width: 1030px
}

.textlink_home ul li a {
    border: solid 1px #f2f2f2;
    padding: 5px;
    white-space: nowrap;
    border-radius: 4px;
    color: #f2f2f2;
}

.textlink_home ul li {
    border-color: #f2f2f2;
    color: #f2f2f2;
}

.dark .textlink_home ul li {
    border-color: #303030;
    color: #303030;
}

.dark .textlink_home ul li a {
    border-color: #303030;
    color: #303030;
}

.textlink_home ul li {
    margin: 0;
    margin-right: 5px;
    line-height: 38px;
    list-style: none;
    display: inline-block;
}

.textlink_home ul {
    margin: 0;
    padding: 0;
}

.footer .link-footer ul li a,
.footer .link-footer ul li a:hover {
    color: #303030;
    border-color: #303030;
}

.footer .link-footer ul li {
    color: #303030;
    border-color: #303030;
}

#divcaptcha {
    width: 35%;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid gainsboro;
    float: left;
    line-height: 30px;
    text-align: center;
    font-family: arial;
    color: #5fa6de;
    ;
    font-weight: bold;
}

.comment-info .regenerateCaptchaBtn {
    float: left;
    width: 32px;
    line-height: 30px;
    margin-top: 5px;
    border-radius: unset;
    background-color: #337ab7;
    border: none;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    line-height: 32px;
    height: 32px;
}

#cpatchaTextBox {
    width: 35%;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 16px;
    margin-left: 5px;
    line-height: 29px;
    border-radius: 5px;
    border: 1px solid gainsboro;
}

.comment-wrapper .comment-info button {
    border-radius: 5px;
    line-height: 18px;
}

.cpatcha-warning {
    border-color: red !important;
}

.join-comment {
    border-top: 2px solid #721799 !important;
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default;
    margin-right: 2px;
    line-height: 1.42857143;
    padding: 10px 15px;
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none !important;
}

.follow-link_a {
    white-space: nowrap;
    color: #d9534f;
    float: right;
}

.follow-url[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.darkBox ul li .point-total {
    font-size: 11px;
    border: 1px solid red;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    border-radius: 3px;
    padding: 1px 4px;
}

.avatar-wrap {
    height: auto !important;
    position: relative;
}

.avatar-wrap .point-total {
    display: block;
    white-space: nowrap;
    font-size: 10px;
    /* font-weight: 700; */
    text-align: center;
    border: 1px solid red;
}

.account-info .info-detail .forminput .avatar {
    width: 80px;
}

.text_link_iwin_club a {
    color: black;
}

.text_link_iwin_club a:hover {
    text-decoration: none;
}

.popup_report {
    display: none;
    position: absolute;
    top: -103px;
    right: 0;
    z-index: 1000;
}

.popup_report #popup_content:after {
    content: '';
    background-color: #000;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: .5;
}

.popup_report .popup_center_important {
    left: 50% !important;
    top: 50% !important;
    position: fixed !important;
    transform: translate(-50%, -50%) !important;
}

.popup_report .popup_content {
    width: 430px;
    padding: 15px 20px;
    left: 50%;
    top: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding-bottom: 25px;
}

.popup_report .popup_content h2 {
    font-size: 20px;
    text-align: center;
    margin: 10px 0 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.popup_report ul {
    list-style: outside none none;
    padding: 0;
}

.popup_report .popup_content ul li {
    margin-bottom: 15px;
    position: relative;
}

.popup_report .popup_content ul li p {
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
}

.popup_report .popup_content ul li select {
    margin: 0;
    border: 1px solid #ccc;
    width: 100%;
    height: 49px;
    border-radius: 5px;
    padding: 0 15px;
    font-size: 15px;
    color: #354052;
    cursor: pointer;
}

.popup_report .popup_content ul li select:focus-visible {
    outline: none;
}

.popup_report .popup_content ul li p span.note {
    color: red;
}

.popup_report .popup_content ul li p span.empty_error {
    color: red;
    display: none;
}

.popup_report .popup_content ul li textarea {
    margin: 0;
    border: 1px solid #ccc;
    width: 100% !important;
    height: 49px;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 15px;
    color: #354052;
}

.popup_report .yes_no .no {
    background-color: #3f94d5;
}

.popup_report .yes_no button {
    padding: 0 10px;
    border: none;
    border-radius: 5px;
    line-height: 35px;
    color: #fff;
    font-size: 13px;
    min-width: 50px;
    cursor: pointer;
    margin-left: 5px;
    background-color: #f18121;
    font-weight: 600;
}

.popup_report .yes_no {
    float: right;
}

.popup_report textarea:focus,
button:focus {
    outline: none;
}

.report_success,
.report_fail {
    text-align: center;
    display: none;
}

.container_btn_ok {
    display: flex;
    justify-content: center;
    display: none;
}

.btn_ok {
    width: 100%;
    color: white;
    background: #5cb85c;
    outline: none;
    border: 0;
}

@media (max-width: 575px) {
    .popup_report .popup_content {
        width: 280px;
    }
}

.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .banner-container {
        flex-direction: column;
    }

    /* Special class for adcash banner only */
    .layout-banner-adcash {
        width: 100%;
        height: auto;
    }
}

.banner-adu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    overflow: hidden;
    border: 1px solid rgb(194, 194, 194, 0.6);
}

.layout-stable-300x250 {
    min-width: 300px;
    min-height: 250px;
}

.layout-stable-300x100 {
    min-width: 300px;
    min-height: 100px;
}

.show-sps {
    margin-top: 25px;
    position: relative;
    height: fit-content;
    width: fit-content;
    margin-inline: auto;
}

a.show-sps {
    display: inline-block;
}

.show-sps::after {
    content: var(--ads-text-sps);
    position: absolute;
    left: 0;
    top: -25px;
    height: 25px;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    align-items: center;
    color: white;
    background-color: #5d5d5d;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Customize Notification Box */

.notify_block.desktop {
    display: block !important;
}

.notify_block.mobile {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .notify_block.desktop {
        display: none !important;
    }

    .notify_block.mobile {
        display: block !important;
    }
}

/* Facebook Customize Frame Box */

.facebook-frame-container {
    overflow: hidden;
    max-width: 100%;
}

.facebook-frame-container iframe {
    max-width: 100%;
}

/* Box auth NetTruyen Web Team */

.author-container {
    max-width: 100%;
    background: #394467;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-top: 20px;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: rgb(198, 198, 198);
}

.author-description {
    font-size: 16px;
    color: rgb(198, 198, 198);
    margin: 10px 0;
    text-align: justify;
}

.author-links a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: while;
}

.author-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width:768px) {
    .author-avatar {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 16px;
    }

    .author-links img {
        width: 40px !important;
        height: 40px !important;
    }

    p.author-description {
        font-size: 14px;
    }
}

#back-to-top {
    z-index: 100001;
}

/* Bottom text toggle */

#ctl00_bottomText.bottom-text-collapsed {
    max-height: 360px;
    overflow: hidden;
    position: relative;
}

#ctl00_bottomText.bottom-text-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(180deg, rgba(233, 233, 233, 0), rgba(233, 233, 233, 1));
    pointer-events: none;
}

.bottom-text-toggle-container {
    text-align: center;
    margin: 1rem 0;
}

.bottom-text-toggle {
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: #0457d6;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
}

.bottom-text-toggle:hover {
    text-decoration: underline;
}

.bottom-text-toggle:focus-visible {
    outline: 2px solid #0457d6;
    outline-offset: 2px;
}

/* Home Content Section */
.Module-HomeContent {
    margin-top: 30px;
    margin-bottom: 20px;
}

.home-content-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.home-content-wrapper h1,
.home-content-wrapper h2,
.home-content-wrapper h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.home-content-wrapper h1 {
    font-size: 28px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.home-content-wrapper h2 {
    font-size: 24px;
}

.home-content-wrapper h3 {
    font-size: 20px;
}

.home-content-wrapper p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.home-content-wrapper ul,
.home-content-wrapper ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.home-content-wrapper li {
    margin-bottom: 8px;
    color: #555;
}

.home-content-wrapper a {
    color: #e74c3c;
    text-decoration: none;
}

.home-content-wrapper a:hover {
    text-decoration: underline;
}

.home-content-wrapper strong {
    font-weight: 600;
    color: #2c3e50;
}

.home-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.home-content-wrapper blockquote {
    border-left: 4px solid #e74c3c;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

@media (max-width: 768px) {
    .home-content-wrapper {
        padding: 15px;
    }

    .home-content-wrapper h1 {
        font-size: 24px;
    }

    .home-content-wrapper h2 {
        font-size: 20px;
    }

    .home-content-wrapper h3 {
        font-size: 18px;
    }
}

/* ==========================================
   UNG TY COMICS - MISSING TEMPLATE STYLES
   ========================================== */

/* Breadcrumbs Override - remove hidden */
.breadcrumbs-group-container.hidden {
    display: block !important;
}

.breadcrumbs_top_page {
    padding: 10px 0;
}

.breadcrumbs-item .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs-item .breadcrumb .breadcrumb-item {
    font-size: 13px;
    color: #999;
}

.breadcrumbs-item .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    padding: 0 6px;
    color: #999;
}

.breadcrumbs-item .breadcrumb .breadcrumb-item a {
    color: #333;
    text-decoration: none;
}

.breadcrumbs-item .breadcrumb .breadcrumb-item a:hover {
    color: #3f51b5;
}

.breadcrumbs-item .breadcrumb .breadcrumb-item.active span {
    color: #999;
}

/* Mega Menu (Genre Dropdown) */
.main-menu .menu-item.has_level1 {
    position: relative;
}

.main-menu .menu-item.has_level1>.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 600px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
}

.main-menu .menu-item.has_level1:hover>.dropdown-menu {
    display: block;
}

.main-menu .menu-item.has_level1>.dropdown-menu>li {
    list-style: none;
}

.main-menu .menu-item.has_level1>.dropdown-menu>li>.clearfix {
    display: flex;
    flex-wrap: wrap;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 {
    width: 25%;
    float: left;
    padding: 0 10px;
    box-sizing: border-box;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 .nav li {
    margin-bottom: 5px;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 .nav li a {
    display: block;
    padding: 4px 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 .nav li a:hover {
    background: #f0f3ff;
    color: #3f51b5;
}

.main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 .nav li a strong {
    font-weight: 700;
    color: #222;
}

/* Main Menu Items */
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-menu .menu-item {
    position: relative;
}

.main-menu .menu-item>a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-menu .menu-item>a:hover,
.main-menu .menu-item.featured>a {
    color: #3f51b5;
}

/* Sidebar - Top Comics Tabs */
.section-hot-comics {
    margin-top: 30px;
}

.sidebar-top-comics .nav-tabs,
.section-hot-comics .nav-tabs {
    border-bottom: 2px solid #3f51b5;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-top-comics .nav-tabs .nav-item,
.section-hot-comics .nav-tabs .nav-item {
    flex: 1;
}

.sidebar-top-comics .nav-tabs .nav-link,
.section-hot-comics .nav-tabs .nav-link {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar-top-comics .nav-tabs .nav-link.active,
.section-hot-comics .nav-tabs .nav-link.active {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

.sidebar-top-comics .nav-tabs .nav-link:hover,
.section-hot-comics .nav-tabs .nav-link:hover {
    background: #e8eaf6;
}

.sidebar-top-comics .nav-tabs .nav-link.active:hover,
.section-hot-comics .nav-tabs .nav-link.active:hover {
    background: #3f51b5;
}

/* Top Comics List Items */
.top-comics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-comics-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.top-comics-list li:hover {
    background: #f8f9ff;
}

.top-comics-list li .rank {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    background: #e0e0e0;
    color: #555;
}

.top-comics-list li:nth-child(1) .rank {
    background: #FFD700;
    color: #fff;
}

.top-comics-list li:nth-child(2) .rank {
    background: #C0C0C0;
    color: #fff;
}

.top-comics-list li:nth-child(3) .rank {
    background: #CD7F32;
    color: #fff;
}

.top-comics-list li .top-info {
    flex: 1;
    min-width: 0;
}

.top-comics-list li .top-info a {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-comics-list li .top-info a:hover {
    color: #3f51b5;
}

.top-comics-list li .top-info .top-chapter {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.top-comics-list li .top-views {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
}

/* Homepage Comic Card - content-image & content-title */
.item-comics .content-image {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.item-comics .content-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.item-comics .content-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.item-comics .content-image:hover img {
    transform: scale(1.05);
}

.item-comics .content-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    max-height: 36px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.item-comics .content-title a {
    color: #333;
    text-decoration: none;
}

.item-comics .content-title a:hover {
    color: #3f51b5;
}

/* Comic List Grid */
.list-comics {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.list-comics .item-comics {
    width: 16.666%;
    padding: 0 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .list-comics .item-comics {
        width: 20%;
    }
}

@media (max-width: 992px) {
    .list-comics .item-comics {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .list-comics .item-comics {
        width: 33.333%;
    }
}

@media (max-width: 480px) {
    .list-comics .item-comics {
        width: 50%;
    }
}

.item-comics .comics-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.item-comics .comics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.item-comics .comics-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: #eee;
}

.item-comics .comics-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.item-comics .comics-card:hover .comics-thumbnail img {
    transform: scale(1.05);
}

.item-comics .comics-thumbnail .badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.item-comics .comics-info {
    padding: 10px;
}

.item-comics .comics-info .comics-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 34px;
    overflow: hidden;
    margin-bottom: 6px;
}

.item-comics .comics-info .comics-title a {
    color: #333;
    text-decoration: none;
}

.item-comics .comics-info .comics-title a:hover {
    color: #3f51b5;
}

.item-comics .comics-chapter-list {
    padding: 0 10px 10px;
}

.item-comics .comics-chapter-list .chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.item-comics .comics-chapter-list .chapter-item a {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-comics .comics-chapter-list .chapter-item a:hover {
    color: #3f51b5;
}

.item-comics .comics-chapter-list .chapter-item .time-ago {
    font-size: 11px;
    color: #aaa;
    margin-left: 8px;
    white-space: nowrap;
}

/* Section Titles */
.title-block {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin: 0;
    padding: 15px 0;
    position: relative;
}

.title-block::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #3f51b5;
    margin-top: 8px;
}

.see-more a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 0;
    display: inline-block;
}

.see-more a:hover {
    text-decoration: underline;
}

/* Comics Detail Page */
.comics-detail-head {
    padding: 20px 0;
}

.comics-detail-head .comics-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.comics-detail-head .comics-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.comics-detail-head .title-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.comics-detail-head .meta_item {
    margin-bottom: 6px;
    font-size: 14px;
}

.comics-detail-head .meta_label {
    font-weight: 600;
    color: #555;
}

.comics-detail-head .meta_info a {
    color: #3f51b5;
    text-decoration: none;
}

.comics-detail-head .meta_info a:hover {
    text-decoration: underline;
}

.comics-detail-head .meta .updated,
.comics-detail-head .meta .viewer {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #888;
}

/* Bookmark/Follow Button */
.bookmark {
    display: inline-block;
    text-align: center;
}

.bookmark .a-bookmark {
    font-size: 28px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.bookmark .a-bookmark.isFollow,
.bookmark .a-bookmark:hover {
    color: #e74c3c;
}

.bookmark .note-bookmark {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Read Buttons */
.btn-comics-read {
    display: inline-block;
    padding: 8px 16px;
    background: #3f51b5;
    color: #fff !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.btn-comics-read:hover {
    background: #303f9f;
}

/* Comics Description */
.comics-description {
    margin-top: 15px;
}

.comics-description .shortened {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

/* Detail Body Tabs */
.comics-detail-body {
    margin-top: 25px;
}

.comics-detail-body .nav-tabs {
    border-bottom: 2px solid #3f51b5;
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.comics-detail-body .nav-tabs .nav-item {
    margin-right: 2px;
}

.comics-detail-body .nav-tabs .nav-link {
    display: block;
    padding: 10px 25px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    text-decoration: none;
}

.comics-detail-body .nav-tabs .nav-link.active {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

/* Chapter List Items */
.list-comics-chapter {
    padding: 15px 0;
}

.item-chapter {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.item-chapter:hover {
    background: #f8f9ff;
}

.item-chapter .item-left {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    background: #f0f3ff;
    color: #3f51b5;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.item-chapter .item-right {
    flex: 1;
    min-width: 0;
}

.item-chapter .episode-title a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.item-chapter .episode-title a:hover {
    color: #3f51b5;
}

.item-chapter .episode-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.item-chapter .episode-date .view {
    margin-left: 12px;
}

/* Sort Chapter */
.sort-chapter {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.filter-chapter {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.filter-chapter .item-filter {
    position: relative;
    display: inline-block;
}

.filter-chapter .item-filter>a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.filter-chapter .list-item-child {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    list-style: none;
    padding: 5px 0;
    margin: 0;
}

.filter-chapter .item-filter:hover .list-item-child {
    display: block;
}

.filter-chapter .list-item-child li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-chapter .list-item-child li a:hover {
    background: #f0f3ff;
    color: #3f51b5;
}

/* Chapter Page */
.comics-title {
    font-size: 16px;
    color: #999;
    margin: 10px 0 5px;
}

.comics-title a {
    color: #999;
    text-decoration: none;
}

.comics-title a:hover {
    color: #3f51b5;
}

.chapter-title {
    font-size: 24px;
    font-weight: 700;
    color: #3f51b5;
    margin: 5px 0 15px;
}

/* Chapter Toolbar */
.chapter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.slt-ls-chap .form-control {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
}

/* Navigation Buttons */
.next-prev-chapter .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-prev-chapter .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.next-prev-chapter .prev_page,
.next-prev-chapter .next_page {
    background: #3f51b5;
    color: #fff !important;
}

.next-prev-chapter .prev_page:hover,
.next-prev-chapter .next_page:hover {
    background: #303f9f;
}

.next-prev-chapter .back {
    background: #607D8B;
    color: #fff !important;
}

.next-prev-chapter .back:hover {
    background: #455A64;
}

.next-prev-chapter .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-nav-btn {
    display: none;
}

/* Chapter Content */


.chapter-content .content-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-break {
    text-align: center;
    margin-bottom: 0;
}

.page-break.no-gaps {
    margin-bottom: 0;
    line-height: 0;
}

.page-break img.chapter-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Chapter Comment Wrapper */
.chapter-comment-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Slider Comic Home */
.slider-comic-home {
    padding: 20px 0;
    background: #f8f9fa;
}

.slider-comic-home .swiper-container {
    overflow: hidden;
}

.slider-comic-home .swiper-wrapper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease;
}

.slider-comic-home .swiper-slide {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.slider-comic-home .slider-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.slider-comic-home .slider-cover {
    width: 200px;
    flex-shrink: 0;
}

.slider-comic-home .slider-cover img {
    width: 100%;
    border-radius: 8px;
}

.slider-comic-home .slider-info .slider-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.slider-comic-home .slider-info .slider-title a {
    color: #333;
    text-decoration: none;
}

.slider-comic-home .slider-info .genres-label {
    font-size: 12px;
    color: #888;
}

/* Rating Stars */
.rating_story {
    margin: 8px 0;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login_for_rate {
    font-size: 12px;
    color: #888;
}

.login_for_rate a {
    color: #3f51b5;
}

/* Pagination */
.pagination-container {
    text-align: center;
    padding: 25px 0;
}

.pagination-container .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.pagination-container .pagination li a,
.pagination-container .pagination li span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-container .pagination li.active a,
.pagination-container .pagination li.active span {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

.pagination-container .pagination li a:hover {
    background: #e8eaf6;
    border-color: #3f51b5;
}

/* Rating visible override */
.structure {
    font-size: 14px;
    color: #888;
    margin: 5px 0;
}

.rating-title {
    display: none;
}

/* Dark mode support */
.dark .item-comics .comics-card {
    background: #2d2d2d;
}

.dark .item-comics .comics-info .comics-title a {
    color: #ddd;
}

.dark .item-chapter {
    border-color: #444;
}

.dark .item-chapter .episode-title a {
    color: #ddd;
}

.dark .title-block {
    color: #ddd;
}

.dark .breadcrumbs-item .breadcrumb .breadcrumb-item a {
    color: #ccc;
}

.dark .comics-detail-head .title-heading {
    color: #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-menu .menu-item.has_level1>.dropdown-menu {
        min-width: 300px;
        left: -100px;
    }

    .main-menu .menu-item.has_level1>.dropdown-menu .col-sm-3 {
        width: 50%;
    }

    .chapter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .next-prev-chapter {
        width: 100%;
    }

    .next-prev-chapter .nav-links {
        justify-content: center;
    }

    .comics-detail-head .title-heading {
        font-size: 20px;
    }

    .slider-comic-home .slider-item {
        flex-direction: column;
    }

    .slider-comic-home .slider-cover {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .main-menu .menu-item.has_level1>.dropdown-menu {
        min-width: calc(100vw - 40px);
        left: -200px;
    }
}

/* ===== Rating Stars Fix ===== */
.ratings_stars {
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 1px !important;
}

.ratings_stars.rating_current,
.ratings_stars.rating_current_half {
    color: #f5a623 !important;
}

.ratings_stars:not(.rating_current):not(.rating_current_half) {
    color: #d2d2d2 !important;
}

.post-total-rating {
    display: flex;
    align-items: center;
    gap: 1px;
}

.post-total-rating .score.total_votes {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.meta-item.rating {
    margin-top: 4px;
}

/* User Dropdown Menu */
.customer-icon {
    position: relative;
}

.customer-icon .dropdown-toggle {
    cursor: pointer;
}

.customer-icon .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    min-width: 220px;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    z-index: 10000;
    list-style: none;
    animation: dropdownFadeIn 0.2s ease;
}

.customer-icon .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.customer-icon .dropdown-menu li {
    list-style: none;
}

.customer-icon .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.customer-icon .dropdown-menu li a:hover {
    background: #f0f3ff;
    color: #3f51b5;
}

.customer-icon .dropdown-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #888;
    transition: color 0.2s;
}

.customer-icon .dropdown-menu li a:hover i {
    color: #3f51b5;
}

.customer-icon .dropdown-menu li:last-child {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 4px;
}

.customer-icon .dropdown-menu li:last-child a {
    color: #e74c3c;
}

.customer-icon .dropdown-menu li:last-child a i {
    color: #e74c3c;
}

.customer-icon .dropdown-menu li:last-child a:hover {
    background: #fdf2f2;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* Dark mode dropdown */
.dark .customer-icon .dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark .customer-icon .dropdown-menu::before {
    background: #2d2d2d;
}

.dark .customer-icon .dropdown-menu li a {
    color: #ddd;
}

.dark .customer-icon .dropdown-menu li a:hover {
    background: #3a3a3a;
    color: #7986cb;
}

.dark .customer-icon .dropdown-menu li a i {
    color: #999;
}

.dark .customer-icon .dropdown-menu li:last-child {
    border-top-color: #444;
}

/* ===== User Account Pages ===== */
.user-page-wrapper {
    padding: 20px 0 40px;
}

.user-page-wrapper .breadcrumb {
    background: transparent;
    padding: 0 0 15px;
    margin: 0;
    font-size: 13px;
}

.user-page-wrapper .breadcrumb a {
    color: #3f51b5;
}

/* User Sidebar */
.user-sidebar-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.user-profile-card {
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
    color: #fff;
}

.user-avatar-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-profile-role {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.user-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.user-nav ul li a:hover {
    background: #f5f6fa;
    color: #3f51b5;
    border-left-color: #3f51b5;
}

.user-nav ul li.active a {
    background: #eef0ff;
    color: #3f51b5;
    border-left-color: #3f51b5;
    font-weight: 600;
}

.user-nav ul li a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* User Content Area */
.user-content-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    min-height: 400px;
}

.user-content-panel .page-heading {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Info Cards */
.user-info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-info-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #3f51b5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info-card .info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.user-info-card .info-row:last-child {
    border-bottom: none;
}

.user-info-card .info-label {
    width: 120px;
    flex-shrink: 0;
    color: #888;
    font-weight: 500;
}

.user-info-card .info-value {
    color: #333;
    font-weight: 500;
}

/* Avatar Section */
.user-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.user-avatar-section .avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* User Tables */
.user-content-panel .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.user-content-panel .table thead th {
    background: #f5f6fa;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border: none;
    position: sticky;
    top: 0;
}

.user-content-panel .table tbody tr {
    transition: background 0.15s;
}

.user-content-panel .table tbody tr:hover {
    background: #f8f9ff;
}

.user-content-panel .table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
}

.user-content-panel .table .image-thumb {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.user-content-panel .table .comic-name {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.user-content-panel .table .comic-name:hover {
    color: #3f51b5;
}

.user-content-panel .table .time {
    color: #999;
    font-size: 12px;
}

.user-content-panel .table .follow-action a {
    cursor: pointer;
    font-size: 12px;
}

/* Empty State */
.user-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #aaa;
}

.user-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

.user-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* Forms in user pages */
.user-content-panel .form-group {
    margin-bottom: 18px;
}

.user-content-panel .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

.user-content-panel .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-content-panel .form-control:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
    outline: none;
}

.user-content-panel .btn-primary {
    background: #3f51b5;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.user-content-panel .btn-primary:hover {
    background: #3949ab;
    transform: translateY(-1px);
}

/* Alert in user pages */
.user-content-panel .alert {
    border-radius: 8px;
    font-size: 13px;
    border: none;
}

.user-content-panel .alert-info {
    background: #e8eaf6;
    color: #3f51b5;
}

/* Pagination in user pages */
.user-content-panel .pagination-container {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 767px) {
    .user-sidebar-panel {
        margin-bottom: 16px;
    }

    .user-profile-card {
        padding: 20px 16px 16px;
    }

    .user-avatar-wrapper {
        width: 70px;
        height: 70px;
    }

    .user-content-panel {
        padding: 16px;
    }

    .user-content-panel .page-heading {
        font-size: 17px;
    }

    .user-info-card .info-row {
        flex-direction: column;
        gap: 2px;
    }

    .user-info-card .info-label {
        width: auto;
        font-size: 12px;
    }
}