/* ================================================
   CROSSED HEARTS — SHARED DESIGN SYSTEM
   Dark Luxury Editorial · All Pages
   Full Responsive — All existing @media removed & rebuilt
   ================================================ */

:root {
  --ink: #080508;
  --ink-soft: #120d14;
  --ink-mid: #1e1522;
  --ink-card: #160f1a;
  --gold: #c9a84c;
  --gold-lt: #e4c97a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --rose: #c4647a;
  --rose-deep: #8b2d42;
  --ch-rose-deep: #b84060;
  --lavender: #8b7faa;
  --cream: #f0e8d8;
  --cream-soft: #c8bfb0;
  --muted: #7a6e82;
  --border: rgba(201, 168, 76, 0.18);
  --border-s: rgba(255, 255, 255, 0.06);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
  --shadow-g: 0 0 40px rgba(201, 168, 76, 0.12);
  --r: 2px;
  --r-lg: 6px;
  --font-d: "Playfair Display", serif;
  --font-s: "Cormorant Garamond", serif;
  --font-b: "DM Sans", sans-serif;
  --nav-h: 68px;
}

/* ================================================
   LIGHT MODE THEME
   ================================================ */
body.light-mode {
  --ink: #faf7f2;
  --ink-soft: #f2ece2;
  --ink-mid: #e8dfd0;
  --ink-card: #ffffff;
  --cream: #1a1018;
  --cream-soft: #3d3345;
  --muted: #8a7e96;
  --border: rgba(201, 168, 76, 0.28);
  --border-s: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-g: 0 0 40px rgba(201, 168, 76, 0.15);
}
body.light-mode {
  background: var(--ink);
  color: var(--cream);
}
body.light-mode .nav {
  background: rgba(250, 247, 242, 0.96);
}
body.light-mode .mobile-nav {
  background: rgba(250, 247, 242, 0.98);
}
body.light-mode .hero-bg {
  background:
    radial-gradient(
      ellipse at 15% 60%,
      rgba(196, 100, 122, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 20%,
      rgba(139, 127, 170, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 55% 85%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #faf7f2 0%, #f2ece2 60%, #faf7f2 100%);
}
body.light-mode .reader-wrap {
  background: #f5f0ea;
}
body.light-mode .reader-topbar {
  background: rgba(250, 247, 242, 0.97);
}
body.light-mode .search-inner {
  background: var(--ink-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
body.light-mode .search-suggestions {
  background: var(--ink-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
body.light-mode .suggestion-thumb {
  background: var(--ink-soft);
}
body.light-mode .spotlight-arrow {
  background: rgba(250, 247, 242, 0.85);
  color: var(--cream);
}
body.light-mode .spotlight-overlay {
  background: linear-gradient(
    90deg,
    rgba(250, 247, 242, 0.88) 0%,
    rgba(250, 247, 242, 0.6) 55%,
    rgba(250, 247, 242, 0.05) 100%
  );
}
body.light-mode .detail-spec {
  background: rgba(0, 0, 0, 0.03);
}
body.light-mode .card-cover::after {
  background: rgba(250, 247, 242, 0.88);
}
body.light-mode .btn-ghost {
  color: var(--cream);
  border-color: rgba(0, 0, 0, 0.2);
}
body.light-mode .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
body.light-mode .nav-burger {
  color: var(--cream);
}
body.light-mode .newsletter-section {
  background: linear-gradient(135deg, #fce8f0 0%, #f5dce8 40%, #ede4f4 100%);
  border-top: 1px solid rgba(196, 100, 122, 0.3);
  border-bottom: 1px solid rgba(139, 127, 170, 0.2);
}
body.light-mode .newsletter-section::before {
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(196, 100, 122, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(139, 127, 170, 0.08) 0%,
      transparent 55%
    );
}
body.light-mode .newsletter-section h2 {
  color: #2a0d20;
}
body.light-mode .newsletter-section h2 em {
  color: var(--rose-deep);
}
body.light-mode .newsletter-section p {
  color: #5a3a50;
}
body.light-mode .nl-input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(196, 100, 122, 0.35);
  color: #2a0d20;
}
body.light-mode .nl-input::placeholder {
  color: #a07090;
}
body.light-mode .nl-input:focus {
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
}

/* ── Chapter list light mode ── */
body.light-mode .ch-row {
  background: var(--ink-card);
  border-color: var(--border-s);
}
body.light-mode .ch-row:hover {
  background: var(--ink-mid);
  border-color: var(--border);
}
body.light-mode .ch-row.free {
  background: rgba(76, 175, 118, 0.07);
  border-color: rgba(76, 175, 118, 0.25);
}
body.light-mode .ch-row.free:hover {
  background: rgba(76, 175, 118, 0.13);
}
body.light-mode .ch-row.locked {
  opacity: 0.65;
}
body.light-mode .ch-num {
  color: var(--cream);
}
body.light-mode .ch-sub {
  color: var(--muted);
}
body.light-mode .ch-btn.buy {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
body.light-mode .ch-btn.buy:hover {
  background: var(--gold);
  color: var(--ink);
}
body.light-mode .ch-btn.read {
  background: var(--rose);
  color: white;
}
body.light-mode .ch-btn.read:hover {
  background: #d4748a;
}

/* ── Nav search button ── */
.btn-nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.22s;
  flex-shrink: 0;
}
.btn-nav-search:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: scale(1.08);
}

/* ── Nav Search Overlay ── */
.nav-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.nav-search-overlay.open {
  display: flex;
}
.nav-search-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 24px;
}
.nav-search-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.nav-search-close:hover {
  color: var(--cream);
}
.nav-search-inner {
  display: flex;
  align-items: center;
  background: var(--ink-card);
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  padding: 10px 16px 10px 22px;
  gap: 10px;
  box-shadow:
    0 0 0 4px var(--gold-dim),
    0 8px 40px rgba(0, 0, 0, 0.6);
}
.nav-search-icon {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.8;
  display: flex;
  align-items: center;
}
.nav-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--cream);
  min-width: 0;
}
.nav-search-input::placeholder {
  color: var(--muted);
}
.nav-search-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-search-clear:hover {
  color: var(--cream);
}
.nav-search-submit {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 30px;
  padding: 9px 22px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.nav-search-submit:hover {
  opacity: 0.88;
  transform: scale(1.02);
}
.nav-search-suggestions {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  margin-top: 8px;
  display: none;
}
.nav-search-suggestions.open {
  display: block;
}
.nav-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-s);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.nav-suggestion-item:last-child {
  border-bottom: none;
}
.nav-suggestion-item:hover {
  background: var(--gold-dim);
}
.nav-suggestion-thumb {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 18px;
}
.nav-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-suggestion-text {
  flex: 1;
  min-width: 0;
}
.nav-suggestion-title {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-suggestion-genre {
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--muted);
}
.nav-suggestion-price {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.nav-suggestion-empty {
  padding: 16px;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ================================================
   THEME TOGGLE
   ================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--gold);
}
.theme-toggle:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: scale(1.08);
}
.theme-toggle .icon-dark,
.theme-toggle .icon-light {
  display: none;
  line-height: 1;
}
body:not(.light-mode) .theme-toggle .icon-dark {
  display: block;
}
body.light-mode .theme-toggle .icon-light {
  display: block;
}

/* ================================================
   RESET
   ================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-b);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}
img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
a {
  text-decoration: none;
  color: inherit;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--ink-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}
@media print {
  body {
    display: none !important;
  }
}

/* ================================================
   NAV
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 32px;
  gap: 32px;
  background: rgba(8, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

/* ── NAV LOGO ── */
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-main {
  font-family: var(--font-d); /* Playfair Display */
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.nav-logo-sub {
  display: block;
  font-family: var(--font-s); /* Cormorant Garamond */
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 3px;
}

/* ── Responsive shrinks ── */
@media (max-width: 768px) {
  .nav-logo-img {
    width: 42px;
    height: 42px;
  }
  .nav-logo-main {
    font-size: 16px;
  }
  .nav-logo-sub {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }
  .nav-logo-main {
    font-size: 14px;
  }
  .nav-logo-sub {
    font-size: 7px;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 360px) {
  .nav-logo-main {
    font-size: 13px;
  }
}

.nav-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}
.nav-links .nav-cta a {
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--r);
  transition: all 0.2s;
}
.nav-links .nav-cta a:hover {
  background: var(--gold);
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-ghost {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font-b);
}
.btn-nav-ghost:hover {
  color: var(--cream);
}
.btn-nav-signin,
.btn-nav-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: 34px;
  min-width: 76px;
  padding: 8px 14px;
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
}
.btn-nav-signin {
  color: var(--ink);
  background: var(--gold);
  border: none;
  transition: background 0.2s;
  font-weight: 600;
}
.btn-nav-signin:hover {
  background: var(--gold-lt);
}
.btn-nav-register {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  transition: all 0.2s;
}
.btn-nav-register:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 20px;
  cursor: pointer;
}

/* =========================
   MOBILE NAV UPDATED LAYOUT
========================= */

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
}

/* MOBILE MENU PANEL */

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  right: -100%;
  width: min(88vw, 340px);
  height: calc(100vh - var(--nav-h));
  background: rgba(8, 5, 8, 0.98);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 20px 40px;
  gap: 2px;
  z-index: 999;
  overflow-y: auto;
  transition: right 0.35s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
}

/* OPEN STATE */

.mobile-nav.open {
  right: 0;
}

/* LINKS */

.mobile-nav a {
  padding: 14px 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-s);
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

/* SEARCH/FILTER TOP AREA */

.mobile-nav-top {
  display: flex;
  gap: 10px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-s);
  margin-bottom: 6px;
  align-items: center;
}

/* SIGN IN BUTTON */

.mobile-nav .btn-nav-signin-mobile {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: none;
  border-bottom: 1px solid var(--border-s);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-b);
}

/* OVERLAY */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 898;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* LOCK BODY */

body.mobile-nav-open {
  overflow: hidden;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .nav-links,
  .btn-nav-ghost,
  .btn-nav-signin,
  .btn-nav-register,
  .btn-nav-licenser,
  .btn-wishlist {
    display: none;
  }

  .nav-burger {
    display: block;
  }
}

/* FULLSCREEN MOBILE */

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
    right: -100%;
    border-left: none;
  }

  .mobile-nav.open {
    right: 0;
  }
}

/* ================================================
   PAGE WRAPPER
   ================================================ */
.page-body {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ================================================
   HERO — HOME
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 60%,
      rgba(196, 100, 122, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 20%,
      rgba(139, 127, 170, 0.14) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 55% 85%,
      rgba(201, 168, 76, 0.07) 0%,
      transparent 45%
    ),
    linear-gradient(180deg, #080508 0%, #120d14 60%, #080508 100%);
}
#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  animation: fadeUp 0.9s ease both;
}
.eyebrow1 {
  margin-top: 132px;
  display: block;
  font-family: var(--font-s);
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow {
  display: block;
  font-family: var(--font-s);
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(40px, 8.5vw, 100px);
  font-weight: 700;
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 24px;
  padding-top: 50px;
}
.hero-title em {
  font-style: italic;
  color: var(--rose);
}
.hero-sub {
  font-family: var(--font-s);
  font-size: clamp(15px, 2.2vw, 22px);
  color: var(--cream-soft);
  line-height: 1.7;
  margin-bottom: 44px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  padding: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-n {
  font-family: var(--font-d);
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}
.stat-l {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  animation: float 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 15px 36px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.25s;
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 15px 36px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-rose {
  display: inline-block;
  background: var(--rose);
  color: white;
  border: none;
  padding: 12px 28px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.2s;
}
.btn-rose:hover {
  background: #d4748a;
  transform: translateY(-1px);
}
.btn-full {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 12px;
}

/* ================================================
   CATEGORY STRIP
   ================================================ */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ink-soft);
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 6px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
  cursor: pointer;
}
.cat-tile:last-child {
  border-right: none;
}
.cat-tile:hover {
  background: rgba(201, 168, 76, 0.06);
}
.cat-tile-gold {
  background: rgba(201, 168, 76, 0.04);
}
.cat-tile-gold:hover {
  background: rgba(201, 168, 76, 0.1);
}
.cat-icon {
  font-size: 26px;
}
.cat-name {
  font-family: var(--font-s);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.cat-count {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
  padding: 88px 64px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-dark {
  max-width: 100%;
  background: var(--ink-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 64px;
}
.section-dark > * {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark.section {
  padding: 88px 64px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  color: var(--rose);
}
.see-all {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-left: auto;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.see-all:hover {
  opacity: 0.75;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--border);
  padding: 50px 50px 50px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(32px, 6vw, 72px);
  color: var(--cream);
  margin: 8px 0 16px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.page-hero p {
  font-family: var(--font-s);
  font-size: 18px;
  color: var(--cream-soft);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ================================================
   TITLE CARDS
   ================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.section-dark .card-grid-2 {
  grid-template-columns: repeat(4, 1fr);
}

.title-card {
  background: var(--ink-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.32s ease;
  display: block;
}
.title-card:hover {
  transform: translateY(-7px);
  border-color: var(--border);
  box-shadow: var(--shadow), var(--shadow-g);
}

.card-cover {
  position: relative;
  aspect-ratio: 2/3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

.card-cover::after {
  content: "▶ View Chapters";
}

.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.cover-text {
  font-family: var(--font-d);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
  z-index: 1;
  pointer-events: none;
}
.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r);
}
.card-badge.new {
  background: var(--rose);
  color: white;
}
.card-badge.free {
  background: #4caf76;
  color: white;
}
.card-body {
  padding: 16px;
}
.card-genre {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-price {
  font-size: 12px;
  font-weight: bold;
  color: var(--gold);
}
.card-cover::after {
  content: "▶ View Chapters";
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 8, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}
.title-card:hover .card-cover::after {
  opacity: 1;
}

/* ================================================
   PROMO BANNER
   ================================================ */
.promo-banner {
  background: var(--ink-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: "";
  position: absolute;
  left: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 100, 122, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.promo-text h2 {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 50px);
  color: var(--cream);
  line-height: 1.1;
  margin: 12px 0 20px;
}
.promo-text h2 em {
  font-style: italic;
  color: var(--gold);
}
.promo-text p {
  font-family: var(--font-s);
  font-size: 17px;
  color: var(--cream-soft);
  line-height: 1.8;
  margin-bottom: 32px;
}
.promo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promo-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 13px;
  color: var(--cream-soft);
  line-height: 1.5;
}
.feat-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.promo-feat strong {
  color: var(--cream);
  display: block;
}

/* ================================================
   FILTER BAR
   ================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 0;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 20px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ================================================
   TITLE DETAIL PAGE
   ================================================ */
.title-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.detail-cover {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-g);
}
.detail-cover-inner {
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail-cover-title {
  font-family: var(--font-d);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 24px;
  background: none;
  border: none;
  font-family: var(--font-b);
}
.detail-back:hover {
  color: var(--gold);
}
.detail-info h1 {
  font-family: var(--font-d);
  font-size: clamp(24px, 4vw, 46px);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 8px;
}
.detail-info h1 em {
  font-style: italic;
  color: var(--gold);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}
.meta-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.meta-tag.genre {
  border-color: rgba(196, 100, 122, 0.3);
  color: var(--rose);
}
.meta-tag.gold {
  border-color: var(--border);
  color: var(--gold);
}
.detail-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
}
.spec-row {
  font-size: 13px;
}
.spec-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.spec-val {
  color: var(--cream);
}
.detail-synopsis {
  font-family: var(--font-s);
  font-size: 17px;
  line-height: 1.85;
  color: var(--cream-soft);
  margin-bottom: 32px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}
.detail-synopsis em {
  font-style: italic;
  color: var(--lavender);
  display: block;
  margin-top: 14px;
  font-size: 15px;
}

/* ================================================
   CHAPTER LIST
   ================================================ */
.chapter-section h2 {
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.bundle-card {
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.07),
    rgba(201, 168, 76, 0.02)
  );
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bundle-info h3 {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 4px;
}
.bundle-info p {
  font-size: 12px;
  color: var(--muted);
}
.bundle-price-orig {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.bundle-price-final {
  font-family: var(--font-d);
  font-size: 28px;
  color: var(--gold);
  display: block;
}
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ch-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--ink-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  transition: all 0.2s;
}
.ch-row:hover {
  border-color: var(--border);
  background: var(--ink-mid);
}
.ch-row.free {
  border-color: rgba(76, 175, 118, 0.2);
  background: rgba(76, 175, 118, 0.04);
}
.ch-row.free:hover {
  background: rgba(76, 175, 118, 0.08);
}
.ch-row.locked {
  opacity: 0.8;
}
.ch-num {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--cream);
}
.ch-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.ch-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.ch-price.free-lbl {
  color: #4caf76;
}
.ch-btn {
  padding: 8px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-b);
}
.ch-btn.read {
  background: var(--rose);
  color: white;
}
.ch-btn.buy {
  background: var(--gold);
  color: var(--ink);
}
.ch-btn.read:hover {
  background: #d4748a;
}
.ch-btn.buy:hover {
  background: var(--gold-lt);
}
.ch-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.end-of-preview {
  background: var(--ink-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}
.end-of-preview h3 {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
}
.end-of-preview p {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--cream-soft);
  margin-bottom: 20px;
}

/* ================================================
   READER
   ================================================ */
.reader-wrap {
  background: #0c0c0c;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.reader-topbar {
  position: sticky;
  top: var(--nav-h);
  background: rgba(8, 5, 8, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  gap: 8px;
}
.reader-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reader-title {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--cream);
}
.reader-ch {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--gold-dim);
  border-radius: 12px;
}
.reader-nav-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-reader {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-s);
  color: var(--muted);
  padding: 7px 14px;
  font-size: 11px;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.2s;
  font-family: var(--font-b);
}
.btn-reader:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-reader:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.reader-pages {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.reader-page-wrap {
  position: relative;
  margin-bottom: 3px;
  overflow: hidden;
  border-radius: 2px;
}
.reader-page-img {
  width: 100%;
  display: block;
  pointer-events: none;
}
.reader-page-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  pointer-events: none;
}
.reader-end {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  margin-top: 32px;
}
.reader-end h3 {
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 8px;
}
.reader-end p {
  font-family: var(--font-s);
  font-size: 16px;
  color: var(--cream-soft);
  margin-bottom: 24px;
}

/* ================================================
   MY LIBRARY PAGE
   ================================================ */
.my-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.owned-card {
  background: var(--ink-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.owned-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.owned-cover {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.owned-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.owned-cover-title {
  font-family: var(--font-d);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 16px;
  pointer-events: none;
}
.owned-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(8, 5, 8, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.owned-badge-overlay .ob-label {
  color: var(--gold);
  font-weight: 600;
}
.owned-badge-overlay .ob-pct {
  color: var(--muted);
}
.owned-foot {
  padding: 16px;
}
.owned-title {
  font-family: var(--font-s);
  font-size: 14px;
  color: var(--cream);
  margin-bottom: 10px;
}
.progress-bar {
  height: 3px;
  background: var(--border-s);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 2px;
  transition: width 0.6s ease;
}
.btn-continue {
  width: 100%;
  background: var(--rose-deep);
  color: white;
  border: none;
  padding: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: background 0.2s;
  font-family: var(--font-b);
}
.btn-continue:hover {
  background: var(--rose);
}
.empty-lib {
  text-align: center;
  padding: 100px 24px;
}
.empty-lib h3 {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 12px;
}
.empty-lib p {
  font-family: var(--font-s);
  font-size: 17px;
  color: var(--cream-soft);
  margin-bottom: 28px;
}

/* ================================================
   PAYMENT / AUTH MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease both;
  padding: 36px;
}
.modal-x {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-x:hover {
  color: var(--cream);
}
.modal-title {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 4px;
}
.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.order-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 24px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-s);
}
.order-row:last-child {
  border-bottom: none;
}
.order-row .ol {
  color: var(--muted);
}
.order-row .or {
  color: var(--cream);
  font-weight: 600;
}
.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.ptab {
  flex: 1;
  padding: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: var(--font-b);
}
.ptab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-s);
  color: var(--cream);
  padding: 11px 15px;
  font-family: var(--font-b);
  font-size: 14px;
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: rgba(122, 110, 130, 0.5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-pay {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 15px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.25s;
  margin-top: 22px;
}
.btn-pay:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}
.secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.success-wrap {
  text-align: center;
  padding: 16px 0;
}
.success-icon {
  width: 68px;
  height: 68px;
  background: rgba(201, 168, 76, 0.1);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}
.success-wrap h3 {
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 8px;
}
.success-wrap p {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--cream-soft);
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.atab {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.atab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   WHAT'S INSIDE — Bonus Section
   ══════════════════════════════════════════════════════ */
.bonus-section {
  margin-bottom: 32px;
}

.bonus-section-label {
  font-family: var(--font-b);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bonus-item {
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.bonus-name {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.bonus-desc {
  font-family: var(--font-s);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.bonus-tag {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 4px;
}

.bonus-item:has(.bonus-tag.reg) {
  background: rgba(201, 160, 80, 0.06);
  border: 1px solid rgba(201, 160, 80, 0.28);
}
.bonus-item:has(.bonus-tag.reg):hover {
  border-color: rgba(201, 160, 80, 0.55);
  box-shadow: 0 0 18px rgba(201, 160, 80, 0.1);
}
.bonus-item:has(.bonus-tag.reg) .bonus-name {
  color: #e8c97a;
}
.bonus-tag.reg {
  background: rgba(201, 160, 80, 0.12);
  border: 1px solid rgba(201, 160, 80, 0.35);
  color: #e8c97a;
}

.bonus-item:has(.bonus-tag.ltd) {
  background: rgba(230, 100, 140, 0.06);
  border: 1px solid rgba(230, 100, 140, 0.28);
}
.bonus-item:has(.bonus-tag.ltd):hover {
  border-color: rgba(230, 100, 140, 0.55);
  box-shadow: 0 0 18px rgba(230, 100, 140, 0.1);
}
.bonus-item:has(.bonus-tag.ltd) .bonus-name {
  color: #f08dab;
}
.bonus-tag.ltd {
  background: rgba(230, 100, 140, 0.12);
  border: 1px solid rgba(230, 100, 140, 0.35);
  color: #f08dab;
}

/* ══════════════════════════════════════════════════════
   CHOOSE YOUR EDITION CARD
   ══════════════════════════════════════════════════════ */
.edition-card {
  background: var(--ink-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edition-card-title {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: bolder;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.edition-card-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-s);
}

.edition-row {
  padding: 16px;
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.edition-row + .edition-row {
  margin-top: 10px;
}
.edition-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.edition-name {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
}
.edition-price {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
}
.edition-includes {
  font-family: var(--font-s);
  font-size: 12px;
  line-height: 1.7;
  padding: 6px 0 2px;
}

.btn-buy-ed {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: var(--r);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  align-self: flex-start;
}

.edition-row:not(:has(.btn-buy-ed.ltd)) {
  background: rgba(201, 160, 80, 0.05);
  border: 1px solid rgba(201, 160, 80, 0.25);
}
.edition-row:not(:has(.btn-buy-ed.ltd)):hover {
  border-color: rgba(201, 160, 80, 0.5);
  box-shadow: 0 0 20px rgba(201, 160, 80, 0.08);
}
.edition-row:not(:has(.btn-buy-ed.ltd)) .edition-name {
  color: #e8c97a;
}
.edition-row:not(:has(.btn-buy-ed.ltd)) .edition-price {
  color: #c9a050;
}
.edition-row:not(:has(.btn-buy-ed.ltd)) .edition-includes {
  color: rgba(201, 160, 80, 0.7);
}

.btn-buy-ed:not(.ltd) {
  background: linear-gradient(135deg, #c9a050 0%, #e8c97a 100%);
  color: #0f0a1e;
}
.btn-buy-ed:not(.ltd):hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 160, 80, 0.3);
}

.edition-row:has(.btn-buy-ed.ltd) {
  background: rgba(230, 100, 140, 0.05);
  border: 1px solid rgba(230, 100, 140, 0.28);
}
.edition-row:has(.btn-buy-ed.ltd):hover {
  border-color: rgba(230, 100, 140, 0.5);
  box-shadow: 0 0 20px rgba(230, 100, 140, 0.08);
}
.edition-row:has(.btn-buy-ed.ltd) .edition-name {
  color: #f08dab;
}
.edition-row:has(.btn-buy-ed.ltd) .edition-price {
  color: #e6648c;
}
.edition-row:has(.btn-buy-ed.ltd) .edition-includes {
  color: rgba(230, 100, 140, 0.75);
}

.btn-buy-ed.ltd {
  background: linear-gradient(135deg, #e6648c 0%, #f08dab 100%);
  color: #fff;
}
.btn-buy-ed.ltd:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 100, 140, 0.35);
}

.btn-buy-volume.ltd {
  background: linear-gradient(135deg, #e6648c 0%, #f08dab 100%);
  color: #fff;
}

@media (max-width: 680px) {
  .bonus-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   NEWSLETTER
   ================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #1e0a18 0%, #2a0d20 40%, #1a0a22 100%);
  border-top: 1px solid rgba(196, 100, 122, 0.28);
  border-bottom: 1px solid rgba(196, 100, 122, 0.18);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(196, 100, 122, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(139, 127, 170, 0.1) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.newsletter-section h2 {
  font-family: var(--font-d);
  font-size: clamp(26px, 4vw, 46px);
  color: var(--cream);
  margin-bottom: 12px;
}
.newsletter-section h2 em {
  font-style: italic;
  color: var(--rose);
}
.newsletter-section p {
  font-family: var(--font-s);
  font-size: 17px;
  color: var(--cream-soft);
  margin-bottom: 32px;
}
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.nl-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 13px 18px;
  font-family: var(--font-b);
  font-size: 14px;
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.2s;
}
.nl-input:focus {
  border-color: var(--gold);
}
.nl-input::placeholder {
  color: var(--muted);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding: 64px 64px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer-brand p {
  font-family: var(--font-s);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 18px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.s-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-s);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.s-icon:hover {
  border-color: var(--gold);
}
.footer-col h4 {
  font-family: var(--font-s);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-bottom {
  border-top: 1px solid var(--border-s);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ================================================
   TOAST
   ================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--cream);
  z-index: 2000;
  transform: translateX(130%);
  transition: transform 0.3s ease;
  max-width: 300px;
}
.toast.show {
  transform: translateX(0);
}
.toast.error {
  border-left-color: var(--rose);
}
.toast.success {
  border-left-color: #4caf76;
}

/* ================================================
   DRM / PROTECTION NOTICE
   ================================================ */
.drm-notice {
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.drm-notice span {
  color: var(--gold);
  font-size: 14px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8, 5, 8, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ================================================
   VIEW MODE BUTTONS (reader)
   ================================================ */
.view-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-s);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 17px;
  cursor: pointer;
  border-radius: var(--r);
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.view-btn.active {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--border);
}

.reader-pages.horiz {
  display: block;
  max-width: 100vw;
  overflow: hidden;
  padding: 16px 0 60px;
}
.reader-pages.horiz .horiz-slide {
  display: block;
  margin: 0 auto;
  max-width: 800px;
}
.reader-pages.horiz .horiz-slide canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.reader-pages.horiz .pdf-page-skeleton {
  width: 100%;
  aspect-ratio: 0.707;
}
.reader-pages.horiz .reader-end {
  max-width: 800px;
  margin: 24px auto 0;
}
.double-pair {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.double-pair .pdf-page-wrap {
  flex: 1;
  margin-bottom: 0;
}
.horiz-nav {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  gap: 12px;
  z-index: 200;
}
.horiz-nav.show {
  display: flex;
}
.horiz-arrow {
  background: rgba(8, 5, 8, 0.8);
  border: 1px solid var(--border);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.horiz-arrow:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.view-mode-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.view-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-s);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 0.04em;
  min-width: 52px;
  line-height: 1.2;
  text-align: center;
}
.view-mode-btn svg {
  display: block;
  margin: 0 auto 2px;
}
.view-mode-btn small {
  font-size: 9px;
  opacity: 0.75;
}
.view-mode-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.view-mode-btn.active {
  background: var(--gold-dim);
  border-color: var(--border);
  color: var(--gold);
}

.reader-pages.mode-single-vert,
.reader-pages.mode-single-horiz {
  max-width: 760px;
}
.reader-pages.mode-double-vert,
.reader-pages.mode-double-horiz {
  max-width: 1200px;
}
.reader-pages.mode-single-horiz,
.reader-pages.mode-double-horiz {
  position: fixed;
  top: calc(var(--nav-h) + 80px);
  left: 0;
  right: 0;
  bottom: 60px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-pages.mode-single-horiz .horiz-slide,
.reader-pages.mode-double-horiz .horiz-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-pages.mode-single-horiz .pdf-page-wrap,
.reader-pages.mode-double-horiz .pdf-page-wrap {
  max-height: 100%;
  width: auto;
  margin: 0;
}
.reader-pages.mode-single-horiz .pdf-page-wrap canvas,
.reader-pages.mode-double-horiz .pdf-page-wrap canvas {
  max-height: calc(100vh - var(--nav-h) - 140px);
  width: auto !important;
  height: auto !important;
}

/* ================================================
   SPOTLIGHT SLIDER
   ================================================ */
.spotlight-slider {
  position: relative;
  width: 100%;
  margin-top: var(--nav-h);
  height: 520px;
  min-height: 420px;
  overflow: hidden;
  background: #0c0c18;
}
.spotlight-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.spotlight-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.spotlight-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.spotlight-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.22;
  filter: blur(2px) saturate(0.7);
  transform: scale(1.05);
  transition: opacity 0.7s;
}
.spotlight-slide.active .spotlight-img-bg {
  opacity: 0.25;
}

.spotlight-slide::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}
.spotlight-slide:nth-child(1)::after {
  background-image: url("Images/Chigaya-vol 1.png");
}
.spotlight-slide:nth-child(2)::after {
  background-image: url("Images/Grenimal-vol 1.png");
}
.spotlight-slide:nth-child(3)::after {
  background-image: url("Images/Matchmaker-vol 1.png");
}
.spotlight-slide:nth-child(4)::after {
  background-image: url("Images/Connie-vol 1.png");
}
.spotlight-slide:nth-child(5)::after {
  background-image: url("Images/Zombie-vol1.png");
}
.spotlight-slide:nth-child(6)::after {
  background-image: url("Images/Whyraeliana-vol1.png");
}
.spotlight-slide:nth-child(7)::after {
  background-image: url("Images/Chigaya-vol 2.png");
}
.spotlight-slide:nth-child(8)::after {
  background-image: url("Images/Grenimal-vol 2.png");
}
.spotlight-slide:nth-child(9)::after {
  background-image: url("Images/Connie-vol 2.png");
}
.spotlight-slide:nth-child(10)::after {
  background-image: url("Images/Zombie-vol2.png");
}
.spotlight-slide:nth-child(11)::after {
  background-image: url("Images/Whyraeliana-vol2.png");
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(8, 5, 8, 0.92) 0%,
    rgba(8, 5, 8, 0.65) 55%,
    rgba(8, 5, 8, 0.1) 100%
  );
}
.spotlight-content {
  position: relative;
  z-index: 3;
  max-width: 540px;
  padding: 60px 60px 80px;
}
.spotlight-tag {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.spotlight-title {
  font-family: var(--font-d);
  font-size: clamp(22px, 4vw, 50px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 16px;
}
.spotlight-desc {
  font-family: var(--font-s);
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--cream-soft);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}
.spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 13px 30px;
  border-radius: 40px;
}
.spotlight-btn::after {
  content: " →";
}
.spotlight-price-tag {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 3;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* Arrows */
.spotlight-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(8, 5, 8, 0.7);
  border: 1px solid var(--border);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.spotlight-arrow:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.spotlight-prev {
  left: 20px;
}
.spotlight-next {
  right: 20px;
}

/* Dots */
.spotlight-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.sdot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 24px;
  border-radius: 4px;
}
.spotlight-counter {
  position: absolute;
  bottom: 20px;
  right: 60px;
  z-index: 10;
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* ================================================
   SEARCH BAR
   ================================================ */
.site-search-bar {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 50;
}
.search-inner {
  display: flex;
  align-items: center;
  background: var(--ink-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px 10px 22px;
  gap: 10px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.site-search-bar:focus-within .search-inner {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px var(--gold-dim),
    0 4px 24px rgba(0, 0, 0, 0.4);
}
.search-icon {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--cream);
  min-width: 0;
}
.search-input::placeholder {
  color: var(--muted);
}
.search-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-clear:hover {
  color: var(--cream);
}
.search-submit {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 30px;
  padding: 9px 22px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.search-submit:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.search-suggestions {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(100% + 6px);
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: none;
}
.search-suggestions.open {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-s);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: var(--gold-dim);
}
.suggestion-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--ink-mid);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.suggestion-text {
  flex: 1;
  min-width: 0;
}
.suggestion-title {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-genre {
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--muted);
}
.suggestion-price {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--gold);
  flex-shrink: 0;
}
.suggestion-no-results {
  padding: 16px;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ================================================
   GENRE FILTER SECTION
   ================================================ */
.genre-filter-section {
  padding: 0 64px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.genre-filter-label {
  font-family: var(--font-s);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.genre-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-mid);
  border: 1.5px solid var(--border-s);
  color: var(--cream-soft);
  padding: 7px 18px 7px 14px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 30px;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.15s,
    box-shadow 0.18s;
  white-space: nowrap;
  user-select: none;
}
.gf-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.gf-tag[data-genre="all"] {
  background: var(--gold-dim);
  border-color: var(--border);
  color: var(--gold);
  font-weight: 600;
}
.gf-tag[data-genre="all"]:hover,
.gf-tag[data-genre="all"].gf-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
}
.gf-tag[data-genre="romance"] {
  border-color: rgba(196, 100, 122, 0.35);
  color: #e08098;
}
.gf-tag[data-genre="romance"]:hover,
.gf-tag[data-genre="romance"].gf-active {
  background: rgba(196, 100, 122, 0.22);
  border-color: var(--rose);
  color: #f0a0b4;
  box-shadow: 0 4px 18px rgba(196, 100, 122, 0.35);
}
.gf-tag[data-genre="fantasy"] {
  border-color: rgba(139, 127, 170, 0.35);
  color: #b0a8cc;
}
.gf-tag[data-genre="fantasy"]:hover,
.gf-tag[data-genre="fantasy"].gf-active {
  background: rgba(139, 127, 170, 0.22);
  border-color: var(--lavender);
  color: #cac4e2;
  box-shadow: 0 4px 18px rgba(139, 127, 170, 0.35);
}
.gf-tag[data-genre="action"] {
  border-color: rgba(214, 140, 60, 0.35);
  color: #d6965a;
}
.gf-tag[data-genre="action"]:hover,
.gf-tag[data-genre="action"].gf-active {
  background: rgba(214, 140, 60, 0.2);
  border-color: #d6965a;
  color: #f0b070;
  box-shadow: 0 4px 18px rgba(214, 140, 60, 0.35);
}
.gf-tag[data-genre="mystery"] {
  border-color: rgba(80, 180, 180, 0.3);
  color: #7acfcf;
}
.gf-tag[data-genre="mystery"]:hover,
.gf-tag[data-genre="mystery"].gf-active {
  background: rgba(80, 180, 180, 0.18);
  border-color: #7acfcf;
  color: #9fdfdf;
  box-shadow: 0 4px 18px rgba(80, 180, 180, 0.3);
}
.gf-tag[data-genre="horror"] {
  border-color: rgba(180, 40, 40, 0.4);
  color: #d06060;
}
.gf-tag[data-genre="horror"]:hover,
.gf-tag[data-genre="horror"].gf-active {
  background: rgba(180, 40, 40, 0.2);
  border-color: #d06060;
  color: #e88080;
  box-shadow: 0 4px 18px rgba(180, 40, 40, 0.4);
}
.gf-tag[data-genre="comedy"] {
  border-color: rgba(230, 200, 60, 0.3);
  color: #d4b840;
}
.gf-tag[data-genre="comedy"]:hover,
.gf-tag[data-genre="comedy"].gf-active {
  background: rgba(230, 200, 60, 0.16);
  border-color: #d4b840;
  color: #e8d060;
  box-shadow: 0 4px 18px rgba(230, 200, 60, 0.3);
}
.gf-tag[data-genre="slice-of-life"] {
  border-color: rgba(100, 190, 120, 0.3);
  color: #80c890;
}
.gf-tag[data-genre="slice-of-life"]:hover,
.gf-tag[data-genre="slice-of-life"].gf-active {
  background: rgba(100, 190, 120, 0.18);
  border-color: #80c890;
  color: #a0dca8;
  box-shadow: 0 4px 18px rgba(100, 190, 120, 0.3);
}
.gf-tag[data-genre="yuri"] {
  border-color: rgba(180, 120, 210, 0.35);
  color: #c08ad8;
}
.gf-tag[data-genre="yuri"]:hover,
.gf-tag[data-genre="yuri"].gf-active {
  background: rgba(180, 120, 210, 0.18);
  border-color: #c08ad8;
  color: #d8a8ec;
  box-shadow: 0 4px 18px rgba(180, 120, 210, 0.35);
}
.gf-tag[data-genre="shoujo"] {
  border-color: rgba(220, 140, 180, 0.35);
  color: #dc8cb4;
}
.gf-tag[data-genre="shoujo"]:hover,
.gf-tag[data-genre="shoujo"].gf-active {
  background: rgba(220, 140, 180, 0.18);
  border-color: #dc8cb4;
  color: #f0aacc;
  box-shadow: 0 4px 18px rgba(220, 140, 180, 0.3);
}
.gf-tag[data-genre="josei"] {
  border-color: rgba(200, 130, 130, 0.35);
  color: #c88888;
}
.gf-tag[data-genre="josei"]:hover,
.gf-tag[data-genre="josei"].gf-active {
  background: rgba(200, 130, 130, 0.18);
  border-color: #c88888;
  color: #e0a8a8;
  box-shadow: 0 4px 18px rgba(200, 130, 130, 0.3);
}
.gf-tag[data-genre="school-life"] {
  border-color: rgba(100, 160, 220, 0.3);
  color: #80b0e0;
}
.gf-tag[data-genre="school-life"]:hover,
.gf-tag[data-genre="school-life"].gf-active {
  background: rgba(100, 160, 220, 0.18);
  border-color: #80b0e0;
  color: #a0c8f0;
  box-shadow: 0 4px 18px rgba(100, 160, 220, 0.3);
}
.gf-count {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  align-self: center;
  padding-left: 8px;
}
.gf-count span {
  color: var(--gold);
  font-weight: 600;
}
.gf-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
}
.gf-empty.visible {
  display: block;
}
.gf-empty-icon {
  font-size: 52px;
  margin-bottom: 18px;
}
.gf-empty h3 {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
}
.gf-empty p {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--muted);
}
body.light-mode .gf-tag {
  background: var(--ink-mid);
  border-color: var(--border-s);
  color: var(--cream-soft);
}

/* ================================================
   GLAM BEAT / BLUSH CLUB — DETAIL ROWS
   (grid layout used inside those pages)
   ================================================ */
.title-detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ================================================
   NOVELS PAGE — volume grid inside detail
   ================================================ */
.novel-vol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================================
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE BREAKPOINTS — rebuilt from scratch
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ================================================ */

@media (max-width: 1280px) {
  .nav {
    padding: 0 32px;
  }
  .section {
    padding: 72px 48px;
  }
  .section-dark {
    padding: 72px 48px;
  }
  .footer {
    padding: 56px 48px 24px;
  }
  .page-hero {
    padding: 64px 48px 48px;
  }
  .promo-banner {
    padding: 64px;
    gap: 56px;
  }
  .title-detail {
    padding: 48px;
    gap: 48px;
  }
  .genre-filter-section {
    padding: 0 48px 40px;
  }
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 24px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 10px;
  }

  .btn-nav-ghost {
    display: none;
  }

  .section {
    padding: 60px 32px;
  }
  .section-dark {
    padding: 60px 32px;
  }
  .footer {
    padding: 48px 32px 20px;
  }
  .page-hero {
    padding: 56px 32px 40px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-dark .card-grid-2 {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-banner {
    padding: 52px 40px;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .title-detail {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 40px 32px;
  }
  .genre-filter-section {
    padding: 0 32px 36px;
  }

  .title-detail-row {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }

  .novel-vol-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: block;
  }

  .mobile-nav .mobile-nav-actions {
    display: flex;
  }

  .cat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-dark .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-banner {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    gap: 32px;
  }

  .section {
    padding: 52px 24px;
  }
  .section-dark {
    padding: 52px 24px;
  }
  .footer {
    padding: 44px 24px 20px;
  }
  .page-hero {
    padding: 48px 24px 36px;
  }
  .genre-filter-section {
    padding: 0 24px 32px;
  }

  .title-detail {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .detail-cover {
    position: static;
    max-width: 200px;
  }

  .title-detail-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .title-detail-row > div:first-child {
    max-width: 200px;
  }

  .novel-vol-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reader-topbar {
    padding: 8px 16px;
    gap: 6px;
  }
  .reader-title {
    font-size: 13px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .view-mode-group {
    gap: 3px;
  }
  .view-mode-btn {
    min-width: 44px;
    padding: 5px 7px;
    font-size: 9px;
  }
  .view-mode-btn small {
    display: none;
  }

  .page-hero[style] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  #libContent {
    padding: 0 24px;
  }

  .spotlight-slider {
    height: auto;
    min-height: 460px;
  }
  .spotlight-content {
    padding: 40px 40px 70px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav {
    padding: 0 16px;
  }
  .nav-logo-main {
    font-size: 16px;
  }
  .nav-logo-sub {
    font-size: 13px;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-nav-licenser {
    display: none !important;
  }

  #navSearchBtn,
  #navFilterBtn {
    width: 30px;
    height: 30px;
  }

  .spotlight-slider {
    height: auto;
    min-height: 340px;
  }
  .spotlight-content {
    padding: 30px 20px 60px;
  }
  .spotlight-slide::after {
    width: 55%;
    background-size: contain;
    background-position: right bottom;
  }
  .spotlight-track {
    position: relative;
    height: auto;
  }
  .spotlight-slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    pointer-events: none;
    width: 100%;
    min-height: 320px;
  }
  .spotlight-slide.active {
    display: flex;
    pointer-events: auto;
    align-items: center;
  }
  .spotlight-title {
    font-size: clamp(20px, 5.5vw, 30px);
  }
  .spotlight-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .spotlight-price-tag {
    display: none;
  }
  .spotlight-btn {
    font-size: 12px;
    padding: 10px 22px;
  }
  .spotlight-arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .spotlight-prev {
    left: 10px;
  }
  .spotlight-next {
    right: 10px;
  }
  .spotlight-dots {
    bottom: 16px;
    gap: 6px;
  }
  .sdot {
    width: 6px;
    height: 6px;
  }
  .sdot.active {
    width: 18px;
  }
  .spotlight-counter {
    display: none;
  }

  .cat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-tile {
    padding: 20px 12px;
  }
  .cat-name {
    font-size: 11px;
  }

  .section {
    padding: 40px 16px;
  }
  .section-dark {
    padding: 40px 16px;
  }
  .section-head {
    gap: 12px;
    margin-bottom: 28px;
  }
  .see-all {
    font-size: 11px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .section-dark .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-body {
    padding: 10px 12px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-genre {
    font-size: 9px;
  }

  .promo-banner {
    padding: 36px 20px;
    gap: 24px;
  }
  .promo-feat {
    gap: 10px;
    font-size: 12px;
  }

  .page-hero {
    padding: 40px 16px 32px;
  }
  .page-hero p {
    font-size: 15px;
  }

  .footer {
    padding: 40px 16px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-logo {
    font-size: 18px;
  }

  .newsletter-section {
    padding: 56px 20px;
  }
  .nl-form {
    flex-direction: column;
    gap: 8px;
  }
  .nl-input,
  .nl-form .btn-gold {
    width: 100%;
  }

  .modal {
    padding: 24px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .genre-filter-section {
    padding: 0 16px 28px;
  }
  .gf-tag {
    font-size: 11px;
    padding: 6px 12px 6px 10px;
  }
  .gf-count {
    display: none;
  }

  .my-lib-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ch-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .ch-price {
    display: none;
  }
  .ch-btn {
    padding: 7px 12px;
    font-size: 9px;
  }

  .title-detail {
    padding: 24px 16px;
  }
  .detail-spec {
    grid-template-columns: 1fr;
  }
  .bundle-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .novel-vol-grid {
    grid-template-columns: 1fr;
  }

  .title-detail-row > div:first-child {
    max-width: 160px;
  }

  .reader-topbar {
    padding: 6px 12px;
  }
  .reader-title {
    font-size: 12px;
    max-width: 120px;
  }
  .reader-ch {
    display: none;
  }
  .zoom-controls {
    display: none;
  }
  .view-mode-group {
    gap: 2px;
  }
  .view-mode-btn {
    min-width: 36px;
    padding: 4px 6px;
  }

  .nav-search-overlay {
    padding-top: 72px;
  }
  .nav-search-modal {
    margin: 0 12px;
  }
  .nav-search-inner {
    padding: 8px 12px 8px 16px;
    gap: 8px;
  }
  .nav-search-input {
    font-size: 14px;
  }
  .nav-search-submit {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ── 480px — small mobile ── */
@media (max-width: 480px) {
  :root {
    --nav-h: 56px;
  }

  .nav-logo-main {
    font-size: 14px;
  }
  .nav-logo-sub {
    display: block;
    font-size: 7px;
    letter-spacing: 0.2em;
  }
  .nav-actions {
    gap: 4px;
  }
  #navSearchBtn,
  #navFilterBtn {
    display: none;
  }
  .btn-nav-signin {
    display: none !important;
  }
  .btn-nav-licenser {
    display: none !important;
  }
  .spotlight-slider {
    height: auto;
    min-height: 280px;
  }
  .spotlight-content {
    padding: 24px 14px 56px;
  }
  .spotlight-title {
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 8px;
  }
  .spotlight-tag {
    font-size: 9px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .spotlight-desc {
    font-size: 12px;
    margin-bottom: 14px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .spotlight-btn {
    font-size: 11px;
    padding: 8px 18px;
  }
  .spotlight-arrow {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .spotlight-prev {
    left: 6px;
  }
  .spotlight-next {
    right: 6px;
  }

  .cat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-tile {
    padding: 16px 8px;
  }
  .cat-name {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .cat-count {
    font-size: 9px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .section-dark .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 6%;
  }
  .stat-div {
    width: 40px;
    height: 1px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-gold,
  .btn-ghost {
    padding: 13px 24px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-brand p {
    max-width: 100%;
  }

  .my-lib-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .owned-foot {
    padding: 10px 12px;
  }
  .owned-title {
    font-size: 12px;
  }

  .reader-topbar {
    flex-wrap: wrap;
  }
  .reader-info .btn-reader {
    display: none;
  }
  .reader-nav-btns .btn-reader {
    padding: 6px 10px;
    font-size: 10px;
  }

  .detail-cover {
    max-width: 100%;
  }
  .title-detail-row > div:first-child {
    max-width: 100%;
  }

  .modal {
    padding: 20px 16px;
  }

  .section {
    padding: 32px 12px;
  }
  .section-dark {
    padding: 32px 12px;
  }
  .page-hero {
    padding: 32px 12px 24px;
  }
  .footer {
    padding: 32px 12px 14px;
  }
}

@media (max-width: 360px) {
  .spotlight-slider {
    height: auto;
    min-height: 240px;
  }
  .card-grid,
  .card-grid-2,
  .card-grid-3,
  .section-dark .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .my-lib-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo-main {
    font-size: 13px;
  }
  .btn-nav-signin {
    padding: 6px 12px;
    font-size: 10px;
  }

  .spotlight-title {
    font-size: 17px;
  }
  .spotlight-desc {
    display: none;
  }
}

/* ================================================
   AUTH — EXTENDED FORM STYLES
   Inline field errors, password strength, show/hide
   ================================================ */

.ch-field-err {
  font-size: 11px;
  color: var(--rose);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: chErrFadeIn 0.18s ease;
}
@keyframes chErrFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-input.err {
  border-color: var(--rose) !important;
}

#au_pw_strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 6px;
  background: var(--border-s);
  overflow: hidden;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(2) hue-rotate(5deg);
  cursor: pointer;
  opacity: 0.7;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="checkbox"] {
  accent-color: var(--gold);
}

#authOverlay .modal {
  max-height: 92vh;
}

/* ══════════════════════════════════════════════════════
   ALSO AVAILABLE DIGITALLY CARD
   ══════════════════════════════════════════════════════ */
.also-avail-card {
  background: rgba(201, 160, 80, 0.04);
  border: 1px solid rgba(201, 160, 80, 0.22);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-top: 8px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.also-avail-card:hover {
  border-color: rgba(201, 160, 80, 0.45);
  box-shadow: 0 0 18px rgba(201, 160, 80, 0.07);
}
.also-avail-card strong:first-child {
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.also-avail-card p,
.also-avail-card span,
.also-avail-card {
  font-family: var(--font-s);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.also-avail-card strong.price {
  color: #e8c97a;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
}
.also-avail-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e8c97a;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-top: 6px;
  width: fit-content;
  transition: opacity 0.2s;
}
.also-avail-card a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   REGULAR PRINT EDITION CARD  (right column / standalone)
   ══════════════════════════════════════════════════════ */
.print-edition-card {
  background: rgba(201, 160, 80, 0.05);
  border: 1px solid rgba(201, 160, 80, 0.25);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.print-edition-card:hover {
  border-color: rgba(201, 160, 80, 0.5);
  box-shadow: 0 0 22px rgba(201, 160, 80, 0.08);
}

.print-edition-card .pec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.print-edition-card .pec-label {
  font-family: var(--font-b);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.print-edition-card .pec-name {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
  color: #e8c97a;
  margin-top: 4px;
}
.print-edition-card .pec-price {
  font-family: var(--font-b);
  font-size: 22px;
  font-weight: 700;
  color: #c9a050;
  white-space: nowrap;
  line-height: 1;
}

.print-edition-card .pec-divider {
  border: none;
  border-top: 1px solid rgba(201, 160, 80, 0.18);
  margin: 12px 0;
}

.print-edition-card .pec-specs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.print-edition-card .pec-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-b);
  font-size: 12px;
}
.print-edition-card .pec-spec-row .spec-label {
  color: var(--muted);
}
.print-edition-card .pec-spec-row .spec-value {
  color: rgba(201, 160, 80, 0.75);
  font-weight: 500;
}

.print-edition-card .pec-includes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}
.print-edition-card .pec-include-item {
  font-family: var(--font-s);
  font-size: 12px;
  color: rgba(201, 160, 80, 0.65);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.print-edition-card .pec-include-item::before {
  content: "✓";
  color: #c9a050;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.print-edition-card .btn-pec-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a050 0%, #e8c97a 100%);
  color: #0f0a1e;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 10px 20px;
  border-radius: var(--r);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  align-self: flex-start;
}
.print-edition-card .btn-pec-order:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 160, 80, 0.3);
}

@media (max-width: 1024px) {
  .btn-nav-licenser {
    padding: 8px 12px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .btn-nav-licenser {
    display: none;
  }
}

/* ================================================
   WISHLIST BUTTON
   ================================================ */
.btn-wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ch-rose-deep);
  background: var(--gold-dim);
  color: var(--ch-rose-deep);
  cursor: pointer;
  transition: all 0.22s;
  flex-shrink: 0;
  padding: 0;
}

.btn-wishlist svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  transition: all 0.22s;
}

.btn-wishlist:hover {
  background: rgba(200, 80, 100, 0.12);
  border-color: var(--ch-rose-deep);
  color: var(--ch-rose-deep);
  transform: translateY(-1px);
}

.btn-wishlist.wishlisted {
  background: rgba(200, 80, 100, 0.16);
  border-color: var(--ch-rose-deep);
  color: var(--ch-rose-deep);
}

.btn-wishlist.wishlisted svg {
  fill: currentColor;
}

/* ================================================
   PURCHASE COUNT BADGE
   ================================================ */
.purchase-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-b);
  letter-spacing: 0.04em;
}
.purchase-count svg {
  opacity: 0.7;
}

/* ================================================
   REVIEW CARD
   ================================================ */
.reviews-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-s);
}
.reviews-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ================================================
   TITLE-WISE GROUP HEADER (All Titles page)
   ================================================ */
.title-group {
  margin-bottom: 60px;
}
.title-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-s);
}
.title-group-name {
  font-family: var(--font-s);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
}
.title-group-count {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-b);
  background: var(--ink-card);
  border: 1px solid var(--border-s);
  border-radius: 20px;
  padding: 3px 10px;
}
.title-group-volumes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 28px;
}

.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Wishlist is disabled for now across the public website. */
.btn-wishlist,
a[href="wishlist.html"],
a[href*="/wishlist.html"] {
  display: none !important;
}

/* ================================================
   TRAILER VIDEO SECTION
   ================================================ */
.trailer-section {
  margin-bottom: 28px;
}

.trailer-label {
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.trailer-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.trailer-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* ================================================
   RESPONSIVE — TRAILER
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .trailer-wrap {
    border-radius: 6px;
  }
}

/* Small tablet / large mobile */
@media (max-width: 900px) {
  .trailer-section {
    margin-bottom: 22px;
  }

  .trailer-label {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .trailer-wrap {
    border-radius: 6px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .trailer-section {
    margin-bottom: 20px;
  }

  .trailer-wrap {
    border-radius: 6px;
    padding-bottom: 56.25%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .trailer-section {
    margin-bottom: 16px;
  }

  .trailer-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }

  .trailer-wrap {
    border-radius: 4px;
    padding-bottom: 56.25%;
  }
}

/* ================================================
   NAV ALIGNMENT FIX
   Keeps logo, links, icons, and action buttons on one clean baseline.
   ================================================ */
.nav {
  display: flex;
  align-items: center;
}

.nav-logo {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
  gap: clamp(10px, 1.2vw, 16px);
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 38px;
  margin-left: auto;
}

.nav-actions > * {
  flex-shrink: 0;
}

.btn-nav-ghost,
.btn-nav-register,
.btn-nav-signin,
.btn-nav-licenser,
.btn-nav-search,
.btn-nav-cart,
.btn-wishlist,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-nav-search,
.btn-nav-cart,
.btn-wishlist,
.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
}

.btn-nav-cart {
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--gold-dim);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.22s;
}

.btn-nav-cart:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.nav-burger {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}
