:root {
  --bg: #05070b;
  --bg-soft: #120d14;
  --panel: rgba(23, 15, 24, 0.92);
  --panel-light: rgba(32, 22, 31, 0.92);
  --primary: #ff4fa3;
  --primary-soft: #ff78b5;
  --secondary: #ffb4d6;
  --white: #ffffff;
  --muted: #f3d7e5;
  --accent: #ffd166;
  --gold: #d4af37;
  --gold-soft: #f5d76e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(255, 79, 163, 0.18);
  --glow: 0 0 40px rgba(255, 79, 163, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 163, 0.25), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(212, 175, 55, 0.18), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 180, 214, 0.08), transparent 40%),
    var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.page-shell { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

button, a { transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease; }
button:hover, a:hover { transform: translateY(-2px); }

.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 11, 0.75);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(255,79,163,0.08);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  box-shadow: 0 12px 26px rgba(255, 79, 163, 0.5), 0 0 20px rgba(212,175,55,0.3);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 12px 26px rgba(255,79,163,0.5), 0 0 20px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 12px 36px rgba(255,79,163,0.7), 0 0 32px rgba(212,175,55,0.5); }
}

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a, .main-nav a:visited { color: var(--muted); text-decoration: none; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0;
  border-radius: 999px; padding: 0.9rem 1.4rem; text-decoration: none; font-weight: 700;
  position: relative; overflow: hidden;
}

.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff8ac9, var(--gold));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(255, 79, 163, 0.4), 0 0 24px rgba(212,175,55,0.25);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
}

.favorite-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(10, 14, 22, 0.76);
  color: var(--white);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.favorite-toggle.active {
  background: rgba(255,79,163,0.22);
  color: #ff6bb3;
  border-color: rgba(255,79,163,0.5);
  box-shadow: 0 0 18px rgba(255,79,163,0.35);
}

.favorite-pill, .cart-pill, .support-btn {
  min-width: 52px;
}

.favorite-pill .header-icon, .cart-pill .header-icon {
  font-size: 1.1rem;
}

.support-btn {
  padding-inline: 1.15rem;
}

.save-book-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-pink { width: 320px; height: 320px; background: #ff4fa3; top: -80px; left: -60px; }
.orb-gold { width: 280px; height: 280px; background: #d4af37; bottom: -60px; right: -40px; animation-delay: 3s; }
.orb-white { width: 200px; height: 200px; background: #ffffff; top: 40%; left: 45%; opacity: 0.15; animation-delay: 6s; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,40px) scale(0.95); }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 79, 163, 0.22), transparent 26%),
              radial-gradient(circle at 80% 80%, rgba(212,175,55,0.15), transparent 26%);
  pointer-events: none; animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }

.eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,79,163,0.15), rgba(212,175,55,0.1));
  border: 1px solid rgba(255, 120, 181, 0.3);
  color: var(--gold-soft);
  border-radius: 999px; padding: 0.45rem 0.8rem;
  font-size: 0.77rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.07em; max-width: 640px;
  background: linear-gradient(135deg, #ffffff, var(--primary-soft), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShine 6s linear infinite;
  background-size: 200% 200%;
}
@keyframes textShine { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero-copy p { max-width: 620px; font-size: 1.08rem; line-height: 1.8; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 500px; }

.hero-badges { position: absolute; inset: 0; pointer-events: none; }

.badge-pill {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 0.9rem; border-radius: 999px;
  background: rgba(14, 14, 20, 0.85); border: 1px solid var(--border);
  color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(255, 79, 163, 0.15), 0 0 18px rgba(212,175,55,0.1);
  animation: floatBadge 7s ease-in-out infinite;
}
.badge-one { top: 18%; left: 4%; }
.badge-two { top: 7%; right: 4%; animation-delay: 1s; }
.badge-three { bottom: 15%; right: 10%; animation-delay: 2s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.hero-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.hero-points li::before { content: '✓'; color: var(--gold-soft); font-weight: 800; margin-right: 10px; text-shadow: 0 0 8px rgba(212,175,55,0.5); }

.glass-card {
  position: relative; width: min(100%, 420px);
  background: linear-gradient(160deg, rgba(26, 19, 25, 0.95), rgba(14, 14, 20, 0.9));
  border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow);
  border-radius: 28px; backdrop-filter: blur(10px);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.featured-book { padding: 18px; }

.book-cover {
  position: relative; min-height: 240px; display: flex; align-items: center; justify-content: center;
  border-radius: 22px; background: linear-gradient(135deg, #ff4fa3, #ff86ba, #ffd166, #d4af37);
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  background-size: 300% 300%; animation: gradShift 8s ease infinite;
}
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.book-cover.large { min-height: 300px; }
.book-cover::before { content: '"'; position: absolute; right: 16px; bottom: 14px; font-size: 4rem; opacity: 0.3; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }

.featured-meta { padding: 18px 6px 6px; }
.featured-meta p { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.featured-meta h3 { margin: 12px 0; font-size: clamp(1.3rem, 2vw, 2rem); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.price-row strong, .book-price { font-size: 1.6rem; font-weight: 800; color: var(--accent); text-shadow: 0 0 12px rgba(255,209,102,0.4); }

.mini-buy {
  border: 0; border-radius: 999px; background: rgba(255, 209, 102, 0.15);
  color: var(--accent); padding: 0.7rem 1.1rem; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(255,209,102,0.3);
}

.stats-strip { padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 16px; }
.stat-item {
  background: rgba(26, 17, 23, 0.9); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px 20px; text-align: center; transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.stat-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,79,163,0.08), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,79,163,0.2); }
.stat-item:hover::after { opacity: 1; }
.stat-item strong { display: block; font-size: clamp(1.4rem, 2vw, 2.4rem); margin-bottom: 8px; color: var(--gold-soft); }
.stat-item span { color: var(--muted); }

.library-section, .benefits-section, .book-detail-page { padding: 52px 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2, .benefits-section h2 { margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; }

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

.book-card {
  overflow: hidden; background: rgba(18, 13, 20, 0.9); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: 0 18px 40px rgba(255, 79, 163, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; position: relative;
}
.book-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,79,163,0.1), rgba(212,175,55,0.05));
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.book-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(255, 79, 163, 0.6); box-shadow: 0 24px 50px rgba(255,79,163,0.25), 0 0 30px rgba(212,175,55,0.1); }
.book-card:hover::before { opacity: 1; }

.book-badge {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.38rem 0.7rem;
  border-radius: 999px; background: rgba(255, 209, 102, 0.12); border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

.book-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.08); transition: transform 0.5s ease; }
.book-card:hover img { transform: scale(1.08); }

.book-content { padding: 18px 18px 20px; }
.book-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.category-tag, .stock-pill { display: inline-flex; align-items: center; background: rgba(255, 79, 163, 0.12); color: var(--primary-soft); border-radius: 999px; padding: 0.4rem 0.7rem; font-size: 0.7rem; font-weight: 700; }
.book-card h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.3; }
.book-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.author-line { margin: 10px 0 16px; color: var(--muted); font-size: 0.9rem; }
.meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.star-row { display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0.1em; }
.star { font-size: 1rem; color: rgba(255, 255, 255, 0.25); }
.star.filled { color: var(--accent); text-shadow: 0 0 8px rgba(255,209,102,0.5); }
.rating-copy { color: var(--muted); font-weight: 700; }
.book-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.book-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.book-footer strong { font-size: 1.4rem; color: var(--accent); }
.card-open-label { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 0.8rem; border-radius: 999px; background: rgba(255, 79, 163, 0.12); color: var(--primary-soft); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.book-footer .btn { padding: 0.7rem 1rem; }

.reviews-showcase { padding: 18px 0 0; }
.review-showcase-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: center; }
.review-copy h2 { margin: 16px 0 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; }
.floating-review-grid { position: relative; min-height: 260px; }
.floating-review {
  position: absolute; width: 230px; padding: 18px 18px 16px; border: 1px solid var(--border);
  border-radius: 22px; background: rgba(18, 13, 20, 0.86); box-shadow: 0 20px 40px rgba(255, 79, 163, 0.14);
  animation: floatCard 8s ease-in-out infinite; backdrop-filter: blur(6px);
}
.floating-review p { margin: 10px 0 14px; line-height: 1.7; color: var(--muted); }
.floating-review strong { color: var(--white); }
.bubble-one { left: 8%; top: 0; }
.bubble-two { right: 5%; top: 30%; animation-delay: 1.2s; }
.bubble-three { left: 28%; bottom: 0; animation-delay: 2.4s; }
.bubble-stars { color: var(--accent); letter-spacing: 0.12em; font-size: 0.9rem; text-shadow: 0 0 8px rgba(255,209,102,0.4); }
@keyframes floatCard {
  0%,100% { transform: translateY(0px) translateX(0px); box-shadow: 0 16px 34px rgba(255, 79, 163, 0.12); }
  50% { transform: translateY(-14px) translateX(10px); box-shadow: 0 24px 42px rgba(255, 79, 163, 0.22), 0 0 24px rgba(212,175,55,0.15); }
}

.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 22px; margin-top: 28px; }
.benefit-card {
  border: 1px solid var(--border); background: rgba(18, 13, 20, 0.9); border-radius: 24px;
  padding: 30px 22px; box-shadow: 0 16px 40px rgba(8, 15, 28, 0.3); transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(255,79,163,0.2); }
.benefit-card:hover::before { transform: scaleX(1); }
.icon {
  width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.18), rgba(212,175,55,0.12));
  font-size: 1.7rem; margin-bottom: 18px; box-shadow: 0 0 18px rgba(255,79,163,0.2);
}
.benefit-card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.benefit-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.site-footer { padding: 28px 0 80px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); }
.small-brand { margin-bottom: 12px; }

.book-detail-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 32px; padding-top: 28px; }
.book-detail-image-wrap { background: rgba(18, 13, 20, 0.9); border: 1px solid var(--border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.book-detail-image-wrap img { width: 100%; height: 560px; object-fit: cover; border-radius: 20px; }
.book-detail-copy { display: flex; flex-direction: column; gap: 16px; }
.book-detail-copy h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.3rem); letter-spacing: -0.06em; background: linear-gradient(135deg,#fff,var(--primary-soft),var(--gold-soft)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.detail-author { margin: 0; color: var(--muted); font-size: 1.08rem; }
.detail-description { margin: 0; color: var(--muted); line-height: 1.8; font-size: 1.02rem; }
.detail-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-price-row strong { font-size: clamp(2rem, 3vw, 2.7rem); color: var(--accent); text-shadow: 0 0 14px rgba(255,209,102,0.4); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.reviews-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.stat-pill { min-width: 160px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 79, 163, 0.09); border: 1px solid var(--border); transition: transform 0.3s; }
.stat-pill:hover { transform: translateY(-3px); }
.stat-pill strong { display: block; font-size: 1.5rem; color: var(--gold-soft); }
.stat-pill span { color: var(--muted); }
.review-head { margin-top: 18px; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.review-card { border: 1px solid var(--border); border-radius: 20px; background: rgba(25, 17, 22, 0.85); padding: 18px 18px 16px; transition: transform 0.3s, box-shadow 0.3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,79,163,0.15); }
.review-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-headline strong { font-size: 1rem; }
.review-stars { display: inline-flex; gap: 2px; }
.review-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.empty-review { display: flex; align-items: center; justify-content: center; min-height: 120px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; z-index: 1; width: min(760px, calc(100% - 24px));
  background: rgba(10, 17, 28, 0.98); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--shadow), 0 0 40px rgba(212,175,55,0.1); padding: 28px 24px 22px;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--white); font-size: 1.5rem; transition: transform 0.2s, background 0.2s; }
.modal-close:hover { background: rgba(255,79,163,0.2); transform: rotate(90deg); }
.modal-head h3 { margin: 10px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.payment-box { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--border); background: rgba(18, 38, 61, 0.75); }
.label { margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.payment-box h4 { margin: 0; font-size: 1.2rem; }
.qr-wrap { display: flex; align-items: center; justify-content: center; min-height: 210px; background: #fff; border-radius: 18px; padding: 12px; }
.qr-wrap img { width: 200px; height: 200px; object-fit: contain; }
.upi-note { margin: 16px 0 22px; color: var(--muted); line-height: 1.7; }
.payment-status-box { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15, 23, 42, 0.82); }
.payment-countdown { color: var(--gold-soft); font-weight: 700; }
.payment-action-row { display: flex; gap: 12px; margin-top: 12px; }
.payment-action-row.hidden, .hidden { display: none !important; }
.qr-preview-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: rgba(15, 23, 42, 0.75); }
.qr-preview-box img { width: 220px; height: 220px; object-fit: contain; background: #fff; border-radius: 16px; padding: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.order-form label, .admin-form label { display: flex; flex-direction: column; gap: 9px; color: var(--muted); font-size: 0.94rem; }
.order-form input, .order-form select, .admin-form input, .admin-form textarea {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(15, 23, 42, 0.8); color: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.order-form input:focus, .order-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,79,163,0.15); outline: none; }
.file-upload-label { margin-top: 20px; }
.file-upload-label input { padding: 0.8rem 0.9rem; }
.submit-btn { width: 100%; margin-top: 20px; }
.form-message { min-height: 22px; margin-top: 18px; color: #ffb4d6; font-weight: 600; }

.admin-body { min-height: 100vh; }
.admin-page { padding: 40px 0 80px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px; }
.summary-card { border: 1px solid var(--border); background: rgba(18, 13, 20, 0.9); border-radius: 20px; padding: 22px 20px; }
.summary-card span { display: block; color: var(--muted); margin-bottom: 14px; }
.summary-card strong { font-size: clamp(1.7rem, 3vw, 2.6rem); color: var(--gold-soft); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.admin-panel { border: 1px solid var(--border); background: rgba(18, 13, 20, 0.85); border-radius: 24px; padding: 22px; }
.panel-head h2 { margin: 0 0 18px; }
.admin-form { display: grid; gap: 16px; }
.full-width-panel { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 12px 10px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.admin-proof-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.sent-pdf-toggle { display: inline-flex; align-items: center; justify-content: center; }
.sent-pdf-toggle input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.inventory-list { display: grid; gap: 12px; }
.inventory-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(15, 23, 42, 0.7); }
.inventory-name { font-weight: 700; }
.inventory-meta { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero { padding-top: 42px; }
  .hero-grid, .review-showcase-wrap, .payment-box, .admin-grid, .benefit-grid, .stats-grid, .book-detail-hero { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero-visual { min-height: 420px; }
  .hero-copy h1 { max-width: 100%; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid, .admin-summary { grid-template-columns: 1fr 1fr; }
  .floating-review-grid { min-height: 440px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 20px, 1200px); }
  .topbar { position: sticky; }
  .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    min-height: 68px;
  }
  .brand {
    width: auto;
    justify-content: flex-start;
    flex: 1 1 auto;
  }
  .brand span:last-child {
    display: inline;
    white-space: nowrap;
  }
  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
  }
  .header-actions .btn,
  .header-actions a,
  .support-btn,
  .favorite-pill,
  .cart-pill {
    width: auto;
    min-width: 44px;
    flex: 0 0 auto;
    padding: 0.7rem 0.75rem;
  }
  .favorite-pill span:last-child,
  .cart-pill span:last-child,
  .support-btn { display: inline-flex; }
  .support-btn {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 50;
    border-radius: 999px;
    box-shadow: 0 18px 30px rgba(255,79,163,0.35);
    padding: 0.9rem 1.2rem;
  }
  .btn { width: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero { padding-top: 28px; }
  .hero-copy h1 { letter-spacing: -0.05em; font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-copy p { font-size: 1rem; }
  .hero-visual { min-height: 300px; }
  .badge-pill { font-size: 0.64rem; padding: 0.5rem 0.7rem; }
  .badge-one { top: 10%; left: 3%; }
  .badge-two { top: 4%; right: 4%; }
  .badge-three { bottom: 16%; right: 4%; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card { border-radius: 20px; }
  .book-card img { height: 230px; }
  .book-content { padding: 16px; }
  .book-footer { align-items: flex-start; flex-direction: column; }
  .field-grid, .admin-summary { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .book-detail-image-wrap img { height: 360px; }
  .floating-review { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; margin-bottom: 16px; }
  .floating-review-grid { min-height: auto; }
  .review-showcase-wrap { gap: 8px; }
}

.hero-v2 { min-height: 92vh; display: flex; align-items: center; padding: 80px 0 60px; }
.hero-v2-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.hero-v2-copy .hero-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.06em; margin: 18px 0 16px; font-weight: 900; }
.grad-text { background: linear-gradient(135deg, var(--primary), var(--gold-soft), var(--primary-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 200%; animation: textShine 5s linear infinite; }
.hero-sub { max-width: 560px; font-size: 1.12rem; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.6rem; color: var(--gold-soft); font-weight: 900; }
.hero-stat span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-v2-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.hero-card-stack { position: relative; width: min(100%, 400px); height: 500px; }
.stack-card { position: absolute; inset: 0; border-radius: 28px; border: 1px solid var(--border); backdrop-filter: blur(8px); }
.stack-back { background: linear-gradient(135deg, rgba(255,79,163,0.15), rgba(212,175,55,0.08)); transform: rotate(-6deg) translate(-18px, 14px); opacity: 0.6; }
.stack-mid { background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(255,79,163,0.08)); transform: rotate(4deg) translate(14px, -10px); opacity: 0.7; }
.hero-card-front { position: absolute; inset: 0; animation: cardFloat 6s ease-in-out infinite; }
.hero-v2 .hero-badges { position: absolute; inset: 0; pointer-events: none; }

@media (max-width: 900px) {
  .hero-v2-grid { grid-template-columns: 1fr; }
  .hero-v2 { min-height: auto; padding: 60px 0 40px; }
  .hero-v2-visual { min-height: 440px; }
  .hero-card-stack { height: 440px; }
}
@media (max-width: 560px) {
  .hero-v2-copy .hero-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero-stats { gap: 18px; }
  .hero-card-stack { height: 380px; width: 100%; }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.cart-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,79,163,0.16);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

.more-books-wrap {
  margin-top: 22px;
  text-align: center;
}

.more-books-btn {
  display: inline-flex;
  min-width: 180px;
}

.category-choice {
  padding: 48px 0 72px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.choice-card {
  display: block;
  padding: 30px 24px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(18, 13, 20, 0.9);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(255, 79, 163, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 163, 0.6);
}

.choice-card strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.choice-card span {
  color: var(--muted);
  line-height: 1.7;
}

.book-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cart-page {
  padding: 44px 0 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
}

.cart-panel,
.checkout-panel {
  background: rgba(18, 13, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
}

.cart-item h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.cart-item small {
  color: var(--muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  cursor: pointer;
}

.cart-summary-box {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--white);
  padding: 0.85rem 1rem;
}

.checkout-form textarea { resize: vertical; min-height: 120px; }

.empty-state {
  background: rgba(18, 13, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 768px) {
  .books-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .books-grid > .book-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .choice-grid,
  .cart-layout,
  .checkout-layout,
  .book-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .books-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 12px;
  }

  .books-grid > .book-card {
    flex: 0 0 240px;
  }

  .header-actions {
    gap: 8px;
  }

  .cart-pill {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.hero-graphic { position: relative; width: 360px; height: 360px; margin: 0 auto; }
.graphic-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.ring-1 { width: 360px; height: 360px; border-color: rgba(255,79,163,0.35); animation: spin 18s linear infinite; }
.ring-2 { width: 260px; height: 260px; border-color: rgba(212,175,55,0.4); animation: spin 12s linear infinite reverse; }
.ring-3 { width: 160px; height: 160px; border-color: rgba(255,180,214,0.5); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.graphic-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--gold)); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(255,79,163,0.5), 0 0 60px rgba(212,175,55,0.3); animation: corePulse 3s ease-in-out infinite; }
.graphic-core span { font-size: 2.6rem; font-weight: 900; color: #1a101c; line-height: 1; }
.graphic-core p { margin: 4px 0 0; font-size: 0.7rem; font-weight: 800; color: #1a101c; letter-spacing: 0.1em; text-transform: uppercase; }
@keyframes corePulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
.graphic-chip { position: absolute; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(18,13,20,0.85); border: 1px solid var(--border); color: var(--white); font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(6px); animation: chipFloat 6s ease-in-out infinite; }
.chip-1 { top: 8%; left: 50%; transform: translateX(-50%); }
.chip-2 { top: 50%; right: -10%; transform: translateY(-50%); animation-delay: 1s; }
.chip-3 { bottom: 8%; left: 50%; transform: translateX(-50%); animation-delay: 2s; }
.chip-4 { top: 50%; left: -10%; transform: translateY(-50%); animation-delay: 3s; }
@keyframes chipFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

@media (max-width: 560px) {
  .hero-graphic { width: 280px; height: 280px; }
  .ring-1 { width: 280px; height: 280px; }
  .ring-2 { width: 200px; height: 200px; }
  .ring-3 { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
  .topbar { backdrop-filter: blur(10px); }
  .nav-wrap { min-height: 64px; }
  .hero-v2 { min-height: auto; padding: 24px 0 18px; }
  .hero-v2-grid { gap: 18px; }
  .hero-v2-copy .eyebrow { font-size: 0.7rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn-lg { width: 100%; }
  .hero-stats { justify-content: space-between; gap: 12px; margin-top: 20px; }
  .hero-stat strong { font-size: 1.3rem; }
  .hero-badges { display: flex; flex-wrap: wrap; gap: 8px; position: static; justify-content: center; margin-top: 16px; }
  .badge-pill { position: static; animation: floatBadge 5s ease-in-out infinite; }
  .floating-review { width: 100%; position: relative; margin-bottom: 12px; }
  .floating-review-grid { min-height: auto; display: grid; gap: 12px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .book-card img { height: 180px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-wrap { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 16px, 1200px); }
  .hero-v2 { padding: 18px 0 14px; }
  .hero-v2-copy .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-v2-grid { gap: 12px; }
  .hero-graphic { width: 240px; height: 240px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 170px; height: 170px; }
  .ring-3 { width: 100px; height: 100px; }
  .graphic-core { width: 90px; height: 90px; }
  .graphic-core span { font-size: 2rem; }
  .graphic-chip { font-size: 0.68rem; padding: 0.35rem 0.65rem; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card img { height: 220px; }
  .stat-item { padding: 16px 12px; }
  .modal-panel { padding: 20px 16px; border-radius: 20px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar .btn-primary { display: none; }
}


.badge-pill { font-size: 0.62rem; padding: 0.4rem 0.6rem; }

@media (max-width: 768px) {
  .badge-pill { font-size: 0.55rem; padding: 0.3rem 0.5rem; }
}

@media (max-width: 768px) {
  .badge-pill { font-size: 0.45rem; padding: 0.2rem 0.35rem; letter-spacing: 0.04em; }
}

@media (max-width: 768px) {
  .hero *, .hero *::before, .hero *::after { animation: none !important; transition: none !important; }
  .hero-orb { display: none; }
}


@media (max-width: 768px) {
  .hero-graphic { width: 260px; height: 260px; margin: 0 auto; }
  .ring-1 { width: 260px; height: 260px; }
  .ring-2 { width: 180px; height: 180px; }
  .ring-3 { width: 110px; height: 110px; }
  .graphic-core { width: 80px; height: 80px; }
  .graphic-core span { font-size: 1.8rem; }
}

.category-section { padding: 40px 0; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.category-card { border: 1px solid var(--border); background: rgba(18, 13, 20, 0.9); border-radius: 24px; padding: 30px 22px; text-align: center; box-shadow: 0 16px 40px rgba(8, 15, 28, 0.3); transition: transform 0.3s; }
.category-card:hover { transform: translateY(-6px); }
.category-card h3 { margin: 12px 0 10px; font-size: 1.4rem; }
.category-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

.bubble-four { left: 5%; bottom: 5%; animation-delay: 3.6s; }
.bubble-five { right: 8%; top: 5%; animation-delay: 4.8s; }
.floating-review-grid { min-height: 320px; }

.bubble-six { left: 12%; top: 50%; animation-delay: 6s; }
.bubble-seven { right: 12%; bottom: 10%; animation-delay: 7.2s; }
.bubble-eight { left: 35%; top: 10%; animation-delay: 8.4s; }
.bubble-nine { right: 30%; bottom: 5%; animation-delay: 9.6s; }
.bubble-ten { left: 45%; top: 60%; animation-delay: 10.8s; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,79,163,0.18), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(212,175,55,0.16), transparent 25%),
    var(--bg);
}

.auth-shell {
  width: min(100%, 460px);
  background: rgba(17, 12, 18, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px 24px 26px;
  box-shadow: 0 20px 60px rgba(255,79,163,0.14);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.auth-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: -0.06em;
}

.auth-header p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--white);
  padding: 0.9rem 1rem;
}

.auth-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,79,163,0.14);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
}

.auth-error {
  min-height: 20px;
  color: #ffb4d6;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-nav-wrap {
  gap: 18px;
  position: relative;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: var(--white);
  background: rgba(255, 79, 163, 0.12);
}

.admin-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.admin-menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  margin: 3px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.admin-menu-toggle.open .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.admin-menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.admin-menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.admin-logout {
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .admin-nav-wrap {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }

  .brand span:last-child {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .admin-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    margin-left: auto;
  }

  .admin-nav {
    display: none;
    width: calc(100% - 24px);
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 0.7rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.34);
    z-index: 20;
  }

  .admin-nav.open {
    display: flex;
  }

  .admin-nav a {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: 12px;
  }

  .admin-logout {
    margin-left: 0;
  }
}


.book-card .author-line,
.book-card .meta-row,
.book-card p,
.book-card .book-footer,
.book-card .book-topline,
.book-card .card-open-label { display: none !important; }
.book-card .book-content { text-align: center; padding: 16px; }
.book-card h3 { font-size: 1.1rem; }

@media (max-width: 768px) {
  .books-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; }
  .book-card { flex: 0 0 70%; scroll-snap-align: start; }
}
