/* Najibul Scripture UI — scoped, mobile-first, high-retention reader */
.njp-scripture-shell{--njp-s-primary:#6d28d9;--njp-s-accent:#06b6d4;--njp-s-ink:#0f172a;--njp-s-muted:#64748b;--njp-s-card:#ffffff;--njp-s-soft:#f1f5f9;max-width:980px;margin:0 auto;padding:18px 14px 80px;color:var(--njp-s-ink);font-family:Inter,"Noto Sans Bengali","Noto Sans Devanagari",system-ui,sans-serif}
.njp-scripture-shell *{box-sizing:border-box}

/* One-line control card */
.njp-scripture-control-card{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border:1px solid rgba(109,40,217,.16);border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.08);padding:12px 14px;width:max-content;max-width:100%;margin:0 auto 20px}
.njp-scripture-sr-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.njp-scripture-control-line{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;flex-wrap:nowrap}
.njp-scripture-search-form{display:flex;gap:5px;flex:0 1 460px;width:460px;max-width:460px;min-width:0}
.njp-scripture-search-form input{flex:1;min-width:0;border:1px solid #e2e8f0;border-radius:10px;padding:8px 11px;font-size:.86rem;outline:none;height:38px}
.njp-scripture-search-form input:focus{border-color:var(--njp-s-primary);box-shadow:0 0 0 3px rgba(109,40,217,.12)}
.njp-scripture-search-submit,.njp-scripture-voice-btn{border:0;border-radius:10px;background:var(--njp-s-ink);color:#fff;width:36px;min-width:36px;height:38px;cursor:pointer;font-size:.95rem}
.njp-scripture-voice-btn{background:linear-gradient(135deg,#06b6d4,#3b82f6)}
.njp-scripture-religion-btn{border:1px solid #ddd6fe;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;border-radius:12px;padding:10px 12px;font-weight:700;font-size:.8rem;display:inline-flex;gap:6px;align-items:center;cursor:pointer;transition:.2s;white-space:nowrap;flex:0 0 auto}
.njp-scripture-religion-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(109,40,217,.28)}
.njp-scripture-lang-wrap{position:relative;flex:0 0 auto}
.njp-scripture-lang-select{appearance:none;-webkit-appearance:none;border:1px solid #e2e8f0;background:#fff;border-radius:10px;padding:8px 28px 8px 10px;font-size:.78rem;font-weight:800;color:var(--njp-s-ink);cursor:pointer;max-width:126px;height:38px}
.njp-scripture-lang-caret{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:.6rem;color:var(--njp-s-primary);pointer-events:none}
/* Real ncdm dropdown slot — one trigger, placed above the search card on archives */
.njp-scripture-ncdm-top{margin:0 0 12px;text-align:center}
.njp-scripture-ncdm-top .ncdm-advanced-container{display:inline-block;vertical-align:middle}
.njp-scripture-ncdm-slot .ncdm-advanced-container{display:inline-block;vertical-align:middle}
.njp-scripture-ncdm-slot .ncdm-trigger-btn{border-radius:12px !important;padding:10px 14px !important;font-weight:800 !important;box-shadow:0 6px 16px rgba(109,40,217,.18)}

/* Premium category-style popup — hidden by default, author CSS must not override [hidden] */
.njp-scripture-popup-overlay[hidden]{display:none !important}
.njp-scripture-popup-overlay{position:fixed;inset:0;z-index:90;background:rgba(15,23,42,.55);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px}
.njp-scripture-popup{width:min(480px,100%);max-height:min(78vh,680px);overflow:hidden;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(15,23,42,.35);display:flex;flex-direction:column;animation:njpPopIn .22s ease}
@keyframes njpPopIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.njp-scripture-popup-header{background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;padding:18px 20px;display:flex;justify-content:space-between;align-items:flex-start}
.njp-scripture-popup-kicker{font-size:.62rem;letter-spacing:.12em;font-weight:900;opacity:.8}
.njp-scripture-popup-header h2{margin:4px 0 0;font-size:1.15rem;letter-spacing:-.02em}
.njp-scripture-popup-close{border:0;background:rgba(255,255,255,.18);color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:.9rem}
.njp-scripture-popup-body{padding:14px 16px 18px;overflow-y:auto}
.njp-scripture-popup-search-wrap{position:relative;margin-bottom:12px}
.njp-scripture-popup-search{width:100%;border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px;font-size:.86rem;outline:none}
.njp-scripture-popup-search:focus{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.njp-scripture-popup-meta{display:flex;justify-content:space-between;font-size:.64rem;font-weight:900;color:var(--njp-s-muted);letter-spacing:.06em;margin:6px 2px 8px}
.njp-scripture-popup-section-label{font-size:.65rem;font-weight:900;color:#dc2626;letter-spacing:.06em;margin:6px 2px 8px}
.njp-scripture-popup-list{display:flex;flex-direction:column;gap:6px}
.njp-scripture-popup-row{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px;text-align:left;cursor:pointer;text-decoration:none;color:inherit;transition:.18s}
.njp-scripture-popup-row:hover{border-color:#c4b5fd;background:#faf5ff;transform:translateY(-1px)}
.njp-scripture-popup-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f5f3ff;display:grid;place-items:center;font-size:1.05rem}
.njp-scripture-popup-row-body{flex:1;min-width:0}
.njp-scripture-popup-row-body strong{display:block;font-size:.86rem}
.njp-scripture-popup-row-body small{display:block;color:var(--njp-s-muted);font-size:.68rem;margin-top:2px}
.njp-scripture-popup-arrow{color:#a78bfa;font-size:1.2rem}
.njp-scripture-popup-back{border:0;background:none;color:#6d28d9;font-size:.78rem;font-weight:800;cursor:pointer;margin-bottom:8px;padding:4px 0}
.njp-scripture-popup-tradition-head{display:flex;align-items:center;gap:10px;margin:8px 2px 12px;font-size:1rem}
.njp-scripture-panel-loading,.njp-scripture-panel-empty{font-size:.82rem;color:var(--njp-s-muted);padding:10px 2px}

.njp-scripture-audio-btn.master{background:linear-gradient(135deg,#7c3aed,#4f46e5)}
.njp-scripture-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:12px 0 4px}
.njp-scripture-nav-lang .njp-scripture-lang-wrap{display:inline-block}
.njp-scripture-nav-lang .njp-scripture-lang-select{height:auto;padding:8px 26px 8px 10px;font-size:.74rem;max-width:120px}
.njp-scripture-nav-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:999px;padding:8px 13px;font-size:.74rem;font-weight:800;text-decoration:none;cursor:pointer}
.njp-scripture-nav-btn:hover{border-color:#6d28d9;color:#6d28d9}
.njp-scripture-nav-btn.is-disabled{opacity:.55;cursor:not-allowed;background:#f8fafc}

/* Back button + inline search */
.njp-scripture-back{display:inline-flex;align-items:center;gap:5px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:999px;padding:7px 13px;font-size:.76rem;font-weight:800;cursor:pointer;margin:6px 0 10px;transition:.2s}
.njp-scripture-back:hover{border-color:#6d28d9;color:#6d28d9;transform:translateX(-2px)}
.njp-scripture-inline-search{display:flex;gap:6px;margin:0 auto 14px;width:100%;max-width:560px;justify-content:center}
.njp-scripture-card-topbar{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.njp-scripture-card-top-back{display:inline-flex;align-items:center;gap:5px;margin:0;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:999px;padding:7px 13px;font-size:.76rem;font-weight:800;cursor:pointer}
.njp-scripture-card-top-back:hover{border-color:#6d28d9;color:#6d28d9}
.njp-scripture-inline-search input[type=search]{flex:1;min-width:0;border:1px solid #e2e8f0;border-radius:10px;padding:9px 11px;font-size:.84rem;outline:none;height:38px}
.njp-scripture-inline-search input[type=search]:focus{border-color:#6d28d9;box-shadow:0 0 0 3px rgba(109,40,217,.12)}
.njp-scripture-inline-search button{border:0;border-radius:10px;background:#0f172a;color:#fff;width:38px;height:38px;cursor:pointer;font-size:.95rem}
.njp-scripture-inline-search button:last-child{background:linear-gradient(135deg,#06b6d4,#3b82f6)}

/* Surah view */
.njp-scripture-surah-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.njp-scripture-surah-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;margin:14px 0 10px}
.njp-scripture-surah-controls label{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:800}
.njp-scripture-surah-controls select{border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;font-weight:800;background:#fff}
.njp-scripture-master-auto{background:#f5f3ff;padding:8px 12px;border-radius:999px}
.njp-scripture-audio-options{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 14px}
.njp-scripture-audio-options label{font-size:.72rem;font-weight:700;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px;cursor:pointer}
.njp-scripture-audio-options input{accent-color:#6d28d9}
.njp-ayah-item{padding:14px 0;border-top:1px dashed #e2e8f0}
.njp-ayah-item[hidden]{display:none}
.njp-ayah-title{font-size:1rem;margin:0 0 8px;color:#6d28d9}

/* Dual audio */
.njp-scripture-audio-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.njp-scripture-audio-btn{border:0;border-radius:999px;padding:9px 14px;font-size:.78rem;font-weight:800;cursor:pointer;color:#fff}
.njp-scripture-audio-btn.arabic{background:linear-gradient(135deg,#0f766e,#06b6d4)}
.njp-scripture-audio-btn.explanation{background:linear-gradient(135deg,#ea580c,#f59e0b)}
.njp-scripture-audio-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px}
.njp-scripture-audio-controls label{display:inline-flex;align-items:center;gap:5px;font-size:.74rem;font-weight:800;color:#334155}
.njp-scripture-audio-mode{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:7px 10px;font-size:.72rem;font-weight:800;cursor:pointer;color:#475569}
.njp-scripture-audio-mode:hover{border-color:var(--njp-s-primary);color:var(--njp-s-primary)}

/* Progress */
.njp-scripture-progress{position:fixed;left:0;top:0;height:3px;width:0;background:linear-gradient(90deg,var(--njp-s-primary),var(--njp-s-accent));z-index:60;transition:width .1s linear}

/* Verified badge, no author/date */
.njp-scripture-verified{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#ecfdf5,#d1fae5);color:#065f46;border:1px solid #a7f3d0;border-radius:999px;padding:6px 11px;font-size:.74rem;font-weight:800;letter-spacing:.02em}
.njp-scripture-ref{opacity:.85}

/* Verse card */
.njp-scripture-hero{background:linear-gradient(160deg,#faf5ff,#ecfeff);border:1px solid #ede9fe;border-radius:22px;padding:20px;box-shadow:0 14px 40px rgba(15,23,42,.06);margin-bottom:16px}
.njp-scripture-hero h1{font-size:1.35rem;line-height:1.3;margin:10px 0 8px;letter-spacing:-.02em}
.njp-scripture-arabic{font-size:1.9rem;line-height:2.1;direction:rtl;text-align:right;font-family:"Noto Naskh Arabic",Amiri,serif;margin:14px 0;word-spacing:10px}
.njp-scripture-word{border:0;background:none;font:inherit;color:inherit;cursor:help;padding:2px 3px;border-radius:6px;transition:.15s}
.njp-scripture-word:hover,.njp-scripture-word:focus{background:#fde68a;color:#78350f;outline:none}
.njp-scripture-tooltip{position:absolute;z-index:80;max-width:240px;background:#0f172a;color:#fff;font-size:.78rem;line-height:1.4;padding:8px 10px;border-radius:10px;box-shadow:0 10px 25px rgba(15,23,42,.25);pointer-events:none}
.njp-scripture-translation{font-size:1.02rem;line-height:1.85;font-weight:600;margin:8px 0}
.njp-scripture-latin{font-size:.85rem;color:var(--njp-s-muted);direction:ltr;text-align:right}

/* Mode toggle */
.njp-scripture-mode{display:inline-flex;gap:4px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:4px;margin:6px 0 14px}
.njp-scripture-mode button{border:0;background:none;border-radius:999px;padding:8px 14px;font-size:.8rem;font-weight:800;color:var(--njp-s-muted);cursor:pointer}
.njp-scripture-mode button.is-active{background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;box-shadow:0 4px 12px rgba(109,40,217,.25)}
.njp-scripture-panel[hidden]{display:none}

/* Cards */
.njp-scripture-card{background:var(--njp-s-card);border:1px solid #e2e8f0;border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.njp-scripture-card h3{margin:0 0 8px;font-size:.95rem;display:flex;align-items:center;gap:8px}
.njp-scripture-card p{line-height:1.75;font-size:.9rem;margin:0 0 8px}
.njp-scripture-golden{background:linear-gradient(135deg,#fff7ed,#fef3c7);border-color:#fed7aa}
.njp-scripture-golden h3{color:#9a3412}
.njp-scripture-share{border:0;background:#ea580c;color:#fff;border-radius:999px;padding:8px 12px;font-size:.76rem;font-weight:800;cursor:pointer;margin-top:6px}
.njp-scripture-steps{counter-reset:step;list-style:none;padding:0;margin:0}
.njp-scripture-steps li{counter-increment:step;position:relative;padding:8px 8px 8px 34px;border-bottom:1px dashed #e2e8f0;font-size:.87rem;line-height:1.6}
.njp-scripture-steps li::before{content:counter(step);position:absolute;left:4px;top:8px;width:22px;height:22px;border-radius:50%;background:#ede9fe;color:#5b21b6;font-size:.72rem;font-weight:900;display:grid;place-items:center}

/* Mood filter */
.njp-scripture-moods{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.njp-scripture-mood{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:8px 12px;font-size:.78rem;font-weight:800;cursor:pointer;transition:.2s}
.njp-scripture-mood:hover,.njp-scripture-mood.is-active{background:#0f172a;color:#fff;border-color:#0f172a;transform:translateY(-1px)}

/* Quiz */
.njp-scripture-quiz-option{display:block;width:100%;text-align:left;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px 12px;margin:6px 0;font-size:.85rem;cursor:pointer;transition:.15s}
.njp-scripture-quiz-option:hover{border-color:var(--njp-s-primary)}
.njp-scripture-quiz-option.is-correct{background:#dcfce7;border-color:#16a34a;font-weight:800;animation:njpPop .35s ease}
.njp-scripture-quiz-option.is-wrong{background:#fee2e2;border-color:#dc2626}
@keyframes njpPop{0%{transform:scale(.96)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
.njp-scripture-dopamine{font-size:.8rem;font-weight:800;color:#16a34a;margin-top:6px;min-height:1.2em}

/* Archive grid */
.njp-scripture-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.njp-scripture-grid-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;text-decoration:none;color:inherit;display:block;transition:.2s}
.njp-scripture-grid-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.1);border-color:#c4b5fd}
.njp-scripture-grid-card h2{font-size:.98rem;margin:8px 0 6px}
.njp-scripture-grid-card p{font-size:.82rem;color:var(--njp-s-muted);line-height:1.6;margin:0}
.njp-scripture-empty{padding:30px;text-align:center;color:var(--njp-s-muted)}

@media(max-width:640px){
  .njp-scripture-shell{padding:10px 8px 60px}
  .njp-scripture-arabic{font-size:1.55rem}
  .njp-scripture-control-card{border-radius:14px;padding:10px;width:100%}
  .njp-scripture-control-line{gap:5px;flex-wrap:nowrap}
  .njp-scripture-search-form{gap:4px;flex:1 1 auto;width:auto;max-width:none}
  .njp-scripture-search-form input{padding:7px 9px;font-size:.8rem;height:36px}
  .njp-scripture-search-submit,.njp-scripture-voice-btn{width:32px;min-width:32px;height:36px;font-size:.9rem}
  .njp-scripture-lang-select{padding:7px 22px 7px 8px;font-size:.72rem;max-width:96px;height:36px}
  .njp-scripture-lang-caret{right:6px}
}


/* ============================================================
   NAJIBUL APP READER — theme-token based, inherits all 4 modes
   (auto / day / dark / night). Own identity, not a clone.
   ============================================================ */
.njp-app-shell{
  --app-gap:12px;
  max-width:820px;margin:0 auto;padding:14px 12px 112px;
  font-family:Inter,"Noto Sans Bengali","Noto Sans Devanagari",system-ui,sans-serif;
  color:var(--njp-text,#0f172a);
}
.njp-app-shell *{box-sizing:border-box}
.njp-app-shell [hidden]{display:none !important}

/* Top bar */
.njp-app-topbar{
  position:sticky;top:0;z-index:40;
  background:var(--njp-card,#fff);
  border:1px solid var(--njp-border,rgba(15,23,42,.1));
  border-radius:18px;padding:8px 10px;
  box-shadow:0 8px 26px rgba(0,0,0,.07);
  margin-bottom:12px;
}
.njp-app-topbar-row{display:flex;align-items:center;gap:8px;min-width:0}
.njp-app-heading{flex:1;min-width:0;line-height:1.25}
.njp-app-heading strong{display:block;font-size:1rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--njp-heading,var(--njp-text))}
.njp-app-heading small{display:block;font-size:.68rem;font-weight:700;color:var(--njp-text-muted,#64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.njp-app-top-actions{display:flex;gap:2px;flex:0 0 auto}
.njp-app-icon-btn{
  border:0;background:transparent;color:var(--njp-text-muted,#64748b);
  width:34px;height:34px;border-radius:11px;display:inline-grid;place-items:center;
  font-size:1rem;cursor:pointer;transition:.18s;flex:0 0 auto;
}
.njp-app-icon-btn:hover{background:var(--njp-card-subtle,#f1f5f9);color:var(--njp-primary,#0369a1)}
.njp-app-icon-btn.is-on{color:var(--njp-primary,#0369a1);background:var(--njp-card-subtle,#f1f5f9)}
.njp-app-icon-btn.is-play{color:#fff;background:var(--njp-primary,#0369a1)}
.njp-app-search{display:flex;gap:6px;margin-top:8px}
.njp-app-search input[type=search]{flex:1;min-width:0;border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card-subtle,#f8fafc);color:var(--njp-text);border-radius:11px;padding:9px 11px;font-size:.84rem;outline:none}
.njp-app-search input[type=search]:focus{border-color:var(--njp-primary,#0369a1);box-shadow:0 0 0 3px var(--njp-focus,rgba(2,132,199,.25))}
.njp-app-search button{border:0;border-radius:11px;background:var(--njp-primary,#0369a1);color:#fff;width:38px;cursor:pointer;font-size:.95rem}
.njp-app-search button:last-child{background:var(--njp-accent,#ea580c)}

/* Hero */
.njp-app-hero{
  position:relative;overflow:hidden;text-align:center;
  background:linear-gradient(155deg,var(--njp-card-subtle,#eef6f3),var(--njp-card,#fff));
  border:1px solid var(--njp-border,rgba(15,23,42,.1));
  border-radius:22px;padding:20px 16px 16px;
  box-shadow:0 12px 32px rgba(0,0,0,.06);margin-bottom:12px;
}
.njp-app-hero::before{content:"";position:absolute;inset:-60% -20% auto;height:180px;background:radial-gradient(ellipse at center,var(--njp-focus,rgba(2,132,199,.25)),transparent 70%);pointer-events:none}
.njp-app-hero-tag{position:relative;display:inline-block;border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card,#fff);color:var(--njp-text-muted,#64748b);border-radius:999px;padding:5px 12px;font-size:.68rem;font-weight:900;letter-spacing:.03em}
.njp-app-hero h2{position:relative;margin:12px 0 4px;font-size:1.5rem;font-weight:900;letter-spacing:-.02em;color:var(--njp-heading,var(--njp-text))}
.njp-app-hero-arabic{position:relative;font-size:2.1rem;line-height:1.5;font-family:"Noto Naskh Arabic",Amiri,serif;color:var(--njp-accent,#ea580c);margin:2px 0 6px}
.njp-app-hero-meaning{position:relative;font-size:.78rem;color:var(--njp-text-muted,#64748b);margin:0 0 12px;font-weight:700}
.njp-app-hero-badges{position:relative;display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.njp-app-hero-badges span{border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card,#fff);color:var(--njp-text-muted,#64748b);border-radius:999px;padding:5px 10px;font-size:.68rem;font-weight:800}
.njp-app-hero-badges .is-accent{color:var(--njp-accent,#ea580c);border-color:var(--njp-accent,#ea580c)}

/* Filter chips + selects */
.njp-app-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0 0 12px}
.njp-app-chip{position:relative;display:inline-flex;cursor:pointer;user-select:none}
.njp-app-chip input{position:absolute;opacity:0;width:1px;height:1px}
.njp-app-chip span{
  display:inline-flex;align-items:center;gap:4px;border-radius:999px;
  border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card,#fff);
  color:var(--njp-text-muted,#64748b);padding:8px 12px;font-size:.72rem;font-weight:800;transition:.18s;
}
.njp-app-chip span::first-letter{font-size:.9em}
.njp-app-chip input:checked + span{color:#fff;border-color:transparent;background:var(--njp-primary,#0369a1);box-shadow:0 5px 14px rgba(0,0,0,.12)}
.njp-app-chip input:focus-visible + span{outline:2px solid var(--njp-focus,#38bdf8);outline-offset:2px}
.njp-app-toolbar-selects{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.njp-app-select{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card,#fff);border-radius:999px;padding:4px 6px 4px 11px}
.njp-app-select span{font-size:.68rem;font-weight:800;color:var(--njp-text-muted,#64748b)}
.njp-app-select select{border:0;background:transparent;color:var(--njp-text);font-size:.72rem;font-weight:800;padding:4px 4px;max-width:110px;outline:none;cursor:pointer}
.njp-app-toolbar .njp-scripture-lang-wrap{margin-left:0}
.njp-app-toolbar .njp-scripture-lang-select{background:var(--njp-card,#fff);color:var(--njp-text);border:1px solid var(--njp-border,#e2e8f0);border-radius:999px;height:auto;padding:8px 26px 8px 11px;font-size:.72rem;max-width:120px}

/* Ayah cards */
.njp-app-ayah-list{display:flex;flex-direction:column;gap:12px}
.njp-app-ayah{
  background:var(--njp-card,#fff);border:1px solid var(--njp-border,#e2e8f0);
  border-radius:18px;padding:14px 15px;box-shadow:0 6px 20px rgba(0,0,0,.04);
  scroll-margin-top:80px;transition:border-color .2s,box-shadow .2s;
}
.njp-app-ayah.is-playing{border-color:var(--njp-primary,#0369a1);box-shadow:0 8px 26px var(--njp-focus,rgba(2,132,199,.2))}
.njp-app-ayah-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;min-width:0}
.njp-app-ayah-num{width:30px;height:30px;flex:0 0 30px;border-radius:50%;display:grid;place-items:center;background:var(--njp-card-subtle,#eef6f3);color:var(--njp-primary,#0369a1);font-size:.8rem;font-weight:900}
.njp-app-ayah-head strong{font-size:.86rem;color:var(--njp-heading,var(--njp-text));flex:1;min-width:0}
.njp-app-ayah-actions{display:flex;gap:0;flex:0 0 auto}
.njp-app-ayah-actions .njp-app-icon-btn{width:30px;height:30px;font-size:.9rem}
.njp-app-arabic{font-family:"Noto Naskh Arabic",Amiri,serif;font-size:1.85rem;line-height:2.05;text-align:right;color:var(--njp-heading,var(--njp-text));margin:6px 0 10px;word-spacing:6px}
.njp-app-transliteration{background:var(--njp-card-subtle,#f1f5f9);border:1px solid var(--njp-border,#e2e8f0);border-radius:12px;padding:9px 12px;margin:0 0 10px;font-size:.82rem;line-height:1.6}
.njp-app-transliteration span{display:block;font-size:.66rem;font-weight:900;color:var(--njp-text-muted,#64748b);margin-bottom:2px}
.njp-app-transliteration em{font-style:normal;color:var(--njp-accent,#ea580c);font-weight:700}
.njp-app-translation{font-size:.92rem;line-height:1.8;font-weight:600;color:var(--njp-text);margin:0 0 6px}
.njp-app-fold{border-top:1px solid var(--njp-border,#e2e8f0);margin-top:8px;padding-top:8px}
.njp-app-fold summary{cursor:pointer;list-style:none;font-size:.76rem;font-weight:900;color:var(--njp-primary,#0369a1);padding:4px 0}
.njp-app-fold summary::-webkit-details-marker{display:none}
.njp-app-fold summary::after{content:"▾";float:right;transition:transform .2s}
.njp-app-fold[open] summary::after{transform:rotate(180deg)}
.njp-app-fold p{font-size:.82rem;line-height:1.75;margin:6px 0;color:var(--njp-text-muted,#64748b)}
.njp-app-wordcount{text-align:right;font-size:.66rem;font-weight:800;color:var(--njp-text-muted,#64748b);opacity:.75;margin-top:8px}

/* Bottom navigation row */
.njp-app-nav{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:14px 0 4px}
.njp-app-nav-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card,#fff);color:var(--njp-text-muted,#64748b);border-radius:999px;padding:9px 13px;font-size:.72rem;font-weight:800;text-decoration:none;cursor:pointer}
.njp-app-nav-btn.is-disabled{opacity:.55;cursor:default}

/* Focus mode hides everything except the verse text */
.njp-app-reader.is-focus .njp-app-hero,
.njp-app-reader.is-focus .njp-app-toolbar,
.njp-app-reader.is-focus .njp-app-nav,
.njp-app-reader.is-focus .njp-app-fold{display:none}
.njp-app-reader.is-focus .njp-app-arabic{font-size:2.3rem}

/* Settings sheet */
.njp-app-sheet-backdrop{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.45);backdrop-filter:blur(3px)}
.njp-app-sheet{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:75;
  width:min(520px,100%);max-height:82vh;overflow-y:auto;
  background:var(--njp-card,#fff);color:var(--njp-text);
  border:1px solid var(--njp-border,#e2e8f0);
  border-radius:22px 22px 0 0;padding:10px 18px 26px;
  box-shadow:0 -14px 44px rgba(0,0,0,.24);
  transition:transform .2s ease;
}
.njp-app-sheet:not(.is-open){transform:translate(-50%,100%)}
.njp-app-sheet-grip{width:42px;height:4px;border-radius:99px;background:var(--njp-border,#e2e8f0);margin:2px auto 12px}
.njp-app-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.njp-app-sheet-head strong{font-size:1rem;font-weight:900}
.njp-app-sheet h3{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--njp-text-muted,#64748b);margin:16px 0 6px;font-weight:900}
.njp-app-switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--njp-border,#e2e8f0);font-size:.82rem;font-weight:700;cursor:pointer}
.njp-app-switch-row input{position:absolute;opacity:0;width:1px;height:1px}
.njp-app-switch-row i{position:relative;width:42px;height:24px;flex:0 0 42px;border-radius:99px;background:var(--njp-card-subtle,#e2e8f0);transition:.2s}
.njp-app-switch-row i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:.2s}
.njp-app-switch-row input:checked + i{background:var(--njp-primary,#0369a1)}
.njp-app-switch-row input:checked + i::after{transform:translateX(18px)}
.njp-app-theme-row{display:flex;gap:6px;flex-wrap:wrap}
.njp-app-theme-row button{border:1px solid var(--njp-border,#e2e8f0);background:var(--njp-card-subtle,#f1f5f9);color:var(--njp-text-muted,#64748b);border-radius:999px;padding:8px 13px;font-size:.74rem;font-weight:800;cursor:pointer}
.njp-app-theme-row button.is-on{border-color:var(--njp-primary,#0369a1);color:var(--njp-primary,#0369a1);background:var(--njp-card,#fff)}
.njp-app-reset{width:100%;margin-top:18px;border:1px solid var(--njp-danger,#dc2626);background:transparent;color:var(--njp-danger,#dc2626);border-radius:12px;padding:11px;font-size:.78rem;font-weight:900;cursor:pointer}

/* Sticky single player */
.njp-app-player{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:60;
  width:min(760px,100%);background:var(--njp-card,#fff);
  border:1px solid var(--njp-border,#e2e8f0);border-bottom:0;
  border-radius:18px 18px 0 0;padding:9px 12px 12px;
  box-shadow:0 -10px 34px rgba(0,0,0,.18);
}
.njp-app-player-track{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.njp-app-player-time{font-size:.62rem;font-weight:800;color:var(--njp-text-muted,#64748b);min-width:34px;text-align:center}
.njp-app-player-bar{position:relative;flex:1;height:5px;border-radius:99px;background:var(--njp-card-subtle,#e2e8f0);cursor:pointer;overflow:hidden}
.njp-app-player-bar i{display:block;height:100%;width:0;border-radius:99px;background:var(--njp-primary,#0369a1)}
.njp-app-player-row{display:flex;align-items:center;gap:6px}
.njp-app-player-badge{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:var(--njp-card-subtle,#eef6f3)}
.njp-app-player-meta{flex:1;min-width:0;line-height:1.25}
.njp-app-player-meta strong{display:block;font-size:.76rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--njp-heading,var(--njp-text))}
.njp-app-player-meta small{display:block;font-size:.64rem;color:var(--njp-text-muted,#64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.njp-app-player-btn{border:0;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--njp-card-subtle,#f1f5f9);color:var(--njp-text);font-size:.9rem;cursor:pointer}
.njp-app-player-btn.is-main{width:44px;height:44px;flex-basis:44px;background:var(--njp-primary,#0369a1);color:#fff;font-size:1rem;box-shadow:0 6px 16px rgba(0,0,0,.18)}

/* Toast */
.njp-app-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,12px);z-index:90;background:var(--njp-elevated,#0f172a);color:#fff;border-radius:999px;padding:9px 16px;font-size:.76rem;font-weight:800;opacity:0;pointer-events:none;transition:.22s;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
.njp-app-toast.is-on{opacity:1;transform:translate(-50%,0)}

@media (max-width:520px){
  .njp-app-shell{padding:10px 8px 118px}
  .njp-app-hero h2{font-size:1.3rem}
  .njp-app-arabic{font-size:1.65rem}
  .njp-app-toolbar-selects{width:100%;margin-left:0}
  .njp-app-player-btn{width:30px;height:30px;flex-basis:30px}
  .njp-app-player-btn.is-main{width:40px;height:40px;flex-basis:40px}
}
