/* ============================================================
   WEB-EBOOKS — index.css
   Orange-Red Glassmorphic + Times New Roman
   ============================================================ */

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position:        sticky;
  top:             0;
  z-index:         500;
  background:      rgba(255,255,255,0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom:   1px solid rgba(255,100,50,0.18);
  box-shadow:      0 2px 24px rgba(255,80,20,0.08);
  padding:         0 40px;
  height:          64px;
}
.nav-container {
  max-width:   1280px;
  margin:      0 auto;
  height:      100%;
  display:     flex;
  align-items: center;
  gap:         24px;
}
.nav-logo {
  font-family:    var(--font);
  font-size:      1.45rem;
  font-weight:    700;
  font-style:     italic;
  color:          var(--ink);
  white-space:    nowrap;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--flame); font-style: normal; }

/* Search */
.nav-search-wrap { flex: 1; position: relative; max-width: 400px; }
.nav-search {
  width:           100%;
  padding:         9px 16px 9px 40px;
  border:          1px solid rgba(255,100,50,0.22);
  border-radius:   30px;
  font-size:       0.9rem;
  font-family:     var(--font-body);
  outline:         none;
  background:      rgba(255,255,255,0.70) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23c07050' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  backdrop-filter: blur(8px);
  transition:      all 0.2s;
  color:           var(--ink);
}
.nav-search:focus {
  border-color: var(--coral);
  box-shadow:   0 0 0 3px rgba(255,100,50,0.12);
  background-color: rgba(255,255,255,0.90);
}
.nav-search-results {
  position:        absolute;
  top:             calc(100% + 6px);
  left: 0; right: 0;
  background:      rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius:   var(--radius);
  box-shadow:      var(--glass-shadow-lg);
  border:          1px solid rgba(255,100,50,0.18);
  max-height:      360px;
  overflow-y:      auto;
  display:         none;
  z-index:         600;
}
.nav-search-results.open { display: block; }
.search-result-item {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     10px 14px;
  cursor:      pointer;
  transition:  background 0.15s;
  border-bottom: 1px solid rgba(255,100,50,0.10);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,100,50,0.06); }
.search-result-cover {
  width:         40px;
  height:        54px;
  object-fit:    cover;
  border-radius: 4px;
  flex-shrink:   0;
  background:    var(--blush);
  border:        1px solid rgba(255,100,50,0.15);
}
.search-result-title  { font-weight: 700; font-size: 0.875rem; color: var(--ink); font-family: var(--font); font-style: italic; }
.search-result-seller { font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; }
.search-result-price  { font-weight: 700; color: var(--flame); font-size: 0.875rem; margin-top: 3px; font-family: var(--font); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-avatar {
  width:           36px;
  height:          36px;
  border-radius:   50%;
  background:      linear-gradient(135deg, var(--flame), var(--coral));
  color:           #fff;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-weight:     700;
  font-size:       0.875rem;
  font-family:     var(--font-ui);
  cursor:          pointer;
  position:        relative;
  box-shadow:      0 2px 10px rgba(255,69,0,0.30);
}
.user-dropdown {
  position:        absolute;
  top:             calc(100% + 8px);
  right:           0;
  background:      rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius:   var(--radius);
  box-shadow:      var(--glass-shadow-lg);
  border:          1px solid rgba(255,100,50,0.18);
  min-width:       200px;
  padding:         6px 0;
  display:         none;
  z-index:         600;
}
.user-dropdown.open      { display: block; }
.user-dropdown-name      { padding: 10px 14px 2px; font-weight: 700; font-size: 0.875rem; color: var(--ink); font-family: var(--font); font-style: italic; }
.user-dropdown-email     { padding: 0 14px 10px; font-size: 0.75rem; color: var(--ink-muted); }
.dropdown-divider        { border: none; border-top: 1px solid rgba(255,100,50,0.12); margin: 3px 0; }
.dropdown-item {
  display:     block;
  width:       100%;
  padding:     9px 14px;
  background:  none;
  border:      none;
  text-align:  left;
  font-size:   0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor:      pointer;
  color:       var(--ink);
  transition:  background 0.15s;
}
.dropdown-item:hover        { background: rgba(255,100,50,0.07); color: var(--flame); }
.dropdown-item.danger       { color: var(--crimson); }
.dropdown-item.danger:hover { background: rgba(192,40,10,0.07); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position:    relative;
  min-height:  600px;
  background:  linear-gradient(145deg, #2a0a00 0%, #4a1500 40%, #6a2000 70%, #3a0e00 100%);
  overflow:    hidden;
  display:     flex;
  align-items: center;
}
.hero::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255,100,40,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,60,10,0.15)  0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,140,60,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content:    '';
  position:   absolute;
  bottom:     0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--ember), var(--coral), transparent);
}
.hero-inner {
  max-width:   1280px;
  margin:      0 auto;
  padding:     80px 40px;
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         60px;
  align-items: center;
  position:    relative;
  z-index:     1;
  width:       100%;
}
.hero-eyebrow {
  display:        flex;
  align-items:    center;
  gap:            10px;
  font-size:      0.72rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 3px;
  color:          var(--peach);
  margin-bottom:  18px;
}
.hero-eyebrow::before {
  content:    '';
  display:    inline-block;
  width:      32px;
  height:     1px;
  background: linear-gradient(90deg, var(--coral), transparent);
}
.hero-title {
  font-family:   var(--font);
  color:         #fff;
  margin-bottom: 18px;
  font-size:     clamp(2.2rem, 4.5vw, 3.8rem);
  font-style:    italic;
  font-weight:   700;
  line-height:   1.12;
}
.hero-title .highlight {
  background:              linear-gradient(135deg, var(--ember), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}
.hero-subtitle {
  color:         rgba(255,230,210,0.75);
  font-size:     1rem;
  margin-bottom: 36px;
  line-height:   1.8;
  font-family:   var(--font-body);
}
.hero-cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid rgba(255,150,80,0.20); }
.hero-stat-item { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family:             var(--font);
  font-size:               2rem;
  font-weight:             700;
  font-style:              italic;
  background:              linear-gradient(135deg, var(--ember), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
  line-height:             1;
}
.hero-stat-label {
  font-size:      0.72rem;
  font-family:    var(--font-ui);
  color:          rgba(255,200,160,0.55);
  margin-top:     4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Hero book stack */
.hero-visual { position: relative; height: 400px; }
.hero-book-stack { position: relative; width: 100%; height: 100%; }
.hero-book {
  position:        absolute;
  border-radius:   6px;
  box-shadow:      0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,120,60,0.15);
  overflow:        hidden;
  backdrop-filter: blur(2px);
}
.hero-book img { width: 100%; height: 100%; object-fit: cover; }
.hero-book-placeholder {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       2.5rem;
  background:      linear-gradient(135deg, rgba(80,20,0,0.9), rgba(120,40,0,0.8));
  color:           rgba(255,180,120,0.25);
}
.hero-book:nth-child(1) { width: 150px; height: 210px; top: 40px;  left: 20px;  transform: rotate(-7deg); z-index: 1; animation: bookFloat1 4s ease-in-out infinite; }
.hero-book:nth-child(2) { width: 170px; height: 230px; top: 20px;  left: 110px; transform: rotate(2deg);  z-index: 3; animation: bookFloat2 4s ease-in-out infinite 0.5s; }
.hero-book:nth-child(3) { width: 145px; height: 200px; top: 55px;  left: 225px; transform: rotate(-4deg); z-index: 2; animation: bookFloat1 4s ease-in-out infinite 1s; }
.hero-book:nth-child(4) { width: 135px; height: 185px; top: 195px; left: 55px;  transform: rotate(5deg);  z-index: 2; animation: bookFloat2 4s ease-in-out infinite 1.5s; }
.hero-book:nth-child(5) { width: 155px; height: 215px; top: 175px; left: 190px; transform: rotate(-3deg); z-index: 1; animation: bookFloat1 4s ease-in-out infinite 2s; }
@keyframes bookFloat1 { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-10px); } }
@keyframes bookFloat2 { 0%,100% { transform: rotate(2deg)  translateY(0); } 50% { transform: rotate(2deg)  translateY(-8px);  } }

/* ─── Marquee Strip ──────────────────────────────────────────── */
.marquee-strip {
  background:    linear-gradient(135deg, rgba(255,80,20,0.92), rgba(255,120,50,0.88));
  backdrop-filter: blur(8px);
  padding:       10px 0;
  overflow:      hidden;
  white-space:   nowrap;
  box-shadow:    0 2px 16px rgba(255,80,20,0.20);
}
.marquee-inner {
  display:   inline-flex;
  gap:       48px;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-size:      0.72rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 3px;
  color:          rgba(255,255,255,0.90);
  display:        flex;
  align-items:    center;
  gap:            14px;
}
.marquee-item::after { content: '◆'; color: rgba(255,255,255,0.45); font-size: 0.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Sponsored Brand Bar ───────────────────────────────────────── */
.sponsored-brand-bar {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             14px;
  padding:         10px 40px;
  background:      rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:   1px solid rgba(255,100,50,0.14);
  box-shadow:      0 2px 10px rgba(255,80,20,0.06);
}
.sponsored-label {
  font-size:      0.62rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2px;
  color:          var(--ink-muted);
  border:         1px solid rgba(255,100,50,0.25);
  padding:        2px 8px;
  border-radius:  20px;
  flex-shrink:    0;
}
.sponsored-brand-link {
  display:     flex;
  align-items: center;
  gap:         10px;
  text-decoration: none;
  transition:  opacity 0.2s, transform 0.2s;
}
.sponsored-brand-link:hover { opacity: 0.82; transform: scale(1.03); }
.sponsored-brand-img {
  height:      36px;
  width:       auto;
  object-fit:  contain;
  border-radius: 6px;
  filter:      drop-shadow(0 2px 6px rgba(255,80,20,0.18));
}
.sponsored-brand-name {
  font-family:  var(--font);
  font-size:    1rem;
  font-weight:  700;
  font-style:   italic;
  color:        var(--ink);
  white-space:  nowrap;
}
.sponsored-brand-url {
  font-size:   0.78rem;
  font-family: var(--font-ui);
  color:       var(--flame);
  font-weight: 600;
}
@media (max-width: 480px) {
  .sponsored-brand-url { display: none; }
  .sponsored-brand-bar { gap: 10px; padding: 8px 16px; }
}

/* ─── Categories ─────────────────────────────────────────────── */
.categories-section {
  padding:         20px 0;
  background:      rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom:   1px solid rgba(255,100,50,0.14);
  box-shadow:      0 2px 12px rgba(255,80,20,0.06);
}
.categories-scroll {
  display:    flex;
  gap:        8px;
  overflow-x: auto;
  padding:    2px 0;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  padding:         7px 18px;
  border-radius:   30px;
  border:          1px solid rgba(255,100,50,0.22);
  background:      rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  font-size:       0.82rem;
  font-family:     var(--font-ui);
  font-weight:     700;
  cursor:          pointer;
  white-space:     nowrap;
  color:           var(--ink-muted);
  transition:      all 0.18s;
  letter-spacing:  0.3px;
}
.cat-pill:hover {
  border-color: var(--coral);
  color:        var(--flame);
  background:   rgba(255,100,50,0.08);
  box-shadow:   0 2px 10px rgba(255,80,20,0.12);
}
.cat-pill.active {
  background:   linear-gradient(135deg, var(--flame), var(--coral));
  border-color: transparent;
  color:        #fff;
  box-shadow:   0 4px 14px rgba(255,69,0,0.30);
}

/* ─── Section Layout ─────────────────────────────────────────── */
.section-wrap  { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.books-section { padding: 56px 0 96px; }
.section-heading {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  margin-bottom:   28px;
  gap:             16px;
  padding-bottom:  16px;
  border-bottom:   1px solid rgba(255,100,50,0.14);
}
.section-heading-left { display: flex; flex-direction: column; gap: 4px; }
.section-label {
  font-size:      0.7rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 3px;
  color:          var(--flame);
  display:        flex;
  align-items:    center;
  gap:            8px;
}
.section-label::before { content: '◆'; font-size: 0.5rem; }
.section-heading h2 { margin: 0; font-style: italic; }
.section-sort select {
  padding:         7px 12px;
  border:          1px solid rgba(255,100,50,0.22);
  border-radius:   var(--radius-sm);
  font-size:       0.85rem;
  font-family:     var(--font-ui);
  font-weight:     600;
  cursor:          pointer;
  outline:         none;
  color:           var(--ink);
  background:      rgba(255,255,255,0.70);
  backdrop-filter: blur(8px);
  transition:      border-color 0.2s;
}
.section-sort select:focus { border-color: var(--coral); }

/* ─── Book Card ──────────────────────────────────────────────── */
.books-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap:                   24px;
}
.book-card {
  background:      rgba(255,255,255,0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius:   var(--radius);
  border:          1px solid rgba(255,100,50,0.16);
  overflow:        hidden;
  cursor:          pointer;
  transition:      all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  display:         flex;
  flex-direction:  column;
  position:        relative;
  box-shadow:      var(--glass-shadow);
}
.book-card:hover {
  transform:    translateY(-8px) rotate(0.3deg);
  box-shadow:   var(--glass-shadow-lg), 0 0 0 1px rgba(255,100,50,0.25);
  border-color: rgba(255,100,50,0.35);
  background:   rgba(255,255,255,0.80);
}
.book-card-cover {
  position:   relative;
  height:     250px;
  overflow:   hidden;
  background: linear-gradient(135deg, var(--blush-light), var(--blush));
  border-bottom: 1px solid rgba(255,100,50,0.12);
}
.book-card-cover img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-card-cover img { transform: scale(1.06); }
.book-card-cover-placeholder {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       3rem;
  background:      linear-gradient(135deg, var(--blush-light), var(--blush));
  color:           rgba(255,100,50,0.35);
}
.book-card-tag {
  position:        absolute;
  top:             10px;
  left:            10px;
  background:      rgba(255,69,0,0.88);
  backdrop-filter: blur(6px);
  color:           #fff;
  font-size:       0.62rem;
  font-weight:     700;
  font-family:     var(--font-ui);
  padding:         3px 9px;
  border-radius:   20px;
  text-transform:  uppercase;
  letter-spacing:  1px;
  box-shadow:      0 2px 8px rgba(255,69,0,0.30);
}
.book-card-free-tag {
  position:        absolute;
  top:             10px;
  right:           10px;
  background:      rgba(45,106,45,0.85);
  backdrop-filter: blur(6px);
  color:           #fff;
  font-size:       0.62rem;
  font-weight:     700;
  font-family:     var(--font-ui);
  padding:         3px 9px;
  border-radius:   20px;
  text-transform:  uppercase;
}
.book-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.book-card-cat  {
  font-size:      0.65rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color:          var(--flame);
  margin-bottom:  5px;
}
.book-card-title {
  font-family:   var(--font);
  font-weight:   700;
  font-style:    italic;
  font-size:     1rem;
  color:         var(--ink);
  margin-bottom: 3px;
  line-height:   1.3;
  display:       -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:      hidden;
}
.book-card-seller { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 10px; }
.book-card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      auto;
  padding-top:     10px;
  border-top:      1px solid rgba(255,100,50,0.12);
}
.book-card-price {
  font-family: var(--font);
  font-size:   1.15rem;
  font-weight: 700;
  color:       var(--flame);
}
.book-card-sales { font-size: 0.72rem; color: var(--ink-muted); }

/* ─── Book Detail Modal ──────────────────────────────────────── */
.book-detail-box {
  max-width:  880px;
  padding:    0;
  overflow:   hidden;
  border-top: 3px solid var(--coral);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.book-detail-inner { display: flex; min-height: 460px; }
.book-detail-cover {
  width:        260px;
  flex-shrink:  0;
  background:   linear-gradient(135deg, var(--blush-light), var(--blush));
  border-right: 1px solid rgba(255,100,50,0.14);
  position:     relative;
}
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-cover-placeholder {
  width:           100%;
  height:          100%;
  min-height:      460px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       4.5rem;
  background:      linear-gradient(145deg, #3a0e00, #6a2000);
  color:           rgba(255,180,120,0.18);
}
.book-detail-info { flex: 1; padding: 32px; overflow-y: auto; max-height: 85vh; }
.book-detail-cat  {
  font-size:      0.68rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color:          var(--flame);
  margin-bottom:  10px;
  display:        flex;
  align-items:    center;
  gap:            8px;
}
.book-detail-cat::before { content: '◆'; font-size: 0.5rem; }
.book-detail-title  { font-family: var(--font); font-size: 1.7rem; font-weight: 700; font-style: italic; margin-bottom: 5px; color: var(--ink); line-height: 1.2; }
.book-detail-seller { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 18px; }
.book-detail-price  {
  font-family:   var(--font);
  font-size:     2.2rem;
  font-weight:   700;
  color:         var(--flame);
  margin-bottom: 18px;
  line-height:   1;
}
.book-detail-desc { font-size: 0.925rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 22px; }
.book-detail-meta {
  display:         flex;
  gap:             20px;
  margin-bottom:   22px;
  flex-wrap:       wrap;
  padding:         14px;
  background:      rgba(255,100,50,0.06);
  border:          1px solid rgba(255,100,50,0.14);
  border-radius:   var(--radius-sm);
  backdrop-filter: blur(8px);
}
.book-detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.book-detail-meta-label { font-size: 0.65rem; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-muted); }
.book-detail-meta-value { font-size: 0.875rem; font-weight: 700; color: var(--ink); font-family: var(--font); }
.book-detail-chapters   { margin-bottom: 24px; }
.book-detail-chapters h4 { margin-bottom: 10px; font-size: 0.72rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 2px; color: var(--ink-muted); border-bottom: 1px solid rgba(255,100,50,0.12); padding-bottom: 6px; }
.chapter-list-item {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       8px 0;
  border-bottom: 1px solid rgba(255,100,50,0.08);
  font-size:     0.875rem;
}
.chapter-list-item:last-child { border-bottom: none; }
.chapter-list-num  { color: var(--ink-muted); min-width: 22px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-ui); }
.chapter-list-name { flex: 1; font-weight: 600; color: var(--ink); font-style: italic; font-family: var(--font); }
.chapter-free-tag  { font-size: 0.62rem; background: rgba(45,106,45,0.12); color: #1a5c1a; padding: 2px 8px; border-radius: 20px; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; border: 1px solid rgba(45,106,45,0.22); }
.book-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  width:           38px;
  height:          38px;
  border-radius:   var(--radius-sm);
  border:          1px solid rgba(255,100,50,0.22);
  background:      rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  cursor:          pointer;
  font-size:       0.875rem;
  font-family:     var(--font-ui);
  font-weight:     700;
  color:           var(--ink-muted);
  transition:      all 0.18s;
}
.page-btn:hover  { border-color: var(--coral); color: var(--flame); background: rgba(255,100,50,0.08); }
.page-btn.active { background: linear-gradient(135deg, var(--flame), var(--coral)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(255,69,0,0.30); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background:  linear-gradient(145deg, #2a0a00 0%, #4a1500 50%, #3a0e00 100%);
  color:       rgba(255,220,190,0.75);
  padding:     64px 40px 0;
  position:    relative;
  overflow:    hidden;
}
.footer::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--ember), var(--coral), transparent);
}
.footer::after {
  content:    '';
  position:   absolute;
  top:        -100px; right: -100px;
  width:      400px; height: 400px;
  background: radial-gradient(circle, rgba(255,100,40,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.footer-container {
  max-width:             1280px;
  margin:                0 auto;
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   48px;
  padding-bottom:        48px;
  position:              relative;
  z-index:               1;
}
.footer-logo {
  font-family:   var(--font);
  font-size:     1.5rem;
  font-weight:   700;
  font-style:    italic;
  color:         #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.footer-logo span { color: var(--peach); font-style: normal; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,200,160,0.55); }
.footer-links h4 { color: var(--peach); margin-bottom: 14px; font-size: 0.7rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 2.5px; }
.footer-links a  { display: block; font-size: 0.875rem; color: rgba(255,200,160,0.55); margin-bottom: 9px; transition: color 0.2s; }
.footer-links a:hover { color: var(--peach); text-decoration: none; }
.footer-bottom {
  border-top:  1px solid rgba(255,150,80,0.10);
  padding:     18px 0;
  text-align:  center;
  max-width:   1280px;
  margin:      0 auto;
  position:    relative;
  z-index:     1;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,180,120,0.30); margin: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-search-wrap { display: none; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  .book-detail-inner { flex-direction: column; }
  .book-detail-cover { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid rgba(255,100,50,0.14); }
  .book-detail-cover-placeholder { min-height: 220px; }
  .section-wrap { padding: 0 16px; }
  .hero-inner { padding: 48px 16px; }
  .footer { padding: 48px 16px 0; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats { gap: 20px; }
  .hero-cta   { flex-direction: column; }
  .book-detail-price { font-size: 1.7rem; }
}

/* ─── Book Detail Modal ──────────────────────────────────────── */
.book-detail-box {
  max-width:       880px;
  padding:         0;
  overflow:        hidden;
  border-top:      3px solid var(--coral);
  background:      rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.book-detail-inner { display: flex; min-height: 460px; }
.book-detail-cover {
  width:        260px;
  flex-shrink:  0;
  background:   linear-gradient(135deg, var(--blush-light), var(--blush));
  border-right: 1px solid rgba(255,100,50,0.14);
}
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-cover-placeholder {
  width:           100%;
  height:          100%;
  min-height:      460px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       4.5rem;
  background:      linear-gradient(145deg, #3a0e00, #6a2000);
  color:           rgba(255,180,120,0.18);
}
.book-detail-info { flex: 1; padding: 32px; overflow-y: auto; max-height: 85vh; }
.book-detail-cat  {
  font-size:      0.68rem;
  font-weight:    700;
  font-family:    var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color:          var(--flame);
  margin-bottom:  10px;
  display:        flex;
  align-items:    center;
  gap:            8px;
}
.book-detail-cat::before { content: '◆'; font-size: 0.5rem; }
.book-detail-title  { font-family: var(--font); font-size: 1.7rem; font-weight: 700; font-style: italic; margin-bottom: 5px; color: var(--ink); line-height: 1.2; }
.book-detail-seller { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 18px; }
.book-detail-price  { font-family: var(--font); font-size: 2.2rem; font-weight: 700; color: var(--flame); margin-bottom: 18px; line-height: 1; }
.book-detail-desc   { font-size: 0.925rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 22px; }
.book-detail-meta {
  display:         flex;
  gap:             20px;
  margin-bottom:   22px;
  flex-wrap:       wrap;
  padding:         14px;
  background:      rgba(255,100,50,0.06);
  border:          1px solid rgba(255,100,50,0.14);
  border-radius:   var(--radius-sm);
}
.book-detail-meta-item  { display: flex; flex-direction: column; gap: 2px; }
.book-detail-meta-label { font-size: 0.65rem; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-muted); }
.book-detail-meta-value { font-size: 0.875rem; font-weight: 700; color: var(--ink); font-family: var(--font); }
.book-detail-chapters   { margin-bottom: 24px; }
.book-detail-chapters h4 { margin-bottom: 10px; font-size: 0.72rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 2px; color: var(--ink-muted); border-bottom: 1px solid rgba(255,100,50,0.12); padding-bottom: 6px; }
.chapter-list-item {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       8px 0;
  border-bottom: 1px solid rgba(255,100,50,0.08);
  font-size:     0.875rem;
}
.chapter-list-item:last-child { border-bottom: none; }
.chapter-list-num  { color: var(--ink-muted); min-width: 22px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-ui); }
.chapter-list-name { flex: 1; font-weight: 600; color: var(--ink); font-style: italic; font-family: var(--font); }
.chapter-free-tag  { font-size: 0.62rem; background: rgba(45,106,45,0.12); color: #1a5c1a; padding: 2px 8px; border-radius: 20px; font-weight: 700; font-family: var(--font-ui); text-transform: uppercase; border: 1px solid rgba(45,106,45,0.22); }
.book-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  width:           38px;
  height:          38px;
  border-radius:   var(--radius-sm);
  border:          1px solid rgba(255,100,50,0.22);
  background:      rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  cursor:          pointer;
  font-size:       0.875rem;
  font-family:     var(--font-ui);
  font-weight:     700;
  color:           var(--ink-muted);
  transition:      all 0.18s;
}
.page-btn:hover  { border-color: var(--coral); color: var(--flame); background: rgba(255,100,50,0.08); }
.page-btn.active { background: linear-gradient(135deg, var(--flame), var(--coral)); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(255,69,0,0.30); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(145deg, #2a0a00 0%, #4a1500 50%, #3a0e00 100%);
  color:      rgba(255,220,190,0.75);
  padding:    64px 40px 0;
  position:   relative;
  overflow:   hidden;
}
.footer::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--ember), var(--coral), transparent);
}
.footer::after {
  content:    '';
  position:   absolute;
  top: -100px; right: -100px;
  width:      400px; height: 400px;
  background: radial-gradient(circle, rgba(255,100,40,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.footer-container {
  max-width:             1280px;
  margin:                0 auto;
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   48px;
  padding-bottom:        48px;
  position:              relative;
  z-index:               1;
}
.footer-logo { font-family: var(--font); font-size: 1.5rem; font-weight: 700; font-style: italic; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--peach); font-style: normal; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,200,160,0.55); }
.footer-links h4 { color: var(--peach); margin-bottom: 14px; font-size: 0.7rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 2.5px; }
.footer-links a  { display: block; font-size: 0.875rem; color: rgba(255,200,160,0.55); margin-bottom: 9px; transition: color 0.2s; }
.footer-links a:hover { color: var(--peach); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,150,80,0.10);
  padding:    18px 0;
  text-align: center;
  max-width:  1280px;
  margin:     0 auto;
  position:   relative;
  z-index:    1;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,180,120,0.30); margin: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-search-wrap { display: none; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  .book-detail-inner { flex-direction: column; }
  .book-detail-cover { width: 100%; height: 220px; border-right: none; border-bottom: 1px solid rgba(255,100,50,0.14); }
  .book-detail-cover-placeholder { min-height: 220px; }
  .section-wrap { padding: 0 16px; }
  .hero-inner { padding: 48px 16px; }
  .footer { padding: 48px 16px 0; }
  .footer-container { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats { gap: 20px; }
  .hero-cta   { flex-direction: column; }
  .book-detail-price { font-size: 1.7rem; }
}

/* ─── Brand Logo ─────────────────────────────────────────────── */

/* Navbar logo */
.nav-logo-img {
  height:      42px;
  width:       auto;
  display:     block;
  object-fit:  contain;
  filter:      drop-shadow(0 2px 6px rgba(255,80,20,0.18));
  transition:  filter var(--transition), transform var(--transition);
}
.nav-logo:hover .nav-logo-img {
  filter:    drop-shadow(0 4px 12px rgba(255,80,20,0.32));
  transform: scale(1.03);
}

/* Hero right-side logo display */
.hero-logo-display {
  display:         flex;
  align-items:     center;
  justify-content: center;
  height:          100%;
  width:           100%;
  position:        relative;
}
.hero-logo-display::before {
  content:       '';
  position:      absolute;
  inset:         -40px;
  background:    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255,120,50,0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation:     logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { opacity: 0.6; transform: scale(1);    }
  50%     { opacity: 1.0; transform: scale(1.06); }
}
.hero-logo-img {
  max-width:   420px;
  max-height:  380px;
  width:       100%;
  height:      auto;
  object-fit:  contain;
  filter:
    drop-shadow(0 8px 32px rgba(255,80,20,0.35))
    drop-shadow(0 2px 8px  rgba(0,0,0,0.40));
  animation:   heroLogoFloat 4s ease-in-out infinite;
  position:    relative;
  z-index:     1;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateY(0px);   }
  50%     { transform: translateY(-12px); }
}

/* Footer logo */
.footer-logo-img {
  height:      52px;
  width:       auto;
  object-fit:  contain;
  margin-bottom: 14px;
  display:     block;
  filter:
    brightness(1.15)
    drop-shadow(0 2px 8px rgba(255,100,40,0.30));
}

/* ─── Hero Orbit Scene ───────────────────────────────────────── */
.hero-orbit-scene {
  position:        relative;
  width:           420px;
  height:          420px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto;
}

/* Outer ambient glow */
.orbit-glow-ring {
  position:      absolute;
  inset:         -30px;
  border-radius: 50%;
  background:    radial-gradient(ellipse at center,
    rgba(255,100,40,0.18) 0%,
    rgba(255,60,10,0.10)  40%,
    transparent           70%);
  animation:     orbitGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbitGlowPulse {
  0%,100% { opacity: 0.7; transform: scale(1);    }
  50%     { opacity: 1.0; transform: scale(1.08); }
}

/* Orbit track rings */
.orbit-track {
  position:      absolute;
  border-radius: 50%;
  border:        1px dashed rgba(255,120,60,0.20);
  pointer-events: none;
}
.orbit-track-1 {
  width:  260px;
  height: 260px;
  animation: trackSpin 0.5s linear infinite;
  animation-play-state: paused;
}
.orbit-track-2 {
  width:  380px;
  height: 380px;
}

/* Center logo circle */
.orbit-center {
  position:        absolute;
  width:           160px;
  height:          160px;
  border-radius:   50%;
  background:      rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:          2px solid rgba(255,140,60,0.35);
  box-shadow:
    0 0 0 8px  rgba(255,100,40,0.08),
    0 0 0 16px rgba(255,100,40,0.04),
    0 8px 40px rgba(255,80,20,0.30),
    inset 0 1px 0 rgba(255,255,255,0.20);
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         10;
  animation:       centerFloat 4s ease-in-out infinite;
}
@keyframes centerFloat {
  0%,100% { transform: translateY(0px)   scale(1);    box-shadow: 0 0 0 8px rgba(255,100,40,0.08), 0 0 0 16px rgba(255,100,40,0.04), 0 8px 40px rgba(255,80,20,0.30), inset 0 1px 0 rgba(255,255,255,0.20); }
  50%     { transform: translateY(-8px)  scale(1.02); box-shadow: 0 0 0 10px rgba(255,100,40,0.12), 0 0 0 20px rgba(255,100,40,0.06), 0 16px 56px rgba(255,80,20,0.40), inset 0 1px 0 rgba(255,255,255,0.20); }
}
.orbit-center-ring {
  position:      absolute;
  inset:         -6px;
  border-radius: 50%;
  border:        1.5px solid rgba(255,160,80,0.30);
  animation:     ringRotate 8s linear infinite;
  pointer-events: none;
}
.orbit-center-ring::before {
  content:       '';
  position:      absolute;
  top:           -3px;
  left:          50%;
  transform:     translateX(-50%);
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    var(--coral);
  box-shadow:    0 0 8px rgba(255,100,50,0.80);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.orbit-logo-img {
  width:       120px;
  height:      120px;
  object-fit:  contain;
  border-radius: 50%;
  filter:      drop-shadow(0 2px 8px rgba(255,80,20,0.40));
}

/* ─── Orbit Items ────────────────────────────────────────────── */
.orbit-item {
  position:   absolute;
  top:        50%;
  left:       50%;
  width:      0;
  height:     0;
  z-index:    5;
}

/* Inner orbit — radius 130px, 3 items, 120deg apart */
.orbit-1 { animation: orbit1Spin 10s linear infinite; }
.orbit-1.pos-1 { animation-delay:   0s; }
.orbit-1.pos-2 { animation-delay:  -3.33s; }
.orbit-1.pos-3 { animation-delay:  -6.66s; }

/* Outer orbit — radius 190px, 4 items, 90deg apart, slower */
.orbit-2 { animation: orbit2Spin 16s linear infinite; }
.orbit-2.pos-4 { animation-delay:   0s; }
.orbit-2.pos-5 { animation-delay:  -4s; }
.orbit-2.pos-6 { animation-delay:  -8s; }
.orbit-2.pos-7 { animation-delay: -12s; }

@keyframes orbit1Spin {
  from { transform: rotate(0deg)   translateX(130px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}
@keyframes orbit2Spin {
  from { transform: rotate(0deg)   translateX(190px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(190px) rotate(-360deg); }
}

/* ─── Orbit Book Cards ───────────────────────────────────────── */
.orbit-book {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             5px;
  background:      rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:          1px solid rgba(255,140,60,0.30);
  border-radius:   10px;
  padding:         8px 7px 6px;
  box-shadow:
    0 4px 16px rgba(255,80,20,0.20),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform:       translate(-50%, -50%);
  transition:      box-shadow 0.3s, transform 0.3s;
  cursor:          default;
  min-width:       52px;
}
.orbit-book:hover {
  box-shadow:
    0 8px 28px rgba(255,80,20,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.20);
}
.orbit-book-sm {
  padding:    6px 5px 5px;
  min-width:  44px;
  border-radius: 8px;
}
.orbit-book-label {
  font-family:    var(--font-ui);
  font-size:      0.55rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color:          rgba(255,220,180,0.90);
  white-space:    nowrap;
  line-height:    1;
}

/* Responsive — hide orbit on small screens */
@media (max-width: 1024px) {
  .hero-orbit-scene { width: 340px; height: 340px; }
  .orbit-track-1    { width: 210px; height: 210px; }
  .orbit-track-2    { width: 310px; height: 310px; }
  .orbit-center     { width: 130px; height: 130px; }
  .orbit-logo-img   { width: 96px; height: 96px; }
  @keyframes orbit1Spin {
    from { transform: rotate(0deg)   translateX(105px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(105px) rotate(-360deg); }
  }
  @keyframes orbit2Spin {
    from { transform: rotate(0deg)   translateX(155px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(155px) rotate(-360deg); }
  }
}
@media (max-width: 768px) {
  .hero-visual { display: none; }
}

/* ─── Hero Orbit Scene ───────────────────────────────────────── */
.hero-orbit-scene {
  position:        relative;
  width:           460px;
  height:          460px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto;
}

/* Ambient glow */
.orbit-glow-ring {
  position:      absolute;
  inset:         -40px;
  border-radius: 50%;
  background:    radial-gradient(ellipse at center,
    rgba(255,100,40,0.20) 0%,
    rgba(255,60,10,0.10)  45%,
    transparent           70%);
  animation:     orbitGlowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbitGlowPulse {
  0%,100% { opacity: 0.65; transform: scale(1);    }
  50%     { opacity: 1.00; transform: scale(1.10); }
}

/* Orbit track rings */
.orbit-track {
  position:      absolute;
  border-radius: 50%;
  border:        1px dashed rgba(255,120,60,0.18);
  pointer-events: none;
}
.orbit-track-1 { width: 280px; height: 280px; }
.orbit-track-2 { width: 410px; height: 410px; }

/* Center logo circle — large */
.orbit-center {
  position:        absolute;
  width:           210px;
  height:          210px;
  border-radius:   50%;
  background:      rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:          2px solid rgba(255,150,70,0.38);
  box-shadow:
    0 0 0 10px  rgba(255,100,40,0.07),
    0 0 0 22px  rgba(255,100,40,0.03),
    0 12px 56px rgba(255,80,20,0.35),
    inset 0 1px 0 rgba(255,255,255,0.22);
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         10;
  animation:       centerFloat 4s ease-in-out infinite;
}
@keyframes centerFloat {
  0%,100% { transform: translateY(0px);  }
  50%     { transform: translateY(-10px); }
}

/* Spinning accent ring around logo */
.orbit-center-ring {
  position:      absolute;
  inset:         -8px;
  border-radius: 50%;
  border:        1.5px solid rgba(255,160,80,0.28);
  animation:     ringRotate 9s linear infinite;
  pointer-events: none;
}
.orbit-center-ring::before {
  content:       '';
  position:      absolute;
  top:           -4px;
  left:          50%;
  transform:     translateX(-50%);
  width:         8px;
  height:        8px;
  border-radius: 50%;
  background:    var(--coral);
  box-shadow:    0 0 10px rgba(255,100,50,0.90);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.orbit-logo-img {
  width:         170px;
  height:        170px;
  object-fit:    contain;
  border-radius: 50%;
  filter:        drop-shadow(0 4px 16px rgba(255,80,20,0.45));
}

/* ─── Orbit Items ────────────────────────────────────────────── */
.orbit-item {
  position: absolute;
  top:      50%;
  left:     50%;
  width:    0;
  height:   0;
  z-index:  5;
}

/* Inner orbit — 3 items */
.orbit-1       { animation: orbit1Spin 11s linear infinite; }
.orbit-1.pos-1 { animation-delay:  0s; }
.orbit-1.pos-2 { animation-delay: -3.67s; }
.orbit-1.pos-3 { animation-delay: -7.33s; }

/* Outer orbit — 4 items */
.orbit-2       { animation: orbit2Spin 18s linear infinite; }
.orbit-2.pos-4 { animation-delay:  0s; }
.orbit-2.pos-5 { animation-delay: -4.5s; }
.orbit-2.pos-6 { animation-delay: -9s; }
.orbit-2.pos-7 { animation-delay: -13.5s; }

@keyframes orbit1Spin {
  from { transform: rotate(0deg)   translateX(140px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}
@keyframes orbit2Spin {
  from { transform: rotate(0deg)   translateX(205px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(205px) rotate(-360deg); }
}

/* ─── Orbit Book — small circle ─────────────────────────────── */
.orbit-book {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             4px;
  width:           46px;
  height:          46px;
  border-radius:   50%;
  background:      rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:          1.5px solid rgba(255,140,60,0.38);
  box-shadow:
    0 4px 14px rgba(255,80,20,0.22),
    inset 0 1px 0 rgba(255,255,255,0.20);
  transform:       translate(-50%, -50%);
  transition:      box-shadow 0.3s, background 0.3s, transform 0.3s;
  cursor:          default;
}
.orbit-book:hover {
  background:  rgba(255,255,255,0.26);
  box-shadow:  0 6px 22px rgba(255,80,20,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
  transform:   translate(-50%, -50%) scale(1.15);
}
.orbit-book-sm {
  width:  36px;
  height: 36px;
}
.orbit-book svg { display: block; flex-shrink: 0; }
.orbit-book-label {
  font-family:    var(--font-ui);
  font-size:      0.48rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color:          rgba(255,220,180,0.92);
  white-space:    nowrap;
  line-height:    1;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-orbit-scene { width: 360px; height: 360px; }
  .orbit-track-1    { width: 220px; height: 220px; }
  .orbit-track-2    { width: 330px; height: 330px; }
  .orbit-center     { width: 165px; height: 165px; }
  .orbit-logo-img   { width: 130px; height: 130px; }
  @keyframes orbit1Spin {
    from { transform: rotate(0deg)   translateX(110px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
  }
  @keyframes orbit2Spin {
    from { transform: rotate(0deg)   translateX(165px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(165px) rotate(-360deg); }
  }
}
@media (max-width: 768px) {
  .hero-visual { display: none; }
}

/* ─── Remove circles from orbit books — raw SVG only ────────── */
.orbit-book {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             4px;
  width:           auto;
  height:          auto;
  border-radius:   0;
  background:      none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border:          none;
  box-shadow:      none;
  transform:       translate(-50%, -50%);
  transition:      transform 0.3s, filter 0.3s;
  cursor:          default;
  padding:         0;
  min-width:       unset;
}
.orbit-book:hover {
  background:  none;
  box-shadow:  none;
  border:      none;
  transform:   translate(-50%, -50%) scale(1.18);
  filter:      drop-shadow(0 4px 10px rgba(255,100,40,0.55));
}
.orbit-book svg {
  display:    block;
  filter:     drop-shadow(0 2px 6px rgba(255,80,20,0.35));
  transition: filter 0.3s;
}
.orbit-book:hover svg {
  filter: drop-shadow(0 4px 12px rgba(255,100,40,0.65));
}
.orbit-book-sm {
  width:  auto;
  height: auto;
  border-radius: 0;
  padding: 0;
}
.orbit-book-label {
  font-family:    var(--font-ui);
  font-size:      0.52rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color:          rgba(255,220,170,0.90);
  white-space:    nowrap;
  line-height:    1;
  text-shadow:    0 1px 4px rgba(0,0,0,0.40);
}

/* ─── Orbit book override — no circle, raw SVG + label ──────── */
.orbit-book,
.orbit-book-sm {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             5px;
  width:           auto;
  height:          auto;
  border-radius:   0;
  background:      none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border:          none;
  box-shadow:      none;
  padding:         0;
  min-width:       unset;
  transform:       translate(-50%, -50%);
  transition:      transform 0.25s, filter 0.25s;
  cursor:          default;
}
.orbit-book:hover,
.orbit-book-sm:hover {
  background:  none;
  box-shadow:  none;
  border:      none;
  transform:   translate(-50%, -50%) scale(1.20);
}
.orbit-book svg,
.orbit-book-sm svg {
  display: block;
  filter:  drop-shadow(0 2px 8px rgba(255,80,20,0.38));
}
.orbit-book:hover svg,
.orbit-book-sm:hover svg {
  filter: drop-shadow(0 4px 14px rgba(255,80,20,0.60));
}
.orbit-book-label {
  font-family:    var(--font-ui);
  font-size:      0.52rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color:          rgba(255,210,160,0.92);
  white-space:    nowrap;
  line-height:    1;
  text-shadow:    0 1px 4px rgba(0,0,0,0.45);
}

/* ─── FINAL: orbit-book — no circle, flat single glassy color ── */
.orbit-book,
.orbit-book-sm {
  all:             unset;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             4px;
  background:      none !important;
  border:          none !important;
  border-radius:   0 !important;
  box-shadow:      none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding:         0 !important;
  width:           auto !important;
  height:          auto !important;
  transform:       translate(-50%, -50%);
  transition:      transform 0.25s ease, filter 0.25s ease;
  cursor:          default;
}
.orbit-book:hover,
.orbit-book-sm:hover {
  transform: translate(-50%, -50%) scale(1.18);
}
.orbit-book svg,
.orbit-book-sm svg {
  display: block;
  /* Single flat light orange-red glassy tint on all SVG shapes */
  filter:
    drop-shadow(0 2px 8px rgba(255,80,20,0.40))
    saturate(0.9)
    brightness(1.05);
}
.orbit-book:hover svg,
.orbit-book-sm:hover svg {
  filter:
    drop-shadow(0 4px 16px rgba(255,80,20,0.65))
    saturate(1.1)
    brightness(1.10);
}
/* Force all SVG rects to single flat orange-red glassy tone */
.orbit-book svg rect,
.orbit-book-sm svg rect {
  fill:   rgba(255,100,50,0.13);
  stroke: rgba(255,120,60,0.60);
}
.orbit-book svg rect:nth-child(2),
.orbit-book-sm svg rect:nth-child(2) {
  fill:   rgba(255,100,50,0.28);
  stroke: none;
}
.orbit-book svg rect:nth-child(3),
.orbit-book-sm svg rect:nth-child(3) {
  fill:   rgba(255,140,70,0.70);
  stroke: none;
}
.orbit-book svg rect:nth-child(n+4),
.orbit-book-sm svg rect:nth-child(n+4) {
  fill:   rgba(255,160,90,0.42);
  stroke: none;
}
.orbit-book-label {
  font-family:    'Times New Roman', Times, serif !important;
  font-size:      0.52rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color:          rgba(255,210,160,0.92);
  white-space:    nowrap;
  line-height:    1;
  text-shadow:    0 1px 4px rgba(0,0,0,0.50);
}

/* ═══════════════════════════════════════════════════════════════
   FINAL OVERRIDES — single flat red-orange glassy hero + circular logo
   ═══════════════════════════════════════════════════════════════ */

/* ─── Navbar logo — circular ─────────────────────────────────── */
.nav-logo {
  display:         flex;
  align-items:     center;
  justify-content: center;
  text-decoration: none;
}
.nav-logo-img {
  width:           48px !important;
  height:          48px !important;
  border-radius:   50% !important;
  object-fit:      cover !important;
  border:          2px solid rgba(207, 77, 33, 0.35);
  box-shadow:      0 2px 12px rgba(247, 66, 5, 0.22),
                   inset 0 1px 0 rgba(255, 255, 255, 0.212);
  background:      rgba(255,100,50,0.10);
  backdrop-filter: blur(8px);
  transition:      box-shadow 0.2s, transform 0.2s;
}
.nav-logo:hover .nav-logo-img {
  box-shadow: 0 4px 20px rgba(255,80,20,0.40);
  transform:  scale(1.06);
}

/* ─── Hero — single flat red-orange glassy background ────────── */
.hero {
  background:  rgba(241, 41, 27, 0.959) !important;
  position:    relative;
  min-height:  600px;
  overflow:    hidden;
  display:     flex;
  align-items: center;
}
.hero::before {
  content:         '' !important;
  position:        absolute !important;
  inset:           0 !important;
  background:      rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(2px) !important;
  pointer-events:  none !important;
}
.hero::after {
  content:    '' !important;
  position:   absolute !important;
  bottom:     0 !important;
  left:       0 !important;
  right:      0 !important;
  height:     2px !important;
  background: rgba(255,255,255,0.25) !important;
}

/* ─── Hero content text — readable on red-orange bg ─────────── */
.hero-eyebrow {
  color: rgba(255,255,255,0.85) !important;
}
.hero-eyebrow::before {
  background: rgba(255,255,255,0.60) !important;
}
.hero-title {
  color: #fff !important;
}
.hero-title .highlight {
  background:              none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  background-clip:         unset !important;
  color:                   #fff !important;
  text-shadow:             0 2px 12px rgba(0,0,0,0.20);
}
.hero-subtitle {
  color: rgba(255,255,255,0.82) !important;
}
.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.22) !important;
}
.hero-stat-num {
  background:              none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  background-clip:         unset !important;
  color:                   #fff !important;
}
.hero-stat-label {
  color: rgba(255,255,255,0.60) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ORBIT SCENE — updated for light red-orange hero background
   ═══════════════════════════════════════════════════════════════ */

/* Glow ring — white-tinted on light bg */
.orbit-glow-ring {
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.08) 40%,
    transparent            70%) !important;
}

/* Track rings — white dashed, visible on red-orange */
.orbit-track {
  border: 1.5px dashed rgba(255,255,255,0.35) !important;
}

/* Center circle — white glassy */
.orbit-center {
  background:   rgba(255,255,255,0.28) !important;
  border:       2px solid rgba(255,255,255,0.55) !important;
  box-shadow:
    0 0 0 10px  rgba(255,255,255,0.08),
    0 0 0 22px  rgba(255,255,255,0.04),
    0 12px 48px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.40) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Spinning accent ring */
.orbit-center-ring {
  border: 1.5px solid rgba(255,255,255,0.40) !important;
}
.orbit-center-ring::before {
  background: #fff !important;
  box-shadow: 0 0 10px rgba(255,255,255,0.90) !important;
}

/* Logo inside circle */
.orbit-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.20)) !important;
}

/* Orbit book SVG — dark ink on light bg, white glass card */
.orbit-book,
.orbit-book-sm {
  all:             unset !important;
  display:         flex !important;
  flex-direction:  column !important;
  align-items:     center !important;
  gap:             4px !important;
  background:      none !important;
  border:          none !important;
  box-shadow:      none !important;
  padding:         0 !important;
  transform:       translate(-50%, -50%) !important;
  transition:      transform 0.25s ease, filter 0.25s ease !important;
  cursor:          default !important;
}
.orbit-book:hover,
.orbit-book-sm:hover {
  transform: translate(-50%, -50%) scale(1.18) !important;
}

/* SVG book shapes — white glassy on red-orange bg */
.orbit-book svg rect,
.orbit-book-sm svg rect {
  fill:   rgba(255,255,255,0.22) !important;
  stroke: rgba(255,255,255,0.70) !important;
}
.orbit-book svg rect:nth-child(2),
.orbit-book-sm svg rect:nth-child(2) {
  fill:   rgba(255,255,255,0.50) !important;
  stroke: none !important;
}
.orbit-book svg rect:nth-child(3),
.orbit-book-sm svg rect:nth-child(3) {
  fill:   rgba(255,255,255,0.85) !important;
  stroke: none !important;
}
.orbit-book svg rect:nth-child(n+4),
.orbit-book-sm svg rect:nth-child(n+4) {
  fill:   rgba(255,255,255,0.55) !important;
  stroke: none !important;
}
.orbit-book svg,
.orbit-book-sm svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18)) !important;
}
.orbit-book:hover svg,
.orbit-book-sm:hover svg {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.28)) !important;
}

/* Labels — white on red-orange */
.orbit-book-label {
  color:       rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.30) !important;
  font-size:   0.54rem !important;
  font-weight: 800 !important;
}
