:root {
  --primary-purple: #7d3cff;
  --dark-purple: #5a1de0;
  --light-purple: #a66bf2;
  --black: #0f0f15;
  --dark-gray: #1a1a24;
  --medium-gray: #252533;
  --light-gray: #343444;
  --text-white: #f5f5ff;
  --text-gray: #b0b0c0;
  --ai-avatar-border: #8a4fff;
  --user-message-bg: linear-gradient(135deg, var(--primary-purple), #8e44ad);
  --ai-message-bg: linear-gradient(135deg, #2c2c40, #3a3a50);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
  max-width: 3000px;
  margin: auto;
  background-color: #121212;
  padding: 25px 15px;
}
.section-title {
  font-size: 1.8em;
  margin: 0;
  color: #fff;
  border-bottom: 4px solid rgb(83, 0, 116);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.4em;
  }
}

.grid {
  display: grid;
  gap: 15px;
  padding: 10px 0;
}
.grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.comic-card {
  position: relative;
  overflow: visible;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8a2be2, #4b0082);
  border-radius: 4px;
}

.comic-card:hover {
  transform: translateY(-5px) scale(1.02);
  z-index: 10;
}

.comic-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}
.comic-card h3 {
  margin: 0;
  font-size: medium;
  color: #e9e9e9;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.comic-card .content-wrapper {
  display: flex;
  flex-direction: column;
  height: 130px;
}

.comic-card .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comic-card .title-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
}

.comic-image {
  position: relative;
  display: block;
  width: 100%;
  user-select: none;
  pointer-events: auto;
}

img.flag-icon {
  all: unset;
  display: inline-block !important;
  width: 30px !important;
  height: auto !important;
  position: absolute !important;
  top: 10px !important;
  right: 8px !important;
  max-width: none !important;
  border-radius: 3px !important;
  padding: 2px !important;
  z-index: 999 !important;
}

.chapter-badge {
  background: linear-gradient(to right, #8a2be2, #4b0082) !important;
  color: #fff !important;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  width: calc(100% - 5px);
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 450;
  min-height: 36px;
}

.comic-card a {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.update-badge {
  background-color: #800080;
  color: white;
  padding: 2px 6px;
  font-size: 0.75em;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.read-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #ce50ff;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.comic-card:hover .read-icon {
  opacity: 1;
  font-size: 36px;
}
.rank-badge {
  position: absolute;
  top: 10px;
  left: 5px;
  background: linear-gradient(45deg, rgb(121, 13, 229), rgb(208, 0, 255));
  color: rgb(34, 33, 33);
  font-size: 1em;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 2;
  font-weight: 600;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.rank-badge.gold {
  background: linear-gradient(45deg, #ffd700, #ffec8b);
}

.rank-badge.silver {
  background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
}

.rank-badge.bronze {
  background: linear-gradient(45deg, #cd7f32, #d29a6b);
}

.rank-badge.default {
  background: linear-gradient(45deg, rgb(121, 13, 229), rgb(208, 0, 255));
}

@media (max-width: 768px) {
  img.flag-icon {
    width: 25px !important;
  }

  .comic-card h3 {
    font-weight: 700;
    min-height: 30px;
    max-height: 4em;
    line-height: 1.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    margin-top: 5px;
    margin-bottom: 2px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .chapter-badge {
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 450;
    min-height: 36px;
  }
  .comic-card img {
    height: 400px;
  }
}

.lihat-semua-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #8a2be2, #4b0082);
  color: white;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 20px;
}

.lihat-semua-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .lihat-semua-btn {
    font-size: 0.9rem;
    padding: 12px 0;
  }
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 660px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 12) 100%
  );
}

.hero-comic-thumbnail {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  width: 260px;
  height: 375px;
  border-radius: 15px;
  overflow: hidden;
  z-index: 10;
  box-shadow: -10px 10px 25px rgba(0, 0, 0, 0.4),
    -5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.hero-comic-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-comic-badge {
  position: absolute;
  top: 60px;
  left: 14%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #30027a, #6905c7);
  padding: 13px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  z-index: 20;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-slide-content-wrapper {
  position: absolute;
  top: 45%;
  left: 360px;
  right: 80px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  height: 280px;
  z-index: 10;
}

.hero-slide-content {
  margin-bottom: 20px;
}

.hero-comic-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  color: rgb(229, 229, 229);
}

.hero-comic-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-meta-item {
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.hero-comic-description-container {
  flex-grow: 1;
  overflow: hidden;
}

.hero-comic-description {
  font-size: 16px;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
  max-height: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
}

.hero-navigation {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
  border-radius: 20px;
  padding: 15px 33px;
  background-color: rgba(150, 150, 150, 0.2);
  backdrop-filter: blur(5px);
}

.hero-nav-dot {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  will-change: transform;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-nav-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  will-change: transform, opacity;
}

.hero-nav-dot:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-nav-dot:hover img {
  opacity: 0.9;
  transform: scale(1.03);
}

.hero-nav-dot.active {
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-8px) scale(1.1);
  z-index: 2;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-nav-dot.active img {
  opacity: 1;
  transform: scale(1.05);
}

.hero-nav-dot:not(.active) {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-nav-dot:hover::after {
  opacity: 1;
}

.hero-nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 25;
}

.hero-nav-arrows:hover {
  background: rgba(39, 3, 65, 0.35);
}

.hero-nav-prev {
  left: 10px;
}

.hero-nav-next {
  right: 10px;
}

@media (max-width: 1366px) {
  .hero-slider-container {
    height: 650px;
  }

  .hero-slide-content-wrapper {
    left: 300px;
    right: 60px;
    top: 40%;
  }

  .hero-comic-title {
    font-size: 1.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 5em;
  }

  .hero-comic-thumbnail {
    width: 220px;
    height: 320px;
    left: 60px;
    top: 40%;
  }
  .hero-comic-description {
    -webkit-line-clamp: 6;
  }

  .hero-comic-badge {
    left: 12%;
    top: 10px;
    font-size: 14px;
  }

  .hero-nav-dot {
    width: 70px;
    height: 70px;
  }

  .hero-nav-arrows {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-slider-container {
    height: 650px;
  }

  .hero-meta-item {
    display: none;
  }

  .hero-slide-content-wrapper {
    left: 300px;
    right: 60px;
    top: 40%;
  }

  .hero-comic-title {
    font-size: 1.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 3.8em;
  }

  .hero-comic-thumbnail {
    width: 220px;
    height: 320px;
    left: 60px;
    top: 40%;
  }
  .hero-comic-description {
    -webkit-line-clamp: 5;
  }

  .hero-comic-badge {
    left: 18%;
    top: 10px;
    font-size: 14px;
  }

  .hero-nav-dot {
    width: 70px;
    height: 70px;
  }

  .hero-nav-arrows {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: 500px;
  }

  .hero-meta-item.mobile-hide {
    display: none;
  }

  .hero-slide-content-wrapper {
    left: 240px;
    right: 40px;
  }

  .hero-comic-thumbnail {
    width: 180px;
    height: 265px;
    left: 40px;
    top: 40%;
  }

  .hero-comic-title {
    font-size: 1.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 4em;
  }

  .hero-comic-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }

  .hero-comic-badge {
    font-size: 14px;
    padding: 10px 20px;
    top: 20px;
    left: 18%;
  }

  .hero-nav-dot {
    width: 60px;
    height: 60px;
  }

  .hero-navigation {
    padding: 15px 15px;
    gap: 10px;
  }
  .hero-nav-arrows {
    top: auto;
    bottom: 40px;
    transform: none;
    width: 45px;
    height: 45px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0);
  }

  .hero-nav-prev {
    left: 20px;
    right: auto;
  }

  .hero-nav-next {
    right: 20px;
    left: auto;
  }
}

@media (max-width: 650px) {
  .hero-slider-container {
    height: 700px;
  }

  .hero-meta-item.mobile-hide {
    display: none;
  }

  .hero-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-position: center top;
  }

  .hero-comic-thumbnail {
    position: relative;
    top: -30px;
    left: auto;
    transform: none;
    width: 200px;
    height: 290px;
    margin-bottom: 0px;
  }

  .hero-slide-content-wrapper {
    position: relative;
    top: -34px;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    height: auto;
  }

  .hero-comic-badge {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
  }

  .hero-comic-title {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 10px;
  }

  .hero-comic-meta {
    justify-content: center;
    font-size: 10px;
  }

  .hero-comic-description {
    -webkit-line-clamp: 2;
  }

  .hero-navigation {
    padding: 10px 20px;
    gap: 8px;
  }

  .hero-nav-dot {
    width: 45px;
    height: 45px;
  }

  .hero-nav-arrows {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .hero-nav-prev {
    left: 5px;
  }

  .hero-nav-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    height: 360px;
  }

  .hero-slide {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 15px;
    background-position: center top;
  }

  .hero-comic-thumbnail {
    position: relative;
    top: 50px;
    left: 0;
    transform: none;
    width: 150px;
    height: 220px;
    margin-bottom: 0;
    margin-right: 15px;
  }

  .hero-slide-content-wrapper {
    position: relative;
    top: 50px;
    left: 0;
    transform: none;
    width: calc(100% - 165px);
    padding: 0;
    text-align: left;
    height: auto;
  }

  .hero-comic-badge {
    top: 10px;
    left: 10px;
    transform: none;
    z-index: 30;
    font-size: 12px;
  }

  .hero-comic-title {
    font-size: 1.25rem;
    text-align: left;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
  }

  .hero-comic-description {
    font-size: 13px;
    -webkit-line-clamp: 4;
    text-align: left;
  }

  .hero-comic-meta {
    font-size: 8px;
    gap: 8px;
    justify-content: flex-start;
  }

  .hero-meta-item {
    padding: 5px 10px;
  }

  .hero-navigation {
    padding: 8px 15px;
    gap: 5px;
    bottom: 10px;
  }

  .hero-nav-arrows {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 35px;
    height: 35px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0);
  }

  .hero-nav-prev {
    left: 6px;
    right: auto;
  }

  .hero-nav-next {
    right: 6px;
    left: auto;
  }

  .hero-nav-dot {
    width: 32px;
    height: 32px;
  }
  .comic-card img {
    height: 270px;
  }
}

@media (max-width: 360px) {
  .hero-slider-container {
    height: 350px;
  }

  .hero-comic-thumbnail {
    width: 140px;
    height: 210px;
  }

  .hero-comic-title {
    font-size: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 4em;
  }

  .hero-comic-badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero-comic-description {
    -webkit-line-clamp: 4;
  }

  .hero-comic-meta {
    display: none;
  }

  .hero-nav-dot {
    width: 28px;
    height: 28px;
  }

  .hero-nav-arrows {
    width: 30px;
    height: 30px;
  }
  .hero-nav-prev {
    left: 6px;
    right: auto;
  }

  .hero-nav-next {
    right: 6px;
    left: auto;
  }
  .comic-card img {
    height: 220px;
  }
}


.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .recommendation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .recommendation-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .recommendation-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lihat-semua {
  color: rgb(106, 41, 166);
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 15px;
}
@media (max-width: 768px) {
  .lihat-semua {
    font-size: 0.7rem;
  }
}

.lihat-semua:hover {
  color: #b967ff !important;
}

.lihat-semua .arrow-icon {
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

.lihat-semua:hover .arrow-icon {
  transform: translateX(5px);
}

.nav-button:hover,
dation-arrow:hover {
  background: rgba(138, 43, 226, 0.4);
}

.arrow-icon {
  color: rgb(106, 41, 166);
  font-size: 0.9rem;
  margin-left: 0.5em;
}

.rkm-flag {
  all: unset;
  display: inline-block !important;
  width: 30px !important;
  height: auto !important;
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  max-width: none !important;
  background: rgba(0, 0, 0, 0.7) !important;
  border-radius: 3px !important;
  padding: 2px !important;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999 !important;
}

.bug-report-banner {
  width: 100%;
  height: 400px;
  background: url("../images/background.jpeg") no-repeat center center / cover;
  border: 1px solid rgb(78, 1, 150);
  border-radius: 12px;
  margin: 0 0;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 0, 147, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.bug-report-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(19, 2, 43, 0.3) 100%
  );
  z-index: 1;
}

.social-media-section {
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  width: 30%;
  min-width: 250px;
}

.social-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.social-support-text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.social-media-icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 10px;
  user-select: none;
}

.social-media-icons a {
  color: #ffffff;
  font-size: 1.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-media-icons a:hover {
  color: #bb86fc;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.8);
}

.logo-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: white;
  font-size: 2rem;
  text-align: center;
  flex: 0 0 auto;
  user-select: none;
}

.logo-wrapper img {
  width: 70px;
  height: 70px;

  filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.8));
}

.logo-wrapper span {
  font-weight: bold;
}

.logo-wrapper .text-secondary {
  color: #bb86fc;
}

.bug-content {
  position: relative;
  z-index: 2;
  width: 35%;
  text-align: right;
}

.bug-title {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.bug-description {
  color: rgb(255, 255, 255);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: right;
}

.report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgb(155, 78, 250), rgb(133, 0, 234));
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.4);
  border: none;
  cursor: pointer;
  user-select: none;
}

.report-button:hover {
  transform: translateY(-3px);
}

.report-button i {
  margin-right: 8px;
}

.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgb(155, 78, 250), rgb(133, 0, 234));
  color: white;
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.4);
  border: none;
  cursor: pointer;
  margin-top: 15px;
  z-index: 2;
  position: relative;
}

.donate-button:hover {
  transform: translateY(-3px);
}

.donate-button i {
  margin-right: 8px;
}

.bug-icon {
  position: absolute;
  font-size: 1.5rem;
  color: #bb86fc;
  opacity: 0.3;
  z-index: 2;
}

.bug-icon:nth-child(1) {
  top: 20px;
  left: 20px;
}
.bug-icon:nth-child(2) {
  bottom: 20px;
  right: 20px;
  transform: rotate(180deg);
}
.bug-icon:nth-child(3) {
  top: 50%;
  left: 40px;
}
@media (max-width: 900px) {
  .bug-report-banner {
    flex-direction: column;
    height: auto;
    padding: 40px 25px;
    text-align: center;
  }

  .social-media-section,
  .bug-content {
    width: 100%;
    text-align: center;
  }

  .social-media-section {
    order: -1;
    margin-bottom: 30px;
  }

  .logo-wrapper {
    margin: 25px 0;
  }

  .bug-content {
    margin-top: 20px;
  }

  .bug-description {
    text-align: center;
  }

  .social-media-icons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .bug-title {
    font-size: 1.5rem;
  }

  .social-title {
    font-size: 1.5rem;
  }

  .logo-wrapper {
    font-size: 2rem;
  }

  .bug-description,
  .social-support-text {
    font-size: 0.9rem;
  }
}

.ad-desktop,
.ad-mobile {
  display: none;
}

@media (min-width: 769px) {
  .ad-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .ad-desktop div {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .ad-mobile {
    display: block;
  }
  .ad-mobile div {
    margin-bottom: 10px;
  }
}

.ai-chat-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  cursor: grab;
  z-index: 9999;

  transition: all 0.2s ease;
  animation: float 3.5s ease-in-out infinite;
}

.ai-chat-icon:hover {
  transform: scale(1.05);
}

.ai-chat-icon img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
}

.ai-chat-icon:active {
  cursor: grabbing;
}

.ai-chat-icon .ai-label {
  background: #1a0d29;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  height: auto;
  border-radius: 0;
  margin-left: -8px;
  border-radius: 10%;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.ai-chat-modal {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 400px;
  height: 500px;
  background: rgba(26, 11, 46, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(125, 60, 255, 0.3);
}

.ai-chat-header {
  padding: 1.8rem 2rem;
  background: rgba(15, 10, 30, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(125, 60, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ai-chat-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, var(--light-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(125, 60, 255, 0.3);
}

.close-chat {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-chat:hover {
  color: var(--light-purple);
}

.ai-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ai-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(30, 30, 45, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 60, 255, 0.15);
  padding-bottom: 160px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) rgba(26, 26, 36, 0.5);
}

.ai-typing {
  position: sticky;
  bottom: 70px;
  align-self: flex-start;
  background: rgba(52, 52, 68, 0.8);
  padding: 0.8rem 1.5rem;
  border-radius: 18px;
  display: none;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(125, 60, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-left: 15px;
  margin-bottom: 10px;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 5px 20px rgba(125, 60, 255, 0.4);
  }
  100% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--light-purple);
  font-weight: 500;
}

.typing-dot {
  width: 10px;
  height: 10px;
  background-color: var(--light-purple);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
  box-shadow: 0 0 10px var(--light-purple);
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.ai-input-container {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 1rem;
  background: rgba(40, 40, 60, 0.7);
  border-radius: 20px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 60, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 9;
}

.ai-input-container:focus-within {
  box-shadow: 0 8px 30px rgba(125, 60, 255, 0.3);
  border-color: rgba(125, 60, 255, 0.4);
}

#ai-user-input {
  flex: 1;
  padding: 0.9rem 1.3rem;
  border: none;
  background: transparent;
  color: var(--text-white);
  font-size: 1.05rem;
  outline: none;
  border-radius: 50px;
}

#ai-user-input::placeholder {
  color: var(--text-gray);
  font-weight: 300;
}

#ai-send-btn {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--dark-purple)
  );
  color: white;
  border: none;
  padding: 0 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(55, 13, 173, 0.5);
  position: relative;
  overflow: hidden;
  gap: 5px;
}

#ai-send-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

#ai-send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(125, 60, 255, 0.6);
}

#ai-send-btn:hover::before {
  left: 100%;
}

#ai-send-btn:active {
  transform: translateY(0);
}

.message {
  max-width: 85%;
  position: relative;
  animation: fadeIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  word-wrap: break-word;
  line-height: 1.6;
  display: flex;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 11;
}

.message:hover {
  transform: translateY(-3px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message {
  align-self: flex-start;
}

.message-content {
  padding: 1.4rem 1.8rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.user-message .message-content {
  background: var(--user-message-bg);
  color: white;
  border-top-right-radius: 6px;
}

.ai-message .message-content {
  background: var(--ai-message-bg);
  color: var(--text-white);
  border-top-left-radius: 6px;
}

.message-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-purple), transparent);
  opacity: 0.6;
}

.message-text .section-title {
  color: var(--light-purple);
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message-text .comic-title {
  font-size: 1.3rem;
  color: var(--text-white);
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.message-text p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

.message-text ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.message-text ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1rem;
}

.message-text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--light-purple);
  font-size: 1.2rem;
}

.comic-item {
  background: rgba(50, 50, 70, 0.3);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(125, 60, 255, 0.2);
  font-size: 0.95rem;
}

.comic-item b {
  color: var(--light-purple);
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(125, 60, 255, 0.3);
  border: 2px solid var(--ai-avatar-border);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ai-avatar {
  background: linear-gradient(135deg, #3a1c71, #5a1de0);
}

.user-avatar {
  background: linear-gradient(135deg, #7d3cff, #c56cf0);
}

.avatar i {
  font-size: 24px;
  color: white;
}

.ai-chat-history::-webkit-scrollbar {
  width: 10px;
}

.ai-chat-history::-webkit-scrollbar-track {
  background: rgba(26, 26, 36, 0.5);
  border-radius: 4px;
}

.ai-chat-history::-webkit-scrollbar-thumb {
  background: var(--primary-purple);
  border-radius: 4px;
  border: 2px solid rgba(30, 30, 45, 0.5);
}

.ai-chat-history::-webkit-scrollbar-thumb:hover {
  background: var(--light-purple);
}

@media (min-width: 769px) {
  .ai-chat-modal {
    width: 1000px;
    height: 700px;
    bottom: 50px;
    right: 20px;
  }
  .ai-chat-header h3 {
    font-size: 1.6rem;
  }
  .close-chat {
    font-size: 1.7rem;
  }
  .ai-chat-history {
    padding: 2rem;
    gap: 2.5rem;
    padding-bottom: 180px;
  }
  .message-content {
    font-size: 1.2rem;
    padding: 1.6rem 2rem;
  }
  .ai-input-container {
    padding: 0.7rem 1.2rem;
  }
  #ai-user-input {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  #ai-send-btn {
    padding: 0 2rem;
    font-size: 0.9rem;
  }
  .ai-typing {
    padding: 1rem 1.8rem;
    bottom: 80px;
  }
  .typing-dot {
    width: 12px;
    height: 12px;
  }
  .avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .ai-chat-modal {
    width: 95vw;
    height: 85vh;
    bottom: 70px;
    right: 2.5vw;
  }
  .ai-chat-icon {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
  .ai-chat-header {
    padding: 1.2rem 1.5rem;
  }
  .ai-chat-header h3 {
    font-size: 0.95rem;
  }
  .close-chat {
    font-size: 1.2rem;
  }
  .ai-chat-history {
    padding: 1rem;
    gap: 1.2rem;
    padding-bottom: 120px;
  }
  .message-content {
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
  }
  .message-text .section-title {
    font-size: 1rem;
  }
  .message-text .comic-title {
    font-size: 1.1rem;
  }
  .message-text p {
    font-size: 0.85rem;
  }
  .comic-item {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  .ai-input-container {
    padding: 0.6rem 0.8rem;
  }
  #ai-user-input {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  #ai-send-btn {
    padding: 0 1.2rem;
    font-size: 0.85rem;
  }
  .ai-typing {
    margin-left: 10px;
    bottom: 60px;
    padding: 0.6rem 1.2rem;
  }
  .typing-dot {
    width: 8px;
    height: 8px;
  }
  .typing-indicator span {
    font-size: 0.8rem;
  }
  .avatar {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }
  .avatar i {
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .ai-chat-modal {
    width: 98vw;
    height: 90vh;
    bottom: 60px;
    right: 1vw;
  }
  .ai-chat-icon {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  .ai-chat-header {
    padding: 1rem 1.2rem;
  }
  .ai-chat-header h3 {
    font-size: 0.9rem;
  }
  .close-chat {
    font-size: 1.1rem;
  }
  .ai-chat-history {
    padding: 0.8rem;
    gap: 1rem;
    padding-bottom: 110px;
  }
  .message-content {
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
  }
  .message-text .section-title {
    font-size: 0.9rem;
  }
  .message-text .comic-title {
    font-size: 1rem;
  }
  .message-text p {
    font-size: 0.8rem;
  }
  .comic-item {
    font-size: 0.75rem;
    padding: 0.7rem;
  }
  .ai-input-container {
    padding: 0.5rem 0.7rem;
  }
  #ai-user-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  #ai-send-btn {
    padding: 0 1rem;
    font-size: 0.8rem;
  }
  .ai-typing {
    margin-left: 8px;
    bottom: 55px;
    padding: 0.5rem 1rem;
  }
  .typing-dot {
    width: 7px;
    height: 7px;
  }
  .typing-indicator span {
    font-size: 0.75rem;
  }
}
.top-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.top-category {
  flex: 1;
  min-width: 30px;
  border-radius: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(125, 60, 255, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.top-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.top-category:hover {
  transform: translateY(-5px);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sub-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sub-header h3 {
    font-size: 1rem;
  }
}
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .top-category {
    min-width: 100%;
  }
}

.recommendation-container {
  position: relative;
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.populer-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.populer-slide-track {
  display: flex;
  gap: 15px;
  transition: transform 0.2s ease-in-out;
  padding: 10px 0;
  cursor: grab;
  transform: translateX(0);
  will-change: transform;
  backface-visibility: hidden;
}

.populer-slide-track.grabbing {
  cursor: grabbing;
  transition: none;
}

.populer-slide-item {
  flex: 0 0 calc(50% - 5px);
  min-width: calc(50% - 5px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.populer-slide-track * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.populer-slide-track {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.populer-slide-item,
.populer-slide-item * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  .populer-slide-item {
    flex: 0 0 calc(33.33% - 10px);
    min-width: calc(33.33% - 10px);
  }

  .populer-slider-container {
    touch-action: pan-y pinch-zoom;
  }
}

@media (min-width: 992px) {
  .populer-slide-item {
    flex: 0 0 calc(25% - 11px);
    min-width: calc(25% - 11px);
  }
}

@media (min-width: 1200px) {
  .populer-slide-item {
    flex: 0 0 calc(16.666% - 12px);
    min-width: calc(16.666% - 12px);
  }
}

.recommendation-slide-track {
  display: flex;
  gap: 15px;
  transition: transform 0.2s ease-in-out;
  padding: 10px 0;
  cursor: grab;
  transform: translateX(0);
  will-change: transform;
  backface-visibility: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.recommendation-slide-track.grabbing {
  cursor: grabbing;
  transition: none;
}

.recommendation-slide-track * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.recommendation-slide-track {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.recommendation-slide-track::-webkit-scrollbar {
  display: none;
}

.comic-cardv2 {
  position: relative;
  overflow: visible;
}

.comic-cardv2:hover {
  transform: translateY(-5px) scale(1.02);
  z-index: 10;
}

.comic-cardv2 img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.comic-cardv2 h3 {
  margin: 0;
  font-size: medium;
  color: #e9e9e9;
  text-decoration: none !important;
  font-weight: 700;
  min-height: 60px;
  max-height: 4em;
  line-height: 1.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.comic-cardv2:hover .read-icon {
  opacity: 1;
  font-size: 36px;
}

@media (max-width: 768px) {
  .comic-cardv2 h3 {
    font-weight: 700;
    min-height: 30px;
    max-height: 4em;
    line-height: 1.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.9em;
    padding-bottom: 7px;
  }
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: 20px;
}

.filter-btn {
  padding: 8px 19px;
  border-radius: 8px;
  background: #393939;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  background: #8a2be2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active {
 background: linear-gradient(135deg, #8a2be2, #4b0082);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 5px 13px;
    font-size: 14px; 
  }
  .filter-buttons {
  margin-bottom: 5px;
  margin-top: 5px;
}
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  grid-column: 1 / -1;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #7d3cff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.recommendation-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
}


.update-filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: 20px;
}

.update-filter-btn {
  padding: 8px 19px;
  border-radius: 8px;
  background: #393939;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.update-filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.update-filter-btn:hover {
  background: #8a2be2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.update-filter-btn:hover::before {
  left: 100%;
}

.update-filter-btn.active {
  background: linear-gradient(135deg, #8a2be2, #4b0082);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  transform: translateY(-2px);
}

.update-error-message {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 16px;
  font-weight: 500;
  min-height: 200px;
}

.update-error-message p {
  margin: 0;
}

@media (max-width: 768px) {
  .update-filter-btn {
    padding: 5px 13px;
    font-size: 14px;
  }
  
  .update-filter-buttons {
    gap: 8px;
    margin-bottom: 5px;
    margin-top: 15px;
  }
  
  .update-error-message {
    padding: 40px 15px;
    font-size: 14px;
    min-height: 150px;
  }
}