:root {
  --np-bg: #050816;
  --np-bg-soft: #0b1020;
  --np-surface: #111827;
  --np-surface-2: #0f172a;
  --np-border: rgba(148, 163, 184, 0.22);
  --np-text: #f8fafc;
  --np-muted: #94a3b8;
  --np-primary: #f5b301;
  --np-primary-2: #facc15;
  --np-radius: 20px;
  --np-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  --np-container: 1180px;
  --np-page-bg: radial-gradient(circle at top left, rgba(245, 179, 1, 0.13), transparent 36rem), var(--np-bg);
}


body.np-light {
  --np-bg: #f5f7fb;
  --np-bg-soft: #eef2f7;
  --np-surface: #ffffff;
  --np-surface-2: #f8fafc;
  --np-border: rgba(15, 23, 42, 0.14);
  --np-text: #0f172a;
  --np-muted: #64748b;
  --np-primary: #f59e0b;
  --np-primary-2: #d97706;
  --np-shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
  --np-page-bg: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem), #f5f7fb;
}

body.np-light .np-site-header {
  background: rgba(255, 255, 255, 0.88);
}

body.np-light .np-card,
body.np-light .np-empty-card,
body.np-light .np-reading-card,
body.np-light .np-book-info-card,
body.np-light .np-hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
}

body.np-light .np-reader-content {
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.np-theme {
  margin: 0;
  color: var(--np-text);
  background: var(--np-page-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--np-primary-2);
}

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

.np-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--np-primary);
  color: #111827;
  border-radius: 8px;
}

.np-skip-link:focus {
  left: 12px;
}

.np-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--np-border);
  background: rgba(5, 8, 22, 0.86);
  backdrop-filter: blur(14px);
}

.np-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.np-logo-text {
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--np-text);
}

.np-site-description {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--np-muted);
}

.np-primary-nav ul,
.np-site-footer ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.np-primary-nav a {
  color: var(--np-muted);
  font-weight: 700;
}

.np-menu-toggle {
  display: none;
  border: 1px solid var(--np-border);
  background: var(--np-surface);
  color: var(--np-text);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
}

.np-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.np-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--np-border);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--np-surface);
  color: var(--np-text);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.np-theme-toggle:hover,
.np-theme-toggle:focus {
  border-color: rgba(245, 179, 1, 0.45);
  color: var(--np-primary-2);
}

.np-theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 179, 1, 0.15);
}

.np-hero-front {
  padding: clamp(56px, 8vw, 110px) 0 42px;
}

.np-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 28px;
}

.np-hero-front h1 {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.np-hero-front p {
  max-width: 720px;
  color: var(--np-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.np-hero-panel {
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.76));
  box-shadow: var(--np-shadow);
  display: grid;
  gap: 14px;
  align-content: center;
}

.np-hero-panel span {
  display: block;
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 18px;
  color: var(--np-primary-2);
  font-size: 1.2rem;
  font-weight: 900;
  background: rgba(245, 179, 1, 0.08);
}

.np-section {
  padding: 44px 0;
}

.np-section-header {
  margin-bottom: 22px;
}

.np-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.np-section-header h1,
.np-section-header h2,
.np-single-novel h1,
.np-reading-card h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.np-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--np-primary-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.np-grid {
  display: grid;
  gap: 18px;
}

.np-grid-posts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np-card,
.np-empty-card,
.np-reading-card {
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.78));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.np-card {
  overflow: hidden;
}

.np-card-cover {
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #1f2937, #020617);
  border-bottom: 1px solid var(--np-border);
}

.np-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-card-cover span,
.np-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--np-primary-2);
  font-weight: 900;
}

.np-card-body {
  padding: 16px;
}

.np-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.np-card-body p,
.np-meta-row,
.np-card-meta,
.np-archive-description,
.np-content,
.np-empty-card p,
.np-chapter-placeholder p {
  color: var(--np-muted);
}

.np-card-meta,
.np-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.np-button,
.wp-block-button__link,
.np-search-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--np-primary), var(--np-primary-2));
  color: #111827;
  font-weight: 900;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
}

.np-button:hover,
.np-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: #111827;
  filter: brightness(1.06);
}

.np-link {
  color: var(--np-primary-2);
  font-weight: 900;
}

.np-empty-card,
.np-reading-card,
.np-chapter-placeholder {
  padding: 28px;
}

.np-single-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.np-cover-wrap {
  position: sticky;
  top: 96px;
}

.np-cover-img,
.np-cover-placeholder {
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
}

.np-content {
  font-size: 1.05rem;
}

.np-content a {
  color: var(--np-primary-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.np-reading-wrap {
  max-width: 860px;
}

.np-reading-card {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.np-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.np-search-form label {
  flex: 1;
}

.np-search-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--np-border);
  border-radius: 999px;
  background: var(--np-surface);
  color: var(--np-text);
  padding: 0 16px;
}

.np-pagination {
  margin-top: 28px;
}

.np-pagination .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.np-pagination a,
.np-pagination span {
  border: 1px solid var(--np-border);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--np-surface);
}

.np-site-footer {
  border-top: 1px solid var(--np-border);
  margin-top: 40px;
  padding: 26px 0;
  color: var(--np-muted);
}

.np-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .np-grid-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .np-hero-grid,
  .np-single-grid {
    grid-template-columns: 1fr;
  }

  .np-cover-wrap {
    position: static;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .np-header-inner {
    min-height: 68px;
  }

  .np-menu-toggle {
    display: inline-flex;
  }

  .np-primary-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    border: 1px solid var(--np-border);
    border-radius: 16px;
    background: var(--np-surface-2);
    padding: 12px;
    box-shadow: var(--np-shadow);
  }

  .np-primary-nav.is-open {
    display: block;
  }

  .np-primary-nav ul {
    display: grid;
    gap: 6px;
  }

  .np-primary-nav a {
    display: block;
    padding: 10px;
  }

  .np-grid-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .np-card-body {
    padding: 12px;
  }

  .np-card-body h2 {
    font-size: 0.96rem;
  }

  .np-card-body p {
    display: none;
  }

  .np-section-header-row,
  .np-search-form {
    display: block;
  }

  .np-search-form button {
    margin-top: 10px;
    width: 100%;
  }
}

.np-action-row,
.np-reader-tools,
.np-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.np-button-ghost,
.np-reader-tool {
  border: 1px solid var(--np-border);
  background: rgba(15, 23, 42, 0.88);
  color: var(--np-text);
}

.np-button-ghost:hover,
.np-button-ghost:focus,
.np-reader-tool:hover,
.np-reader-tool:focus {
  color: var(--np-primary-2);
  border-color: rgba(250, 204, 21, 0.42);
}

.np-novel-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.np-novel-facts div {
  border: 1px solid var(--np-border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.35);
}

.np-novel-facts dt {
  color: var(--np-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.np-novel-facts dd {
  margin: 4px 0 0;
  color: var(--np-text);
  font-weight: 800;
}

.np-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 179, 1, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--np-primary-2);
  background: rgba(245, 179, 1, 0.08);
  font-weight: 900;
}

.np-chapter-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.np-chapter-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--np-border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.np-chapter-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 179, 1, 0.12);
  color: var(--np-primary-2);
  font-weight: 900;
}

.np-chapter-list strong {
  overflow-wrap: anywhere;
}

.np-copyright-card {
  margin-top: 18px;
}

.np-reader-shell {
  max-width: 920px;
}

.np-reader-card {
  padding: clamp(22px, 4vw, 46px);
}

.np-reader-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--np-muted);
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.np-reader-header h1 {
  margin-bottom: 12px;
}

.np-reader-tools {
  position: sticky;
  top: 88px;
  z-index: 10;
  padding: 10px;
  border: 1px solid var(--np-border);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.86);
  backdrop-filter: blur(12px);
  width: max-content;
  max-width: 100%;
}

.np-reader-tool {
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 900;
}

.np-reader-content {
  margin-top: 26px;
  color: #e5e7eb;
  font-size: var(--np-reader-font-size, 1.16rem);
  line-height: 1.9;
}

.np-reader-content p {
  margin: 0 0 1.25em;
}

.np-chapter-nav {
  justify-content: space-between;
  border-top: 1px solid var(--np-border);
  padding-top: 22px;
}

@media (max-width: 720px) {
  .np-novel-facts {
    grid-template-columns: 1fr;
  }

  .np-chapter-list a {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .np-chapter-list span {
    width: 30px;
    height: 30px;
  }

  .np-reader-tools {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .np-chapter-nav .np-button,
  .np-action-row .np-button {
    width: 100%;
  }
}

/* Phase 3: trending, social group buttons, ads, bookmarks */
.np-trending-section {
  padding-top: 12px;
}

.np-trending-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
}

.np-trending-item {
  scroll-snap-align: start;
}

.np-social-join {
  margin: 22px 0 10px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.np-social-join-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.np-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, filter 160ms ease;
}

.np-social-btn:hover,
.np-social-btn:focus {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.np-social-btn-whatsapp {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.np-social-btn-telegram {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.np-social-btn-facebook {
  min-height: 56px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.04rem;
  background: linear-gradient(135deg, #ff003c, #e11d48);
}

.np-button-read {
  background: linear-gradient(135deg, #f5b301, #facc15);
  color: #111827;
}

.np-button-download {
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #052e16;
}

.np-button-bookmark {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
}

.np-button-bookmark:hover,
.np-button-bookmark:focus {
  color: #ffffff;
}

.np-button-bookmark.is-bookmarked {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #111827;
}

.np-ad-slot {
  margin: 22px 0;
  border: 1px dashed rgba(250, 204, 21, 0.34);
  border-radius: 18px;
  padding: 14px;
  background: rgba(250, 204, 21, 0.045);
  color: var(--np-text);
  overflow: hidden;
}

.np-ad-slot:empty {
  display: none;
}

.np-floating-social {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  gap: 8px;
}

.np-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 112px;
  min-height: 42px;
  padding: 9px 14px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.np-float-btn:hover,
.np-float-btn:focus {
  color: #ffffff;
  filter: brightness(1.08);
}

.np-float-btn-whatsapp {
  background: #16a34a;
}

.np-float-btn-telegram {
  background: #0284c7;
}

@media (max-width: 720px) {
  .np-trending-rail {
    grid-auto-columns: minmax(150px, 46vw);
    gap: 12px;
  }

  .np-social-join {
    max-width: 100%;
  }

  .np-social-btn {
    min-height: 38px;
    font-size: 0.78rem;
    padding-inline: 8px;
  }

  .np-social-btn-facebook {
    min-height: 54px;
    font-size: 0.94rem;
  }

  .np-floating-social {
    right: 10px;
    bottom: 10px;
  }

  .np-float-btn {
    min-width: 92px;
    min-height: 38px;
    font-size: 0.85rem;
  }
}

/* Filters, category blocks, related novels */
.np-filter-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 26px;
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
}

.np-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--np-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.np-filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--np-border);
  border-radius: 12px;
  background: var(--np-surface);
  color: var(--np-text);
  padding: 0 12px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
}

.np-category-block {
  padding-top: 24px;
}

.np-related-card {
  margin-top: 18px;
  padding: 20px;
}

.np-related-grid {
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .np-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .np-filter-form {
    grid-template-columns: 1fr;
  }

  .np-filter-form .np-button {
    width: 100%;
  }
}

.np-novel-facts dd a,
.np-chapter-list-card .np-button {
    text-decoration: none;
}

/* Phase 9: file-driven reader polish */
.np-reader-source-note {
  margin: 16px 0;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
  font-weight: 800;
}

.np-reader-download {
  text-decoration: none;
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #052e16;
  border-color: rgba(34, 197, 94, 0.55);
}

.np-reader-download:hover,
.np-reader-download:focus {
  color: #052e16;
}

.np-chapter-nav-center {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .np-chapter-nav-center {
    width: 100%;
  }
  .np-chapter-nav-center .np-button {
    width: 100%;
  }
}

/* v0.9.1: exact post layout refinements */
.np-trending-section:first-of-type,
.np-container.np-section:first-of-type {
  padding-top: 28px;
}

.np-author-line {
  margin: 10px 0 20px;
  color: var(--np-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.np-author-line strong {
  color: var(--np-primary-2);
  font-weight: 900;
}

.np-book-info-card {
  margin: 26px 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.np-book-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.np-book-info-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.np-book-info-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(245, 179, 1, 0.09);
  font-size: 1.35rem;
  line-height: 1;
}

.np-book-info-text {
  min-width: 0;
}

.np-book-info-label {
  display: block;
  color: var(--np-muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.np-book-info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--np-text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.np-book-info-category .np-book-info-icon { color: #e879f9; background: rgba(232, 121, 249, 0.10); }
.np-book-info-format .np-book-info-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.10); }
.np-book-info-size .np-book-info-icon { color: #34d399; background: rgba(52, 211, 153, 0.10); }
.np-book-info-status .np-book-info-icon { color: #22c55e; background: rgba(34, 197, 94, 0.10); }
.np-book-info-words .np-book-info-icon { color: #fb923c; background: rgba(251, 146, 60, 0.10); }
.np-book-info-time .np-book-info-icon { color: #818cf8; background: rgba(129, 140, 248, 0.10); }
.np-book-info-group .np-book-info-icon { color: #c084fc; background: rgba(192, 132, 252, 0.10); }
.np-book-info-contact .np-book-info-icon { color: #f97316; background: rgba(249, 115, 22, 0.10); }
.np-book-info-last-download .np-book-info-icon { color: #2dd4bf; background: rgba(45, 212, 191, 0.10); }
.np-book-info-views .np-book-info-icon { color: #94a3b8; background: rgba(148, 163, 184, 0.12); }
.np-book-info-downloads .np-book-info-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.10); }
.np-book-info-released .np-book-info-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.10); }

.np-single-actions .np-button {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1rem;
}

.np-single-actions .np-button-read,
.np-single-actions .np-button-download {
  flex: 1 1 220px;
}

.np-reader-toc {
  margin-top: 34px;
  border-top: 1px solid var(--np-border);
  padding-top: 26px;
}

.np-chapter-list .is-current a {
  border-color: rgba(250, 204, 21, 0.58);
  background: rgba(245, 179, 1, 0.10);
}

@media (max-width: 720px) {
  .np-book-info-card {
    margin: 22px 0;
    padding: 16px 10px;
  }

  .np-book-info-grid {
    gap: 18px 10px;
  }

  .np-book-info-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .np-book-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.18rem;
  }

  .np-book-info-label {
    font-size: 0.72rem;
  }

  .np-book-info-item strong {
    font-size: 1rem;
  }

  .np-single-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .np-single-actions .np-button {
    width: 100%;
  }
}


/* v0.9.2: mode switcher and cleaner generated covers */
.np-theme-toggle .np-theme-toggle-text {
  white-space: nowrap;
}

body.np-light .np-button-ghost,
body.np-light .np-reader-tool {
  background: rgba(255, 255, 255, 0.92);
}

body.np-light .np-card-cover {
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}

.np-card-cover img,
.np-cover-img {
  object-position: center center;
}

@media (max-width: 720px) {
  .np-header-actions {
    gap: 8px;
  }

  .np-theme-toggle {
    min-height: 40px;
    padding-inline: 10px;
  }

  .np-theme-toggle-text {
    display: none;
  }
}


/* v0.9.3: production homepage polish and final theme settings */
.np-top-actions {
  border-bottom: 1px solid var(--np-border);
  background: rgba(15, 23, 42, 0.94);
}

body.np-light .np-top-actions {
  background: rgba(255, 255, 255, 0.96);
}

.np-top-actions-inner {
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
}

.np-top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  min-width: 154px;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.np-top-action:hover,
.np-top-action:focus {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.np-top-action-whatsapp { background: linear-gradient(135deg, #22c55e, #16a34a); }
.np-top-action-telegram { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.np-top-action-apk { background: linear-gradient(135deg, #4ade80, #22c55e); }

.np-featured-section .np-trending-rail,
.np-trending-section .np-trending-rail {
  padding-bottom: 22px;
}

.np-featured-section .np-card,
.np-trending-section .np-card {
  transform: translateZ(0);
}

.np-popular-downloads-section,
.np-recently-updated-section {
  padding-top: 30px;
}

.np-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.np-card:hover,
.np-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
}

.np-card-cover {
  position: relative;
  overflow: hidden;
}

.np-card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
  pointer-events: none;
}

.np-latest-section,
.np-popular-downloads-section,
.np-recently-updated-section,
.np-category-block {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.np-section-header-row .np-link {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .np-top-actions-inner {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .np-top-actions-inner::-webkit-scrollbar {
    display: none;
  }

  .np-top-action {
    min-width: max-content;
    min-height: 34px;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .np-section {
    padding: 30px 0;
  }

  .np-trending-section {
    padding-top: 18px;
  }
}


/* NovelPress v0.9.4 production polish */
.np-alert { border: 1px solid var(--np-border); border-radius: 16px; padding: 14px 16px; margin: 18px 0; background: rgba(59, 130, 246, 0.12); color: var(--np-text); }
.np-alert-info { border-color: rgba(96, 165, 250, 0.35); }
.np-ad-slot { max-width: var(--np-container); margin: 18px auto; padding: 10px; text-align: center; border-radius: 14px; overflow: hidden; }
.np-ad-slot-header { margin-top: 10px; }
.np-download-delay-card { text-align: center; max-width: 720px; margin: 0 auto; }
.np-delay-count { width: 88px; height: 88px; border-radius: 999px; display: inline-grid; place-items: center; margin: 20px auto; font-size: 2rem; font-weight: 900; color: #111827; background: linear-gradient(135deg, var(--np-primary), var(--np-primary-2)); box-shadow: var(--np-shadow); }
.np-button.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: auto; }
.np-reader-progress { color: var(--np-primary-2); font-weight: 800; }
.np-seo-score-card { grid-column: 1 / -1; border: 1px solid rgba(250, 204, 21, .25); border-radius: 14px; padding: 14px; background: rgba(250, 204, 21, .07); }
@media (max-width: 760px) { .np-ad-slot { margin-left: 14px; margin-right: 14px; } }
@media (min-width: 769px) { .np-ad-slot-mobile { display: none; } }
@media (max-width: 768px) { .np-ad-slot-desktop { display: none; } }

/* NovelPress Memberships v0.9.7 */
.np-account-form{max-width:720px;margin:0 auto;display:grid;gap:14px;padding:24px}.np-account-form label{display:grid;gap:8px;font-weight:700}.np-account-form input,.np-account-form select,.np-account-form textarea{width:100%;border:1px solid var(--np-border,rgba(148,163,184,.22));background:var(--np-card,#101827);color:var(--np-text,#f8fafc);border-radius:14px;padding:12px 14px}.np-plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.np-plan-card{padding:22px;display:grid;gap:10px;position:relative;overflow:hidden}.np-plan-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(245,158,11,.18),transparent 45%);pointer-events:none}.np-plan-card>*{position:relative}.np-plan-price{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:900;letter-spacing:-.04em;margin:0;color:var(--np-accent,#f59e0b)}.np-reader-dashboard{padding:24px}.np-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.np-dashboard-card{border:1px solid var(--np-border,rgba(148,163,184,.22));background:rgba(15,23,42,.45);border-radius:20px;padding:18px;display:grid;gap:6px}.np-dashboard-card strong{font-size:1.25rem}.np-dashboard-card span{font-size:.85rem;opacity:.72}.np-access-box{margin:18px 0;padding:20px;border-color:rgba(245,158,11,.38)!important;background:linear-gradient(135deg,rgba(245,158,11,.12),rgba(15,23,42,.75))!important}.np-inline-form{display:inline-flex;margin:0}.np-button-disabled{filter:saturate(.75);opacity:.9}.np-access-badge{position:absolute;z-index:2;top:10px;left:10px;background:linear-gradient(135deg,#f59e0b,#f97316);color:#111827;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:900;box-shadow:0 12px 24px rgba(0,0,0,.28)}.np-card-cover{position:relative}.np-public-table{width:100%;border-collapse:collapse;margin-top:16px}.np-public-table th,.np-public-table td{border-bottom:1px solid var(--np-border,rgba(148,163,184,.22));padding:10px;text-align:left}.np-wallet-card{padding:24px}.np-alert-success{background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.28);color:var(--np-text,#f8fafc)}.np-alert-warning{background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.28);color:var(--np-text,#f8fafc)}.np-alert-info{background:rgba(59,130,246,.12);border:1px solid rgba(59,130,246,.28);color:var(--np-text,#f8fafc)}.np-alert{border-radius:16px;padding:14px 16px;margin:12px 0}


/* NovelPress v0.9.9: homepage label cleanup and card badge fix */
.np-trending-section .np-kicker,
.np-trending-section .np-pill {
  display: none !important;
}

.np-card-cover > span:not(.np-access-badge):not(.screen-reader-text),
.np-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--np-primary-2);
  font-weight: 900;
}

.np-card-cover .np-access-badge {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.np-card-cover .np-access-badge:empty {
  display: none;
}

.np-card-cover::after {
  z-index: 1;
}

.np-card-cover img,
.np-card-cover > span:not(.np-access-badge):not(.screen-reader-text) {
  position: relative;
  z-index: 0;
}

@media (max-width: 720px) {
  .np-card-cover .np-access-badge {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 0.62rem;
  }
}
