

/* =====================
   General Styles
====================== */
* {
    font-family: 'Cairo', sans-serif ;
}

html,
body {
  height: 100%;
  font-family: var(--main-font);
  -webkit-font-smoothing: antialiased;
  background: var(--main-bg);
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  border-radius: 10px;
  border: 2px solid rgba(26, 26, 26, 0.8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--coler-5), var(--main-red8));
}

/* Firefox Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--coler-1) rgba(26, 26, 26, 0.8);
}

* {
  box-sizing: border-box;
}

.container,
.container-fluid {
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: #111111;
  font-weight: 400;
  font-family: var(--main-font);
}

h1 {
  font-size: 70px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 30px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  font-size: 15px;
  font-family: var(--main-font);
  color: var(--main-white);
  font-weight: 400;
  line-height: 25px;
  text-align: center;
  margin: 0 0 15px 0;
}

img {
  max-width: 100%;
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  outline: none;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
  color: var(--main-white);
}

ul,
ol {
  padding: 0;
  margin: 8px;
  text-align: center;
}

.alert {
  background-color: var(--main-red);
  color: var(--main-white);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.form-control:focus {
  border-color: var(--main-purple);
  box-shadow: 0 0 0 0.2rem rgba(162, 37, 216, 0.25);
}

.btn-dark {
  background-color: var(--main-dark);
  border-color: transparent;
}

.btn:hover {
  background: var(--main-btn-hover);
  border-color: transparent;
}

.section-title {
  margin-bottom: 30px;
  text-align: left;
}

.section-title h4,
.section-title h5 {
  color: var(--main-white);
  font-weight: 600;
  line-height: 21px;
  text-transform: uppercase;
  padding-left: 20px;
  position: relative;
  font-family: var(--title-font);
  text-align: left;
}

.section-title h4:after,
.section-title h5:after {
  position: absolute;
  left: 0;
  top: -6px;
  height: 32px;
  width: 4px;
  background: var(--main-purple);
  content: "";
  display: block;
}

/* Trending Works Title Styling */
.trending-title {
  text-align: left;
  margin: 0px 30px 40px;
  position: relative;
  padding: 20px 0;
}

.trending-title h4 {
  color: var(--main-white);
  font-size: 32px;
  font-weight: 800;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 16px rgba(255, 107, 53, 0.4);
  margin-bottom: 10px;
}

.trending-title h4::after {
  content: '🔥';
  position: relative;
  font-size: 28px;
  animation: fireFlicker 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.8));
  text-shadow: none;
  -webkit-text-fill-color: initial;
}

@keyframes fireFlicker {
  0% {
    transform: scale(1) rotate(-2deg);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.8)) hue-rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(1deg);
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.9)) hue-rotate(10deg);
  }
  50% {
    transform: scale(0.95) rotate(-1deg);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.7)) hue-rotate(-5deg);
  }
  75% {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 18px rgba(255, 99, 71, 0.8)) hue-rotate(15deg);
  }
  100% {
    transform: scale(1) rotate(-1deg);
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6)) hue-rotate(5deg);
  }
}

.trending-title h4::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4757);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.5);
}

.trending-title::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 30px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff4757, #ff6b35);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
}

.trending-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b35, #ff4757);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

@media (max-width: 768px) {
  .trending-title {
    margin: 30px 20px 25px;
    text-align: center;
  }
  
  .trending-title h4 {
    font-size: 24px;
    letter-spacing: 2px;
    flex-direction: column;
    gap: 10px;
  }
  
  .trending-title h4::before {
    width: 80px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
  }
  
  .trending-title::after {
    width: 60px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
    bottom: 10px;
  }
  
  .trending-title::before {
    display: none;
  }
}

/* Latest Releases Title Styling */
.latest-releases-title {
  text-align: left;
  margin: 30px 30px 40px;
  position: relative;
  padding: 20px 0;
}

.latest-releases-title h2 {
  color: var(--main-white);
  font-size: 36px;
  font-weight: 800;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--coler-1) 0%, var(--main-btn-hove2) 50%, var(--coler-5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 16px var(--coler-box-shado);
  margin-bottom: 10px;
}

.latest-releases-title h2::after {
  content: 'NEW';
  position: relative;
  background: linear-gradient(45deg, var(--main-btn-hove2), #ff4757);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  animation: newBadgePulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  text-shadow: none;
  -webkit-text-fill-color: white;
  letter-spacing: 1px;
}

@keyframes newBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  }
}

.latest-releases-title h2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--coler-1), var(--main-btn-hove2), var(--coler-5));
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--main-red6);
}

.latest-releases-title::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 30px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--coler-5), var(--coler-1));
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(200, 35, 51, 0.4);
}

.latest-releases-title .subtitle {
  color: #b0b0b0;
  font-size: 16px;
  margin-top: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-align: left;
  opacity: 0.9;
  line-height: 1.4;
}

.latest-releases-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--coler-1), var(--coler-5));
  border-radius: 3px;
  box-shadow: 0 0 15px var(--coler-box-shado2);
}

@media (max-width: 768px) {
  .latest-releases-title {
    margin: 30px 20px 25px;
    text-align: center;
  }
  
  .latest-releases-title h2 {
    font-size: 28px;
    letter-spacing: 2px;
  }
  
  .latest-releases-title h2::before {
    width: 80px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
  }
  
  .latest-releases-title::after {
    width: 60px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
    bottom: 10px;
  }
  
  .latest-releases-title h2 {
    flex-direction: column;
    gap: 10px;
  }
  
  .latest-releases-title .subtitle {
    text-align: center;
    font-size: 14px;
  }
  
  .latest-releases-title::before {
    display: none;
  }
}

/* Slider Section */
.slider {
  padding: 40px 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(45, 45, 45, 0.95), rgba(30, 30, 30, 0.98));
  border-radius: 25px;
  margin: 30px 0;
  border: 2px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--back-coler3);
  position: relative;
}

.slider::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6b35, #f7931e, #ff4757, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.slider .section-title {
  margin-bottom: 40px;
  text-align: center;
  display: none;
}

.slider .section-title h4 {
  font-size: 28px;
  font-weight: 700;
  color: var(--main-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.slider__carousel {
  direction: ltr;
  overflow: visible;
}

.slider__item {
  position: relative;
  margin: 0 10px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.slider__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(123, 31, 162, 0.3);
}

.slider__item_pic {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.slider__item_pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider__item:hover .slider__item_pic img {
  transform: scale(1.1);
}

.slider__item h5 {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px 15px 15px;
  margin: 0;
}

.slider__item h5 a {
  color: var(--main-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.slider__item .ep {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;

}

.set-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.spad {
  padding-bottom: 100px;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white p,
.text-white span,
.text-white li,
.text-white a {
  color: var(--main-white);
}

.primary-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--main-white);
  letter-spacing: 2px;
  border-radius: 25px;
  background: var(--main-purple);
  padding: 4px 12px;
  margin-left: 167px;
}

.primary-btn span {
  font-size: 18px;
  margin-right: 5px;
  position: relative;
  top: 3px;
}

.site-btn {
  font-size: 16px;
  color: var(--main-white);
  background: var(--main-purple);
  font-weight: 700;
  border: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 12px 30px;
}



.spacial-controls {
  position: fixed;
  width: 111px;
  height: 91px;
  top: 0;
  left: 0;
  z-index: 999;
}

.spacial-controls .search-switch {
  display: block;
  height: 100%;
  padding-top: 30px;
  background: #323232;
  text-align: center;
  cursor: pointer;
}

.search-model {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  right: 0;
  top: 0;
  background: #000;
  z-index: 99999;
}

.search-model-form {
  padding: 0 15px;
}

.search-model-form input {
  width: 500px;
  font-size: 40px;
  border: none;
  border-bottom: 2px solid var(--coler-10);
  background: 0 0;
  color: #999;
}

.search-close-switch {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--coler-10);
  color: var(--main-white);
  text-align: center;
  border-radius: 50%;
  font-size: 28px;
  line-height: 28px;
  top: 30px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.page-upper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
}

.page-upper.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-upper a {
  background: linear-gradient(45deg, var(--main-purple), #9c27b0);
  color: var(--main-white);
  padding: 15px 18px;
  border-radius: 50%;
  text-align: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
}

.page-upper a:hover {
  background: linear-gradient(45deg, #9c27b0, var(--main-purple));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(123, 31, 162, 0.6);
  color: var(--main-white);
}

.modal-header {
  padding: 0.5rem 1rem;
}

.modal-header .close {
  opacity: 1;
}

.modal-body {
  direction: rtl;
}

.modal-body img {
  margin-bottom: 1rem;
}

.modal-title {
  margin-bottom: 1rem;
  color: var(--main-white);
  font-weight: bold;
}

.form-group {
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  align-items: center;
}

.input-group .form-control {
  text-align: left;
}

.input-group-text {
  padding: 10px;
}

.btn-primary {
  background-color: var(--main-blue);
  border-color: var(--main-blue);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.text-muted {
  color: #95a5a6 !important;
}

.text-primary {
  color: var(--main-blue) !important;
}

.text-primary:hover {
  color: #2980b9 !important;
}

.modal-footer {
  text-align: center;
  padding-top: 1rem;
}

.modal-footer p {
  margin: 0;
  color: #ecf0f1;
}

.modal-footer a {
  color: var(--main-blue);
  text-decoration: none;
}

.modal-footer a:hover {
  color: #2980b9;
  text-decoration: underline;
}



/* Bootstrap Navbar Customization */
.navbar {
  padding: 0 40px !important;
  height: 70px !important;
}

.navbar-brand img {
  height: 50px;
  width: 50px;
}

.navbar-nav .nav-link {
  color: var(--main-white) !important;
  font-size: 18px;
  font-weight: 500;
  padding: 9px 17px !important;
  margin-right: 4px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: var(--main-dark) !important;
  color: var(--main-white) !important;
}

.navbar-nav .nav-item.active .nav-link {
  background: #222 !important;
}

.dropdown-menu {
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.95), rgba(0, 0, 0, 0.95)) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--back-coler3) !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
  margin-top: 10px;
  min-width: 200px;
}


.dropdown-item {
  color: var(--main-white) !important;
  padding: 12px 20px !important;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 2px 10px;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--coler-6)
, transparent);
  transition: right 0.5s;
}

.dropdown-item:hover::before {
  right: 100%;
}

.dropdown-item:hover {
  background: linear-gradient(45deg, var(--coler-border), var(--back-coler3)) !important;
  color: var(--main-white) !important;
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--coler-6);
}

.dropdown-item {
  text-align: left;
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* تحديد الأقسام */
#navbarDropdown + .dropdown-menu .dropdown-item {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

#navbarDropdown + .dropdown-menu .dropdown-item:hover {
  border-left-color: var(--coler-1);
}

#navbarDropdown + .dropdown-menu .dropdown-item[href*="Manga"] {
  border-left-color: var(--succeeded);
}

#navbarDropdown + .dropdown-menu .dropdown-item[href*="Manhwa"] {
  border-left-color: #007bff;
}

#navbarDropdown + .dropdown-menu .dropdown-item[href*="Manhua"] {
  border-left-color: var(--coler-Yellow);
}

#navbarDropdown + .dropdown-menu .dropdown-item[href*="Novel"] {
  border-left-color: #6f42c1;
}

/* تحديد لوحة المستخدم */
#userDropdown + .dropdown-menu .dropdown-item {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

#userDropdown + .dropdown-menu .dropdown-item:hover {
  border-left-color: var(--coler-1);
}

#userDropdown + .dropdown-menu .dropdown-item[href*="upload"] {
  border-left-color: #17a2b8;
}

#userDropdown + .dropdown-menu .dropdown-item[href*="admin"] {
  border-left-color: #6f42c1;
}

#userDropdown + .dropdown-menu .dropdown-item[href*="profile"] {
  border-left-color: var(--succeeded);
}

#userDropdown + .dropdown-menu .dropdown-item[href*="logout"] {
  border-left-color: var(--coler-1);
}

#userDropdown + .dropdown-menu .dropdown-item[data-target="#loginModal"] {
  border-left-color: #007bff;
}

/* Search Box Styling */
#show-search:checked ~ .search-box {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.search-box {
  background: transparent;
  border-radius: 25px;
}

.search-box input {
  background: #1d1d1d !important;
  color: var(--main-white) !important;
  border: none !important;
}

.search-box input::placeholder {
  color: #f2f2f2 !important;
}

.search-box .btn {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5)) !important;
  color: var(--main-white) !important;
  border: none !important;
}

/* Professional Button Styling */
.btn-outline-light:hover {
  background: var(--back-coler3) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--back-coler13);
}

.nav-link.btn {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link.btn:hover {
  color: var(--main-white) !important;
}

/* Mobile User Section */
.mobile-user-section {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 10px;
}

.mobile-user-dropdown,
.mobile-login-dropdown {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-user-dropdown:hover,
.mobile-login-dropdown:hover {
  background: var(--back-coler3) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--back-coler13);
  color: var(--main-white) !important;
}

/* Mobile Dropdown Items Hover Effects */
.mobile-user-section .dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--coler-6), transparent);
  transition: right 0.5s;
}

.mobile-user-section .dropdown-item:hover::before {
  right: 100%;
}

.mobile-user-section .dropdown-item:hover {
  background: linear-gradient(45deg, var(--coler-border), var(--back-coler3)) !important;
  color: var(--main-white) !important;
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--coler-6);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 15px !important;
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(128, 0, 128, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--back-coler3);
    margin-top: 0;
    padding: 20px;
    z-index: 1000;
  }
  
  /* Hide user dropdown in mobile menu */
  .navbar-collapse .navbar-nav .nav-item.dropdown:last-child {
    display: none !important;
  }
  
  .navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .navbar-nav {
    margin-bottom: 15px;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  .navbar-nav .nav-link {
    background: var(--back-coler3);
    border-radius: 10px;
    margin: 3px 0;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
    border: 1px solid var(--back-coler2);
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--back-coler2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--back-coler12);
  }
  
  .search-box {
    position: relative !important;
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 10px;
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  .btn-outline-light {
    background: var(--back-coler3);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .btn-outline-light:hover {
    background: var(--back-coler2);
    border-color: var(--main-white5);
  }
}
/* Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--main-bg) 0%, var(--main-bg2) 100%);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--main-purple), transparent);
}

.footer__main {
  padding: 60px 0 40px;
  position: relative;
}

.footer__about {
  text-align: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer__logo:hover img {
  transform: scale(1.1);
}

.footer__logo h4 {
  color: var(--main-white);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.footer__desc {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
  text-align: center;
}

.footer__links {
  text-align: center;
}

.footer__links h5,
.footer__support h5 {
  color: var(--main-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer__links h5::after,
.footer__support h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--main-purple);
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links ul li {
  margin-bottom: 12px;
}

.footer__links ul li a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links ul li a:hover {
  color: var(--main-purple);
  transform: translateX(5px);
}

.footer__links ul li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.footer__support {
  text-align: center;
}

.footer__support p {
  color: #b0b0b0;
  font-size: 14px;
  margin-bottom: 20px;
}

.footer__support-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 140px;
  justify-content: center;
}

.support-btn img {
  height: 20px;
  width: 20px;
}

.support-btn.paypal {
  background: linear-gradient(45deg, #0070ba, #003087);
  color: white;
}

.support-btn.paypal:hover {
  background: linear-gradient(45deg, #005ea6, #002c7a);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 112, 186, 0.4);
}

.support-btn.kofi {
  background: linear-gradient(45deg, #ff5f5f, #ff3030);
  color: white;
}

.support-btn.kofi:hover {
  background: linear-gradient(45deg, #ff4545, #ff1010);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 95, 95, 0.4);
}

.support-btn.patreon {
  background: linear-gradient(45deg, #ff424d, #f96854);
  color: white;
}

.support-btn.patreon:hover {
  background: linear-gradient(45deg, #ff2a37, #f85142);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 66, 77, 0.4);
}

.footer__socials {
  background: linear-gradient(135deg, var(--main-bg2), var(--main-bg));
  padding: 30px 0;
  border-top: 1px solid var(--back-coler3);
}

.socials-content {
  text-align: center;
}

.socials-content h6 {
  color: var(--main-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--back-coler3);
  color: var(--main-white);
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-links a:hover {
  background: var(--main-purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
  border-color: var(--back-coler2);
}

.footer__bottom {
  background: #0f0f0f;
  padding: 25px 0;
  border-top: 1px solid var(--back-coler8);
}

.footer__copyleft {
  text-align: center;
}

.footer__copyleft p {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer__copyleft strong {
  color: var(--main-purple);
  font-weight: 700;
}

.footer__disclaimer {
  color: #666 !important;
  font-size: 11px !important;
  margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer__main {
    padding: 40px 0 30px;
  }
  
  .footer__links,
  .footer__support {
    margin-top: 40px;
  }
  
  .footer__support-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .support-btn {
    min-width: 120px;
    font-size: 12px;
    padding: 8px 15px;
  }
  
  .social-links {
    gap: 12px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .footer__support-links {
    flex-direction: column;
    align-items: center;
  }
  
  .support-btn {
    min-width: 160px;
  }
}

/* Load More Button */
.load-more-btn {
  background: linear-gradient(135deg, var(--coler-1) 0%, var(--coler-5) 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--coler-6);
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  display: block;
  min-width: 200px;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--coler-box-shado);
  background: linear-gradient(135deg, var(--coler-5) 0%, var(--coler-1) 100%);
}

.load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px var(--coler-6);
}

.load-more-btn:disabled {
  background: var(--back-coler4);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.load-more-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: rotate(180deg);
}

/* Remaining styles unchanged */
/* Layout helpers */
.container {
  width: 100%;
  max-width: 1281px;
  margin: 0 auto;
  padding: 0 15px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.card {
  background: var(--main-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--coler-2);
}

/* Featured Works Section */
/* Featured Works Section - Mobile Responsive */
.featured-works {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(45, 45, 45, 0.95), rgba(30, 30, 30, 0.98));
  border-radius: 25px;
  margin: 30px 0;
  padding: 40px 0;
  border: 2px solid var(--coler-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--back-coler3);
  position: relative;
  overflow: hidden;
}

.featured-works::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coler-1), var(--main-btn-hove2), var(--coler-5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.featured-title {
  text-align: center;
  margin-bottom: 30px;
}

.featured-title h4 {
  color: var(--main-white);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--coler-1), var(--main-btn-hove2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-grid {
  display: flex;
  gap: 30px;
  padding: 0 30px;
  overflow: hidden;
  position: relative;
}

.featured-carousel {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
  direction: ltr;
}

.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main-red9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

.featured-nav:hover {
  background: rgba(220, 53, 69, 1);
}

.featured-prev {
  right: 10px;
}

.featured-next {
  left: 10px;
}

.featured-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  flex: 0 0 calc(33.333% - 20px);
  width: calc(33.333% - 20px);
}

.featured-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: bleftness(0.9); /* 0.7 يعني تعتيم خفيف */
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 30px 20px 20px;
  transform: translateY(0);
}

.featured-info h5 {
  color: var(--main-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 4px 1px 4px black;
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* للمتصفحات المبنية على Webkit (Chrome, Safari, Edge) */
  line-clamp: 2;          /* الخاصية القياسية - بعض المتصفحات بدأت تدعمها */
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px; 
}

.featured-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #202937;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--back-coler2);
}

.featured-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}

.featured-categories {
  background: var(--coler-border);
  color: var(--main-white);
  font-size: 11px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--coler-6);
  display: inline-block;
  backdrop-filter: blur(5px);
}

/* Mobile Styles - أقل من 768px */
@media (max-width: 768px) {
  .featured-works {
    margin: 20px 0;
    padding: 30px 0;
    border-radius: 20px;
  }
  
  .featured-title h4 {
    font-size: 28px;
  }
  
  .featured-grid {
    gap: 0;
    padding: 0;
    overflow: hidden;
    justify-content: flex-end; /* محاذاة الصور ناحية اليمين */
  }
  
  .featured-carousel {
    gap: 20px;
    padding: 0 20px;
    direction: ltr; /* الحفاظ على الاتجاه العادي */
  }
  
  .featured-item {
    /* صورة واحدة بعرض المساحة المتاحة - مع حساب البادينغ والغاب */
    flex: 0 0 calc(100vw - 40px); /* عرض الشاشة - (البادينغ 40px + مساحة أمان 20px) */
    width: calc(100vw - 40px);
    height: 350px;
    border-radius: 12px;
    margin: 0; /* لا توجد هوامش إضافية */
    direction: ltr; /* إعادة الاتجاه للمحتوى الداخلي */
  }
  
  
  .featured-overlay {
    padding: 20px 15px 15px;
  }
  
  .featured-type {
    font-size: 10px;
    padding: 5px 10px;
  }
  
  
  /* إخفاء أزرار التنقل في الهاتف لأن التنقل تلقائي */
  .featured-nav {
    display: none;
  }
}

/* Tablet Styles - من 769px إلى 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .featured-item {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
  }
  
  .featured-grid {
    gap: 25px;
  }
  
  .featured-carousel {
    gap: 25px;
  }
}

/* تحسينات إضافية للهاتف */
@media (max-width: 480px) {
  .featured-works {
    margin: 15px 0;
    padding: 25px 0;
  }
  
  .featured-title {
    margin-bottom: 20px;
  }
  
  .featured-title h4 {
    font-size: 24px;
  }
  
  .featured-grid {
    justify-content: flex-end;
  }
  
  .featured-carousel {
    padding: 0 8px;
    direction: ltr;
  }
  
  .featured-item {
    height: 450px;
    flex: 0 0 calc(100vw - 20px); /* تعديل للشاشات الأصغر */
    width: calc(100vw - 20px);
    margin: 0;
    direction: ltr; /* إعادة الاتجاه للمحتوى الداخلي */
  }
  
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Latest Releases Section */
.latest-releases-section {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(45, 45, 45, 0.95), rgba(30, 30, 30, 0.98));
  border-radius: 25px;
  margin: 30px 0;
  padding: 40px 0;
  border: 2px solid var(--coler-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--back-coler3);
  position: relative;
  overflow: hidden;
}

.latest-releases-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coler-1), var(--main-btn-hove2), var(--coler-5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Latest Releases Grid */
.latest-releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 25px;
  padding: 20px;
  justify-items: center;
}

/* Manga Card Styles */
.manga-card {
  background: linear-gradient(145deg, var(--main-bg3), var(--main-bg4));
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(123, 31, 162, 0.2);
  width: 230px;
}

.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(123, 31, 162, 0.3);
  border-color: rgba(123, 31, 162, 0.5);
}

.manga-card__image {
  position: relative;
  overflow: hidden;
}

.manga-card__image img {
  width: 230px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.manga-card:hover .manga-card__image img {
  transform: scale(1.05);
}

.country-flag {
  position: absolute;
  top: 15px;
  left: 15px;
  box-shadow: 0 4px 12px var(--coler-2);
  z-index: 5;
}

.country-flag img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Novel Badge Styling */
.novel-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  padding: 6px 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--back-coler2);
}

.novel-badge i {
  font-size: 12px;
}

/* Featured Novel Type Styling */
.featured-type.novel-type {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-type.novel-type i {
  font-size: 10px;
}

.new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, var(--main-btn-hove2), #ee5a24);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.manga-card__content {
  padding: 15px;
}

.manga-title {
  margin: 10px 0 15px 0;
  text-align: center;
  position: relative;
  direction: ltr;
}

.manga-title a {
  color: var(--main-white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.manga-title a:hover {
  color: var(--main-purple);
}



.rating-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--coler-Yellow2);
  font-weight: 600;
  font-size: 14px;
}

.rating i {
  color: var(--coler-Yellow2);
}

.status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status.ongoing {
  color: var(--succeeded3);
}

.status.completed {
  color: var(--main-blue2);
}

.status.cancelled,
.status.stopped {
  color: var(--main-red4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.ongoing {
  background: var(--succeeded3);
}

.status-dot.completed {
  background: var(--main-blue2);
}

.status-dot.cancelled,
.status-dot.stopped {
  background: var(--main-red4);
}

.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(123, 31, 162, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(123, 31, 162, 0.2);
}

.chapter-link:hover {
  background: rgba(123, 31, 162, 0.2);
  transform: translateX(-3px);
  border-color: rgba(123, 31, 162, 0.4);
}

.chapter-number {
  color: var(--main-white);
  font-weight: 600;
  font-size: 14px;
}

.chapter-badge {
  background: linear-gradient(45deg, var(--main-btn-hove2), #ee5a24);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px rgba(255, 107, 107, 0.5); }
  to { box-shadow: 0 0 15px rgba(255, 107, 107, 0.8); }
}

.chapter-date {
  color: #999;
  font-size: 12px;
}

.new-chapter {
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
}

.new-chapter:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
}

.locked-chapter {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.1);
}

.locked-chapter:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

.chapter-lock {
  color: var(--coler-Yellow2);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chapter-lock i {
  color: var(--coler-Yellow2);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Details Page Styles */
.details {
  background: linear-gradient(135deg, var(--main-bg) 0%, var(--main-bg2) 50%, var(--main-bg) 100%);
  min-height: 100vh;
  padding: 40px 0;
  width: 100%;
  overflow-x: hidden;
}

.breadcrumb-option {
  background: rgba(26, 26, 26, 0.95);
  padding: 20px 0;
  border-bottom: 2px solid var(--coler-6);
  margin-bottom: 30px;
}

.breadcrumb__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #b0b0b0;
  text-align: left;
  direction: rtl;
}

.breadcrumb__links a {
  color: #d1a3ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__links a:hover {
  color: var(--main-btn-hove2);
}

.breadcrumb__links i {
  color: #666;
  font-size: 12px;
}

.breadcrumb__links span {
  color: var(--main-white);
  font-weight: 600;
}

.details__content {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 15px 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--coler-border);
  margin-bottom: 40px;
}

.details__item {
  position: relative;
}

.details__pic {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 25px;
  position: relative;
}

.details__pic::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, var(--coler-3) 50%, transparent 70%);
  pointer-events: none;
}

.details__btn {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.favorite-btn,
.watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.favorite-btn {
  background: linear-gradient(45deg, var(--back-coler4), #495057);
  color: white;
  border: 2px solid transparent;
}

.favorite-btn:hover {
  background: linear-gradient(45deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
  color: white;
}

.favorite-btn.added {
  background: linear-gradient(45deg, var(--succeeded), var(--succeeded2));
  color: white;
  border: 2px solid rgba(40, 167, 69, 0.3);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.favorite-btn.added:hover {
  background: linear-gradient(45deg, var(--succeeded2), #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
  color: white;
}

.watch-btn {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  border: 2px solid transparent;
}

.watch-btn:hover {
  background: linear-gradient(45deg, var(--coler-5), var(--coler-1));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--coler-box-shado);
  color: white;
}

.details__stats {
  background: var(--coler-3);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--coler-6);
}

.details__stats ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.details__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.details__stats i {
  font-size: 24px;
  color: var(--coler-Yellow2);
}

.details__stats div {
  color: var(--main-white);
  font-weight: 700;
  font-size: 18px;
}

.details__text {
  padding-left: 40px;
}

.details__title {
  margin-bottom: 30px;
  text-align: left;
}

.details__title span {
  color: #b0b0b0;
  font-size: 16px;
  display: block;
  margin-top: 10px;
}

.details__title h3 {
  color: var(--main-white);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.details__tab {
  margin-bottom: 30px;
}

.details__tab ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 5px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 15px;
  padding: 5px;
}

.details__tab li {
  flex: 1;
  border: 1px solid var(--back-coler3);
  border-radius: 15px;
}

.details__tab li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: transparent;
  color: #b0b0b0;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
}

.details__tab li.active a {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  box-shadow: 0 4px 15px var(--coler-6);
}

.details__tab li:not(.active) a:hover {
  background: var(--coler-border);
  color: var(--main-white);
}

.tab-content {
  display: none;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 15px;

}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h4 {
  color: var(--main-white);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-content p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 20px;
}

.info-genres {
  margin-top: 30px;
}

.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: flex-start;
}

.genre {
  background: linear-gradient(45deg, var(--main-red9), rgba(200, 35, 51, 0.8));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--back-coler2);
}

.genre:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--coler-box-shado);
}

.sharing-section {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid var(--back-coler3);
}

.sharing-section h5 {
  color: var(--main-white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
}

.sharing-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  color: white;
}

.share-btn.twitter {
  background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.share-btn.facebook {
  background: linear-gradient(45deg, #4267b2, #365899);
}

.share-btn.telegram {
  background: linear-gradient(45deg, #0088cc, #006699);
}

.share-btn.whatsapp {
  background: linear-gradient(45deg, #25d366, #1ebe57);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--coler-2);
  color: white;
}

.search-bar {
  margin-bottom: 25px;
}

.search-bar input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(42, 42, 42, 0.8);
  border: 2px solid var(--coler-6);
  border-radius: 25px;
  color: var(--main-white);
  font-size: 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--coler-1);
  box-shadow: 0 0 20px var(--coler-6);
}

.search-bar input::placeholder {
  color: #888;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.chapter-list li {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(30, 30, 30, 0.8));
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--back-coler3);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
}

.chapter-list li:hover {
  box-shadow: 0 8px 25px var(--coler-border);
  border-color: var(--coler-6);
}

.chapter-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

.chapter-list img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  box-shadow: 0 4px 12px var(--coler-2);
  flex-shrink: 0;
  order: 1;
}

.chapter-info {
  flex: 1;
  text-align: left;
  width: 100%;
  min-width: 0;
  order: 2;
}

.chapter-info h5 {
  color: var(--main-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  width: 100%;
}

.chapter-info .publisher {
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 500;
}

.chapter-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-align: right;
  flex-shrink: 0;
  order: 3;
  flex-wrap: wrap;
  margin-right: 10px;
}

.chapter-actions .first-row,
.chapter-actions .second-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

@media (min-width: 769px) {
  .chapter-actions {
    flex-direction: row;
    align-items: center;
  }
  
  /* .chapter-actions .first-row,
  .chapter-actions .second-row {
    display: contents;
  } */

    
  .chapter-actions .second-row {
    order: -1;
  }
}

@media (max-width: 768px) {
  .chapter-actions .first-row {
    order: -1;
  }
}

.chapter-actions span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chapter-actions .likes {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.2);
}

.chapter-actions .views {
  color: #17a2b8;
  background: rgba(23, 162, 184, 0.2);
}

.chapter-actions .purchases {
  color: var(--succeeded);
  background: rgba(40, 167, 69, 0.2);
}


.info-section {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid var(--back-coler3);
}

.info-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b0b0b0;
  font-size: 16px;
  padding: 15px;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 10px;
  border: 1px solid var(--back-coler3);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: var(--coler-3);
  border-color: var(--coler-6);
}

.info-item i {
  color: #d1a3ff;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.info-item span {
  color: var(--main-white);
  font-weight: 600;
}

.details__review {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--coler-border);
  margin-top: 40px;
}

.nice-select {
      text-align: left !important;
      width: 100%;
}

/* Mobile Responsive for Details */
@media (max-width: 768px) {

  
  .details__text {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .details__title h3 {
    font-size: 24px;
  }
  
  .details__tab ul {
    flex-direction: column;
    gap: 2px;
  }
  
  .info-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sharing-buttons {
    justify-content: center;
  }
  
  .genres-list {
    justify-content: center;
  }
  
  
  .chapter-list img {
    width: 58px;
    height: 85px;
    margin-right: 9px;
  }
  
  .chapter-info h5 {
    font-size: 15px;
    /* white-space: nowrap; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chapter-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    flex-wrap: nowrap;
    max-width: 100px;
    justify-content: flex-start;
    margin: 0;
  }
  
  .chapter-actions .first-row {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  
  .chapter-actions .second-row {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 5px;
  }
  

  
  .chapter-info .publisher {
    font-size: 10px;
  }

  .chapter-info {
    margin-right: 5px;
  }
  
  .chapter-actions span {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Mobile navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    width: 100%;
  }
  
  .latest-releases-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }

  .col-lg {
    padding: 0;
  }
  
  .manga-card {
    display: flex;
    flex-direction: row;
    height: 190px;
    width: 100%;
  }
  
  .manga-card__image {
    width: 150px;
    height: 190px;
    flex-shrink: 0;
  }
  
  .manga-card__image img {
    width: 150px;
    height: 190px;
  }
  
      .country-flag img {
        width: 20px;
        height: 14px;
        object-fit: cover;
        border-radius: 3px;
        display: block;
    }

  .manga-card__content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .manga-title {
    margin: 0 0 8px 0;
    direction: ltr;
  }
  
  .manga-title a {
    font-size: 14px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  
  .rating-status {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .chapters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .chapters-list .chapter-link:nth-child(n+3) {
    display: none;
  }
  
  .chapter-link {
    padding: 7px 8px;
    font-size: 11px;
  }
  
  .chapter-number {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .manga-card {
    height: 190px;
  }
  
  .manga-card__image {
    width: 130px;
    height: 190px;
  }
  
  .manga-card__image img {
    width: 130px;
    height: 190px;
  }

  .country-flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
  }
  
  .novel-badge {
    padding: 4px 8px;
    font-size: 12px;
    gap: 3px;
  }
  
  .novel-badge i {
    font-size: 10px;
  }
  
  .manga-card__content {
    padding: 10px;
  }
  
  .chapters-list .chapter-link:nth-child(n+3) {
    display: none;
  }
  
  .chapter-link {
    padding: 6px 7px;
    font-size: 10px;
  }

  .new-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .page-upper a {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }


}

.navbar-expand-lg .navbar-collapse {
  justify-content: space-between;
}

.show>.btn-outline-light.dropdown-toggle {
  background-color: #f8f9fa00;
}

.dropdown-toggle::after {
  margin-left: 8px;
}

/* Enhanced Data Display Styles */
.data-card {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--coler-border);
  box-shadow: 0 8px 25px var(--coler-2);
  transition: all 0.3s ease;
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--coler-border);
  border-color: var(--coler-box-shado);
}

.data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--coler-6);
}

.data-title {
  color: var(--main-white);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-title i {
  color: var(--coler-1);
  font-size: 22px;
}

.data-badge {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.data-content {
  color: #e0e0e0;
  line-height: 1.6;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  background: var(--coler-3);
  border: 1px solid var(--coler-6);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--coler-border);
  transform: translateY(-2px);
}

.stat-number {
  color: var(--main-white);
  font-size: 32px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--back-coler3);
}

.info-table th {
  background: var(--coler-border);
  color: var(--main-white);
  font-weight: 700;
  font-size: 16px;
}

.info-table td {
  color: #e0e0e0;
  font-size: 15px;
}

.info-table tr:hover {
  background: var(--coler-3);
}

.progress-bar-container {
  background: rgba(42, 42, 42, 0.8);
  border-radius: 10px;
  padding: 3px;
  margin: 10px 0;
}

.progress-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--coler-1), var(--main-btn-hove2));
  border-radius: 8px;
  transition: width 0.3s ease;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tag {
  background: var(--coler-border);
  color: var(--main-white);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--coler-box-shado);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--coler-box-shado);
  transform: translateY(-1px);
}

.alert-info {
  background: linear-gradient(45deg, rgba(23, 162, 184, 0.2), rgba(23, 162, 184, 0.1));
  border: 1px solid rgba(23, 162, 184, 0.4);
  color: #17a2b8;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: linear-gradient(45deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: var(--succeeded);
  padding: 15px 20px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-warning {
  background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: var(--coler-Yellow);
  padding: 15px 20px;
  border-radius: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-highlight {
  background: linear-gradient(45deg, var(--coler-6), var(--coler-3));
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--main-white);
  font-weight: 600;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coler-1), transparent);
  margin: 40px 0;
  border-radius: 2px;
}

.floating-action {
  position: fixed;
  bottom: 100px;
  left: 30px;
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--coler-box-shado);
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-action:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 35px var(--coler-box-shado2);
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.info-card {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(30, 30, 30, 0.8));
  border-radius: 15px;
  padding: 25px;
  border: 1px solid var(--back-coler3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coler-1), var(--main-btn-hove2), var(--coler-5));
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--coler-2);
  border-color: var(--coler-6);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
}

.card-title {
  color: var(--main-white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-description {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
}

/* Reactions System Styles */
.reactions-section {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--coler-border);
}

.reactions-title {
  text-align: left;
  margin-bottom: 30px;
}

.reactions-title h4 {
  color: var(--main-white);
  font-size: 36px;
  font-weight: 900;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #ff4757 70%, #ff6b35 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(255, 107, 53, 0.5));
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.reactions-title h4::before {
  content: '✨';
  position: absolute;
  top: -15px;
  right: -35px;
  font-size: 24px;
  animation: sparkleright 3s ease-in-out infinite;
}

.reactions-title h4::after {
  content: '✨';
  position: absolute;
  top: -15px;
  left: -35px;
  font-size: 24px;
  animation: sparkleleft 3s ease-in-out infinite 1.5s;
}

@keyframes sparkleright {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

@keyframes sparkleleft {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.3) rotate(-180deg); opacity: 1; }
}

.reactions-title p {
  color: #b0b0b0;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.reactions-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.reaction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: rgba(42, 42, 42, 0.6);
  border: 2px solid var(--back-coler3);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.reaction-item:hover {
  background: var(--coler-border);
  border-color: var(--coler-box-shado);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--coler-6);
}

.reaction-item.active {
  background: var(--coler-6);
  border-color: var(--coler-box-shado2);
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--coler-box-shado);
}

.reaction-item .emoji {
  font-size: 32px;
  transition: transform 0.3s ease;
}

.reaction-item:hover .emoji {
  transform: scale(1.2);
}

.reaction-item.active .emoji {
  transform: scale(1.3);
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 60%, 100% {
    transform: scale(1.3) translateY(0);
  }
  40% {
    transform: scale(1.3) translateY(-10px);
  }
  80% {
    transform: scale(1.3) translateY(-5px);
  }
}

.reaction-item .count {
  color: var(--main-white);
  font-weight: 700;
  font-size: 16px;
  background: var(--coler-border);
  padding: 4px 8px;
  border-radius: 10px;
  min-width: 30px;
  text-align: center;
}

.reaction-item.active .count {
  background: var(--coler-box-shado);
  color: white;
}

/* Mobile Responsive for Reactions */
@media (max-width: 768px) {
  .reactions-section {
    padding: 20px;
  }
  
  .reactions-container {
    gap: 15px;
  }
  
  .reaction-item {
    padding: 12px 15px;
    min-width: 70px;
  }
  
  .reaction-item .emoji {
    font-size: 28px;
  }
  
  .reaction-item .count {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .reactions-container {
    gap: 10px;
  }
  
  .reaction-item {
    padding: 10px 12px;
    min-width: 60px;
  }
  
  .reaction-item .emoji {
    font-size: 24px;
  }
  
  .reaction-item .count {
    font-size: 12px;
    padding: 3px 6px;
  }
}

/* Comments System Styles */
.comments-section {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 30px;
  margin-top: 20px;
  border: 1px solid var(--coler-border);
}

.comments-title {
  text-align: left;
  margin-bottom: 30px;
}

.comments-title h4 {
  color: var(--main-white);
  font-size: 36px;
  font-weight: 900;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #dc3545 0%, var(--main-btn-hove2) 30%, #c82333 70%, #dc3545 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px var(--main-red6));
}

.comments-title h4::before {
  content: '💬';
  position: absolute;
  top: -20px;
  right: -40px;
  font-size: 28px;
  animation: bounceright 2.5s ease-in-out infinite;
}

.comments-title h4::after {
  content: '💭';
  position: absolute;
  top: -20px;
  left: -40px;
  font-size: 28px;
  animation: bounceleft 2.5s ease-in-out infinite 1.2s;
}

@keyframes bounceright {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes bounceleft {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

.comments-title p {
  color: #b0b0b0;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.comment-form {
  background: rgba(42, 42, 42, 0.8);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--back-coler3);
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--coler-6);
  border-radius: 12px;
  color: var(--main-white);
  padding: 15px;
  font-size: 16px;
  resize: vertical;
  font-family: var(--main-font);
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--coler-1);
  box-shadow: 0 0 20px var(--coler-6);
}

.comment-submit-btn {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.comment-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--coler-box-shado);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background: rgba(42, 42, 42, 0.6);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--back-coler3);
  transition: all 0.3s ease;
}

.comment-item:hover {
  background: rgba(42, 42, 42, 0.8);
  border-color: var(--coler-6);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.comment-username {
  color: var(--main-white);
  font-weight: 600;
  font-size: 16px;
}

.comment-date {
  color: #b0b0b0;
  font-size: 12px;
}

.comment-actions {
  display: flex;
  gap: 10px;
}

.comment-btn {
  background: transparent;
  border: 1px solid var(--back-coler2);
  color: #b0b0b0;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-btn:hover {
  background: var(--coler-border);
  border-color: var(--coler-box-shado);
  color: var(--main-white);
}

.comment-content {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-left: 10;
  font-size: 15px;
  text-align: left;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-likes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.like-btn {
  background: transparent;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 20px;
}

.like-btn:hover {
  background: var(--coler-border);
  color: var(--coler-1);
}

.like-btn.liked {
  color: var(--coler-1);
  background: var(--coler-border);
}

.reply-btn {
  background: transparent;
  border: 1px solid var(--back-coler2);
  color: #b0b0b0;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  background: var(--coler-border);
  border-color: var(--coler-box-shado);
  color: var(--main-white);
}

.comment-replies {
  margin-top: 20px;
  margin-left: 40px;
  border-left: 2px solid var(--coler-6);
  padding-left: 20px;
}

.comment-replies .comment-replies {
  margin-left: 60px;
  padding-left: 15px;
  border-left: 2px solid var(--coler-border);
}

.reply-form {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid var(--back-coler3);
  display: none;
}

.edit-form {
  margin-top: 15px;
  display: none;
}

.edit-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--coler-6);
  border-radius: 8px;
  color: var(--main-white);
  padding: 12px;
  font-size: 14px;
  resize: vertical;
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.save-btn, .cancel-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.save-btn {
  background: var(--succeeded);
  color: white;
}

.cancel-btn {
  background: var(--back-coler4);
  color: white;
}

.edited-badge {
  color: var(--coler-Yellow);
  font-size: 11px;
  font-style: italic;
}

/* Chapter Viewer Styles */
.chapter-navigation, .bottom-navigation {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--coler-border);
  box-shadow: 0 8px 25px var(--coler-2);
}

.bottom-navigation {
  margin-top: 30px;
  margin-bottom: 30px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.nav-btn:hover {
  background: linear-gradient(45deg, #c82333, var(--main-red8));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
  color: white;
  text-decoration: none;
}

.nav-btn.disabled {
  background: var(--back-coler4);
  cursor: not-allowed;
  opacity: 0.6;
}

.nav-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.center-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: center;
}

.home-btn, .like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(42, 42, 42, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--back-coler3);
}

.home-btn:hover {
  background: var(--coler-border);
  border-color: var(--coler-box-shado);
  color: white;
  text-decoration: none;
}

.like-btn:hover {
  background: var(--coler-border);
  border-color: var(--coler-box-shado);
  color: white;
  text-decoration: none;
}

.like-btn.liked {
  background: var(--coler-6);
  border-color: var(--coler-box-shado2);
  color: var(--coler-1);
}

.chapter-selector {
  position: relative;
}

.custom-select {
  position: relative;
  min-width: 150px;
}

.select-selected {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(30, 30, 30, 0.9));
  color: white;
  border: 2px solid var(--coler-6);
  border-radius: 20px;
  padding: 12px 20px 12px 40px;
  font-weight: 600;
  cursor: pointer;
  min-width: 150px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--back-coler12);
  backdrop-filter: blur(10px);
  text-align: left;
  direction: rtl;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-selected:hover {
  border-color: var(--coler-box-shado2);
  box-shadow: 0 6px 20px var(--coler-6);
  transform: translateY(-1px);
}

.select-selected i {
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

.select-arrow-active i {
  transform: rotate(180deg);
}

.select-items {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 99;
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border: 2px solid var(--coler-6);
  border-top: none;
  border-radius: 10px 10px 15px 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px var(--coler-2);
  max-height: 200px;
  overflow-y: auto;
}

.select-items div {
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  direction: rtl;
  font-weight: 600;
  border-bottom: 1px solid var(--back-coler3);
}

.select-items div:hover {
  background: linear-gradient(145deg, var(--coler-1), var(--coler-5));
  color: white;
}

.select-items div:last-child {
  border-bottom: none;
}

.select-hide {
  display: none;
}

.select-items::-webkit-scrollbar {
  width: 6px;
}

.select-items::-webkit-scrollbar-track {
  background: rgba(42, 42, 42, 0.8);
}

.select-items::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  border-radius: 3px;
}

.chapter-selector select {
  background: rgba(42, 42, 42, 0.8);
  color: white;
  border: 2px solid var(--back-coler3);
  border-radius: 20px;
  padding: 12px 20px 12px 40px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  min-width: 150px;
  size: 5;
}

.chapter-selector select::-webkit-scrollbar {
  width: 8px;
}


.chapter-selector select::-webkit-scrollbar-track {
  background: rgba(42, 42, 42, 0.8);
  border-radius: 4px;
}

.chapter-selector select::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  border-radius: 4px;
}

.chapter-selector select:hover {
  border-color: var(--coler-box-shado2);
  box-shadow: 0 6px 20px var(--coler-6);
  transform: translateY(-1px);
}

.chapter-selector select:focus {
  outline: none;
  border-color: var(--coler-1);
  box-shadow: 0 0 0 3px var(--coler-border);
}



.chapter-selector > i {
  display: none;
}

.chapter-viewer {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--coler-border);
}

.viewer-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--coler-6);
}

.chapter-title {
  color: var(--main-white);
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-name {
  color: var(--main-purple);
  font-size: 24px;
  margin-top: 10px;
}

.chapter-number {
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 600;
}

.images-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.images-container img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
}

.images-container img:first-child {
  border-radius: 15px 15px 0 0;
}

.images-container img:last-child {
  border-radius: 0 0 15px 15px;
}

.images-container img:first-child:last-child {
  border-radius: 15px;
}

.no-images {
  text-align: center;
  padding: 60px 20px;
  color: #b0b0b0;
}

.no-images i {
  font-size: 64px;
  margin-bottom: 20px;
  color: #666;
}

.no-images p {
  font-size: 18px;
  margin: 0;
}

.chapter-end {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 20px;
  padding: 40px;
  margin: 30px 0;
  border: 1px solid var(--coler-border);
  text-align: center;
}

.end-content {
  max-width: 400px;
  margin: 0 auto;
}

.end-icon {
  font-size: 48px;
  color: var(--main-purple);
  margin-bottom: 20px;
}

.end-title {
  color: var(--main-white);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.end-message {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.next-chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.next-chapter-btn:hover {
  background: linear-gradient(45deg, #c82333, var(--main-red8));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--coler-box-shado);
  color: white;
  text-decoration: none;
}

.next-chapter-btn.liked {
  background: linear-gradient(45deg, var(--succeeded), var(--succeeded2));
  color: white;
}

.next-chapter-btn.liked:hover {
  background: linear-gradient(45deg, var(--succeeded2), #17a2b8);
  color: white;
}

.no-next-chapter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--back-coler4);
  color: white;
  border-radius: 25px;
  font-weight: 600;
  opacity: 0.7;
}

/* Mobile Responsive for Chapter Viewer */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }
  
  .center-controls {
    flex-direction: row;
    gap: 8px;
    flex: 1;
    justify-content: center;
  }
  
  .nav-btn {
    min-width: 50px;
    padding: 12px 8px;
    font-size: 14px;
  }
  
  .nav-btn span {
    display: none;
  }
  
  .home-btn, .like-btn {
    min-width: 40px;
    padding: 12px 8px;
  }
  
  .home-btn span, .like-btn span {
    display: none;
  }
  
  .chapter-selector {
    min-width: 80px;
  }
  
  .chapter-selector select {
    min-width: 80px;
    padding: 12px 25px 12px 8px;
    font-size: 12px;
  }
  
  .chapter-title {
    font-size: 20px;
  }
  
  .work-name {
    font-size: 18px;
  }
  
  .chapter-number {
    font-size: 13px;
  }
  
  .chapter-viewer {
    padding: 0;
    margin: -15px;

  }
  
  .images-container {
    margin: 0 -15px;
  }
  
  .images-container img {
    max-width: none;
    width: calc(100vw);
  }
  
  .chapter-end {
    padding: 30px 20px;
  }

  .select-selected {
    min-width: 130px;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .comments-section {
    padding: 20px;
  }
  
  .comment-form {
    padding: 20px;
  }
  
  .comment-item {
    padding: 15px;
  }
  
  .comment-replies {
    margin-left: 20px;
    padding-left: 15px;
  }
  
  .comment-replies .comment-replies {
    margin-left: 30px;
    padding-left: 10px;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .data-card {
    padding: 20px;
  }
  
  .data-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .info-table th,
  .info-table td {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .floating-action {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 80px;
    left: 20px;
  }
  
  .stat-number {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .data-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .data-title {
    font-size: 18px;
  }
  
  .info-table {
    font-size: 13px;
  }
  
  .info-table th,
  .info-table td {
    padding: 10px 12px;
  }
}
/* Favorites Page Styling */
.favorites-page {
  background: linear-gradient(135deg, var(--main-bg) 0%, var(--main-bg2) 50%, var(--main-bg) 100%);
  min-height: 100vh;
  padding: 40px 0;
}

.favorites-header {
  text-align: center;
  margin: 50px 0 60px;
  position: relative;
}

.favorites-title {
  color: var(--main-white);
  font-size: 48px;
  font-weight: 900;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--coler-1) 0%, var(--main-btn-hove2) 30%, var(--coler-5) 70%, var(--coler-1) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px var(--main-red6));
  margin-bottom: 20px;
}

.favorites-title::before {
  content: '💖';
  position: absolute;
  top: -20px;
  right: -50px;
  font-size: 32px;
  animation: heartBeat 2s ease-in-out infinite;
}

.favorites-title::after {
  content: '⭐';
  position: absolute;
  top: -20px;
  left: -50px;
  font-size: 32px;
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.6; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(180deg); }
}

.favorites-subtitle {
  color: #b0b0b0;
  font-size: 18px;
  font-weight: 500;
  margin-top: 15px;
  letter-spacing: 1px;
}

.favorites-container {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 25px;
  padding: 40px;
  margin: 0 20px;
  border: 2px solid var(--coler-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.favorites-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coler-1), var(--main-btn-hove2), var(--coler-5), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.favorite-card {
  background: linear-gradient(145deg, var(--main-bg3), var(--main-bg4));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 2px solid var(--coler-3);
  position: relative;
}

.favorite-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--coler-6);
  border-color: var(--main-red6);
}

.favorite-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, var(--coler-3) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.favorite-card:hover::before {
  opacity: 1;
}

.favorite-image {
  position: relative;
  height: 315px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.favorite-image .status-badge {
  opacity: 1;
  visibility: visible;
}

.favorite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.favorite-card:hover .favorite-image img {
  transform: scale(1.1);
}

.favorite-badge {
  position: absolute;
  top: 50px;
  left: 15px;
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--coler-box-shado);
  animation: pulse 2s infinite;
  z-index: 8;
}


.country-flag img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.favorite-content {
  padding: 20px;
  text-align: center;
}

.favorite-title {
  margin: 0 0 15px 0;
}

.favorite-title a {
  color: var(--main-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.favorite-title a:hover {
  color: var(--coler-1);
}

.favorite-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 15px;
}

.favorite-status.ongoing {
  background: rgba(76, 175, 80, 0.2);
  color: var(--succeeded3);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.favorite-status.completed {
  background: rgba(33, 150, 243, 0.2);
  color: var(--main-blue2);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.favorite-status.cancelled {
  background: rgba(244, 67, 54, 0.2);
  color: var(--main-red4);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.favorite-status img {
  width: 14px;
  height: 14px;
}

.empty-favorites {
  text-align: center;
  padding: 80px 20px;
  color: #b0b0b0;
}

.empty-favorites i {
  font-size: 80px;
  margin-bottom: 30px;
  color: #666;
  opacity: 0.7;
}

.empty-favorites h3 {
  color: var(--main-white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.empty-favorites p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(45deg, var(--coler-1), var(--coler-5));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--coler-6);
}

.browse-btn:hover {
  background: linear-gradient(45deg, var(--coler-5), var(--main-red8));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--coler-box-shado);
  color: white;
  text-decoration: none;
}

.status-badge {
  position: absolute;
  top: 11px;
  right: 7px;
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px var(--coler-2);
  z-index: 10;
  backdrop-filter: blur(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .favorites-title {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .favorites-title::before,
  .favorites-title::after {
    display: none;
  }
  
  .favorites-container {
    margin: 0;
    padding: 25px 20px;
  }
  
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  
  .favorite-content {
    padding: 15px;
  }
  
  .favorite-title a {
    font-size: 14px;
  }
  
  .empty-favorites i {
    font-size: 60px;
  }
  
  .empty-favorites h3 {
    font-size: 22px;
  }
  
  .empty-favorites p {
    font-size: 16px;
  }
  
  .status-badge {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .status-badge img {
    width: 10px;
    height: 10px;
  }
  
  .country-flag {
    top: 10px;
    left: 10px;
  }

  .status-badge {
    top: 8px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  
  
  .favorite-content {
    padding: 12px;
  }
  
  .favorite-status {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .status-badge {
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 9px;
    gap: 4px;
  }
  
  .status-badge img {
    width: 8px;
    height: 8px;
  }
  
  .country-flag {
    top: 8px;
    left: 8px;
  }
  

    .status-badge {
    top: 8px;
    font-size: 8px;
  }
}


.status-badge.ongoing {
  background: linear-gradient(45deg, #00e676, var(--succeeded3)) !important;
  color: white !important;
  border: 1px solid rgba(0, 230, 118, 0.8);
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.status-badge.completed {
  background: linear-gradient(45deg, var(--main-blue2), #03a9f4) !important;
  color: white !important;
  border: 1px solid rgba(33, 150, 243, 0.8);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.status-badge.cancelled {
  background: linear-gradient(45deg, #ff5722, var(--main-red4)) !important;
  color: white !important;
  border: 1px solid rgba(255, 87, 34, 0.8);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.status-badge img {
  width: 12px;
  height: 12px;
  filter: bleftness(1.2);
}
/* Categories Page Styling */
.product-page {
  background: linear-gradient(135deg, var(--main-bg) 0%, var(--main-bg2) 50%, var(--main-bg) 100%);
  min-height: 100vh;
  padding: 40px 0;
}

.product__page__title .section-title h4 {
  color: var(--main-white);
  font-size: 24px;
  font-weight: 900;
  font-family: var(--title-font);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--coler-1) 0%, var(--main-btn-hove2) 30%, var(--coler-5) 70%, var(--coler-1) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px var(--main-red6));
  margin-bottom: 30px;
  text-align: center;
}

.product__page__content {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.95), rgba(30, 30, 30, 0.95));
  border-radius: 25px;
  padding: 40px;
  margin: 0 20px;
  border: 2px solid var(--coler-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.product__page__content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--main-purple), var(--main-btn-hove2), var(--main-purple), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.product__page__content .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 30px;
}

.product__item {
  background: linear-gradient(145deg, var(--main-bg3), var(--main-bg4));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 2px solid var(--coler-3);
  position: relative;
  width: 240px;
}

.product__item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--coler-6);
  border-color: var(--main-red6);
}

.product__item__pic {
  position: relative;
  height: 315px;
  overflow: hidden;
}

.product__item__pic img {

  object-fit: cover;
  transition: transform 0.4s ease;
}

.product__item:hover .product__item__pic img {
  transform: scale(1.1);
}

.product__item__pic .ep {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  box-shadow: 0 4px 12px var(--coler-2);
}

.product__item__pic .ep img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

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

.product__item__text h5 {
  margin: 0 0 15px 0;
}

.product__item__text h5 a {
  color: var(--main-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.product__item__text h5 a:hover {
  color: var(--coler-1);
}

.col-lg-auto {
  padding: 0;
}

.mr-5, .mx-5 , .ml-5, .mx-5 {
  margin: 0 !important;
}

/* Mobile Responsive for Categories */
@media (max-width: 768px) {
  .product__page__content {
    margin: 0 10px;
    padding: 25px 20px;
  }
  
  .product__page__content .row {
    gap: 15px;
    justify-items: center;
  }
  
  .product__item {
    width: 100%;
    max-width: 300px;
  }
  
  .product__item__pic {
    height: 280px;
  }
  
  .product__item__text {
    padding: 15px;
  }
  
  .product__item__text h5 a {
    font-size: 14px;
  }
  
  .product__item__pic .ep img {
    width: 24px;
    height: 16px;
  }

  .col-lg-auto {
    padding: 0 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  
  .product__item {
    width: 200px;
  }
  
  .product__item__pic {
    height: 280px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .product__page__content .row {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .product__item {
    width: 220px;
  }
  
  .product__item__pic {
    height: 300px;
  }
}

/* Categories Title Styling */
.categories-title {
  text-align: left;
  margin: 50px 30px 40px;
  position: relative;
  padding: 20px 0;
}

.categories-title h4 {
  color: var(--main-white);
  font-size: 36px;
  font-weight: 800;
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #17a2b8 0%, var(--succeeded2) 50%, var(--succeeded) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 16px rgba(23, 162, 184, 0.4);
  margin-bottom: 10px;
}


.categories-title h4::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #17a2b8, var(--succeeded2), var(--succeeded));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.5);
}

.categories-title::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 30px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--succeeded), #17a2b8);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

.categories-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #17a2b8, var(--succeeded));
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.6);
}

@media (max-width: 768px) {
  .categories-title {
    margin: 30px 20px 25px;
    text-align: center;
  }
  
  .categories-title h4 {
    font-size: 24px;
    letter-spacing: 2px;
    flex-direction: column;
    gap: 10px;
  }
  
  .categories-title h4::before {
    width: 80px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
  }
  
  .categories-title::after {
    width: 60px;
    right: 50%;
    transform: translateX(-50%);
    left: auto;
    bottom: 10px;
  }
  
  .categories-title::before {
    display: none;
  }

  .stars-container {
    margin: 30px -39px !important;
    padding: 0 !important;
  }

  .star {
    font-size: 37px !important;
  }
}


@media (min-width: 576px) {
    .form-inline .custom-select, .form-inline .input-group {
        width: 100%;
    }
}