/* ============================================
   Homepage V3 — Premium Dark Theme
   Glassmorphism · Gradients · Micro-animations
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg-deep: #0a0a0f;
  --bg-surface: #12121a;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-pink: #ec4899;
  --accent-glow: rgba(168, 85, 247, 0.15);
  --accent-glow-strong: rgba(168, 85, 247, 0.35);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 99px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gold: #fbbf24;
  --silver: #94a3b8;
  --bronze: #cd7f32;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--accent-glow-strong);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes badge-pulse {

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

  50% {
    transform: scale(1.08);
  }
}

@keyframes dot-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ---------- Global Resets ---------- */
body.homepage-v2 {
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.homepage-v2 .content-wrapper,
body.homepage-v2 .wrapper {
  background: transparent !important;
}

.main-wrapper.homepage-v2 {
  background: var(--bg-deep);
  min-height: 100vh;
}

body.homepage-v2 a {
  color: var(--text-primary);
  text-decoration: none;
}

body.homepage-v2 a:hover {
  color: white;
  text-decoration: none;
}

/* Hide AdminLTE sidebar & footer on homepage */
body.homepage-v2 .main-sidebar,
body.homepage-v2 .main-footer,
body.homepage-v2 .content-header {
  display: none !important;
}

body.homepage-v2 .content-wrapper {
  margin-left: 0 !important;
}

/* =============================================
   NAVBAR — Glassmorphic Sticky
   ============================================= */
.navbar-v2 {
  background: rgba(18, 18, 26, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: background 0.3s ease;
}

.navbar-v2.scrolled {
  background: rgba(10, 10, 15, 0.95) !important;
}

.navbar-v2 .navbar-brand-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.navbar-v2 .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  transition: transform 0.3s var(--ease-spring);
}

.navbar-v2 .logo-icon:hover {
  transform: scale(1.1) rotate(-3deg);
}

.navbar-v2 .brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-v2 .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.navbar-v2 .brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Search */
.navbar-v2 .search-wrapper {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.navbar-v2 .search-input {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 44px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}

.navbar-v2 .search-input::placeholder {
  color: var(--text-muted);
}

.navbar-v2 .search-input:focus {
  background: var(--bg-glass-hover);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 32px -8px rgba(0, 0, 0, 0.5);
}

.navbar-v2 .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Nav Actions */
.navbar-v2 .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar-v2 .btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.navbar-v2 .btn-icon:hover {
  background: var(--bg-glass-hover);
  color: white;
  transform: translateY(-1px);
}

.navbar-v2 .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  transition: border-color 0.3s;
  object-fit: cover;
}

.navbar-v2 .user-avatar:hover {
  border-color: var(--accent);
}

/* Nav links */
.navbar-v2 .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem !important;
}

.navbar-v2 .nav-link:hover {
  color: white !important;
}

.navbar-v2 .nav-link i {
  margin-right: 4px;
}

/* ---- Mobile Navbar Layout ---- */
.nav-container {
  display: flex;
  flex-direction: column;
}

.nav-row-main {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

/* Mobile search - slide down */
.mobile-search {
  display: none;
  padding: 8px 0 4px;
  animation: slideDown 0.25s ease-out;
}

.mobile-search.active {
  display: block;
}

.mobile-search .search-input {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 40px;
  color: white;
  font-size: 0.9rem;
}

.mobile-search .search-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.mobile-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.mobile-search .search-form {
  position: relative;
}

/* Mobile nav menu - slide down */
.mobile-nav-menu {
  display: none;
  padding: 8px 0 4px;
  animation: slideDown 0.25s ease-out;
}

.mobile-nav-menu.active {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--bg-glass-hover);
  color: white;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 0.85rem;
}

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

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

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .navbar-v2 {
    padding: 0.5rem 0;
  }

  .navbar-v2 .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .navbar-v2 .btn-icon {
    width: 34px;
    height: 34px;
  }

  .nav-actions {
    gap: 4px;
  }
}

@media (min-width: 576px) {
  .nav-row-main {
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .nav-row-main {
    gap: 20px;
  }
}

/* =============================================
   HERO CAROUSEL — Premium Center-mode Swiper
   ============================================= */
.hero-section {
  position: relative;
  padding: 20px 0 32px;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Ambient purple glow behind carousel */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-swiper {
  position: relative;
  z-index: 1;
  overflow: hidden !important;
}

/* ---- Slide Card ---- */
.hero-swiper .swiper-slide {
  width: 150px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-swiper .swiper-slide:active {
  cursor: grabbing;
}

.hero-slide__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

/* Image wrapper — full height */
.hero-slide__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) brightness(0.35);
  transition: filter 0.5s ease, transform 0.6s ease;
}

/* ---- CENTER SLIDE — Full Color ---- */
.hero-swiper .swiper-slide-active {
  width: 240px !important;
  border-radius: 14px;
}

.hero-swiper .swiper-slide-active .hero-slide__img {
  filter: grayscale(0%) brightness(1) !important;
}

/* Adjacent slides — semi grayscale */
.hero-swiper .swiper-slide-prev .hero-slide__img,
.hero-swiper .swiper-slide-next .hero-slide__img {
  filter: grayscale(70%) brightness(0.5);
}

/* Hover brighten */
.hero-swiper .swiper-slide:not(.swiper-slide-active):hover .hero-slide__img {
  filter: grayscale(30%) brightness(0.65);
}

/* ---- Info overlay ---- */
.hero-slide__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.5) 45%,
      transparent 100%);
  padding: 40px 12px 12px;
  pointer-events: none;
}

.hero-swiper .swiper-slide-active .hero-slide__info {
  padding: 60px 16px 16px;
}

/* Badges */
.hero-slide__badges {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s ease 0.1s;
}

.hero-swiper .swiper-slide-active .hero-slide__badges {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge--hot {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
}

.hero-badge--ch {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

/* Title */
.hero-slide__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  transition: font-size 0.4s ease;
}

.hero-swiper .swiper-slide-active .hero-slide__title {
  font-size: 1.1rem;
  font-weight: 800;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

/* Description — only on active */
.hero-slide__desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
  display: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.hero-swiper .swiper-slide-active .hero-slide__desc {
  display: -webkit-box;
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE — Mobile First ============ */

/* Small phones (480px+) */
@media (min-width: 480px) {
  .hero-swiper .swiper-slide {
    width: 160px;
  }

  .hero-swiper .swiper-slide-active {
    width: 260px !important;
  }

  .hero-slide__title {
    font-size: 0.78rem;
  }

  .hero-swiper .swiper-slide-active .hero-slide__title {
    font-size: 1.15rem;
  }

  .hero-swiper .swiper-slide-active .hero-slide__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .hero-section {
    padding: 24px 0 36px;
  }

  .hero-glow {
    width: 700px;
    height: 400px;
  }

  .hero-swiper .swiper-slide {
    width: 180px;
  }

  .hero-swiper .swiper-slide-active {
    width: 320px !important;
  }

  .hero-slide__title {
    font-size: 0.82rem;
  }

  .hero-swiper .swiper-slide-active .hero-slide__title {
    font-size: 1.25rem;
  }

  .hero-swiper .swiper-slide-active .hero-slide__desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 0.76rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-section {
    padding: 28px 0 40px;
  }

  .hero-glow {
    width: 900px;
    height: 450px;
  }

  .hero-swiper .swiper-slide {
    width: 200px;
  }

  .hero-swiper .swiper-slide-active {
    width: 380px !important;
    box-shadow:
      0 12px 50px rgba(139, 92, 246, 0.2),
      0 4px 25px rgba(0, 0, 0, 0.5);
  }

  .hero-slide__title {
    font-size: 0.85rem;
  }

  .hero-swiper .swiper-slide-active .hero-slide__title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .hero-swiper .swiper-slide-active .hero-slide__desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 3px 12px;
    border-radius: 5px;
  }
}

/* Wide desktop (1280px+) */
@media (min-width: 1280px) {
  .hero-swiper .swiper-slide {
    width: 220px;
  }

  .hero-swiper .swiper-slide-active {
    width: 420px !important;
  }

  .hero-swiper .swiper-slide-active .hero-slide__title {
    font-size: 1.5rem;
  }
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.icon-purple {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.icon-pink {
  background: linear-gradient(135deg, var(--accent-pink), #f9a8d4);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2px 0 0;
}

/* =============================================
   MANGA GRID & CARDS — Glassmorphic
   ============================================= */
.manga-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .manga-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .manga-grid-v2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .manga-grid-v2 {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.manga-card-v2 {
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
  transition: all 0.35s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s var(--ease-out) backwards;
}

.manga-card-v2:nth-child(1) {
  animation-delay: 0.05s;
}

.manga-card-v2:nth-child(2) {
  animation-delay: 0.10s;
}

.manga-card-v2:nth-child(3) {
  animation-delay: 0.15s;
}

.manga-card-v2:nth-child(4) {
  animation-delay: 0.20s;
}

.manga-card-v2:nth-child(5) {
  animation-delay: 0.25s;
}

.manga-card-v2:nth-child(6) {
  animation-delay: 0.30s;
}

.manga-card-v2:nth-child(7) {
  animation-delay: 0.35s;
}

.manga-card-v2:nth-child(8) {
  animation-delay: 0.40s;
}

.manga-card-v2:nth-child(9) {
  animation-delay: 0.45s;
}

.manga-card-v2:nth-child(10) {
  animation-delay: 0.50s;
}

.manga-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 30px -5px var(--accent-glow);
}

.manga-card-v2 .card-cover {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.manga-card-v2 .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.manga-card-v2:hover .card-cover img {
  transform: scale(1.08);
}

/* HOT badge */
.manga-card-v2 .badge-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  animation: badge-pulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* Card gradient overlay at bottom of image */
.manga-card-v2 .card-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  pointer-events: none;
  opacity: 0.6;
}

.manga-card-v2 .card-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.manga-card-v2 .card-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 5px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-width: 0;
  word-break: break-word;
}

.manga-card-v2 .card-title a {
  color: inherit;
  transition: color 0.2s;
}

.manga-card-v2 .card-title a:hover {
  color: var(--accent);
}

.manga-card-v2 .card-meta {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.manga-card-v2 .card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-card-v2 .card-meta .text-warning {
  color: var(--gold) !important;
}

/* Chapter list */
.manga-card-v2 .chapter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.manga-card-v2 .chapter-item {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  min-width: 0;
}

.manga-card-v2 .chapter-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.manga-card-v2 .chapter-item span:first-child {
  flex-shrink: 0;
}

.manga-card-v2 .chapter-item span:last-child {
  flex-shrink: 1;
  text-align: right;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.manga-card-v2 .chapter-item:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  border-color: transparent;
  transform: translateX(3px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.manga-card-v2 .chapter-item:hover span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile card adjustments */
@media (max-width: 575.98px) {
  .manga-card-v2 .card-body {
    padding: 8px;
  }

  .manga-card-v2 .card-title {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .manga-card-v2 .card-meta {
    font-size: 0.65rem;
    gap: 6px;
    margin-bottom: 6px;
  }

  .manga-card-v2 .chapter-item {
    padding: 5px 7px;
    font-size: 0.68rem;
  }

  .manga-card-v2 .badge-hot {
    padding: 2px 6px;
    font-size: 0.55rem;
    top: 6px;
    left: 6px;
  }
}

@media (min-width: 768px) {
  .manga-card-v2 .card-body {
    padding: 12px;
  }

  .manga-card-v2 .card-title {
    font-size: 0.88rem;
  }

  .manga-card-v2 .card-meta {
    font-size: 0.75rem;
  }

  .manga-card-v2 .chapter-item {
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}

/* =============================================
   TOP BOARD — Premium Sidebar
   ============================================= */
.top-board-v2 {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--bg-glass-border);
  position: sticky;
  top: 80px;
}

.top-board-v2 .board-tabs {
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  display: flex;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.top-board-v2 .board-tab {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.top-board-v2 .board-tab:hover {
  color: var(--text-primary);
}

.top-board-v2 .board-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.top-board-v2 .board-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-board-v2 .board-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  border-bottom: 1px solid var(--border-subtle);
}

.top-board-v2 .board-item:last-child {
  border-bottom: none;
}

.top-board-v2 .board-item:hover {
  background: var(--bg-glass-hover);
}

.top-board-v2 .board-rank {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Gold, Silver, Bronze */
.top-board-v2 .board-item:nth-child(1) .board-rank {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.top-board-v2 .board-item:nth-child(2) .board-rank {
  color: var(--silver);
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}

.top-board-v2 .board-item:nth-child(3) .board-rank {
  color: var(--bronze);
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

.top-board-v2 .board-thumb {
  width: 48px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s;
}

.top-board-v2 .board-item:hover .board-thumb {
  border-color: var(--accent);
}

.top-board-v2 .board-info {
  flex: 1;
  min-width: 0;
}

.top-board-v2 .board-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.top-board-v2 .board-title a {
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.top-board-v2 .board-title a:hover {
  color: var(--accent);
}

.top-board-v2 .board-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.top-board-v2 .board-stats .text-warning {
  color: var(--gold) !important;
}

/* =============================================
   CONTENT LAYOUT
   ============================================= */
.homepage-v2.container {
  max-width: 1280px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0 60px;
}

/* "View more" button */
.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-view-more:hover {
  color: white;
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* Back to top */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  border: none;
}

.btn-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
}

/* =============================================
   RESPONSIVE (content only — hero has its own)
   ============================================= */
@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-header-v2 {
    margin-bottom: 20px;
  }

  .section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

/* =============================================
   DROPDOWN OVERRIDES (AdminLTE compat)
   ============================================= */
.navbar-v2 .dropdown-menu {
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  padding: 8px;
}

.navbar-v2 .dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.navbar-v2 .dropdown-item:hover {
  background: var(--bg-glass-hover);
  color: white;
}

.navbar-v2 .dropdown-header {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}

.navbar-v2 .dropdown-divider {
  border-color: var(--border-subtle);
  margin: 4px 0;
}