/* ============================================================
   MANGAXO — Home Page Modern Design v2.0
   Loaded AFTER styles.css — pure visual overlay, no layout changes.
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --mx-gold: #ffd702;
  --mx-gold-light: #ffe44d;
  --mx-gold-dark: #e6c200;
  --mx-purple: #27114b;
  --mx-purple-deep: #16003b;
  --mx-purple-light: #3d1a6e;
  --mx-purple-vivid: #7c3aed;
  --mx-accent: #c49bff;
  --mx-cyan: #06b6d4;
  --mx-pink: #ec4899;
  --mx-radius-sm: 8px;
  --mx-radius-md: 12px;
  --mx-radius-lg: 16px;
  --mx-spring: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mx-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ============================================================
   GLOBAL — Section Headings with Gold Accent Bar
   ============================================================ */
.block_area .block_area-header .cat-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 12px;
}
.block_area .block_area-header .cat-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background: linear-gradient(90deg, var(--mx-gold), var(--mx-pink));
  border-radius: 3px;
}

/* ============================================================
   GLOBAL — Buttons
   ============================================================ */
.btn-primary,
.btn-tab.active {
  background: linear-gradient(135deg, var(--mx-gold) 0%, #ffb700 100%) !important;
  border: none !important;
  border-radius: var(--mx-radius-sm) !important;
  font-weight: 600;
  color: #111 !important;
  transition: all 0.35s var(--mx-spring);
  box-shadow: 0 2px 10px rgba(255, 215, 2, 0.3) !important;
}
.btn-primary:hover,
.btn-tab.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 2, 0.45) !important;
  filter: brightness(1.05);
}

.btn-secondary {
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.3s var(--mx-spring);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.btn-light {
  border-radius: var(--mx-radius-sm) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s var(--mx-spring);
}
.btn-light:hover {
  background: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   GLOBAL — Card Action Buttons (Read Now / Info)
   ============================================================ */
.mpd-buttons .btn {
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.25s var(--mx-spring);
}
.mpd-buttons .btn:hover {
  transform: translateY(-1px);
}

/* ============================================================
   1. HERO SLIDER (.deslide-wrap)
   ============================================================ */

/* Animated gradient background */
.deslide-wrap {
  background: linear-gradient(135deg, #0f0326 0%, #1a0a3e 40%, #0d1b3e 70%, #0f0326 100%) !important;
  background-size: 300% 300% !important;
  animation: heroGradient 12s ease infinite;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fix hero slider height — ensure enough space for content */
#slider {
  min-height: 480px;
  padding-bottom: 33%;
}
#slider .swiper-wrapper {
  min-height: 480px;
}
#slider .swiper-slide {
  min-height: 480px;
}
.deslide-item .deslide-item-content {
  z-index: 3;
}

/* Cover image — more visible + cinematic blur */
.deslide-item .deslide-cover {
  opacity: 0.5;
}
.deslide-item .deslide-cover img {
  filter: blur(10px) saturate(1.3) brightness(0.8);
}

/* Hero title — neon glow */
.deslide-item .desi-head-title a {
  color: #fff;
  text-shadow: 0 0 30px rgba(196, 155, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Sub-text chapter label */
.deslide-item .desi-sub-text {
  color: var(--mx-gold);
  text-shadow: 0 0 12px rgba(255, 215, 2, 0.3);
}

/* Description text */
.deslide-item .sc-detail .scd-item {
  line-height: 1.65;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

/* Genre tags — glassmorphism pills */
.deslide-item .scd-genres a {
  display: inline-block;
  padding: 4px 14px;
  margin: 3px 5px 3px 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s var(--mx-spring);
}
.deslide-item .scd-genres a:hover {
  background: rgba(255, 215, 2, 0.2);
  border-color: rgba(255, 215, 2, 0.5);
  color: var(--mx-gold) !important;
  transform: translateY(-1px);
}

/* Hero "Read Now" button — bold gold gradient */
.desi-buttons .btn-slide-read {
  background: linear-gradient(135deg, var(--mx-gold) 0%, #ffb700 100%) !important;
  color: #111 !important;
  border: none !important;
  border-radius: var(--mx-radius-sm);
  padding: 10px 28px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 24px rgba(255, 215, 2, 0.4), 0 0 60px rgba(255, 215, 2, 0.1);
  transition: all 0.35s var(--mx-spring);
  position: relative;
  overflow: hidden;
}
.desi-buttons .btn-slide-read::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.desi-buttons .btn-slide-read:hover::after {
  left: 100%;
}
.desi-buttons .btn-slide-read:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(255, 215, 2, 0.55), 0 0 80px rgba(255, 215, 2, 0.15);
}

/* Hero "View Info" button — frosted glass */
.desi-buttons .btn-slide-info {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: var(--mx-radius-sm);
  padding: 10px 28px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.35s var(--mx-spring);
}
.desi-buttons .btn-slide-info:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero poster — glowing shadow */
.deslide-item .deslide-poster .manga-poster {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.15),
    0 0 100px rgba(124, 58, 237, 0.08);
}

/* Swiper nav arrows — glassmorphism circles */
.swiper-navigation .swiper-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--mx-spring);
}
.swiper-navigation .swiper-button:hover {
  background: rgba(255, 215, 2, 0.15);
  border-color: rgba(255, 215, 2, 0.4);
  transform: scale(1.1);
}
.swiper-navigation .swiper-button i {
  color: #fff;
  font-size: 18px;
}

/* ============================================================
   2. GENRE / INTRO (#text-home)
   ============================================================ */
#text-home {
  background: linear-gradient(180deg, #0f0326 0%, var(--mx-purple) 100%);
}

.text-home .home-genre-links a {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 8px 18px !important;
  transition: all 0.3s var(--mx-spring) !important;
}
.text-home .home-genre-links a:hover {
  background: rgba(255, 215, 2, 0.12) !important;
  border-color: rgba(255, 215, 2, 0.4) !important;
  color: var(--mx-gold) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 2, 0.1);
}

/* Social share — glass card */
.social-home-block {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mx-radius-lg);
  padding: 18px 22px 18px 70px;
  transition: all 0.3s var(--mx-spring);
}
.social-home-block:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   3. TRENDING (#manga-trending) — Vibrant Gradient
   ============================================================ */
#manga-trending {
  background: linear-gradient(135deg, #0a0020 0%, #1a0842 35%, #0d1a3a 65%, #0a0020 100%) !important;
  padding: 30px 0 !important;
  position: relative;
}
/* Decorative glow orbs */
#manga-trending::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 65%);
  top: -200px;
  right: -150px;
  pointer-events: none;
  z-index: 0;
}
#manga-trending::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 2, 0.05) 0%, transparent 65%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

#manga-trending .cat-heading {
  color: #fff !important;
}
#manga-trending .block_area-header .cat-heading::after {
  background: linear-gradient(90deg, var(--mx-gold), var(--mx-pink)) !important;
}

/* Trending cards — poster glow on hover */
.trending-list .item .manga-poster {
  border-radius: var(--mx-radius-sm);
  transition: all 0.4s var(--mx-spring);
}
.trending-list .item:hover .manga-poster {
  box-shadow: 0 8px 35px rgba(124, 58, 237, 0.35);
}

/* Ranking numbers — gradient gold */
.trending-list .item .number span {
  background: linear-gradient(135deg, var(--mx-gold), #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: none;
}
.trending-list .item .number .anime-name {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Trending buttons */
.trending-list .mpd-buttons .btn {
  border-radius: var(--mx-radius-sm) !important;
  font-size: 12px;
  padding: 6px 10px;
}

/* Trending nav arrows */
.trending-navi > div > i {
  color: var(--mx-accent);
  transition: all 0.3s ease;
}
.trending-navi > div:hover > i {
  color: var(--mx-gold);
  text-shadow: 0 0 15px rgba(255, 215, 2, 0.5);
}

/* ============================================================
   4. CATEGORY / GENRE BLOCK
   ============================================================ */
.category_block {
  padding: 24px 0;
}
.category_block.category_block-home {
  border-bottom: 1px solid #f0f0f0;
}
.category_block .c_b-list .item {
  margin: 4px;
}
.category_block .c_b-list .item a {
  border-radius: 22px !important;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
  color: #555 !important;
  line-height: 24px;
  transition: all 0.3s var(--mx-spring);
}
.category_block .c_b-list .item a:hover {
  border-color: var(--mx-gold) !important;
  color: var(--mx-purple-deep) !important;
  background: rgba(255, 215, 2, 0.06) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 215, 2, 0.12);
}
.category_block .c_b-list .item.active a {
  background: linear-gradient(135deg, var(--mx-gold), var(--mx-gold-light)) !important;
  border-color: var(--mx-gold) !important;
  color: #111 !important;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(255, 215, 2, 0.25);
}

/* Focus items — vibrant pastel gradient backgrounds */
.category_block .c_b-list .item.item-focus.focus-01 a {
  background: linear-gradient(135deg, #d0e6a5, #b8d98a) !important;
  border-color: transparent !important;
  color: #2d4a0f !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(184, 217, 138, 0.3);
}
.category_block .c_b-list .item.item-focus.focus-02 a {
  background: linear-gradient(135deg, #ffdd95, #ffc965) !important;
  border-color: transparent !important;
  color: #6b4500 !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 201, 101, 0.3);
}
.category_block .c_b-list .item.item-focus.focus-04 a {
  background: linear-gradient(135deg, #ccabda, #b88fcf) !important;
  border-color: transparent !important;
  color: #3d1a5e !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(184, 143, 207, 0.3);
}
.category_block .c_b-list .item.item-focus.focus-05 a {
  background: linear-gradient(135deg, #abccd8, #8ebccf) !important;
  border-color: transparent !important;
  color: #1a4a5e !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(142, 188, 207, 0.3);
}
.category_block .c_b-list .item.item-focus a:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.05);
}

/* + More button */
.category_block .c_b-list .item.item-more a {
  border: 1px dashed #ccc !important;
  background: transparent !important;
  color: #999 !important;
  border-radius: 22px !important;
}
.category_block .c_b-list .item.item-more a:hover {
  border-color: var(--mx-gold) !important;
  color: var(--mx-gold-dark) !important;
}

/* ============================================================
   5. RECOMMENDED (#manga-featured) — Lift & Glow Cards
   ============================================================ */
#manga-featured {
  padding-top: 10px;
}

.mg-item-basic {
  transition: transform 0.4s var(--mx-spring);
}
.mg-item-basic:hover {
  transform: translateY(-8px);
}

.mg-item-basic .manga-poster {
  border-radius: var(--mx-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s var(--mx-spring);
}
.mg-item-basic:hover .manga-poster {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 0 30px rgba(124, 58, 237, 0.06);
}
.mg-item-basic .manga-poster .manga-poster-img {
  transition: transform 0.5s var(--mx-spring);
}
.mg-item-basic:hover .manga-poster .manga-poster-img {
  transform: scale(1.06);
}

.mg-item-basic .manga-detail {
  padding: 10px 4px;
}
.mg-item-basic .manga-name {
  font-weight: 600;
  font-size: 0.95em;
  line-height: 1.4;
}
.mg-item-basic .manga-name a:hover {
  color: var(--mx-purple-vivid) !important;
}

/* Hover overlay */
.mg-item-basic .mp-desc {
  border-radius: var(--mx-radius-md);
  background: linear-gradient(to top, rgba(10, 0, 30, 0.95) 0%, rgba(10, 0, 30, 0.6) 50%, transparent 100%);
}

/* Featured navigation arrows */
.featured-navi > div {
  background: #f0f0f0;
  border-radius: 50%;
  transition: all 0.3s var(--mx-spring);
}
.featured-navi > div:hover {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  box-shadow: 0 4px 14px rgba(255, 215, 2, 0.35);
  transform: scale(1.1);
}

/* ============================================================
   6. LATEST UPDATES (#main-content)
   ============================================================ */
#main-content .block_area-header-tabs .pre-tabs .nav-link {
  border-radius: 22px;
  padding: 6px 18px;
  font-weight: 500;
  transition: all 0.3s var(--mx-spring);
}
#main-content .block_area-header-tabs .pre-tabs .nav-link.active {
  background: var(--mx-purple-deep);
  color: #fff !important;
}

/* List items — gold left-border accent */
.manga_list-sbs .mls-wrap .item-spc {
  border-radius: var(--mx-radius-sm);
  padding: 14px 12px;
  transition: all 0.3s var(--mx-spring);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}
.manga_list-sbs .mls-wrap .item-spc:hover {
  background: rgba(255, 215, 2, 0.03);
  border-left-color: var(--mx-gold);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.manga_list-sbs .mls-wrap .item-spc .manga-poster {
  border-radius: var(--mx-radius-sm);
  overflow: hidden;
}
.manga_list-sbs .mls-wrap .item-spc .manga-poster .manga-poster-img {
  transition: transform 0.4s var(--mx-spring);
}
.manga_list-sbs .mls-wrap .item-spc:hover .manga-poster .manga-poster-img {
  transform: scale(1.05);
}

/* Chapter links */
.fd-list .fdl-item .chapter a {
  transition: color 0.2s ease;
}
.fd-list .fdl-item .chapter a:hover {
  color: var(--mx-purple-vivid) !important;
}

/* View more button */
#main-content .btn.btn-secondary {
  background: linear-gradient(135deg, var(--mx-purple) 0%, var(--mx-purple-vivid) 100%) !important;
  border: none !important;
  border-radius: var(--mx-radius-sm) !important;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.35s var(--mx-spring);
  box-shadow: 0 4px 16px rgba(39, 17, 75, 0.25);
  color: #fff !important;
}
#main-content .btn.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3) !important;
}

/* ============================================================
   7. MOST VIEWED SIDEBAR
   ============================================================ */
#main-sidebar .block_area-realtime {
  background: #fafafa;
  border-radius: var(--mx-radius-lg);
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

/* Capsule tab pills */
#main-sidebar .anw-tabs {
  background: #f0f0f0;
  border-radius: 28px;
  padding: 4px;
  margin-bottom: 18px;
}
#main-sidebar .anw-tabs .nav-link {
  border-radius: 24px;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  transition: all 0.3s var(--mx-spring);
  color: #888;
  border: none;
}
#main-sidebar .anw-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(22, 0, 59, 0.25);
}

/* Sidebar ranking items */
#main-sidebar .item-top {
  border-radius: var(--mx-radius-sm);
  transition: all 0.3s var(--mx-spring);
}
#main-sidebar .item-top:hover {
  background: rgba(124, 58, 237, 0.04);
}
#main-sidebar .ranking-number span {
  background: linear-gradient(135deg, var(--mx-gold), #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
#main-sidebar .item-top .manga-poster {
  border-radius: 6px;
  overflow: hidden;
}
#main-sidebar .item-top .manga-poster .manga-poster-img {
  transition: transform 0.4s var(--mx-spring);
}
#main-sidebar .item-top:hover .manga-poster .manga-poster-img {
  transform: scale(1.08);
}

/* ============================================================
   8. COMPLETED SECTION
   ============================================================ */
#mw-2col > .block_area_featured .mg-item-basic {
  transition: transform 0.4s var(--mx-spring);
}
#mw-2col > .block_area_featured .mg-item-basic:hover {
  transform: translateY(-8px);
}
#mw-2col > .block_area_featured .manga-poster {
  border-radius: var(--mx-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
#mw-2col > .block_area_featured .mg-item-basic:hover .manga-poster {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   9. FOOTER — Clean
   ============================================================ */
#footer {
  border-top: 1px solid #eee;
}
.footer-links a {
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--mx-purple-vivid) !important;
}

/* ============================================================
   10. DARK MODE
   ============================================================ */

/* Hero */
body.darkmode .deslide-wrap {
  background: linear-gradient(135deg, #050010 0%, #0d0828 40%, #050d20 70%, #050010 100%) !important;
  background-size: 300% 300% !important;
}

/* Text home */
body.darkmode #text-home {
  background: linear-gradient(180deg, #050010 0%, #111 100%);
}

/* Trending */
body.darkmode #manga-trending {
  background: linear-gradient(135deg, #030008 0%, #0a0420 35%, #050d20 65%, #030008 100%) !important;
}
body.darkmode #manga-trending .cat-heading {
  color: #fff !important;
}

/* Category block */
body.darkmode .category_block.category_block-home {
  border-bottom-color: #2a2a2a;
}
body.darkmode .category_block .c_b-list .item a {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #bbb !important;
}
body.darkmode .category_block .c_b-list .item a:hover {
  background: rgba(255, 215, 2, 0.08) !important;
  border-color: rgba(255, 215, 2, 0.3) !important;
  color: var(--mx-gold) !important;
}
body.darkmode .category_block .c_b-list .item.item-focus.focus-01 a {
  background: linear-gradient(135deg, rgba(208, 230, 165, 0.15), rgba(184, 217, 138, 0.15)) !important;
  border-color: rgba(208, 230, 165, 0.2) !important;
  color: #d0e6a5 !important;
}
body.darkmode .category_block .c_b-list .item.item-focus.focus-02 a {
  background: linear-gradient(135deg, rgba(255, 221, 149, 0.15), rgba(255, 201, 101, 0.15)) !important;
  border-color: rgba(255, 221, 149, 0.2) !important;
  color: #ffdd95 !important;
}
body.darkmode .category_block .c_b-list .item.item-focus.focus-04 a {
  background: linear-gradient(135deg, rgba(204, 171, 218, 0.15), rgba(184, 143, 207, 0.15)) !important;
  border-color: rgba(204, 171, 218, 0.2) !important;
  color: #ccabda !important;
}
body.darkmode .category_block .c_b-list .item.item-focus.focus-05 a {
  background: linear-gradient(135deg, rgba(171, 204, 216, 0.15), rgba(142, 188, 207, 0.15)) !important;
  border-color: rgba(171, 204, 216, 0.2) !important;
  color: #abccd8 !important;
}
body.darkmode .category_block .c_b-list .item.item-more a {
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #777 !important;
}
body.darkmode .category_block .c_b-list .item.active a {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
}

/* Cards */
body.darkmode .mg-item-basic .manga-name a {
  color: #e0e0e0;
}
body.darkmode .mg-item-basic .manga-name a:hover {
  color: var(--mx-gold) !important;
}
body.darkmode .mg-item-basic .manga-poster {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
body.darkmode .mg-item-basic:hover .manga-poster {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.1);
}

/* Sidebar */
body.darkmode #main-sidebar .block_area-realtime {
  background: #1a1a1a;
  border-color: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.darkmode #main-sidebar .anw-tabs {
  background: #252525;
}
body.darkmode #main-sidebar .anw-tabs .nav-link {
  color: #888;
}
body.darkmode #main-sidebar .anw-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
}
body.darkmode #main-sidebar .item-top:hover {
  background: rgba(124, 58, 237, 0.06);
}

/* Latest updates */
body.darkmode .manga_list-sbs .mls-wrap .item-spc:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--mx-gold);
}
body.darkmode #main-content .btn.btn-secondary {
  background: linear-gradient(135deg, #1a0842, var(--mx-purple-vivid)) !important;
}

/* Section headings */
body.darkmode .block_area .block_area-header .cat-heading {
  color: #f0f0f0;
}

/* Social block */
body.darkmode .social-home-block {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Footer */
body.darkmode #footer {
  border-top-color: #222;
}

/* Featured nav */
body.darkmode .featured-navi > div {
  background: #252525;
  color: #ccc;
}
body.darkmode .featured-navi > div:hover {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
}

/* btn-light dark mode */
body.darkmode .btn-light {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ddd !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.darkmode .btn-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Poster glow in dark hero */
body.darkmode .deslide-item .deslide-poster .manga-poster {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(124, 58, 237, 0.2),
    0 0 120px rgba(124, 58, 237, 0.08);
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */

@media screen and (max-width: 991px) {
  .social-home-block {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mg-item-basic:hover {
    transform: translateY(-4px);
  }
  #main-sidebar .block_area-realtime {
    border-radius: var(--mx-radius-md);
    padding: 16px;
  }
  #manga-trending::before,
  #manga-trending::after {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  #slider,
  #slider .swiper-wrapper,
  #slider .swiper-slide {
    min-height: 350px;
  }
  .mg-item-basic:hover {
    transform: translateY(-3px);
  }
  .manga_list-sbs .mls-wrap .item-spc:hover {
    transform: none;
  }
  .desi-buttons .btn-slide-read,
  .desi-buttons .btn-slide-info {
    padding: 8px 18px;
    font-size: 13px;
  }
  .desi-buttons .btn-slide-read::after {
    display: none;
  }
  #main-sidebar .block_area-realtime {
    margin-top: 20px;
  }
  .deslide-item .scd-genres a {
    padding: 3px 10px;
    font-size: 11px;
  }
}

@media screen and (max-width: 576px) {
  /* Disable backdrop-filter for mobile performance */
  .deslide-item .scd-genres a,
  .desi-buttons .btn-slide-info,
  .text-home .home-genre-links a,
  .social-home-block,
  .swiper-navigation .swiper-button {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .deslide-item .scd-genres a {
    background: rgba(255, 255, 255, 0.15);
  }
  .desi-buttons .btn-slide-info {
    background: rgba(255, 255, 255, 0.18) !important;
  }
  .text-home .home-genre-links a {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  .mg-item-basic:hover {
    transform: translateY(-2px);
  }
  .category_block .c_b-list .item a {
    padding: 5px 12px;
    font-size: 12px;
  }
  .block_area .block_area-header .cat-heading {
    font-size: 1.15em;
  }
  #slider,
  #slider .swiper-wrapper,
  #slider .swiper-slide {
    min-height: 250px;
  }
  .deslide-wrap {
    animation: none !important;
    background-size: 100% 100% !important;
  }
}

/* ═══════════════════════════════════════
   Feature CSS: Ratings, Notifications, Activity Feed
   ═══════════════════════════════════════ */

/* ─── Star Rating ─── */
.vote-stars-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 10px 15px;
  gap: 3px;
}
.vote-star {
  cursor: pointer;
  font-size: 18px;
  color: rgba(255,255,255,0.2);
  transition: color 0.15s, transform 0.15s;
}
.vote-star:hover { transform: scale(1.2); }
.vote-star.star-filled { color: #ffd702; }
.vote-star.star-active { color: #ff6b35; }
.vote-star.star-hover { color: #ffd702 !important; }
.rr-mark strong { font-size: 22px; color: #ffd702; font-weight: 700; }
.rr-mark span { color: rgba(255,255,255,0.5); font-size: 14px; }
.rr-mark i { font-size: 16px; }
.rr-votes { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.vote-login-msg { font-size: 12px; padding: 5px 15px; color: rgba(255,255,255,0.5); text-align: center; }
.vote-login-msg a { color: #ffd702; cursor: pointer; text-decoration: underline; }
.dt-rate .block-rating .rating-result { text-align: center; padding: 10px 0; }
.dt-rate .block-rating .description { text-align: center; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ─── Notification Bell ─── */
.hr-notifications { position: relative; }
.hr-notifications .hrn-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-align: center;
  line-height: 40px;
  display: block;
  position: relative;
  transition: background 0.2s;
}
.hr-notifications .hrn-icon:hover { background: rgba(255,255,255,0.15); }
.hr-notifications.show .hrn-icon { background: #fff; color: #16003b; }
.hr-notifications .hrn-icon .number {
  position: absolute;
  font-weight: 600;
  top: -5px;
  right: -10px;
  height: 20px;
  border-radius: 10px;
  line-height: 20px;
  min-width: 20px;
  font-size: 11px;
  padding: 0 4px;
  color: #111;
  background: #ffd702;
}

/* ─── Notification Dropdown ─── */
.notif-dropdown {
  width: 360px;
  max-height: 480px;
  overflow: hidden;
  padding: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.notif-header {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.notif-header a { font-size: 12px; color: #ffd702; text-decoration: none; }
.notif-header a:hover { text-decoration: underline; }
.notif-body { max-height: 360px; overflow-y: auto; }
.notif-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.notif-footer a { color: #ffd702; font-size: 13px; text-decoration: none; }
.notif-item {
  display: flex;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: #ccc;
  transition: background 0.15s;
}
.notif-item:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.notif-item.unread { background: rgba(255,215,2,0.06); }
.notif-poster { width: 40px; flex-shrink: 0; margin-right: 10px; }
.notif-poster img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; }
.notif-msg { font-size: 13px; line-height: 1.35; }
.notif-time { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; }

/* ─── Activity Feed ─── */
.activity-feed { max-height: 520px; overflow-y: auto; }
.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.activity-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.activity-poster { width: 40px; flex-shrink: 0; margin-right: 10px; }
.activity-poster img { width: 40px; height: 55px; object-fit: cover; border-radius: 4px; }
.activity-detail { flex: 1; min-width: 0; }
.activity-msg { font-size: 13px; line-height: 1.4; word-wrap: break-word; color: #ccc; }
.activity-user { color: #ffd702; font-weight: 600; text-decoration: none; }
.activity-user:hover { text-decoration: underline; color: #ffd702; }
.activity-manga { color: #8bc34a; text-decoration: none; }
.activity-manga:hover { text-decoration: underline; color: #8bc34a; }
.activity-score { color: #ffd702; font-weight: 700; }
.activity-time { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 3px; }

/* ─── Dark Mode Overrides ─── */
body.darkmode .notif-dropdown { background: #0d0d1a; border-color: rgba(255,255,255,0.06); }
body.darkmode .notif-item.unread { background: rgba(255,215,2,0.04); }
body.darkmode .activity-msg { color: #bbb; }

/* ═══════════════════════════════════════════════════════
   FEATURE SET 2: Reading Streaks, Badges, Collections,
   Requests, Chapter Comments, User Follow
   ═══════════════════════════════════════════════════════ */

/* ─── Reading Streak ─── */
.profile-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ff5722;
  font-weight: 600;
}
.profile-streak i { font-size: 16px; animation: flicker 1.5s infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── User Follow ─── */
.btn-follow {
  background: linear-gradient(135deg, #ffd702, #ffab00);
  color: #1a1e2e;
  border: none;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  transition: all 0.3s;
}
.btn-follow:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(255,215,2,0.3); }
.btn-follow.following {
  background: rgba(255,255,255,0.1);
  color: #ffd702;
  border: 1px solid rgba(255,215,2,0.3);
}
.btn-follow.following:hover { background: rgba(239,83,80,0.2); color: #ef5350; border-color: #ef5350; }

/* ─── Badges ─── */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: default;
  transition: all 0.3s;
}
.badge-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.badge-item i { font-size: 14px; }

/* ─── Collections Grid ─── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.collection-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.collection-card:hover {
  border-color: rgba(255,215,2,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-decoration: none;
  color: inherit;
}
.cc-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 120px;
  overflow: hidden;
}
.cc-cover-item { overflow: hidden; }
.cc-cover-item img { width: 100%; height: 120px; object-fit: cover; }
.cc-cover-empty { background: rgba(255,255,255,0.03); }
.cc-info { padding: 12px 15px; }
.cc-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.cc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.cc-author { color: #ffd702; }

/* ─── Manga Request Board ─── */
.request-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.req-tab {
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.req-tab:hover { color: #fff; text-decoration: none; }
.req-tab.active {
  color: #ffd702;
  border-bottom-color: #ffd702;
}
.request-list { display: flex; flex-direction: column; gap: 0; }
.request-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}
.ri-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}
.ri-vote-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  width: 40px;
  height: 32px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ri-vote-btn:hover { border-color: #ffd702; color: #ffd702; }
.ri-vote-btn.voted { background: rgba(255,215,2,0.15); border-color: #ffd702; color: #ffd702; }
.ri-vote-count { font-size: 14px; font-weight: 700; color: #fff; margin-top: 4px; }
.ri-content { flex: 1; }
.ri-title { font-size: 15px; font-weight: 600; color: #fff; }
.ri-desc { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.ri-meta { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ri-status { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ri-status-added { background: rgba(102,187,106,0.2); color: #66bb6a; }
.ri-status-rejected { background: rgba(239,83,80,0.2); color: #ef5350; }
.ri-admin { display: flex; gap: 6px; }
.btn-xs { font-size: 11px; padding: 2px 8px; border-radius: 3px; }

/* ─── Chapter Comments ─── */
.cc-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cc-item.cc-reply {
  margin-left: 40px;
  padding: 8px 0;
}
.cc-avatar {
  flex-shrink: 0;
}
.cc-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.cc-reply .cc-avatar img { width: 28px; height: 28px; }
.cc-body { flex: 1; min-width: 0; }
.cc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cc-user {
  font-size: 13px;
  font-weight: 600;
  color: #ffd702;
  text-decoration: none;
}
.cc-user:hover { text-decoration: underline; color: #ffd702; }
.cc-time { font-size: 11px; color: rgba(255,255,255,0.3); }
.cc-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  word-break: break-word;
}
.cc-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cc-actions button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.cc-actions button:hover { color: #ffd702; }
.cc-like-btn i { margin-right: 3px; }
.cc-replies { margin-top: 4px; }

/* ─── Gold Button ─── */
.btn-gold {
  background: linear-gradient(135deg, #ffd702, #ffab00);
  color: #1a1e2e;
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,215,2,0.3);
  color: #1a1e2e;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .collections-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cc-item.cc-reply { margin-left: 20px; }
  .ri-vote { min-width: 40px; }
  .req-tab { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 576px) {
  .notif-dropdown { width: 300px; }
  .vote-star { font-size: 15px; }
  .vote-stars-container { gap: 1px; padding: 8px 10px; }
  .collections-grid { grid-template-columns: 1fr; }
  .cc-covers { height: 90px; }
  .badges-grid { gap: 5px; }
  .badge-item { font-size: 11px; padding: 3px 8px; }
}

/* ═══════════════════════════════════════════════════════════
   SITE-WIDE VISUAL OVERHAUL
   Extends the modern home page design to ALL pages
   ═══════════════════════════════════════════════════════════ */

/* ============================================================
   PHASE 1: GLOBAL COMPONENTS
   ============================================================ */

/* ---------- 1.1 Sub-Header Bar ---------- */
#sub-header {
  background: linear-gradient(135deg, var(--mx-purple-deep) 0%, var(--mx-purple) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#sub-header .sh-item {
  transition: color 0.25s var(--mx-spring);
}
#sub-header a.sh-item:hover {
  color: var(--mx-gold) !important;
}
#sub-header .sb-uimode,
#toggle-mode {
  border-radius: 20px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--mx-spring);
}
#sub-header .sb-uimode:hover,
#toggle-mode:hover {
  background: rgba(255, 215, 2, 0.1);
  border-color: rgba(255, 215, 2, 0.3);
}
#toggle-mode.active {
  background: rgba(255, 215, 2, 0.15);
  border-color: var(--mx-gold);
  color: var(--mx-gold) !important;
}
body.darkmode #sub-header {
  background: linear-gradient(135deg, #050010 0%, #0d0828 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

/* ---------- 1.2 Main Header ---------- */
#header {
  background: rgba(39, 17, 75, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--mx-spring), background 0.4s var(--mx-spring) !important;
}
#header.active {
  background: rgba(39, 17, 75, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
#sub-header {
  transition: transform 0.35s var(--mx-spring) !important;
}

/* Nav menu underline animation */
#header_menu ul.header_menu-list .nav-item > a {
  position: relative;
  transition: color 0.25s var(--mx-spring);
}
#header_menu ul.header_menu-list .nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--mx-gold);
  transition: all 0.3s var(--mx-spring);
  transform: translateX(-50%);
}
#header_menu ul.header_menu-list .nav-item:hover > a::after {
  width: 70%;
}

/* Dropdown submenu -- glass */
#header_menu .header_menu-sub {
  background: rgba(22, 0, 59, 0.95) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mx-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
#header_menu .header_menu-sub ul.sub-menu li a {
  transition: all 0.2s var(--mx-spring);
  border-radius: var(--mx-radius-sm);
}
#header_menu .header_menu-sub ul.sub-menu li:hover a {
  background: rgba(255, 215, 2, 0.08);
  color: var(--mx-gold) !important;
  padding-left: 18px;
}

/* Search input -- modern round */
.search-content input.search-input {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  padding-left: 20px !important;
  transition: all 0.3s var(--mx-spring);
}
.search-content input.search-input:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 215, 2, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 215, 2, 0.08);
}
.search-content .search-icon {
  border-radius: 0 24px 24px 0 !important;
  transition: background 0.2s;
}
.search-content .filter-icon {
  border-radius: 24px 0 0 24px !important;
  transition: all 0.2s var(--mx-spring);
}
.search-content .filter-icon:hover {
  background: rgba(255, 215, 2, 0.15) !important;
  color: var(--mx-gold) !important;
}

/* Search result popup -- glass */
.search-content .search-result-pop {
  border-radius: var(--mx-radius-md) !important;
  background: rgba(22, 0, 59, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}
.search-content .search-result-pop .nav-item {
  border-radius: var(--mx-radius-sm);
  transition: background 0.2s;
}
.search-content .search-result-pop .nav-item:hover {
  background: rgba(255, 215, 2, 0.06) !important;
}

/* Login button -- gold gradient */
#header .btn-user.btn-login {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 8px 20px !important;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(255, 215, 2, 0.3);
  transition: all 0.3s var(--mx-spring);
}
#header .btn-user.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 2, 0.45);
}

/* Header dark mode */
body.darkmode #header {
  background: rgba(10, 0, 25, 0.94) !important;
}
body.darkmode #header.active {
  background: rgba(10, 0, 25, 0.98) !important;
}
body.darkmode .search-content input.search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- 1.2b User Dropdown (logged-in) ---------- */
.header_right-user .dropdown-menu-model {
  background: rgba(22, 0, 59, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--mx-radius-md) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  padding: 6px !important;
  min-width: 200px;
}
.header_right-user .dropdown-menu-model .dropdown-item {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: var(--mx-radius-sm);
  transition: all 0.2s var(--mx-spring);
  font-size: 13px;
  padding: 9px 14px;
}
.header_right-user .dropdown-menu-model .dropdown-item i {
  width: 18px;
  text-align: center;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.header_right-user .dropdown-menu-model .dropdown-item:hover,
.header_right-user .dropdown-menu-model .dropdown-item.active {
  background: rgba(255, 215, 2, 0.1) !important;
  color: var(--mx-gold) !important;
}
.header_right-user .dropdown-menu-model .dropdown-item:hover i {
  color: var(--mx-gold);
}
.header_right-user .dropdown-menu-model .dropdown-item.di-bottom {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}
.header_right-user .dropdown-menu-model .dropdown-item.di-bottom:hover {
  box-shadow: 0 4px 14px rgba(255, 215, 2, 0.35);
  transform: translateY(-1px);
}

/* Avatar glow */
.header_right-user.logged .btn-avatar {
  border-color: rgba(255, 215, 2, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 215, 2, 0.15);
  transition: all 0.3s var(--mx-spring);
}
.header_right-user.logged .btn-avatar:hover {
  border-color: var(--mx-gold) !important;
  box-shadow: 0 0 20px rgba(255, 215, 2, 0.25);
  transform: scale(1.05);
}

body.darkmode .header_right-user .dropdown-menu-model {
  background: rgba(10, 0, 25, 0.96) !important;
}

/* ---------- 1.3 Mobile Sidebar ---------- */
#sidebar_menu {
  background: rgba(22, 0, 59, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--mx-spring) !important;
}
#sidebar_menu_bg {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#sidebar_menu .toggle-sidebar {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  transition: all 0.3s var(--mx-spring);
}
#sidebar_menu .toggle-sidebar:hover {
  background: rgba(255, 215, 2, 0.1) !important;
  border-color: rgba(255, 215, 2, 0.3) !important;
  color: var(--mx-gold) !important;
}
#sidebar_menu .sb-uimode {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mx-radius-sm);
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s var(--mx-spring);
}
#sidebar_menu .sidebar_menu-list > .nav-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: all 0.2s var(--mx-spring);
}
#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link:hover {
  color: var(--mx-gold) !important;
  padding-left: 20px;
}
#sidebar_menu .sidebar_menu-list > .nav-item .nav > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.5) !important;
}
#sidebar_menu .sidebar_menu-list > .nav-item .nav > .nav-item > .nav-link:hover {
  color: var(--mx-gold) !important;
}
#sidebar_menu .types-sub .ts-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--mx-radius-sm);
  transition: all 0.2s var(--mx-spring);
}
#sidebar_menu .types-sub .ts-item:hover {
  background: rgba(255, 215, 2, 0.08);
  color: var(--mx-gold) !important;
}
#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link strong {
  color: var(--mx-gold) !important;
}
body.darkmode #sidebar_menu {
  background: rgba(5, 0, 16, 0.97) !important;
}

/* ---------- 1.4 Breadcrumbs ---------- */
.prebreadcrumb .breadcrumb .breadcrumb-item {
  font-size: 13px;
  transition: color 0.2s;
}
.prebreadcrumb .breadcrumb .breadcrumb-item a {
  color: var(--mx-purple-vivid) !important;
  transition: color 0.2s;
}
.prebreadcrumb .breadcrumb .breadcrumb-item a:hover {
  color: var(--mx-gold) !important;
}
body.darkmode .prebreadcrumb .breadcrumb .breadcrumb-item {
  color: rgba(255, 255, 255, 0.5) !important;
}
body.darkmode .prebreadcrumb .breadcrumb .breadcrumb-item a {
  color: var(--mx-accent) !important;
}
body.darkmode .prebreadcrumb .breadcrumb .breadcrumb-item a:hover {
  color: var(--mx-gold) !important;
}

/* ---------- 1.5 Pagination ---------- */
.pre-pagination .pagination .page-item .page-link {
  border-radius: var(--mx-radius-sm) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
  transition: all 0.25s var(--mx-spring);
}
.pre-pagination .pagination .page-item .page-link:hover {
  background: rgba(255, 215, 2, 0.08) !important;
  border-color: rgba(255, 215, 2, 0.3);
  color: var(--mx-purple-deep) !important;
  transform: translateY(-2px);
}
.pre-pagination .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(255, 215, 2, 0.3);
  font-weight: 700;
}
body.darkmode .pre-pagination .pagination .page-item .page-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08);
  color: #bbb !important;
}
body.darkmode .pre-pagination .pagination .page-item .page-link:hover {
  background: rgba(255, 215, 2, 0.1) !important;
  border-color: rgba(255, 215, 2, 0.3);
  color: var(--mx-gold) !important;
}
body.darkmode .pre-pagination .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
}

/* ---------- 1.6 Global Dropdowns ---------- */
.dropdown-menu-model {
  background: rgba(22, 0, 59, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--mx-radius-md) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  padding: 6px !important;
}
.dropdown-menu-model .dropdown-item {
  border-radius: var(--mx-radius-sm);
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s var(--mx-spring);
  font-size: 13px;
  padding: 8px 14px;
}
.dropdown-menu-model .dropdown-item:hover,
.dropdown-menu-model .dropdown-item.active,
.dropdown-menu-model .dropdown-item.added {
  background: rgba(255, 215, 2, 0.1) !important;
  color: var(--mx-gold) !important;
}
body.darkmode .dropdown-menu-model {
  background: rgba(10, 0, 25, 0.96) !important;
}

/* ---------- 1.7 Flash Messages ---------- */
.alert {
  border-radius: var(--mx-radius-md) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   PHASE 2: MANGA DETAIL PAGE
   ============================================================ */

/* ---------- 2.1 Detail Stage ---------- */
#ani_detail .ani_detail-stage {
  background: linear-gradient(135deg, var(--mx-purple-deep) 0%, var(--mx-purple) 40%, #1a0d4e 70%, var(--mx-purple-deep) 100%) !important;
  position: relative;
  overflow: hidden;
}
#ani_detail .ani_detail-stage::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 65%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}
#ani_detail .ani_detail-stage::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 2, 0.05) 0%, transparent 65%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

/* Poster -- glow shadow */
.anis-content .anisc-poster .manga-poster {
  border-radius: var(--mx-radius-md) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 58, 237, 0.12);
  overflow: hidden;
  transition: box-shadow 0.4s var(--mx-spring);
}
.anis-content .anisc-poster .manga-poster:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.2);
}

/* Manga title -- neon glow */
.anis-content .anisc-detail .manga-name {
  text-shadow: 0 0 30px rgba(196, 155, 255, 0.2);
}
.anis-content .anisc-detail .manga-name-or {
  color: rgba(255, 255, 255, 0.5);
}

/* "Read Now" button -- gold with shimmer */
.anis-content .anisc-detail .manga-buttons .btn-play {
  background: linear-gradient(135deg, var(--mx-gold) 0%, #ffb700 100%) !important;
  color: #111 !important;
  border: none !important;
  border-radius: var(--mx-radius-sm) !important;
  padding: 10px 28px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 215, 2, 0.35);
  transition: all 0.35s var(--mx-spring);
  position: relative;
  overflow: hidden;
}
.anis-content .anisc-detail .manga-buttons .btn-play::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.anis-content .anisc-detail .manga-buttons .btn-play:hover::after {
  left: 100%;
}
.anis-content .anisc-detail .manga-buttons .btn-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 215, 2, 0.5);
}

/* Fav button -- glass */
.anis-content .anisc-detail .manga-buttons .btn-fav {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.3s var(--mx-spring);
}
.anis-content .anisc-detail .manga-buttons .btn-fav:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* Genre tags -- glassmorphism pills */
.anis-content .anisc-detail .genres a {
  display: inline-block !important;
  padding: 4px 14px !important;
  margin: 3px 5px 3px 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s var(--mx-spring);
}
.anis-content .anisc-detail .genres a:hover {
  background: rgba(255, 215, 2, 0.15) !important;
  border-color: rgba(255, 215, 2, 0.4) !important;
  color: var(--mx-gold) !important;
  transform: translateY(-1px);
}

/* Description */
.anis-content .anisc-detail .sort-desc > .description {
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* Info items */
.anis-content .anisc-info .item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
.anis-content .anisc-info .item .item-head {
  color: rgba(255, 255, 255, 0.5);
}
.anis-content .anisc-info a {
  transition: color 0.2s;
}
.anis-content .anisc-info a:hover {
  color: var(--mx-gold) !important;
}

/* Detail dark mode */
body.darkmode #ani_detail .ani_detail-stage {
  background: linear-gradient(135deg, #050010 0%, #0a0520 40%, #080320 70%, #050010 100%) !important;
}
body.darkmode .anis-content .anisc-poster .manga-poster {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(124, 58, 237, 0.15);
}

/* ---------- 2.2 Chapters List ---------- */
.chap-tabs {
  border-bottom: none !important;
  background: #f0f0f0;
  border-radius: 28px;
  padding: 4px;
  display: inline-flex;
}
.chap-tabs .nav-item .nav-link {
  border-radius: 24px !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 35px !important;
  padding: 0 20px !important;
  transition: all 0.3s var(--mx-spring);
  border: none !important;
}
.chap-tabs .nav-item .nav-link.active {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(22, 0, 59, 0.25);
}

/* Chapter list items */
.chapters-list-ul ul .item a {
  border-radius: var(--mx-radius-sm) !important;
  margin-bottom: 2px;
  transition: all 0.25s var(--mx-spring);
  border-left: 3px solid transparent;
}
.chapters-list-ul ul .item a:hover {
  border-left-color: var(--mx-gold) !important;
  padding-left: 35px;
  background: rgba(255, 215, 2, 0.04) !important;
}
.chapters-list-ul ul .item a:hover:before {
  background: var(--mx-gold) !important;
}

/* Read badge */
.chapters-list-ul ul .item .item-read {
  border-radius: 20px !important;
  font-size: 11px;
  transition: all 0.2s var(--mx-spring);
}
.chapters-list-ul ul .item:hover .item-read {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  box-shadow: 0 2px 8px rgba(255, 215, 2, 0.3);
}

/* Custom scrollbar for chapter list */
.chapters-list-ul ul::-webkit-scrollbar { width: 4px; }
.chapters-list-ul ul::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 2px;
}
.chapters-list-ul ul::-webkit-scrollbar-track { background: transparent; }

/* Chapters dark mode */
body.darkmode .chap-tabs {
  background: #252525;
}
body.darkmode .chapters-list-ul ul .item a:hover {
  background: rgba(255, 215, 2, 0.04) !important;
}
body.darkmode .chapters-list-ul ul .item .item-read {
  background: #2a2a2a !important;
}

/* ---------- 2.3 Discussion Section ---------- */
.block_area_discussion .block_area-header .cat-heading {
  color: #111;
}
body.darkmode .block_area_discussion .block_area-header .cat-heading {
  color: #f0f0f0;
}

/* ============================================================
   PHASE 3: LISTING / ARCHIVE PAGES
   ============================================================ */

/* ---------- 3.1 Sort Dropdown ---------- */
.cate-sort .btn-sort {
  border-radius: 24px !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 6px 18px !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--mx-spring);
}
.cate-sort .btn-sort:hover {
  background: rgba(255, 215, 2, 0.06) !important;
  border-color: rgba(255, 215, 2, 0.3) !important;
}
body.darkmode .cate-sort .btn-sort {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ccc !important;
}

/* ---------- 3.2 A-Z Letter Pills ---------- */
.alphabet-list .cbl-row .item a {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px;
  min-width: 38px;
  text-align: center;
  padding: 6px 10px !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
  transition: all 0.25s var(--mx-spring);
}
.alphabet-list .cbl-row .item a:hover {
  border-color: var(--mx-gold) !important;
  color: var(--mx-purple-deep) !important;
  background: rgba(255, 215, 2, 0.04) !important;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 215, 2, 0.1);
}
.alphabet-list .cbl-row .item.active a {
  background: linear-gradient(135deg, var(--mx-gold), var(--mx-gold-light)) !important;
  border-color: var(--mx-gold) !important;
  color: #111 !important;
  box-shadow: 0 3px 12px rgba(255, 215, 2, 0.25);
}
body.darkmode .alphabet-list .cbl-row .item a {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #bbb !important;
}
body.darkmode .alphabet-list .cbl-row .item a:hover {
  background: rgba(255, 215, 2, 0.08) !important;
  border-color: rgba(255, 215, 2, 0.3) !important;
  color: var(--mx-gold) !important;
}
body.darkmode .alphabet-list .cbl-row .item.active a {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
}

/* ---------- 3.3 Filter Page ---------- */
.page-filter .category_filter-content {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--mx-radius-lg);
  padding: 24px !important;
}
.category_filter .ni-head {
  font-weight: 600;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category_filter .custom-select {
  border-radius: var(--mx-radius-sm) !important;
  border: 1px solid #e0e0e0 !important;
  padding: 8px 14px;
  font-size: 13px;
  transition: all 0.2s var(--mx-spring);
}
.category_filter .custom-select:focus {
  border-color: var(--mx-purple-vivid) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.1);
}

/* Genre toggle buttons */
.cmbg-wrap .item.f-genre-item {
  border-radius: 22px !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 500;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
  color: #555 !important;
  cursor: pointer;
  transition: all 0.25s var(--mx-spring);
  margin: 3px !important;
}
.cmbg-wrap .item.f-genre-item:hover {
  border-color: var(--mx-purple-vivid) !important;
  color: var(--mx-purple-vivid) !important;
  transform: translateY(-1px);
}
.cmbg-wrap .item.f-genre-item.active {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  border-color: var(--mx-purple-vivid) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.2);
}

/* Filter submit button */
.cfc-button .btn-focus {
  background: linear-gradient(135deg, var(--mx-gold), #ffb700) !important;
  color: #111 !important;
  border: none !important;
  border-radius: var(--mx-radius-sm) !important;
  padding: 10px 40px;
  font-weight: 700;
  transition: all 0.3s var(--mx-spring);
  box-shadow: 0 3px 12px rgba(255, 215, 2, 0.25);
}
.cfc-button .btn-focus:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 2, 0.4);
}

/* Filter dark mode */
body.darkmode .page-filter .category_filter-content {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}
body.darkmode .category_filter .ni-head {
  color: #aaa;
}
body.darkmode .category_filter .custom-select {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ddd !important;
}
body.darkmode .cmbg-wrap .item.f-genre-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #bbb !important;
}
body.darkmode .cmbg-wrap .item.f-genre-item.active {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
}

/* ============================================================
   PHASE 4: FOOTER
   ============================================================ */
#footer {
  background: linear-gradient(135deg, var(--mx-purple-deep) 0%, var(--mx-purple) 50%, #1a0d4e 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  position: relative;
  overflow: hidden;
  color: #fff !important;
}
#footer::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 65%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
#footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}
#footer .footer-logo {
  transition: opacity 0.3s;
}
#footer .footer-logo:hover {
  opacity: 0.8;
}

/* Footer links -- underline animation */
.footer-links ul li a {
  position: relative;
  transition: color 0.25s var(--mx-spring);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
}
.footer-links ul li a:hover {
  color: var(--mx-gold) !important;
}
.footer-links ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mx-gold);
  transition: width 0.3s var(--mx-spring);
}
.footer-links ul li a:hover::after {
  width: 100%;
}

/* About text */
#footer-about .about-text {
  color: rgba(255, 255, 255, 0.5) !important;
  max-width: 600px;
  font-size: 13px;
}
#footer-about .copyright {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 13px;
}

/* Footer dark mode */
body.darkmode #footer {
  background: linear-gradient(135deg, #050010 0%, #0a0520 50%, #080320 100%) !important;
  border-top-color: rgba(255, 255, 255, 0.04) !important;
}

/* Override for home page body.body-home */
body.body-home #footer {
  background: linear-gradient(135deg, var(--mx-purple-deep) 0%, var(--mx-purple) 50%, #1a0d4e 100%) !important;
  color: #fff !important;
}
body.body-home #footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}
body.body-home #footer .about-text,
body.body-home #footer .copyright {
  color: rgba(255, 255, 255, 0.5) !important;
}
body.body-home.darkmode #footer {
  background: linear-gradient(135deg, #050010 0%, #0a0520 50%, #080320 100%) !important;
}

/* ============================================================
   PHASE 5: AUTH MODAL
   ============================================================ */
.premodal-login .modal-content {
  background: linear-gradient(135deg, #1a0a3e 0%, #0d0628 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--mx-radius-lg) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
  color: #fff;
}
.premodal-login .modal-content .modal-header .modal-title {
  color: #fff !important;
  font-size: 1.5em;
  background: linear-gradient(135deg, #fff, var(--mx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.premodal-login .modal-content .close {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  line-height: 36px;
  transition: all 0.3s var(--mx-spring);
  opacity: 1;
}
.premodal-login .modal-content .close:hover {
  background: rgba(255, 215, 2, 0.2) !important;
  color: var(--mx-gold) !important;
  transform: rotate(90deg);
}
.premodal-login .prelabel {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.premodal-login .form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--mx-radius-sm) !important;
  color: #fff !important;
  padding: 10px 16px;
  transition: all 0.3s var(--mx-spring);
}
.premodal-login .form-control:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--mx-purple-vivid) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}
.premodal-login .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.premodal-login .custom-control-label {
  color: rgba(255, 255, 255, 0.7);
}
.premodal-login .text-forgot {
  color: var(--mx-accent) !important;
  transition: color 0.2s;
}
.premodal-login .text-forgot:hover {
  color: var(--mx-gold) !important;
}
.premodal-login .modal-footer {
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.premodal-login .link-highlight {
  color: var(--mx-gold) !important;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}
.premodal-login .link-highlight:hover {
  color: var(--mx-gold-light) !important;
}
.premodal-login .desi-buttons .btn {
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.3s var(--mx-spring);
}
.premodal-login .desi-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}
.premodal-login .alert {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: var(--mx-radius-sm);
}

/* Modal backdrop */
.modal-backdrop.show {
  background: rgba(10, 0, 30, 0.85) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.darkmode .premodal-login .modal-content {
  background: linear-gradient(135deg, #0a0520 0%, #050010 100%) !important;
}

/* ============================================================
   PHASE 6: USER PROFILE
   ============================================================ */
.layout-award .award-bg::after {
  background: linear-gradient(0deg, #111 0%, rgba(17, 17, 17, 0.7) 50%, rgba(17, 17, 17, 0.3) 100%) !important;
}
.layout-award .profile-avatar {
  border: 3px solid rgba(255, 215, 2, 0.3);
  box-shadow: 0 0 25px rgba(255, 215, 2, 0.15);
}
.layout-award .profile-avatar img {
  transition: transform 0.4s var(--mx-spring);
}
.layout-award .profile-avatar:hover img {
  transform: scale(1.05);
}

/* Welcome text -- gradient */
.award-inner .ai_-welcome {
  background: linear-gradient(135deg, #fff, var(--mx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Verified badge */
.award-inner .ai_-welcome .d-verify .span-v {
  background: linear-gradient(135deg, #0365ff, #00b4d8) !important;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(3, 101, 255, 0.3);
}

/* Panel cards -- glass */
.my-award .maw-left {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--mx-radius-lg);
  padding: 24px;
}
.my-award .maw-right {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--mx-radius-lg);
  padding: 24px;
}

/* Activity items */
.wv-mine .wv-ul .item {
  border-radius: var(--mx-radius-sm);
  padding: 10px;
  transition: background 0.2s var(--mx-spring);
}
.wv-mine .wv-ul .item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* View more button on profile */
.layout-award .btn-secondary {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  border: none !important;
  border-radius: var(--mx-radius-sm) !important;
  color: #fff !important;
  transition: all 0.3s var(--mx-spring);
}
.layout-award .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* ============================================================
   PHASE 7: MEMBER SIDEBAR
   ============================================================ */
.block_area-profile {
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--mx-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.menu-profiles ul li .mp-item {
  border-radius: var(--mx-radius-sm) !important;
  padding: 10px 16px !important;
  margin: 2px 8px;
  transition: all 0.25s var(--mx-spring);
  font-weight: 500;
}
.menu-profiles ul li .mp-item:hover {
  background: rgba(255, 215, 2, 0.05) !important;
  color: var(--mx-purple-vivid) !important;
  padding-left: 22px !important;
}
.menu-profiles ul li .mp-item i {
  width: 20px;
  text-align: center;
  transition: color 0.2s;
}
.menu-profiles ul li .mp-item:hover i {
  color: var(--mx-gold) !important;
}
.menu-profiles ul li.active .mp-item {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(22, 0, 59, 0.2);
}
.menu-profiles ul li.active .mp-item i {
  color: var(--mx-gold) !important;
}

/* Member sidebar dark mode */
body.darkmode .block_area-profile {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}
body.darkmode .menu-profiles ul li .mp-item {
  color: #bbb !important;
}
body.darkmode .menu-profiles ul li .mp-item:hover {
  background: rgba(255, 215, 2, 0.06) !important;
  color: var(--mx-gold) !important;
}
body.darkmode .menu-profiles ul li.active .mp-item {
  background: linear-gradient(135deg, var(--mx-purple), var(--mx-purple-vivid)) !important;
  color: #fff !important;
}

/* ============================================================
   PHASE 8: READER PAGE
   ============================================================ */
.page-reader #header.header-reader {
  background: rgba(22, 0, 59, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Manga name hover */
.page-reader .hr-manga .manga-name {
  transition: color 0.2s;
}
.page-reader .hr-manga:hover .manga-name {
  color: var(--mx-gold);
}

/* Toolbar buttons */
.page-reader .hrr-btn {
  border-radius: var(--mx-radius-sm) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s var(--mx-spring);
}
.page-reader .hrr-btn:hover {
  background: rgba(255, 215, 2, 0.1) !important;
  border-color: rgba(255, 215, 2, 0.3) !important;
  color: var(--mx-gold) !important;
}

/* Navigation buttons */
.page-reader .btn-navi {
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s var(--mx-spring);
}
.page-reader .btn-navi:hover {
  background: rgba(255, 215, 2, 0.15) !important;
  border-color: rgba(255, 215, 2, 0.4) !important;
  color: var(--mx-gold) !important;
  transform: scale(1.1);
}

/* Reading mode tools */
.mrt-top {
  background: rgba(22, 0, 59, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.read_tool .rt-item .btn {
  border-radius: var(--mx-radius-sm) !important;
  transition: all 0.2s var(--mx-spring);
}

/* Comment sidebar */
#read-comment {
  background: rgba(22, 0, 59, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
#read-comment .rc-close {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  transition: all 0.3s var(--mx-spring);
}
#read-comment .rc-close:hover {
  background: rgba(239, 83, 80, 0.2) !important;
  color: #ef5350 !important;
}

/* Reading mode layout tips */
.read-tips-layout {
  background: rgba(22, 0, 59, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--mx-radius-lg);
}
.read-tips-layout .rtl-row {
  border-radius: var(--mx-radius-md);
  transition: all 0.3s var(--mx-spring);
}
.read-tips-layout .rtl-row:hover {
  background: rgba(255, 215, 2, 0.06);
  border-color: rgba(255, 215, 2, 0.2);
}

/* Reader dark mode */
body.darkmode .page-reader #header.header-reader {
  background: rgba(5, 0, 16, 0.96) !important;
}
body.darkmode #read-comment {
  background: rgba(5, 0, 16, 0.97) !important;
}

/* ============================================================
   PHASE 9: GENERAL MODALS
   ============================================================ */
.premodal .modal-content {
  background: linear-gradient(135deg, #1a0a3e 0%, #0d0628 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--mx-radius-lg) !important;
  color: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
}
.premodal .modal-content .modal-header .modal-title {
  color: #fff !important;
}
.premodal .modal-content .close {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-radius: 50% !important;
  transition: all 0.3s var(--mx-spring);
  opacity: 1;
}
.premodal .modal-content .close:hover {
  background: rgba(255, 215, 2, 0.2) !important;
  color: var(--mx-gold) !important;
  transform: rotate(90deg);
}
.premodal .description-modal {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}
body.darkmode .premodal .modal-content {
  background: linear-gradient(135deg, #0a0520 0%, #050010 100%) !important;
}

/* ============================================================
   PHASE 10: RESPONSIVE OVERRIDES FOR NEW STYLES
   ============================================================ */
@media screen and (max-width: 991px) {
  #header_menu .header_menu-sub {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .my-award .maw-left,
  .my-award .maw-right {
    border-radius: var(--mx-radius-md);
    padding: 16px;
  }
}

@media screen and (max-width: 768px) {
  .anis-content .anisc-detail .genres a {
    padding: 3px 10px !important;
    font-size: 11px !important;
  }
  .chap-tabs {
    border-radius: 20px;
  }
  .alphabet-list .cbl-row .item a {
    min-width: 32px;
    padding: 4px 8px !important;
    font-size: 12px;
  }
  .premodal-login .modal-content .modal-body {
    padding: 20px 30px !important;
  }
}

@media screen and (max-width: 576px) {
  /* Disable backdrop-filter for mobile performance */
  #header,
  #sidebar_menu,
  .search-content .search-result-pop,
  .dropdown-menu-model,
  .premodal-login .modal-content,
  .premodal .modal-content,
  #read-comment,
  .page-reader #header.header-reader,
  .mrt-top,
  .modal-backdrop.show {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solid fallback backgrounds */
  #header {
    background: rgba(39, 17, 75, 0.98) !important;
  }
  #sidebar_menu {
    background: rgba(22, 0, 59, 0.99) !important;
  }
  body.darkmode #header {
    background: rgba(10, 0, 25, 0.98) !important;
  }

  .category_filter .custom-select {
    font-size: 12px;
    padding: 6px 10px;
  }
  .page-filter .category_filter-content {
    padding: 16px !important;
  }
}

/* ============================================================
   READING PROGRESS — Continue Button + Progress Bar
   ============================================================ */

/* Continue Reading button */
.btn-continue-reading {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--mx-purple-vivid), var(--mx-pink));
  color: #fff !important;
  border: none;
  border-radius: var(--mx-radius-sm);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  margin-left: 8px;
}
.btn-continue-reading:hover {
  background: linear-gradient(135deg, var(--mx-pink), var(--mx-purple-vivid));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.btn-continue-reading i {
  font-size: 12px;
}

/* Reading progress bar wrapper */
#reading-progress-wrap {
  max-width: 320px;
}
.reading-progress-info {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 5px;
}
.reading-progress-info i {
  color: var(--mx-purple-vivid);
}
.reading-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mx-purple-vivid), var(--mx-pink));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Progress indicator on manga cards */
.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}
.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mx-purple-vivid), var(--mx-pink));
  border-radius: 0 3px 3px 0;
  transition: width 0.3s ease;
}

/* Ensure manga card poster is position:relative for progress bar */
.item-spc .manga-poster,
.mg-item-basic .manga-poster {
  position: relative;
}

@media (max-width: 576px) {
  .btn-continue-reading {
    font-size: 12px;
    padding: 6px 12px;
    margin-left: 4px;
  }
  #reading-progress-wrap {
    max-width: 100%;
  }
}
