/* Anime Streaming Site Custom CSS */

/* Import cute anime-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* Font style overrides for anime cute style */
:root {
  --font-primary: 'Comfortaa', cursive;
  --font-secondary: 'Quicksand', sans-serif;
  --font-tertiary: 'Varela Round', sans-serif;
  --anime-accent: #624de3;
  --anime-accent-hover: #5039d6;
  --anime-gradient: linear-gradient(135deg, #624de3 0%, #8957FF 100%);
  --anime-card-radius: 12px;
  --anime-btn-radius: 8px;
  --anime-border-glow: 0 0 10px rgba(137, 87, 255, 0.7);
  --anime-border-color: #8957FF;
  --genre-color: #624de3;
}

/* Base font styling */
body {
  font-family: var(--font-secondary);
  letter-spacing: 0.2px;
  background-color: var(--bs-body-bg);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.932) 0%, rgba(0, 0, 0, 0.87) 100%), 
                    url('../img/anime-bg-pattern.svg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Heading styling */
h1, h2, h3, .h1, .h2, .h3,
.layout-title, .navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Navigation menu */
.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.navbar-nav .anime-nav-link {
  font-size: 1.15rem;
  font-family: var(--font-primary);
}

/* Card title styling */
.card-movie .title {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-movie .title_sub {
  font-family: var(--font-secondary);
  font-weight: 500;
}

/* Button styling */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 20px;
}

/* Special cute styling for badges and tags */
.badge, .card-upcoming {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
  padding: 0.35em 0.8em;
  box-shadow: 0 0 8px rgba(98, 77, 227, 0.6);
}

/* Badge styling for featured and members */
.badge-featured, .badge-members, .badge-upcoming {
  position: absolute;
  z-index: 12;
  top: 10px;
  left: 10px;
  padding: 0.4em 0.9em;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(137, 87, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge-featured {
  background-color: #624de3;
  color: white;
}

.badge-members {
  background-color: #9c27b0;
  color: white;
}

.badge-upcoming {
  background-color: #e91e63;
  color: white;
}

/* Pulsing animation for the upcoming badge */
@keyframes pulsate {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(137, 87, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(137, 87, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(137, 87, 255, 0);
  }
}

/* Make the "upcoming" badge more cute with rounded corners and permanently visible with animation */
.card-upcoming,
.card-movie .card-upcoming {
  background: var(--anime-gradient);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35em 0.85em;
  top: 10px !important;
  left: 10px !important;
  text-transform: uppercase;
  position: absolute;
  color: white;
  z-index: 11 !important;
  box-shadow: 0 0 10px rgba(98, 77, 227, 0.5);
  animation: pulsate 2s infinite ease-in-out;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

/* Override hover state to make sure the badge is always shown */
/* Upcoming badge styling moved to anime-movie-cards.css */

/* Rating badge styling moved to anime-movie-cards.css */

/* Smooth transitions for all elements */
* {
  transition: all 0.3s ease;
}

/* Logo animation */
.logo-image {
  filter: drop-shadow(0 0 8px rgba(98, 77, 227, 0.5));
}

/* Card styling moved to anime-movie-cards.css */

/* Glowing effect for buttons and interactive elements */
.btn-primary:focus,
.btn-primary:active {
  box-shadow: 0 0 0 0.25rem rgba(98, 77, 227, 0.5);
}

/* Custom scroll bar */
::-webkit-scrollbar {
  width: 8px;
  background-color: rgba(30, 30, 35, 0.8);
}

::-webkit-scrollbar-thumb {
  background: var(--anime-gradient);
  border-radius: 10px;
}

/* Enhanced navbar menu */
.navbar-nav .nav-item {
  position: relative;
  margin: 0 5px;
}

/* Stylish badges */
.badge {
  padding: 0.35em 0.65em;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-new {
  background: var(--anime-gradient);
  color: white;
  font-size: 0.7em;
  padding: 0.2em 0.6em;
  border-radius: 10px;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Season selector */
.season-dropdown .dropdown-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--bs-white);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-primary);
}

.season-dropdown .dropdown-menu {
  background: rgba(30, 30, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-family: var(--font-secondary);
}

.season-dropdown .dropdown-item {
  color: var(--bs-gray-400);
  font-weight: 500;
}

.season-dropdown .dropdown-item:hover,
.season-dropdown .dropdown-item.active {
  background: var(--anime-gradient);
  color: white;
}

/* Enhanced Rating Stars */
.rating-stars {
  display: inline-flex;
  align-items: center;
}

.rating-stars svg {
  fill: var(--bs-warning);
  width: 14px;
  height: 14px;
  margin-right: 2px;
}

/* Enhanced Video Player Controls */
.plyr--video {
  border-radius: var(--anime-card-radius);
  overflow: hidden;
}

.plyr--video .plyr__control--overlaid {
  background: var(--anime-gradient);
}

.plyr--video .plyr__control--overlaid:hover {
  background: var(--anime-accent-hover);
}

/* Image hover effects */
.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform 0.5s ease;
}

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

/* Footer enhancements */
.layout-footer {
  position: relative;
  padding: 2rem 0;
  margin-top: 3rem;
  background: linear-gradient(to bottom, rgba(26, 27, 37, 0), rgba(39, 40, 56, 0));
  backdrop-filter: blur(10px);
}

.layout-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(98, 77, 227, 0.3) 25%, 
    rgba(98, 77, 227, 0.5) 50%,
    rgba(98, 77, 227, 0.3) 75%,
    transparent 100%);
}

.layout-footer::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 105, 180, 0.3) 25%,
    rgba(255, 105, 180, 0.5) 50%,
    rgba(255, 105, 180, 0.3) 75%,
    transparent 100%);
  opacity: 0.5;
}

/* Footer Logo */
.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 35px;
  filter: drop-shadow(0 0 8px rgba(98, 77, 227, 0.5));
}

/* Footer Text */
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Social Community Buttons */
.footer-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.social-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Discord Button */
.social-btn.discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.1) 100%);
  border-color: rgba(88, 101, 242, 0.3);
}

.social-btn.discord:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.8) 0%, rgba(88, 101, 242, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Telegram Button */
.social-btn.telegram {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.2) 0%, rgba(0, 136, 204, 0.1) 100%);
  border-color: rgba(0, 136, 204, 0.3);
}

.social-btn.telegram:hover {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.8) 0%, rgba(0, 136, 204, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

/* WhatsApp Button */
.social-btn.whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0.1) 100%);
  border-color: rgba(37, 211, 102, 0.3);
}

.social-btn.whatsapp:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.8) 0%, rgba(37, 211, 102, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Facebook Button */
.social-btn.facebook {
  background: linear-gradient(135deg, rgba(66, 103, 178, 0.2) 0%, rgba(66, 103, 178, 0.1) 100%);
  border-color: rgba(66, 103, 178, 0.3);
}

.social-btn.facebook:hover {
  background: linear-gradient(135deg, rgba(66, 103, 178, 0.8) 0%, rgba(66, 103, 178, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 103, 178, 0.4);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
  .footer-social {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0 1rem;
    margin: 1.5rem 0;
  }

  .social-btn {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .social-btn i {
    font-size: 1.3rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
  }

  /* Enhanced mobile hover/active states */
  .social-btn:active {
    transform: scale(0.98);
  }

  .social-btn.discord:active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9) 0%, rgba(88, 101, 242, 1) 100%);
  }

  .social-btn.telegram:active {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.9) 0%, rgba(0, 136, 204, 1) 100%);
  }

  .social-btn.whatsapp:active {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9) 0%, rgba(37, 211, 102, 1) 100%);
  }

  .social-btn.facebook:active {
    background: linear-gradient(135deg, rgba(66, 103, 178, 0.9) 0%, rgba(66, 103, 178, 1) 100%);
  }

  /* Footer text improvements */
  .footer-text {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Footer section spacing */
  .layout-footer {
    padding-top: 2rem;
  }

  .footer-logo {
    margin-bottom: 1.2rem;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  .footer-social {
    padding: 0 0.5rem;
  }

  .social-btn {
    padding: 0.9rem;
    font-size: 0.9rem;
  }

  .social-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
  }
}

/* Footer Links */
.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-primary);
}

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

.footer-links ul li {
  margin-bottom: 0.4rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Copyright Section */
.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .layout-footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }

  .footer-social {
    grid-template-columns: 1fr;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .footer-links {
    margin-top: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .footer-social {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loading animation for videos */
.dot-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

.dot-loading div {
  width: 12px;
  height: 12px;
  background: var(--anime-accent);
  border-radius: 50%;
  margin: 0 5px;
  animation: bounce 1.5s infinite ease-in-out;
}

.dot-loading div:nth-child(2) {
  animation-delay: 0.2s;
}

.dot-loading div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Cute search bar styling */
.form-search {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 8px 15px;
  transition: all 0.3s;
}

.form-search:focus-within {
  background-color: rgba(255, 255, 255, 0.15);
}

.form-search input {
  color: var(--bs-white);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
}

.form-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-secondary);
  font-weight: 400;
}

/* Cute style for episode navigation */
.card-episode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-episode-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(var(--bs-secondary-rgb), 0.1);
  border-radius: 50%;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--bs-body-color);
  transition: all 0.3s;
}

.card-episode-nav li a:hover,
.card-episode-nav li a.active {
  background: var(--anime-gradient);
  color: #fff;
  transform: scale(1.1);
}

/* Enhanced Section Headings with cute style */
.layout-heading {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.layout-heading:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--anime-gradient);
  border-radius: 10px;
}

/* Cute Tag Styling */
.card-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.card-tag a {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: rgba(var(--bs-light-rgb), 0.06);
  border: 1px solid rgba(var(--bs-light-rgb), 0.1);
  color: var(--bs-gray-400);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.card-tag a:hover {
  background: var(--anime-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(98, 77, 227, 0.2);
}

.card-tag a::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--anime-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.card-tag a:hover::before {
  opacity: 0.1;
}

/* Better Tags Styling */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.card-tags a {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bs-gray-500);
  background: rgba(var(--bs-light-rgb), 0.03);
  padding: 0.2rem 0.65rem;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-tags a:hover {
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--anime-accent);
  transform: translateY(-1px);
}

/* Post toolbar styling */
.post-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.post-toolbar::-webkit-scrollbar {
  display: none;
}

.post-toolbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.post-toolbar ul li {
  position: relative;
}

.post-toolbar ul li a {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.post-toolbar ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: transparent;
  transition: all 0.2s ease;
}

.post-toolbar ul li a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.post-toolbar ul li a.active {
  color: #fff;
}

.post-toolbar ul li a.active:after {
  background-color: var(--theme-color);
}

/* Add a subtle glow effect to active tab */
.post-toolbar ul li a.active:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background-color: var(--theme-color);
  filter: blur(3px);
  opacity: 0.5;
}

.post-toolbar ul li a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.post-toolbar ul li a.active span {
  color: rgba(255, 255, 255, 0.7);
}

.layout-tab-content {
  min-height: 200px;
  padding: 0.5rem 0;
}

@media (max-width: 767px) {
  .post-toolbar ul {
    padding-bottom: 0.25rem;
  }
  
  .post-toolbar ul li a {
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Add a subtle divider between main tabs and additional tabs */
.post-toolbar ul li.mx-xl-3:before {
  content: '';
  position: absolute;
  top: 25%;
  bottom: 30%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 0.75rem;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
  
  .card-movie .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .layout-app {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .layout-heading:after {
    width: 60px;
  }
  
  .badge-new {
    font-size: 0.05em;
  }

  /* Adjust grid for 3 cards per row in mobile */
  .row-cols-2 {
    --bs-rows-per-row: 3 !important;
  }
  
  .row-cols-2 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 0.15rem; /* Reduced horizontal padding */
    padding-right: 0.15rem; /* Reduced horizontal padding */
  }

  /* Adjust card sizing for better mobile view */
  .card-movie {
    margin-bottom: 0.75rem;
  }

  .card-movie .card-body {
    padding: 0.5rem 0;
  }

  .card-movie .title {
    font-size: 0.75rem;
  }

  .layout-section {
    margin-top: 2.5rem; /* Increased space for mobile */
    padding-left: 1rem; /* Added padding to left */
    padding-right: 1rem; /* Added padding to right */
  }
}

/* Overview Sidebar Styles */
.overview-sidebar {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-sidebar .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.overview-sidebar .card-header h3 {
    color: #fff;
    font-weight: 600;
}

.overview-sidebar .card-body {
    padding: 1rem;
}

.overview-sidebar p.text-muted {
    line-height: 1.6;
    font-size: 0.875rem;
}

.overview-sidebar .movie-meta h4,
.overview-sidebar .movie-genres h4,
.overview-sidebar .movie-keywords h4 {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.overview-sidebar .card-tag.smaller-tags a,
.overview-sidebar .card-tags.smaller-tags a {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin: 0.15rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.overview-sidebar .card-tag.smaller-tags a:hover,
.overview-sidebar .card-tags.smaller-tags a:hover {
    background-color: var(--theme-color);
    color: white;
}

/* Make the player container smaller */
.player-container .ratio {
    max-height: 500px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .overview-sidebar {
        margin-top: 1.5rem;
    }
    
    .player-container .ratio {
        max-height: 400px;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    .player-container .ratio {
        max-height: 450px;
    }
}

/* Remove old overview section styles */
.movie-overview-section,
.episode-overview-section {
    display: none;
}

/* Post Toolbar Adjustments */
.post-toolbar {
    margin-top: 1.5rem;
}

/* Player size adjustments */
.player-ratio {
    max-height: 500px;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

@media (min-width: 992px) {
    .col-lg-8 .player-wrapper .ratio {
        max-height: 480px;
    }
}

@media (min-width: 1200px) {
    .col-lg-8 .player-wrapper .ratio {
        max-height: 500px;
    }
}

@media (min-width: 1400px) {
    .col-lg-8 .player-wrapper .ratio {
        max-height: 520px;
    }
}

/* Video.js player adjustments */
.video-js {
    width: 100%;
    height: 100%;
}

/* Make sure overview section always has proper spacing */
.overview-sidebar {
    margin-bottom: 1.5rem;
    height: auto !important;
}

/* Anime-themed Overview Card */
.anime-themed-card {
    background-color: rgba(25, 28, 36, 0.7) !important;
    border: 1px solid rgba(83, 91, 230, 0.2) !important;
    box-shadow: 0 0 20px rgba(83, 91, 230, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.anime-themed-card .card-header {
    background: linear-gradient(90deg, rgba(83, 91, 230, 0.15), transparent) !important;
    border-bottom: 1px solid rgba(83, 91, 230, 0.2) !important;
}

.anime-themed-card .card-header h3 {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(83, 91, 230, 0.5);
}

.anime-themed-card .section-heading {
    color: rgba(83, 91, 230, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-left: 3px solid rgba(83, 91, 230, 0.6);
    padding-left: 0.5rem;
}

.anime-themed-card .detail-value {
    color: #fff;
    font-weight: 500;
}

/* Anime-style tags */
.anime-tags a {
    background: rgba(83, 91, 230, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    margin: 0.15rem;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(83, 91, 230, 0.3);
}

.anime-tags a:hover {
    background: rgba(83, 91, 230, 0.6);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Casting preview section */
.casting-preview {
    margin-top: 0.75rem;
}

.cast-item {
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.cast-item:hover {
    background: rgba(83, 91, 230, 0.1);
    border-left: 3px solid rgba(83, 91, 230, 0.6);
}

.avatar-xs {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.avatar-sm {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(83, 91, 230, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.see-all-link {
    color: rgba(83, 91, 230, 0.9) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.see-all-link:hover {
    color: rgba(83, 91, 230, 1) !important;
    text-decoration: underline;
}

/* Modal styling */
.modal-content.bg-dark {
    background-color: rgba(25, 28, 36, 0.95) !important;
    border: 1px solid rgba(83, 91, 230, 0.3);
}

.modal-header {
    border-bottom-color: rgba(83, 91, 230, 0.3) !important;
}

.modal-footer {
    border-top-color: rgba(83, 91, 230, 0.3) !important;
}

.text-primary {
    color: rgba(83, 91, 230, 0.9) !important;
}

/* Glow effect for anime theme */
.anime-themed-card:hover {
    box-shadow: 0 0 25px rgba(83, 91, 230, 0.2);
}

/* Anime Episode Navigation */
.anime-episode-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.anime-episode-nav li {
    margin: 0;
}

.anime-episode-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(83, 91, 230, 0.1);
    border: 1px solid rgba(83, 91, 230, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.anime-episode-nav li a:hover {
    background: rgba(83, 91, 230, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.anime-episode-nav li a.active {
    background: rgba(83, 91, 230, 0.7);
    color: #fff;
    border-color: rgba(83, 91, 230, 0.8);
    font-weight: 600;
}

/* Button styling for episode navigation */
.btn-outline-primary {
    border-color: rgba(83, 91, 230, 0.5);
    color: rgba(83, 91, 230, 0.9);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(83, 91, 230, 0.7);
    color: #fff;
    border-color: rgba(83, 91, 230, 0.8);
    transform: translateY(-1px);
}

/* Improved animation for hover effects */
.anime-themed-card .cast-item,
.anime-tags a,
.btn-outline-primary,
.anime-episode-nav li a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Pulsing effect for active elements */
.anime-episode-nav li a.active {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Download and Subtitle Tabs */
.download-tabs {
    background-color: rgba(25, 28, 36, 0.7);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 15px rgba(83, 91, 230, 0.1);
}

.download-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-tabs .nav-link:hover {
    color: #fff;
    background-color: rgba(83, 91, 230, 0.2);
}

.download-tabs .nav-link.active {
    background-color: rgba(83, 91, 230, 0.7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Download Cards */
.download-card, .subtitle-card {
    background-color: rgba(25, 28, 36, 0.7);
    border: 1px solid rgba(83, 91, 230, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.download-card:hover, .subtitle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(83, 91, 230, 0.2);
    border-color: rgba(83, 91, 230, 0.4);
}

.download-info, .subtitle-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-source, .subtitle-language {
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}

.download-quality {
    text-align: right;
}

.quality-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-1080p {
    background-color: rgba(52, 191, 73, 0.2);
    color: #34bf49;
    border: 1px solid rgba(52, 191, 73, 0.3);
}

.quality-720p {
    background-color: rgba(83, 91, 230, 0.2);
    color: rgba(83, 91, 230, 1);
    border: 1px solid rgba(83, 91, 230, 0.3);
}

.quality-480p, .quality-hd {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.download-action, .subtitle-action {
    text-align: center;
}

.btn-download, .btn-subtitle {
    width: 100%;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-download {
    background-color: rgba(83, 91, 230, 0.8);
    border-color: rgba(83, 91, 230, 0.2);
}

.btn-download:hover {
    background-color: rgba(83, 91, 230, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-subtitle {
    border-color: rgba(83, 91, 230, 0.5);
    color: rgba(83, 91, 230, 0.9);
}

.btn-subtitle:hover {
    background-color: rgba(83, 91, 230, 0.2);
    border-color: rgba(83, 91, 230, 0.8);
    color: #fff;
}

/* Subtitle flag */
.subtitle-flag {
    margin-right: 10px;
}

.flag-icon {
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alert styling */
.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Facebook-like Comments Section */
.comments {
    margin-top: 20px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Comment form styling */
.comment-form {
    margin-bottom: 16px;
    position: relative;
}

.comment-form textarea {
    border: none;
    background-color: rgba(26, 27, 32, 0.5) !important;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    min-height: 60px;
    resize: none;
    transition: all 0.2s ease;
}

.comment-form textarea:focus {
    background-color: rgba(40, 42, 54, 0.6) !important;
    box-shadow: 0 0 0 2px rgba(98, 77, 227, 0.3) !important;
}

.comment-form .btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comment-form .btn-theme {
    background-color: rgb(98, 77, 227);
    border-color: rgb(98, 77, 227);
    color: #fff;
}

.comment-form .btn-theme:hover {
    background-color: rgb(81, 63, 190);
    border-color: rgb(81, 63, 190);
    transform: translateY(-1px);
}

.comment-form .character-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* Reply form and edit form */
.replybox form,
.edit-form,
.compact-form {
    background-color: #1a1b20;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.replybox textarea,
.edit-form textarea,
.compact-form textarea {
    color: #fff;
    background-color: transparent;
    border: none !important;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    padding: 5px 0;
    min-height: 20px;
    resize: none;
    width: 100%;
    margin-bottom: 5px;
}

.replybox textarea:focus,
.edit-form textarea:focus,
.compact-form textarea:focus {
    border: none !important;
    box-shadow: none;
}

.replybox .btn,
.edit-form .btn,
.compact-form .btn {
    font-size: 12px;
    padding: 4px 12px;
    height: auto;
}

/* Fix for edit form display */
.comment-list .edit-form {
    width: 100%;
    max-width: 100%;
}

/* Style for the reply form in the scrollable container */
.comments-list-container .replybox form {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.character-count {
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Comment list */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Scrollable Comments Container - Facebook Style */
.comments-list-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    padding-right: 10px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comments-list-container::-webkit-scrollbar {
    width: 6px;
}

.comments-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.comments-list-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Comment list items styling */
.comment-list {
    background-color: rgba(248, 3, 3, 0);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    position: relative;
    transition: background-color 0.3s;
    width: 100%;
}

.comment-flex {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background-color: rgba(26, 27, 32, 0.5);
    transition: background-color 0.2s ease;
    position: relative;
}

.comment-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    position: relative;
}

.comment-avatar img,
.comment-avatar .avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    display: block;
}

.comment-body {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
    padding-right: 5px;
    word-wrap: break-word;
}

.comment-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-right: 0;
    font-size: 12px;
}

.comment-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-decoration: none;
    margin-left: 5px;
}

/* Comment text */
.comment-text {
    font-size: 13px;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Comment menu */
.comment-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

.comment-menu-toggle {
    color: rgb(121, 24, 248);
    display: inline-flex;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.comment-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    position: relative;
}

.comment-footer .left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-footer .right-actions {
    position: absolute;
    bottom: -36px;
    right: 0;
    z-index: 2;
}

/* View Replies button styling */
.view-replies {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(40, 42, 54, 0.8);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-replies i {
    font-size: 14px;
}

.view-replies:hover {
    color: #fff;
    background: rgba(60, 62, 74, 0.9);
    transform: translateY(-1px);
    text-decoration: none;
}

.view-replies.active {
    color: #fff;
    background: rgba(60, 62, 74, 0.9);
}

.view-replies span {
    font-weight: 500;
}

/* Adjust comment spacing */
.comment-list {
    margin-bottom: 36px;
    position: relative;
}

.comment-list:last-child {
    margin-bottom: 16px;
}

.comments-list.children {
    margin-top: 8px;
    padding-left: 20px;
}

/* Vote buttons */
.votes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.votes .icon {
    width: 14px;
    height: 14px;
}

.like, .dislike, .reply {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.like:hover, .dislike:hover, .reply:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Comments list */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.comments-list.children {
    margin-top: 4px;
    padding-left: 20px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .comment-flex {
        gap: 6px;
    }
    
    .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-avatar img,
    .comment-avatar .avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .comment-body {
        padding-right: 0;
    }
    
    .comments-list.children {
        padding-left: 15px;
    }
}

/* Comment menu */
.comment-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.comment-menu-toggle {
    color: rgb(121, 24, 248);
    display: inline-flex;
    padding: 4px;
    border-radius: 4px;
}

.comment-menu-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
}

.comment-menu .dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.comment-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 6px 12px;
}

.comment-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.comment-menu .dropdown-item.comment-delete:hover {
    color: #ff5252;
}

/* Loading indicator for scrolling */
.comments-loading {
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: none;
}

.comments-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    margin-right: 5px;
}

/* Show more comments button */
.load-more-comments {
    display: block;
    text-align: center;
    padding: 8px;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-comments:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Adjust comment header to allow space for the menu */
.comment-item .comment-header {
    position: relative; /* Ensure context for absolute positioning */
    padding-right: 40px; /* Make space for the absolute positioned menu */
    flex-wrap: wrap; /* Allow wrapping for elements inside comment-header */
    align-items: flex-start; /* Align items to the start */
}

.comment-item .comment-author {
    flex-grow: 1; /* Allow author to take available space */
    margin-right: 5px; /* Add a small margin to separate from date */
}

.comment-item .comment-date {
    margin-left: 0; /* Remove left margin */
    font-size: 11px; /* Smaller font for date */
    flex-basis: 100%; /* Force date to new line */
    order: 3; /* Push date below author */
}

/* Ensure proper spacing and alignment for main comment flex */
.comment-list .comment-flex {
    flex-wrap: nowrap; /* Keep avatar and body on one line */
    align-items: flex-start; /* Align items to the top */
}

/* Mobile tab navigation improvements */
@media (max-width: 767px) {
    .post-toolbar {
        background: rgba(30, 30, 40, 0.8);
        border-radius: 12px;
        padding: 4px;
        margin: 15px 0;
    }

    .mobile-tab-navigation {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 6px;
    }

    .mobile-tab-navigation li {
        flex: 1;
        max-width: 160px;
    }

    .mobile-tab-navigation .tab-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        position: relative;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: transparent;
    }

    .mobile-tab-navigation .tab-link.active {
        color: #fff;
        background: rgba(98, 77, 227, 1);
    }

    .mobile-tab-navigation .tab-label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0;
        order: 1;
    }

    .mobile-tab-navigation .tab-count {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(98, 77, 227, 1);
        color: #fff;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 600;
        padding: 0 6px;
    }

    .mobile-tab-navigation .tab-link.active .tab-count {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Ensure proper spacing for content below tabs */
    .layout-tab-content {
        padding-top: 15px;
    }

    /* Remove any existing borders or shadows */
    .post-toolbar {
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    .recommendations-scroll {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .recommendations-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera*/
    }
}

/* Mobile-friendly Community Page Improvements */
@media (max-width: 767px) {
    /* Better post card layout for mobile */
    .card.bg-gray-200.border-0.rounded-3.mb-2 {
        margin-bottom: 0.75rem !important;
    }

    /* Optimize post layout for mobile */
    .card-body .row.align-items-start.gx-2 {
        margin: 0;
    }

    /* Adjust avatar size for mobile */
    .card-body .col-auto .avatar.avatar-md {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    /* Improve post content spacing */
    .card-body .col {
        padding-left: 0.5rem;
    }

    /* Make post images responsive */
    .post-image-container {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .post-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: all 0.3s ease !important;
    }

    /* Optimize reply count indicator */
    .d-flex.align-items-center.justify-content-center[style*="position: absolute"] {
        top: 5px !important;
        right: 5px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
    }

    /* Improve leaderboard for mobile */
    .w-xl-300 {
        margin-top: 1.5rem;
    }

    /* Better spacing for create post button on mobile */
    .mb-4.d-grid .btn-create-post {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Optimize leaderboard layout */
    .leaderboard .row.align-items-center.mb-3 {
        margin-bottom: 0.5rem !important;
    }

    /* Fix breadcrumb display on mobile */
    .breadcrumb.d-inline-flex.text-muted.mb-2 {
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem;
    }

    /* Better heading layout */
    .layout-heading.mb-3 {
        margin-bottom: 0.75rem !important;
        display: flex;
        flex-direction: column;
    }

    .layout-heading-filter {
        margin-top: 0.5rem;
    }

    /* Adjust description text for better readability */
    .card-body p.fs-sm.text-gray-600.mb-1 {
        -webkit-line-clamp: 1; /* Limit to 1 line on mobile */
    }

    /* Improve title display */
    .card-body h3.fs-base.text-white.fw-semibold.mb-1 {
        font-size: 0.9rem !important;
        line-height: 1.3;
    }

    /* Leaderboard see all button styling */
    .see-all-leaderboard {
        width: 100%;
        padding: 0.4rem;
        transition: all 0.3s ease;
        font-size: 0.8rem;
    }

    .see-all-leaderboard i {
        transition: transform 0.3s ease;
    }

    .see-all-leaderboard.active i {
        transform: rotate(180deg);
    }

    /* Leaderboard extra items animation */
    .leaderboard-extra {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .leaderboard-extra.show {
        max-height: 500px; /* Arbitrary large value to accommodate all items */
    }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991px) {
    /* Adjust sidebar width */
    .row.gx-xl-5.justify-content-lg-center .col-lg-auto {
        width: 100%;
    }

    /* Make leaderboard more compact */
    .w-xl-300 {
        max-width: 100%;
        margin-top: 1.5rem;
    }

    /* Optimize leaderboard layout */
    .leaderboard {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .leaderboard .row.align-items-center.mb-3 {
        width: 48%;
        margin-bottom: 0.5rem !important;
    }
}

/* Leaderboard page styles */
.leaderboard-full .top-rank {
    border-radius: 10px;
    position: relative;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.75rem !important;
}

.leaderboard-full .rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-full .rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.leaderboard-full .rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.leaderboard-full .top-rank .avatar-body {
    width: 45px !important;
    height: 45px !important;
    font-size: 1rem !important;
}

.leaderboard-full .top-rank .avatar-badge {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
}

.leaderboard-full .rank-1 .avatar-badge {
    background-color: #FFD700;
    color: #000;
}

.leaderboard-full .rank-2 .avatar-badge {
    background-color: #C0C0C0;
    color: #000;
}

.leaderboard-full .rank-3 .avatar-badge {
    background-color: #CD7F32;
    color: #000;
}

.leaderboard-full .top-rank .fs-sm {
    font-size: 1rem !important;
}

.leaderboard-full .top-rank .fs-xs {
    font-size: 0.875rem !important;
}

@media (max-width: 767px) {
    .leaderboard-full .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .leaderboard-full .top-rank .avatar-body {
        width: 40px !important;
        height: 40px !important;
    }
    
    .leaderboard-full .top-rank .fs-sm {
        font-size: 0.9rem !important;
    }
}

/* Anime-themed Leaderboard Styles */
@media (max-width: 767px) {
    /* Card styling for leaderboard */
    .col-12.d-block.d-lg-none .card.bg-gray-200 {
        background: linear-gradient(145deg, #1a1b25 0%, #272838 100%) !important;
        border: none !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Add anime-style decorative elements */
    .col-12.d-block.d-lg-none .card.bg-gray-200::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        z-index: 1;
    }

    .col-12.d-block.d-lg-none .card.bg-gray-200::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: -10px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        z-index: 1;
    }

    /* Leaderboard header styling */
    .col-12.d-block.d-lg-none .card-body h3.fw-semibold {
        color: #fff !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        position: relative;
        display: inline-block;
    }

    /* Cute anime badge for "Top 3" */
    .col-12.d-block.d-lg-none span.fs-xxs.text-muted {
        background: #624de3 !important;
        color: #fff !important;
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        position: relative;
        top: -2px;
        box-shadow: 0 3px 6px rgba(98, 77, 227, 0.3);
    }

    /* Leaderboard podium layout */
    .col-12.d-block.d-lg-none .leaderboard {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        padding-top: 15px !important;
        padding-bottom: 10px !important;
        position: relative !important;
    }

    /* Podium styling */
    .col-12.d-block.d-lg-none .leaderboard::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #624de3 0%, #ff69b4 100%);
        border-radius: 5px;
        opacity: 0.5;
    }

    /* Individual user card styling */
    .col-12.d-block.d-lg-none .leaderboard .row {
        flex: 1;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 5px !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 2;
        transform-style: preserve-3d;
        transition: transform 0.3s ease;
    }

    /* Hover effect */
    .col-12.d-block.d-lg-none .leaderboard .row:hover {
        transform: translateY(-5px);
    }

    /* First place styling */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) {
        margin-bottom: 0 !important;
        order: 2;
        padding-bottom: 15px !important;
    }

    /* Second place styling */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(2) {
        margin-bottom: 0 !important;
        order: 1;
        padding-bottom: 5px !important;
    }

    /* Third place styling */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(3) {
        margin-bottom: 0 !important;
        order: 3;
        padding-bottom: 5px !important;
    }

    /* Avatar styling */
    .col-12.d-block.d-lg-none .leaderboard .col-auto {
        margin-bottom: 8px !important;
        padding: 0 !important;
    }

    .col-12.d-block.d-lg-none .leaderboard .avatar {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
        border: 3px solid transparent;
        transition: all 0.3s ease;
    }

    /* First place avatar */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) .avatar {
        width: 70px !important;
        height: 70px !important;
        border-color: #FFD700 !important;
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4) !important;
    }

    /* Second place avatar */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(2) .avatar {
        border-color: #C0C0C0 !important;
        box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4) !important;
    }

    /* Third place avatar */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(3) .avatar {
        border-color: #CD7F32 !important;
        box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4) !important;
    }

    /* Avatar badge styling */
    .col-12.d-block.d-lg-none .avatar-badge {
        width: 24px !important;
        height: 24px !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        bottom: -5px !important;
        right: -5px !important;
        border: 2px solid #1a1b25 !important;
    }

    /* First place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) .avatar-badge {
        background-color: #FFD700 !important;
        color: #000 !important;
        width: 28px !important;
        height: 28px !important;
    }

    /* Second place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(2) .avatar-badge {
        background-color: #C0C0C0 !important;
        color: #000 !important;
    }

    /* Third place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(3) .avatar-badge {
        background-color: #CD7F32 !important;
        color: #000 !important;
    }

    /* User info styling */
    .col-12.d-block.d-lg-none .leaderboard .col.text-gray-700 {
        padding: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .col-12.d-block.d-lg-none .leaderboard .text-uppercase {
        color: #a8a9c1 !important;
        font-size: 0.65rem !important;
        margin-bottom: 2px !important;
    }

    .col-12.d-block.d-lg-none .leaderboard .text-current {
        color: #fff !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }

    /* First place username */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) .text-current {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    /* XP styling */
    .col-12.d-block.d-lg-none .leaderboard .col-auto:last-child {
        padding: 0 !important;
        margin-top: 2px !important;
    }

    .col-12.d-block.d-lg-none .leaderboard .fs-xxs.fw-bold.text-theme {
        font-size: 0.75rem !important;
        color: #624de3 !important;
        font-weight: 700 !important;
        padding: 2px 8px !important;
        background: rgba(98, 77, 227, 0.15) !important;
        border-radius: 10px !important;
    }

    /* First place XP */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) .fs-xxs.fw-bold.text-theme {
        font-size: 0.85rem !important;
        background: linear-gradient(90deg, rgba(98, 77, 227, 0.2) 0%, rgba(255, 105, 180, 0.2) 100%) !important;
    }

    /* "See all" button styling */
    .col-12.d-block.d-lg-none .text-center.mt-2 a.btn {
        background: linear-gradient(90deg, #624de3 0%, #9370DB 100%) !important;
        border: none !important;
        color: #fff !important;
        font-weight: 600 !important;
        padding: 10px 20px !important;
        border-radius: 30px !important;
        box-shadow: 0 4px 10px rgba(98, 77, 227, 0.3) !important;
        transition: all 0.3s ease !important;
        margin-top: 5px !important;
    }

    .col-12.d-block.d-lg-none .text-center.mt-2 a.btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(98, 77, 227, 0.4) !important;
    }

    .col-12.d-block.d-lg-none .text-center.mt-2 a.btn i {
        font-size: 0.8rem !important;
    }
}

/* Anime-themed Full Leaderboard Page Styles */
.anime-leaderboard-card {
    background: linear-gradient(145deg, #1a1b25 0%, #272838 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
}

.anime-leaderboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
}

.anime-leaderboard-card::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 1;
}

.anime-info-card {
    background: linear-gradient(145deg, #1a1b25 0%, #272838 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
}

.anime-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 1;
}

.anime-info-card h3 {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.anime-info-card p, .anime-info-card .text-muted {
    color: #a8a9c1 !important;
}

.anime-list li {
    margin-bottom: 10px !important;
    padding: 5px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.anime-list li:last-child {
    border-bottom: none !important;
}

.anime-list .fa-check-circle {
    color: #624de3 !important;
    font-size: 1.1rem !important;
}

.btn-back {
    background: linear-gradient(90deg, #624de3 0%, #9370DB 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 10px rgba(98, 77, 227, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-back:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(98, 77, 227, 0.4) !important;
}

/* Podium visualization */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 20px 0 40px;
    position: relative;
}

.podium-container::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.podium-first, .podium-second, .podium-third {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.podium-first {
    z-index: 3;
}

.podium-second, .podium-third {
    z-index: 2;
}

.podium-block {
    border-radius: 8px 8px 0 0;
}

.podium-first .podium-block {
    width: 100px;
    height: 90px;
    background: linear-gradient(0deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-top: 3px solid rgba(255, 215, 0, 0.5);
}

.podium-second .podium-block {
    width: 90px;
    height: 70px;
    background: linear-gradient(0deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    border-top: 3px solid rgba(192, 192, 192, 0.5);
}

.podium-third .podium-block {
    width: 80px;
    height: 50px;
    background: linear-gradient(0deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    border-top: 3px solid rgba(205, 127, 50, 0.5);
}

.podium-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    font-size: 1rem;
}

.podium-first .podium-number {
    background-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.podium-second .podium-number {
    background-color: #C0C0C0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.6);
}

.podium-third .podium-number {
    background-color: #CD7F32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.6);
}

/* Leaderboard entries styling */
.leaderboard-full .row {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.leaderboard-full .row:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(5px) !important;
}

.leaderboard-full .col-auto {
    padding: 0 10px !important;
}

.leaderboard-full .avatar-body {
    width: 45px !important;
    height: 45px !important;
    border: 3px solid rgba(98, 77, 227, 0.3) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.leaderboard-full .avatar-badge {
    width: 24px !important;
    height: 24px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    bottom: -5px !important;
    right: -5px !important;
    border: 2px solid #1a1b25 !important;
    background: #624de3 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
}

.leaderboard-full .col {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.leaderboard-full .text-current {
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
}

.leaderboard-full .text-uppercase {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

.leaderboard-full .xp-badge {
    margin-left: auto !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    background: rgba(98, 77, 227, 0.2) !important;
    color: #624de3 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

@media (max-width: 767px) {
    .anime-leaderboard-card {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0 !important;
    }
    
    .leaderboard-full .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Anime-themed Post Cards Styles */
.anime-post-card {
    background: linear-gradient(145deg, #1a1b25 0%, #272838 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.anime-post-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
}

.anime-post-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 1;
}

.anime-post-card::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1;
}

/* Anime-themed Desktop Leaderboard Styles */
.anime-sidebar-leaderboard {
    background: linear-gradient(145deg, #1a1b25 0%, #272838 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    position: relative !important;
}

.anime-sidebar-leaderboard::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
}

.anime-sidebar-leaderboard::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 1;
}

/* Leaderboard header styling */
.anime-sidebar-leaderboard .card-body h3.fw-semibold {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    position: relative;
    display: inline-block;
}

/* Cute anime badge for "Top 10" */
.anime-sidebar-leaderboard span.fs-xxs.text-muted {
    background: #624de3 !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    position: relative;
    top: -2px;
    box-shadow: 0 3px 6px rgba(98, 77, 227, 0.3);
}

/* Desktop Leaderboard styling */
.desktop-leaderboard {
    position: relative !important;
    padding-bottom: 10px !important;
}

.desktop-leaderboard::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #624de3 0%, #ff69b4 100%);
    border-radius: 3px;
    opacity: 0.3;
}

/* Individual user card styling */
.desktop-leaderboard .row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px !important;
    padding: 6px 8px !important;
    transition: all 0.3s ease;
}

/* Hover effect */
.desktop-leaderboard .row:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Top ranks styling */
.desktop-leaderboard .top-rank {
    position: relative;
    padding: 8px !important;
}

.desktop-leaderboard .rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.desktop-leaderboard .rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%) !important;
    border: 1px solid rgba(192, 192, 192, 0.3) !important;
}

.desktop-leaderboard .rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%) !important;
    border: 1px solid rgba(205, 127, 50, 0.3) !important;
}

/* Avatar styling */
.desktop-leaderboard .avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Top ranks avatar styling */
.desktop-leaderboard .rank-1 .avatar {
    border-color: #FFD700 !important;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4) !important;
}

.desktop-leaderboard .rank-2 .avatar {
    border-color: #C0C0C0 !important;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4) !important;
}

.desktop-leaderboard .rank-3 .avatar {
    border-color: #CD7F32 !important;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4) !important;
}

/* Avatar badge styling */
.desktop-leaderboard .avatar-badge {
    width: 18px !important;
    height: 18px !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    bottom: -3px !important;
    right: -3px !important;
    border: 1px solid #1a1b25 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
}

/* Rank badges styling with improved colors and effects */
.desktop-leaderboard .rank-1 .avatar-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%) !important;
    color: #000 !important;
    border: 1px solid #FFD700 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 0.7rem !important;
}

.desktop-leaderboard .rank-2 .avatar-badge {
    background: linear-gradient(135deg, #E3E3E3 0%, #C0C0C0 100%) !important;
    color: #000 !important;
    border: 1px solid #C0C0C0 !important;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4) !important;
}

.desktop-leaderboard .rank-3 .avatar-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #A05A2C 100%) !important;
    color: #000 !important;
    border: 1px solid #CD7F32 !important;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4) !important;
}

/* Regular rank badges (4 and beyond) */
.desktop-leaderboard .avatar-badge {
    background: linear-gradient(135deg, #624de3 0%, #4a3ab3 100%) !important;
    color: #fff !important;
    border: 1px solid #624de3 !important;
    box-shadow: 0 2px 8px rgba(98, 77, 227, 0.3) !important;
}

/* Mobile leaderboard rank badges */
@media (max-width: 767px) {
    .col-12.d-block.d-lg-none .avatar-badge {
        width: 20px !important;
        height: 20px !important;
        font-weight: 700 !important;
        font-size: 0.7rem !important;
        bottom: -3px !important;
        right: -3px !important;
        border: 1px solid #1a1b25 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
        z-index: 2 !important;
    }

    /* First place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(1) .avatar-badge {
        background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%) !important;
        color: #000 !important;
        border: 1px solid #FFD700 !important;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.75rem !important;
    }

    /* Second place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(2) .avatar-badge {
        background: linear-gradient(135deg, #E3E3E3 0%, #C0C0C0 100%) !important;
        color: #000 !important;
        border: 1px solid #C0C0C0 !important;
        box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4) !important;
    }

    /* Third place badge */
    .col-12.d-block.d-lg-none .leaderboard .row:nth-child(3) .avatar-badge {
        background: linear-gradient(135deg, #CD7F32 0%, #A05A2C 100%) !important;
        color: #000 !important;
        border: 1px solid #CD7F32 !important;
        box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4) !important;
    }
}

/* Full leaderboard page rank badges */
.leaderboard-full .avatar-badge {
    width: 20px !important;
    height: 20px !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    bottom: -3px !important;
    right: -3px !important;
    border: 1px solid #1a1b25 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
}

.leaderboard-full .rank-1 .avatar-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%) !important;
    color: #000 !important;
    border: 1px solid #FFD700 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4) !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
}

.leaderboard-full .rank-2 .avatar-badge {
    background: linear-gradient(135deg, #E3E3E3 0%, #C0C0C0 100%) !important;
    color: #000 !important;
    border: 1px solid #C0C0C0 !important;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4) !important;
}

.leaderboard-full .rank-3 .avatar-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #A05A2C 100%) !important;
    color: #000 !important;
    border: 1px solid #CD7F32 !important;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4) !important;
}

/* Add subtle animation on hover */
.leaderboard-full .row:hover .avatar-badge,
.desktop-leaderboard .row:hover .avatar-badge {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* User info styling */
.desktop-leaderboard .col.text-gray-700 {
    padding-left: 10px !important;
}

.desktop-leaderboard .text-uppercase {
    color: #a8a9c1 !important;
    font-size: 0.65rem !important;
    margin-bottom: 1px !important;
}

.desktop-leaderboard .text-current {
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

/* XP styling */
.desktop-leaderboard .xp-badge {
    font-size: 0.75rem !important;
    color: #624de3 !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    background: rgba(98, 77, 227, 0.15) !important;
    border-radius: 10px !important;
}

/* Top ranks XP styling */
.desktop-leaderboard .rank-1 .xp-badge {
    background: linear-gradient(90deg, rgba(98, 77, 227, 0.2) 0%, rgba(255, 105, 180, 0.2) 100%) !important;
}

/* See all button styling */
.see-all-btn {
    background: linear-gradient(90deg, #624de3 0%, #9370DB 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 15px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 10px rgba(98, 77, 227, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 5px !important;
}

.see-all-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(98, 77, 227, 0.4) !important;
}

.see-all-btn i {
    font-size: 0.8rem !important;
}

/* Post card elements styling */
.post-avatar {
    width: 45px !important;
    height: 45px !important;
    border: 2px solid rgba(98, 77, 227, 0.5) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
}

.anime-post-card:hover .post-avatar {
    border-color: rgba(255, 105, 180, 0.5) !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35) !important;
}

.username-link {
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.username-link:hover {
    color: #624de3 !important;
}

.post-date {
    color: #a8a9c1 !important;
    font-size: 0.75rem !important;
}

.post-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    position: relative;
    display: inline-block;
}

.post-title:hover {
    color: #624de3 !important;
    text-decoration: none !important;
}

.post-description {
    color: #a8a9c1 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.post-image-container {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.anime-post-card:hover .post-image-container {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.3s ease !important;
}

.anime-post-card:hover .post-image {
    transform: scale(1.05) !important;
}

.reply-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #624de3 0%, #9370DB 100%);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(98, 77, 227, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.anime-post-card:hover .reply-count-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(98, 77, 227, 0.5);
}

/* Mobile specific styles */
@media (max-width: 767px) {
    .anime-post-card {
        margin-bottom: 15px !important;
    }
    
    .post-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .username-link {
        font-size: 0.9rem !important;
    }
    
    .post-title {
        font-size: 1rem !important;
    }
    
    .post-description {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .reply-count-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Community Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2.5rem auto;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 500px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: rgba(90, 94, 250, 0.1);
    border: 1px solid rgba(90, 94, 250, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.pagination a:hover {
    background: rgba(90, 94, 250, 0.2);
    border-color: rgba(90, 94, 250, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(90, 94, 250, 0.15);
}

.pagination .active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(90, 94, 250, 0.25);
}

.pagination .prev,
.pagination .next {
    background: rgba(90, 94, 250, 0.15);
    border-color: rgba(90, 94, 250, 0.25);
    color: #fff;
    padding: 0;
    width: 36px;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-1px);
}

.pagination i {
    font-size: 12px;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 2rem auto;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .pagination .prev,
    .pagination .next {
        width: 32px;
    }
}

/* Logo styling for both mobile and desktop */
.navbar-brand {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

/* Logo text styling */
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  color: #fff;
}

/* X icon styling */
.logo-icon {
  color: #624de3;
  font-size: 1.6rem;
  font-weight: bold;
  margin-right: 4px;
  display: inline-block;
}

/* Desktop logo visibility fix */
@media (min-width: 992px) {
  .navbar-brand.desktop-brand {
    display: flex !important;
    align-items: center;
    margin-right: 1.5rem;
  }
}

/* Add proper spacing between navigation and content sections */
.layout-header {
  margin-bottom: 2rem !important;
}

/* Improve spacing for layout sections */
.layout-section {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

/* First layout section needs special spacing */
.layout-section:first-of-type {
  margin-top: 1rem;
}

/* Heading spacing improvements */
.layout-heading {
  margin-bottom: 1.5rem !important;
}

/* Navigation menu item spacing */
.navbar-nav .nav-item {
  margin: 0 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .layout-header {
    margin-bottom: 1.5rem !important;
  }
  
  .layout-section {
    margin-top: 1.5rem;
  }
}

/* Profile XP styling for mobile dropdown */
.profile-xp {
  margin-top: 2px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  /* Allow text to wrap naturally within its container */
  white-space: normal;
  word-wrap: break-word;
  font-size: 0.7rem;
  /* Ensure it takes full available width of its parent without exceeding */
  max-width: 100%;
}

.profile-xp .fw-semibold {
  color: var(--bs-primary);
}

.profile-dropdown .profile-header {
  /* Added display flex and align-items center in previous step */
  display: flex;
  align-items: center;
  padding: 15px; /* Increased padding to give more room */
  padding-bottom: 10px;
}

.profile-dropdown .profile-info {
  display: flex;
  flex-direction: column;
  flex: 1; /* Allow profile-info to take available space */
  min-width: 0; /* Allow content to shrink */
  padding-right: 15px; /* Add some padding to the right to prevent overflow into the edge */
}

.profile-dropdown .profile-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* Ensure it's constrained by its parent */
}

/* Add XP badge to profile avatar in mobile view */
.btn-profile {
  position: relative;
}

.btn-profile::after {
  content: attr(data-xp-level);
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--theme-color, #624de3);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: bold;
  box-sizing: border-box;
  z-index: 999; /* Increased z-index to ensure visibility */
  overflow: visible; /* Ensure it's not clipped */
}

/* Footer Genre Links */
.footer-links .genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links .genre-links li {
  margin: 0;
}

.footer-links .genre-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links .genre-links a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: var(--genre-color, #624de3);
  transition: all 0.3s ease;
}

.footer-links .genre-links a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-links .genre-links a:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--genre-color, #624de3);
}

/* Mobile adjustments for genres */
@media (max-width: 767px) {
  .footer-links .genre-links {
    gap: 6px;
    justify-content: center;
  }

  .footer-links .genre-links a {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .footer-links .genre-links a::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
  }
}

.anime-login-link {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 24px !important;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  margin-right: 10px;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

.anime-login-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anime-signup-btn {
  background: linear-gradient(45deg, #7c3aed, #c026d3) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  position: relative;
  overflow: hidden;
}

.anime-signup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #c026d3, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.anime-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.anime-signup-btn:hover::before {
  opacity: 1;
}

.anime-signup-btn span {
  position: relative;
  z-index: 1;
}

.user-icon {
    object-fit: contain;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.2s ease;
}

.btn-icon:hover .user-icon {
    filter: brightness(1);
}

.profile-avatar-placeholder .user-icon {
    opacity: 0.8;
}

/* Add custom styles for login and register pages */
.card.bg-dark {
    background-color: #1a1a1a !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.card.bg-dark .form-control {
    background-color: #2a2a2a !important;
    border-color: #3a3a3a !important;
    color: #fff !important;
}

.card.bg-dark .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 100, 255, 0.25);
    border-color: #4264ff !important;
}

.card.bg-dark .btn-primary {
    background-color: #4264ff;
    border-color: #4264ff;
}

.card.bg-dark .btn-primary:hover {
    background-color: #3050e6;
    border-color: #3050e6;
}

.card.bg-dark .btn-outline-secondary {
    border-color: #3a3a3a;
    color: #ccc;
}

.card.bg-dark .btn-outline-secondary:hover {
    background-color: #2a2a2a;
    border-color: #4a4a4a;
}

.card.bg-dark hr.bg-secondary {
    border-color: #3a3a3a !important;
    opacity: 0.5;
}

.card.bg-dark .text-info {
    color: #4264ff !important;
}

.card.bg-dark .form-check-input {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

.card.bg-dark .form-check-input:checked {
    background-color: #4264ff;
    border-color: #4264ff;
}

/* Auth page background */
.auth-page-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(12, 6, 19, 0.4) 0%, rgba(26, 9, 54, 0.4) 100%);
    min-height: 100vh;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    padding: 2rem;
    overflow: hidden;
}

.auth-page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/anime-mascot.sv1g') no-repeat;
    background-position: right -50px bottom -50px;
    background-size: 300px;
    opacity: 0.1;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.auth-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(125, 3, 196, 0.329);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  width: 650px;
  max-width: 100%;
  position: relative;
  z-index: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  margin: 0 auto;
  margin-top: 100px;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--anime-accent);
  box-shadow: 0 0 0 3px rgba(98, 77, 227, 0.3);
  transform: translateY(-2px);
}

.auth-card .btn-login {
  background: var(--anime-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  width: 100%;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  box-shadow: 0 6px 12px rgba(98, 77, 227, 0.3);
}

.auth-card .btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.auth-card .btn-login:hover::before {
  left: 100%;
}

.auth-card .btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(98, 77, 227, 0.5);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.8rem 0;
  color: rgba(255, 255, 255, 0.6);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-divider span {
  padding: 0 15px;
  font-size: 0.95rem;
  font-weight: 500;
}

.social-login-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 1.8rem;
    justify-content: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.social-login-buttons:empty {
    display: none;
}

.social-login-buttons:has(a:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(80px, 120px));
    justify-content: center;
}

.btn-social {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem;
  color: #fff;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-social i {
  font-size: 1.3rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--anime-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.auth-footer a:hover {
  color: var(--anime-accent-hover);
  text-decoration: underline;
}

/* Checkbox styling */
.form-check {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center; /* Changed to center for better vertical alignment */
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -1.8rem;
  margin-top: 0; /* Remove top margin to align with text */
  flex-shrink: 0; /* Prevent shrinking on smaller screens */
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none; /* For Safari */
  position: relative;
  top: 1px; /* Fine-tune vertical alignment */
}

.form-check-input:checked {
  background-color: #7D03C4;
  border-color: #7D03C4;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8l2.5 2.5L12 5'/%3e%3c/svg%3e");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  animation: checkbox-pop 0.2s ease-in-out;
}

@keyframes checkbox-pop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  padding-left: 0.5rem; /* Add some space between checkbox and label */
}

.forgot-password {
  text-align: right;
  margin-bottom: 0.5rem;
}

.forgot-password a {
  color: var(--anime-accent);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.2rem 0;
}

.forgot-password a:hover {
  color: var(--anime-accent-hover);
  text-decoration: underline;
}

/* Error message styling */
.auth-error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 8px;
  color: #ff3b30;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-error i {
  font-size: 1rem;
}

/* Success message styling */
.auth-success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 8px;
  color: #34c759;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-success i {
  font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
    width: 100%;
    border-radius: 16px;
  }
  
  .auth-card h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .auth-card .form-control {
    padding: 0.9rem 1rem;
  }
  
  .social-login-buttons {
    gap: 10px;
  }
  
  .btn-social {
    padding: 0.8rem;
  }
  
  .btn-social i {
    font-size: 1.2rem;
  }
}

/* Improved Auth Pages Styling */
.auth-page-bg {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 6, 19, 0) 0%, rgba(26, 9, 54, 0) 100%);
  min-height: 100vh;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  padding: 2rem;
  overflow: hidden;
  
}

.auth-page-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/anime-bg-pattern.svg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.auth-card {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(125, 3, 196, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(125, 3, 196, 0.2);
  padding: 2.5rem;
  width: 500px;
  max-width: 100%;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(125, 3, 196, 0.3);
}

.auth-card h1 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.auth-card h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #7D03C4, #C931FF);
  border-radius: 3px;
}

.auth-card .form-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.auth-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 3, 196, 0.5);
  box-shadow: 0 0 0 3px rgba(125, 3, 196, 0.15);
  transform: translateY(-2px);
  outline: none;
}

.auth-card .btn-login {
  background: linear-gradient(45deg, #7D03C4, #B311FF);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(125, 3, 196, 0.25);
}

.auth-card .btn-login:hover {
  background: linear-gradient(45deg, #9004E8, #D225FF);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(125, 3, 196, 0.35);
}

.auth-card .btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(125, 3, 196, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.8rem 0;
  color: rgba(255, 255, 255, 0.5);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 15px;
  font-size: 0.9rem;
  font-weight: 400;
}

.social-login-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.8rem;
}

.btn-social {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem;
  color: #fff;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-social i {
  font-size: 1.2rem;
}

.btn-social i.fa-google {
  color: #EA4335;
}

.btn-social i.fa-facebook-f {
  color: #3b5998;
}

.btn-social i.fa-discord {
  color: #7289da;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.auth-footer a {
  color: #B311FF;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.auth-footer a:hover {
  color: #D225FF;
  text-decoration: underline;
}

/* Checkbox styling */
.form-check {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -1.8rem;
  margin-top: 0.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #7D03C4;
  border-color: #7D03C4;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8l2.5 2.5L12 5'/%3e%3c/svg%3e");
  animation: checkbox-pop 0.2s ease-in-out;
}

@keyframes checkbox-pop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-password {
  text-align: right;
}

.forgot-password a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.forgot-password a:hover {
  color: #B311FF;
}

/* Enhanced Mobile Styles for Auth Pages */
@media (max-width: 576px) {
  .auth-page-bg {
    padding: 1rem;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 56px); /* Account for mobile navbar */
  }
  
  .auth-card {
    padding: 1.5rem;
    width: 100%;
    margin-top: 0;
    border-radius: 12px;
    animation: slide-up-mobile 0.4s ease-out forwards;
  }
  
  @keyframes slide-up-mobile {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
  }
  
  .auth-card h1::after {
    width: 40px;
    height: 2px;
  }
  
  .auth-card .form-control {
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    height: auto;
  }
  
  .auth-card .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .auth-card .btn-login {
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-top: 0.75rem;
  }
  
  /* Optimize social login for mobile */
  .social-login-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
  }
  
  .btn-social {
    padding: 0.7rem;
    border-radius: 8px;
  }
  
  .btn-social i {
    font-size: 1.1rem;
  }
  
  .auth-divider {
    margin: 1.5rem 0;
  }
  
  .auth-divider span {
    padding: 0 10px;
    font-size: 0.85rem;
  }
  
  /* Better checkboxes on mobile */
  .form-check {
    margin-bottom: 0.75rem;
    align-items: center;
  }
  
  .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0;
    top: 0;
  }
  
  .form-check-label {
    font-size: 0.85rem;
  }
  
  /* Fix checkbox and forgot password layout */
  .auth-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  
  .auth-flex-wrapper .form-check {
    margin-bottom: 0;
    flex: 1;
    min-width: 50%;
  }
  
  .auth-flex-wrapper .forgot-password {
    text-align: right;
    flex: 1;
    min-width: 40%;
  }
  
  .auth-flex-wrapper .forgot-password a {
    font-size: 0.8rem;
  }
  
  /* Bottom spacing */
  .auth-footer {
    margin-top: 1.25rem;
    font-size: 0.85rem;
  }
  
  /* Touch-friendly error messages */
  .auth-error, .auth-success {
    padding: 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  /* Better handling of layout on very small screens */
  @media (max-width: 360px) {
    .auth-card {
      padding: 1.25rem;
    }
    
    .social-login-buttons {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .btn-social {
      padding: 0.6rem;
    }
    
    .btn-social i {
      font-size: 1rem;
    }
    
    .auth-flex-wrapper {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .auth-flex-wrapper .form-check {
      margin-bottom: 0.5rem;
      width: 100%;
    }
    
    .auth-flex-wrapper .forgot-password {
      text-align: left;
      width: 100%;
    }
  }
  
  /* Fix iOS input styles */
  .auth-card input,
  .auth-card textarea,
  .auth-card select {
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* Add a pulsing effect to the login button on mobile */
  .auth-card .btn-login:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(125, 3, 196, 0.2);
  }
  
  /* Add a subtle touch feedback */
  .auth-card .form-control:active {
    background: rgba(255, 255, 255, 0.08);
  }
  
  /* Fix iOS Safari zoom on input focus */
  @supports (-webkit-touch-callout: none) {
    .auth-card .form-control {
      font-size: 16px;
    }
  }
}

/* Add floating label effect for mobile */
.floating-label {
  position: relative;
  margin-bottom: 1.25rem;
}

.floating-label label {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.75rem;
  color: #B311FF;
  background: rgba(21, 13, 34, 0.9);
  padding: 0 0.4rem;
  border-radius: 4px;
}

/* Optimized auth card for mobile landscape */
@media (max-height: 600px) and (max-width: 767px) {
  .auth-page-bg {
    padding: 0.75rem;
  }
  
  .auth-card {
    padding: 1.25rem;
    margin-top: 0;
  }
  
  .auth-card h1 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }
  
  .auth-divider {
    margin: 1.25rem 0;
  }
  
  .social-login-buttons {
    margin-bottom: 1.25rem;
  }
  
  .auth-footer {
    margin-top: 1rem;
  }
}

/* Improve auth card appearance when keyboard is open */
@media (max-height: 450px) {
  .auth-card {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .auth-card h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 8px;
  }
}

/* Form animations */
@keyframes input-focus {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(-2px);
  }
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 3, 196, 0.5);
  box-shadow: 0 0 0 3px rgba(125, 3, 196, 0.15);
  animation: input-focus 0.3s ease forwards;
  outline: none;
}

@keyframes button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 3, 196, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(125, 3, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 3, 196, 0);
  }
}

.auth-card .btn-login:hover {
  background: linear-gradient(45deg, #9004E8, #D225FF);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(125, 3, 196, 0.35);
  animation: button-pulse 1.5s infinite;
}

/* Subtle card entrance animation */
@keyframes card-enter {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: card-enter 0.5s ease-out forwards;
}

/* Form validation visual feedback */
.auth-card .form-control:valid {
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-card .form-control:focus:valid {
  border-color: rgba(80, 200, 120, 0.5);
  box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.15);
}

.auth-card .form-control:invalid:focus:not(:placeholder-shown) {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Label animations */
.auth-card .form-label {
  transition: color 0.3s ease;
}

.auth-card .form-control:focus + .form-label,
.auth-card .form-control:focus ~ .form-label {
  color: #B311FF;
}

/* Mobile-specific password visibility toggle */
.password-toggle {
  position: relative;
}

.password-toggle .toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 5px;
  z-index: 2;
}

.password-toggle .toggle-btn:focus {
  outline: none;
}

/* Mobile vibration feedback */
@media (max-width: 576px) {
  @keyframes subtle-vibrate {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
  }
  
  .auth-error {
    animation: subtle-vibrate 0.3s ease-in-out;
  }
  
  /* Add touch ripple effect for mobile */
  .btn-login {
    position: relative;
    overflow: hidden;
  }
  
  .btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
  }
  
  .btn-login:active::after {
    opacity: 0.3;
    transform: scale(50) translate(-50%, -50%);
    transition: transform 0.5s, opacity 0.4s;
  }
  
  /* Mobile optimized view when device has notch */
  @supports (padding-top: env(safe-area-inset-top)) {
    .auth-page-bg {
      padding-top: calc(1rem + env(safe-area-inset-top));
      padding-bottom: calc(1rem + env(safe-area-inset-bottom));
      padding-left: calc(1rem + env(safe-area-inset-left));
      padding-right: calc(1rem + env(safe-area-inset-right));
    }
  }
}

/* Request Page Specific Styles */
.request-page {
  position: relative;
  overflow: hidden;
}

.request-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #00000000;
  pointer-events: none;
  z-index: -1;
}

.request-search-form {
  background: rgba(30, 30, 40, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(98, 77, 227, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.request-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.request-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(98, 77, 227, 0.1);
}

.request-tab.active {
  background: var(--anime-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(98, 77, 227, 0.3);
}

.request-tab:hover:not(.active) {
  background: rgba(98, 77, 227, 0.15);
  transform: translateY(-2px);
}

.request-tab-icon {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.request-content {
  display: none;
}

.request-content.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

.bug-report-form textarea,
.feature-request-form textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  min-height: 150px;
}

.bug-report-form textarea:focus,
.feature-request-form textarea:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--anime-accent) !important;
  box-shadow: 0 0 0 2px rgba(98, 77, 227, 0.2) !important;
}

.bug-report-form input,
.feature-request-form input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 30px !important;
  color: #fff !important;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.bug-report-form input:focus,
.feature-request-form input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--anime-accent) !important;
  box-shadow: 0 0 0 2px rgba(98, 77, 227, 0.2) !important;
}

.request-card {
  background: rgba(30, 30, 40, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(98, 77, 227, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.priority-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.priority-high {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b81;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.priority-medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.priority-low {
  background: rgba(40, 167, 69, 0.2);
  color: #7defa1;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Bug report table styling */
.anime-bug-table {
  background: rgba(25, 28, 36, 0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(98, 77, 227, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.anime-bug-table th {
  background: rgba(30, 30, 40, 0.7);
  font-family: var(--font-primary);
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(98, 77, 227, 0.3);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.anime-bug-table td {
  color: #fff;
  padding: 0.75rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  font-size: 0.9rem;
}

.anime-bug-table tbody tr {
  transition: all 0.25s ease;
  color: #fff;
}

.anime-bug-table tbody tr:hover {
  background: #fff;
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .anime-bug-table {
    font-size: 0.8rem;
  }
  
  .anime-bug-table th {
    font-size: 0.75rem;
  }
  
  .anime-bug-table td {
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }
  
  .priority-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

.request-status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  z-index: 2;
}

.status-pending {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.status-approved {
  background: rgba(40, 167, 69, 0.9);
  color: #fff;
}

.status-rejected {
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
}

.status-completed {
  background: rgba(98, 77, 227, 0.9);
  color: #fff;
}

/* Feature Request Cards */
.anime-themed-card {
  background: rgba(25, 28, 36, 0.7) !important;
  border: 1px solid rgba(98, 77, 227, 0.2) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 16px !important;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.anime-themed-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 1;
}

.anime-themed-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 1;
}

.anime-themed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(98, 77, 227, 0.3);
}

.anime-themed-card .card-body {
  position: relative;
  z-index: 1;
}

.anime-themed-card .card-title {
  font-family: var(--font-primary);
  font-weight: 600;
  color: white;
  font-size: 1rem;
  line-height: 1.4;
}

.anime-themed-card .badge {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
  border-radius: 8px;
}

.anime-themed-card .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.anime-themed-card .btn-outline-primary {
  border-color: rgba(98, 77, 227, 0.5);
  color: rgba(98, 77, 227, 0.9);
  background: transparent;
  transition: all 0.25s ease;
  font-size: 0.8rem;
  border-radius: 12px;
}

.anime-themed-card .btn-outline-primary:hover {
  background-color: rgba(98, 77, 227, 0.9);
  color: white;
  border-color: rgba(98, 77, 227, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.anime-themed-card .btn-primary {
  background-color: rgba(98, 77, 227, 0.9);
  border-color: rgba(98, 77, 227, 0.5);
  color: white;
  font-size: 0.8rem;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .anime-themed-card {
    margin-bottom: 1rem;
  }
  
  .anime-themed-card .card-title {
    font-size: 0.95rem;
  }
  
  .anime-themed-card .fs-sm {
    font-size: 0.8rem !important;
  }
}

/* Bug Priority Selection */
.priority-selection {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.priority-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.priority-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.priority-option .priority-badge {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(30, 32, 40, 0.5);
    backdrop-filter: blur(10px);
}

.priority-option input[type="radio"]:checked + .priority-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.priority-option:hover .priority-badge {
    transform: translateY(-2px);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.priority-high {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b81;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.priority-option input[type="radio"]:checked + .priority-high {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.priority-medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffd166;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.priority-option input[type="radio"]:checked + .priority-medium {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.priority-low {
    background: rgba(40, 167, 69, 0.1);
    color: #7defa1;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.priority-option input[type="radio"]:checked + .priority-low {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* Feature Benefit Selection */
.benefit-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.benefit-option {
    position: relative;
    cursor: pointer;
}

.benefit-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.benefit-badge {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid rgba(98, 77, 227, 0.1);
    background: rgba(30, 32, 40, 0.5);
    backdrop-filter: blur(10px);
    color: #a8b3cf;
}

.benefit-option input[type="checkbox"]:checked + .benefit-badge {
    background: rgba(98, 77, 227, 0.15);
    border-color: rgba(98, 77, 227, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 77, 227, 0.2);
}

.benefit-option:hover .benefit-badge {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(98, 77, 227, 0.1);
}

.benefit-badge i {
    font-size: 1.1em;
    opacity: 0.8;
}

.benefit-option input[type="checkbox"]:checked + .benefit-badge i {
    opacity: 1;
    color: #624de3;
}

/* Add animation for selection */
@keyframes benefit-select {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.benefit-option input[type="checkbox"]:checked + .benefit-badge {
    animation: benefit-select 0.3s ease-out;
}

/* Ripple Effect */
.benefit-option {
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(98, 77, 227, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
  }
}

/* Admin Episodes Management Styles */
.admin-episodes-page .card {
  background-color: #fff;
  border-radius: 40px;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,.08);
}

.admin-episodes-page .card:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.02);
  border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.admin-episodes-page .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4em 0.8em;
}

.admin-episodes-page .filter-card {
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.03) !important;
}

.admin-episodes-page .text-muted {
  font-size: 0.85rem;
}

/* Add horizontal line between items if needed */
.admin-episodes-page .col-12:not(:last-child) .card {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Admin Episode Action Buttons */
.admin-episodes-page .btn-light {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef !important;
  padding: 0.4rem !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-episodes-page .btn-light:hover {
  background-color: #e9ecef;
  border-color: #dee2e6 !important;
}

.admin-episodes-page .btn-light svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Stats Cards */
.admin-episodes-page .card {
  background: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.04);
  width: 10px;
}

.admin-episodes-page .bg-opacity-10 {
  opacity: 0.1;
}

.admin-episodes-page .fs-4 {
  font-size: 1.75rem !important;
  line-height: 1.2;
}

.admin-episodes-page .text-muted {
  color: #6c757d !important;
  font-size: 0.875rem;
}

/* Top 100 Users badge styling */
.layout-heading .badge.bg-primary {
    background: linear-gradient(135deg, #624de3 0%, #4a3ab3 100%) !important;
    padding: 5px 10px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 5px rgba(98, 77, 227, 0.3) !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 767px) {
    .layout-heading .badge.bg-primary {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
}

/* Enhanced floating labels for forms */
.floating-label {
  position: relative;
}

.floating-label label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity .15s ease-in-out, transform .15s ease-in-out;
  color: var(--bs-gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label,
.floating-label textarea:not(:placeholder-shown) ~ label {
  opacity: 0.85;
  transform: scale(.85) translateY(-0.75rem) translateX(0.15rem);
  background-color: var(--bs-body-bg);
  height: auto;
  padding: 0 0.5rem;
  color: var(--anime-accent);
}

/* Password toggle button */
.password-toggle {
  position: relative;
}

.password-toggle .toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--bs-gray-500);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  cursor: pointer;
  z-index: 5;
}

.password-toggle .toggle-btn:hover {
  color: var(--anime-accent);
}

.password-toggle .toggle-btn:focus {
  outline: none;
}

/* Settings page specific styles */
.anime-themed-card {
  background: rgba(30, 30, 35, 0.4);
  border-radius: var(--anime-card-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anime-themed-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 1;
}

.anime-themed-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  z-index: 1;
}

.anime-themed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(98, 77, 227, 0.3);
}

.anime-themed-card .card-body {
  position: relative;
  z-index: 3;
}

/* Input styling for settings page */
.anime-themed-card .form-control {
  background-color: rgba(30, 30, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--anime-btn-radius);
  color: var(--bs-white);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.anime-themed-card .form-control:focus {
  background-color: rgba(30, 30, 35, 0.8);
  border-color: var(--anime-accent);
  box-shadow: 0 0 0 0.25rem rgba(98, 77, 227, 0.25);
  color: var(--bs-white);
}

.anime-themed-card .form-select {
  background-color: rgba(30, 30, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--anime-btn-radius);
  color: var(--bs-white);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.anime-themed-card .form-select:focus {
  background-color: rgba(30, 30, 35, 0.8);
  border-color: var(--anime-accent);
  box-shadow: 0 0 0 0.25rem rgba(98, 77, 227, 0.25);
  color: var(--bs-white);
}

/* Save button animation */
.btn-theme {
  position: relative;
  overflow: hidden;
  background: var(--anime-gradient);
  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(98, 77, 227, 0.4);
  transition: all 0.3s ease;
}

.btn-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(98, 77, 227, 0.6);
  background: linear-gradient(135deg, #5039d6 0%, #7646FF 100%);
}

.btn-theme:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(98, 77, 227, 0.4);
}

/* Ripple effect for buttons */
.btn-theme::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(100, 100);
    opacity: 0;
  }
}

.btn-theme:active::after {
  animation: ripple 600ms linear;
  opacity: 0;
}

/* Responsive adjustments for settings page */
@media (max-width: 767px) {
  .anime-themed-card {
    margin-bottom: 1rem;
  }
  
  .floating-label label {
    font-size: 0.9rem;
  }
}

/* Settings Page Styles */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.settings-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.settings-subtitle {
    color: var(--bs-secondary-color);
    font-size: 1rem;
}

.settings-icon {
    color: var(--anime-accent);
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--anime-card-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(98, 77, 227, 0.1);
}

.settings-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--bs-heading-color);
}

.section-icon {
    color: var(--anime-accent);
}

.settings-card-body {
    padding: 1.5rem;
}

/* Form Controls */
.form-floating {
    position: relative;
    margin-bottom: 1.25rem; /* Slightly adjust margin for better spacing */
}

.custom-input,
.custom-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--anime-btn-radius);
    color: var(--bs-body-color);
    padding: 1rem 1rem 0.625rem 2.75rem; /* Increased left padding for icon space */
    height: auto;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-floating > label {
    padding: 0.75rem 0.75rem 0 2.75rem; /* Increased left padding for label position */
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.input-icon {
    left: 1.15rem; /* Adjusted icon position */
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove any padding */
}

.section-icon {
    width: 22px; /* Slightly adjusted icon size */
    height: 22px;
    stroke-width: 1.8; /* Slightly thinner stroke for crispness */
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove any padding */
}

.settings-icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove any padding */
}

.save-button {
    padding: 0.75rem 2rem;
}

.toggle-password {
    right: 1.15rem; /* Adjusted toggle button position */
    background: none; /* Ensure no background */
    border: none; /* Ensure no border */
    padding: 0; /* Remove any padding */
}

.form-floating > .custom-input:focus ~ label,
.form-floating > .custom-input:not(:placeholder-shown) ~ label,
.form-floating > .custom-select ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* Password Field */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--bs-secondary-color);
    cursor: pointer;
    z-index: 4;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--anime-accent);
}

.password-hint {
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* Save Button */
.settings-actions {
    text-align: center;
    margin-top: 2rem;
}

.save-button {
    background: var(--anime-gradient);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--anime-btn-radius);
    transition: all 0.3s ease;
    min-width: 200px;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 77, 227, 0.3);
}

/* Textarea Styles */
textarea.custom-input {
    min-height: 100px;
    resize: vertical;
}

/* Select Styles */
.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236e7681' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .settings-title {
        font-size: 1.5rem;
    }
    
    .settings-card-header {
        padding: 1rem;
    }
    
    .settings-card-body {
        padding: 1rem;
    }
    
    .save-button {
        width: 100%;
    }
}

/* Profile Picture Styles */
.profile-picture-section {
    padding-top: 0.5rem;
    padding-bottom: 0rem; /* Removed bottom padding */
    margin-bottom: 0.75rem; /* Reduced margin-bottom */
    position: relative;
}

.profile-picture-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid var(--anime-accent);
    box-shadow: 0 0 15px rgba(98, 77, 227, 0.4); /* Slightly softer glow */
    position: relative;
    transition: all 0.3s ease;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-picture-wrapper:hover .profile-picture-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.edit-overlay {
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.edit-overlay svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.edit-overlay span {
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--bs-heading-color);
}

.profile-email {
    font-size: 0.9375rem;
    opacity: 0.7;
}

/* Existing Settings Styles */
.settings-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--anime-card-radius);
    backdrop-filter: blur(10px);
    padding: 2rem; /* Added padding to the container itself */
}

/* Form Controls */
.input-icon {
    left: 1.15rem;
    background: none !important; /* Ensure no background */
    border: none !important; /* Ensure no border */
    padding: 0 !important; /* Remove any padding */
    fill: none !important; /* Ensure no fill on the icon if it's not meant to have one */
    stroke: currentColor !important; /* Ensure stroke color is inherited */
}

.section-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    background: none !important; /* Ensure no background */
    border: none !important; /* Ensure no border */
    padding: 0 !important; /* Remove any padding */
    fill: none !important;
    stroke: currentColor !important;
}

.settings-icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
    background: none !important; /* Ensure no background */
    border: none !important; /* Ensure no border */
    padding: 0 !important; /* Remove any padding */
    fill: none !important;
    stroke: currentColor !important;
}

.toggle-password {
    right: 1.15rem;
    background: none !important; /* Ensure no background */
    border: none !important; /* Ensure no border */
    padding: 0 !important; /* Remove any padding */
    fill: none !important;
    stroke: currentColor !important;
}

/* Settings Page Form Styles */
.settings-form-control {
    background-color: rgba(30, 30, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.settings-form-control:focus {
    background-color: rgba(40, 40, 40, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

.settings-form-label {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Gender Selection Styles */
.gender-options {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 20px 0 !important;
}

.gender-option {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.gender-radio {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.gender-radio + span {
    position: relative !important;
    padding-left: 28px !important;
    cursor: pointer !important;
    line-height: 20px !important;
    display: inline-block !important;
    color: #fff !important;
}

.gender-radio + span:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.gender-radio:checked + span:before {
    border-color: #0d6efd !important;
}

.gender-radio:checked + span:after {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    background: #0d6efd !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.gender-radio:focus + span:before {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25) !important;
}

/* About Textarea Style */
.settings-textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.comment-form .btn {
    padding: 4px 12px;
    font-size: 13px;
}

.comment-form .btn-cancel {
    background-color: #dc3545;
    color: white;
    margin-right: 8px;
}

.comment-form .btn-cancel:hover {
    background-color: #c82333;
}

/* Hide duplicate post button */
.comment-form .btn-post + .btn-post {
    display: none;
}

/* Reply form styling */
.reply-form {
    padding: 8px;
    margin: 8px 0 8px 32px;
    background-color: rgba(26, 27, 32, 0.5);
    border-radius: 8px;
    width: 300px !important;
}

.reply-form .d-flex {
    gap: 8px;
}

.reply-form textarea {
    width: 100% !important;
    min-height: 36px !important;
    max-height: 80px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    margin: 0 !important;
    background-color: transparent !important;
    resize: none !important;
}

.reply-form .avatar {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
}

.reply-form .btn {
    padding: 4px 12px !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.reply-form .btn-cancel {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.reply-form .btn-cancel:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

.reply-form .d-flex.justify-content-end {
    margin-top: 8px;
}

.reply-form .character-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 11px;
    color: #999;
    pointer-events: none;
}

/* Comment thread styling - refined */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-list.children {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid rgba(100, 100, 255, 0.2);
    margin-top: 8px;
}

.comment-list {
    margin-bottom: 10px;
    position: relative;
}

.comment-list:last-child {
    margin-bottom: 0;
}

/* Comment content styling */
.comment-flex {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background-color: rgba(26, 27, 32, 0.5);
    transition: background-color 0.2s ease;
}

.comment-flex:hover {
    background-color: rgba(40, 42, 54, 0.6);
}

.comment-flex .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
    font-size: 14px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    color: #fff;
}

.comment-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.comment-text {
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.4;
}

.comment-footer {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.comment-flex:hover .comment-footer {
    opacity: 1;
}

.comment-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Reply button styling */
.comment-reply {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-reply:hover {
    color: #fff;
}

/* View Replies button styling */
.view-replies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    margin: 8px auto;
    width: fit-content;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(40, 42, 54, 0.8);
    position: relative;
    z-index: 2;
}

.view-replies:hover {
    color: #fff;
    background: rgba(60, 62, 74, 0.9);
    transform: translateY(-1px);
}

.view-replies.active {
    color: #fff;
    background: rgba(60, 62, 74, 0.9);
}

.view-replies svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.view-replies.active svg {
    transform: rotate(180deg);
}

.view-replies span {
    font-weight: 500;
}

/* Adjust comment spacing for better button placement */
.comment-list {
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.comment-list:last-child {
    margin-bottom: 0;
}

.comments-list.children {
    margin-top: 0;
    padding-top: 4px;
}

/* New styles for Facebook-like reply form */
.comment-reply-form {
    background-color: transparent; /* Make the form background transparent */
    padding: 0; /* Remove padding from the form itself */
    margin-top: 10px; /* Adjust margin to fit well */
    margin-bottom: 0;
}

.comment-reply-form .form-group {
    position: relative;
    margin-bottom: 0; /* Remove default margin-bottom from form-group */
}

.comment-reply-form textarea {
    background-color: #282936; /* Background for the textarea */
    border-radius: 18px; /* Rounded corners for the textarea */
    padding: 8px 15px;
    padding-right: 50px; /* Make space for character count */
    font-size: 0.9rem;
    min-height: 36px; /* Minimum height for textarea */
    line-height: 1.5; /* Adjust line height for better text flow */
    overflow: hidden; /* Hide scrollbar initially */
    transition: background-color 0.2s ease;
}

.comment-reply-form textarea:focus {
    background-color: #353641; /* Slightly lighter background on focus */
}

.comment-reply-form .character-count {
    position: absolute;
    right: 15px;
    bottom: 8px;
    font-size: 0.75rem; /* Slightly larger font for character count */
    color: rgba(255, 255, 255, 0.4); /* Softer color */
    pointer-events: none;
    transition: color 0.2s ease;
}

.comment-reply-form textarea:focus + .character-count {
    color: rgba(255, 255, 255, 0.6); /* Slightly more visible on focus */
}

.comment-reply-form .btn {
    font-size: 0.85rem;
    padding: 6px 15px;
    height: auto;
    min-width: 70px; /* Give buttons a minimum width */
}

.comment-reply-form .btn-theme {
    background-color: rgb(81, 63, 190); /* Use theme color for post button */
    border-color: rgb(81, 63, 190);
}

.comment-reply-form .btn-theme:hover {
    background-color: rgb(95, 75, 210); /* Darker hover effect */
    border-color: rgb(95, 75, 210);
}

.comment-reply-form .btn-link {
    color: rgba(255, 255, 255, 0.7); /* Adjust link button color */
}

.comment-reply-form .btn-link:hover {
    color: #fff; /* White on hover */
}

/* Override existing .replybox form styles for the new class */
.replybox .comment-reply-form {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Adjust avatar size within the reply form */
.comment-reply-form .comment-avatar {
    width: 36px; /* Slightly larger avatar for the reply form */
    height: 36px;
    flex-shrink: 0;
    margin-top: 0; /* Align with the top of the textarea */
}

.comment-reply-form .comment-avatar img,
.comment-reply-form .comment-avatar .avatar {
    width: 36px !important;
    height: 36px !important;
}

/* Ensure the flex container aligns items at the start */
.comment-reply-form .d-flex.align-items-start.w-100 {
    align-items: flex-start !important;
}

/* Adjust alert styling within the reply form */
.comment-reply-form .comment-alert {
    margin-top: 5px;
    margin-bottom: 0;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.comment-reply-form .comment-alert .alert {
    margin-bottom: 0;
}

.view-replies.active {
    color: #fff;
    background: rgba(60, 62, 74, 0.9);
}

/* Request Results Card Styling for Desktop */
.request-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.request-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(98, 77, 227, 0.15);
  background-color: rgba(30, 30, 35, 0.5);
}

.request-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(98, 77, 227, 0.4);
}

.request-card .poster {
  position: relative;
  padding-top: 100%; /* Maintain aspect ratio */
  overflow: hidden;
}

.request-card .poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.request-card:hover .poster img {
  transform: scale(1.05);
}

.request-card .request-status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  z-index: 2;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.request-card .card-body {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.request-card .title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-primary);
  color: white;
}

.request-card .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.request-card .text-muted {
  font-size: 0.75rem;
}

.request-card .btn {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.request-card .btn-request {
  background: var(--anime-gradient);
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.request-card .btn-request:hover {
  box-shadow: 0 0 10px rgba(98, 77, 227, 0.5);
  transform: translateY(-1px);
}

.request-card .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
}

.request-card .btn-success:hover {
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  transform: translateY(-1px);
}

.request-card .overview {
  font-size: 0.75rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments for tablets */
@media (min-width: 768px) and (max-width: 1199px) {
  .request-results {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .request-card .title {
    font-size: 0.9rem;
  }
  
  .request-card .card-body {
    padding: 0.6rem;
  }
  
  .request-card .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  
  .request-card .overview {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }
  
  .request-card .request-status {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Keep mobile styles from mobile-request.css for smaller screens */

/* Request card badge styling */
.request-card .badge.bg-dark {
    background-color: #dc3545 !important;
    color: #fff;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}