h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-family: var(--title-font);
  font-weight: 600;
}
:root {
  --primary-color: #0080ff;
  --background-white: #ffffff;
  --text-dark: #000000;
  --header-bg: #389cff;
  --red: #ff0000;
  --background-gradient: linear-gradient(180deg, #389cff 0%, #107fed 100%);

  --background-dark: #000000;
  --text-light: #ffffff;
  --yellow: #ffc107;

  --primary-dark: #0066cc;
  --primary-light: #66b3ff;
  --secondary-color: #ff9500;
  --background-dark: #0a0e17;
  --background-panel: #141b2d;
  --background-input: #1c2539;
  --text-light: #ffffff;
  --text-muted: #8a94a6;
  --text-dark: #1a1a1a;
  --border-color: #2a3349;
  --success-color: #00c853;
  --warning-color: #ffab00;
  --danger-color: #ff3d71;
  --inactive-color: #616e85;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --glow-color: rgba(0, 128, 255, 0.5);
  --light-gray-color: #e8e9eb5e;
  --dark-mode-dark: #373a40;
  --dark-mode-light: #686d76;

  --background-color: #fff;
  --white-color: #fff;

  --primary-color-rgb: 0, 128, 255;
}

body {
  background-image: var(--background-body);
  background-size: 100% auto;
  background-position: center;
  background-repeat: repeat;
  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;
}
/* header start */
/* Header Styles */
.truyen-header {
  background-image: var(--header-background);
  padding: 0px 0px;
  padding-bottom: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--primary-color);
  border-bottom: none;
  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-search-container {
  position: relative;
  display: inline-block;
}

.truyen-search-input {
  padding: 12px 15px 12px 50px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  width: 100%;
  max-width: 320px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--background-white);
  color: var(--text-dark);
}

.truyen-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--glow-color);
}

.truyen-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.truyen-search-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
}

.truyen-theme-toggle,
.truyen-search-mobile-btn {
  background-color: var(--background-white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0px;
  cursor: pointer;
  color: var(--primary-color);
}

.truyen-logo {
  padding: 15px 0;
  min-width: 120px;
  max-width: 120px;
  /* text-align: center; */
  /* margin: 0 auto; */
  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-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.truyen-login-btn,
.truyen-register-btn {
  display: inline-block;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--background-white);
  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;
}

.truyen-login-btn:hover,
.truyen-register-btn:hover {
  background-color: #0066cc;
  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-menu-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
  display: none;
}
.truyen-menu-toggle svg {
  min-width: 40px;
}

/* Desktop Navigation */
.truyen-desktop-nav {
  background-color: var(--header-bg);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.truyen-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 30px;
}
.ranking-section .nav-item {
  flex: 1;
}
.truyen-nav-item a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

.truyen-nav-item a:hover {
  color: white;
}

.truyen-nav-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s;
}

.truyen-nav-item a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.truyen-mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: white;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.truyen-mobile-nav.active {
  left: 0;
}

.truyen-mobile-nav-header {
  padding: 20px;
  display: flex;
  justify-content: flex-end;
}

.truyen-mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.truyen-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.truyen-mobile-nav-item {
  border-bottom: 1px solid #eee;
}

.truyen-mobile-nav-item a {
  display: block;
  padding: 15px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.truyen-mobile-nav-item a:hover {
  background-color: #f8f9fa;
}
.truyen-header.active .truyen-logo {
  min-width: 100px;
  max-width: 100px;
  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-header.active {
  padding: 0;
  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;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px,
    rgba(17, 17, 26, 0.05) 0px 8px 32px;
}
.truyen-avatar-dropdown .dropdown-toggle::after {
  display: none;
}
.truyen-avatar-dropdown-name {
  font-size: 0.9rem;
  font-family: var(--title-font);
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: capitalize;
  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-avatar-dropdown-rank {
  font-size: 0.8rem;
}
.truyen-login-mobile-btn {
  font-size: 0.9rem;
  color: var(--text-dark);
  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;
  background: var(--primary-color);
  color: var(--background-white);
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.truyen-login-mobile-btn:hover {
  background: var(--text-dark);
  color: var(--background-white);
  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;
}
/* header end */

/* truyện đề cử trang chủ start */
/* Comics Section */
.truyen-comics-section {
  padding: 30px 0;
}

.truyen-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 15px;
  gap: 10px;
}

.truyen-fire-icon {
  width: 30px;
  display: inline-flex;
}
.truyen-fire-icon img {
  width: 100%;
  height: auto;
  transform: translateY(2px);
  -webkit-transform: translateY(2px);
  -moz-transform: translateY(2px);
  -ms-transform: translateY(2px);
  -o-transform: translateY(2px);
}
.truyen-section-title {
  font-family: lato-black;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 1.2077rem + 0.4615vw, 1.6rem);
  color: var(--text-dark);
  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-view-more-btn {
  background: var(--background-gradient);
  color: var(--background-white);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  -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: clamp(0.8rem, 0.7385rem + 0.3077vw, 1rem);
  text-transform: uppercase;
  /* transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px); */
}

.truyen-view-more-btn:hover {
  background: var(--text-dark);
  color: var(--background-white);
  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;
}

/* Comic Cards */
.truyen-comics-section {
  position: relative;
}

.truyen-comic-card {
  overflow: hidden;

  height: 100%;
  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;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.05) 0px 8px 32px;
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
}
.truyen-comics-section-box {
  border: 2px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0px);
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.truyen-comic-image-container {
  position: relative;
  background-color: var(--background-white);
  border-radius: 19px;
  -webkit-border-radius: 19px;
  -moz-border-radius: 19px;
  -ms-border-radius: 19px;
  -o-border-radius: 19px;
  overflow: hidden;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
}

.truyen-comic-image {
}
.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-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(180deg, #ff383c 0%, #ed1013 100%);
  color: var(--background-white);
  padding: 3px 12px;
  font-size: 10px;
  font-weight: bold;
  pointer-events: none;
  z-index: 30;
  border-radius: 0px 25px !important;
}

.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);
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
  pointer-events: none;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px,
    rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

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

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

.truyen-comic-info {
  padding: 5px 10px;
}

.truyen-comic-title {
  font-size: 14px;
  text-align: center;
  margin: 5px 0 5px;
}
.truyen-comic-title span {
  font-weight: var(--title-weight);
  font-family: var(--title-font);
  color: var(--text-dark);
  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;
}
.truyen-comic-title span:hover {
  color: var(--primary-color);
  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;
}
.truyen-comic-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  font-size: 0.6rem;
  color: var(--text-dark);
  font-family: lato-m;
}
.truyen-comics-section .truyen-comic-meta {
  font-size: 0.48rem;
}
/* Swiper Customization */
.truyen-comics-swiper {
  padding-bottom: 40px;
}

.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background: var(--background-white);
  opacity: 1;
  border: 1px solid rgba(151, 151, 151, 1);
}

.swiper-pagination-bullet-active {
  background: var(--background-gradient);
  border: 1px solid rgba(151, 151, 151, 0);
}

/* Overlay for Mobile Menu */
/* .truyen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
  backdrop-filter: blur(10px);
}

.truyen-overlay.active {
  display: block;
} */
.truyen-comic-stat img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  /* margin: 0 auto; */
}
.truyen-comic-card:hover {
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
  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-moi-v1-pagination-box {
  position: relative;
}
/* truyện đề cử trang chủ end */

/* truyện mới cập nhật start */

/* Comics Updated Section */
.truyen-updated-section {
  margin-bottom: 40px;
}

.truyen-comic-card {
  border-radius: 19px;
  overflow: hidden;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  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(--background-white);
  -webkit-border-radius: 19px;
  -moz-border-radius: 19px;
  -ms-border-radius: 19px;
  -o-border-radius: 19px;
}

.truyen-comic-card:hover {
  transform: translateY(-5px);
}

.truyen-comic-image-container {
  position: relative;
}

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

.truyen-comic-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  color: white;
  font-size: 12px;
}

.truyen-fire-icon,
.truyen-heart-icon {
}

.truyen-stat-count {
  font-weight: bold;
}

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

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

.truyen-comic-genre {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 14px;
}

.truyen-genre-label {
  font-weight: bold;
}

.truyen-genre-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.truyen-description-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 5px;
}

.truyen-description-text {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
  max-height: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* truyện mới cập nhật end */

/* bảng xếp hạng start */
.ranking-section {
}
.ranking-section .ranking-title {
  font-weight: var(--title-weight);
  font-family: lato-black;
  /* font-size: clamp(1.4rem, 1.3077rem + 0.4615vw, 1.7rem); */
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ranking-section .ranking-title img {
  margin-right: 10px;
  height: 22px;
  transform: translateY(-3px);
  -webkit-transform: translateY(-3px);
  -moz-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  -o-transform: translateY(-3px);
}
.icon-cay-bxh-title {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.ranking-tabs .nav-link {
  font-weight: var(--title-weight);
  font-family: var(--medium-font);
  font-size: clamp(0.9rem, 0.8692rem + 0.1538vw, 1rem);
  color: #5a5a5a;
  background-color: #f3f9ff;
  border: 1px solid #389cff; /* Màu gradient */
  border-radius: 10px !important; /* Ghi đè bootstrap */
  /* margin-right: 10px;
  margin-bottom: 10px;  */
  padding: 8px 15px;
  width: 100%;
  text-align: center;
}
.ranking-tabs .nav-link.active {
  background: linear-gradient(to right, #389cff, #107fed);
  color: #ffffff;
  border-color: #389cff; /* Màu gradient */
}

.top-1-card {
  background-color: var(--background-white);
  border-radius: 12px;
  box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25);
}
.top-1-card .top-1-img-container {
  position: relative;
  flex-shrink: 0; /* Không co lại */
}
.top-1-card .top-1-img {
  width: 120px; /* Kích thước ảnh TOP 1 */
  height: 180px; /* Kích thước ảnh TOP 1 */
  border-radius: 15px;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}
.top-1-card .top-badge {
  position: absolute;
  top: -15px; /* Điều chỉnh vị trí */
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Kích thước huy hiệu */
}
.top-1-card .king-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 30px; /* Kích thước huy hiệu vua */
}
.top-1-info {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
}
.top-1-card .top-1-info {
  flex-grow: 1; /* Chiếm phần còn lại */
}
.top-1-card .top-1-title {
  color: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.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: #000000;
  margin-right: 8px;
}
.top-1-card .top-1-genre-badge {
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(to right, #389cff, #107fed);
  padding: 3px 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.top-1-card .top-1-stats {
  gap: 16px; /* Khoảng cách giữa các stat */
  font-size: clamp(0.8rem, 0.7385rem + 0.3077vw, 1rem);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  font-family: var(--normal-font);
}
.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: #ffffff;
  border: 1px solid #389cff; /* Màu gradient */
  border-radius: 50%;
  margin-right: 8px;
}
.top-1-card .top-1-stat-label {
  margin-right: 5px;
  font-family: var(--title-font);
}
.top-1-card .top-1-stat-value {
  font-weight: var(--title-weight);
}
.top-1-card a.top-1-stat-value {
  color: var(--text-dark);
  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-card a.top-1-stat-value:hover {
  color: var(--primary-color);
}

.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;
  box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25);
}
.ranking-list-item a {
  background-color: var(--background-white);
  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 a:hover {
  background: #fafafa;
}
.ranking-section .ranking-title {
  border: 1px solid var(--primary-color);
  border-image-slice: 1;
  background: rgba(56, 156, 255, 0.16);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.ranking-list-item:last-of-type a {
  border-bottom: none;
}
/* Màu viền cho top 2, 3 */

.ranking-list-item .rank {
  font-weight: 700;
  font-size: 16px;
  color: #1e1e1e;
  min-width: 50px; /* Đảm bảo độ rộng tối thiểu */
}
.ranking-list-item .title {
  font-weight: var(--title-weight);
  font-family: var(--title-font);
  font-size: clamp(0.9rem, 0.8692rem + 0.1538vw, 1rem);
  color: var(--text-dark);
  /* margin: 0 15px; */
  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: #5a5a5a;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Không co lại */
}
.ranking-list-item .views i {
  color: #ff383c; /* Màu icon lửa */
  margin-right: 5px;
}

/* Translator Ranking */
.translator-card {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0; /* Màu border nhẹ nhàng */
  border-radius: 12px;
  box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25);
  padding: 15px;
  display: flex;
  align-items: center;
  position: relative; /* Cho badge */
  height: 100%;
}
.nav-tabs.ranking-tabs {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.translator-card .translator-avatar-container {
  position: relative;
  /* margin-right: 15px; */
  flex-shrink: 0;
}
.translator-card .translator-avatar {
  width: 60px; /* Kích thước avatar */
  height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #389cff; /* Viền avatar */
}
.translator-card .translator-badge {
  /* Huy hiệu nhỏ */
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
}
.translator-card.top-1 .translator-badge {
  /* Huy hiệu vương miện cho top 1 */
  width: 25px;
  bottom: -5px;
  right: -5px;
}

.translator-card .rank-badge {
  position: relative;
  font-family: lato-b;
  font-size: 12px;
  color: #1e1e1e;
  text-transform: uppercase;
}
.translator-card .rank-badge i {
  /* Icon lửa */
  color: #ff383c;
  margin-right: 3px;
  font-size: 10px;
}
.translator-card .translator-info {
  flex-grow: 1;
}
.translator-card .translator-name {
  font-weight: 700;
  font-size: 14px; /* Kích thước tên */
  color: #000000;
  margin-bottom: 5px;
}
.translator-card .translator-stats {
  display: flex;
  justify-content: space-between; /* Phân bố đều các stats */
  flex-wrap: wrap; /* Cho phép xuống dòng */
  gap: 10px; /* Khoảng cách */
  font-size: 10px; /* Kích thước font stats nhỏ hơn */
  color: #5a5a5a; /* Màu chữ stats */
}
.translator-card .stat-item {
  display: flex;
  flex-direction: column; /* Hiển thị label trên value */
  align-items: center; /* Canh giữa */
  text-align: center;
}
.translator-card .stat-icon {
  font-size: 14px;
  margin-bottom: 2px;
  color: #389cff; /* Màu icon */
}
.translator-card.top-1 .stat-icon {
  /* Màu icon đặc biệt cho top 1 */
  color: #e1bf00;
}
.translator-card .stat-value {
  font-weight: 600;
  font-size: 12px;
  color: #1e1e1e;
  letter-spacing: 0.03em;
}
.translator-card .stat-label {
  font-weight: 500;
  font-size: 8px;
  letter-spacing: -0.02em;
  text-transform: uppercase; /* Viết hoa */
}
/* Viền đặc biệt cho top 1, 2, 3 translator */
.translator-card.top-1 {
  border-color: #e1bf00; /* Vàng */
  border-width: 2px;
}
.translator-card.top-2 {
  border-color: var(--primary-color); /* Bạc */
  border-width: 1.5px;
}
.translator-card.top-3 {
  border-color: #cd7f32; /* Đồng */
  border-width: 1.5px;
}
.icon-crown {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.top-1-title-text-name {
  font-weight: var(--title-weight);
  font-family: var(--title-font);
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* font-size: clamp(0.8rem, 0.7385rem + 0.3077vw, 1rem); */
  font-size: 1.2rem;
  line-height: 1.5;
  text-transform: capitalize;
}
.top-1-img-box {
  --bs-aspect-ratio: 150%;
  border-radius: 15px;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  overflow: hidden;
  max-width: 175px;
  margin-left: auto;
}
.top-1-img-box img,
.top-1-img-box a {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icon-bxh-top-1 {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain !important;
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
}
.top-1-number {
  font-family: lato-black;
  /* font-size: clamp(0.8rem, 0.7692rem + 0.1538vw, 0.9rem); */
  font-size: 1.3rem;
  color: var(--header-bg);
  white-space: nowrap;
}
.icon-bxh-top {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin: 0px 7px;
}
.icon-fire {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 3px;
}
.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);
}
.translator-card-container {
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25);
  background: var(--background-white);
}
.image-demo-container {
  background-color: var(--background-white);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25);
}
.image-demo-container img {
  width: 100%;
  pointer-events: none;
  user-select: none;
}
/* bảng xếp hạng end     */

/* truyện mới cập nhật start */
.story-card {
  background-color: #ffffff;
  padding: 9px;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* box-shadow: 0px 0px 5.7px 0px rgba(0, 0, 0, 0.25); */
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
    rgba(0, 0, 0, 0.35) 0px 0.125em 0.7em,
    rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.story-card .card-img-top {
  border-radius: 10px;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
  aspect-ratio: 2 / 3; /* Tỷ lệ khung hình phổ biến cho bìa truyện */
  object-fit: cover; /* Đảm bảo ảnh bìa vừa vặn */
  position: relative; /* Cho phép định vị badge */
  margin-bottom: 15px;
}
.story-card .badge-full {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(to right, #ff383c, #ed1013);
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 1px 20px 1px 20px;
}
.story-card .card-title {
  font-size: 16px;
  /*Kíchthướcfonttiêuđềtruyện*/
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: lato-b;
  display: -webkit-box;
  -webkit-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 .card-title:hover {
  color: var(--primary-color);
  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; /* Sử dụng flexbox */
  align-items: center; /* Căn giữa các item theo chiều dọc */
  flex-wrap: wrap;
  gap: 5px;
}
.story-card .section-label {
  font-size: 12px; /* Kích thước font label */
  color: #000000;
  margin-right: 5px;
  white-space: nowrap; /* Không xuống dòng */
  font-family: lato-b;
}
.story-card .status-label {
  font-weight: 700;
  font-size: 12px; /* Kích thước font label */
  color: #000000;
  margin-left: 5px; /* Khoảng cách với dấu chấm */
  margin-right: 5px;
}
.story-card .genre-badge {
  font-weight: 500;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(to right, #389cff, #107fed);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 5px;
  font-weight: var(--title-weight);
  font-family: var(--normal-font);
}
.story-card .status-badge {
  font-size: 12px;
  color: var(--background-white); /* Màu chữ cho trạng thái */
  background: linear-gradient(
    to right,
    #389cff,
    #107fed
  ); /* Có thể đổi màu khác */
  padding: 2px 8px;
  border-radius: 3px;
}
.story-card .dot-separator {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border: 1px solid #389cff; /* Màu gradient */
  border-radius: 50%;
  margin-right: 5px;
}
.story-card .card-text {
  font-size: 13px; /* Kích thước font mô tả */
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--normal-font);
}

.story-card .stats {
  background-color: rgba(255, 255, 255, 0.53);
  border-radius: 10px;
  padding: 5px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto; /* Đẩy xuống dưới cùng */
  font-size: 12px; /* Kích thước font cho stats */
  color: #1e1e1e; /* Màu chữ cho stats */
}
.story-card .stats i {
  margin-right: 3px;
  font-size: 14px; /* Kích thước icon */
  color: #ff383c; /* Màu icon */
}
.story-card .stats .stat-item {
  display: flex;
  align-items: center;
}
.story-card-new-item {
  overflow: hidden;
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
  /* box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35); */
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
    rgba(0, 0, 0, 0.35) 0px 0.125em 0.7em,
    rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
.story-card .truyen-comic-stats {
  padding: 0 10px;
}
.story-card .truyen-comic-stat-icon {
  width: 15px;
  height: 15px;
}
.story-card .truyen-comic-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-card .truyen-stat-count {
  font-size: 0.6rem;
}
/* truyện mới cập nhật end */

/* truyện hoàn thành start */
.pagination-page .pagination-sm .active a {
  background: var(--background-white);
  color: var(--text-dark);
}
.pagination-page .pagination-sm .active .page-link {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--background-white) !important;
}
body.dark-mode .pagination-page .pagination-sm .active .page-link {
  background: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
  color: var(--text-light) !important;
}
/* truyện hoàn thành end */

/* footer start */
.nh-footer-ads-img {
  width: 100% !important;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}
.theo-doi-footer-box {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
}
.nh-footer-ads-btn {
  background: var(--background-gradient);
  color: var(--background-white);
  font-size: clamp(1rem, 0.9385rem + 0.3077vw, 1.2rem);
  padding: 5px 10px;
  border-radius: 5px;
  font-family: lato-b;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  min-width: 100px;
  text-align: center;
  text-transform: uppercase;
  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;
}
.nh-footer-ads-btn:hover {
  background: var(--text-dark);
  color: var(--background-white);
}
.nh-footer-ads-box {
  border-radius: 12px;
  overflow: hidden;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.nh-footer-ads-box-wrapper {
  background-color: var(--background-white);
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  -webkit-border-top-left-radius: 12px;
  -webkit-border-top-right-radius: 12px;
  -moz-border-top-left-radius: 12px;
  -moz-border-top-right-radius: 12px;
  -ms-border-top-left-radius: 12px;
  -ms-border-top-right-radius: 12px;
}
.tm-footer-wrapper {
  background-image: var(--background-footer);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}
.tm-footer-wrapper-mini {
  background: #f8fbff;
}
.tm-footer-title {
  font-family: lato-b;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.9385rem + 0.3077vw, 1.2rem);
  color: var(--text-dark);
}
.tm-footer-content {
  font-size: 1rem;
  color: var(--text-dark);
}
.tm-footer-content-ul a {
  color: var(--text-dark);
  font-size: 1rem;
}
.tm-footer-content-ul a:hover {
  color: var(--primary-color);
}
.tm-footer-wrapper-container {
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  background: var(--background-white);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
}
.nh-footer-copyright {
  background: #e9f2fb;
  color: var(--text-dark);
}
.tm-footer-wrapper {
  padding-bottom: 30px;
}
/* footer end */

/* trang truyện mới start */
.mdv-san-pham-show-name {
  color: var(--primary-color);
}
.mdv-san-pham-show-thong-tin-truyen-wrapper {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.san-pham-the-loai-item {
  border-color: var(--primary-color);
}
.san-pham-the-loai-item:hover {
  background-color: var(--primary-color);
}
.btn-mdv-button-2 {
  background: var(--background-gradient);
  color: var(--background-white);
}
.btn-mdv-button-2:hover {
  background: var(--text-dark);
}
.tac-gia-ten {
  color: var(--header-bg);
}
.tac-gia-ten:hover {
  color: var(--primary-color);
}
.mdv-sps-gioi-thieu-truyen-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.btn-xs {
  color: var(--primary-color);
}
.btn-xs:hover {
  color: var(--text-dark);
}
.btn-xs:hover {
  color: var(--text-dark);
}
.mvd-san-pham-show-danh-sach-chuong {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.bee-gioi-thieu-truyen-title {
  font-size: 1.5rem;
  font-family: lato-black;
  text-transform: uppercase;
  color: var(--text-dark);
}
.mdv-san-pham-detail {
  background: transparent;
}
.mdv-doc-truyen-breadcrumb {
  background: var(--background-gradient);
  color: var(--background-white);
}
.mdv-doc-truyen-breadcrumb .breadcrumb-item a {
  color: var(--background-white);
}
.mdv-chuong-button {
  background: var(--background-gradient);
  color: var(--background-white);
}
.msv-chuong-list-container {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.truyen-de-cu-title {
  text-transform: uppercase;
  font-family: lato-black;
  font-size: 1.5rem;
  color: var(--text-dark);
  border-color: var(--primary-color);
}
.truyen-de-cu-title:hover {
  color: var(--primary-color);
}
.truyen-de-cu-title-link {
  color: var(--text-dark);
  font-family: var(--normal-font);
  font-weight: var(--title-weight);
}
.truyen-tacgia,
.truyen-luotxem i,
.mdv-product-title-text {
  color: var(--primary-color);
}
.mdv-product-page,
.mdv-tim-the-loai-section {
  background: transparent;
}
.mdv-the-loai-container .form-check-label {
  border-color: var(--primary-color);
}
.mdv-the-loai-container .form-check-input:checked + .form-check-label {
  background: var(--primary-color);
}
.btn-xem-dang {
  color: var(--text-dark);
}
.btn-xem-dang.active,
.bxh-tuan-theloai .form-control,
.msv-product-page-text-special {
  color: var(--primary-color);
}
.form-control,
.form-select {
  border: 1px solid #e0e0e0;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
  border-color: #333;
}
.bxh-tuan-theloai {
  border-color: var(--primary-color);
}
.btn-xem-dang:hover {
  color: var(--header-bg);
}
.fw-bold {
  font-weight: var(--title-weight);
  font-family: var(--title-font);
}
.lt-page-section .container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.category-section {
  background: var(--background-white);
}
.category-section .category-title {
  color: var(--text-dark);
}
.category-box {
  border-color: var(--primary-color);
}
.category-box:hover {
  background-color: var(--primary-color);
}
.category-box:hover .category-name {
  color: var(--background-white);
}
.btn-show-more {
  background: var(--background-gradient);
}
.category-list.with-gradient::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--background-white)
  );
}
/* trang truyện mới end */

/* trang admin dashboard start */
.mdv-profile-content-information,
.mdv-profile-content-change-info {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}
.icon-affiliate-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* trang admin dashboard end */

/* trang affiliate start */

/* Base Styles */

/* Container */
.hydro-shopee-affiliate-container {
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--background-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  color: var(--background-white);
}

/* Header */
.hydro-shopee-affiliate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #1a2236, #0d1423);
  border-bottom: 1px solid var(--border-color);
}

.hydro-shopee-affiliate-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hydro-shopee-affiliate-subtitle {
  color: var(--text-muted);
  margin: 5px 0 0;
  font-size: 14px;
}

.hydro-shopee-affiliate-main-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hydro-shopee-affiliate-toggle-label {
  font-weight: 500;
  font-size: 16px;
}

/* Switch Toggle */
.hydro-shopee-affiliate-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.hydro-shopee-affiliate-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hydro-shopee-affiliate-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-input);
  transition: 0.4s;
  border-radius: 34px;
}

.hydro-shopee-affiliate-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-light);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .hydro-shopee-affiliate-slider {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--glow-color);
}

input:checked + .hydro-shopee-affiliate-slider:before {
  transform: translateX(30px);
}

.hydro-shopee-affiliate-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hydro-shopee-affiliate-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--success-color);
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

.hydro-shopee-affiliate-status-text {
  font-size: 14px;
  font-weight: 500;
}

/* Content */
.hydro-shopee-affiliate-content {
  padding: 30px;
}

/* Grid Layout */
.hydro-shopee-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* Panels */
.hydro-shopee-affiliate-panel {
  background-color: var(--background-panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hydro-shopee-affiliate-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(
    90deg,
    rgba(26, 34, 54, 0.8),
    rgba(13, 20, 35, 0.8)
  );
  border-bottom: 1px solid var(--border-color);
}

.hydro-shopee-affiliate-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.hydro-shopee-affiliate-icon {
  color: var(--primary-color);
}

.hydro-shopee-affiliate-panel-actions {
  display: flex;
  gap: 10px;
}

.hydro-shopee-affiliate-help-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--background-input);
}

.hydro-shopee-affiliate-help-btn:hover {
  color: var(--text-light);
  background-color: var(--border-color);
}

.hydro-shopee-affiliate-panel-body {
  padding: 20px;
}

/* Form Elements */
.hydro-shopee-affiliate-form-group {
  margin-bottom: 20px;
}

.hydro-shopee-affiliate-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.hydro-shopee-affiliate-input-group {
  display: flex;
  align-items: center;
  background-color: var(--background-input);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glow-color);
}

.hydro-shopee-affiliate-input {
  flex: 1;
  background-color: transparent;
  border: none;
  padding: 12px 15px;
  color: var(--text-light);
  font-size: 14px;
  outline: none;
}

.hydro-shopee-affiliate-input-text {
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 14px;
}

.hydro-shopee-affiliate-input-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0 15px;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hydro-shopee-affiliate-input-btn:hover {
  color: var(--primary-color);
}

.hydro-shopee-affiliate-help-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Radio Buttons */
.hydro-shopee-affiliate-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hydro-shopee-affiliate-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
}

.hydro-shopee-affiliate-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.hydro-shopee-affiliate-radio-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--background-input);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transition: all 0.3s;
}

.hydro-shopee-affiliate-radio
  input:checked
  + .hydro-shopee-affiliate-radio-mark {
  border-color: var(--primary-color);
  background-color: var(--background-input);
}

.hydro-shopee-affiliate-radio
  input:checked
  + .hydro-shopee-affiliate-radio-mark:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 5px var(--glow-color);
}

/* Toggle Container */
.hydro-shopee-affiliate-toggle-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hydro-shopee-affiliate-toggle-text {
  font-size: 14px;
}

/* Link Type Sections */
.hydro-shopee-affiliate-link-type {
  margin-bottom: 20px;
}

/* Table Styles */
.hydro-shopee-affiliate-table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.hydro-shopee-affiliate-search {
  position: relative;
  width: 300px;
}

.hydro-shopee-affiliate-search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  background-color: var(--background-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glow-color);
}

.hydro-shopee-affiliate-search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.hydro-shopee-affiliate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.hydro-shopee-affiliate-btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.hydro-shopee-affiliate-btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 0 15px var(--glow-color);
}

.hydro-shopee-affiliate-btn-secondary {
  background-color: var(--background-input);
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.hydro-shopee-affiliate-btn-secondary:hover {
  background-color: var(--border-color);
}

.hydro-shopee-affiliate-table-container {
  overflow-x: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.hydro-shopee-affiliate-table {
  width: 100%;
  border-collapse: collapse;
}

.hydro-shopee-affiliate-table th,
.hydro-shopee-affiliate-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.hydro-shopee-affiliate-table th {
  background-color: rgba(26, 34, 54, 0.5);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.hydro-shopee-affiliate-table tr:last-child td {
  border-bottom: none;
}

.hydro-shopee-affiliate-table tr:hover {
  background-color: rgba(26, 34, 54, 0.3);
}

.hydro-shopee-affiliate-table-input {
  width: 100%;
}

.hydro-shopee-affiliate-table-input input {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--background-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-table-input input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glow-color);
}

.hydro-shopee-affiliate-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.hydro-shopee-affiliate-badge-success {
  background-color: rgba(0, 200, 83, 0.2);
  color: var(--success-color);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.hydro-shopee-affiliate-badge-inactive {
  background-color: rgba(97, 110, 133, 0.2);
  color: var(--inactive-color);
  border: 1px solid rgba(97, 110, 133, 0.3);
}

.hydro-shopee-affiliate-table-actions {
  display: flex;
  gap: 10px;
}

.hydro-shopee-affiliate-table-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--background-input);
}

.hydro-shopee-affiliate-table-btn:hover {
  color: var(--primary-color);
  background-color: var(--border-color);
}

/* Pagination */
.hydro-shopee-affiliate-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.hydro-shopee-affiliate-pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.hydro-shopee-affiliate-pagination-btn:hover:not(:disabled) {
  background-color: var(--border-color);
}

.hydro-shopee-affiliate-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hydro-shopee-affiliate-pagination-active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--glow-color);
}

/* Select Styles */
.hydro-shopee-affiliate-select-container {
  position: relative;
}

.hydro-shopee-affiliate-select {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--background-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glow-color);
}

.hydro-shopee-affiliate-select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Textarea */
.hydro-shopee-affiliate-textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--background-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  min-height: 100px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hydro-shopee-affiliate-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--glow-color);
}

/* Display Options */
.hydro-shopee-affiliate-display-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.hydro-shopee-affiliate-display-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.hydro-shopee-affiliate-display-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.hydro-shopee-affiliate-display-preview {
  width: 100%;
  height: 100px;
  background-color: var(--background-input);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hydro-shopee-affiliate-display-option
  input:checked
  + .hydro-shopee-affiliate-display-preview {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--glow-color);
}

.hydro-shopee-affiliate-preview-modal {
  width: 60%;
  height: 60%;
  background-color: var(--primary-color);
  border-radius: 6px;
  opacity: 0.7;
}

.hydro-shopee-affiliate-preview-banner {
  width: 100%;
  height: 30%;
  background-color: var(--primary-color);
  opacity: 0.7;
}

.hydro-shopee-affiliate-preview-sidebar {
  width: 30%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.7;
}

/* Analytics */
.hydro-shopee-affiliate-analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.hydro-shopee-affiliate-analytics-card {
  background-color: var(--background-input);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.hydro-shopee-affiliate-analytics-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 128, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.hydro-shopee-affiliate-analytics-data {
  display: flex;
  flex-direction: column;
}

.hydro-shopee-affiliate-analytics-value {
  font-size: 24px;
  font-weight: 700;
}

.hydro-shopee-affiliate-analytics-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hydro-shopee-affiliate-analytics-trend {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success-color);
}

.hydro-shopee-affiliate-trend-negative {
  color: var(--danger-color);
}

.hydro-shopee-affiliate-chart-container {
  background-color: var(--background-input);
  border-radius: 10px;
  padding: 20px;
}

.hydro-shopee-affiliate-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hydro-shopee-affiliate-chart-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.hydro-shopee-affiliate-chart-period {
  display: flex;
  gap: 5px;
}

.hydro-shopee-affiliate-period-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.hydro-shopee-affiliate-period-btn:hover {
  background-color: var(--border-color);
  color: var(--text-light);
}

.hydro-shopee-affiliate-period-active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.hydro-shopee-affiliate-chart {
  height: 200px;
  position: relative;
}

.hydro-shopee-affiliate-chart-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
}

.hydro-shopee-affiliate-chart-bars {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px;
}

.hydro-shopee-affiliate-chart-bar {
  width: 30px;
  background: linear-gradient(
    to top,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 4px 4px 0 0;
  position: relative;
}

.hydro-shopee-affiliate-chart-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px 4px 0 0;
}

/* Save Actions */
.hydro-shopee-affiliate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 10px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hydro-shopee-affiliate-grid {
    grid-template-columns: 1fr;
  }

  .hydro-shopee-affiliate-analytics-summary {
    grid-template-columns: 1fr;
  }

  .hydro-shopee-affiliate-display-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hydro-shopee-affiliate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hydro-shopee-affiliate-main-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .hydro-shopee-affiliate-search {
    width: 100%;
  }

  .hydro-shopee-affiliate-table-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hydro-shopee-affiliate-actions {
    flex-direction: column;
  }

  .hydro-shopee-affiliate-btn {
    width: 100%;
    justify-content: center;
  }
}

/* trang affiliate end */
.mdv-san-pham-detail-chuong-title {
  padding-top: 30px;
}

/* result search mobile form start */
.mdv-header-find-form-mobile {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 5%;
  width: 90%;
  z-index: 1000;
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  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;
  transform: translateY(-10px) scale(0.9);
  -webkit-transform: translateY(-10px) scale(0.9);
  -moz-transform: translateY(-10px) scale(0.9);
  -ms-transform: translateY(-10px) scale(0.9);
  -o-transform: translateY(-10px) scale(0.9);
}
.mdv-header-find-form-mobile.active {
  /*display: block;
  */
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  -webkit-transform: translateY(0) scale(1);
  -moz-transform: translateY(0) scale(1);
  -ms-transform: translateY(0) scale(1);
  -o-transform: translateY(0) scale(1);
  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;
}
.mdv-header-find-form-mobile ul {
  padding: 0;
}
.mdv-header-find-form-mobile ul li {
  padding: 0;
}
.mdv-header-find-form-mobile .text-search-mobile {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}
.truyen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.35);
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -ms-backdrop-filter: blur(10px);
  -o-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  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;
  pointer-events: none;
}
.truyen-overlay.active {
  opacity: 1;
  visibility: visible;
  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;
  pointer-events: auto;
}

/* result search mobile form end */
/* dark mode css start */

.btn-dark-mode-toggle i {
  transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  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;
}
body.dark-mode .btn-dark-mode-toggle i {
  transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  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;
}
body.dark-mode header {
  background: var(--dark-mode-dark);
  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;
  border-color: rgba(255, 255, 255, 0);
}
body.dark-mode header .truyen-logo img {
  filter: invert(1);
  -webkit-filter: invert(1);
  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;
}
body.dark-mode .truyen-search-input {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-search-input::placeholder {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-theme-toggle,
body.dark-mode .truyen-search-mobile-btn {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode .truyen-theme-toggle:hover,
body.dark-mode .truyen-search-mobile-btn:hover {
  background: var(--primary-color);
}
body.dark-mode .truyen-login-btn,
body.dark-mode .truyen-register-btn {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode .truyen-search-btn svg,
body.dark-mode .truyen-menu-toggle {
  fill: var(--text-light);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-mobile-nav {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-mobile-nav-item a {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-mobile-nav-item a:hover {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .truyen-mobile-close svg {
  fill: var(--text-light);
  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;
}
body.dark-mode .mdv-header-find-form {
  background: var(--dark-mode-dark);
  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;
}
body.dark-mode .mdv-header-find-form-name {
  color: var(--text-light);
  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;
}
body.dark-mode .mdv-header-find-form-author {
  color: rgba(255, 255, 255, 0.8);
  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;
}
body.dark-mode .mdv-header-find-form-btn {
  background: var(--dark-mode-light);
  color: var(--text-light);
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
}
body.dark-mode .mdv-header-find-form-li:hover {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .mdv-header-find-form-li:hover .mdv-header-find-form-author i,
body.dark-mode
  .mdv-header-find-form-li:hover
  .mdv-header-find-form-author
  span {
  color: var(--text-light) !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;
}
body.dark-mode {
  background: var(--dark-mode-light);
  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;
}
body.dark-mode .truyen-comics-section-box {
  background: var(--dark-mode-dark);
  border-color: var(--text-dark);
  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;
}
body.dark-mode .truyen-comics-section-box .truyen-section-title {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-comic-info {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-comic-title span {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-comics-section .truyen-comic-meta {
  color: var(--text-light);
  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;
}
body.dark-mode .story-card {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .story-card .card-title,
body.dark-mode .story-card .section-label {
  color: var(--text-light);
  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;
}
body.dark-mode .story-card .card-text,
body.dark-mode .truyen-comic-meta {
  color: var(--text-light);
  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;
}
body.dark-mode .story-card .card-text span {
  background: transparent !important;
  color: var(--text-light) !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;
}
body.dark-mode .top-1-card {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .ranking-section .ranking-title {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
  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;
}
body.dark-mode .top-1-title-text-name,
body.dark-mode .top-1-card .top-1-label,
body.dark-mode .top-1-card .top-1-stat-label,
body.dark-mode .top-1-card a.top-1-stat-value,
body.dark-mode .top-1-card .top-1-stat-value {
  color: var(--text-light);
  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;
}
body.dark-mode .ranking-list-item a {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .ranking-list-item .title,
body.dark-mode .ranking-list-item .rank {
  color: var(--text-light);
  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;
}
body.dark-mode .tm-footer-wrapper {
  background: var(--dark-mode-light);
  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;
}
body.dark-mode .tm-footer-wrapper .tm-footer-content {
  color: var(--text-light);
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .tm-footer-wrapper-container {
  background: var(--dark-mode-dark);
  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;
}
body.dark-mode .tm-footer-content-ul a {
  color: var(--text-light);
  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;
}
body.dark-mode .views {
  color: var(--text-light);
  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;
}
body.dark-mode .tm-footer-wrapper-mini {
  background: var(--dark-mode-dark);
  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;
}
body.dark-mode .tm-footer-title {
  color: var(--text-light);
  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;
}
body.dark-mode .ranking-tabs .nav-link {
  color: var(--text-light);
  background: var(--dark-mode-dark);
  border-color: var(--text-dark);
  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;
}
body.dark-mode .ranking-tabs .nav-link.active {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--dark-mode-dark);
  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;
}
body.dark-mode .mdv-san-pham-show-thong-tin-truyen-wrapper {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .san-pham-the-loai-item {
  background: var(--dark-mode-light);
  color: var(--text-light);
  border-color: var(--text-dark);
  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;
}
body.dark-mode .san-pham-the-loai-item a {
  color: var(--text-light);
  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;
}
body.dark-mode .san-pham-the-loai-item:hover {
  background: var(--text-dark);
  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;
}
body.dark-mode .san-pham-the-loai-item:hover a {
  color: var(--text-light);
  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;
}
body.dark-mode .thong-tin-tinh-trang-text.bg-primary {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .btn-mdv-button-2 {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .btn-mdv-button-2:hover {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
}
body.dark-mode .mdv-sps-gioi-thieu-truyen-box {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .bee-gioi-thieu-truyen-title {
  color: var(--primary-color);
  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;
}
body.dark-mode
  .mdv-sps-gioi-thieu-truyen-box
  .mdv-sps-gioi-thieu-truyen-box-title {
  color: var(--text-light);
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
/* tất cả text trong gioi thieu truyện đều chữ trắng */
body.dark-mode .mdv-san-pham-show-gioi-thieu > *,
body.dark-mode .mdv-san-pham-show-gioi-thieu > * span {
  color: var(--text-light) !important;
  background: transparent !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;
}
body.dark-mode .mdv-san-pham-show-gioi-thieu-des > * a,
body.dark-mode .mdv-san-pham-show-dsc-table-chuong a,
body.dark-mode .thoi-gian-xuat-ban-time {
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .mvd-san-pham-show-danh-sach-chuong,
body.dark-mode .comment-login-prompt {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .vh-notification,
body.dark-mode .nh-footer-copyright-box {
  color: var(--text-light) !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;
}
body.dark-mode .msv-product-page-content {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .nh-footer-copyright {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .page-item:first-child .page-link,
body.dark-mode .page-item:last-child .page-link,
body.dark-mode .page-item .page-link,
body.dark-mode .page-item .page-link:hover {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}
body.dark-mode .nh-footer-copyright-box a {
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .category-section {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .category-section .category-title {
  color: var(--text-light) !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;
}
body.dark-mode .btn-show-more {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .category-box {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--dark-mode-dark);
  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;
}
body.dark-mode .category-list.with-gradient::before {
  background: linear-gradient(to bottom, transparent, var(--dark-mode-light));
}
body.dark-mode .category-name {
  color: var(--text-light) !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;
}
body.dark-mode .product-title {
  color: var(--text-light) !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;
}
body.dark-mode .product-category {
  color: #f8f9fa;
  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;
}
body.dark-mode .mdv-doc-truyen-breadcrumb,
body.dark-mode .mdv-chuong-button {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .bg-login-img,
body.dark-mode .mdv-dang-nhap {
  background: var(--dark-mode-light) !important;
}
body.dark-mode .msv-login-container {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--dark-mode-dark) !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;
}
body.dark-mode .mdv-dang-nhap img {
  opacity: 0;
  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;
}
body.dark-mode .checkbox-wrapper-46 .cbx span:last-child {
  color: var(--text-light) !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;
}
body.dark-mode .msv-login-form .msv-login-input {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  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;
}
body.dark-mode .mdv-profile-content-information,
body.dark-mode .mdv-profile-content-change-info {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .mdv-profile-content-change-info-tdyt-box-title-bg,
body.dark-mode .mdv-profile-content-change-info-tdyt-box-title-bg span {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .list-group-item-action,
body.dark-mode .mdv-profile-sidebar-box .list-group-item,
body.dark-mode .mdv-profile-user {
  background: var(--dark-mode-dark);
  color: var(--text-light) !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;
}
body.dark-mode .list-group-item-action:focus,
body.dark-mode .list-group-item-action:hover,
body.dark-mode .mdv-profile-sidebar-box .list-group-item.active,
body.dark-mode .btn-mdv-button-1 {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .body.dark-mode .list-group-item img {
  filter: invert(1);
  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;
  -webkit-filter: invert(1);
}
body.dark-mode .emojionearea .emojionearea-editor,
body.dark-mode .post-story-form .form-control,
body.dark-mode .editor-box .ql-editor,
body.dark-mode .ql-toolbar.ql-snow,
body.dark-mode .form-select,
body.dark-mode .form-select option,
body.dark-mode .story-list-title {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .post-story-form {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .post-story-form .form-group label {
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .post-story-form .form-label,
body.dark-mode .post-story-form h3,
body.dark-mode .ql-snow .ql-picker-label::before,
body.dark-mode .ql-snow .ql-toolbar button,
body.dark-mode .ql-snow .ql-toolbar button:hover,
body.dark-mode
  .manager-story-section-content
  .manager-story-section-content-title,
body.dark-mode .story-list-item-content-top-name {
  color: var(--text-light) !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;
}
body.dark-mode
  .ql-snow
  .ql-picker:not(.ql-color-picker):not(.ql-icon-picker):not(.ql-stroke)
  svg {
  filter: invert(1);
  color: var(--text-dark) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -webkit-filter: invert(1);
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
}
body.dark-mode .ql-snow .ql-stroke {
  stroke: var(--text-light) !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;
}
body.dark-mode .manager-story-section-content,
body.dark-mode .manager-story-section-content > * a,
body.dark-mode .manager-story-section-content > * span {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .story-header {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode .story-list-item-content-top .text-muted {
  color: var(--text-light) !important;
}
body.dark-mode .story-list-item-list {
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}
body.dark-mode .truyen-nav-container {
  background: var(--text-dark);
  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;
}
body.dark-mode .truyen-nav-container .truyen-nav-item a {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-nav-container .truyen-nav-item a:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  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;
}
body.dark-mode .truyen-nav-container .truyen-nav-item.active {
  border-top: 1px solid var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
}
body.dark-mode .truyen-nav-container .truyen-nav-item.active a {
  color: var(--text-light);
  background: var(--dark-mode-dark);
  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;
}
body.dark-mode .truyen-avatar-dropdown-dropdown {
  background: var(--dark-mode-dark);
  color: var(--text-light);
}
body.dark-mode .truyen-avatar-dropdown-dropdown .dropdown-item {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-avatar-dropdown-dropdown .dropdown-item i {
  color: rgba(255, 255, 255, 0.5);
  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;
}
body.dark-mode .truyen-avatar-dropdown-dropdown .dropdown-item:hover {
  color: var(--text-light);
  background: var(--text-dark);
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .truyen-avatar-dropdown-dropdown::before {
  border-bottom-color: var(--dark-mode-dark);
}
body.dark-mode .truyen-view-more-btn,
body.dark-mode .story-card .genre-badge {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-view-more-btn:hover {
  background: var(--text-dark);
  color: var(--text-light);
}
body.dark-mode .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--text-dark) !important;
  border-color: var(--text-light) !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;
}
body.dark-mode .story-card .dot-separator {
  border-color: var(--text-light);
  background: var(--text-dark);
  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;
}
body.dark-mode .top-1-card .top-1-genre-badge {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .nh-footer-ads-btn {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-tacgia,
body.dark-mode .truyen-luotxem i,
body.dark-mode .mdv-product-title-text {
  color: var(--text-light) !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;
}
body.dark-mode .btn-xem-dang {
  color: var(--text-light);
  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;
}
body.dark-mode .btn-xem-dang.active,
body.dark-mode .bxh-tuan-theloai .form-control,
body.dark-mode .msv-product-page-text-special {
  color: var(--text-dark) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .btn-xem-dang.active {
  color: var(--secondary-color) !important;
}
body.dark-mode.tim-the-loai .msv-product-page-text-special,
body.dark-mode.tim-tac-gia .msv-product-page-text-special {
  color: var(--white-color) !important;
}
body.dark-mode .mdv-tu-truyen-section {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .text-pink,
body.dark-mode .mdv-tu-truyen-tabs .nav-link,
body.dark-mode .mdv-tu-truyen-tabs .nav-link.active {
  color: var(--text-light) !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;
}
body.dark-mode .mdv-tu-truyen-tabs .nav-link {
  border-color: var(--text-light);
  color: var(--text-light) !important;
  background: transparent;
  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;
}
body.dark-mode .mdv-tu-truyen-tabs .nav-link.active {
  border-color: var(--text-dark);
  background: var(--text-dark);
  color: var(--text-light) !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;
}
body.dark-mode .mdv-tu-truyen-date-text .text-muted {
  color: var(--text-light) !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;
}
body.dark-mode .chuong-moi-cap-nhat-text {
  background: var(--text-dark);
  color: var(--text-light) !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;
}
body.dark-mode .chuong-dang-doc-text {
  background: var(--dark-mode-light);
  color: var(--text-light) !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;
}
body.dark-mode #danhSachDoc {
  overflow: hidden;
  background: var(--dark-mode-dark);
  color: var(--text-light) !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;
}
body.dark-mode #btnThemDanhSach {
  box-shadow: none !important;
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .mdv-san-pham-detail-khung-tool-box-ul {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .mdv-san-pham-detail-khung-tool-box-ul li a {
  color: var(--text-light) !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;
}
body.dark-mode .mdv-san-pham-detail-khung-tool-box-ul li a:hover {
  color: var(--secondary-color) !important;
  background: var(--text-dark) !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;
}
body.dark-mode .font-size-box {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .font-size-label {
  color: var(--text-light) !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;
}

body.dark-mode .watermarked-content::before {
  color: rgba(0, 0, 0, 0.2);
  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;
}
body.dark-mode .mdv-cai-dat-he-thong-section {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .mdv-cai-dat-page-container {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .mdv-cai-dat-page-title {
  color: var(--text-light) !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;
}
body.dark-mode .mdv-cai-dat-page-title i,
body.dark-mode .mdv-cai-dat-page-title span {
  color: rgba(255, 255, 255, 0.5);
  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;
}
body.dark-mode .mdv-cai-dat-page-card-header {
  background: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  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;
}
body.dark-mode .mdv-cai-dat-page-card-body {
  background: var(--dark-mode-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .btn-font-size:hover,
body.dark-mode .btn-font-size.active,
body.dark-mode .btn-theme:hover,
body.dark-mode .btn-theme.active {
  background: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
  color: var(--text-light) !important;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
}
body.dark-mode .mdv-cai-dat-page-setting-label {
  color: var(--text-light) !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;
}
body.dark-mode .mdv-cai-dat-page-card-header i {
  color: rgba(255, 255, 255, 0.5);
  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;
}
body.dark-mode .form-check-input:checked {
  background-color: var(--text-dark) !important;
  border-color: var(--text-dark) !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;
}
body.dark-mode .text-muted,
body.dark-mode .text-muted a,
body.dark-mode .range-values {
  color: rgba(255, 255, 255, 0.7) !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;
}
body.dark-mode .color-option.active {
  border-color: var(--text-light) !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;
}
body.dark-mode .mdv-cai-dat-page-subtitle {
  color: var(--text-light) !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;
}
body.dark-mode .btn-save {
  box-shadow: none !important;
  overflow: hidden;
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode #fui-toast .fui-toast-box {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode #fui-toast i {
  color: var(--text-light) !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;
}
body.dark-mode .icon-profile-img {
  filter: invert(1);
  -webkit-filter: invert(1);
  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;
}
body.dark-mode .list-group-item:hover {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .mdv-profile-content-change-info-tdyt-content .form-control {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !important;
  box-shadow: none !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;
}
body.dark-mode
  .mdv-profile-content-change-info-tdyt-content
  .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !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;
}
body.dark-mode .the-loai-chinh-check-box {
  border-color: var(--text-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode
  .the-loai-chinh-check-box-input:checked
  ~ .the-loai-chinh-check-box {
  background: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .chapter-list-section,
body.dark-mode .mdv-thanh-vien-section {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .table-danh-sach-tat-ca-thanh-vien thead th {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .mdv-thanh-vien-table-wrapper table td {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode .table-danh-sach-tat-ca-thanh-vien tbody tr:nth-child(even) {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .bg-login-img {
  opacity: 0;
  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;
}
body.dark-mode .msv-login-form .msv-login-login-button {
  background: var(--secondary-color) !important;
  color: var(--text-light) !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;
}
body.dark-mode .truyen-avatar-dropdown-name {
  color: var(--text-light);
  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;
}
body.dark-mode .truyen-login-mobile-btn {
  color: rgba(255, 255, 255, 0.7);
  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;
}
body.dark-mode .truyen-comic-card {
  background: var(--text-dark);
  color: var(--text-light);
  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;
}
body.dark-mode .top-1-card .top-1-stat-dot {
  background: var(--text-dark);
  border-color: var(--text-light);
  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;
}
body.dark-mode .manage-title-text {
  color: var(--text-light);
  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;
}
body.dark-mode .story-info {
  color: var(--text-light);
  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;
}
body.dark-mode .btn-mdv-button-tool {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--text-dark);
  font-weight: var(--title-weight);
  font-family: var(--title-font);
  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;
}
body.dark-mode .btn-mdv-button-tool.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color);
  color: var(--text-light) !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;
}
body.dark-mode .function-buttons-box {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .editor-box-form.ql-container .ql-editor {
  background: var(--text-dark) !important;
  color: var(--text-light);
  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;
}
body.dark-mode .editor-box-form.ql-container .ql-editor > * span {
  color: var(--text-light) !important;
  background: transparent !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;
}
body.dark-mode .mdv-sua-truyen-section-item .form-label {
  color: var(--text-light);
}
body.dark-mode .text-color-main,
body.dark-mode .thong-bao-hoan-thanh-truyen-text.text-danger {
  color: var(--secondary-color) !important;
}
.body.dark-mode .text-danger {
  color: var(--secondary-color) !important;
}
body.dark-mode .chapter-item-list,
body.dark-mode .chapter-item-list.bg-white {
  background: var(--text-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .chapter-item .btn-outline-secondary {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
}
body.dark-mode .story-list-item-tool-box .dropdown-menu {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .comment-management-table .table th {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .them-1-chuong-truyen-accordion .accordion-button,
body.dark-mode .them-nhieu-chuong-truyen-accordion .accordion-button {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .them-1-chuong-truyen-accordion .accordion-body,
body.dark-mode .them-nhieu-chuong-truyen-accordion .accordion-body {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
  font-weight: var(--title-weight);
  font-family: var(--title-font);
}
body.dark-mode .accordion-button::after {
  filter: invert(1);
  -webkit-filter: invert(1);
}
body.dark-mode .mdv-admin-doi-ten-chuong-wrapper {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .exclusive-management-table-wrapper table th {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .exclusive-management-table-wrapper table td,
body.dark-mode .exclusive-management-table-wrapper table th {
  color: var(--text-light) !important;
}
body.dark-mode .tac-gia-name {
  color: var(--secondary-color);
}
body.dark-mode
  .mdv-chuong-button.mdv-chuong-button-truoc.hvr-icon-back.disabled,
body.dark-mode
  .mdv-chuong-button.mdv-chuong-button-sau.hvr-icon-forward.disabled {
  opacity: 0.5;
  pointer-events: none;
}
body.dark-mode .form-thong-bao-duyet-truyen-content {
  background: var(--dark-mode-light);
  color: var(--text-light);
  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;
}
body.dark-mode .form-thong-bao-duyet-truyen-message {
  color: var(--text-light);
}
body.dark-mode .form-thong-bao-duyet-truyen-terms,
body.dark-mode .btn-pink,
body.dark-mode .form-terms,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .form-submit-btn,
body.dark-mode .form-thong-bao-wrapper,
body.dark-mode .mdv-duyet-dk-table thead th {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  box-shadow: none;
}
body.dark-mode .form-terms ul li {
  color: var(--text-light) !important;
}
body.dark-mode .mdv-post-story-section-item.mdv-thong-bao-section {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode #formTroThanhTacGia .form-label {
  color: var(--text-light) !important;
}
body.dark-mode .mdv-tro-thanh-tac-gia-dich-gia-form-wrapper.bg-white,
body.dark-mode .form-thong-bao-wrapper .bg-white {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !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;
}
body.dark-mode .hydrosite-teams .team-card {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !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;
}
body.dark-mode .hydrosite-teams .stats-container,
body.dark-mode .hydrosite-teams .team-name,
body.dark-mode .hydrosite-teams .stat-icon {
  color: var(--text-light) !important;
}
body.dark-mode .hydrosite-teams h2 {
  color: var(--secondary-color) !important;
}
body.dark-mode .truyen-notification-btn {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !important;
  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;
}
body.dark-mode .list-view .product-card {
  background: var(--dark-mode-light) !important;
}
body.dark-mode .list-view .product-card .truyen-comic-title a,
body.dark-mode .team-name-link,
body.dark-mode .stat-value {
  color: var(--text-light) !important;
}
body.dark-mode .list-view .truyen-comic-genres span {
  background: var(--text-dark) !important;
}
body.dark-mode .cover-section-wrapper {
  background: var(--dark-mode-dark);
}
body.dark-mode .profile-name-ten {
  color: var(--text-light);
}
body.dark-mode .action-buttons .btn-primary {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
}
body.dark-mode .action-buttons .btn-outline {
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
}
body.dark-mode.my-wall .main-content,
body.dark-mode.my-wall .sidebar-card {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode.my-wall .section-title,
body.dark-mode.my-wall .story-title a {
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}
body.dark-mode.my-wall .section-title {
  color: var(--text-light) !important;
}
body.dark-mode.my-wall .story-card {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode.my-wall .story-card .story-card-title a {
  color: var(--text-light) !important;
}
body.dark-mode.my-wall .story-card:hover {
  box-shadow: none !important;
}
body.dark-mode .swiper-pagination-bullet {
  background: var(--text-light) !important;
}
body.dark-mode .truyen-notification-item-count {
  background: var(--text-dark) !important;
}
body.dark-mode .translator-card-container {
  background: var(--dark-mode-dark) !important;
  color: var(--text-light) !important;
}
body.dark-mode .hydro-site-bxh-card {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}
body.dark-mode .hydro-site-bxh-stat-value {
  color: var(--text-light) !important;
}
body.dark-mode .hydro-site-bxh-stat-label {
  color: var(--text-light) !important;
  opacity: 0.8;
}
body.dark-mode .mdv-san-pham-show-comment-list-item-comment-like,
body.dark-mode .mdv-san-pham-show-comment-list-item-comment-rep,
body.dark-mode .mdv-san-pham-show-comment-list-item-comment-time {
  color: var(--text-light) !important;
}
/* dark mode css end */
.mdv-san-pham-show-comment-list-item-comment-like,
.mdv-san-pham-show-comment-list-item-comment-rep {
  font-weight: var(--title-weight);
}
.mdv-cai-dat-he-thong-section,
.mdv-thanh-vien-section,
.mdv-thong-bao-section {
  background: var(--background-color);
}
/* bổ sung header nav desktop start */
.mdv-tu-truyen-info {
  gap: 10px !important;
}
.truyen-nav-container {
  background: var(--primary-color);
  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-nav-container .truyen-nav-item {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.truyen-nav-container .truyen-nav-item a {
  font-size: clamp(1rem, 0.694rem + 0.4776vw, 1.1rem);
  font-family: var(--normal-font);
  color: var(--text-light);
  font-weight: var(--title-weight);
  display: inline-flex;
  padding: 10px 15px;
  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-nav-container .truyen-nav-item a::after {
  display: none;
}
.truyen-nav-container .truyen-nav-item a:hover {
  color: var(--text-light);
  background: var(--primary-dark);
  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-nav-container .truyen-nav-list {
  gap: 0;
}
.truyen-nav-container .truyen-nav-item.active a {
  color: var(--text-light);
  background: var(--text-dark);
  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-avatar-dropdown-avatar {
  min-width: 50px;
  min-height: 50px;
  max-width: 50px;
  max-height: 50px;
  cursor: pointer;
}
.truyen-avatar-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.truyen-avatar-dropdown-dropdown {
  background: var(--background-color);

  border-radius: 10px;
  padding: 10px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;

  z-index: 1000;
}
/* arrow top */
.truyen-avatar-dropdown-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 10%;
  transform: translateX(0%);
  border-bottom: 10px solid var(--background-color);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  -webkit-transform: translateX(0%);
  -moz-transform: translateX(0%);
  -ms-transform: translateX(0%);
  -o-transform: translateX(0%);
}

.truyen-avatar-dropdown-dropdown .dropdown-item {
  color: var(--text-dark);
  font-size: 1rem;
  border-radius: 5px;
  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;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}
.truyen-avatar-dropdown-dropdown .dropdown-item i {
  color: var(--primary-dark);
}
.truyen-avatar-dropdown-dropdown .dropdown-item:hover {
  color: var(--text-dark);
  background: #e9ecef;
  transition: all 0.3s 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;
}
/* bổ sung header nav desktop end */

.truyen-comic-stat .truyen-fire-icon {
  width: initial;
}
.truyen-comic-stats {
  justify-content: center;
}
.truyen-fire-icon,
.truyen-heart-icon {
  width: 16px !important;
  height: 16px !important;
  font-size: inherit !important;
}
.truyen-fire-icon img,
.truyen-heart-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;
}
.truyen-comic-stats {
  gap: 15px;
  padding-top: 3px;
}
.truyen-section-header .truyen-fire-icon {
  width: 25px !important;
  height: 25px !important;
}
.truyen-comics-section-de-cu .truyen-section-header .truyen-fire-icon {
  transform: translateY(-4px);
  -webkit-transform: translateY(-4px);
  -moz-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  -o-transform: translateY(-4px);
}
.truyen-section-header .truyen-fire-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.truyen-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(6px);
  -webkit-transform: translateY(6px);
  -moz-transform: translateY(6px);
  -ms-transform: translateY(6px);
  -o-transform: translateY(6px);
}
.truyen-moi-hinh-quang-cao img {
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}
.card-body {
  height: 100%;
  justify-content: space-between;
}
.san-pham-book-item-show::before,
.san-pham-book-item-show::after {
  display: none;
}
.san-pham-book-item-show {
  transform: none;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  overflow: hidden;
}
.mdv-san-pham-show-thong-tin-truyen-wrapper {
  background: transparent;
  border: none;
}
.san-pham-show-content {
  font-family: var(--normal-font);
}
.justify-content-start {
  font-size: initial;
}
.fw-bold {
  font-family: var(--title-font);
  font-weight: var(--title-weight);
}
.mdv-cai-dat-page-card-header {
  font-family: var(--title-font);
}
.mdv-cai-dat-page-setting-item,
.thoi-gian-xuat-ban-time {
  font-family: var(--normal-font);
}
.mdv-cai-dat-page-setting-label,
.btn-save,
.mdv-san-pham-show-dsc-table-chuong a {
  font-size: initial;
  font-family: var(--title-font);
  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;
}
body.dark-mode .mdv-san-pham-show-dsc-table-chuong a:hover {
  color: var(--secondary-color) !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;
}
.mdv-san-pham-show-gioi-thieu-des > * {
  text-align: justify;
}
.mdv-san-pham-show-gioi-thieu-des > * span {
  font-family: var(--normal-font) !important;
  font-weight: initial !important;
  background: transparent !important;
}

.mvd-san-pham-show-danh-sach-chuong {
  background: var(--background-color);
  border: 1px solid #d7d4d4;
}
.btn-xem-them:hover {
  color: var(--secondary-color);
}

.mdv-sps-tac-gia-tinh-trang-box,
.mdv-sps-luot-xem-de-cu-box,
.the-loai-box {
  font-size: clamp(1rem, 0.9692rem + 0.1538vw, 1.1rem);
}
.mdv-san-pham-show-name {
  font-weight: var(--title-weight);
  font-family: var(--title-font);
  font-size: clamp(1.3rem, 1.1769rem + 0.6154vw, 1.7rem);
}
.mdv-sps-gioi-thieu-truyen-box {
  backdrop-filter: none;
  background: var(--background-color);
  padding: 10px;
  padding-top: 20px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
.btn-mdv-button-2 {
  font-size: 0.9rem;
  min-width: 120px;
  text-align: center;
  align-items: center;
  justify-content: center;
  align-content: center;
  line-height: 1.5;
}
.mdv-san-pham-show-thong-tin-truyen-wrapper {
  position: relative;
  z-index: 10;
}
.tac-gia-name,
.manager-story-section-content .nav-tabs .nav-link,
.story-header h5 {
  font-weight: initial !important;
  font-family: var(--title-font);
}
.story-list-item-content-top-name {
  font-family: var(--medium-font);
  font-weight: var(--title-weight);
  line-height: 1.5;
  text-transform: capitalize;
}
.bee-gioi-thieu-truyen-title {
  color: var(--primary-color);
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  line-height: 1.5;
  font-size: clamp(1.7rem, 1.6077rem + 0.4615vw, 2rem);
}
.comment-login-prompt {
  background: transparent;
  box-shadow: none;
  border: none;
}
.btn-pink-login {
  background: var(--primary-color);
  color: var(--text-light);
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  line-height: 1.5;
  font-size: 1.2rem;
}
.btn-pink-login:hover {
  background: var(--secondary-color);
}

.btn-mdv-2 {
  background: var(--primary-color);
  color: var(--text-light);
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  line-height: 1.5;
  font-size: 1rem;
  padding: 10px 20px;
}
.btn-mdv-2:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
}
.mdv-thong-bao-section {
  background: var(--background-color);
}

/* trang team start */
/* Custom CSS scoped under .hydrosite-teams */
.hydrosite-teams {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.hydrosite-teams h1 {
  color: #333;
  font-size: 28px;
  font-weight: 500;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.hydrosite-teams .search-container {
  max-width: 280px;
  margin-bottom: 25px;
  position: relative;
}

.hydrosite-teams .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  z-index: 10;
}

.hydrosite-teams .search-input {
  padding-left: 35px;
  border-radius: 50px;
  border: 1px solid #ddd;
  height: 40px;
  font-size: 14px;
}

.hydrosite-teams .search-input:focus {
  box-shadow: none;
  border-color: #ccc;
}

.hydrosite-teams .team-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
}

.hydrosite-teams .team-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hydrosite-teams .avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

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

.hydrosite-teams .team-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}

.hydrosite-teams .stats-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.hydrosite-teams .stat-item {
  display: flex;
  align-items: center;
}

.hydrosite-teams .stat-icon {
  margin-right: 5px;
  color: #777;
}

.hydrosite-teams .pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.hydrosite-teams .page-link {
  color: #666;
  border: none;
  margin: 0 5px;
  border-radius: 4px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hydrosite-teams .page-item.active .page-link {
  background-color: #f0f0f0;
  color: #333;
  font-weight: 500;
}

.hydrosite-teams .page-link:focus {
  box-shadow: none;
}

.hydrosite-teams .page-item:first-child .page-link,
.hydrosite-teams .page-item:last-child .page-link {
  width: auto;
  padding: 0 15px;
}

.hydrosite-teams .team-grid {
}
.teams-box {
  /* background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px; */
}
.hydrosite-teams h2 {
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  font-size: clamp(1.5rem, 1.4077rem + 0.4615vw, 2rem);
  text-transform: uppercase;
  color: var(--primary-color);
}
/* trang team end */

/* trang thông báo cá nhân start */
.truyen-notification-btn {
  background-color: var(--background-white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0px;
  cursor: pointer;
  color: var(--primary-color);
  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-notification-btn:hover {
  color: var(--primary-color);
}
/* trang thông báo cá nhân end */

.truyen-updated-section .truyen-comic-stats.justify-content-between {
  justify-content: space-evenly !important;
}
#result-truyen-hoan-thanh .truyen-comic-stats.justify-content-between {
  justify-content: space-between !important;
}

.mdv-san-pham-show-gioi-thieu {
  font-size: clamp(1.05rem, 1.0192rem + 0.1538vw, 1.15rem);
}
.msv-khung-truyen-noi-dung,
.msv-khung-truyen-noi-dung *,
.mdv-doc-truyen-breadcrumb .breadcrumb-item a,
.mdv-chuong-button,
.mdv-san-pham-detail-tgian,
.truyen-tacgia-text {
  font-family: var(--normal-font);
}

.truyen-hoan-thanh-section .truyen-comic-stats {
  padding: 2px 25px;
}
.mdv-profile-sidebar-avatar-image {
  --bs-aspect-ratio: 100%;
}

.donate-avatar-top-1 .avatar,
.mdv-header-isLogin-avatar-image .avatar,
.mdv-profile-sidebar-avatar-image .avatar,
.mdv-profile-user-top-avatar .avatar,
.mdv-san-pham-show-comment-form-avatar .avatar,
.mdv-san-pham-show-profile-avatar .avatar,
.mdv-san-pham-show-profile-avatar a,
.profile-avatar .avatar {
  transform: translateY(0%) scale(1);
  -webkit-transform: translateY(0%) scale(1);
  -moz-transform: translateY(0%) scale(1);
  -ms-transform: translateY(0%) scale(1);
  -o-transform: translateY(0%) scale(1);
}
.mdv-san-pham-show-comment-form-item .san-pham-show-comment-form-avatar {
  max-width: 160px;
}
.truyen-avatar-dropdown-avatar-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;

  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  pointer-events: none;
}
.truyen-avatar-dropdown-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.truyen-notification-item-count {
  position: absolute;
  top: -6px;
  right: -7px;
  background: var(--primary-color);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0 5px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
.msv-login-form .msv-login-forgot-password a {
  font-size: 1rem;
}

/* sửa web truyện 2 */
.list-view-item-image-box-wrapper {
  overflow: hidden;
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em,
    rgba(0, 0, 0, 0.35) 0px 0.125em 0.7em,
    rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
.list-view-item-image-box {
  --bs-aspect-ratio: 150%;
  min-height: 100%;
}
.list-view-item-image-box a,
.list-view-item-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-view-item-image {
  min-width: 150px;
}
.list-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 8px;
}
.list-view .product-card {
  align-items: stretch;
}
.list-view-item-info {
  height: 100%;
  padding: 10px;
}
.list-view-item-info .truyen-comic-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
}
.list-view-item-info .truyen-comic-title {
  text-align: left;
}
.list-view-item-info .truyen-comic-meta {
  text-align: left;
  font-size: 1rem;
}

.truyen-comic-genres span {
  font-size: 0.75rem;
  background: var(--background-gradient);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
}
.list-view .product-card {
  border: none !important;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.05) 0px 8px 16px !important;
  border-radius: 18px !important;
  -webkit-border-radius: 18px !important;
  -moz-border-radius: 18px !important;
  -ms-border-radius: 18px !important;
  -o-border-radius: 18px !important;
  overflow: hidden;
}
.list-view {
  padding: 10px;
  gap: 15px;
}
.chuyen-ngu-name-text a {
  color: var(--primary-color);
  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;
}
.chuyen-ngu-name-text a:hover {
  color: var(--primary-dark);
  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;
}
.profile-name-ten .badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  background: var(--text-dark);
  color: var(--text-light);
}
.profile-name-ten {
  display: flex;
  align-items: center;
  gap: 5px;
  /* margin-left: 10%; */
}
.profile-image {
  position: relative;
}
.user-box-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-top: -50px;
}
.so-lieu-thong-ke-box {
  margin-top: 40px;
}
.profile-quote {
  width: 100%;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}
.account-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profile-name-ten .badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  background: var(--text-dark);
  color: var(--text-light);
}

.profile-name-ten {
  justify-content: center;
}
.user-cover-image {
  overflow: hidden;
  max-height: 350px;
}
.user-cover-image a,
.user-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-role.s-mod {
  background: var(--danger-color);
  color: var(--text-light);
}
.member-role.mod {
  background: var(--primary-color);
  color: var(--text-light);
}
.member-role.admin.badge {
  background: #dc3545;
}
.member-role.translator.badge {
  background: #3498db;
}
.member-role.author.badge {
  background: #28a745;
}
.story-title a {
  color: var(--text-dark);
}
.story-title a:hover {
  color: var(--primary-color);
}

/* ranking user start */
/* Ranking Section */
.hydro-site-bxh-section {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
}

/* Header */
.hydro-site-bxh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.hydro-site-bxh-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.hydro-site-bxh-icon {
  color: var(--primary-color);
}

/* Tabs */
.hydro-site-bxh-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hydro-site-bxh-tab {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: var(--tab-inactive-bg);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hydro-site-bxh-tab:hover {
  background-color: rgba(0, 128, 255, 0.1);
}

.hydro-site-bxh-tab.active {
  background-color: var(--tab-active-bg);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 128, 255, 0.3);
}

/* Content */
.hydro-site-bxh-content {
  margin-top: 20px;
}

/* Cards */
.hydro-site-bxh-card {
  width: 100%;
  display: flex;
  background-color: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--primary-color);
  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-dark);
}

.hydro-site-bxh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 128, 255, 0.2);
}

.hydro-site-bxh-card-left {
}

.hydro-site-bxh-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.hydro-site-bxh-card-right {
}

.hydro-site-bxh-comic-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Container */
.hydro-site-bxh-stats-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hydro-site-bxh-stats-container:last-child {
  margin-bottom: 0;
}

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

.hydro-site-bxh-fire-icon,
.hydro-site-bxh-medal-icon,
.hydro-site-bxh-star-icon {
}

/* Stats */
.hydro-site-bxh-stat {
  display: flex;
  width: 100%;
}

.hydro-site-bxh-stat-icon,
.hydro-site-bxh-doc-icon {
  font-size: 16px;
}

.hydro-site-bxh-stat-value {
  color: var(--text-dark);
  font-family: var(--title-font);
  font-weight: var(--title-weight);
}

.hydro-site-bxh-stat-label {
  color: var(--text-dark);
  font-size: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: right;
}
.hydro-site-bxh-card-left {
  overflow: hidden;
}
.hydro-site-bxh-card-left img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hydro-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);
}
.thong-tin-user-ranking {
  max-width: 100%;
}
.rank-icon-box img {
  transform: translateY(-6px);
  -webkit-transform: translateY(-6px);
  -moz-transform: translateY(-6px);
  -ms-transform: translateY(-6px);
  -o-transform: translateY(-6px);
}
.thong-tin-user-ranking {
  font-size: 0.7rem;
}
.icon-extra-bhx {
  position: absolute;
  top: 0;
  left: 0;
}
.hydro-site-bxh-stat-extra {
  padding-left: 20px;
}
.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);
}
.hydro-site-bxh-user-name {
  font-family: var(--title-font);
  font-weight: var(--title-weight);
  font-size: clamp(0.8rem, 0.7692rem + 0.1538vw, 0.9rem);
}

/* ranking user end */

/* sửa web ngày 26/5 */
.mdv-profile-sidebar-avatar-image .avatar,
.mdv-profile-user-top-avatar .avatar {
  scale: 0.9 !important;
}

.my-wall .btn-xem-tat-ca-truyen {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  font-size: 0.8rem;
  font-weight: var(--title-weight);
  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;
}
.my-wall .btn-xem-tat-ca-truyen:hover {
  background: var(--primary-dark);
  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;
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 128, 255, 0.3);
}
.my-wall-section-title-box {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

/* Story Grid Layout Styles */
.story-card-grid {
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 128, 255, 0.15);
}

.story-image-wrapper {
  position: relative;
  overflow: hidden;
}

.story-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-card-grid:hover .story-image-wrapper::before {
  opacity: 1;
}

.story-image-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card-grid:hover .story-image-grid {
  transform: scale(1.05);
}

.story-content-grid {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-title-grid {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-title-grid a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.story-title-grid a:hover {
  color: var(--primary-color);
}

.story-stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.story-stats-grid .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.story-stats-grid .stat-item i {
  font-size: 10px;
  color: var(--primary-color);
  opacity: 0.8;
}

.story-stats-grid .stat-item:hover {
  color: var(--primary-color);
}

.story-stats-grid .stat-item:hover i {
  opacity: 1;
}

/* Dark mode for grid */
body.dark-mode .story-card-grid {
  background: var(--background-panel);
  border: 1px solid var(--border-color);
}

body.dark-mode .story-card-grid:hover {
  box-shadow: 0 8px 25px rgba(0, 128, 255, 0.2);
}

body.dark-mode .story-title-grid a {
  color: var(--text-light);
}

body.dark-mode .story-title-grid a:hover {
  color: var(--primary-light);
}

body.dark-mode .story-stats-grid .stat-item {
  color: var(--text-muted);
}

body.dark-mode .story-stats-grid .stat-item:hover {
  color: var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .story-title-grid {
    font-size: 13px;
  }

  .story-stats-grid .stat-item {
    font-size: 10px;
  }

  .story-content-grid {
    padding: 10px;
  }
}

/* sửa web start */
.msv-chuong-list-container {
  background: var(--white-color);
}
.ranking-section .ranking-title img.cup {
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
}
.tm-thong-tin-truyen-table td {
  padding: 5px 0;
  font-size: 1.1rem;
}
body.dark-mode .msv-chuong-list-container {
  background: var(--background-dark) !important;
  border: 1px solid var(--background-white) !important;
}
body.dark-mode .msv-chuong-link {
  color: var(--white-color) !important;
}
body.dark-mode .msv-chuong-item {
  border-color: rgba(255, 255, 255, 0.3) !important;
}
body.dark-mode .msv-chuong-list-container .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}
body.dark-mode .name-comic-advertise {
  color: var(--white-color) !important;
}

#togglePassword {
  transform: translateY(-3px) !important;
  -webkit-transform: translateY(-3px) !important;
  -moz-transform: translateY(-3px) !important;
  -ms-transform: translateY(-3px) !important;
  -o-transform: translateY(-3px) !important;
}

body.dark-mode .msv-login-form .msv-login-input:-webkit-autofill {
  -webkit-text-fill-color: var(--white-color) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--background-dark) inset !important;
  box-shadow: 0 0 0px 1000px var(--background-dark) inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}
body.dark-mode .menu-view-thong-bao-li .btn-mdv {
  background: var(--background-dark) !important;
  color: var(--white-color) !important;
  border: 1px solid var(--border-color) !important;
}
body.dark-mode .menu-view-thong-bao-li.active a {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !important;
}
body.dark-mode .menu-view-thong-bao-li.active a:hover {
  background: var(--dark-mode-light) !important;
  color: var(--text-light) !important;
}
body.dark-mode .text-muted,
body.dark-mode .text-muted a,
body.dark-mode .range-values {
  color: var(--white-color) !important;
  background: var(--dark-mode-dark) !important;
}
body.dark-mode .btn-da-doc,
body.dark-mode .message-content {
  background: var(--background-dark) !important;
  color: var(--white-color) !important;
  box-shadow: 0 0 0 1px var(--dark-mode-dark) !important;
}
body.dark-mode .nav-tabs.mdv-tabs-peach .nav-link.active {
  background: #ff135a;
  color: var(--text-light) !important;
}
body.dark-mode .message-sender {
  background: var(--background-dark) !important;
  color: var(--white-color) !important;
}
body.dark-mode .message-content {
  border-color: var(--dark-mode-light);
}
body.dark-mode .message-content .btn-sm.btn-primary {
  background-color: var(--dark-mode-dark) !important;
  color: var(--white-color) !important;
  border-color: var(--dark-mode-light) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body.dark-mode .message-content .btn-primary:hover {
  background-color: var(--dark-mode-light) !important;
  color: var(--text-light) !important;
}
body.dark-mode .message-content .message-content a.btn-primary {
  color: var(--text-light) !important;
}

/* ===== SOCIAL LOGIN BUTTONS - DANG NHAP ===== */
.dang-nhap-social-container {
  width: 100%;
}

.dang-nhap-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 60px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid #e9ecef;
  background: #ffffff;
  color: #495057;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  gap: 4px;
}

.dang-nhap-social-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dang-nhap-social-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.dang-nhap-social-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Google Button */
.dang-nhap-google-btn {
  border-color: #4285f4;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  color: #4285f4;
}

.dang-nhap-google-btn:hover {
  background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
  color: #ffffff;
  border-color: #4285f4;
}

.dang-nhap-google-btn:hover .dang-nhap-social-icon path {
  fill: #ffffff !important;
}

/* Facebook Button */
.dang-nhap-facebook-btn {
  border-color: #1877f2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  color: #1877f2;
}

.dang-nhap-facebook-btn:hover {
  background: linear-gradient(135deg, #1877f2 0%, #0d4ec4 100%);
  color: #ffffff;
  border-color: #1877f2;
}

.dang-nhap-facebook-btn:hover .dang-nhap-social-icon path {
  fill: #ffffff !important;
}

/* Zalo Button */
.dang-nhap-zalo-btn {
  border-color: #0180c7;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  color: #0180c7;
}

.dang-nhap-zalo-btn:hover {
  background: linear-gradient(135deg, #0180c7 0%, #0156a3 100%);
  color: #ffffff;
  border-color: #0180c7;
}

.dang-nhap-zalo-btn:hover .dang-nhap-social-icon path {
  fill: #ffffff !important;
}

/* Dark Mode Styles */
body.dark-mode .dang-nhap-social-btn {
  background: var(--background-dark);
  border-color: var(--border-color);
  color: var(--white-color);
}

body.dark-mode .dang-nhap-google-btn {
  background: linear-gradient(
    135deg,
    var(--dark-mode-light) 0%,
    var(--background-dark) 100%
  );
  border-color: #4285f4;
  color: #4285f4;
}

body.dark-mode .dang-nhap-google-btn:hover {
  background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
  color: #ffffff;
}

body.dark-mode .dang-nhap-facebook-btn {
  background: linear-gradient(
    135deg,
    var(--dark-mode-light) 0%,
    var(--background-dark) 100%
  );
  border-color: #1877f2;
  color: #1877f2;
}

body.dark-mode .dang-nhap-facebook-btn:hover {
  background: linear-gradient(135deg, #1877f2 0%, #0d4ec4 100%);
  color: #ffffff;
}

body.dark-mode .dang-nhap-zalo-btn {
  background: linear-gradient(
    135deg,
    var(--dark-mode-light) 0%,
    var(--background-dark) 100%
  );
  border-color: #0180c7;
  color: #0180c7;
}

body.dark-mode .dang-nhap-zalo-btn:hover {
  background: linear-gradient(135deg, #0180c7 0%, #0156a3 100%);
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 576px) {
  .dang-nhap-social-btn {
    height: 55px;
    font-size: 11px;
  }

  .dang-nhap-social-icon {
    width: 18px;
    height: 18px;
  }

  .dang-nhap-social-text {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .dang-nhap-social-btn {
    height: 50px;
    gap: 2px;
  }

  .dang-nhap-social-icon {
    width: 16px;
    height: 16px;
  }

  .dang-nhap-social-text {
    font-size: 9px;
  }
}
.san-pham .list-view .truyen-comic-genres span {
  padding: 6px 8px;
}
.san-pham .list-view .truyen-comic-stats {
  justify-content: start;
  background: transparent;
  box-shadow: none;
  position: relative;
}
.san-pham .list-view .truyen-comic-stat {
  color: var(--text-dark);
}
body.dark-mode.san-pham .list-view .truyen-comic-meta,
body.dark-mode.san-pham .list-view .truyen-mo-ta,
body.dark-mode.san-pham .list-view .truyen-mo-ta span,
body.dark-mode.san-pham .list-view .truyen-comic-stats,
body.dark-mode.san-pham .list-view .truyen-comic-stat {
  background: transparent !important;
  color: var(--white-color) !important;
}

/* 🌟 iOS Font Compatibility và Thể loại page fixes */

/* thêm thể loại tất cả start */
.ranking-fade-in {
  animation: fadeInUp 0.5s ease-out;
}

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

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

.ranking-section {
  min-height: 400px;
}

#result-story-ranking .spinner-border {
  width: 2rem;
  height: 2rem;
}

/* Modern Genre Filter Styling */
.genre-filter-container {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.genre-filter-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.genre-dropdown {
  position: relative;
}

.genre-dropdown-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.genre-select {
  width: 100%;
  padding: 12px 35px 12px 15px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: transparent;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.genre-select:hover {
  border-color: var(--primary-color);
}

.genre-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.1);
  outline: none;
}

.genre-select:focus + .genre-dropdown-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-color);
}

/* Micro-interactions */
@keyframes dropdownAppear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.genre-filter-container.show {
  animation: dropdownAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position relative for tab container */
.nav-tabs.ranking-tabs {
  position: relative;
}

/* Active state styling */
.nav-link.active + .genre-filter-container {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* thêm thể loại tất cả end */

.top-1-hinh-anh-box {
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 128, 255, 0.3);
  --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;
}

/* Search Container Styles */
.mdv-header-find-form {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 350px;
  max-height: 400px;
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

.mdv-header-find-form-pc.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

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

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

.mdv-header-find-form-li:hover {
  background: var(--primary-light);
}

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

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

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

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

.search-load-more {
  padding: 8px;
  text-align: center;
}

.load-more-results {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.load-more-results:hover {
  background: var(--primary-color);
  color: white;
}

.search-loading {
  padding: 20px;
  text-align: center;
}

.search-loading .spinner-border {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.search-empty-state {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
}

.search-empty-state i {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Custom scrollbar */
.mdv-header-find-form::-webkit-scrollbar {
  width: 6px;
}

.mdv-header-find-form::-webkit-scrollbar-track {
  background: transparent;
}

.mdv-header-find-form::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

/* Dark mode styles */
body.dark-mode .truyen-search-input {
  background: var(--background-input);
  border-color: var(--border-color);
  color: var(--text-light);
}

body.dark-mode .truyen-search-input:focus {
  border-color: var(--primary-color);
}

body.dark-mode .truyen-search-input::placeholder {
  color: var(--text-muted);
}

body.dark-mode .mdv-header-find-form {
  background: var(--background-panel);
  border-color: var(--border-color);
}

body.dark-mode .mdv-header-find-form-li {
  color: var(--text-light);
}

body.dark-mode .mdv-header-find-form-li:hover {
  background: var(--background-input);
}

body.dark-mode .mdv-header-find-form-name {
  color: var(--text-light);
}

body.dark-mode .load-more-results {
  color: var(--text-light);
  border-color: var(--primary-color);
}

body.dark-mode .load-more-results:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

body.dark-mode .search-empty-state {
  color: var(--text-muted);
}

/* Mobile responsiveness */
@media (max-width: 991px) {
  .mdv-header-find-form {
    width: 300px;
  }

  .truyen-search-input {
    max-width: 100%;
  }
}

/* Custom Scrollbar Styles */
.vh-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.vh-scrollbar::-webkit-scrollbar-track {
  background: var(--background-white);
  border-radius: 10px;
}

.vh-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--background-white);
}

.vh-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Dark mode scrollbar */
body.dark-mode .vh-scrollbar::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

body.dark-mode .vh-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border: 2px solid var(--dark-bg);
}

body.dark-mode .vh-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Search Result Box Styles */
.mdv-header-find-form {
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
}

.mdv-header-find-form.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* Mobile Search Result Box */
.mdv-header-find-form-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background-white);
  z-index: 1000;
  padding: 12px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.mdv-header-find-form-mobile.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%);
  -webkit-transform: translateY(0) translateX(-50%);
  -moz-transform: translateY(0) translateX(-50%);
  -ms-transform: translateY(0) translateX(-50%);
  -o-transform: translateY(0) translateX(-50%);
  top: 100px;
}

.mdv-header-find-form-mobile.hide-results {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
}

.mdv-header-find-form-mobile .text-search-mobile {
  width: 100%;
  padding: 12px 15px;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  outline: none;
  font-size: 14px;
  background: var(--background-white);
  color: var(--text-dark);
  margin-bottom: 15px;
}

.mdv-header-find-form-mobile .text-search-mobile:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--glow-color);
}

/* Dark mode styles for mobile search */
body.dark-mode .mdv-header-find-form-mobile {
  background: var(--dark-bg);
}

body.dark-mode .mdv-header-find-form-mobile .text-search-mobile {
  background: var(--dark-bg);
  color: var(--text-light);
  border-color: var(--dark-border);
}

/* Mobile search results list */
.mdv-header-find-form-mobile .mdv-header-find-form-ul {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Hide search results when clicking outside */
.mdv-header-find-form.hide-results,
.mdv-header-find-form-mobile.hide-results {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mdv-header-find-form-mobile {
  top: 100px;
  width: 95%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}
.mdv-header-find-form.mdv-header-find-form-pc .vh-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #fff;
}

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

/* Custom scrollbar styling */
.vh-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.vh-scrollbar::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.vh-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.vh-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-hover, #0056b3);
}

/* Firefox scrollbar */
.vh-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

/* Dark mode support */
body.dark-mode .vh-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .vh-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

body.dark-mode .vh-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-hover, #0056b3);
}

/* trang admin quản lý thông báo start */
/* Notification Management Styles */
.hydrosite-quan-ly-thong-bao-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.hydrosite-quan-ly-thong-bao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.hydrosite-quan-ly-thong-bao-container .header-title h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Preview Section */
.hydrosite-quan-ly-thong-bao-container .hydrosite-quan-ly-thong-bao-preview {
  background: var(--background-white);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hydrosite-quan-ly-thong-bao-container .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hydrosite-quan-ly-thong-bao-container .preview-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-dark);
}

.hydrosite-quan-ly-thong-bao-container .preview-controls {
  display: flex;
  gap: 0.5rem;
}

.hydrosite-quan-ly-thong-bao-container .preview-container {
  background: var(--background-white);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hydrosite-quan-ly-thong-bao-container .marquee-preview {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: var(--background-white);
  border-radius: 0.5rem;
}

.hydrosite-quan-ly-thong-bao-container .marquee-content {
  display: flex;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Notification List */
.hydrosite-quan-ly-thong-bao-container .hydrosite-quan-ly-thong-bao-list {
  background: var(--background-white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hydrosite-quan-ly-thong-bao-container .list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hydrosite-quan-ly-thong-bao-container .list-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-dark);
}

.hydrosite-quan-ly-thong-bao-container .list-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hydrosite-quan-ly-thong-bao-container .search-box {
  position: relative;
  width: 300px;
}

.hydrosite-quan-ly-thong-bao-container .search-box input {
  padding-right: 2.5rem;
  border-radius: 0.5rem;
}

.hydrosite-quan-ly-thong-bao-container .search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Notification Cards */
.hydrosite-quan-ly-thong-bao-container .notification-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hydrosite-quan-ly-thong-bao-container .notification-card {
  background: var(--background-white);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hydrosite-quan-ly-thong-bao-container .notification-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hydrosite-quan-ly-thong-bao-container .notification-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hydrosite-quan-ly-thong-bao-container .notification-card .card-content {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hydrosite-quan-ly-thong-bao-container .notification-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hydrosite-quan-ly-thong-bao-container .notification-card .card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Button Styles */
.hydrosite-quan-ly-thong-bao-container .btn-hover-float {
  transition: all 0.3s ease;
}

.hydrosite-quan-ly-thong-bao-container .btn-hover-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* Modal Styles */
.hydrosite-quan-ly-thong-bao-container #notificationModal .modal-content {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

.hydrosite-quan-ly-thong-bao-container #notificationModal .modal-header {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  border: none;
  padding: 1.5rem;
}

.hydrosite-quan-ly-thong-bao-container #notificationModal .modal-body {
  padding: 1.5rem;
}

/* Dark Mode Styles */
body.dark-mode
  .hydrosite-quan-ly-thong-bao-container
  .hydrosite-quan-ly-thong-bao-preview,
body.dark-mode
  .hydrosite-quan-ly-thong-bao-container
  .hydrosite-quan-ly-thong-bao-list,
body.dark-mode .hydrosite-quan-ly-thong-bao-container .notification-card {
  background: var(--background-panel);
  border-color: var(--border-color);
}

body.dark-mode .hydrosite-quan-ly-thong-bao-container .preview-container {
  background: var(--background-panel);
  border-color: var(--border-color);
}

body.dark-mode .hydrosite-quan-ly-thong-bao-container .header-title h2,
body.dark-mode .hydrosite-quan-ly-thong-bao-container .preview-header h3,
body.dark-mode .hydrosite-quan-ly-thong-bao-container .list-header h3 {
  color: var(--text-light);
}

body.dark-mode
  .hydrosite-quan-ly-thong-bao-container
  .notification-card
  .card-content {
  color: var(--text-light);
}

body.dark-mode
  .hydrosite-quan-ly-thong-bao-container
  #notificationModal
  .modal-content {
  background: var(--background-panel);
}

body.dark-mode
  .hydrosite-quan-ly-thong-bao-container
  #notificationModal
  .modal-body {
  color: var(--text-light);
}

body.dark-mode .hydrosite-quan-ly-thong-bao-container .form-control,
body.dark-mode .hydrosite-quan-ly-thong-bao-container .form-select {
  background: var(--background-input);
  border-color: var(--border-color);
  color: var(--text-light);
}

/* Notification Type Colors */
.hydrosite-quan-ly-thong-bao-container .notification-type-default {
  border-left: 4px solid var(--primary-color);
}

.hydrosite-quan-ly-thong-bao-container .notification-type-important {
  border-left: 4px solid var(--danger-color);
}

.hydrosite-quan-ly-thong-bao-container .notification-type-warning {
  border-left: 4px solid var(--warning-color);
}

.hydrosite-quan-ly-thong-bao-container .notification-type-success {
  border-left: 4px solid var(--success-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hydrosite-quan-ly-thong-bao-container .hydrosite-quan-ly-thong-bao-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hydrosite-quan-ly-thong-bao-container .list-header {
    flex-direction: column;
    gap: 1rem;
  }

  .hydrosite-quan-ly-thong-bao-container .list-actions {
    width: 100%;
    flex-direction: column;
  }

  .hydrosite-quan-ly-thong-bao-container .search-box {
    width: 100%;
  }
}

/* trang admin quản lý thông báo end */

/* Fix FontAwesome on mobile */
@media (max-width: 991.8px) {
  [class^="fa-"],
  [class*=" fa-"] {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
  }

  .fab {
    font-family: "Font Awesome 5 Brands" !important;
  }

  .far {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400;
  }
}

/* Ensure icon containers don't break layout */
.truyen-comic-stat i,
.story-stats-grid .stat-item i,
.stat-icon i {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: 1;
  vertical-align: middle;
}

iframe {
  pointer-events: all !important;
}
.product-card.list-view-item .truyen-comic-stats {
  justify-content: center;
  box-shadow: none;
  padding: 7px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  background: rgba(255, 255, 255, 0.8) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.dark-mode .product-card.list-view-item .truyen-comic-stats {
  justify-content: center;
  box-shadow: none;
  padding: 7px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  background: rgba(0, 0, 0, 0.3) !important;
}
.product-card.list-view-item .truyen-comic-stats span {
  color: var(--text-dark);
}
body.dark-mode .product-card.list-view-item .truyen-comic-stats span {
  color: var(--white-color);
}
body.dark-mode .list-view-item-info {
  background: var(--dark-mode-dark) !important;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
body.dark-mode .truyen-mo-ta span {
  color: var(--white-color) !important;
}
.adsense-container {
  display: none !important;
}
.list-view-item-image-box-wrapper {
  height: 100%;
}
.list-view-item-image,
.list-view-item-image a {
  height: 100%;
}
.list-view .product-card {
  align-items: stretch !important;
}
.list-view .list-view-item-info {
  height: auto !important;
}

/* thông báo trang chủ start */

.hnb-notification-bar .hnb-slider {
  position: relative;
  z-index: 1;
}

/* Item Layout */
.hnb-notification-bar .hnb-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hnb-notification-bar .hnb-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #007bff, #0056b3);
  transition: width 0.3s ease;
}

.hnb-notification-bar .hnb-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hnb-notification-bar .hnb-item:hover::before {
  width: 8px;
}

/* Bell Icon */
.hnb-notification-bar .hnb-bell-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hnb-notification-bar .hnb-bell-icon i {
  animation: hnb-bell-shake 2s ease-in-out infinite;
}

.hnb-notification-bar .hnb-notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #ff4757;
  border: 2px solid white;
  border-radius: 50%;
  animation: hnb-pulse 2s infinite;
}

/* Content */
.hnb-notification-bar .hnb-content {
  flex: 1;
  min-width: 0;
}

.hnb-notification-bar .hnb-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0056b3;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hnb-notification-bar .hnb-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Action Button */
.hnb-notification-bar .hnb-action {
  flex-shrink: 0;
}

.hnb-notification-bar .hnb-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hnb-notification-bar .hnb-detail-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.hnb-notification-bar .hnb-detail-btn:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  color: white;
  text-decoration: none;
}

.hnb-notification-bar .hnb-detail-btn:hover::before {
  left: 100%;
}

.hnb-notification-bar .hnb-detail-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.hnb-notification-bar .hnb-detail-btn:hover i {
  transform: translateX(3px);
}

/* Navigation */
.hnb-notification-bar .hnb-nav-prev,
.hnb-notification-bar .hnb-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: 2px solid rgba(0, 123, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hnb-notification-bar .hnb-nav-prev {
  left: -20px;
}

.hnb-notification-bar .hnb-nav-next {
  right: -20px;
}

.hnb-notification-bar .hnb-nav-prev:hover,
.hnb-notification-bar .hnb-nav-next:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.hnb-notification-bar .hnb-nav-prev i,
.hnb-notification-bar .hnb-nav-next i {
  font-size: 0.9rem;
}

/* Pagination */
.hnb-notification-bar .hnb-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.hnb-notification-bar .hnb-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hnb-notification-bar .hnb-pagination .swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Empty State */
.hnb-notification-bar .hnb-empty-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  position: relative;
}

.hnb-notification-bar .hnb-empty-state::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #6c757d, #495057);
}

.hnb-notification-bar .hnb-empty-state .hnb-bell-icon {
  background: linear-gradient(135deg, #6c757d, #495057);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.hnb-notification-bar .hnb-empty-state .hnb-type {
  color: #6c757d;
}

/* Animations */
@keyframes hnb-bell-shake {
  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-10deg);
  }

  20%,
  40% {
    transform: rotate(10deg);
  }
}

@keyframes hnb-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

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

/* Dark Mode Support */
body.dark-mode .hnb-notification-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-mode .hnb-item {
  background: rgba(42, 42, 42, 0.95);
  color: #fff;
}

body.dark-mode .hnb-title {
  color: #fff;
}

body.dark-mode .hnb-empty-state {
  background: rgba(42, 42, 42, 0.95);
}

body.dark-mode .hnb-empty-state .hnb-title {
  color: #ccc;
}

body.dark-mode .hnb-nav-prev,
body.dark-mode .hnb-nav-next {
  background: rgba(42, 42, 42, 0.9);
  border-color: rgba(0, 123, 255, 0.3);
}

/* thông báo trang chủ end */

/* trang tin tức chi tiết start */
/* News Detail Styles */
.tin-tuc-detail .tnd-news-detail-wrapper {
  background: var(--light-gray-color); /* light gray */
  min-height: 100vh;
  padding: 2rem 0;
}

/* Bento Grid Header */
.tin-tuc-detail .tnd-bento-header {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  margin-bottom: 2rem;
  grid-template-areas:
    "title author stats"
    "title date stats"; */



}

.tin-tuc-detail .tnd-bento-card {
  background: var(--white-color);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 128, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 128, 255, 0.06);
  -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tin-tuc-detail .tnd-bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-accent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -ms-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
}

.tin-tuc-detail .tnd-bento-card:hover::before {
  opacity: 1;
}

.tin-tuc-detail .tnd-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 128, 255, 0.15);
  border-color: rgba(0, 128, 255, 0.25);
}

/* Title Card */
.tin-tuc-detail .tnd-title-card {
  --card-accent: #0080ff;
  background: var(--white-color);
}

/* Article Image */
.tin-tuc-detail .tnd-article-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-height: 300px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  overflow: hidden;
}

.tin-tuc-detail .tnd-article-image img,
.tin-tuc-detail .tnd-article-image a {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  -o-transition: transform 0.3s ease;
}

.tin-tuc-detail .tnd-article-image:hover img {
  transform: scale(1.03);
}

.tin-tuc-detail .tnd-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6c757d;
}

.tin-tuc-detail .tnd-image-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.tin-tuc-detail .tnd-image-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

.tin-tuc-detail .tnd-article-title {
  color: #1a1a1a;
  font-size: clamp(1.5rem, 1.3462rem + 0.7692vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Author Card */
.tin-tuc-detail .tnd-author-card {

    --card-accent: #0080ff;
  background: var(--white-color);
}

.tin-tuc-detail .tnd-author-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tin-tuc-detail .tnd-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tin-tuc-detail .tnd-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tin-tuc-detail .tnd-author-details {
  flex: 1;
  min-width: 0;
}

.tin-tuc-detail .tnd-author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tin-tuc-detail .tnd-author-rank {
  height: 20px;
}

.tin-tuc-detail .tnd-rank-img {
  height: 100%;
  width: auto;
}

/* Date Card */
.tin-tuc-detail .tnd-date-card {

  --card-accent: #0080ff;
  background: var(--white-color);
}

.tin-tuc-detail .tnd-date-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tin-tuc-detail .tnd-date-day {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0080ff;
  line-height: 1;
}

.tin-tuc-detail .tnd-date-month-year {
  display: flex;
  flex-direction: column;
}

.tin-tuc-detail .tnd-date-month {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.tin-tuc-detail .tnd-date-year {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Stats Card */
.tin-tuc-detail .tnd-stats-card {
  --card-accent: #0080ff;
  background: var(--white-color);
}

/* Stats Section */
.tin-tuc-detail .tnd-stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tin-tuc-detail .tnd-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 128, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid #0080ff;
  transition: all 0.3s ease;
}

.tin-tuc-detail .tnd-stat-item:hover {
  background: rgba(0, 128, 255, 0.1);
  transform: translateX(2px);
}

.tin-tuc-detail .tnd-stat-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0080ff, #0066cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-stat-icon i {
  font-size: 1rem;
  color: white;
}

.tin-tuc-detail .tnd-stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tin-tuc-detail .tnd-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0080ff;
  line-height: 1;
}

.tin-tuc-detail .tnd-stat-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

/* Popularity Section */
.tin-tuc-detail .tnd-popularity-section {
  padding: 1rem;
  background: rgba(0, 128, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid #0080ff;
}

.tin-tuc-detail .tnd-popularity-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.tin-tuc-detail .tnd-popularity-label i {
  color: #0080ff;
  font-size: 1rem;
}

.tin-tuc-detail .tnd-popularity-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.tin-tuc-detail .tnd-popularity-fill {
  height: 100%;
  background: linear-gradient(90deg, #0080ff, #0066cc);
  border-radius: 4px;
  transition: width 0.3s ease;
  animation: tnd-fillBar 2s ease-out;
}

.tin-tuc-detail .tnd-popularity-text {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.tin-tuc-detail .tnd-category-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, #dc3545, transparent);
  margin: 1rem 0;
  opacity: 0.3;
}

/* Category Section */
.tin-tuc-detail .tnd-category-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tin-tuc-detail .tnd-category-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.tin-tuc-detail .tnd-tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.tin-tuc-detail .tnd-tag-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.tin-tuc-detail .tnd-tag-secondary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

.tin-tuc-detail .tnd-tag-accent {
  background: linear-gradient(135deg, #6f42c1, #5a2d91);
  color: white;
}

.tin-tuc-detail .tnd-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tin-tuc-detail .tnd-meta-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tin-tuc-detail .tnd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.tin-tuc-detail .tnd-meta-item i {
  color: #28a745;
  font-size: 0.9rem;
}

/* Animation */
@keyframes tnd-fillBar {
  from {
    width: 0%;
  }

  to {
    width: 75%;
  }
}

/* Card Labels */
.tin-tuc-detail .tnd-card-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.tin-tuc-detail .tnd-card-content {
  position: relative;
  z-index: 1;
}

/* Article Content */
.tin-tuc-detail .tnd-article-content {
  background: white;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.tin-tuc-detail .tnd-content-wrapper {
  padding: 2rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

.tin-tuc-detail .tnd-content-wrapper h1,
.tin-tuc-detail .tnd-content-wrapper h2,
.tin-tuc-detail .tnd-content-wrapper h3,
.tin-tuc-detail .tnd-content-wrapper h4,
.tin-tuc-detail .tnd-content-wrapper h5,
.tin-tuc-detail .tnd-content-wrapper h6 {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tin-tuc-detail .tnd-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tin-tuc-detail .tnd-content-wrapper p {
  margin-bottom: 1.5rem;
}

/* Comments Section */
.tin-tuc-detail .tnd-comments-section {
  background: white;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tin-tuc-detail .tnd-comments-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.tin-tuc-detail .tnd-comments-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%
  );
  background-size: 20px 20px;
  opacity: 0.3;
}

.tin-tuc-detail .tnd-comments-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.tin-tuc-detail .tnd-title-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.tin-tuc-detail .tnd-title-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.tin-tuc-detail .tnd-comment-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
}

/* Comment Form */
.tin-tuc-detail .tnd-comment-form-wrapper {
  padding: 2rem;
  border-bottom: 1px solid #eee;
}

.tin-tuc-detail .tnd-comment-form {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tin-tuc-detail .tnd-form-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tin-tuc-detail .tnd-avatar-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tin-tuc-detail .tnd-form-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tin-tuc-detail .tnd-textarea-wrapper {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.tin-tuc-detail .tnd-textarea-wrapper:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.1);
}

.tin-tuc-detail .tnd-form-actions {
  display: flex;
  justify-content: flex-end;
}

.tin-tuc-detail .tnd-submit-btn {
  position: relative;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tin-tuc-detail .tnd-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.tin-tuc-detail .tnd-btn-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.tin-tuc-detail .tnd-submit-btn:hover .tnd-btn-bg {
  left: 100%;
}

.tin-tuc-detail .tnd-btn-text {
  position: relative;
  z-index: 1;
}

.tin-tuc-detail .tnd-btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.tin-tuc-detail .tnd-submit-btn:hover .tnd-btn-icon {
  transform: translateX(3px);
}

/* Login Prompt */
.tin-tuc-detail .tnd-login-prompt {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.tin-tuc-detail .tnd-prompt-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-prompt-content h5 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.tin-tuc-detail .tnd-prompt-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tin-tuc-detail .tnd-login-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tin-tuc-detail .tnd-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Comments List */
.tin-tuc-detail .tnd-comments-list {
  padding: 2rem;
}

.tin-tuc-detail .tnd-comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.tin-tuc-detail .tnd-comment-item:last-child {
  border-bottom: none;
}

.tin-tuc-detail .tnd-comment-item:hover {
  background: #f8f9fa;
  border-radius: 10px;
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
}

.tin-tuc-detail .tnd-comment-avatar {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-comment-content {
  flex: 1;
  min-width: 0;
}

.tin-tuc-detail .tnd-comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tin-tuc-detail .tnd-comment-author {
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tin-tuc-detail .tnd-comment-author:hover {
  color: #007bff;
}

.tin-tuc-detail .tnd-pending-badge {
  background: #ffc107;
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tin-tuc-detail .tnd-comment-text {
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tin-tuc-detail .tnd-comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tin-tuc-detail .tnd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tin-tuc-detail .tnd-action-btn:hover {
  background: #f0f0f0;
  color: #007bff;
}

.tin-tuc-detail .tnd-like-btn:hover {
  color: #e91e63;
}

.tin-tuc-detail .tnd-comment-time {
  color: #999;
  font-size: 0.85rem;
}

.tin-tuc-detail .tnd-like-count {
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
}

.tin-tuc-detail .tnd-like-count:hover {
  color: #007bff;
}

/* Replies */
.tin-tuc-detail .tnd-replies {
  margin-top: 1rem;
  padding-left: 2rem;
  border-left: 2px solid #f0f0f0;
}

.tin-tuc-detail .tnd-reply-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f8f8f8;
}

.tin-tuc-detail .tnd-reply-item:last-child {
  border-bottom: none;
}

.tin-tuc-detail .tnd-reply-item .tnd-comment-avatar {
  width: 35px;
  height: 35px;
}

/* Pending Comments */
.tin-tuc-detail .tnd-pending {
  opacity: 0.7;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 0 -1rem 1rem -1rem;
  padding: 1.5rem 1rem;
}

/* Load More */
.tin-tuc-detail .tnd-load-more-wrapper {
  text-align: center;
  padding: 2rem 0;
}

.tin-tuc-detail .tnd-load-more-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tin-tuc-detail .tnd-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* No Comments */
.tin-tuc-detail .tnd-no-comments {
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
}

.tin-tuc-detail .tnd-no-comments-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Author Stats & Time Details Styles */
.tin-tuc-detail .tnd-author-stats {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tin-tuc-detail .tnd-author-stat-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tin-tuc-detail .tnd-author-stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 128, 255, 0.05);
  border-radius: 8px;
  border-left: 2px solid #0080ff;
}

.tin-tuc-detail .tnd-stat-icon-mini {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #0080ff, #0066cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-stat-icon-mini i {
  font-size: 0.8rem;
  color: white;
}

.tin-tuc-detail .tnd-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tin-tuc-detail .tnd-stat-info .tnd-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #28a745;
  line-height: 1;
}

.tin-tuc-detail .tnd-stat-info .tnd-stat-label {
  font-size: 0.7rem;
  color: #666;
  font-weight: 500;
}

/* Author Actions */
.tin-tuc-detail .tnd-author-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tin-tuc-detail .tnd-follow-btn {
  width: 100%;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tin-tuc-detail .tnd-follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Time Details */
.tin-tuc-detail .tnd-time-details {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tin-tuc-detail .tnd-time-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 193, 7, 0.05);
  border-radius: 8px;
  border-left: 2px solid #ffc107;
}

.tin-tuc-detail .tnd-time-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffc107, #ffb700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tin-tuc-detail .tnd-time-icon i {
  font-size: 0.75rem;
  color: white;
}

.tin-tuc-detail .tnd-time-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tin-tuc-detail .tnd-time-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffc107;
  line-height: 1;
}

.tin-tuc-detail .tnd-time-label {
  font-size: 0.65rem;
  color: #666;
  font-weight: 500;
}

/* Like Button Styles */
.tin-tuc-detail .tnd-like-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05),
    rgba(233, 30, 99, 0.05)
  );
  border-radius: 12px;
  text-align: center;
}

.tin-tuc-detail .tnd-like-btn {
  position: relative;
  background: linear-gradient(135deg, #dc3545, #e91e63);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.tin-tuc-detail .tnd-like-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.tin-tuc-detail .tnd-like-btn.liked {
  background: linear-gradient(135deg, #e91e63, #ad1457);
  animation: tnd-likeHeartbeat 0.6s ease;
}

.tin-tuc-detail .tnd-like-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.tin-tuc-detail .tnd-like-btn:hover .tnd-like-icon {
  transform: scale(1.1);
}

.tin-tuc-detail .tnd-like-btn.liked .tnd-like-icon {
  animation: tnd-heartPulse 0.8s ease;
}

.tin-tuc-detail .tnd-like-text {
  position: relative;
  z-index: 2;
}

.tin-tuc-detail .tnd-like-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.tin-tuc-detail .tnd-like-btn:active .tnd-like-ripple {
  width: 100px;
  height: 100px;
  opacity: 0;
}

/* Like Stat Highlighting */
.tin-tuc-detail .tnd-like-stat {
  position: relative;
  overflow: hidden;
}

.tin-tuc-detail .tnd-like-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 53, 69, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.tin-tuc-detail .tnd-like-stat.updated::before {
  left: 100%;
}

/* Animations */
@keyframes tnd-likeHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.05);
  }
  75% {
    transform: scale(1.15);
  }
}

@keyframes tnd-heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

@keyframes tnd-fillBar {
  from {
    width: 0%;
  }
  to {
    width: 75%;
  }
}

/* Avatar Frame */
.tin-tuc-detail .tnd-avatar-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Dark Mode */
body.dark-mode.tin-tuc-detail .tnd-news-detail-wrapper {
  background: #1a1a1a;
}

body.dark-mode.tin-tuc-detail .tnd-article-content,
body.dark-mode.tin-tuc-detail .tnd-comments-section,
body.dark-mode.tin-tuc-detail .tnd-author-card {
  background: #2a2a2a;
  color: #e1e1e1;
}

body.dark-mode.tin-tuc-detail .tnd-article-title,
body.dark-mode.tin-tuc-detail .tnd-author-name,
body.dark-mode.tin-tuc-detail .tnd-comment-author {
  color: #e1e1e1;
}

body.dark-mode.tin-tuc-detail .tnd-content-wrapper {
  color: #ccc;
}

body.dark-mode.tin-tuc-detail .tnd-comment-item:hover {
  background: #333;
}

body.dark-mode.tin-tuc-detail .tnd-textarea-wrapper {
  background: #333;
  color: #e1e1e1;
}

body.dark-mode.tin-tuc-detail .tnd-action-btn:hover {
  background: #444;
}

body.dark-mode.tin-tuc-detail .tnd-author-stat-item,
body.dark-mode.tin-tuc-detail .tnd-time-item {
  background: rgba(255, 255, 255, 0.05);
  color: #e1e1e1;
}

/* Animations */
@keyframes tnd-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes tnd-backgroundMove {
  from {
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  }

  to {
    background-position: -20px 0, -20px 10px, -10px -10px, -30px 0px;
  }
}

.tin-tuc-detail .tnd-bento-header {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  max-height: 800px;

}
.tin-tuc-detail .tnd-title-card {
  grid-column: span 5 / span 5;

}
.tin-tuc-detail .tnd-author-card {
  grid-column: span 4 / span 4;
  grid-column-start: 1;
  grid-row-start: 2;
  /* height: max-content; */
}
.tin-tuc-detail .tnd-date-card {
  grid-column: span 4 / span 4;
    grid-column-start: 5;
    grid-row-start: 2;
    /* height: max-content; */
}
.tin-tuc-detail .tnd-stats-card {
  grid-column: span 3 / span 3;
  grid-column-start: 6;
  grid-row-start: 1;
}
.tin-tuc-detail .container {
  max-width: 1100px;
  margin: 0 auto;
}
/* trang tin tức chi tiết end */

.page-add-nhieu-chapter #dangNhieuChuongModal .list-group {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #007bff #f0f0f0;
}