/* ==========================================================================
   NovaCell Bookstore (노바셀 북스토어) — Kyobo eBook Style Luxury Storefront CSS
   ========================================================================== */

:root {
  --bs-bg-deep: #060c18;
  --bs-bg-card: #0c1629;
  --bs-bg-elevated: #12203a;
  --bs-gold: #d4a359;
  --bs-gold-light: #f7d58b;
  --bs-cyan: #38bdf8;
  --bs-emerald: #10b981;
  --bs-text-main: #f8fafc;
  --bs-text-sub: #cbd5e1;
  --bs-text-muted: #94a3b8;
  --bs-border: rgba(212, 163, 89, 0.26);
  --bs-border-cyan: rgba(56, 189, 248, 0.28);
}

/* --- 1. Homepage Main Gate Section (#bookstore) --- */
.bookstore-home-section {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(212, 163, 89, 0.16), transparent 42%),
    radial-gradient(circle at 86% 80%, rgba(56, 189, 248, 0.14), transparent 45%),
    linear-gradient(180deg, #070e1c 0%, #0b162c 52%, #070e1c 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(212, 163, 89, 0.25);
  border-bottom: 1px solid rgba(212, 163, 89, 0.25);
  overflow: hidden;
}

.bookstore-gate-top {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 52px;
}

.bookstore-gate-copy .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 163, 89, 0.16);
  border: 1px solid rgba(212, 163, 89, 0.45);
  color: #f7d58b;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.bookstore-gate-copy h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  line-height: 1.18;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.bookstore-gate-copy h2 span {
  background: linear-gradient(135deg, #f7d58b 0%, #d4a359 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bookstore-gate-copy > p {
  font-size: 1.06rem;
  line-height: 1.78;
  color: #dbe7f6;
  margin: 0 0 24px;
}

.bookstore-gate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.bookstore-gate-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(15, 29, 54, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 700;
}

.bookstore-gate-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 30, 56, 0.95), rgba(10, 20, 38, 0.95));
  border: 1px solid rgba(212, 163, 89, 0.38);
  margin-bottom: 26px;
}

.bookstore-gate-price-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bookstore-gate-price-item span {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.bookstore-gate-price-item strong {
  font-size: 1.45rem;
  color: #f7d58b;
  font-weight: 850;
}

.bookstore-gate-price-divider {
  width: 1px;
  height: 38px;
  background: rgba(212, 163, 89, 0.25);
}

.bookstore-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Author Spotlight Card inside Gate */
.bookstore-author-spotlight {
  background: linear-gradient(145deg, rgba(16, 29, 54, 0.96), rgba(9, 17, 32, 0.98));
  border: 1px solid rgba(212, 163, 89, 0.42);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  position: relative;
}

.bookstore-author-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.bookstore-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4a359;
  box-shadow: 0 0 24px rgba(212, 163, 89, 0.35);
  flex-shrink: 0;
}

.bookstore-author-meta h3 {
  margin: 4px 0 6px;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
}

.bookstore-author-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.bookstore-author-degrees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.bookstore-degree-pill {
  background: rgba(7, 14, 28, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.bookstore-degree-pill strong {
  display: block;
  color: #f7d58b;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

/* 6-Book Mini Shelf inside Homepage Main Gate */
.bookstore-gate-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.bookstore-gate-shelf-header h3 {
  margin: 0;
  font-size: 1.38rem;
  color: #ffffff;
  font-weight: 800;
}

.bookstore-gate-shelf-header p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #94a3b8;
}

.bookstore-gate-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bookstore-mini-card {
  background: linear-gradient(180deg, rgba(16, 29, 53, 0.95), rgba(9, 17, 32, 0.98));
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
  color: inherit;
}

.bookstore-mini-card:hover {
  transform: translateY(-6px);
  border-color: #f7d58b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52), 0 0 22px rgba(212, 163, 89, 0.22);
}

.bookstore-mini-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1.42;
  border-radius: 10px;
  overflow: hidden;
  background: #050912;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 163, 89, 0.35);
}

.bookstore-mini-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bookstore-mini-card:hover .bookstore-mini-cover-wrap img {
  transform: scale(1.04);
}

.bookstore-mini-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(212, 163, 89, 0.6);
  color: #f7d58b;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.bookstore-mini-card h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.bookstore-mini-card .mini-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.bookstore-mini-card .mini-price {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f7d58b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookstore-mini-card .mini-cta {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(212, 163, 89, 0.16);
  border: 1px solid rgba(212, 163, 89, 0.4);
  color: #f7d58b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.bookstore-mini-card:hover .mini-cta {
  background: linear-gradient(135deg, #f7d58b, #d4a359);
  color: #081120;
}

/* --- 2. Dedicated Bookstore Page (ko/bookstore.html & en/bookstore.html) --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.bookstore-page {
  background-color: #060c18;
  color: #f8fafc;
  overflow-x: hidden;
  width: 100%;
}

.bs-page-hero,
.bs-toolbar-wrap,
.bs-catalog-section,
.bs-author-section,
.bs-library-section,
.bookstore-home-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.bs-page-hero {
  padding: 56px 0 54px;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 163, 89, 0.2), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.16), transparent 45%),
    linear-gradient(180deg, #060c18 0%, #0c172e 100%);
  border-bottom: 1px solid var(--bs-border);
  color: #ffffff;
}

.bs-page-hero .badge-tag,
.bookstore-home-section .badge-tag {
  letter-spacing: 0.04em;
  white-space: normal;
  max-width: 100%;
  line-height: 1.4;
}

.bs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.bs-hero-grid > *,
.bookstore-gate-top > *,
.bs-author-full-grid > *,
.bs-kyobo-card > * {
  min-width: 0;
  max-width: 100%;
}

.bs-hero-title {
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  font-weight: 850;
  line-height: 1.22;
  margin: 14px 0 16px;
  color: #ffffff;
  overflow-wrap: break-word;
}

.bs-hero-title span {
  background: linear-gradient(135deg, #f7d58b 0%, #d4a359 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bs-hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #dbe7f6;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

/* Bundle Promotion Card in Hero */
.bs-bundle-card {
  background: linear-gradient(145deg, #132342 0%, #0a1428 100%);
  border: 2px solid rgba(212, 163, 89, 0.65);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 163, 89, 0.18);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bs-bundle-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f7d58b, #d4a359);
  color: #081120;
  font-weight: 850;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  max-width: 100%;
  white-space: normal;
}

.bs-bundle-card h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
  color: #ffffff;
  font-weight: 850;
}

.bs-bundle-card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.bs-bundle-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(6, 12, 24, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 89, 0.28);
}

.bs-bundle-pricing del {
  color: #94a3b8;
  font-size: 0.95rem;
}

.bs-bundle-pricing strong {
  font-size: 1.75rem;
  color: #f7d58b;
  font-weight: 900;
}

.bs-bundle-pricing .discount-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Kyobo Style Filter & Search Bar */
.bs-toolbar-wrap {
  background: #091326;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 72px;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.bs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.bs-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs-cat-btn {
  background: rgba(15, 29, 54, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bs-cat-btn:hover,
.bs-cat-btn.active {
  background: linear-gradient(135deg, #f7d58b, #d4a359);
  color: #081120;
  border-color: #f7d58b;
}

.bs-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #060c18;
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  min-width: 240px;
  max-width: 100%;
  flex: 1 1 auto;
}

.bs-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  min-width: 0;
}

/* Kyobo eBook Catalog Cards */
.bs-catalog-section {
  padding: 56px 0;
  background: #060c18;
}

.bs-books-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bs-kyobo-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  gap: 32px;
  background: linear-gradient(145deg, #0d182e 0%, #091122 100%);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bs-kyobo-card:hover {
  border-color: rgba(212, 163, 89, 0.72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6), 0 0 28px rgba(212, 163, 89, 0.14);
}

/* Column 1: 3D Book Cover + Sample Preview Button */
.bs-kyobo-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bs-kyobo-cover-frame {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  border-radius: 12px;
  overflow: hidden;
  background: #040811;
  border: 1px solid rgba(212, 163, 89, 0.45);
  box-shadow: -8px 12px 28px rgba(0, 0, 0, 0.65);
  position: relative;
  cursor: pointer;
}

.bs-kyobo-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bs-kyobo-cover-frame:hover img {
  transform: scale(1.04);
}

.bs-ebook-type-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 12, 24, 0.9);
  border: 1px solid #d4a359;
  color: #f7d58b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.bs-preview-trigger-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.bs-preview-trigger-btn:hover {
  background: #38bdf8;
  color: #06101f;
}

/* Column 2: Book Info, Badges, Intro, Quick TOC Accordion */
.bs-kyobo-info-col {
  display: flex;
  flex-direction: column;
}

.bs-kyobo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.bs-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.bs-tag.gold {
  background: rgba(212, 163, 89, 0.18);
  color: #f7d58b;
  border: 1px solid rgba(212, 163, 89, 0.42);
}

.bs-tag.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.bs-tag.emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bs-kyobo-title {
  font-size: 1.55rem;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 6px;
  cursor: pointer;
}

.bs-kyobo-title:hover {
  color: #f7d58b;
}

.bs-kyobo-subtitle {
  font-size: 1rem;
  color: #7dd3fc;
  font-weight: 600;
  margin: 0 0 12px;
}

.bs-kyobo-publine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #94a3b8;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 14px;
}

.bs-kyobo-publine strong {
  color: #e2e8f0;
}

.bs-kyobo-rating {
  color: #fbbf24;
  font-weight: 800;
}

.bs-kyobo-desc {
  font-size: 0.95rem;
  line-height: 1.72;
  color: #dbe7f6;
  margin: 0 0 14px;
}

.bs-kyobo-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bs-kyobo-highlights span {
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 29, 54, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

/* Inline TOC Quick Accordion inside Card */
.bs-inline-toc-box {
  margin-top: auto;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
}

.bs-inline-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-inline-toc-header strong {
  font-size: 0.86rem;
  color: #f7d58b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bs-inline-toc-actions {
  display: flex;
  gap: 8px;
}

.bs-toc-pill-btn {
  background: rgba(212, 163, 89, 0.16);
  border: 1px solid rgba(212, 163, 89, 0.42);
  color: #f7d58b;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bs-toc-pill-btn:hover {
  background: #d4a359;
  color: #081120;
}

/* Column 3: Kyobo Price & Buy Box */
.bs-kyobo-buy-col {
  background: rgba(6, 12, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bs-price-block {
  margin-bottom: 16px;
}

.bs-price-label {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.bs-price-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: #f7d58b;
}

.bs-price-sub {
  font-size: 0.78rem;
  color: #6ee7b7;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bs-delivery-specs {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.65;
  padding: 12px 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.22);
  margin-bottom: 16px;
}

.bs-buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bs-btn-buy-now {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f7d58b 0%, #d4a359 100%);
  color: #081120;
  font-weight: 850;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 163, 89, 0.35);
}

.bs-btn-cart {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(15, 29, 54, 0.9);
  border: 1px solid rgba(212, 163, 89, 0.45);
  color: #f7d58b;
  font-weight: 750;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.bs-btn-cart.in-cart {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #6ee7b7;
}

.bs-btn-detail {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bs-btn-detail:hover {
  border-color: #38bdf8;
  color: #7dd3fc;
}

/* --- 3. Author Profile Section on Bookstore Page --- */
.bs-author-section {
  padding: 76px 0;
  background: linear-gradient(180deg, #091326 0%, #060c18 100%);
  border-top: 1px solid var(--bs-border);
  border-bottom: 1px solid var(--bs-border);
  color: #f8fafc;
}

.bs-author-full-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 42px;
  align-items: start;
}

.bs-author-profile-card {
  background: linear-gradient(145deg, #101f3c, #081122);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: 22px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
}

.bs-author-profile-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d4a359;
  margin-bottom: 18px;
  box-shadow: 0 0 32px rgba(212, 163, 89, 0.35);
}

.bs-degree-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 28px;
}

.bs-degree-step {
  background: #0b162b;
  border: 1px solid rgba(212, 163, 89, 0.32);
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

.bs-degree-step .year {
  display: inline-block;
  background: rgba(212, 163, 89, 0.18);
  color: #f7d58b;
  font-weight: 850;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.bs-degree-step h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: #ffffff;
}

.bs-degree-step p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.bs-career-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bs-career-box {
  background: #0b162b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 22px;
}

.bs-career-box h4 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #f7d58b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-career-box ul {
  margin: 0;
  padding-left: 18px;
  color: #dbe7f6;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- 4. Customer Library & Automated Email Delivery Section (#my-ebook-library) --- */
.bs-library-section {
  padding: 72px 0;
  background: #070f1f;
  color: #f8fafc;
}

.bs-library-card {
  background: linear-gradient(145deg, #0e1c36, #091224);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.bs-library-card code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.bs-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 20px;
}

.bs-lookup-form input {
  background: #060c18;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  min-width: 0;
  width: 100%;
}

.bs-modal-intro-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.bs-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- 5. Floating Kyobo Cart Bar --- */
.bs-floating-cart {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(130%);
  width: min(960px, calc(100% - 32px));
  background: rgba(10, 20, 38, 0.96);
  border: 2px solid #d4a359;
  border-radius: 18px;
  padding: 16px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(14px);
}

.bs-floating-cart.visible {
  transform: translateX(-50%) translateY(0);
}

/* --- 6. Modals (Book Detail / TOC, Page Preview, Automated Checkout, Admin Automation) --- */
.bs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bs-modal-backdrop.open {
  display: flex;
}

.bs-modal-dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  background: #0b1528;
  border: 1px solid rgba(212, 163, 89, 0.5);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.8);
  color: #f8fafc;
}

.bs-modal-header {
  padding: 20px 26px;
  background: #081020;
  border-bottom: 1px solid rgba(212, 163, 89, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bs-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.bs-modal-close {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.bs-modal-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 26px 0;
  background: #081020;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  overflow-x: auto;
}

.bs-modal-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.bs-modal-tab.active {
  color: #f7d58b;
  border-bottom-color: #d4a359;
}

.bs-modal-body {
  padding: 26px;
  overflow-y: auto;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.bs-modal-body code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.bs-toc-chapter-card {
  background: #070e1c;
  border: 1px solid rgba(212, 163, 89, 0.24);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.bs-toc-chapter-card h4 {
  margin: 0 0 8px;
  color: #f7d58b;
  font-size: 1rem;
}

.bs-toc-chapter-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1120px) {
  .bookstore-gate-top,
  .bs-hero-grid,
  .bs-author-full-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bookstore-gate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bs-kyobo-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .bs-kyobo-buy-col {
    grid-column: 1 / -1;
  }
  .bs-degree-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Unstick toolbar on mobile so it does not cover half the viewport while scrolling */
  .bs-toolbar-wrap {
    position: relative;
    top: auto;
  }
  .bs-page-hero {
    padding: 34px 0 38px;
  }
  .bs-hero-grid {
    gap: 26px;
  }
  .bs-hero-title {
    font-size: 1.78rem;
    line-height: 1.26;
  }
  .bs-hero-lead {
    font-size: 0.96rem;
    line-height: 1.68;
  }
  .bs-page-hero .btn,
  .bookstore-gate-actions .btn,
  .bs-btn-buy-now,
  .bs-btn-cart,
  .bs-btn-detail {
    width: 100% !important;
    white-space: normal;
    padding: 13px 16px;
    font-size: 0.92rem;
    line-height: 1.35;
    justify-content: center;
  }
  .bs-bundle-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .bs-bundle-card h3 {
    font-size: 1.22rem;
  }
  .bs-bundle-pricing {
    padding: 12px 14px;
    gap: 8px 12px;
  }
  .bs-bundle-pricing strong {
    font-size: 1.48rem;
  }
  .bs-category-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bs-cat-btn {
    padding: 9px 10px;
    font-size: 0.8rem;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
  .bs-search-box {
    min-width: 0;
    width: 100%;
  }
  .bookstore-gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .bookstore-author-header {
    flex-direction: column;
    text-align: center;
  }
  .bookstore-author-degrees {
    grid-template-columns: 1fr;
  }
  .bs-kyobo-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
    gap: 20px;
  }
  .bs-kyobo-cover-frame {
    max-width: 210px;
    margin: 0 auto;
  }
  .bs-kyobo-title {
    font-size: 1.3rem;
  }
  .bs-inline-toc-header {
    flex-direction: column;
    align-items: stretch;
  }
  .bs-inline-toc-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .bs-inline-toc-actions .bs-toc-pill-btn {
    text-align: center;
    padding: 7px 6px;
    font-size: 0.78rem;
  }
  .bs-degree-timeline,
  .bs-career-columns,
  .bs-lookup-form,
  .bs-form-row-2,
  .bs-modal-intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-modal-intro-grid > img {
    max-width: 170px;
    margin: 0 auto;
  }
  .bs-library-card {
    padding: 22px 16px;
  }
  .bs-floating-cart {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px 16px;
    gap: 10px;
  }
  .bs-modal-backdrop {
    padding: 10px;
  }
  .bs-modal-header {
    padding: 14px 16px;
  }
  .bs-modal-header h3 {
    font-size: 1.05rem;
  }
  .bs-modal-tabs {
    padding: 8px 12px 0;
  }
  .bs-modal-tab {
    padding: 8px 12px;
    font-size: 0.84rem;
  }
  .bs-modal-body {
    padding: 16px;
  }
}

