:root {
    --nji-bg: #f8fafc;
    --nji-surface: #ffffff;
    --nji-ink: #101827;
    --nji-muted: #64748b;
    --nji-line: #e2e8f0;
    --nji-primary: #0f172a;
    --nji-accent: #d97706;
    --nji-accent-2: #f59e0b;
    --nji-soft: #fff7ed;
    --nji-green: #16a34a;
    --nji-red: #dc2626;
    --nji-shadow: 0 20px 55px rgba(15, 23, 42, .10);
    --nji-radius: 24px;
    --nji-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nji-site, body.nji-auth-body { margin: 0; font-family: var(--nji-font); background: var(--nji-bg); color: var(--nji-ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.nji-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.nji-main { min-height: 60vh; }
.nji-top-strip { background: #0f172a; color: #fde68a; font-size: 13px; }
.nji-top-strip-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nji-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--nji-line); }
.nji-nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 22px; }
.nji-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 210px; }
.nji-brand-mark { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(135deg, var(--nji-accent), var(--nji-accent-2)); color: #111827; font-weight: 950; box-shadow: 0 14px 30px rgba(245,158,11,.25); }
.nji-brand-text { display: grid; line-height: 1.05; }
.nji-brand-text b { font-size: 17px; letter-spacing: -.03em; }
.nji-brand-text small { color: var(--nji-muted); font-size: 12px; margin-top: 4px; }
.nji-main-nav { display: flex; align-items: center; gap: 18px; flex: 1; }
.nji-main-nav a { text-decoration: none; color: #334155; font-weight: 760; font-size: 14px; }
.nji-main-nav a:hover { color: var(--nji-accent); }
.nji-user-actions { display: flex; align-items: center; gap: 10px; }
.nji-header-search { display: flex; background: #f1f5f9; border: 1px solid var(--nji-line); border-radius: 999px; padding: 5px; }
.nji-header-search input { width: 190px; border: 0; background: transparent; padding: 10px 12px; outline: 0; }
.nji-header-search button, .nji-pill-btn, .nji-ghost-btn { border: 0; border-radius: 999px; padding: 10px 15px; text-decoration: none; font-weight: 850; font-size: 13px; }
.nji-header-search button, .nji-pill-btn { background: var(--nji-primary); color: #fff; }
.nji-ghost-btn { background: #f8fafc; color: var(--nji-primary); border: 1px solid var(--nji-line); }
.nji-menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--nji-line); border-radius: 15px; background: #fff; gap: 4px; flex-direction: column; justify-content: center; align-items: center; }
.nji-menu-toggle span { width: 18px; height: 2px; background: var(--nji-primary); border-radius: 3px; }
.nji-category-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 14px; }
.nji-category-strip a { flex: 0 0 auto; text-decoration: none; background: #f8fafc; border: 1px solid var(--nji-line); border-radius: 999px; padding: 9px 13px; color: #475569; font-weight: 750; font-size: 13px; }
.nji-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 10% 20%, rgba(245,158,11,.22), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #111827 100%); color: #fff; padding: 70px 0; }
.nji-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.nji-eyebrow { color: var(--nji-accent); font-weight: 900; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; margin: 0 0 10px; }
.nji-hero .nji-eyebrow, .nji-footer .nji-eyebrow { color: #fde68a; }
.nji-hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: .95; letter-spacing: -.075em; margin: 0 0 20px; max-width: 820px; }
.nji-hero p { color: #cbd5e1; font-size: 18px; line-height: 1.7; max-width: 640px; }
.nji-hero-search { display: flex; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 8px; border-radius: 22px; max-width: 650px; margin-top: 28px; }
.nji-hero-search input { flex: 1; border: 0; background: rgba(255,255,255,.95); border-radius: 16px; padding: 15px 16px; outline: 0; min-width: 0; }
.nji-hero-search button { border: 0; border-radius: 16px; padding: 0 22px; background: linear-gradient(135deg, var(--nji-accent), var(--nji-accent-2)); color: #111827; font-weight: 950; }
.nji-hero-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.nji-hero-stats span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 12px 14px; border-radius: 16px; color: #e2e8f0; }
.nji-hero-stats b { color: #fff; font-size: 18px; }
.nji-hero-feature { position: relative; min-height: 430px; display: grid; place-items: end; }
.nji-hero-feature > img { width: min(360px, 80%); aspect-ratio: 3/4.25; object-fit: cover; border-radius: 30px; box-shadow: 0 40px 120px rgba(0,0,0,.45); transform: rotate(4deg); }
.nji-hero-feature-card { position: absolute; left: 0; bottom: 20px; width: min(360px, 90%); background: rgba(255,255,255,.94); color: var(--nji-ink); border-radius: 26px; padding: 20px; box-shadow: var(--nji-shadow); }
.nji-hero-feature-card h2 { margin: 10px 0 8px; letter-spacing: -.04em; }
.nji-hero-feature-card p { color: var(--nji-muted); font-size: 14px; margin: 0 0 12px; }
.nji-hero-feature-card a { color: var(--nji-accent); font-weight: 900; text-decoration: none; }
.nji-section { padding: 58px 0; }
.nji-section-soft { background: #fff; }
.nji-section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 24px; }
.nji-section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.055em; }
.nji-section-head p:not(.nji-eyebrow) { margin: 8px 0 0; color: var(--nji-muted); }
.nji-link-btn { background: var(--nji-primary); color: #fff; border-radius: 999px; padding: 12px 16px; text-decoration: none; font-weight: 900; }
.nji-book-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.nji-book-grid-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nji-book-grid-scroll { overflow-x: auto; grid-auto-flow: column; grid-auto-columns: 205px; grid-template-columns: none; padding-bottom: 12px; }
.nji-book-card { min-width: 0; }
.nji-book-cover { position: relative; display: block; border-radius: 22px; overflow: hidden; background: #e2e8f0; box-shadow: var(--nji-shadow); aspect-ratio: 3/4.25; text-decoration: none; }
.nji-book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nji-book-card:hover .nji-book-cover img { transform: scale(1.05); }
.nji-cover-glow { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgba(15,23,42,.75), transparent); }
.nji-badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(15,23,42,.86); color: #fff; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .07em; }
.nji-badge-free { background: var(--nji-green); }
.nji-badge-premium, .nji-badge-paid { background: linear-gradient(135deg, var(--nji-accent), var(--nji-accent-2)); color: #111827; }
.nji-badge-preview { background: #2563eb; }
.nji-book-info { padding: 13px 4px 0; }
.nji-book-cat { color: var(--nji-accent); text-decoration: none; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.nji-book-info h3 { margin: 7px 0 5px; font-size: 16px; line-height: 1.25; letter-spacing: -.03em; }
.nji-book-info h3 a { text-decoration: none; }
.nji-book-author, .nji-book-desc { color: var(--nji-muted); font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.nji-book-meta { display: flex; gap: 8px; flex-wrap: wrap; color: #94a3b8; font-size: 12px; }
.nji-ad { width: min(1180px, calc(100% - 32px)); margin: 30px auto; background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px; padding: 14px; text-align: center; color: #94a3b8; overflow: hidden; }
.nji-ad span { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.nji-blog-grid, .nji-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nji-blog-card a, .nji-collection-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--nji-line); border-radius: 24px; overflow: hidden; box-shadow: var(--nji-shadow); }
.nji-blog-card img { width: 100%; height: 220px; object-fit: cover; }
.nji-blog-card span { display: inline-flex; margin: 18px 18px 0; color: var(--nji-accent); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.nji-blog-card h3, .nji-blog-card p { margin-left: 18px; margin-right: 18px; }
.nji-blog-card p { color: var(--nji-muted); line-height: 1.6; padding-bottom: 10px; }
.nji-page-hero { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 54px 0; }
.nji-page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.06em; margin: 0 0 10px; }
.nji-page-hero p:not(.nji-eyebrow) { color: #cbd5e1; max-width: 760px; }
.nji-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.nji-archive-layout .nji-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nji-sidebar { display: grid; gap: 18px; }
.nji-side-box, .nji-panel { background: #fff; border: 1px solid var(--nji-line); border-radius: 24px; padding: 22px; box-shadow: var(--nji-shadow); }
.nji-side-box h3, .nji-panel h2 { margin: 0 0 16px; letter-spacing: -.04em; }
.nji-mini-book { display: flex; gap: 12px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.nji-mini-book img { width: 52px; height: 72px; object-fit: cover; border-radius: 12px; }
.nji-mini-book span { display: grid; gap: 4px; }
.nji-mini-book small { color: var(--nji-muted); }
.nji-chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.nji-chip-list a { text-decoration: none; background: #f8fafc; border: 1px solid var(--nji-line); padding: 9px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.nji-chip-list span { color: var(--nji-muted); }
.nji-detail-hero { background: radial-gradient(circle at 90% 10%, rgba(245,158,11,.22), transparent 30%), linear-gradient(135deg, #0f172a, #111827); color: #fff; padding: 58px 0; }
.nji-detail-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 40px; align-items: center; }
.nji-detail-cover { position: relative; }
.nji-detail-cover img { width: 100%; aspect-ratio: 3/4.25; object-fit: cover; border-radius: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.38); }
.nji-detail-copy h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.065em; margin: 0 0 16px; }
.nji-detail-desc { color: #cbd5e1; font-size: 17px; line-height: 1.75; max-width: 820px; }
.nji-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.nji-detail-meta span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 13px; color: #e2e8f0; display: grid; gap: 5px; }
.nji-detail-meta b { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.nji-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nji-primary-action, .nji-secondary-action { border-radius: 16px; padding: 14px 18px; font-weight: 950; text-decoration: none; display: inline-flex; }
.nji-primary-action { background: linear-gradient(135deg, var(--nji-accent), var(--nji-accent-2)); color: #111827; }
.nji-secondary-action { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.nji-lock-note { color: #fde68a; }
.nji-description { color: #334155; line-height: 1.8; }
.nji-detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nji-detail-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.nji-detail-list span { color: var(--nji-muted); }
.nji-detail-list a { color: var(--nji-accent); font-weight: 900; text-decoration: none; }
.nji-review-item { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 12px; }
.nji-review-item p { color: var(--nji-muted); }
.nji-reader-shell .nji-category-strip, .nji-reader-shell .nji-top-strip { display: none; }
.nji-reader-hero { background: #111827; color: #fff; padding: 28px 0 18px; position: sticky; top: 82px; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.1); }
.nji-reader-titlebar { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.nji-reader-titlebar h1 { margin: 6px 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.04em; }
.nji-reader-titlebar p, .nji-back-link { color: #cbd5e1; }
.nji-back-link { text-decoration: none; font-weight: 800; }
.nji-reader-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.nji-reader-tools button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 9px 11px; cursor: pointer; font-weight: 800; }
.nji-progress { height: 7px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.nji-progress span { display: block; height: 100%; background: linear-gradient(135deg, var(--nji-accent), var(--nji-accent-2)); }
.nji-reader-section { padding: 34px 0 70px; }
.nji-reader-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.nji-reader-card, .nji-chapter-panel { background: #fff; border: 1px solid var(--nji-line); border-radius: 26px; box-shadow: var(--nji-shadow); }
.nji-reader-card { padding: clamp(22px, 5vw, 58px); }
.nji-reader-content { font-family: Georgia, Cambria, "Times New Roman", serif; color: #1f2937; font-size: 20px; line-height: 2.05; overflow-wrap: anywhere; }
body.nji-reader-dark { background: #0f172a; }
body.nji-reader-dark .nji-reader-card, body.nji-reader-dark .nji-chapter-panel { background: #111827; border-color: #263244; }
body.nji-reader-dark .nji-reader-content { color: #e5e7eb; }
body.nji-reader-sepia { background: #f4ecd8; }
body.nji-reader-sepia .nji-reader-card, body.nji-reader-sepia .nji-chapter-panel { background: #fff8e8; }
.nji-reader-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.nji-reader-nav a, .nji-reader-nav span { text-decoration: none; border-radius: 999px; padding: 12px 16px; font-weight: 950; background: #f8fafc; border: 1px solid var(--nji-line); }
.nji-reader-nav a:last-child { background: var(--nji-primary); color: #fff; }
.nji-reader-nav .disabled { color: #94a3b8; }
.nji-chapter-panel { padding: 20px; position: sticky; top: 190px; max-height: calc(100vh - 220px); overflow: auto; }
.nji-chapter-panel h2 { margin: 0 0 12px; }
.nji-chapter-panel select { width: 100%; border: 1px solid var(--nji-line); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.nji-chapter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nji-chapter-list a { text-decoration: none; background: #f8fafc; border: 1px solid var(--nji-line); border-radius: 12px; padding: 10px; font-weight: 800; font-size: 13px; }
.nji-chapter-list a.active { background: var(--nji-primary); color: #fff; }
.nji-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.nji-pagination a { text-decoration: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--nji-line); border-radius: 13px; background: #fff; font-weight: 900; }
.nji-pagination a.active { background: var(--nji-primary); color: #fff; }
.nji-collection-card { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; padding: 12px; align-items: center; }
.nji-collection-card img { width: 110px; height: 140px; object-fit: cover; border-radius: 18px; }
.nji-collection-card span { color: var(--nji-accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.nji-collection-card h3 { margin: 7px 0; letter-spacing: -.04em; }
.nji-collection-card p { color: var(--nji-muted); margin: 0; line-height: 1.5; }
.nji-archive-search, .nji-footer-search { display: flex; gap: 10px; margin-top: 20px; max-width: 720px; }
.nji-archive-search input, .nji-archive-search select, .nji-footer-search input { flex: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; padding: 14px; min-width: 0; }
.nji-archive-search button, .nji-footer-search button { border: 0; border-radius: 15px; padding: 0 18px; background: var(--nji-accent); color: #111827; font-weight: 950; }
.nji-empty { background: #fff; border: 1px solid var(--nji-line); border-radius: 24px; padding: 40px; text-align: center; }
.nji-footer { background: #0f172a; color: #e2e8f0; padding: 50px 0 26px; }
.nji-footer-cta { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 24px; align-items: center; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.nji-footer h2 { font-size: clamp(28px,4vw,42px); margin: 0 0 8px; letter-spacing: -.05em; }
.nji-footer p { color: #cbd5e1; }
.nji-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 24px; margin-top: 34px; }
.nji-footer-grid h3 { color: #fff; }
.nji-footer-grid a { display: block; color: #cbd5e1; text-decoration: none; margin: 9px 0; }
.nji-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 28px; color: #94a3b8; }
.nji-footer-bottom a { color: #fde68a; text-decoration: none; }
.nji-auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top left, rgba(245,158,11,.2), transparent 30%), linear-gradient(135deg,#0f172a,#111827); padding: 20px; }
.nji-auth-wrap { width: min(980px,100%); display: grid; grid-template-columns: 1fr 420px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 30px; overflow: hidden; color: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.nji-auth-branding { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.nji-auth-branding h1 { font-size: clamp(36px,5vw,56px); line-height: 1; letter-spacing: -.06em; }
.nji-auth-branding p { color: #cbd5e1; line-height: 1.7; }
.nji-auth-card { background: #fff; color: var(--nji-ink); padding: 42px; }
.nji-auth-card h2 { font-size: 32px; letter-spacing: -.05em; }
.nji-auth-card form { display: grid; gap: 16px; }
.nji-auth-card label { display: grid; gap: 8px; color: #334155; font-weight: 800; }
.nji-auth-card input { border: 1px solid var(--nji-line); border-radius: 15px; padding: 14px; outline: none; }
.nji-auth-card input:focus { border-color: var(--nji-accent); box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.nji-auth-card button { border: 0; border-radius: 15px; background: var(--nji-primary); color: #fff; padding: 15px; font-weight: 950; }
.nji-auth-card a { color: var(--nji-accent); font-weight: 900; text-decoration: none; }
.overlay2 { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; background: rgba(15,23,42,.72); z-index: 99999; }
.d-none { display: none !important; }
.nji-loading-spinner { width: 54px; height: 54px; border-radius: 999px; border: 4px solid rgba(255,255,255,.3); border-top-color: var(--nji-accent); animation: njiSpin .8s linear infinite; }
@keyframes njiSpin { to { transform: rotate(360deg); } }
@media (max-width: 1080px) { .nji-book-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } .nji-book-grid-compact { grid-template-columns: repeat(4, minmax(0,1fr)); } .nji-two-col, .nji-reader-grid { grid-template-columns: 1fr; } .nji-sidebar, .nji-chapter-panel { position: static; max-height: none; } }
@media (max-width: 860px) { .nji-nav-wrap { flex-wrap: wrap; } .nji-menu-toggle { display: flex; margin-left: auto; } .nji-main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--nji-line); border-radius: 20px; padding: 14px; } .nji-main-nav.is-open { display: flex; } .nji-user-actions { flex-basis: 100%; justify-content: stretch; flex-wrap: wrap; } .nji-header-search { flex: 1 1 100%; } .nji-header-search input { width: 100%; } .nji-hero-grid, .nji-detail-grid, .nji-footer-cta, .nji-auth-wrap { grid-template-columns: 1fr; } .nji-hero-feature { min-height: 360px; } .nji-detail-cover { max-width: 310px; } .nji-detail-meta { grid-template-columns: repeat(2, minmax(0,1fr)); } .nji-footer-grid { grid-template-columns: repeat(2,1fr); } .nji-reader-titlebar { align-items: flex-start; flex-direction: column; } .nji-reader-hero { top: 82px; } }
@media (max-width: 640px) { .nji-top-hide-mobile { display: none; } .nji-container { width: min(100% - 22px, 1180px); } .nji-hero { padding: 44px 0; } .nji-hero-search, .nji-archive-search, .nji-footer-search { flex-direction: column; } .nji-book-grid, .nji-book-grid-compact, .nji-archive-layout .nji-book-grid, .nji-blog-grid, .nji-collection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; } .nji-section-head { align-items: start; flex-direction: column; } .nji-detail-meta { grid-template-columns: 1fr; } .nji-reader-card { padding: 20px; } .nji-reader-content { font-size: 18px; line-height: 1.9; } .nji-chapter-list { grid-template-columns: 1fr; } .nji-footer-grid { grid-template-columns: 1fr; } .nji-footer-bottom { flex-direction: column; } .nji-auth-branding, .nji-auth-card { padding: 28px; } }
@media (max-width: 420px) { .nji-book-grid, .nji-book-grid-compact, .nji-archive-layout .nji-book-grid, .nji-blog-grid, .nji-collection-grid { grid-template-columns: 1fr; } .nji-book-card { display: grid; grid-template-columns: 110px 1fr; gap: 13px; align-items: center; } .nji-book-cover { aspect-ratio: 3/4.1; } .nji-book-info { padding-top: 0; } }

/* --------------------------------------------------------------------------
   Namijind Pro Frontend Hotfix v7.1
   - Stops public header/reader toolbar from covering content while scrolling.
   - Makes HotFlix and Classic visibly different themes.
-------------------------------------------------------------------------- */
html {
    scroll-padding-top: 24px;
}
[id], section, article {
    scroll-margin-top: 24px;
}
.nji-header {
    position: relative !important;
    top: auto !important;
    z-index: 25;
}
.nji-main {
    position: relative;
    z-index: 1;
}
.nji-reader-hero {
    position: relative !important;
    top: auto !important;
    z-index: 10;
}
.nji-chapter-panel {
    top: 24px !important;
}
.nji-page-hero,
.nji-hero,
.nji-detail-hero,
.nji-reader-hero {
    clear: both;
}
.nji-category-strip {
    min-height: 42px;
}
@media (max-width: 860px) {
    .nji-nav-wrap {
        align-items: center;
    }
    .nji-main-nav.is-open {
        position: relative;
        z-index: 40;
    }
    .nji-user-actions {
        position: relative;
        z-index: 30;
    }
}

/* HotFlix: dark cinematic streaming style */
body.nji-theme-hotflix {
    --nji-bg: #050816;
    --nji-surface: #0f172a;
    --nji-ink: #f8fafc;
    --nji-muted: #94a3b8;
    --nji-line: rgba(255,255,255,.10);
    --nji-primary: #f59e0b;
    --nji-accent: #f59e0b;
    --nji-accent-2: #fb7185;
    --nji-soft: #111827;
    background: #050816;
    color: #f8fafc;
}
.nji-theme-hotflix .nji-top-strip {
    background: #020617;
    color: #fbbf24;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nji-theme-hotflix .nji-header {
    background: linear-gradient(180deg, rgba(2,6,23,.98), rgba(15,23,42,.96));
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 60px rgba(0,0,0,.32);
}
.nji-theme-hotflix .nji-brand-text small,
.nji-theme-hotflix .nji-main-nav a,
.nji-theme-hotflix .nji-book-author,
.nji-theme-hotflix .nji-book-desc,
.nji-theme-hotflix .nji-book-meta,
.nji-theme-hotflix .nji-section-head p:not(.nji-eyebrow) {
    color: #a7b0c0;
}
.nji-theme-hotflix .nji-main-nav a:hover { color: #fbbf24; }
.nji-theme-hotflix .nji-header-search,
.nji-theme-hotflix .nji-main-nav.is-open {
    background: rgba(15,23,42,.92);
    border-color: rgba(255,255,255,.12);
}
.nji-theme-hotflix .nji-header-search input { color: #f8fafc; }
.nji-theme-hotflix .nji-header-search input::placeholder { color: #94a3b8; }
.nji-theme-hotflix .nji-ghost-btn,
.nji-theme-hotflix .nji-menu-toggle,
.nji-theme-hotflix .nji-category-strip a,
.nji-theme-hotflix .nji-reader-nav a,
.nji-theme-hotflix .nji-reader-nav span,
.nji-theme-hotflix .nji-chip-list a {
    background: rgba(255,255,255,.07);
    color: #f8fafc;
    border-color: rgba(255,255,255,.12);
}
.nji-theme-hotflix .nji-pill-btn,
.nji-theme-hotflix .nji-link-btn,
.nji-theme-hotflix .nji-pagination a.active,
.nji-theme-hotflix .nji-chapter-list a.active {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    color: #111827;
}
.nji-theme-hotflix .nji-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(251,113,133,.25), transparent 28%),
        radial-gradient(circle at 10% 20%, rgba(245,158,11,.24), transparent 32%),
        linear-gradient(135deg, #020617 0%, #111827 52%, #3f0b17 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nji-theme-hotflix .nji-hero h1,
.nji-theme-hotflix .nji-section-head h2,
.nji-theme-hotflix .nji-book-info h3,
.nji-theme-hotflix .nji-side-box h3,
.nji-theme-hotflix .nji-panel h2 {
    color: #f8fafc;
}
.nji-theme-hotflix .nji-section-soft,
.nji-theme-hotflix .nji-hotflix-latest {
    background: #080d1d;
}
.nji-theme-hotflix .nji-book-cover {
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.nji-theme-hotflix .nji-book-info {
    background: transparent;
}
.nji-theme-hotflix .nji-side-box,
.nji-theme-hotflix .nji-panel,
.nji-theme-hotflix .nji-blog-card a,
.nji-theme-hotflix .nji-collection-card,
.nji-theme-hotflix .nji-reader-card,
.nji-theme-hotflix .nji-chapter-panel,
.nji-theme-hotflix .nji-empty,
.nji-theme-hotflix .nji-hero-feature-card {
    background: #0f172a;
    border-color: rgba(255,255,255,.10);
    color: #f8fafc;
}
.nji-theme-hotflix .nji-hero-feature-card p,
.nji-theme-hotflix .nji-blog-card p,
.nji-theme-hotflix .nji-collection-card p,
.nji-theme-hotflix .nji-detail-list span,
.nji-theme-hotflix .nji-review-item p {
    color: #94a3b8;
}
.nji-theme-hotflix .nji-ad {
    background: #0f172a;
    border-color: rgba(245,158,11,.38);
    color: #94a3b8;
}
.nji-theme-hotflix .nji-footer {
    background: #020617;
}
.nji-theme-hotflix .nji-hotflix-rail .nji-book-card {
    transform: translateZ(0);
}
.nji-theme-hotflix .nji-hotflix-rail .nji-book-card:hover .nji-book-cover {
    box-shadow: 0 30px 90px rgba(251,113,133,.22);
}

/* Classic: warm paper/book-library style */
body.nji-theme-classic {
    --nji-bg: #fbf6ea;
    --nji-surface: #fffaf0;
    --nji-ink: #2f2418;
    --nji-muted: #7c6752;
    --nji-line: #eadfca;
    --nji-primary: #5b3417;
    --nji-accent: #b7791f;
    --nji-accent-2: #d6a744;
    --nji-soft: #fff7e3;
    background: #fbf6ea;
    color: #2f2418;
}
.nji-theme-classic .nji-top-strip {
    background: #5b3417;
    color: #fff1c7;
}
.nji-theme-classic .nji-header {
    background: #fffaf0;
    border-bottom: 1px solid #eadfca;
    box-shadow: 0 14px 30px rgba(91,52,23,.08);
}
.nji-theme-classic .nji-brand-mark {
    border-radius: 999px;
    background: #5b3417;
    color: #fff1c7;
    box-shadow: none;
}
.nji-theme-classic .nji-brand-text b,
.nji-theme-classic .nji-main-nav a,
.nji-theme-classic .nji-section-head h2,
.nji-theme-classic .nji-hero h1,
.nji-theme-classic .nji-book-info h3 {
    color: #2f2418;
}
.nji-theme-classic .nji-brand-text small,
.nji-theme-classic .nji-section-head p:not(.nji-eyebrow),
.nji-theme-classic .nji-book-author,
.nji-theme-classic .nji-book-desc,
.nji-theme-classic .nji-book-meta {
    color: #7c6752;
}
.nji-theme-classic .nji-header-search,
.nji-theme-classic .nji-main-nav.is-open,
.nji-theme-classic .nji-category-strip a,
.nji-theme-classic .nji-ghost-btn,
.nji-theme-classic .nji-menu-toggle {
    background: #fff4dc;
    border-color: #eadfca;
    color: #2f2418;
}
.nji-theme-classic .nji-hero {
    background:
        linear-gradient(90deg, rgba(91,52,23,.08) 1px, transparent 1px),
        linear-gradient(#fff8e8, #f2e2bf);
    background-size: 32px 32px, auto;
    color: #2f2418;
    border-bottom: 1px solid #eadfca;
}
.nji-theme-classic .nji-hero p {
    color: #6f5842;
}
.nji-theme-classic .nji-hero .nji-eyebrow,
.nji-theme-classic .nji-footer .nji-eyebrow,
.nji-theme-classic .nji-eyebrow,
.nji-theme-classic .nji-book-cat,
.nji-theme-classic .nji-blog-card span,
.nji-theme-classic .nji-collection-card span {
    color: #a16207;
}
.nji-theme-classic .nji-hero-search {
    background: rgba(255,250,240,.86);
    border-color: #eadfca;
}
.nji-theme-classic .nji-hero-search input,
.nji-theme-classic .nji-archive-search input,
.nji-theme-classic .nji-archive-search select,
.nji-theme-classic .nji-footer-search input {
    background: #fffaf0;
    border-color: #eadfca;
    color: #2f2418;
}
.nji-theme-classic .nji-hero-search button,
.nji-theme-classic .nji-archive-search button,
.nji-theme-classic .nji-footer-search button,
.nji-theme-classic .nji-pill-btn,
.nji-theme-classic .nji-link-btn,
.nji-theme-classic .nji-pagination a.active,
.nji-theme-classic .nji-chapter-list a.active {
    background: #5b3417;
    color: #fff7dc;
}
.nji-theme-classic .nji-section-soft,
.nji-theme-classic .nji-classic-category-section {
    background: #fff4dc;
}
.nji-theme-classic .nji-book-cover {
    border-radius: 12px 20px 20px 12px;
    border: 1px solid rgba(91,52,23,.16);
    box-shadow: 10px 14px 0 rgba(91,52,23,.08), 0 18px 40px rgba(91,52,23,.10);
}
.nji-theme-classic .nji-book-cover::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: rgba(91,52,23,.16);
    z-index: 1;
}
.nji-theme-classic .nji-side-box,
.nji-theme-classic .nji-panel,
.nji-theme-classic .nji-blog-card a,
.nji-theme-classic .nji-collection-card,
.nji-theme-classic .nji-reader-card,
.nji-theme-classic .nji-chapter-panel,
.nji-theme-classic .nji-empty,
.nji-theme-classic .nji-hero-feature-card,
.nji-theme-classic .nji-ad {
    background: #fffaf0;
    border-color: #eadfca;
    color: #2f2418;
    box-shadow: 0 18px 40px rgba(91,52,23,.08);
}
.nji-theme-classic .nji-hero-feature > img {
    transform: rotate(-2deg);
    border-radius: 12px 24px 24px 12px;
    border: 8px solid #fffaf0;
    box-shadow: 14px 18px 0 rgba(91,52,23,.10), 0 30px 70px rgba(91,52,23,.18);
}
.nji-theme-classic .nji-footer {
    background: #3f260f;
}
.nji-theme-classic .nji-reader-content {
    color: #33251a;
}

@media (max-width: 640px) {
    .nji-header {
        position: relative !important;
    }
    .nji-category-strip {
        padding-bottom: 10px;
    }
    .nji-reader-hero {
        padding-top: 22px;
    }
}
