/* ==========================================================================
   LÃ n Truyá»n â Design System v2
   Palette + Desktop Floating Pill Header
   Desktop only: <header> bá» áº©n á» max-width 1024px (media.css)
   ========================================================================== */

:root {
  --v2-bg: #fff8f9;
  --v2-card: #ffffff;
  --v2-divider: #fdeef0;
  --v2-footer: #fde6e7;
  --v2-primary: #d04c58;
  --v2-hover: #e06b76;
  --v2-text: #3f2629;
  --v2-text-muted: #846367;
  --v2-border: #f4c6ca;
  --v2-shadow: 0 4px 18px rgba(63, 38, 41, 0.06);
  --v2-shadow-strong: 0 8px 28px rgba(63, 38, 41, 0.1);
  --v2-header-h: 72px;
  --v2-header-radius: 32px;
}

/* ----- Page base (warm cream) ----- */
body {
  background-color: var(--v2-bg);
  color: var(--v2-text);
}

/* ==========================================================================
   HEADER â Floating Pill Navbar (desktop)
   ========================================================================== */

/* Thanh header sticky, ná»n kem thay gradient cam full-width cÅ© */
.lt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent !important;
  background-image: none !important;
  padding: 18px 0 10px;
  box-shadow: none !important;
  transition:
    transform 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease;
  will-change: transform;
}

/* Scroll xuá»ng: áº©n header (chá» desktop â JS gáº¯n class; â¤992 bá» transform) */
.lt-header.is-header-hidden {
  transform: translateY(-110%);
  pointer-events: none;
}

body.dang-nhap .lt-header {
  position: fixed;
  width: 100%;
}
body.dang-nhap .mdv-dang-nhap {
  padding-top: 100px;
}
/* Pill container: ~92% width, bo lá»n, shadow nháº¹ */
.lt-header > .container {
  width: 92%;
  padding-left: 0;
  padding-right: 0;
}

.lt-header .lt-header-wrapper {
  background: var(--v2-card);
  border-radius: var(--v2-header-radius);
  min-height: var(--v2-header-h);
  height: var(--v2-header-h);
  padding: 0 1.5rem !important;
  box-shadow: var(--v2-shadow);
  border: 1px solid rgba(208, 76, 88, 0.06);
  align-items: center;
  gap: 1rem !important;
  transition: box-shadow 0.35s ease;
}

/* Scroll: tÄng shadow nháº¹, khÃ´ng co logo / nháº£y layout */
.lt-header.header-active {
  box-shadow: none !important;
  padding-top: 12px;
  padding-bottom: 8px;
}

.lt-header.header-active .lt-header-wrapper {
  box-shadow: var(--v2-shadow-strong);
}

.lt-header.header-active .lt-header-logo-box img {
  max-width: 210px;
  max-height: 62px;
}

/* ----- Logo ----- */
.lt-header-logo-box {
  flex: 0 0 auto;
  line-height: 0;
}

.lt-header-logo-box img {
  max-width: 210px;
  max-height: 62px;
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: none;
}

/* ----- Nav center ----- */
.lt-header-nav-box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.lt-header .mdv-nav-menu {
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
  max-width: 560px;
}

.lt-header .mdv-nav-menu::before,
.lt-header .mdv-nav-menu::after {
  display: none !important;
  content: none !important;
}

.lt-header .mdv-nav-menu > ul {
  gap: 0.35rem 1.15rem !important;
  justify-content: center !important;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.lt-header .menu_li_level_1 {
  list-style: none;
  position: relative;
  flex: 0 0 auto;
}

.lt-header .menu_a_level_1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  padding: 2px 4px 6px;
  color: var(--v2-text) !important;
  font-family: var(--normal-font), Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
  -webkit-transition: color 0.25s ease;
  -moz-transition: color 0.25s ease;
  -ms-transition: color 0.25s ease;
  -o-transition: color 0.25s ease;
  text-transform: capitalize;
}

.lt-header .menu_a_level_1:hover {
  color: var(--v2-primary) !important;
}

/* Active: cam + underline má»ng â KHÃNG tÃ´ ná»n item */
.lt-header .menu_li_level_1.active .menu_a_level_1 {
  color: var(--v2-primary) !important;
  font-weight: 700;
}

.lt-header .menu_li_level_1.active .menu_a_level_1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--v2-primary);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

.lt-header .menu-header-icon {
  height: 22px;
  width: auto;
  max-width: 28px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Chuyển icon active dạng PNG cam cũ sang đỏ dâu #d04c58 */
.lt-header .menu_li_level_1.active .menu-header-icon,
.lt-mb-nav-item.active .lt-mb-nav-icon {
  filter: hue-rotate(-32deg) saturate(98%) brightness(82%);
  -webkit-filter: hue-rotate(-32deg) saturate(98%) brightness(82%);
}

.lt-header .menu-header-icon-fa {
  font-size: 1.05rem;
  line-height: 1;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.lt-header .menu-header-text {
  display: block;
}

/* ----- Right: search + actions ----- */
.lt-header-login-box {
  flex: 0 0 auto;
  gap: 0.75rem !important;
}

/* Search pill */
.lt-header .mdv-header-find-box {
  flex: 0 0 auto;
}

.lt-header .mdv-find-header {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 999px !important;
  min-height: 40px;
  align-items: center;
  padding-left: 0.65rem !important;
  padding-right: 0.35rem !important;
  box-shadow: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lt-header .mdv-find-header:focus-within {
  border-color: rgba(208, 76, 88, 0.45);
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08);
}

.lt-header .mdv-find-header .form-control {
  max-width: 168px;
  min-width: 120px;
  height: 36px;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 0.82rem;
  color: var(--v2-text);
}

.lt-header .mdv-find-header .form-control::placeholder {
  color: var(--v2-text-muted);
  opacity: 0.85;
}

.lt-header .mdv-find-header .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.lt-header .mdv-find-header .btn-tim-kiem {
  background: transparent !important;
  color: var(--v2-primary) !important;
  border: none;
  box-shadow: none;
  padding: 0.25rem 0.55rem;
  line-height: 1;
  border-radius: 999px !important;
}

.lt-header .mdv-find-header .btn-tim-kiem:hover {
  background: transparent !important;
  color: var(--v2-hover) !important;
}

/* Gá»£i Ã½ tÃ¬m kiáº¿m dropdown */
.lt-header .mdv-header-find-form.active {
  min-width: 280px;
  border-radius: 16px;
  border: 1px solid var(--v2-border);
  box-shadow: var(--v2-shadow-strong);
  background: var(--v2-card);
}

/* ==========================================================================
   HEADER NOTIFICATION â social-style panel (desktop)
   ========================================================================== */

/* Guest (chÆ°a ÄÄng nháº­p): tuyá»t Äá»i khÃ´ng hiá»n chuÃ´ng */
.lt-header:has(.mdv-header-not-login) .lt-header-notif-dropdown,
.lt-header:has(.mdv-header-not-login) .mdv-header-notification-btn {
  display: none !important;
}

/* Bell trigger â hide Bootstrap caret */
.lt-header .mdv-header-notification-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--v2-text);
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.15s ease;
}

.lt-header .mdv-header-notification-btn::after {
  display: none !important;
}

/* Skill: beetruyen-thong-bao-tai-khoan — chuông header */
.lt-header .mdv-header-notification-btn:focus,
.lt-header .mdv-header-notification-btn.show,
.lt-header .mdv-header-notification-btn[aria-expanded="true"] {
  color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.08);
  outline: none;
  box-shadow: none;
}

.lt-header .mdv-header-notification-btn:active {
  transform: scale(0.96);
}

.lt-header .mdv-header-notification-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.lt-header .mdv-header-notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v2-primary);
  border: 2px solid var(--v2-card);
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(208, 76, 88, 0.35);
  animation: lt-notif-pulse 1.8s ease-out infinite;
}

@keyframes lt-notif-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(208, 76, 88, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(208, 76, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(208, 76, 88, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-header .mdv-header-notification-dot {
    animation: none;
  }
}

/* Dropdown panel */
.lt-header .lt-header-notif-dropdown {
  position: relative;
}

.lt-header .lt-notif-panel {
  width: 360px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 0;
  margin-top: 0.65rem !important;
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  background: var(--v2-card);
  box-shadow:
    0 12px 40px rgba(63, 38, 41, 0.12),
    0 2px 8px rgba(63, 38, 41, 0.04);
  overflow: hidden;
  z-index: 1050;
}

.lt-header .lt-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--v2-divider);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
}

.lt-header .lt-notif-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v2-text);
  letter-spacing: -0.01em;
}

.lt-header .lt-notif-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--v2-primary);
  white-space: nowrap;
}

/* List */
.lt-header .lt-notif-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 0;
}

.lt-header .lt-notif-list::-webkit-scrollbar {
  width: 6px;
}

.lt-header .lt-notif-list::-webkit-scrollbar-thumb {
  background: rgba(208, 76, 88, 0.25);
  border-radius: 6px;
}

.lt-header .lt-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--v2-text);
  transition: background 0.2s ease;
  position: relative;
}

.lt-header .lt-notif-item:hover {
  background: var(--v2-divider);
  color: var(--v2-text);
}

.lt-header .lt-notif-item.is-unread {
  background: rgba(208, 76, 88, 0.05);
}

.lt-header .lt-notif-item.is-unread:hover {
  background: rgba(208, 76, 88, 0.09);
}

.lt-header .lt-notif-item-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  background: var(--v2-primary);
}

.lt-header .lt-notif-icon-comment {
  background: linear-gradient(145deg, #e06b76, #d04c58);
}

.lt-header .lt-notif-icon-book {
  background: linear-gradient(145deg, #e8a05a, #d4782a);
}

.lt-header .lt-notif-icon-gift {
  background: linear-gradient(145deg, #f0b429, #e08a1a);
}

.lt-header .lt-notif-icon-heart {
  background: linear-gradient(145deg, #ff7a5c, #e84a3a);
}

.lt-header .lt-notif-icon-system {
  background: linear-gradient(145deg, #8d696d, #634448);
}
.lt-header .lt-notif-icon-ong,
.lt-header .lt-notif-icon-combo {
  background: linear-gradient(145deg, #f0b429, #e08a1a);
}
.lt-header .lt-notif-icon-bookshelf {
  background: linear-gradient(145deg, #e8a05a, #d4782a);
}
.lt-header .lt-notif-icon-violation {
  background: linear-gradient(145deg, #c0392b, #8e2a21);
}

.lt-header .lt-notif-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lt-header .lt-notif-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--v2-primary);
  text-transform: none;
  letter-spacing: 0;
}

.lt-header .lt-notif-item-text {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--v2-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lt-header .lt-notif-item-text strong {
  font-weight: 700;
  color: var(--v2-text);
}

.lt-header .lt-notif-item-text a {
  color: var(--v2-primary);
  text-decoration: none;
}

.lt-header .lt-notif-item-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v2-text-muted);
  margin-top: 0.1rem;
}

.lt-header .lt-notif-item.is-unread .lt-notif-item-time {
  color: var(--v2-primary);
}

.lt-header .lt-notif-item-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--v2-primary);
}
.lt-header .lt-notif-empty {
  padding: 1.1rem 1rem;
  text-align: center;
  color: var(--v2-text-muted);
  font-size: 0.86rem;
}

/* Footer */
.lt-header .lt-notif-panel-foot {
  border-top: 1px solid var(--v2-divider);
  background: #fff7f8;
  padding: 0.55rem 0.75rem 0.7rem;
  text-align: center;
}

.lt-header .lt-notif-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--v2-primary);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lt-header .lt-notif-see-all:hover {
  background: rgba(208, 76, 88, 0.08);
  color: var(--v2-hover);
}

/* Stack: chuÃ´ng + avatar spacing */
.lt-header .mdv-header-isLogin-box {
  gap: 0.35rem !important;
}

.lt-header .mdv-header-isLogin-avatar-image {
  width: 48px;
  --bs-aspect-ratio: 100%;
  overflow: visible;
}

.lt-header .mdv-header-isLogin-avatar-image .avatar {
  scale: 0.78;
  transform: translateY(4%);
}

.lt-header .mdv-header-isLogin-avatar-image .frame {
  transform: none;
}

/* ChÆ°a ÄÄng nháº­p */
.lt-header .mdv-header-not-login a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--v2-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: var(--v2-card);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.lt-header .mdv-header-not-login a:hover {
  color: var(--v2-primary);
  border-color: rgba(208, 76, 88, 0.35);
  background: rgba(208, 76, 88, 0.04);
}

/* Dropdown account soft surface */
.lt-header .mdv-header-isLogin-avatar-dropdown .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--v2-border);
  box-shadow: var(--v2-shadow-strong);
  background: var(--v2-card);
  margin-top: 0.5rem !important;
}

.lt-header .mdv-header-isLogin-avatar-dropdown .dropdown-item:hover {
  background: var(--v2-divider);
  color: var(--v2-primary);
}

.lt-header .mdv-nav-menu > ul {
  gap: 0.25rem 0.75rem !important;
}

.lt-header-logo-box img,
.lt-header.header-active .lt-header-logo-box img {
  max-width: 210px;
  max-height: 62px;
}

.lt-header .menu-header-icon {
  height: 18px;
}

/* ==========================================================================
   MOBILE MENU â bar + offcanvas (end) matching desktop pill header
   ========================================================================== */

.mdv-menu-mobile {
  position: sticky;
  top: 6px;
  z-index: 1040;
  background: transparent;
  background-image: none !important;
}

.mdv-menu-mobile .lt-mb-bar {
  background: var(--v2-card);
  margin: 0px 12px 0;
  border: 1px solid rgba(208, 76, 88, 0.08);
  box-shadow: var(--v2-shadow);
  border-radius: 22px;
  -webkit-border-radius: 22px;
  -moz-border-radius: 22px;
  -ms-border-radius: 22px;
  -o-border-radius: 22px;
}

.mdv-menu-mobile .lt-mb-logo img,
.mdv-menu-mobile .lan-truyen-logo-mobile-img,
.mdv-menu-mobile.active .lt-mb-logo img,
.mdv-menu-mobile.active .lan-truyen-logo-mobile-img {
  max-width: 100%;
  max-height: 52px;
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: none;
}

.mdv-menu-mobile .lt-mb-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--v2-divider);
  color: var(--v2-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.mdv-menu-mobile .lt-mb-icon-btn:active {
  transform: scale(0.96);
}

.mdv-menu-mobile .lt-mb-toggle {
  background: var(--v2-primary);
  color: #fff;
}

.mdv-menu-mobile .lt-mb-avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  position: relative;
}
.mdv-menu-mobile .lt-mb-avatar-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v2-primary);
  border: 2px solid var(--v2-card);
  pointer-events: none;
  z-index: 2;
}

.mdv-menu-mobile .lt-mb-avatar-wrap {
  width: 100%;
  overflow: hidden;
  display: block;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.mdv-menu-mobile .lt-mb-avatar-wrap .avatar,
.mdv-menu-mobile .lt-mb-avatar-wrap .frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mdv-menu-mobile .lt-mb-avatar-wrap .avatar {
  transform: scale(0.82);
}

/* Mobile search modal */
body.lt-mb-search-open {
  overflow: hidden;
}

.lt-mb-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1080;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px 18px;
}

.lt-mb-search-modal.is-open,
.lt-mb-search-modal:not([hidden]) {
  display: flex;
}

.lt-mb-search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(63, 38, 41, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.lt-mb-search-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin-top: 0.35rem;
  animation: ltMbSearchIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ltMbSearchIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lt-mb-search-sheet {
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(244, 198, 202, 0.9);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 244, 246, 0.96) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 18px 48px rgba(63, 38, 41, 0.18);
}

.lt-mb-search-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--v2-text);
  letter-spacing: -0.02em;
}

.lt-mb-search-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(208, 76, 88, 0.08);
  color: var(--v2-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.lt-mb-search-close:hover,
.lt-mb-search-close:focus-visible {
  background: rgba(208, 76, 88, 0.16);
  color: var(--v2-primary);
  outline: none;
}

.lt-mb-search-close:active {
  transform: scale(0.96);
}

.lt-mb-search-group {
  display: flex;
  align-items: stretch;
  margin-top: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(208, 76, 88, 0.28);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lt-mb-search-group.input-group {
  border-bottom: 0;
  flex-wrap: nowrap;
}

.lt-mb-search-leading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem 0 0.95rem;
  color: var(--v2-primary);
  font-size: 0.95rem;
}

.lt-mb-search-group .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 46px;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  color: var(--v2-text);
  border-radius: 0;
}

.lt-mb-search-group .form-control::placeholder {
  color: #a8898d;
}

.lt-mb-search-group .form-control:focus {
  box-shadow: none;
  outline: none;
}

.lt-mb-search-group .btn-tim-kiem-mobile,
.lt-mb-search-clear {
  border: 0;
  background: transparent;
  color: var(--v2-text-muted);
  width: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.lt-mb-search-clear:hover,
.lt-mb-search-clear:focus-visible {
  color: var(--v2-primary);
}

.mdv-menu-mobile .lt-button-mobile-tim-kiem.is-active {
  background: rgba(184, 59, 71, 0.12);
  color: var(--v2-primary);
}

.lt-mb-search-modal .lt-khung-tim-kiem-mobile-khung-noi-dung,
.lt-mb-search-results {
  display: none;
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 100%;
  transform: none;
  margin-top: 0.85rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  border: 1px solid var(--v2-border);
  box-shadow: none;
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lt-mb-search-results:not([hidden]) {
  display: block;
}

.lt-mb-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lt-mb-search-list > a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.lt-mb-search-list > a:hover,
.lt-mb-search-list > a:focus-visible {
  background: rgba(208, 76, 88, 0.08);
  outline: none;
}

.lt-mb-search-list .mdv-header-find-form-li {
  margin: 0;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
}

.lt-mb-search-list .mdv-header-find-form-image {
  width: 48px;
  flex: 0 0 48px;
  max-width: 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(63, 38, 41, 0.12);
}

.lt-mb-search-list .mdv-header-find-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-mb-search-list .mdv-header-find-form-name {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--v2-text);
}

.lt-mb-search-list .mdv-header-find-form-author {
  font-size: 0.78rem;
  line-height: 1.3;
}

.lt-mb-search-list .mdv-header-find-form-info {
  min-width: 0;
  flex: 1;
  gap: 0.2rem !important;
}

.lt-mb-search-empty {
  font-size: 0.88rem;
}

@media (prefers-reduced-transparency: reduce) {
  .lt-mb-search-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(63, 38, 41, 0.55);
  }

  .lt-mb-search-sheet {
    background: #fffafb;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-mb-search-dialog {
    animation: none;
  }
}

/* Offcanvas panel */
.lt-mb-offcanvas {
  width: min(92vw, 360px) !important;
  border: 0;
  background: var(--v2-bg);
}

.lt-mb-offcanvas .lt-mb-offcanvas-head {
  padding: 1rem 1.1rem 0.5rem;
}

.lt-mb-offcanvas .lt-mb-offcanvas-body {
  padding: 0.75rem 1.1rem 1.5rem;
}

.lt-mb-user-card,
.lt-mb-guest-card {
  background: var(--v2-card);
  border-radius: 18px;
  border: 1px solid rgba(208, 76, 88, 0.08);
  box-shadow: var(--v2-shadow);
  padding: 1rem;
}

.lt-mb-user-avatar {
  width: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
}

.lt-mb-user-avatar .avatar,
.lt-mb-user-avatar .frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lt-mb-user-avatar .avatar {
  transform: scale(0.82);
}

.lt-mb-user-name {
  font-weight: 700;
  color: var(--v2-text);
  font-size: 1rem;
  line-height: 1.25;
}

.lt-mb-user-ong {
  color: var(--v2-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Náº¡p Ong â CTA ná»i báº­t */
.lt-mb-nap-ong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e06b76 0%, #d04c58 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  box-shadow:
    0 6px 0 #b83b47,
    0 10px 20px rgba(208, 76, 88, 0.28);
  text-decoration: none !important;
}

.lt-mb-nap-ong:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #b83b47,
    0 6px 12px rgba(208, 76, 88, 0.22);
}

.lt-mb-login-btn {
  border-radius: 999px;
  background: var(--v2-primary);
  color: #fff !important;
  font-weight: 600;
  border: 0;
  padding: 0.65rem 1rem;
}

.lt-mb-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  background: var(--v2-divider);
  color: var(--v2-text) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
}

.lt-mb-quick-link i {
  color: var(--v2-primary);
}
/* Skill: beetruyen-thong-bao-tai-khoan — badge mobile */
.lt-mb-quick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--v2-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.lt-mb-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-text-muted);
  margin: 0.35rem 0 0.55rem;
}

.lt-mb-nav {
  background: var(--v2-card);
  border-radius: 16px;
  border: 1px solid rgba(208, 76, 88, 0.06);
  overflow: hidden;
}

.lt-mb-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  color: var(--v2-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--v2-divider);
}

.lt-mb-nav li:last-child .lt-mb-nav-item {
  border-bottom: 0;
}

.lt-mb-nav-item:active,
.lt-mb-nav-item.active {
  background: rgba(208, 76, 88, 0.08);
  color: var(--v2-primary) !important;
}

.lt-mb-nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.lt-mb-nav-fa {
  width: 22px;
  text-align: center;
  color: var(--v2-primary);
  flex: 0 0 auto;
}

.lt-mb-nav-admin .lt-mb-nav-item {
  font-size: 0.9rem;
}

.lt-mb-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0d0c4;
  color: #c0392b !important;
  font-weight: 600;
  text-decoration: none !important;
}
.lt-button-mobile-tim-kiem i {
  transform: initial;
  -webkit-transform: initial;
  -moz-transform: initial;
  -ms-transform: initial;
  -o-transform: initial;
}
@media (min-width: 992px) {
  .mdv-menu-mobile {
    display: none !important;
  }
  .lt-mb-search-modal {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lt-mb-nap-ong,
  .lt-mb-icon-btn {
    transition: none;
  }
  .lt-mb-nap-ong:active,
  .lt-mb-icon-btn:active {
    transform: none;
  }
}

/* ===== Home banner (db_home_banner) ===== */
.home-banner-section {
  margin-bottom: 0;
  overflow: visible;
  padding: 20px 0;
  padding-bottom: 0;
}

.home-banner-section > .container {
  overflow: visible;
}

/* Frame chứa swiper + nút nav (nút nửa ngoài mép, không clip swiper) */
.home-banner-frame {
  position: relative;
  overflow: visible;
}

.home-banner-swiper.swiper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #1a1a1a;
}

.home-banner-swiper .swiper-slide > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-banner-slide-media {
  overflow: hidden;
  background: #222;
}

.home-banner-slide-media picture,
.home-banner-slide-media .home-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-banner-img {
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Nav: nền trắng, mũi tên cam, shadow nhẹ, tâm nút khớp mép banner */
.home-banner-frame > .home-banner-prev,
.home-banner-frame > .home-banner-next {
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: 50%;
  border-radius: 50%;
  background: #fff;
  color: #d04c58;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  --swiper-navigation-size: 16px;
  z-index: 5;
}

.home-banner-frame > .home-banner-prev:after,
.home-banner-frame > .home-banner-next:after {
  font-size: 14px;
  font-weight: 700;
  color: #d04c58;
}

.home-banner-frame > .home-banner-prev:hover,
.home-banner-frame > .home-banner-next:hover {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.home-banner-frame > .home-banner-prev:hover:after,
.home-banner-frame > .home-banner-next:hover:after {
  color: #b83b47;
}

.home-banner-frame > .home-banner-prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.home-banner-frame > .home-banner-next {
  right: 0;
  transform: translate(50%, -50%);
}

.home-banner-pagination {
  bottom: 12px !important;
}

.home-banner-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #fff;
  opacity: 0.55;
}

.home-banner-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #d04c58;
}

/* Fade: giữ chiều cao ổn định khi effect=fade */
.home-banner-swiper.swiper-fade .swiper-slide {
  pointer-events: none;
}
.home-banner-swiper.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

/* Skill: beetruyen-site-announce — .agents/skills/beetruyen-site-announce/SKILL.md */
.site-announce {
  margin: 0;
}

.site-announce__bar {
  --site-announce-speed: 400ms;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: #fff2f4;
  border: 2px solid var(--v2-border);
  border-radius: 999px;
  color: var(--v2-text);
}

.site-announce__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #d04c58;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-announce__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.site-announce__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-announce__label {
  white-space: nowrap;
}

.site-announce__body {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.site-announce__items {
  position: relative;
  min-height: 24px;
}

.site-announce__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--site-announce-speed) ease,
    visibility var(--site-announce-speed) ease;
}

.site-announce__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-announce--single .site-announce__items {
  min-height: 0;
}

.site-announce--single .site-announce__item {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-announce__marquee-wrapper {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.site-announce__marquee {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  width: max-content;
  will-change: transform;
}

.site-announce__text {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #543a3d;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

.site-announce__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-announce__cta:hover {
  color: #b83b47;
}

.site-announce__cta-arrow {
  font-size: 13px;
}

.lt-ong-tuyen-chon {
  padding: 0px 0 40px;
}

.lt-ong-tuyen-chon__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lt-ong-tuyen-chon__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-ong-tuyen-chon__mascot {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}

.lt-ong-tuyen-chon__title {
  margin: 0 0 1px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #d04c58;
}

.lt-ong-tuyen-chon__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #543a3d;
}

.lt-ong-tuyen-chon__more-mobile {
  margin-top: 12px;
}

.lt-ong-tuyen-chon__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d04c58;
  border-radius: 999px;
  background: #fff;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-tuyen-chon__more:hover,
.lt-ong-tuyen-chon__more:focus {
  background: #d04c58;
  border-color: #d04c58;
  color: #fff;
}

.lt-ong-tuyen-chon__slider {
  position: relative;
  padding: 0 12px;
  overflow: visible;
}

.lt-ong-tuyen-chon__slider .swiper-ong-tuyen-chon {
  overflow: visible;
  padding: 8px 0 12px;
}

.lt-ong-tuyen-chon__slider .lt-ong-tuyen-chon__swiper-wrapper {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.lt-ong-tuyen-chon__slider .swiper-slide {
  padding: 6px 5px 10px;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

.lt-ong-tuyen-chon__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d04c58;
  border-radius: 50%;
  background: #fff;
  color: #d04c58;
  box-shadow: 0 8px 20px rgba(42, 23, 26, 0.08);
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-tuyen-chon__nav:hover,
.lt-ong-tuyen-chon__nav:focus {
  background: #fff2f4;
  border-color: #d04c58;
  color: #d04c58;
  box-shadow: 0 10px 24px rgba(208, 76, 88, 0.16);
}

.lt-ong-tuyen-chon__nav--prev {
  left: 0;
}

.lt-ong-tuyen-chon__nav--next {
  right: 0;
}

.lt-ong-tuyen-chon__nav i {
  font-size: 14px;
  line-height: 1;
}

.lt-ong-tuyen-chon__pagination {
  position: static;
  margin-top: 20px;
  text-align: center;
}

.lt-ong-tuyen-chon__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  background: rgba(208, 76, 88, 0.25);
  opacity: 1;
}

.lt-ong-tuyen-chon__pagination .swiper-pagination-bullet-active {
  background: #d04c58;
}

.lt-comic-card {
  height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 4px 12px rgba(42, 23, 26, 0.07),
    0 2px 4px rgba(208, 76, 88, 0.08);
  overflow: hidden;
}

.lt-comic-card__media {
  position: relative;
}

.lt-comic-card__cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f9ecee;
}

.lt-comic-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lt-comic-card__crown {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 58px;
  height: 58px;
  pointer-events: none;
  overflow: hidden;
}

.lt-comic-card__crown-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fbe1d2;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.lt-comic-card__crown-icon {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 14px;
  line-height: 1;
  color: #d04c58;
  transform: rotate(-12deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lt-comic-card .mdv-logo-18-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
}

.lt-comic-card__body {
  padding: 14px 8px 8px;
}

.lt-comic-card__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #361f22;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  text-decoration: none;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lt-comic-card__title:hover,
.lt-comic-card__title:focus {
  color: #d04c58;
}

.lt-comic-card__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #8b4d3e;
}

.lt-comic-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.lt-comic-card__meta-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-comic-card__meta-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  flex: 0 0 1px;
  margin: 0 5px;
  background: #e4cfd3;
}

.lt-comic-card__meta-item--views {
  flex: 0 0 40%;
  max-width: 40%;
  color: #8b4d3e;
}

.lt-comic-card__meta-item--views i {
  font-size: 13px;
  color: #8b4d3e;
}

.lt-comic-card__meta-item--chapters {
  flex: 1 1 0;
  min-width: 0;
  color: #8b4d3e;
  justify-content: end;
}

.lt-comic-card__meta-item--chapters i {
  font-size: 11px;
  color: #d04c58;
}

.lt-ong-tuyen-chon-content {
  background: var(--white-color);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  box-shadow:
    rgba(208, 76, 88, 0.05) 0px 1px 0px,
    rgba(208, 76, 88, 0.05) 0px 0px 8px;
  overflow: hidden;
}

.lt-ong-ap-uu {
  padding: 0 0 44px;
}

.lt-ong-ap-uu-content {
  background: var(--white-color);
  border-radius: 16px;
  box-shadow:
    rgba(232, 93, 108, 0.06) 0px 1px 0px,
    rgba(232, 93, 108, 0.06) 0px 0px 10px;
  overflow: hidden;
}

.lt-ong-ap-uu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lt-ong-ap-uu__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-ong-ap-uu__mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}

.lt-ong-ap-uu__title {
  margin: 0 0 1px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #e85d6c;
}

.lt-ong-ap-uu__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #543a3d;
}

.lt-ong-ap-uu__more-mobile {
  margin-top: 12px;
}

.lt-ong-ap-uu__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #e85d6c;
  border-radius: 999px;
  background: #fff;
  color: #e85d6c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-ap-uu__more i {
  font-size: 11px;
}

.lt-ong-ap-uu__more:hover,
.lt-ong-ap-uu__more:focus {
  background: #e85d6c;
  border-color: #e85d6c;
  color: #fff;
}

.lt-ong-ap-uu__slider {
  position: relative;
  padding: 0 12px;
  overflow: visible;
}

.lt-ong-ap-uu__slider .swiper-ong-ap-uu {
  overflow: visible;
  padding: 8px 0 12px;
}

.lt-ong-ap-uu__slider .lt-ong-ap-uu__swiper-wrapper {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.lt-ong-ap-uu__slider .swiper-slide {
  padding: 6px 5px 10px;
  height: auto;
  box-sizing: border-box;
  overflow: visible;
}

.lt-ong-ap-uu__nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0d0d4;
  border-radius: 50%;
  background: #fff;
  color: #e85d6c;
  box-shadow: 0 8px 20px rgba(42, 23, 26, 0.08);
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-ap-uu__nav:hover,
.lt-ong-ap-uu__nav:focus {
  background: #fff7f8;
  border-color: #e85d6c;
  color: #e85d6c;
  box-shadow: 0 10px 24px rgba(232, 93, 108, 0.16);
}

.lt-ong-ap-uu__nav--prev {
  left: 0;
}

.lt-ong-ap-uu__nav--next {
  right: 0;
}

.lt-ong-ap-uu__nav i {
  font-size: 14px;
  line-height: 1;
}

.lt-ong-ap-uu__pagination {
  position: static;
  margin-top: 20px;
  text-align: center;
}

.lt-ong-ap-uu__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  background: rgba(232, 93, 108, 0.22);
  opacity: 1;
}

.lt-ong-ap-uu__pagination .swiper-pagination-bullet-active {
  background: #e85d6c;
}

.lt-comic-card-ap-u {
  height: 100%;
  padding: 8px 8px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(42, 23, 26, 0.06),
    0 1px 2px rgba(42, 23, 26, 0.04);
}

.lt-comic-card-ap-u__media {
  position: relative;
}

.lt-comic-card-ap-u__cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #f9ecee;
}

.lt-comic-card-ap-u__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lt-comic-card-ap-u .mdv-logo-18-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
}

.lt-comic-card-ap-u__body {
  padding: 10px 4px 2px;
}

.lt-comic-card-ap-u__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lt-comic-card-ap-u__title:hover,
.lt-comic-card-ap-u__title:focus {
  color: #e85d6c;
}

.lt-comic-card-ap-u__date {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #9a9a9a;
}

/* Skill: beetruyen-ong-lam-mat — homepage section + horizontal 2:3 cards */
.lt-ong-lam-mat {
  padding: 0 0 44px;
}

.lt-ong-lam-mat-content {
  background: var(--white-color);
  border-radius: 16px;
  box-shadow:
    rgba(208, 76, 88, 0.06) 0px 1px 0px,
    rgba(208, 76, 88, 0.06) 0px 0px 10px;
  overflow: hidden;
}

.lt-ong-lam-mat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lt-ong-lam-mat__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-ong-lam-mat__mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}

.lt-ong-lam-mat__title {
  margin: 0 0 2px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #d04c58;
}

.lt-ong-lam-mat__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  color: #2b2b2b;
}

.lt-ong-lam-mat__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d04c58;
  border-radius: 999px;
  background: #fff;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-lam-mat__more-mobile {
  margin-top: 12px;
}

.lt-ong-lam-mat__more i {
  font-size: 11px;
}

.lt-ong-lam-mat__more:hover,
.lt-ong-lam-mat__more:focus {
  background: #d04c58;
  border-color: #d04c58;
  color: #fff;
}

.lt-ong-lam-mat__col {
  display: flex;
  flex-direction: column;
}

.lt-comic-card-lam-mat {
  border-bottom: 1px solid #f2e2e5;
}

.lt-ong-lam-mat__col .lt-comic-card-lam-mat:last-child {
  border-bottom: 0;
}

.lt-comic-card-lam-mat__link {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.lt-comic-card-lam-mat__link:hover,
.lt-comic-card-lam-mat__link:focus {
  background: rgba(208, 76, 88, 0.04);
}

.lt-comic-card-lam-mat__media {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
}

.lt-comic-card-lam-mat__cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #ececec;
  box-shadow: 0 2px 8px rgba(42, 23, 26, 0.08);
}

.lt-comic-card-lam-mat__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lt-comic-card-lam-mat .mdv-logo-18-wrapper {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  margin: 0;
  transform: scale(0.72);
  transform-origin: top right;
}

.lt-comic-card-lam-mat__body {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 1px 0;
}

.lt-comic-card-lam-mat__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.lt-comic-card-lam-mat__title {
  flex: 0 1 auto;
  width: max-content;
  max-width: calc(100% - 48px);
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lt-comic-card-lam-mat__uu-dai {
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  margin-top: -2px;
  object-fit: contain;
  pointer-events: none;
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: no-preference) {
  .lt-comic-card-lam-mat__uu-dai {
    animation: ltOlmUuDaiPulse 2.4s ease-in-out infinite;
    transform-origin: center center;
  }
}

@keyframes ltOlmUuDaiPulse {
  0%,
  100% {
    transform: translateY(-4px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.05);
  }
}

.lt-comic-card-lam-mat__chapters {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lt-comic-card-lam-mat__chapter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.lt-comic-card-lam-mat__chapter-name {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #664e52;
  font-size: 13px;
  line-height: 1.4;
}

.lt-comic-card-lam-mat__chapter-time {
  flex: 0 0 auto;
  color: #9a9088;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.lt-comic-card-lam-mat__author {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #917679;
  font-size: 13px;
  line-height: 1.4;
}

.lt-comic-card-lam-mat__arrow {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #d04c58;
  font-size: 14px;
}

/* Skill: beetruyen-ong-ve-to — homepage section + FULL card */
.lt-ong-ve-to {
  padding: 0 0 40px;
}

.lt-ong-ve-to-content {
  background: var(--white-color);
  border-radius: 12px;
  box-shadow:
    rgba(208, 76, 88, 0.05) 0px 1px 0px,
    rgba(208, 76, 88, 0.05) 0px 0px 8px;
  overflow: hidden;
}

.lt-ong-ve-to__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lt-ong-ve-to__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lt-ong-ve-to__mascot {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}

.lt-ong-ve-to__title {
  margin: 0 0 1px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #d04c58;
}

.lt-ong-ve-to__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #543a3d;
}

.lt-ong-ve-to__more-mobile {
  margin-top: 12px;
}

.lt-ong-ve-to__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d04c58;
  border-radius: 999px;
  background: #fff;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lt-ong-ve-to__more i {
  font-size: 11px;
}

.lt-ong-ve-to__more:hover,
.lt-ong-ve-to__more:focus {
  background: #d04c58;
  border-color: #d04c58;
  color: #fff;
}

.lt-ong-ve-to__slider {
  position: relative;
  padding: 0 12px;
  overflow: visible;
}

.lt-ong-ve-to__slider .swiper-ong-ve-to {
  overflow: visible;
  padding: 8px 0 12px;
}

.lt-ong-ve-to__slider .lt-ong-ve-to__swiper-wrapper {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.lt-ong-ve-to__slider .swiper-slide {
  padding: 6px 5px 10px;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

.lt-ong-ve-to__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #d04c58;
  box-shadow: 0 8px 20px rgba(42, 23, 26, 0.12);
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.lt-ong-ve-to__nav:hover,
.lt-ong-ve-to__nav:focus {
  background: #fff2f4;
  color: #d04c58;
  box-shadow: 0 10px 24px rgba(208, 76, 88, 0.16);
}

.lt-ong-ve-to__nav--prev {
  left: 0;
}

.lt-ong-ve-to__nav--next {
  right: 0;
}

.lt-ong-ve-to__nav i {
  font-size: 14px;
  line-height: 1;
}

.lt-ong-ve-to__pagination {
  position: static;
  margin-top: 20px;
  text-align: center;
}

.lt-ong-ve-to__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  background: #d9d9d9;
  opacity: 1;
}

.lt-ong-ve-to__pagination .swiper-pagination-bullet-active {
  background: #d04c58;
}

.lt-comic-card-ong-ve-to__full {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 72px;
  height: 72px;
  pointer-events: none;
  overflow: hidden;
}

.lt-comic-card-ong-ve-to__full-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fbe1d2;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.lt-comic-card-ong-ve-to__full-label {
  position: absolute;
  top: 7px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #d04c58;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: rotate(-42deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.lt-comic-card-ong-ve-to__full-label i {
  font-size: 9px;
}

.lt-comic-card-ong-ve-to .lt-comic-card__meta,
.lt-comic-card-ong-ve-to .lt-comic-card__meta-item {
  color: #8b4d3e;
}
.lt-comic-card-ong-ve-to .lt-comic-card__meta-item i {
  color: #d04c58;
}

/* ==========================================================================
   Footer 3 cột — Làn Truyện
   ========================================================================== */
.nh-footer.lt-footer {
  background: var(--v2-footer);
  background-image: none;
  clip-path: none;
  padding-top: 40px;
  overflow: visible;
  margin-top: 0;
  min-height: auto;
}
.lt-footer-logo {
  display: block;
  max-height: 68px;
  width: auto;
  margin-bottom: 12px;
}
.lt-footer-slogan {
  color: var(--v2-text);
  font-size: 15px;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 0 18px;
}
.lt-footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
}
.lt-footer-social-btn:hover {
  background: var(--v2-primary);
  color: #fff;
}
.lt-footer-heading {
  color: var(--v2-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.lt-footer-links li {
  margin-bottom: 10px;
}
.lt-footer-links a {
  color: var(--v2-text);
  text-decoration: none;
  font-size: 15px;
}
.lt-footer-links a:hover {
  color: var(--v2-primary);
}
.lt-footer-link-pending {
  color: var(--v2-text);
  font-size: 15px;
  line-height: 1.45;
  display: inline-block;
  cursor: default;
}
.lt-ong-tuyen-chon {
  scroll-margin-top: var(--v2-header-h);
}
.lt-footer-fanpage {
  max-width: 340px;
  width: 100%;
  margin-top: 4px;
}
.lt-footer-fanpage-iframe {
  display: block;
  width: 100%;
  max-width: 340px;
  height: 130px;
  background: transparent;
}
.nh-footer.lt-footer .nh-footer-copyright {
  background: transparent;
  color: var(--v2-text-muted);
  margin-top: 28px;
}

/* Skill: beetruyen-thong-bao-tai-khoan — trang inbox */
.lt-tb-page {
  padding-top: 12px;
}
.lt-tb-shell {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  box-shadow: var(--v2-shadow);
  padding: 20px 22px 22px;
}
.lt-tb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lt-tb-head__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lt-tb-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d04c58;
  line-height: 1.15;
}
.lt-tb-badge[hidden] {
  display: none !important;
}
.lt-tb-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--v2-primary);
}
.lt-tb-mark-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v2-border);
  background: #fff;
  color: var(--v2-text-muted);
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.lt-tb-mark-all:hover:not(:disabled) {
  color: var(--v2-primary);
  border-color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.04);
}
.lt-tb-mark-all:active:not(:disabled) {
  transform: scale(0.98);
}
.lt-tb-mark-all:disabled {
  opacity: 0.55;
  cursor: default;
}
.lt-tb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.lt-tb-filter {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: #fff;
  color: var(--v2-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.lt-tb-filter:hover {
  color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.04);
}
.lt-tb-filter.is-active {
  color: #fff;
  background: var(--v2-primary);
  border-color: var(--v2-primary);
}
.lt-tb-list {
  border: 1px solid var(--v2-divider);
  border-radius: 14px;
  background: #fff;
  max-height: 640px;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 76, 88, 0.55) #fdeef0;
}
.lt-tb-list::-webkit-scrollbar {
  width: 10px;
}
.lt-tb-list::-webkit-scrollbar-track {
  background: #fdeef0;
  border-left: 1px solid var(--v2-divider);
  border-radius: 0 14px 14px 0;
}
.lt-tb-list::-webkit-scrollbar-thumb {
  background: rgba(208, 76, 88, 0.5);
  border-radius: 10px;
  border: 2px solid #fdeef0;
  min-height: 48px;
}
.lt-tb-list::-webkit-scrollbar-thumb:hover {
  background: var(--v2-primary);
}
.lt-tb-fade {
  transition: opacity 0.2s ease;
}
.lt-tb-fade.is-out,
.lt-tb-item.is-out,
.lt-tb-item__dot.is-out {
  opacity: 0;
}
.lt-tb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  text-decoration: none;
  color: var(--v2-text);
  border-bottom: 1px solid #f2e2e5;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
  position: relative;
}
.lt-tb-item:last-child {
  border-bottom: 0;
}
.lt-tb-item:hover {
  background: rgba(208, 76, 88, 0.04);
  color: var(--v2-text);
}
.lt-tb-item.is-unread {
  background: rgba(208, 76, 88, 0.05);
}
.lt-tb-item.is-unread:hover,
.lt-tb-item.is-active {
  background: rgba(208, 76, 88, 0.08);
}
.lt-tb-item.is-active {
  box-shadow: inset 3px 0 0 var(--v2-primary);
}
.lt-tb-item__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  background: var(--v2-primary);
}
.lt-tb-page .lt-notif-icon-comment {
  background: linear-gradient(145deg, #e06b76, #d04c58);
}
.lt-tb-page .lt-notif-icon-book {
  background: linear-gradient(145deg, #e8a05a, #d4782a);
}
.lt-tb-page .lt-notif-icon-gift {
  background: linear-gradient(145deg, #f0b429, #e08a1a);
}
.lt-tb-page .lt-notif-icon-heart {
  background: linear-gradient(145deg, #ff7a5c, #e84a3a);
}
.lt-tb-page .lt-notif-icon-system {
  background: linear-gradient(145deg, #8d696d, #634448);
}
.lt-tb-page .lt-notif-icon-ong,
.lt-tb-page .lt-notif-icon-combo {
  background: linear-gradient(145deg, #f0b429, #e08a1a);
}
.lt-tb-page .lt-notif-icon-bookshelf {
  background: linear-gradient(145deg, #e8a05a, #d4782a);
}
.lt-tb-page .lt-notif-icon-violation {
  background: linear-gradient(145deg, #c0392b, #8e2a21);
}
.lt-tb-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lt-tb-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--v2-primary);
}
.lt-tb-item__text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #361f22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lt-tb-item__text strong {
  font-weight: 700;
}
.lt-tb-item__text a {
  color: inherit;
  pointer-events: none;
  text-decoration: none;
}
.lt-tb-item__time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--v2-text-muted);
}
.lt-tb-item.is-unread .lt-tb-item__time {
  color: var(--v2-primary);
}
.lt-tb-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--v2-primary);
  transition: opacity 0.2s ease;
}
.lt-tb-detail {
  min-height: 420px;
  border: 1px solid var(--v2-divider);
  border-radius: 14px;
  background: #fff7f8;
  padding: 20px 22px 24px;
}
.lt-tb-back {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--v2-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.lt-tb-back:hover {
  color: var(--v2-hover);
}
.lt-tb-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.lt-tb-detail__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--v2-primary);
}
.lt-tb-detail__date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v2-text-muted);
}
.lt-tb-detail__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--v2-text);
  overflow-wrap: anywhere;
}
.lt-tb-detail__title strong,
.lt-tb-detail__title b {
  font-weight: 800;
  color: var(--v2-text);
}
.lt-tb-detail__title em,
.lt-tb-detail__title i {
  font-style: italic;
  font-weight: 600;
}
.lt-tb-detail__title a,
.lt-tb-detail__body a {
  color: var(--v2-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(208, 76, 88, 0.35);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.lt-tb-detail__title a:hover,
.lt-tb-detail__body a:hover {
  color: var(--v2-hover);
  border-bottom-color: var(--v2-hover);
}
.lt-tb-detail__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #543a3d;
  overflow-wrap: anywhere;
}
.lt-tb-detail__body p {
  margin: 0 0 12px;
}
.lt-tb-detail__body p:last-child {
  margin-bottom: 0;
}
.lt-tb-detail__body strong,
.lt-tb-detail__body b {
  font-weight: 700;
  color: var(--v2-text);
}
.lt-tb-detail__body em,
.lt-tb-detail__body i {
  font-style: italic;
}
.lt-tb-detail__body ul,
.lt-tb-detail__body ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}
.lt-tb-detail__body ul {
  list-style: disc;
}
.lt-tb-detail__body ol {
  list-style: decimal;
}
.lt-tb-detail__body li {
  margin: 0 0 6px;
}
.lt-tb-detail__body li:last-child {
  margin-bottom: 0;
}
.lt-tb-detail__body img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 8px;
}
.lt-tb-detail__body span {
  color: inherit;
}
.lt-tb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d04c58;
  color: #d04c58;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lt-tb-cta:hover {
  background: #d04c58;
  color: #fff;
}
.lt-tb-empty,
.lt-tb-detail__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 280px;
  padding: 28px 16px;
  color: var(--v2-text-muted);
}
.lt-tb-empty i,
.lt-tb-detail__placeholder i {
  font-size: 1.8rem;
  color: var(--v2-primary);
}
.lt-tb-empty p,
.lt-tb-detail__placeholder p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 28ch;
}
@media (prefers-reduced-motion: reduce) {
  .lt-tb-item,
  .lt-tb-filter,
  .lt-tb-mark-all,
  .lt-tb-cta,
  .lt-tb-fade,
  .lt-tb-item__dot,
  .lt-tb-detail__title a,
  .lt-tb-detail__body a {
    transition: none;
  }
}

.mvd-sps-chuong-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  padding: 28px 16px;
}
.mvd-sps-sap-phat-hanh-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e85d6c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.mvd-sps-sap-phat-hanh-badge--search {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.68rem;
  padding: 2px 8px;
}
.mvd-sps-chuong-empty__title {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v2-text, #222);
}
.mvd-sps-chuong-empty__text,
.mvd-sps-chuong-empty__date {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--v2-text-muted, #6c757d);
}
.mvd-sps-chuong-empty__date {
  font-weight: 600;
  color: #e85d6c;
}
.mdv-header-find-form-name .mvd-sps-sap-phat-hanh-badge--search {
  white-space: nowrap;
}

/* Skill: beetruyen-page-xu-huong — .claude/skills/beetruyen-page-xu-huong/SKILL.md */
.lt-xu-huong {
  padding-top: 8px;
}

.lt-xu-huong__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 16px;
  background: var(--v2-card);
  box-shadow: var(--v2-shadow, 0 4px 18px rgba(63, 38, 41, 0.06));
}

.lt-xu-huong__hero .row {
  flex-wrap: nowrap;
  width: 100%;
}

.lt-xu-huong__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 48px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 10px solid rgba(251, 225, 210, 0.7);
  pointer-events: none;
}

.lt-xu-huong-content {
  background: var(--v2-card, #fff);
  border-radius: 12px;
  box-shadow:
    rgba(208, 76, 88, 0.05) 0 1px 0,
    rgba(208, 76, 88, 0.05) 0 0 8px;
}

.lt-xu-huong__mascot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.lt-xu-huong__mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lt-xu-huong__mascot {
    animation: lt-xu-huong-bob 3.2s ease-in-out infinite;
  }
}

@keyframes lt-xu-huong-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
  }
}

.lt-xu-huong__copy {
  min-width: 0;
}

.lt-xu-huong__title {
  margin: 0;
  overflow: hidden;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lt-xu-huong__subtitle {
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #543a3d;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lt-xu-huong__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--v2-border, #f4c6ca);
  background: #fff;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lt-xu-huong__count i {
  font-size: 13px;
}

.lt-xu-huong__empty {
  padding: 36px 12px 28px;
  text-align: center;
}

.lt-xu-huong__empty-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--v2-text, #3f2629);
}

.lt-xu-huong__empty-text {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--v2-text-muted, #846367);
}

.lt-xu-huong__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid #d04c58;
  border-radius: 999px;
  background: #fff;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.lt-xu-huong__home:hover,
.lt-xu-huong__home:focus {
  background: #d04c58;
  color: #fff;
}

.lt-xu-huong__pager {
  margin-top: 28px;
}

.lt-xu-huong__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lt-xu-huong__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-text, #3f2629);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

a.lt-xu-huong__page:hover,
a.lt-xu-huong__page:focus {
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.08);
  color: #d04c58;
}

.lt-xu-huong__page.is-active {
  border-color: #d04c58;
  background: #d04c58;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .lt-xu-huong__home,
  .lt-xu-huong__page {
    transition: none;
  }
  .lt-xu-huong__mascot {
    animation: none;
  }
}

/* Trang danh mục truyện — sources/san-pham.php */
.lt-chuyen-muc {
  padding-top: 8px;
  padding-bottom: 40px;
}

.lt-chuyen-muc .lt-xu-huong__subtitle {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

.lt-chuyen-muc-content.lt-xu-huong-content {
  overflow: visible;
}

.lt-chuyen-muc__filter-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-text-muted, #846367);
}

.lt-chuyen-muc__filter-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 16px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 999px;
  background-color: #fff2f4;
  color: var(--v2-text, #3f2629);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.lt-chuyen-muc__filter-select:focus {
  border-color: #d04c58;
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08);
}

.lt-chuyen-muc__genre-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 16px;
  background: #fff2f4;
  scrollbar-width: thin;
}

.lt-chuyen-muc__genre-inner {
  min-width: min-content;
}

.lt-chuyen-muc__genre-all,
.lt-chuyen-muc__genre-chip label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-text, #3f2629);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.lt-chuyen-muc__genre-all {
  font-family: inherit;
  appearance: none;
}

.lt-chuyen-muc__genre-chip {
  position: relative;
  margin: 0;
  padding: 0;
}

.lt-chuyen-muc__genre-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.lt-chuyen-muc__genre-all:hover,
.lt-chuyen-muc__genre-chip label:hover {
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.06);
}

.lt-chuyen-muc__genre-all.is-active,
.lt-chuyen-muc__genre-chip input:checked + label {
  border-color: #d04c58;
  background: #d04c58;
  color: #fff;
}

.lt-chuyen-muc__genre-chip input:focus + label,
.lt-chuyen-muc__genre-all:focus {
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.16);
}

.lt-chuyen-muc__empty {
  color: var(--v2-text-muted, #846367);
  font-size: 15px;
}

button.lt-chuyen-muc__page-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

button.lt-chuyen-muc__page-btn.lt-xu-huong__page {
  border: 1px solid var(--v2-border, #f4c6ca);
  background: var(--v2-card, #fff);
}

button.lt-chuyen-muc__page-btn.lt-xu-huong__page:hover,
button.lt-chuyen-muc__page-btn.lt-xu-huong__page:focus {
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.08);
  color: var(--v2-text, #3f2629);
}

/* Skill: beetruyen-san-pham-show-v2 — .claude/skills/beetruyen-san-pham-show-v2/SKILL.md
   ==========================================================================
   Trang thông tin truyện v2 — .lt-sps-v2 (desktop)
   ========================================================================== */
.lt-sps-v2 {
  position: relative;
  padding: 6px 0 48px;
  overflow: hidden;
}

.lt-sps-v2 > .container {
  position: relative;
  z-index: 1;
}

.lt-sps-v2__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.lt-sps-v2__deco--honeycomb {
  top: 40px;
  right: -40px;
  width: min(42vw, 420px);
  height: auto;
  opacity: 0.28;
}

.lt-sps-v2__deco--flora-l {
  top: 180px;
  left: -30px;
  width: min(22vw, 220px);
  height: auto;
}

.lt-sps-v2__deco--flora-r {
  top: 520px;
  right: -20px;
  width: min(20vw, 200px);
  height: auto;
}

.lt-sps-v2__deco--branch {
  bottom: 40px;
  left: 4%;
  width: min(18vw, 180px);
  height: auto;
  opacity: 0.45;
}

.lt-sps-v2__crumb {
  margin: 4px 0 18px;
  overflow: hidden;
}

.lt-sps-v2__crumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: #8b4d3e;
  overflow: hidden;
  white-space: nowrap;
}

.lt-sps-v2__crumb-list li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.lt-sps-v2__crumb-list li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--v2-border);
  font-weight: 400;
}

.lt-sps-v2__crumb-list a {
  color: #8b4d3e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lt-sps-v2__crumb-list a:hover,
.lt-sps-v2__crumb-list a:focus {
  color: var(--v2-primary);
}

.lt-sps-v2__crumb-list .lt-sps-v2__crumb-current {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  padding-left: 6px;
  padding-right: 4px;
  overflow: hidden;
  color: var(--v2-primary);
  font-weight: 700;
}

.lt-sps-v2__crumb-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-sps-v2__hero,
.lt-sps-v2__panel {
  position: relative;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  box-shadow: var(--v2-shadow);
}

.lt-sps-v2__hero {
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px 28px 45px 80px;
}

.lt-sps-v2__hero-row,
.lt-sps-v2__panels {
  flex-wrap: nowrap;
}

.lt-sps-v2__hero-cover {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.lt-sps-v2__hero-info {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.lt-sps-v2__panel-intro {
  flex: 0 0 41.66666667%;
  width: 41.66666667%;
  max-width: 41.66666667%;
}

.lt-sps-v2__panel-toc {
  flex: 0 0 58.33333333%;
  width: 58.33333333%;
  max-width: 58.33333333%;
}

.lt-sps-v2__cover-wrap {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.lt-sps-v2__cover-link {
  overflow: hidden;
  border-radius: 12px;
}

.lt-sps-v2__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
  background: #f9ecee;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.lt-sps-v2__free {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 72px;
  height: 72px;
  pointer-events: none;
  overflow: hidden;
}

.lt-sps-v2__free-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fbe1d2;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.lt-sps-v2__free-label {
  position: absolute;
  top: 23%;
  left: 3%;
  width: 48px;
  color: #d04c58;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  transform: rotate(-42deg);
  transform-origin: center center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Sticker ƯU ĐÃI trên bìa (góc trên trái) */
.lt-sps-v2__hoan-ong {
  position: absolute;
  top: 6px;
  left: 4px;
  z-index: 4;
  display: block;
  width: 72px;
  height: auto;
  max-width: 42%;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(88, 36, 44, 0.28));
}
@media (prefers-reduced-motion: no-preference) {
  .lt-sps-v2__hoan-ong {
    animation: ltSpsHoanOngIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@keyframes ltSpsHoanOngIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lt-sps-v2__bookmark {
  position: absolute;
  left: 14px;
  bottom: -25px;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  font-size: 34px;
  filter: drop-shadow(0 4px 5px rgba(184, 59, 71, 0.35));
}

.lt-sps-v2__bookmark > i {
  background: linear-gradient(180deg, #f09d9b 0%, #e06b76 45%, #d04c58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lt-sps-v2__title {
  margin: 0 0 18px;
  color: var(--v2-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lt-sps-v2__meta {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.lt-sps-v2__meta li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.lt-sps-v2__meta li i {
  width: 18px;
  color: var(--v2-text-muted);
  text-align: center;
}

.lt-sps-v2__meta-label {
  min-width: 7.5em;
  color: var(--v2-text-muted);
  font-weight: 600;
}

.lt-sps-v2__meta-label::after {
  content: ":";
}

.lt-sps-v2__meta-value {
  color: var(--v2-text);
}

.lt-sps-v2__meta-value--accent {
  color: var(--v2-primary);
  text-decoration: none;
}

.lt-sps-v2__meta-value--accent:hover,
.lt-sps-v2__meta-value--accent:focus {
  color: var(--v2-hover);
}

.lt-sps-v2__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef6ee;
  color: #4f7d55;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.lt-sps-v2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  text-transform: capitalize;
}

.lt-sps-v2__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  background: #fff;
  color: var(--v2-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.lt-sps-v2__tag:hover,
.lt-sps-v2__tag:focus {
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.04);
  color: #d04c58;
}

.lt-sps-v2__utils {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 20px;
}

.lt-sps-v2__util {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v2-text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lt-sps-v2__util:hover,
.lt-sps-v2__util:focus {
  color: var(--v2-primary);
}

.lt-sps-v2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.lt-sps-v2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lt-sps-v2__btn--primary {
  background: linear-gradient(180deg, #e68c92 0%, #d04c58 100%);
  border: 1px solid #b83b47;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(148, 42, 54, 0.28),
    0 8px 16px rgba(208, 76, 88, 0.35);
  text-shadow: 0 1px 1px rgba(148, 42, 54, 0.3);
}

.lt-sps-v2__btn--primary:hover,
.lt-sps-v2__btn--primary:focus {
  background: linear-gradient(180deg, #f09d9b 0%, #d04c58 100%);
  border-color: #c4414d;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(148, 42, 54, 0.24),
    0 10px 20px rgba(208, 76, 88, 0.42);
}

.lt-sps-v2__btn--outline {
  background: #fff;
  border: 1.5px solid #d04c58;
  color: #d04c58;
}

.lt-sps-v2__btn--outline:hover,
.lt-sps-v2__btn--outline:focus {
  background: rgba(208, 76, 88, 0.08);
  color: #b83b47;
}

.lt-sps-v2__btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.lt-sps-v2__btn-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
}

.lt-sps-v2__btn--bought {
  background: #fff2f4;
  border: 1px solid var(--v2-border);
  color: var(--v2-text-muted);
  cursor: default;
}

.lt-sps-v2__btn--gear {
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--v2-border);
  color: var(--v2-text-muted);
}

.lt-sps-v2__btn--gear:hover,
.lt-sps-v2__btn--gear:focus {
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.08);
  color: #d04c58;
}

.lt-sps-v2__panels {
  margin-top: 4px;
}

.lt-sps-v2__panel {
  height: 100%;
  overflow: hidden;
  padding: 22px 24px 28px;
}

/* Open-book: hai panel dính liền như 2 trang sách mở (desktop) */
.lt-sps-v2__panel-intro .lt-sps-v2__panel {
  border-right: 0;
  border-radius: 18px 0 0 18px;
}

.lt-sps-v2__panel-toc .lt-sps-v2__panel {
  border-left: 1px dashed #f0c0c5;
  border-radius: 0 18px 18px 0;
}

.lt-sps-v2__panel-intro .lt-sps-v2__panel::after,
.lt-sps-v2__panel-toc .lt-sps-v2__panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
}

.lt-sps-v2__panel-intro .lt-sps-v2__panel::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(63, 38, 41, 0.06),
    rgba(63, 38, 41, 0)
  );
}

.lt-sps-v2__panel-toc .lt-sps-v2__panel::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(63, 38, 41, 0.09),
    rgba(63, 38, 41, 0)
  );
}

.lt-sps-v2__panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--v2-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.lt-sps-v2__intro {
  max-height: 9.3em;
  overflow: hidden;
  color: #543a3d;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.lt-sps-v2__intro p span {
  background: transparent !important;
}
/* Lớp mờ dần ở đáy khi mô tả đang thu gọn, gợi ý phía dưới còn nội dung */
.lt-sps-v2__intro:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--v2-card)
  );
}

.lt-sps-v2__intro p {
  margin: 0 0 10px;
}

.lt-sps-v2__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #d04c58;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lt-sps-v2__more:hover,
.lt-sps-v2__more:focus {
  color: #b83b47;
}

.lt-sps-v2__more .fa-chevron-right {
  transition: transform 0.25s ease;
}

.lt-sps-v2__more[data-expanded="true"] .fa-chevron-right {
  transform: rotate(90deg);
}

.lt-sps-v2__toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lt-sps-v2__toc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #f2e2e5;
  color: var(--v2-text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lt-sps-v2__toc-row:hover,
.lt-sps-v2__toc-row:focus {
  background: rgba(208, 76, 88, 0.04);
}

.lt-sps-v2__toc-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-sps-v2__toc-row.is-latest .lt-sps-v2__toc-name {
  color: var(--v2-primary);
}

.lt-sps-v2__toc-date {
  flex: 0 0 auto;
  color: #917679;
  font-size: 13px;
  font-weight: 500;
}

.lt-sps-v2__toc-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #4f7d55;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.lt-sps-v2__toc-go {
  flex: 0 0 auto;
  color: var(--v2-border);
  font-size: 12px;
}

.lt-sps-v2__pager {
  margin-top: 22px;
  width: 100%;
}

.lt-sps-v2__pages,
.lt-sps-v2__page-list,
.lt-sps-v2 .mvd-sps-chuong-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lt-sps-v2 .mvd-sps-chuong-page-btn,
.lt-sps-v2 .mvd-sps-chuong-prev,
.lt-sps-v2 .mvd-sps-chuong-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border: 1.5px solid transparent !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--v2-text) !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}

.lt-sps-v2 .mvd-sps-chuong-page-btn:hover:not(.is-active),
.lt-sps-v2 .mvd-sps-chuong-prev:hover:not(:disabled),
.lt-sps-v2 .mvd-sps-chuong-next:hover:not(:disabled) {
  background: transparent !important;
  color: #d04c58 !important;
  border-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.lt-sps-v2 .mvd-sps-chuong-page-btn.is-active,
.lt-sps-v2 .mvd-sps-chuong-page-btn.active {
  border-color: #d04c58 !important;
  background: transparent !important;
  color: #d04c58 !important;
  box-shadow: none !important;
  transform: none !important;
}

.lt-sps-v2 .lt-sps-v2__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 1.25em;
  height: auto;
  min-height: 0;
  padding: 0 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--v2-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  box-shadow: none !important;
  cursor: default;
}

.lt-sps-v2 .mvd-sps-chuong-prev:disabled,
.lt-sps-v2 .mvd-sps-chuong-next:disabled {
  display: none !important;
}

.lt-sps-v2__sprite {
  display: inline-block;
  flex: 0 0 auto;
  background-image: url("../images/vector-1.png");
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.lt-sps-v2__sprite--bee {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 0;
  width: 150px;
  height: 128px;
  background-size: 480px 320px;
  background-position: 6% 4%;
}

.lt-sps-v2__sprite--jar {
  width: 36px;
  height: 36px;
  background-size: 220px 147px;
  background-position: 48% 6%;
}

.lt-sps-v2__sprite--hex {
  width: 36px;
  height: 36px;
  background-size: 200px 133px;
  background-position: 100% 4%;
}

.lt-sps-v2__sprite--books {
  position: absolute;
  right: 12px;
  bottom: 4px;
  width: 168px;
  height: 110px;
  background-size: 420px 280px;
  background-position: 78% 100%;
  opacity: 0.9;
}

.lt-sps-v2__badge--updating {
  background: #fff2f4;
  color: #d04c58;
}

.lt-sps-v2__badge--pause {
  background: #f9eef0;
  color: #846367;
}

.lt-sps-v2__more {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.lt-sps-v2__btn--gear.dropdown-toggle::after {
  display: none;
}

.lt-sps-v2 .mvd-sps-chuong-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #f2e2e5;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.lt-sps-v2 .mvd-sps-chuong-row:hover {
  background: rgba(208, 76, 88, 0.04);
  color: inherit;
}

.lt-sps-v2 .mvd-sps-chuong-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
}
.mvd-sps-chuong-row:hover .mvd-sps-chuong-name {
  color: var(--v2-primary);
}
.lt-sps-v2 .mvd-sps-chuong-row.is-latest .mvd-sps-chuong-name {
  color: var(--v2-primary);
}

@media (prefers-reduced-motion: reduce) {
  .lt-sps-v2__btn,
  .lt-sps-v2__tag,
  .lt-sps-v2__toc-row,
  .lt-sps-v2__page,
  .lt-sps-v2__util,
  .lt-sps-v2__crumb-list a {
    transition: none;
  }
}

.lt-sps-v2__flower {
  position: absolute;
  top: initial;
  left: -63px;
  bottom: 0;
  width: 100%;
  max-width: 58px;
  z-index: -1;
  transform: rotate(-10deg);
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  -ms-transform: rotate(-10deg);
  -o-transform: rotate(-10deg);
  pointer-events: none;
  user-select: none;
}

.lt-sps-v2__bee {
  position: absolute;
  top: 20%;
  left: initial;
  right: 30px;
  width: 100%;
  max-width: 100px;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.lt-sps-v2__bee-small {
  position: relative;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  pointer-events: none;
  user-select: none;
}
.lt-sps-v2__line {
  position: relative;
  width: 100%;
  max-width: 150px;
  pointer-events: none;
  user-select: none;
}
.lt-sps-v2__jar {
  position: absolute;
  top: initial;
  left: initial;
  bottom: 10%;
  right: 30px;
  width: 100%;
  max-width: 200px;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.lt-sps-v2__bee-inner {
  position: relative;
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Modal báo lỗi truyện — .lt-report-modal
   ========================================================================== */
.lt-report-modal {
  z-index: 1060;
}

.lt-report-modal .modal-dialog {
  max-width: 400px;
  margin: 1rem auto;
}

.lt-report-modal__content {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-strong);
  overflow: hidden;
}

.lt-report-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--v2-divider);
  background: linear-gradient(180deg, #fff7f8 0%, var(--v2-card) 100%);
}

.lt-report-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lt-report-modal__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(208, 76, 88, 0.1);
  color: var(--v2-primary);
  font-size: 15px;
}

.lt-report-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--v2-text);
  line-height: 1.25;
}

.lt-report-modal__close {
  flex-shrink: 0;
  opacity: 0.55;
  padding: 0.5rem;
}

.lt-report-modal__close:hover {
  opacity: 1;
}

.lt-report-modal__body {
  padding: 12px 16px 4px;
}

.lt-report-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--v2-bg);
  border: 1px solid var(--v2-divider);
}

.lt-report-modal__meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.lt-report-modal__meta-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v2-text-muted);
}

.lt-report-modal__meta-value {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--v2-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-report-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lt-report-modal__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-text);
}

.lt-report-modal__textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  background: var(--v2-card);
  color: var(--v2-text);
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lt-report-modal__textarea::placeholder {
  color: #a8898d;
}

.lt-report-modal__textarea:focus {
  outline: none;
  border-color: var(--v2-primary);
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08);
}

.lt-report-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: none;
}

.lt-report-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.lt-report-modal__btn:active {
  transform: scale(0.98);
}

.lt-report-modal__btn--ghost {
  background: transparent;
  color: var(--v2-text-muted);
  border: 1px solid var(--v2-border);
}

.lt-report-modal__btn--ghost:hover {
  background: rgba(208, 76, 88, 0.04);
  color: var(--v2-text);
  border-color: var(--v2-border);
}

.lt-report-modal__btn--primary {
  background: var(--v2-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(208, 76, 88, 0.25);
}

.lt-report-modal__btn--primary:hover:not(:disabled) {
  background: var(--v2-hover);
}

.lt-report-modal__btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.dark-mode .lt-report-modal__content {
  background: #2c2f34;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .lt-report-modal__header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 100%
  );
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .lt-report-modal__title {
  color: #f9eef0;
}

body.dark-mode .lt-report-modal__meta {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .lt-report-modal__meta-value,
body.dark-mode .lt-report-modal__label {
  color: #f9eef0;
}

body.dark-mode .lt-report-modal__textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f9eef0;
}

body.dark-mode .lt-report-modal__btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  color: #cab5b8;
}

@media (prefers-reduced-motion: reduce) {
  .lt-report-modal__btn,
  .lt-report-modal__textarea {
    transition: none;
  }
}

/* ==========================================================================
   #toTop — nút back-to-top restyle theo phong cách Mộng Đào Viên
   (ghi đè rule trong style.css compile từ main.scss: nền đỏ #c01627, vuông)
   - Kính mờ + viền kem + icon cam, đồng bộ bottom bar trang đọc chương.
   - Đã dỜI vào trong .wrapper (sources/templates/css.php) nên z-index 890
     luôn thấp hơn bottom bar mobile (z-index 1040).
   ========================================================================== */
#toTop {
  right: 16px;
  bottom: 24px;
  z-index: 890; /* dưới bottom bar mobile (1040) */
  width: 42px;
  height: 42px;
  font-size: 16px;
  color: #d04c58;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(244, 198, 202, 0.55);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(63, 38, 41, 0.14);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  #toTop {
    background: #ffffff;
  }
}

#toTop:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(63, 38, 41, 0.18);
}

#toTop:active {
  transform: scale(0.94);
}

/* trang đọc chương trên mobile: đẩy nút lên trên bottom bar, khỏi bị che */
@media (max-width: 767.98px) {
  body.san-pham-detail-v2 #toTop {
    right: 12px;
    bottom: calc(84px + constant(safe-area-inset-bottom));
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* dark mode */
body.dark-mode #toTop {
  background: rgba(44, 47, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  body.dark-mode #toTop {
    background: #2c2f34;
  }
}

body.dark-mode #toTop:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
.mdv-san-pham-show {
  padding-top: 0;
}

/* ==========================================================================
   TRANG PROFILE — Design System v2
   Scope: profile.php + sidebar/offcanvas dùng chung khu vực tài khoản
   ========================================================================== */

/* ----- Cover & layout ----- */
.msv-profile-cover-art {
  width: 100%;
  height: 320px;
  position: relative;
  z-index: 1;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.msv-profile-cover-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 249, 0) 0%,
    var(--v2-bg) 100%
  );
  pointer-events: none;
}

section.msv-profile-content.mdv-profile {
  position: relative;
  margin-top: -72px;
  z-index: 2;
  padding-bottom: 88px;
  overflow: visible;
}

.mdv-profile-box-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d04c58;
  line-height: 1.15;
}

/* ----- Sidebar desktop ----- */
.mdv-profile-sidebar-box {
  top: calc(var(--v2-header-h) + 24px);
  z-index: 5;
}

.mdv-profile-sidebar-box .list-group {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  box-shadow: var(--v2-shadow);
  overflow: hidden;
  padding: 6px;
}

/* ----- Sidebar accordion groups ----- */
.mdv-sidebar-group {
  margin: 2px 0 6px;
}

.mdv-sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: rgba(208, 76, 88, 0.05);
  padding: 0.48rem 0.7rem;
  color: var(--v2-text-muted, #846367);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  -webkit-transition:
    background 0.2s ease,
    color 0.2s ease;
  -moz-transition:
    background 0.2s ease,
    color 0.2s ease;
  -ms-transition:
    background 0.2s ease,
    color 0.2s ease;
  -o-transition:
    background 0.2s ease,
    color 0.2s ease;
    margin-bottom: 5px;
}

.mdv-sidebar-group-toggle:hover {
  color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.09);
}

.mdv-sidebar-group.is-open > .mdv-sidebar-group-toggle {
  background: rgba(208, 76, 88, 0.1);
  color: var(--v2-primary);
}

.mdv-sidebar-group-label {
  text-align: left;
}

.mdv-sidebar-group-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.mdv-sidebar-group.is-open
  > .mdv-sidebar-group-toggle
  .mdv-sidebar-group-chevron {
  transform: rotate(180deg);
}

.mdv-sidebar-group-body {
  display: none;
}

.mdv-sidebar-group.is-open > .mdv-sidebar-group-body {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .mdv-sidebar-group-chevron,
  .mdv-sidebar-group-toggle {
    transition: none;
  }
}

.mdv-profile-canvas-group-label {
  list-style: none;
  margin: 0.65rem 0 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(208, 76, 88, 0.05);
  color: var(--v2-text-muted, #846367);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mdv-profile-canvas-group-label:first-child {
  margin-top: 0;
}

.mdv-profile-sidebar-box .list-group-item {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  color: var(--v2-text);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mdv-profile-sidebar-box .list-group-item-title {
  font-size: 0.95rem;
  color: var(--v2-text);
}

.mdv-profile-sidebar-box .list-group-item:hover {
  background: rgba(208, 76, 88, 0.04);
  color: var(--v2-primary);
}

.mdv-profile-sidebar-box .list-group-item.active {
  color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.08);
  background-image: none;
  border-color: transparent;
}

.mdv-profile-sidebar-box .list-group-item-title.active {
  color: var(--v2-primary);
}

.mdv-profile-sidebar-box .menu-admin-tool {
  color: #c0392b !important;
}

.mdv-profile-sidebar-box #logout-link {
  color: #c0392b;
  border: 1px solid #f0d0c4;
  background: var(--v2-card);
  margin-top: 4px;
}

.mdv-profile-sidebar-box #logout-link:hover {
  background: rgba(192, 57, 43, 0.04);
  color: #c0392b;
}

.mdv-profile-sidebar-box .so-thong-bao-sidebar .badge {
  background: var(--v2-primary) !important;
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.mdv-profile-sidebar-name {
  color: var(--v2-text);
  font-weight: 700;
}

.mdv-profile-sidebar-avatar-image {
  max-width: 96px;
}

/* ----- Content cards ----- */
.mdv-profile-content-information,
.mdv-profile-content-change-info {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  box-shadow: var(--v2-shadow);
}

.mdv-profile-content-information-item-card-info {
  font-size: 0.92rem;
  color: var(--v2-text);
  line-height: 1.5;
}

.item-card-info-title {
  min-width: 132px;
  color: var(--v2-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.item-card-info-title i {
  font-size: 0.45rem;
  color: var(--v2-primary);
}

.mdv-profile-content-information-item-card-info a {
  color: var(--v2-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mdv-profile-content-information-item-card-info a:hover {
  color: var(--v2-hover);
}

/* ----- Section headings trong form ----- */
.mdv-profile-content-change-info-tdyt-box-title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d04c58;
  border-left: 3px solid var(--v2-primary);
  background: transparent;
}

.mdv-profile-content-change-info-tdyt-box-title-bg {
  display: none;
}

.mdv-profile-content-change-info-tdyt-content .form-control,
.mdv-profile-content-change-info-tdyt-content .form-input-text,
.comment-content-hiep,
.mdv-profile-content-change-info-tdyt-content .emojionearea,
.mdv-profile-content-change-info-tdyt-content
  .emojionearea
  .emojionearea-editor {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  color: var(--v2-text);
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mdv-profile-content-change-info-tdyt-content .form-control:focus,
.mdv-profile-content-change-info-tdyt-content .form-input-text:focus,
.mdv-profile-content-change-info-tdyt-content .emojionearea.focused {
  border-color: var(--v2-primary);
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08);
}

.mdv-profile-content-change-info-tdyt-content .form-control::placeholder,
.mdv-profile-content-change-info-tdyt-content .form-input-text::placeholder {
  color: #a8898d;
}

.password-input-2 {
  height: 48px !important;
}

/* ----- Buttons ----- */
.mdv-profile .btn-mdv-button-1,
.mdv-profile-content .btn-mdv-button-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 120px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--v2-primary);
  background-image: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--v2-shadow);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.mdv-profile .btn-mdv-button-1:hover,
.mdv-profile-content .btn-mdv-button-1:hover {
  background: var(--v2-hover);
  background-image: none;
  color: #fff;
}

.mdv-profile .btn-mdv-button-1:active,
.mdv-profile-content .btn-mdv-button-1:active {
  transform: scale(0.98);
}

#btnOpenOngDeposit {
  background: linear-gradient(135deg, #e06b76 0%, #d04c58 100%);
  box-shadow:
    0 6px 0 #b83b47,
    0 10px 20px rgba(208, 76, 88, 0.22);
}

#btnOpenOngDeposit:hover {
  background: linear-gradient(135deg, #e68c92 0%, #d04c58 100%);
}

#btnOpenOngDeposit:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #b83b47,
    0 6px 12px rgba(208, 76, 88, 0.18);
}

.btn-tai-avatar,
.btn-tai-anh-bia {
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--v2-text);
  background: var(--v2-card);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-tai-avatar:hover,
.btn-tai-anh-bia:hover {
  color: var(--v2-primary);
  border-color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.04);
}

/* ----- User card (cột avatar) ----- */
.mdv-profile-user {
  margin-top: 0;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  box-shadow: var(--v2-shadow);
}

.mdv-profile-user-top {
  background: linear-gradient(
    180deg,
    #fff2f4 0%,
    #fff2f4 55%,
    var(--v2-card) 100%
  );
  border-radius: 0;
  padding-top: 8px;
}

.mdv-profile-user-top-cover-art {
  opacity: 0.35;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.mdv-profile-user-top-avatar-box {
  margin-top: -36px;
}

.mdv-profile-user-top-avatar {
  max-width: 88px;
}

.mdv-profile-user-bottom-name {
  color: var(--v2-text);
  font-weight: 800;
}

.mdv-profile-user-bottom-rank img {
  max-width: 160px;
}

.mdv-profile-user-info-table tr td {
  padding: 6px 10px;
  border-bottom: 1px solid #f2e2e5;
}

.mdv-profile-user-info-table tr:last-child td {
  border-bottom: 0;
}

.mdv-profile-user-info-table tr td:nth-child(1) {
  color: var(--v2-text-muted);
  font-weight: 600;
}

.mdv-profile-user-info-table tr td:nth-child(2) {
  color: var(--v2-primary);
  font-weight: 700;
}

.rainbow-text {
  color: var(--v2-primary) !important;
}

/* ----- Ví Ong ----- */
.mdv-ong-wallet-box {
  border-color: rgba(208, 76, 88, 0.18);
  background: linear-gradient(180deg, #fff7f8 0%, var(--v2-card) 100%);
}

.mdv-ong-wallet-balance strong {
  color: #d04c58 !important;
  font-weight: 800;
}

.mdv-ong-wallet-box .table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.mdv-ong-wallet-box .table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v2-text-muted);
  border-bottom: 1px solid #f2e2e5;
}

.mdv-ong-wallet-box .table td {
  border-bottom: 1px solid #f2e2e5;
  color: var(--v2-text);
}

.mdv-ong-wallet-box .table tr:last-child td {
  border-bottom: 0;
}

/* ----- Modals upload avatar / bìa ----- */
.upAvatarModal .modal-content,
.settingModal .modal-content {
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--v2-shadow-strong);
}

.upAvatarModal .modal-header,
.settingModal .modal-header {
  background: linear-gradient(180deg, #fff2f4 0%, var(--v2-card) 100%);
  border-bottom: 1px solid var(--v2-divider);
  padding: 16px 20px;
}

.msv-profile-modal-title {
  width: 100%;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d04c58;
}

.msv-profile-modal-title i {
  color: var(--v2-primary);
}

.msv-profile-modal-input-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--v2-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.msv-profile-modal-input-note,
.msv-profile-modal-input-note p {
  font-size: 0.88rem;
  color: var(--v2-text-muted);
  line-height: 1.5;
}

.msv-profile-modal-btn,
.settingModal-btn .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--v2-primary);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease;
}

.msv-profile-modal-btn:hover,
.settingModal-btn .btn:hover {
  background: var(--v2-hover);
  color: #fff;
}

.settingModal .nav-pills .nav-link {
  border-radius: 999px;
  color: var(--v2-text);
  font-weight: 600;
  padding: 8px 14px;
}

.settingModal .nav-pills .nav-link.active {
  background: var(--v2-primary);
}

.settingModal-header {
  font-weight: 700;
  color: var(--v2-text);
  border-radius: 12px;
  background: var(--v2-divider);
}

/* ----- Mobile gear + offcanvas ----- */
.btn-gear-profile {
  right: 12px;
  top: auto;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 1035;
  padding: 6px;
  border-radius: 14px;
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  box-shadow: var(--v2-shadow-strong);
}

.btn-gear-profile img {
  width: 36px;
}

.mdv-profile-canvas.offcanvas-end {
  max-width: min(92vw, 360px);
  background: var(--v2-bg);
}

.mdv-profile-canvas .offcanvas-header {
  background: var(--v2-card);
  border-bottom: 1px solid var(--v2-divider);
  background-image: none;
}

.mdv-profile-canvas .offcanvasRightLabel a {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d04c58;
}

.mdv-profile-canvas-content-a {
  border-radius: 12px;
  color: var(--v2-text);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mdv-profile-canvas-content-a:hover {
  background: rgba(208, 76, 88, 0.04);
  color: var(--v2-primary);
}

.mdv-profile-canvas-content-a.active {
  color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.08);
  background-image: none;
  box-shadow: inset 3px 0 0 var(--v2-primary);
}

.mdv-profile-canvas-content-a.active i {
  color: var(--v2-primary) !important;
}

.icon-profile-img,
.icon-sidebar-img {
  width: 20px;
  height: auto;
  object-fit: contain;
}

/* ----- Modal nạp Ong (profile) — token v2 ----- */
.mdv-ong-modal-overlay {
  background: rgba(63, 38, 41, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mdv-ong-modal-dialog,
.mdv-ong-deposit-dialog {
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-strong);
}

.mdv-ong-deposit-dialog {
  background: #fff7f8;
}

.mdv-ong-deposit-title {
  color: var(--v2-text);
  letter-spacing: 0.06em;
}

.mdv-ong-deposit-subtitle {
  color: var(--v2-text-muted);
}

.mdv-ong-package-card {
  border-color: var(--v2-border);
  background: var(--v2-card);
  border-radius: 14px;
}

.mdv-ong-package-card:hover {
  border-color: rgba(208, 76, 88, 0.35);
}

.mdv-ong-package-card.active {
  border-color: var(--v2-primary);
  background: rgba(208, 76, 88, 0.05);
}

.mdv-ong-package-card.active .mdv-ong-package-radio {
  border-color: var(--v2-primary);
  background: var(--v2-primary);
}

.mdv-ong-package-name,
.mdv-ong-package-total {
  color: var(--v2-text);
}

.mdv-ong-package-price {
  color: #d04c58;
}

.mdv-ong-deposit-action-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, #e06b76 0%, #d04c58 100%);
  box-shadow: 0 6px 0 #b83b47;
}

.mdv-ong-deposit-action-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e68c92 0%, #d04c58 100%);
}

.mdv-ong-deposit-action-btn.outline {
  background: #fff;
  color: var(--v2-primary);
  border: 1px solid var(--v2-primary);
  box-shadow: none;
}

/* Footer modal Mua truyện: màu thẻ vé, pill, không shadow */
.mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn {
  border-radius: 999px;
  border: 1.5px dashed #b83b47;
  background: #e68c92;
  color: #3f2629;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}
.mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn:hover:not(:disabled) {
  background: #e68c92;
  color: #3f2629;
  box-shadow: none;
  transform: none;
  filter: brightness(1.03);
}
.mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn:disabled {
  box-shadow: none;
  opacity: 0.45;
}
.mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn.outline {
  background: #fff4f5;
  color: #633b40;
  border: 1.5px dashed #b83b47;
  box-shadow: none;
}
.mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn.outline:hover:not(:disabled) {
  background: #fff4f5;
  color: #3f2629;
  box-shadow: none;
  transform: none;
  filter: brightness(1.02);
}

/* Dark mode — modal Mua truyện */
body.dark-mode .mdv-ong-deposit-dialog {
  background: #2c2a28;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
body.dark-mode .mdv-ong-deposit-title {
  color: #f9eef0;
}
body.dark-mode .mdv-ong-deposit-subtitle {
  color: #b89ea2;
}
body.dark-mode .mdv-ong-deposit-close {
  color: #cab5b8;
}
body.dark-mode .mdv-ong-deposit-close:hover {
  color: #f9eef0;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat {
  background: #3a342f;
  border-color: rgba(230, 140, 146, 0.55);
  color: #f6dfe2;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat .mdv-ong-qr-info-text,
body.dark-mode .mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat .mdv-ong-qr-info-text strong {
  color: #f6dfe2;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-cashback:not(.mdv-story-ong-cashback--custom) {
  background: #352f2b;
  border-color: rgba(230, 140, 146, 0.35);
  color: #f6dfe2;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-story-ong-cashback__head {
  color: #e68c92;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-story-ong-cashback__label {
  color: #b89ea2;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-story-ong-cashback__amount,
body.dark-mode .mdv-story-ong-purchase-panel .mdv-story-ong-cashback__meta {
  color: #f9eef0;
}
body.dark-mode .mdv-story-ong-purchase-panel .text-danger {
  color: #ff8a80 !important;
}
body.dark-mode .mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn {
  background: #e68c92;
  border-color: rgba(230, 140, 146, 0.9);
  color: #301b1e;
  box-shadow: none;
}
body.dark-mode .mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn:hover:not(:disabled) {
  background: #f09d9b;
  color: #301b1e;
  box-shadow: none;
}
body.dark-mode .mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn.outline {
  background: #3a342f;
  border-color: rgba(230, 140, 146, 0.55);
  color: #f6dfe2;
  box-shadow: none;
}
body.dark-mode .mdv-story-ong-purchase-footer .mdv-ong-deposit-action-btn.outline:hover:not(:disabled) {
  background: #453e38;
  color: #f9eef0;
  box-shadow: none;
}
body.dark-mode .mdv-story-ong-purchase-panel .mdv-ong-deposit-action-btn.outline {
  background: #3a342f;
  border-color: rgba(230, 140, 146, 0.55);
  color: #f6dfe2;
  box-shadow: none;
}

/* Font-size inline từ Summernote (Gói Ong) */
.mdv-ong-deposit-instructions {
  font-size: 0.9rem;
}
.mdv-ong-deposit-instructions [style*="font-size"],
.mdv-story-ong-notice [style*="font-size"],
.mdv-story-ong-purchase-panel [style*="font-size"] {
  line-height: 1.45;
}
.mdv-story-ong-notice-desc:not([style*="font-size"]) {
  font-size: 0.9rem;
}

/* Thống kê modal Mua truyện */
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-list {
  align-items: stretch;
}
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  background: #fff4f5;
  border: 1.5px dashed #b83b47;
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #633b40;
  text-align: center;
}
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat .mdv-ong-qr-info-text {
  color: #633b40;
  font-size: 0.92rem;
}
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat .mdv-ong-qr-info-text strong {
  color: #3f2629;
}
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-stat img {
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
  margin-left: 0.15em;
}
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-cashback:not(.mdv-story-ong-cashback--custom) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #f4c6ca;
  outline: none;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  color: #543539;
}
.mdv-story-ong-purchase-panel .mdv-story-ong-cashback__head {
  color: #b83b47;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.mdv-story-ong-purchase-panel .mdv-story-ong-cashback__amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: #3f2629;
}
.mdv-story-ong-purchase-panel .mdv-story-ong-cashback__meta {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3f2629;
}
.mdv-story-ong-purchase-panel .mdv-story-ong-cashback__foot {
  display: none;
}

/* Thẻ vé Mua truyện / Nạp Ong trong notice khóa chương */
.mdv-story-ong-notice-actions .row {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.65rem;
}
.mdv-ong-ticket-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 12px 10px;
  border: 1.5px dashed #b83b47;
  border-radius: 14px;
  color: #633b40;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.mdv-ong-ticket-btn--buy {
  background: #e68c92;
}
.mdv-ong-ticket-btn--nap {
  background: #fff4f5;
}
.mdv-ong-ticket-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #633b40;
  line-height: 1;
}
.mdv-ong-ticket-btn__svg {
  display: block;
}
.mdv-ong-ticket-btn__label {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: #3f2629;
}
.mdv-ong-ticket-btn__sub {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #84595e;
}
.mdv-ong-ticket-btn__sub img {
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
  margin-left: 0.15em;
}
.mdv-ong-ticket-btn:hover,
.mdv-ong-ticket-btn:focus-visible {
  text-decoration: none;
  color: #3f2629;
  filter: brightness(1.03);
}
.mdv-ong-ticket-btn:focus-visible {
  outline: 2px solid #b83b47;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .mdv-ong-ticket-btn:hover {
    transform: translateY(-1px);
  }
  .mdv-ong-ticket-btn:active {
    transform: translateY(1px) scale(0.99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mdv-ong-ticket-btn {
    transition: none;
  }
}
@media (max-width: 576px) {
  .mdv-ong-ticket-btn {
    min-height: 84px;
    padding: 10px 6px;
  }
  .mdv-ong-ticket-btn__label {
    font-size: 0.9rem;
  }
  .mdv-ong-ticket-btn__sub {
    font-size: 0.74rem;
  }
}

.mdv-ong-qr-info-card {
  border-color: var(--v2-border);
  background: var(--v2-card);
}

/* Khối thông báo hoàn Ong tùy chỉnh — dải trắng giữa khung cream */
.mdv-story-ong-notice .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom,
.mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom,
.mdv-ong-qr-info-list .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(184, 59, 71, 0.28);
  border-radius: 12px;
  box-shadow: none;
  padding: 16px 14px 18px;
  color: #633b40;
  text-align: center;
  white-space: normal;
  overflow: visible;
}
.mdv-story-ong-cashback--custom .mdv-story-ong-cashback__inner {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #633b40;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}
.mdv-story-ong-cashback--custom h4,
.mdv-story-ong-cashback--custom h5 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d04c58;
  line-height: 1.35;
}
.mdv-story-ong-cashback--custom p {
  margin: 0 0 8px;
  color: #633b40;
}
.mdv-story-ong-cashback--custom p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #84595e;
}
.mdv-story-ong-cashback--custom strong {
  color: #3f2629;
  font-weight: 800;
}
.mdv-story-ong-cashback--custom img {
  height: 1.1em;
  width: auto;
  vertical-align: -0.15em;
  margin: 0 0.1em;
}
@media (prefers-reduced-motion: no-preference) {
  .mdv-story-ong-cashback--custom {
    animation: mdvCashbackCustomInV2 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@keyframes mdvCashbackCustomInV2 {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 576px) {
  .mdv-story-ong-notice .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom,
  .mdv-story-ong-purchase-panel .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom,
  .mdv-ong-qr-info-list .mdv-ong-qr-info-card.mdv-story-ong-cashback.mdv-story-ong-cashback--custom {
    padding: 14px 10px 16px;
  }
  .mdv-story-ong-cashback--custom h4,
  .mdv-story-ong-cashback--custom h5 {
    font-size: 0.95rem;
  }
}

.mdv-ong-status-pill {
  border-radius: 999px;
  background: var(--v2-divider);
  color: var(--v2-text-muted);
}

.mdv-ong-status-pill.success {
  background: rgba(208, 76, 88, 0.12);
  color: var(--v2-primary);
}

@media (prefers-reduced-motion: reduce) {
  .mdv-profile .btn-mdv-button-1,
  .mdv-profile-content .btn-mdv-button-1,
  #btnOpenOngDeposit,
  .mdv-profile-sidebar-box .list-group-item,
  .mdv-profile-canvas-content-a,
  .btn-tai-avatar,
  .btn-tai-anh-bia {
    transition: none;
  }

  #btnOpenOngDeposit:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .mdv-ong-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(63, 38, 41, 0.45);
  }
}

/* ----- Quản lý truyện: menu công cụ + panel backup ----- */
.mdv-story-tools__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: var(--v2-card);
  color: var(--v2-text);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--v2-shadow);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.mdv-story-tools__toggle:hover,
.mdv-story-tools__toggle:focus,
.mdv-story-tools__toggle.show {
  border-color: rgba(208, 76, 88, 0.35);
  color: var(--v2-primary);
  box-shadow: var(--v2-shadow-strong);
}

.mdv-story-tools__toggle::after {
  margin-left: 0.15rem;
}

.mdv-story-tools__menu {
  width: 220px;
  padding: 0.35rem 0;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  background: var(--v2-card);
  box-shadow: var(--v2-shadow-strong);
}

.mdv-story-tools__group-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mdv-story-tools__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--v2-text);
  border-radius: 8px;
  margin: 0 0.35rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mdv-story-tools__item:hover,
.mdv-story-tools__item:focus {
  background: var(--v2-divider);
  color: var(--v2-primary);
}

.mdv-story-tools__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--v2-divider);
  color: var(--v2-primary);
  font-size: 0.8rem;
}

.mdv-story-tools__divider {
  height: 1px;
  margin: 0.35rem 0.75rem;
  background: var(--v2-border);
  list-style: none;
}

.mdv-story-tools__item--danger {
  color: #b42318;
}

.mdv-story-tools__item--danger .mdv-story-tools__icon {
  background: #fff0ee;
  color: #b42318;
}

.mdv-story-tools__item--danger:hover,
.mdv-story-tools__item--danger:focus {
  background: #fff0ee;
  color: #8f1a12;
}

.story-tabs--manager .nav-tabs {
  border-bottom: none;
}

/* Skill: beetruyen-backup-truyen — @see .cursor/skills/beetruyen-backup-truyen/SKILL.md */

.mdv-backup-truyen-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: none;
  background: linear-gradient(180deg, #e06b76 0%, #d04c58 100%);
  box-shadow:
    0 4px 0 #b83b47,
    0 8px 20px rgba(208, 76, 88, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mdv-backup-truyen-open-btn:hover,
.mdv-backup-truyen-open-btn:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #b83b47,
    0 10px 22px rgba(208, 76, 88, 0.28);
}

.mdv-backup-truyen-open-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #b83b47,
    0 4px 12px rgba(208, 76, 88, 0.18);
}

.mdv-backup-truyen-modal {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--v2-shadow-strong);
}

.mdv-backup-truyen-modal__header {
  padding: 1.25rem 1.5rem 0;
  background: linear-gradient(180deg, var(--v2-bg) 0%, #fff 55%);
}

.mdv-backup-truyen-modal__title {
  font-weight: 800;
  color: var(--v2-text);
}

.mdv-backup-truyen-modal__subtitle {
  font-size: 0.875rem;
  color: var(--v2-text-muted);
}

.mdv-backup-truyen-modal__actions {
  margin-top: 0.25rem;
}

.mdv-backup-truyen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.mdv-backup-truyen-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #e06b76 0%, #d04c58 100%);
  box-shadow: 0 3px 0 #b83b47;
}

.mdv-backup-truyen-btn--primary:hover:not(:disabled),
.mdv-backup-truyen-btn--primary:focus:not(:disabled) {
  color: #fff;
  transform: translateY(-1px);
}

.mdv-backup-truyen-btn--primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b83b47;
}

.mdv-backup-truyen-btn--ghost {
  color: var(--v2-text);
  background: #fff;
  border-color: var(--v2-border);
}

.mdv-backup-truyen-btn--ghost:hover:not(:disabled),
.mdv-backup-truyen-btn--ghost:focus:not(:disabled) {
  background: var(--v2-bg);
  border-color: rgba(208, 76, 88, 0.25);
  color: var(--v2-primary);
}

.mdv-backup-truyen-btn--danger {
  color: #b42318;
  background: #fff;
  border-color: rgba(180, 35, 24, 0.25);
}

.mdv-backup-truyen-btn--danger:hover:not(:disabled),
.mdv-backup-truyen-btn--danger:focus:not(:disabled) {
  background: #fff0ee;
  border-color: rgba(180, 35, 24, 0.4);
}

.mdv-backup-truyen-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mdv-backup-truyen-panel {
  border: 1px solid var(--v2-border);
  background: linear-gradient(180deg, #fff 0%, var(--v2-bg) 100%);
  box-shadow: var(--v2-shadow);
}

.mdv-backup-truyen-panel__title {
  color: var(--v2-text);
  font-weight: 700;
}

.mdv-backup-truyen-panel__desc {
  color: var(--v2-text-muted);
  margin-bottom: 0;
}

.mdv-backup-truyen-panel__status {
  color: var(--v2-text-muted);
}

.mdv-backup-truyen-panel__progress {
  height: 8px;
  border-radius: 999px;
  background: var(--v2-divider);
  overflow: hidden;
}

.mdv-backup-truyen-panel__progress .progress-bar {
  background: linear-gradient(90deg, var(--v2-primary), var(--v2-hover));
}

.mdv-backup-truyen-panel__file-link {
  color: var(--v2-primary);
  text-decoration: none;
  font-weight: 600;
}

.mdv-backup-truyen-panel__file-link:hover {
  color: var(--v2-hover);
  text-decoration: underline;
}

.mdv-backup-truyen-panel__files-toolbar {
  gap: 0.5rem;
}

.mdv-backup-truyen-panel__files-hint {
  font-size: 0.8125rem;
  color: var(--v2-text-muted);
  margin-bottom: 0.35rem;
}

.mdv-backup-truyen-panel__file-scroll {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.mdv-backup-truyen-panel__file-scroll::-webkit-scrollbar {
  width: 6px;
}

.mdv-backup-truyen-panel__file-scroll::-webkit-scrollbar-thumb {
  background: rgba(208, 76, 88, 0.25);
  border-radius: 6px;
}

.mdv-backup-truyen-panel__file-list {
  margin-bottom: 0;
}

/* Skill: beetruyen-show-v2-chapter-comments — khối bình luận gộp show v2 */
.lt-sps-v2-comments .mdv-san-pham-show-comment-box {
  background: var(--v2-card, #ffffff);
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 16px;
  box-shadow: var(--v2-shadow, 0 4px 18px rgba(63, 38, 41, 0.06));
}

.lt-sps-v2-comments__chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d04c58;
  background: #fff2f4;
  border: 1px solid var(--v2-border, #f4c6ca);
  line-height: 1.2;
}

.lt-sps-v2-comments__chapter-badge--story {
  color: var(--v2-text-muted, #846367);
  background: #fff7f8;
}

a.lt-sps-v2-comments__chapter-badge:hover {
  color: #b83b47;
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.08);
}

.lt-sps-v2-comments__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  background: #d04c58;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.lt-sps-v2-comments__send:hover {
  background: #b83b47;
  color: #ffffff;
}

.lt-sps-v2-comments__send:active {
  transform: scale(0.96);
}

.lt-sps-v2-comments__send svg {
  width: 18px;
  height: 18px;
}

.lt-sps-v2-comments__load-more {
  border-radius: 999px;
  border: 2px solid #d04c58;
  background: transparent;
  color: #d04c58;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.35rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lt-sps-v2-comments__load-more:hover {
  background: rgba(208, 76, 88, 0.08);
  color: #b83b47;
  border-color: #b83b47;
}

.lt-sps-v2-comments .mdv-san-pham-show-comment-list-item-comment {
  background: #fff7f8;
  border: 1px solid var(--v2-divider, #fdeef0);
  border-radius: 14px;
}

/* Skill: beetruyen-mod-comments-v2 — badge chương (mod BL, shell legacy) */
.lt-mod-comments__chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #d04c58;
  background: #fff2f4;
  border: 1px solid var(--v2-border, #f4c6ca);
  line-height: 1.2;
}

.lt-mod-comments__chapter-badge--story {
  color: var(--v2-text-muted, #846367);
  background: #fff7f8;
}

.lt-mod-comments__chapter-badge--article {
  color: #2a6f9e;
  background: #f0f7fc;
  border-color: #c5dff0;
}

.lt-mod-comments__chapter-cell .small {
  max-width: 12rem;
  line-height: 1.3;
}

a.lt-mod-comments__chapter-badge:hover {
  color: #b83b47;
  border-color: #d04c58;
  background: rgba(208, 76, 88, 0.08);
}

/* Hoàn Ong — form đăng/sửa truyện (custom, không phụ thuộc Bootstrap form) */
.mdv-hoan-ong {
  background: #fff7f8;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--v2-shadow, 0 4px 18px rgba(63, 38, 41, 0.06));
}

.mdv-hoan-ong__check {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mdv-hoan-ong__switch {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.mdv-hoan-ong__switch-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e06b76 0%, #d04c58 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow:
    0 6px 0 #b83b47,
    0 10px 20px rgba(208, 76, 88, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.mdv-hoan-ong__switch:not(.is-on) .mdv-hoan-ong__switch-face {
  background: #fff;
  color: var(--v2-text, #3f2629);
  border: 1.5px solid var(--v2-border, #f4c6ca);
  box-shadow:
    0 5px 0 #f0c7cb,
    0 8px 16px rgba(63, 38, 41, 0.08);
}

.mdv-hoan-ong__switch.is-on .mdv-hoan-ong__switch-face,
.mdv-hoan-ong__switch:active .mdv-hoan-ong__switch-face {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #b83b47,
    0 6px 12px rgba(208, 76, 88, 0.22);
}

.mdv-hoan-ong__switch:not(.is-on):active .mdv-hoan-ong__switch-face {
  box-shadow:
    0 3px 0 #f0c7cb,
    0 4px 10px rgba(63, 38, 41, 0.08);
}

.mdv-hoan-ong__switch--sm .mdv-hoan-ong__switch-face {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
}

.mdv-hoan-ong__switch-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.mdv-hoan-ong__body,
.mdv-hoan-ong__window {
  margin-top: 14px;
}

.mdv-hoan-ong__kieu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mdv-hoan-ong__pill {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.mdv-hoan-ong__pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mdv-hoan-ong__pill > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--v2-border, #f4c6ca);
  background: #fff;
  color: var(--v2-text, #3f2629);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 3px 0 #f0c7cb;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mdv-hoan-ong__pill input:checked + span {
  background: linear-gradient(135deg, #e06b76 0%, #d04c58 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 0 #b83b47;
  transform: translateY(1px);
}

.mdv-hoan-ong__field {
  margin-bottom: 12px;
}

.mdv-hoan-ong__label {
  display: block;
  margin: 0 0 6px;
  color: var(--v2-text-muted, #846367);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mdv-hoan-ong__control {
  display: flex;
  align-items: stretch;
  max-width: 340px;
  border: 1.5px solid var(--v2-border, #f4c6ca);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mdv-hoan-ong__control:focus-within {
  border-color: rgba(208, 76, 88, 0.55);
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08);
}

.mdv-hoan-ong__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--v2-text, #3f2629);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none !important;
  outline: none !important;
}

.mdv-hoan-ong__input.mdv-hoan-ong__datetime,
.mdv-hoan-ong input.mdv-hoan-ong__datetime {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--v2-border, #f4c6ca) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--v2-text, #3f2629);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
}

.mdv-hoan-ong__input.mdv-hoan-ong__datetime:focus,
.mdv-hoan-ong input.mdv-hoan-ong__datetime:focus {
  border-color: rgba(208, 76, 88, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(208, 76, 88, 0.08) !important;
}

.mdv-hoan-ong__suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0 0.7rem;
  background: #fff2f4;
  color: var(--v2-text-muted, #846367);
  font-size: 0.85rem;
  font-weight: 700;
  border-left: 1px solid var(--v2-border, #f4c6ca);
}

.mdv-hoan-ong__suffix-icon,
.mdv-hoan-ong__inline-icon {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -0.12em;
}

.mdv-hoan-ong__window {
  padding: 12px;
  border-radius: 14px;
  background: rgba(208, 76, 88, 0.04);
  border: 1px dashed rgba(208, 76, 88, 0.22);
}

.mdv-hoan-ong__window .mdv-hoan-ong__field {
  margin-bottom: 10px;
}

.mdv-hoan-ong__notice {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--v2-border, #f4c6ca);
  border-radius: 14px;
  background: #fff;
}
.mdv-hoan-ong__notice-head {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--v2-text, #3f2629);
}
.mdv-hoan-ong__tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.mdv-hoan-ong__token {
  border: 1px solid var(--v2-border, #f4c6ca);
  background: #fff2f4;
  color: var(--v2-text, #3f2629);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  line-height: 1.3;
  cursor: pointer;
}
.mdv-hoan-ong__token:hover {
  border-color: var(--v2-primary, #d04c58);
  color: var(--v2-primary, #d04c58);
}
.mdv-hoan-ong__fill-sample {
  border: 1.5px solid #d04c58;
  background: #fff2f4;
  color: #d04c58;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  line-height: 1.3;
  cursor: pointer;
}
.mdv-hoan-ong__fill-sample:hover {
  background: #fde6e7;
  color: #b83b47;
  border-color: #b83b47;
}
.mdv-hoan-ong .note-editor {
  border-radius: 12px;
  border-color: var(--v2-border, #f4c6ca);
}
@media (max-width: 768px) {
  .mdv-hoan-ong__notice {
    padding: 10px;
  }
}
.mdv-hoan-ong__preview {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--v2-border, #f4c6ca);
  color: var(--v2-text, #3f2629);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mdv-hoan-ong__preview-num {
  color: var(--v2-primary, #d04c58);
  font-weight: 800;
}

.mdv-hoan-ong__stats {
  margin: 10px 0 0;
  color: var(--v2-text-muted, #846367);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Flatpickr honey theme (scoped look) */
.flatpickr-calendar {
  border: 1px solid var(--v2-border, #f4c6ca) !important;
  border-radius: 16px !important;
  box-shadow: var(
    --v2-shadow-strong,
    0 8px 28px rgba(63, 38, 41, 0.1)
  ) !important;
  font-family: inherit;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
  color: var(--v2-text, #3f2629);
  fill: var(--v2-text, #3f2629);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: var(--v2-primary, #d04c58) !important;
  border-color: var(--v2-primary, #d04c58) !important;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #fff2f4;
}

@media (prefers-reduced-motion: reduce) {
  .mdv-hoan-ong__switch-face,
  .mdv-hoan-ong__pill > span {
    transition: none;
  }
}

@media (max-width: 991.8px) {
  .mdv-hoan-ong {
    padding: 14px 12px 12px;
  }

  .mdv-hoan-ong__control {
    max-width: none;
    width: 100%;
  }

  .mdv-hoan-ong__switch-face {
    width: 100%;
  }

  .mdv-hoan-ong__switch {
    display: flex;
    width: 100%;
  }
}

/* Hoàn Ong — nút hướng dẫn + modal */
.mdv-hoan-ong__help-link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: #c45a78;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.mdv-hoan-ong__help-link:hover,
.mdv-hoan-ong__help-link:focus-visible {
  color: #a84462;
  outline: none;
}

body.mdv-hoan-help-open {
  overflow: hidden;
}

.mdv-hoan-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(74, 42, 54, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mdv-hoan-help-overlay[hidden] {
  display: none !important;
}

.mdv-hoan-help-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(240, 186, 198, 0.7);
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(255, 214, 224, 0.55),
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(253, 230, 231, 0.5),
      transparent 50%
    ),
    #fff8f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 48px rgba(92, 48, 64, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .mdv-hoan-help-overlay:not([hidden]) {
    animation: mdvHoanHelpFade 0.22s ease-out;
  }

  .mdv-hoan-help-overlay:not([hidden]) .mdv-hoan-help-dialog {
    animation: mdvHoanHelpPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes mdvHoanHelpFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mdvHoanHelpPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mdv-hoan-help-header {
  position: relative;
  padding: 1.35rem 1.4rem 0.85rem;
  border-bottom: 1px solid rgba(240, 186, 198, 0.45);
}

.mdv-hoan-help-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a5a6a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mdv-hoan-help-close:hover,
.mdv-hoan-help-close:focus-visible {
  background: #fff;
  color: #6d3f4f;
  outline: none;
}

.mdv-hoan-help-eyebrow {
  margin: 0 0 0.35rem;
  color: #b86a84;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mdv-hoan-help-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding-right: 2rem;
  color: #4a2f3a;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.mdv-hoan-help-title-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.mdv-hoan-help-lead {
  margin: 0;
  max-width: 48ch;
  color: #7a5a66;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mdv-hoan-help-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.95rem 1.25rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.mdv-hoan-help-card {
  margin: 0 0 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 198, 202, 0.65);
  background: rgba(255, 255, 255, 0.78);
}

.mdv-hoan-help-card--accent {
  border-color: rgba(240, 157, 155, 0.7);
  background: linear-gradient(
    135deg,
    rgba(253, 230, 231, 0.95),
    rgba(255, 242, 244, 0.95)
  );
}

.mdv-hoan-help-card-title {
  margin: 0 0 0.3rem;
  color: #5a3344;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.mdv-hoan-help-card-text {
  margin: 0;
  color: #6f5560;
  font-size: 0.86rem;
  line-height: 1.55;
}

.mdv-hoan-help-note {
  margin: 0.35rem 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 240, 245, 0.85);
  border: 1px dashed rgba(196, 90, 120, 0.35);
}

.mdv-hoan-help-note-title {
  margin: 0 0 0.4rem;
  color: #a84462;
  font-size: 0.86rem;
  font-weight: 700;
}

.mdv-hoan-help-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #6f5560;
  font-size: 0.84rem;
  line-height: 1.55;
}

.mdv-hoan-help-list li + li {
  margin-top: 0.25rem;
}

.mdv-hoan-help-footer {
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(240, 186, 198, 0.45);
  background: rgba(255, 248, 249, 0.9);
}

.mdv-hoan-help-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #f08aa8 0%, #e56b8d 100%);
  box-shadow: 0 5px 0 #c84f72;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.mdv-hoan-help-done:hover {
  filter: brightness(1.03);
}

.mdv-hoan-help-done:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #c84f72;
}

.mdv-hoan-help-done:focus-visible {
  outline: 2px solid #c45a78;
  outline-offset: 2px;
}

@media (prefers-reduced-transparency: reduce) {
  .mdv-hoan-help-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(74, 42, 54, 0.48);
  }

  .mdv-hoan-help-dialog,
  .mdv-hoan-help-card {
    background: #fff8f9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdv-hoan-help-done {
    transition: none;
  }
}

@media (max-width: 576px) {
  .mdv-hoan-help-overlay {
    padding: 0.65rem;
    align-items: flex-end;
  }

  .mdv-hoan-help-dialog {
    max-height: 92dvh;
    border-radius: 20px 20px 14px 14px;
  }

  .mdv-hoan-help-title {
    font-size: 1.12rem;
  }
}
