:root {
  --bg-color: #0f0f12;
  --card-bg: #1e1f26;
  --primary: #ffd700; /* Modern Yellow */
  --accent: #00bcd4;  /* Neon Blue */
  --highlight: #ff6b35;
  --text-light: #ffffff;
  --text-muted: #b0b3ba;
  --glass: rgba(255, 255, 255, 0.08);
  --shadow-dark: rgba(0, 0, 0, 0.6);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
}

.main-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #1c1c24, #111217);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

.main-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
}

.main-header .highlight {
  color: var(--primary);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { text-shadow: 0 0 5px var(--primary); }
  100% { text-shadow: 0 0 20px var(--primary); }
}

#searchInput {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  border: none;
  background-color: #1a1a1f;
  color: var(--text-light);
  width: 80%;
  max-width: 500px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.category-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 1rem;
  background-color: #141419;
}

.category-bar button {
  padding: 0.5rem 1.3rem;
  background: #262730;
  color: var(--text-light);
  border-radius: 20px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.category-bar button:hover {
  background: var(--primary);
  color: #000;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.book-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 12px 25px var(--shadow-dark);
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.7);
}

.book-card img {
  width: 100%;
  border-radius: 12px;
  height: auto;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  width: 55px;
  height: 55px;
  background: var(--glass);
  border: none;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  color: black;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--primary);
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

.book-info {
  text-align: center;
  margin-top: 1rem;
}

.book-info h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.book-info p {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0;
}

.download-btn {
  margin-top: 0.7rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--highlight);
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.download-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.central-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #191a1e;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  box-shadow: 0 -8px 20px var(--shadow-dark);
  z-index: 1000;
}

.central-player button {
  background: var(--accent);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.central-player button:hover {
  background: var(--primary);
  color: #000;
}

#nowPlaying {
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .central-player {
    flex-direction: column;
    padding: 0.8rem;
  }

  #nowPlaying {
    font-size: 0.9rem;
  }
}
.seekbar {
  width: 100%;
  margin-top: 0.7rem;
  accent-color: var(--primary);
  background: var(--glass);
  border-radius: 4px;
  height: 6px;
  appearance: none;
  cursor: pointer;
}

.seekbar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  cursor: pointer;
  margin-top: -4px;
}

.seekbar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  cursor: pointer;
}
.library-container {
  margin-top: 1rem;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 10px var(--shadow-dark);
}

.library-container button {
  background: var(--glass);
  color: var(--text-light);
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

.library-container button:hover {
  background: var(--primary);
  color: #000;
}

/* CENTRAL PLAYER STYLING */
.central-player {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 480px;
  background: linear-gradient(145deg, #1f1f25, #15151a);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  transition: all 0.3s ease;
}

.central-player .player-left,
.central-player .player-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.central-player .player-left button,
.central-player .player-right button {
  background: var(--accent);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.central-player .player-left button:hover,
.central-player .player-right button:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.1);
}

.central-player #nowPlaying {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  flex: 1;
}

.central-player .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.3s;
}

.central-player .close-btn:hover {
  color: var(--highlight);
  transform: scale(1.2);
}

/* SEEKBAR STYLING */
.central-player .seekbar {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--primary);
  height: 5px;
  border-radius: 5px;
  appearance: none;
  cursor: pointer;
}

.central-player .seekbar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.central-player .seekbar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  cursor: pointer;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .central-player {
    flex-direction: column;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }
  .central-player #nowPlaying {
    font-size: 0.85rem;
  }
  .central-player .player-left,
  .central-player .player-right {
    gap: 0.4rem;
  }
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.7),
              0 0 15px var(--accent);
}
.category-bar button, .download-btn {
  position: relative;
  overflow: hidden;
}

.category-bar button::after, .download-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.4s;
}

.category-bar button:hover::after, .download-btn:hover::after {
  left: 0;
}
.central-player {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}
.book-info h3 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.book-card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.book-card.active {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 10px var(--accent); }
  to { box-shadow: 0 0 25px var(--accent); }
}
.play-button {
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent) inset;
}
.category-bar {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
@media (max-width: 480px) {
  .central-player .seekbar {
    height: 8px;
  }
}
.equalizer {
  display: flex;
  gap: 2px;
  height: 14px;
  align-items: flex-end;
}

.equalizer span {
  width: 3px;
  background: var(--accent);
  animation: bounce 0.6s infinite alternate;
}

.equalizer span:nth-child(2) { animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { height: 4px; }
  to { height: 14px; }
}
#nowPlaying {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
body {
  background: linear-gradient(160deg, #0f0f12, #1a1a1f);
}
.book-card {
  background: rgba(30, 31, 38, 0.8);
  backdrop-filter: blur(8px);
}
.download-btn:hover {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
#searchInput {
  background: rgba(30, 31, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

#searchInput:focus {
  box-shadow: 0 0 20px var(--primary);
  border-color: var(--primary);
}
.search-wrapper {
  position: relative;
  width: 80%;
  max-width: 500px;
  margin: 1rem auto 0;
}

.search-wrapper i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}

#searchInput {
  padding-left: 2.5rem;
}
.category-bar button {
  background: linear-gradient(145deg, #262730, #1a1a1f);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.category-bar button:hover {
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: #000;
  box-shadow: 0 0 12px var(--primary);
  transform: translateY(-3px);
}
.category-bar button.active {
  background: var(--primary);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 15px var(--primary);
}
.category-bar {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar {
  display: none;
}
body {
  background: linear-gradient(135deg, #0f0f12, #1c1c24, #0f0f12);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.search-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

#searchInput {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(25,25,30,0.7);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.category-bar button {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  background: rgba(38,39,48,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.category-bar button:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary);
}

.category-bar button.active {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px var(--accent);
}
.book-card {
  background: rgba(30,31,38,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.book-info h3 {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#nowPlaying {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.equalizer span {
  width: 3px;
  background: var(--accent);
  animation: bounce 0.6s infinite alternate;
}
.play-button:hover {
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--accent);
}
* {
  transition: all 0.25s ease;
}
/* CATEGORY BAR STRUCTURED FLEXIBLE */
.category-bar {
  display: flex;
  justify-content: center;   /* Center align */
  flex-wrap: wrap;           /* Agar line me jagah na ho to neeche wrap ho jaye */
  gap: 0.8rem;               /* Professional gap between buttons */
  padding: 1rem;
  background-color: #141419;
}

/* Buttons apne content ke hisaab se */
.category-bar button {
  flex: 0 0 auto;            /* Button jitna content hai utna hi width lega */
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: rgba(38,39,48,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  white-space: nowrap;       /* Text wrap na ho */
}

/* Hover effect (same as pehle) */
.category-bar button:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--primary);
}

.category-bar button::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.4s;
}

.category-bar button:hover::after {
  left: 0;
}

.category-bar button.active {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px var(--accent);
}

/* Favorites UI */
.open-fav-btn{
  margin-left:12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color:#000;
  border:none;
  padding:0.5rem 0.9rem;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,0.5);
}

.favorite-btn{
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding:0.35rem 0.6rem;
  border-radius:10px;
  cursor:pointer;
  transition: transform 0.15s, background 0.15s;
}
.favorite-btn[aria-pressed="true"], .favorite-btn.active{
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color:#000;
  transform: scale(1.08);
}

/* Modal */
.favorites-modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.6);
  z-index:2000;
  backdrop-filter: blur(6px);
}
.favorites-content{
  width:92%;
  max-width:520px;
  margin:6% auto;
  background: var(--card-bg);
  padding:1rem;
  border-radius:14px;
  box-shadow:0 18px 40px var(--shadow-dark);
  border:1px solid rgba(255,255,255,0.04);
}
.favorites-content h2{ color:var(--primary); text-align:center; margin:0 0 0.8rem; }
.close-fav{ float:right; background:none; border:none; font-size:18px; cursor:pointer; color:var(--text-muted); }
#favoritesList{ display:flex; flex-direction:column; gap:0.6rem; max-height:55vh; overflow:auto; padding-right:6px; }

/* favorite item row */
.favorite-item{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  background: rgba(255,255,255,0.02);
  padding:0.6rem;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.02);
}
.favorite-item .meta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.fav-thumb{ width:48px; height:48px; object-fit:cover; border-radius:8px; }
.fav-title{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; color:var(--text-light); }
.row-actions{ display:flex; gap:8px; margin-left:auto; }
.icon-btn{
  background: none; border:1px solid rgba(255,255,255,0.06);
  padding:0.35rem 0.55rem; border-radius:10px; cursor:pointer;
}
.icon-btn:hover{ transform:scale(1.06); background:linear-gradient(90deg,var(--primary),var(--accent)); color:#000; }

.fav-actions{ display:flex; justify-content:flex-end; margin-top:0.6rem; gap:8px; }
#favClearAll{ background:var(--glass); border:1px solid rgba(255,255,255,0.06); padding:0.45rem 0.8rem; border-radius:10px; cursor:pointer; }
#favClearAll:hover{ background:var(--primary); color:#000; }
/* Floating Favorites Button */
#openFavorites {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

#openFavorites:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffd633, #ffb84d);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

/* Book Card Star (Add to Favorites) */
.book-card {
  position: relative; /* so star stays inside card */
  overflow: hidden;
}

.favorite-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 215, 0, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.25s ease-in-out;
}

.favorite-btn:hover {
  transform: scale(1.15);
  background: gold;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* If book is already in favorites */
.favorite-btn.active {
  background: linear-gradient(135deg, #ffcc00, #ff6600);
  color: white;
}


/* Floating Favorites Button - Adjusted for Player */
#openFavorites {
  position: fixed;
  bottom: 100px;   /* Pehle 25px tha, ab 100px kiya */
  right: 25px;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  z-index: 1100;   /* Player (1000) se zyada rakha taaki overlap na ho */
}

#openFavorites:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffd633, #ffb84d);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}
#openFavorites {
  position: fixed;
  bottom: 1px;   /* Pehle 100px tha, ab 140px kiya */
  right: 2px;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  z-index: 1100;
}

#openFavorites:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffd633, #ffb84d);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}
#centralPlayer {
  display: none; /* by default hidden */
}


.book-card {
  position: relative;
  padding-bottom: 50px; /* space for buy button */
}

.buy-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.25s ease-in-out;
}

.buy-btn:hover {
  background: linear-gradient(135deg, #34d058, #28a745);
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.buy-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #007bff, #0056d2); /* professional blue gradient */
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 24px;   /* bigger size */
  border-radius: 28px; /* smoother rounded edges */
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 91, 187, 0.35);
  transition: all 0.25s ease-in-out;
}

.buy-btn:hover {
  background: linear-gradient(135deg, #3399ff, #0066ff); /* brighter blue on hover */
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 91, 187, 0.45);
}


/* Buy Button Styling */
button {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #111;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover {
  background: linear-gradient(135deg, #ff9900, #ff6600);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

button:active {
  transform: scale(0.95);
}


.buy-price {
  display: flex;
  align-items: center;       /* Buy button aur price ek hi line me */
  justify-content: center;   /* Center me rakhega */
  gap: 14px;                 /* Button aur price ke beech spacing */
  margin-top: 14px;          /* Download button se thoda neeche */
}

/* Current price (highlighted) */
.price-current {
  font-size: 20px;
  font-weight: 700;
  color: #ffcc00; /* Modern highlight yellow */
  background: rgba(255, 204, 0, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(255, 204, 0, 0.3);
}

/* Old price (cut) */
.price-old {
  font-size: 16px;
  font-weight: 600;
  color: #b0b0b0;
  text-decoration: line-through;
  opacity: 0.8;
}
.buy-price {
  display: flex;
  align-items: flex-end;      /* Buy button ke text baseline ke sath price align */
  justify-content: center;    /* Center position */
  gap: 18px;                  /* Button aur price ke beech clear space */
  margin-top: 16px;           /* Download button se thoda neeche */
}

/* Current price (highlighted badge) */
.price-current {
  font-size: 19px;
  font-weight: 700;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.15);
  padding: 5px 12px;
  border-radius: 12px;
  line-height: 1.2;
  box-shadow: inset 0 0 6px rgba(255, 204, 0, 0.25),
              0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px); /* Thoda upar lift kare */
}

/* Old price (crossed-out subtle) */
.price-old {
  font-size: 16px;
  font-weight: 600;
  color: #aaa;
  text-decoration: line-through;
  opacity: 0.8;
  margin-left: 6px; /* Current price se halka gap */
}
.buy-price {
  display: flex;
  align-items: center;    /* Button aur price ek hi line me */
  justify-content: center;
  gap: 10px;              /* Button aur price ke beech thoda gap */
  margin-top: 12px;       /* Download button se neeche space */
}

/* Current price */
.price-current {
  font-size: 25px;
  font-weight: 700;
  color: #ffcc00;  /* Highlighted yellow */
}

/* Old price */
.price-old {
  font-size: 22px;
  font-weight: 600;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}




.highlight-card {
  outline: 3px solid #fbc02d;
  box-shadow: 0 0 20px #fbc02d;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
}




.highlight-card {
  outline: 3px solid #fbc02d;
  box-shadow: 0 0 20px #fbc02d;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
}




/* ===========================
   SHARE BUTTON - MODERN STYLE
   =========================== */
.share-btn {
  position: absolute;       /* Book card ke respect me */
  bottom: 60px;             /* card ke bottom se upar */
  right: 12px;              /* right corner me */
  width: 50px;              /* perfect circle */
  height: 50px;
  border-radius: 50%;       /* circle shape */
  border: none;
  background: linear-gradient(135deg, #ffcc33, #ff9900); /* vibrant gradient */
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 0 10px #ffcc33 inset;
  transition: all 0.3s ease, transform 0.25s ease;
  z-index: 20;             /* hamesha play/fav ke upar */
  pointer-events: auto;
}

/* Hover effect - glow & scale */
.share-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45),
              0 0 20px #ffcc33 inset,
              0 0 30px #ff9900;
  background: linear-gradient(135deg, #ffd633, #ffb84d);
  color: #111;
}

/* Optional: pulsating animation */
.share-btn.animate {
  animation: pulseShare 1.5s infinite alternate;
}

@keyframes pulseShare {
  0% { box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 0 10px #ffcc33 inset; }
  100% { box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 0 20px #ffcc33 inset, 0 0 30px #ff9900; }
}

/* Mobile adjustment */
@media (max-width: 480px) {
  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    bottom: 55px;
    right: 10px;
  }
}
.book-card {
  position: relative; /* zaroori hai taki button card ke andar fix ho */
  overflow: hidden;  /* fancy effects ke liye */
}

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #ffdd00, #ff8800, #ff0044);
  background-size: 300% 300%;
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.8), 0 0 40px rgba(255, 68, 0, 0.6);
  transition: all 0.35s ease-in-out;
  animation: glowPulse 2s infinite alternate, gradientShift 4s ease infinite, floatBadge 3s ease-in-out infinite;
  backdrop-filter: blur(6px);
  z-index: 10;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hover Effect */
.preview-badge:hover {
  transform: scale(1.15) rotate(-2deg);
  box-shadow: 0 0 35px rgba(255, 80, 0, 1), 0 0 70px rgba(255, 0, 80, 0.9);
}

/* Glow Animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.8), 0 0 30px rgba(255, 120, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 100, 0, 1), 0 0 60px rgba(255, 0, 60, 0.95);
  }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating / Hover Wave */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Optional: Text Shine */
.preview-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(25deg) translateX(-100%);
  transition: all 0.5s ease;
  pointer-events: none;
}

.preview-badge:hover::before {
  transform: rotate(25deg) translateX(200%);
}
