/* Root Variables */
:root {
  --color-background: #1a202c; /* Deep dark gray */
  --color-text-light: #e2e8f0; /* Light text */
  --color-scrollbar-thumb: #10b981; /* Epic green */
  --color-scrollbar-thumb-hover: #059669; /* Darker green on hover */
  --color-scrollbar-track: #1f2937; /* Dark gray track */
  --color-dropdown-bg: #2d3748; /* Dark gray dropdown */
  --color-dropdown-hover-bg: #4a5568; /* Darker gray on hover */
  --color-link: #cbd5e0; /* Light gray text */
  --color-link-hover: #ffffff; /* White text on hover */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 10px;
  --shadow-dropdown: 0 4px 6px rgba(0, 0, 0, 0.4); /* Dropdown shadow */
  --transition-speed: 0.3s; /* Smooth transitions */
  --scrollbar-width: 8px; /* Sidebar scrollbar width */
  --cw-green-10: rgba(34, 197, 94, 0.1); /* Green with 10% opacity */
  --cw-primary: rgba(34, 197, 94, 1); /* Solid green */
  --cw-border: rgba(34, 197, 94, 0.1); /* Border color with 10% opacity */

}

/* *{
  border:solid red !important;
}
 Body Scrollbar Styling */
body {
  scrollbar-width: thin; /* Thin scrollbar for Firefox */
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-background); /* Green thumb, dark gray track */
  overflow-y: scroll; /* Ensure vertical scrolling */
  background-color: var(--color-background);
  color: var(--color-text-light);
  margin: auto;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

body::-webkit-scrollbar {
  width: 10px; /* Body scrollbar width */
}

body::-webkit-scrollbar-track {
  background: var(--color-background); /* Dark gray track */
  border-radius: var(--radius-large); /* Rounded edges */
}

body::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb); /* Epic green thumb */
  border-radius: var(--radius-large); /* Rounded edges */
  border: 2px solid var(--color-background); /* Contrast border */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-thumb-hover); /* Darker green on hover */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Sidebar Styles */

/* Glow vert pour l'élément actif quand sidebar réduit */
#sidebar:not(.expanded) a[class*="active"]:not([class*=""]) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid #4ade80; 
  border-radius: 50%;
  color: #4ade80;
  font-size: 22px;
  transition: 0.4s;
  z-index: 1;
  text-shadow: 0 0 3px #4ade80;
  box-shadow: 0 0 3px #4ade80;
}

#sidebar:not(.expanded) a[class*="active"]:not([class*=""])::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%; 
  transform: scale(0.9);
  transition: 0.4s;
  z-index: -1;
  opacity: 0;
}

#sidebar:not(.expanded) a[class*="active"]:hover {
  color: #4ade80;
  border-color: #4ade80;
  text-shadow: 0 0 5px #4ade80;
  box-shadow: 0 0 5px #4ade80;
}

#sidebar:not(.expanded) a[class*="active"]:hover::before {
  transform: scale(1.1);
  opacity: 0.3;
  box-shadow: 0 0 15px #4ade80;
}



#sidebar {
  z-index: 100;
  transition: width var(--transition-speed) ease, transform var(--transition-speed) ease;
  width: 4rem; /* Collapsed width */
}

#sidebar.expanded {
  width: 16rem; /* Expanded width */
  overflow-y: scroll; /* Enable scrolling */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track); /* Green thumb, dark track */
}

#sidebar:is(.expanded) a[class*="active"] {
  background-color: #16a34a ;
  border-color: #4ade80;
  text-shadow: 0 0 5px #4ade80;
  box-shadow: 0 0 5px #4ade80;
}
#sidebar:is(.expanded) a:hover {
  border-color: #4ade80;
  text-shadow: 0 0 5px #4ade80;
  box-shadow: 0 0 5px #4ade80;
}

#sidebar::-webkit-scrollbar {
  width: var(--scrollbar-width); /* Sidebar scrollbar width */
}

#sidebar::-webkit-scrollbar-track {
  background-color: var(--color-scrollbar-track); /* Dark gray track */
}

#sidebar::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb); /* Green thumb */
  border-radius: var(--radius-medium); /* Rounded edges */
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-thumb-hover); /* Darker green on hover */
}

/* Show icons only in collapsed state */
#sidebar .menu-item-text {
  display: none;
}

#sidebar.expanded .menu-item-text {
  display: inline;
}

/* Button Styling */
.bg-green-600:hover {
  background-color: var(--color-scrollbar-thumb-hover); /* Hover green */
}

.bg-gray-700:hover {
  background-color: var(--color-scrollbar-track); /* Dark gray on hover */
}

/* Path Tags */
div span {
  transition: transform var(--transition-speed) ease-in-out;
}

div span:hover {
  transform: scale(1.1);
}



/* right sidebar */
.sidebar-btn {
  position: relative;
  border-radius: 50%; 
  transition: all 0.3s ease;
}

.deco{
  color: #4ade80;
  text-shadow: 0 0 5px #4ade80 !important;
  box-shadow: 0 0 5px #4ade80 !important;
}

.sidebar-btn.active i {
  color: #4ade80;
  transition: transform 0.3s ease;
  transform: scale(1.1);
  text-shadow: 0 0 5px #4ade80;
}

.sidebar-btn .crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  color: gold;
  font-size: 13px;
  animation: crownPop 0.4s ease forwards;
}


@keyframes crownPop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  25% { transform: translateX(-50%) scale(0.8); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
  75% { transform: translateX(-50%) scale(0.8); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/*message popper */
#notif-popper button, #msg-popper button {
  cursor: pointer;
  z-index: 1000; /* supérieur aux autres éléments du popper */
  background: transparent;
  border: none;
  font-size: 1.2rem;
}


/* Discovery Dropdown Styles */
#discovery-dropdown {
  background-color: var(--color-dropdown-bg);
  color: var(--color-text-light);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-dropdown);
  width: 120%;
  max-width: 500px;
  left: -20%;
  max-height: 300px;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: var(--color-scrollbar-thumb) var(--color-dropdown-bg);
}

#discovery-dropdown::-webkit-scrollbar {
  width: 6px; /* Slim scrollbar for dropdown */
}

#discovery-dropdown::-webkit-scrollbar-track {
  background-color: var(--color-dropdown-bg); /* Match dropdown background */
}

#discovery-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar-thumb); /* Green thumb */
  border-radius: var(--radius-small);
}

#discovery-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-thumb-hover); /* Darker green on hover */
}

/* Dropdown Links */
#discovery-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-small);
  color: var(--color-link);
  transition: background-color var(--transition-speed) ease;
}

#discovery-dropdown a:hover {
  background-color: var(--color-dropdown-hover-bg);
  color: var(--color-link-hover);
}

/* Align columns and balance spacing */
#discovery-dropdown > div {
  padding: 0.5rem;
}

/* Ensure the dropdown doesn't get clipped on smaller screens */
@media (max-width: 768px) {
  #discovery-dropdown {
    width: 100%;
    max-width: none;
    left: 0;
  }
}

#user-bubble {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: #10b981; /* Green */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
}

#user-modal {
  position: fixed;
  top: 5rem;
  right: 1rem;
  width: 16rem;
  background-color: #1f2937; /* Dark Gray */
  border-radius: 0.5rem;
  display: none;
}
 /* Hide scrollbar for a cleaner look */
 .scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none; /* IE 10+ */
  scrollbar-width: none; /* Firefox */
}

::selection {
  background-color: var(--color-scrollbar-thumb);/*#22c55e Vert Tailwind (équivalent de text-green-500) */
  color: #fff; /* Texte noir pour un bon contraste */
}

::-moz-selection {
  background-color: var(--color-scrollbar-thumb);
  color: #fff;
}


/*.book-card:hover {
  width: 200%;
  z-index: 0;
}*/
.hover-content p{
  width: 57%;
}         
.hexagon {
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}
.Profile_card{
  height: 350px;
}


.glass {
      backdrop-filter: blur(10px);
      background-color: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 0.75rem;
    }

.glass-panel {
      backdrop-filter: blur(12px);
      background-color: rgba(0, 0, 0, 0.6);
    }
.rightbar{
  margin-right: 20px;
  z-index: 10;
}
#notif-popper{
  z-index: 999 !important;
}
msg-popper{
  z-index: 999 !important;
}
header{
  width: 96%;
}

/**************************** swipper CSS ******************************/
/* Style des bullets */
.swiper-pagination-bullet {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2d2d2d; /* gris foncé de base */
  overflow: hidden;
}

/* L'overlay vert qui se remplit */
.swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #22c55e; /* Tailwind green-500 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 5s linear; /* même durée que autoplay delay */
}

/* Quand le bullet est actif -> le vert progresse */
.swiper-pagination-bullet-active::after {
  transform: scaleX(1);
}




/*************************** books cards CSS ******************************/
.book-card {
            transition: all 0.3s ease;
            cursor: pointer;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            height: 320px;
            min-height: 280px;
        }
        
        @media (max-width: 640px) {
            .book-card {
                height: 380px;
            }
        }
        
        @media (min-width: 1280px) {
            .book-card {
                height: 340px;
            }
        }
        
        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }

        
        .card-1 {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
        }
        .card-1::before {
            content: '';
            position: absolute;
            top: 20px;
            right: 20px;
            width: 120px;
            height: 160px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 160"><rect fill="%23fff" opacity="0.1" width="120" height="160" rx="10"/><circle cx="60" cy="50" r="25" fill="%23fff" opacity="0.2"/><rect x="35" y="80" width="50" height="60" fill="%23fff" opacity="0.1" rx="5"/></svg>') no-repeat;
        }

        
        .card-2 {
            background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
        }
        .card-2::before {
            content: '';
            position: absolute;
            top: 20px;
            right: 20px;
            width: 120px;
            height: 160px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 160"><rect fill="%23000" opacity="0.3" width="80" height="140" x="20" y="10" rx="10"/><circle cx="60" cy="40" r="20" fill="%23000" opacity="0.4"/></svg>') no-repeat;
        }

        
        .card-3 {
            background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
        }
        .card-3::before {
            content: '';
            position: absolute;
            top: 20px;
            right: 20px;
            width: 120px;
            height: 160px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 160"><rect fill="%23000" opacity="0.2" width="100" height="120" x="10" y="20" rx="8"/><rect fill="%23fff" opacity="0.1" width="60" height="80" x="30" y="40" rx="5"/></svg>') no-repeat;
        }

        
        .card-4 {
            background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
        }
        .card-4::before {
            content: '';
            position: absolute;
            top: 20px;
            right: 20px;
            width: 120px;
            height: 160px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 160"><circle cx="60" cy="50" r="30" fill="%23000" opacity="0.3"/><rect x="40" y="85" width="40" height="55" fill="%23000" opacity="0.2" rx="8"/></svg>') no-repeat;
        }

        
        .card-5 {
            background: linear-gradient(135deg, #e11d48 0%, #be185d 50%, #9f1239 100%);
        }

        
        .card-6 {
            background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
        }

        
        .card-7 {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #c2410c 100%);
        }

        
        .card-8 {
            background: linear-gradient(135deg, #374151 0%, #1f2937 50%, #111827 100%);
        }

        .book-tag {
            position: absolute;
            top: 16px;
            left: 16px;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .book-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 16px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
        }
        
        @media (max-width: 640px) {
            .book-info {
                padding: 20px;
            }
        }

        .book-title {
            font-size: 16px;
            font-weight: 700;
            color: white;
            margin-bottom: 6px;
            line-height: 1.2;
        }
        
        @media (max-width: 640px) {
            .book-title {
                font-size: 18px;
                margin-bottom: 8px;
            }
        }

        .book-rating {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
        }
        
        @media (max-width: 640px) {
            .book-rating {
                margin-bottom: 8px;
            }
        }

        .stars {
            color: #fbbf24;
            font-size: 12px;
            margin-right: 6px;
        }
        
        @media (max-width: 640px) {
            .stars {
                font-size: 14px;
                margin-right: 8px;
            }
        }

        .rating-value {
            color: white;
            font-size: 11px;
            font-weight: 500;
        }
        
        @media (max-width: 640px) {
            .rating-value {
                font-size: 12px;
            }
        }

        .book-genre {
            color: rgba(255,255,255,0.8);
            font-size: 10px;
            margin-bottom: 12px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        @media (max-width: 640px) {
            .book-genre {
                font-size: 11px;
                margin-bottom: 16px;
                -webkit-line-clamp: 4;
            }
        }

        .play-button {
            position: absolute;
            bottom: 14px;
            right: 14px;
            width: 32px;
            height: 32px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }
        
        @media (max-width: 640px) {
            .play-button {
                bottom: 18px;
                right: 18px;
                width: 36px;
                height: 36px;
            }
        }

        .play-button:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        .genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 8px;
        }

        .genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 8px;
        }

        .genre-tag {
            background: rgba(255,255,255,0.15);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 9px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        @media (max-width: 640px) {
            .genre-tag {
                font-size: 10px;
                padding: 3px 10px;
            }
            
            .genre-tags {
                margin-bottom: 10px;
            }
        }

        .play-icon {
            width: 14px;
            height: 14px;
            color: white;
        }
        
        @media (max-width: 640px) {
            .play-icon {
                width: 16px;
                height: 16px;
            }
        }
/* Fin books cards CSS ******************************/


/***** category cards *****/
 .glass-card {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.25) 0%, 
                rgba(255, 255, 255, 0.1) 25%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.1) 75%,
                rgba(255, 255, 255, 0.2) 100%
            );
            backdrop-filter: blur(25px) saturate(200%);
            -webkit-backdrop-filter: blur(25px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                0 8px 32px 0 rgba(31, 38, 135, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            cursor: pointer;
            border-radius: 16px;
        }
        
        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                transparent 50%, 
                rgba(255, 255, 255, 0.05) 100%
            );
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .glass-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                0 20px 60px 0 rgba(31, 38, 135, 0.5),
                0 0 40px rgba(255, 255, 255, 0.1),
                inset 0 2px 0 0 rgba(255, 255, 255, 0.4),
                inset 0 -2px 0 0 rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }
        
        .glass-card:hover::before {
            opacity: 1;
        }
        
        .glass-card:active {
            transform: translateY(-4px) scale(1.01);
        }
        
        .gradient-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.9;
            border-radius: 16px;
            transition: opacity 0.4s ease;
        }
        
        .glass-card:hover .gradient-overlay {
            opacity: 0.7;
        }
        
        .content-layer {
            position: relative;
            z-index: 2;
            height: 100%;
        }
        
        .count-badge {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 
                0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        .online-indicator {
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            box-shadow: 
                0 0 8px #10b981,
                0 0 16px rgba(16, 185, 129, 0.5);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .section-title {
            background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 900;
            letter-spacing: 4px;
            text-transform: uppercase;
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2rem;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            position: relative;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
            border-radius: 2px;
        }
        
        .icon-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 16px;
            transition: all 0.3s ease;
        }
        
        .glass-card:hover .icon-container {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1) rotate(5deg);
        }
        
        .category-title {
            font-weight: 800;
            font-size: 1.25rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            margin-bottom: 4px;
        }
        
        .category-subtitle {
            font-weight: 500;
            font-size: 0.75rem;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        /* Gradients spécifiques */
        .romans-gradient { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%); }
        .scifi-gradient { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%); }
        .fantastique-gradient { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%); }
        .thriller-gradient { background: linear-gradient(135deg, #ef4444 0%, #991b1b 50%, #374151 100%); }
        .biographie-gradient { background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%); }
        .nouveautes-gradient { background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%); }
        .bestsellers-gradient { background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%); }
        .recommandations-gradient { background: linear-gradient(135deg, #84cc16 0%, #65a30d 50%, #4d7c0f 100%); }
        
        .shimmer {
            position: relative;
            overflow: hidden;
        }
        
        .shimmer::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%
            );
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .floating {
            animation: floating 6s ease-in-out infinite;
        }
        
        @keyframes floating {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        .empty-card {
            background: linear-gradient(135deg, 
                rgba(71, 85, 105, 0.3) 0%, 
                rgba(51, 65, 85, 0.2) 50%,
                rgba(30, 41, 59, 0.3) 100%
            );
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }


/************* fin category cards *****/

/************* toaster *************/
.toast {
            animation: slideIn 0.4s ease-out;
            min-width: 280px;
            max-width: 350px;
        }
        @keyframes slideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .toast.removing {
            animation: slideOut 0.3s ease-in forwards;
        }
        @keyframes slideOut {
            to {
                transform: translateY(-20px);
                opacity: 0;
            }
        }
        .pattern-dots {
            background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
            background-size: 25px 25px;
        }

/************* fin toaster *************/
/************* author card *************/

 .main-container {
            min-height: 120vh;
            display: flex;
            flex-direction: column;
        }
        
        .hero-section {
            flex: 1;
            display: flex;
            align-items: center;
            min-height: 85vh;
        }
        
        .pokemon-logo {
            font-family: 'Flexo', Arial, sans-serif;
            font-weight: 800;
            text-shadow: 
                -2px -2px 0 #2563eb,
                2px -2px 0 #2563eb,
                -2px 2px 0 #2563eb,
                2px 2px 0 #2563eb,
                4px 4px 0 rgba(0,0,0,0.2);
            letter-spacing: -2px;
        }
        
        .green-gradient {
            background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .glass-dark {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .leaf-pattern {
            opacity: 0.1;
        }
        
        .floating {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(2deg); }
        }
        
        .type-badge {
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .type-badge:hover {
            transform: scale(1.1);
        }
        
        .details-btn {
            transition: all 0.3s ease;
        }
        
        .details-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }
        
        .social-icon {
            transition: all 0.3s ease;
        }
        
        .social-icon:hover {
            transform: translateY(-3px);
        }
        
        .curved-bottom {
            border-radius: 0 0 50% 50% / 0 0 15% 15%;
        }
        
        .type-icon {
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .type-icon:hover {
            transform: scale(1.2);
        }

/************** fin author card *************/

/************** profile card *************/
.card-dark {
            background: rgba(20, 24, 38, 0.9);
            backdrop-filter: blur(20px);
            border: 1px solid var( --cw-border);
        }
        .neon-purple {
            background: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
            box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);

        }
        .neon-cyan {
            background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
            box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
        }
        .neon-gold {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
        }
        .neon-pink {
            background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
            box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
        }
        .neon-green {
            background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); 
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
        }
        
        /* Level Ring Animation */
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .level-ring {
            position: relative;
            width: 120px;
            height: 120px;
        }
        
        .level-ring-progress {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: conic-gradient(
            from 0deg,
            #22c55e 0deg,         
            #8b5cf6 var(--progress),  
            transparent var(--progress)
            );
            animation: rotate 3s ease-in-out;
        }
        
        .level-ring-inner {
            position: absolute;
            top: 8px;
            left: 8px;
            width: calc(100% - 16px);
            height: calc(100% - 16px);
            border-radius: 50%;
            background: rgba(10, 20, 15, 0.95);
        }
        
        .xp-bar {
            background: linear-gradient(90deg, #22c55e 0%, #8b5cf6 100%);
            height: 8px;
            border-radius: 10px;
            position: relative;
            overflow: hidden;
        }
        
        .xp-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .book-card-mini {
            background: rgba(30, 34, 48, 0.6);
            border: 1px solid var( --cw-border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .book-card-mini::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var( --cw-border), transparent);
            transition: left 0.5s;
        }
        
        .book-card-mini:hover::before {
            left: 100%;
        }
        
        .book-card-mini:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(139, 92, 246, 0.5);
            box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
        }
        
        .badge {
            font-size: 0.65rem;
            padding: 3px 10px;
            border-radius: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .stat-card {
            transition: all 0.3s ease;
            position: relative;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
        }
        
        .achievement-badge {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .achievement-badge:hover {
            transform: scale(1.2) rotate(10deg);
        }
        
        .reading-streak {
            background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.9; }
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .progress-circle {
            width: 120px;
            height: 120px;
        }
        
        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .animate-in {
            animation: fadeInScale 0.5s ease-out forwards;
        }
        
        .particle {
            position: absolute;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) translateX(0); }
            50% { transform: translateY(-20px) translateX(10px); }
        }

/************** fin profile card *************/