:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #0a0a14 0%, #141428 50%, #16213e 100%);
  --glass-bg: rgba(15, 15, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.7);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('https://xatimg.com/image/oQ3NwUfKsSX1.jpg');
  min-height: 100vh;
}

.page-wrapper {
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background-image: 
    linear-gradient(356deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 20, 40, 0.95) 25%, rgba(15, 30, 60, 0.95) 50%, rgb(55 0 111 / 95%) 75%, rgb(0 0 0) 100%),
    url('https://xatimg.com/image/oQ3NwUfKsSX1.jpg');
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(80, 80, 150, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(200, 80, 150, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(80, 150, 200, 0.2) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* CONTAINER PRINCIPAL */
.container {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  max-width: 1771px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  width: 100%;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--secondary-gradient);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy);
}

/* SIDEBAR STĂ‚NGA */
.sidebar {
  width: 280px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 30px 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--secondary-gradient);
  border-radius: 3px;
}

.logo {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.logo img {
  max-width: 100%;
  height: auto;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 8px 0;
  padding: 15px 20px;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.sidebar ul li:hover::before {
  left: 100%;
}

.sidebar ul li:hover {
  background: var(--secondary-gradient);
  transform: translateX(10px) scale(1.02);
  box-shadow: var(--shadow-light);
}

.sidebar ul li i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
}

/* SIDEBAR TOP AUTHORS */
.sidebar-top-authors {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section-title i {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-authors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-author-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-author-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.sidebar-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-author-info {
  flex: 1;
  min-width: 0;
}

.sidebar-author-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-author-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

.sidebar-author-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sidebar-author-stats i {
  font-size: 10px;
}

/* SIDEBAR DREAPTA */
.right-sidebar {
  width: 300px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 133px;
}

.right-sidebar::-webkit-scrollbar {
  width: 6px;
}

.right-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: var(--secondary-gradient);
  border-radius: 3px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section h4 i {
  color: #ff6b9d;
}

.fantasy-item, .book-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.fantasy-item:hover, .book-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.fantasy-avatar, .book-cover {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: bold;
  overflow: hidden;
  flex-shrink: 0;
}

.book-cover {
  border-radius: 8px;
}

.fantasy-avatar img, .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fantasy-info, .book-info {
  flex: 1;
  min-width: 0;
}

.fantasy-title, .book-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fantasy-author, .book-author {
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MAIN CONTENT */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 20px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-light);
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-container {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border-radius: 25px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-container input:focus {
  outline: none;
  border-color: #ff6b9d;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.search-container input::placeholder {
  color: var(--text-secondary);
}

.search-container .search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 18px;
}

.profile-dropdown {
  position: relative;
  cursor: pointer;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--secondary-gradient);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.profile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 157, 0.5);
}

.user-points {
  background: var(--secondary-gradient);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-heavy);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu.show {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.profile-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu a:last-child {
  border-bottom: none;
}

.profile-menu a:hover {
  background: rgba(255, 107, 157, 0.2);
  transform: translateX(5px);
}

.profile-menu a i {
  margin-right: 10px;
  width: 16px;
}

/* CONTENT SECTIONS */
.content {
  flex: 1;
}

.section-container {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.section-container:hover {
  box-shadow: var(--shadow-heavy);
}

.section-container h3 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* TABS */
.tabs-container {
  margin-bottom: 20px;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border: 1px solid var(--glass-border);
}

.tab-button.active,
.tab-button:hover {
  background: var(--secondary-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* BOOK LISTS */
.book-list-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.book-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.book-list::-webkit-scrollbar {
  height: 8px;
}

.book-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.book-list::-webkit-scrollbar-thumb {
  background: var(--secondary-gradient);
  border-radius: 4px;
}

.book-scroll-container {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.book {
  min-width: 160px;
  background: var(--glass-bg);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.book:hover::before {
  opacity: 0.1;
}

.book:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.book img {
  width: 130px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: var(--transition);
}

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

.book p {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-gradient);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-light);
}

.book-badge.top {
  background: var(--accent-gradient);
}

/* NAVIGATION ARROWS */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-gradient);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-light);
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-heavy);
}

.nav-arrow-left {
  left: 15px;
}

.nav-arrow-right {
  right: 15px;
}

/* CATEGORIES */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.category-filter {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.category-filter.active,
.category-filter:hover {
  background: var(--secondary-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.category-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* RATING STARS - CORECTATE */
.rating-stars {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.star {
  color: #ffd700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.star.filled {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.star:not(.filled) {
  color: rgba(255, 255, 255, 0.3);
}

/* PAGINATION */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

#category-books .book:nth-child(n+31) {
  display: none;
}

.pagination-btn {
  padding: 10px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn.active,
.pagination-btn:hover {
  background: var(--secondary-gradient);
  color: white;
  transform: translateY(-2px);
}

.pagination-dots {
  color: var(--text-secondary);
  padding: 10px 5px;
}

/* BOOK DETAILS MODAL */
#book-details {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 600px;
  max-height: calc(100vh - 100px);
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 30px;
  box-shadow: var(--shadow-heavy);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  color: var(--text-primary);
}

#book-details::-webkit-scrollbar {
  width: 6px;
}

#book-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

#book-details::-webkit-scrollbar-thumb {
  background: var(--secondary-gradient);
  border-radius: 3px;
}

#book-details.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}

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

.close-btn {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}

.close-btn:hover {
  background: var(--secondary-gradient);
  transform: scale(1.1);
}

#book-details img {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

#book-details img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

#book-details h4 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#book-details p {
  margin: 8px 0;
  text-align: center;
  line-height: 1.6;
}

#book-details button {
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--secondary-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

#book-details button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}
/* BOOK DETAILS MODAL NOU */
.book-details-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.book-details-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    margin: 5% auto;
    padding: 27px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

.book-details-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.book-details-modal .close-modal:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.book-details-modal img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.book-details-modal h3 {
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
    color: white;
}

.book-details-modal .author {
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 16px;
  opacity: 0.9;
  font-style: italic;
    color: white;
}

/* Status car?ii */
.book-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 15px auto;
  width: fit-content;
  display: block;
  text-align: center;
}

.book-status.completed {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.book-status.ongoing {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

/* Rating container */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.rating-stars {
  display: flex;
  gap: 5px;
  font-size: 24px;
}

.rating-stars .star {
  color: #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-stars .star.filled {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
  from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.3); }
}

.rating-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

/* Descrierea car?ii */
.book-description {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border-left: 4px solid #ff6b9d;
  text-align: left;
}

.book-description p {
  color: white;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* Butoanele de ac?iune */
.book-actions {
  display: flex;
  gap: 15px;
  margin: 25px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.favorite-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.favorite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.favorite-btn.favorited {
  background: linear-gradient(135deg, #27ae60, #229954);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.favorite-btn.favorited:hover {
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.read-now-btn {
  background: linear-gradient(45deg, #ff6b9d, #c44569);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-now-btn:hover {
  background: linear-gradient(45deg, #c44569, #ff6b9d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* Stats îmbunata?ite */
.book-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

.stat {
  text-align: center;
  padding: 15px 10px;
  background: rgba(255, 107, 157, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 157, 0.2);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 157, 0.15);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.stat-number {
  font-size: 20px;
  font-weight: bold;
  color: #ff6b9d;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .book-details-modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 95%;
  }
  
  .book-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .favorite-btn, .read-now-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .book-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* FANTASY MODAL - COMPLET */
.fantasy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
}

.fantasy-modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.3s ease;
  color: var(--text-primary);
}

.fantasy-modal-content .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fantasy-modal-content .close-modal:hover {
  background: rgba(255, 107, 157, 0.2);
  color: #ff6b9d;
}

.fantasy-modal-content h3 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fantasy-modal-content .fantasy-author {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.fantasy-content {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
}

.fantasy-actions {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.like-btn {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-light);
}

.like-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.like-btn.liked {
  background: var(--accent-gradient);
}

/* LOGIN MODAL */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.login-modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-heavy);
  position: relative;
  animation: modalSlideIn 0.4s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-primary);
  transform: scale(1.2);
}

.login-form-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-primary);
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b9d;
  background: rgba(255, 255, 255, 0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.remember-me input {
  margin-right: 8px;
  accent-color: #ff6b9d;
}

.forgot-password {
  color: #ff6b9d;
  text-decoration: none;
  transition: var(--transition);
}

.forgot-password:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--secondary-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.register-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
}

.register-link a {
  color: #ff6b9d;
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

/* LOADING ANIMATION */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ff6b9d;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FOCUS STYLES */
button:focus,
input:focus,
select:focus {
  outline: 2px solid #ff6b9d;
  outline-offset: 2px;
}

/* SELECTION STYLES */
::selection {
  background: rgba(255, 107, 157, 0.3);
  color: white;
}

.member-points {
  background: var(--secondary-gradient);
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.member-points:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
/* Avatar de baza (FREE) */
.user-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(255, 107, 157);
    transition: var(--transition);
    background: var(--secondary-gradient);
}

/* Subscription Modal */
.subscription-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.subscription-modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.subscription-modal h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 30px;
  font-size: 2rem;
}

.subscription-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.plan {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.plan.vip {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.plan h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.plan.vip h3 {
  color: #ffd700;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.plan.vip .price {
  color: #ffd700;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plan li {
  padding: 8px 0;
  color: var(--text-color);
}

.plan button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.plan.vip button {
  background: #ffd700;
  color: #000;
}

.plan button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Comments Section */
.comments-section {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.comments-section h3 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.comment-form {
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  color: var(--text-color);
  font-family: inherit;
  resize: vertical;
  margin-bottom: 10px;
}

.comment-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.add-comment-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-comment-btn:hover {
  background: var(--accent-hover);
}

.comment {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.comment-author {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.comment-text {
  color: var(--text-color);
  line-height: 1.6;
}

.comment-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}


.book-badge.new {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: white;
  font-weight: bold;
  animation: pulse 2s infinite;
}

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