/* =====================================================================
   ZAAD ACADEMY — Library (ކުތުބުޚާނާ): catalogue, shelves, reader, admin
   ===================================================================== */
:root { --lb-wood1: #586387; --lb-wood2: #2c2144; --lb-wood3: #63709b; --lb-ink: #192235; }

/* ---------- covers ---------- */
.lb-cv { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: linear-gradient(160deg, var(--c2), var(--c1) 70%); color: #ffffff;
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .22), inset 9px 0 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(8, 18, 38, .32); }
[dir="rtl"] .lb-cv, .is-rtl .lb-cv { border-radius: 10px 4px 4px 10px; box-shadow: inset -7px 0 0 rgba(0, 0, 0, .22), inset -9px 0 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(8, 18, 38, .32); }
.lb-cv.img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lb-cv-frame { position: absolute; inset: 7% 9%; border: 1.5px solid rgba(188, 195, 219, .75); border-radius: 3px; outline: 1px solid rgba(188, 195, 219, .35); outline-offset: 3px; }
.lb-cv-ico { position: absolute; top: 13%; inset-inline: 0; text-align: center; font-size: 1.35em; color: var(--gold-200); }
.lb-cv-t { position: absolute; top: 28%; inset-inline: 14%; text-align: center; font-weight: 700; font-size: .95em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.lb-cv-t[lang="en"] { font-family: var(--f-head); font-size: 1.12em; line-height: 1.15; }
.lb-cv-t[lang="ar"] { font-family: var(--f-ar); font-size: 1.05em; }
.lb-cv-a { position: absolute; bottom: 21%; inset-inline: 14%; text-align: center; font-size: .66em; color: var(--gold-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cv-logo { position: absolute; bottom: 9%; inset-inline: 0; display: flex; justify-content: center; }
.lb-cv-logo img { width: 26%; max-width: 46px; filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg); opacity: .8; }
.lb-cv.sm { width: 46px; flex: 0 0 46px; font-size: 6px; }
.lb-cv.xs { width: 34px; flex: 0 0 34px; font-size: 5px; }
.lb-cv.lg { font-size: 15px; }
.lb-cv.sm .lb-cv-a, .lb-cv.xs .lb-cv-a, .lb-cv.xs .lb-cv-t { display: none; }

.lb-rib { position: absolute; top: 10px; inset-inline-end: -4px; z-index: 2; padding: 3px 10px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: #ffffff; border-radius: 4px 0 0 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.is-rtl .lb-rib { border-radius: 0 4px 4px 0; }
.lb-rib.free { background: linear-gradient(135deg, #4d2395, #321760); }
.lb-rib.new { background: linear-gradient(135deg, #b8322f, #8a1c1c); }
.lb-own { position: absolute; bottom: 8px; inset-inline: 8px; z-index: 2; font-size: .66rem; font-weight: 700; padding: 3px 6px; border-radius: 999px; text-align: center; color: #ffffff; background: rgba(36, 16, 70, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-own.exp { background: rgba(110, 30, 30, .9); }

/* ---------- hero ---------- */
.lb-page { min-height: 60vh; }
.lb-hero { position: relative; color: #ffffff; background: radial-gradient(ellipse at 20% 0%, rgba(120, 134, 180, .28), transparent 55%), linear-gradient(135deg, #061735 0%, #092350 45%, #241046 100%); overflow: hidden; }
.lb-hero::before { content: ""; position: absolute; inset: 0; background-image: url("../img/pattern.svg"); opacity: .06; pointer-events: none; }
.lb-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--gold-grad); }
.lb-hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 46px 22px 50px; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.lb-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-200); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(188, 195, 219, .4); padding: 4px 14px; border-radius: 999px; }
.lb-hero h1 { font-family: var(--f-head); font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 12px 0 6px; line-height: 1.05; }
.is-dv .lb-hero h1 { font-family: var(--f-dv); }
.lb-hero p { margin: 0 0 18px; color: #d8e2f3; max-width: 640px; }
.lb-search { display: flex; align-items: center; gap: 8px; background: #ffffff; border-radius: 999px; padding: 6px; padding-inline-start: 18px; max-width: 680px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.lb-search i { color: var(--muted); }
.lb-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 10px 4px; background: transparent; color: var(--ink); }
.lb-search .btn { border-radius: 999px; }
.lb-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lb-langs button { border: 1px solid rgba(188, 195, 219, .45); background: rgba(255, 255, 255, .06); color: #ffffff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; transition: .2s; }
.lb-langs button[lang="dv"] { font-family: var(--f-dv); }
.lb-langs button[lang="ar"] { font-family: var(--f-arui); }
.lb-langs button .n { font-size: .75rem; opacity: .8; margin-inline-start: 4px; }
.lb-langs button.on, .lb-langs button:hover { background: var(--gold-grad); color: var(--blue-950); border-color: transparent; font-weight: 700; }
.lb-hero-st { display: grid; grid-template-columns: repeat(2, 120px); gap: 12px; }
.lb-hero-st div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(188, 195, 219, .3); border-radius: 14px; padding: 14px 10px; text-align: center; backdrop-filter: blur(4px); }
.lb-hero-st b { display: block; font-size: 1.9rem; font-family: var(--f-head); color: var(--gold-200); line-height: 1; }
.lb-hero-st span { font-size: .8rem; color: #d8e2f3; }

/* ---------- tabs & layout ---------- */
.lb-main { max-width: 1240px; margin: 0 auto; padding: 22px 22px 60px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lb-tabs button { border: 1px solid var(--line); background: #ffffff; color: var(--blue-900); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.lb-tabs button.on { background: var(--blue-950); color: #ffffff; border-color: var(--blue-950); box-shadow: 0 6px 18px rgba(9, 35, 80, .25); }
.lb-tabs button.on i { color: var(--gold-200); }
.lb-tabs .lb-mystat { margin-inline-start: auto; background: var(--gold-50); border-color: var(--gold-200); color: var(--gold-700); }
.lb-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.lb-filters { position: sticky; top: 76px; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; max-height: calc(100vh - 96px); overflow: auto; box-shadow: var(--shadow-1); }
.lb-f-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--blue-950); }
.lb-f-x { display: none; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.lb-facet { padding: 10px 0; border-top: 1px dashed var(--line); }
.lb-facet h4 { margin: 0 0 6px; font-size: .78rem; color: var(--gold-700); text-transform: uppercase; letter-spacing: .05em; }
.lb-facet button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: .9rem; color: var(--ink-2); cursor: pointer; text-align: start; }
.lb-facet button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-facet button .n { font-size: .74rem; background: var(--ivory); color: var(--muted); border-radius: 999px; padding: 1px 8px; flex: none; }
.lb-facet button:hover { background: var(--ivory); }
.lb-facet button.on { background: var(--blue-950); color: #ffffff; font-weight: 600; }
.lb-facet button.on .n { background: var(--gold); color: var(--blue-950); }
.lb-facet button[lang="dv"] { font-family: var(--f-dv); }
.lb-facet button[lang="ar"] { font-family: var(--f-arui); }
.lb-clear { width: 100%; margin-top: 8px; }
.lb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.lb-fbtn { display: none; }
.lb-count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.lb-sort { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.lb-sort select { border: 0; background: none; font: inherit; padding: 8px 2px; color: var(--ink); outline: 0; }
.lb-views { display: inline-flex; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lb-views button { border: 0; background: none; padding: 8px 12px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lb-views button.on { background: var(--blue-950); color: #ffffff; }
.lb-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lb-active:empty { display: none; }
.lb-active button { border: 1px solid var(--gold-200); background: var(--gold-50); color: var(--gold-700); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .82rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- shelves ---------- */
.lb-shelves { display: grid; gap: 30px; }
.lb-shelf { position: relative; background: linear-gradient(180deg, #eceef5 0%, #dadeea 100%); border: 1px solid #bbc2d7; border-radius: 16px; padding: 16px 16px 0; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5); }
.lb-plaque { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #092350, #0d326d); color: #ffffff; padding: 7px 16px; border-radius: 8px; box-shadow: 0 4px 12px rgba(9, 35, 80, .25), inset 0 0 0 1px rgba(188, 195, 219, .45); margin-bottom: 14px; }
.lb-plaque i { color: var(--gold); }
.lb-plaque .n { background: var(--gold-grad); color: var(--blue-950); font-size: .75rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; }
.lb-row { display: flex; gap: 20px; overflow-x: auto; padding: 6px 6px 0; scroll-snap-type: x proximity; scrollbar-width: thin; align-items: flex-end; }
.lb-plank { height: 18px; margin: 0 -16px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, var(--lb-wood3) 0%, var(--lb-wood1) 45%, var(--lb-wood2) 100%); box-shadow: 0 10px 18px rgba(44, 33, 68, .35), inset 0 2px 0 rgba(255, 255, 255, .18); position: relative; }
.lb-plank::before { content: ""; position: absolute; inset-inline: 0; top: -6px; height: 6px; background: linear-gradient(180deg, transparent, rgba(44, 33, 68, .25)); }
.lb-book { position: relative; flex: 0 0 132px; scroll-snap-align: start; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: center; transition: transform .25s; display: block; text-decoration: none; }
.lb-book .lb-cv { font-size: 10px; transform-origin: bottom center; transition: transform .25s, box-shadow .25s; }
.lb-book:hover .lb-cv, .lb-book:focus-visible .lb-cv { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 22px 30px rgba(8, 18, 38, .4); }
.lb-cap { display: block; padding: 8px 2px 12px; }
.lb-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; line-height: 1.35; color: var(--blue-950); }
.lb-cap b[lang="en"] { font-family: var(--f-head); font-size: 1rem; line-height: 1.15; }
.lb-cap b[lang="ar"] { font-family: var(--f-arui); }
.lb-cap small { display: flex; flex-direction: column; gap: 1px; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.lb-cap small span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cap em { font-style: normal; font-weight: 700; color: var(--gold-700); }
.lb-cap em.fr, .lb-price.fr, .lb-li-p.fr { color: #321760; }

/* ---------- cards ---------- */
.lb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lb-card { display: grid; grid-template-columns: 112px 1fr; gap: 16px; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; transition: .2s; box-shadow: var(--shadow-1); position: relative; }
.lb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-200); }
.lb-card-cv { position: relative; }
.lb-card-cv .lb-cv { font-size: 8.5px; }
.lb-card-b { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-meta { color: var(--gold-700); font-size: .76rem; font-weight: 600; }
.lb-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--blue-950); }
.lb-card h3[lang="en"] { font-family: var(--f-head); font-size: 1.3rem; line-height: 1.15; }
.lb-card h3[lang="ar"] { font-family: var(--f-arui); }
.lb-by { margin: 0; font-size: .82rem; color: var(--ink-2); }
.lb-by i { color: var(--gold); font-size: .75rem; }
.lb-desc { margin: 2px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.lb-card-f { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.lb-card-f .lb-own { position: static; }
.lb-price { font-weight: 800; color: var(--gold-700); }
.lb-tps { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.lb-tps i { font-style: normal; font-size: .7rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }

/* ---------- list ---------- */
.lb-list { display: grid; gap: 8px; }
.lb-li { display: flex; align-items: center; gap: 14px; width: 100%; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; cursor: pointer; font: inherit; color: inherit; text-align: start; transition: .2s; position: relative; }
.lb-li:hover { border-color: var(--gold-200); background: var(--gold-50); }
.lb-li-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-li-t b { color: var(--blue-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-li-t b[lang="en"] { font-family: var(--f-head); font-size: 1.12rem; }
.lb-li-t small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-li .lb-own { position: static; flex: none; }
.lb-li-p { font-weight: 800; color: var(--gold-700); white-space: nowrap; font-size: .88rem; }
.lb-li-go { color: var(--muted); }

/* ---------- topics / people ---------- */
.lb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lb-tile { border: 0; border-radius: 16px; padding: 22px 16px; color: #ffffff; background: linear-gradient(150deg, var(--c2), var(--c1)); cursor: pointer; font: inherit; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; box-shadow: var(--shadow-1); transition: .2s; position: relative; overflow: hidden; }
.lb-tile::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(188, 195, 219, .5); border-radius: 11px; pointer-events: none; }
.lb-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.lb-tile i { font-size: 1.5rem; color: var(--gold-200); }
.lb-tile b { font-size: 1.05rem; }
.lb-tile b[lang="dv"] { font-family: var(--f-dv); }
.lb-tile span { font-size: .78rem; opacity: .85; }
.lb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lb-person { display: flex; align-items: center; gap: 12px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; font: inherit; text-align: start; transition: .2s; }
.lb-person:hover { border-color: var(--gold-200); background: var(--gold-50); }
.lb-person .av { width: 42px; height: 42px; border-radius: 50%; background: var(--royal-grad); color: #ffffff; display: grid; place-items: center; font-weight: 700; flex: none; box-shadow: inset 0 0 0 2px rgba(188, 195, 219, .6); }
.lb-person .pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-person .pt b { color: var(--blue-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-person .pt b[lang="dv"] { font-family: var(--f-dv); }
.lb-person .pt small { color: var(--muted); font-size: .76rem; }
.lb-person .n { background: var(--gold-grad); color: var(--blue-950); font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }

/* ---------- price list ---------- */
.lb-whole { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #092350, #241046); color: #ffffff; border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(188, 195, 219, .4); }
.lb-whole-t { display: flex; gap: 14px; align-items: center; }
.lb-whole-t > i { font-size: 2rem; color: var(--gold); }
.lb-whole h3 { margin: 0; font-family: var(--f-head); font-size: 1.5rem; color: var(--gold-200); }
.is-dv .lb-whole h3 { font-family: var(--f-dv); }
.lb-whole p { margin: 2px 0 0; color: #d8e2f3; font-size: .9rem; }
.lb-plans { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-plan { border: 1px solid rgba(188, 195, 219, .55); background: rgba(255, 255, 255, .08); color: #ffffff; border-radius: 14px; padding: 10px 16px; min-width: 120px; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: .2s; }
.lb-plan b { font-size: .95rem; }
.lb-plan span { font-weight: 800; font-size: 1.15rem; color: var(--gold-200); }
.lb-plan em { font-style: normal; font-size: .72rem; opacity: .85; }
.lb-plan:hover { background: var(--gold-grad); color: var(--blue-950); }
.lb-plan:hover span { color: var(--blue-950); }
.lb-plans.sm .lb-plan { background: #ffffff; color: var(--blue-950); border-color: var(--gold-200); }
.lb-plans.sm .lb-plan span { color: var(--gold-700); }
.lb-plans.sm .lb-plan:hover { background: var(--gold-grad); }
.lb-ptable { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); }
.lb-pt-h, .lb-pt-r { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 10px 16px; }
.lb-pt-h { background: var(--blue-950); color: var(--gold-200); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.lb-pt-r { border-top: 1px solid var(--line); }
.lb-pt-r:nth-child(odd) { background: #f6f6f9; }
.lb-pt-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-pt-t > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.lb-pt-t b { color: var(--blue-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pt-t small { color: var(--muted); font-size: .76rem; }
.lb-pt-k { font-size: .8rem; color: var(--ink-2); }
.lb-pt-p { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-pt-p i { font-style: normal; font-size: .8rem; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 999px; padding: 2px 10px; color: var(--ink); white-space: nowrap; }
.lb-pt-p i.fr { background: #ede8f6; border-color: #bba8dc; color: #321760; font-weight: 700; }

/* ---------- details modal ---------- */
.lb-modal { max-width: 900px !important; }
.lb-det { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 26px; }
.lb-det-cv { position: relative; align-self: start; position: sticky; top: 0; }
.lb-det-b { min-width: 0; }
.lb-det h2 { margin: 6px 0 4px; font-size: 1.6rem; line-height: 1.3; color: var(--blue-950); }
.lb-det h2[lang="en"] { font-family: var(--f-head); font-size: 2rem; line-height: 1.1; }
.lb-det h2[lang="ar"] { font-family: var(--f-arui); }
.lb-det-sub { margin: 0 0 8px; color: var(--ink-2); }
.lb-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; }
.lb-dl div { background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.lb-dl dt { font-size: .7rem; color: var(--gold-700); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.lb-dl dd { margin: 0; font-weight: 600; color: var(--ink); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.lb-chips button { border: 1px solid var(--line); background: #ffffff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--blue-900); }
.lb-chips button:hover { background: var(--gold-50); border-color: var(--gold-200); }
.lb-chips i { color: var(--gold); font-size: .72rem; }
.lb-det-desc { color: var(--ink-2); line-height: 1.85; margin: 8px 0 14px; }
.lb-det-desc[lang="dv"] { font-size: 1.02rem; }
.lb-h4 { margin: 14px 0 8px; color: var(--blue-950); font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.lb-h4 i { color: var(--gold); }
.lb-det-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.lb-det-own { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 12px; padding: 9px 14px; font-size: .9rem; margin: 8px 0; }
.lb-det-own.ok { background: #ede8f6; color: #321760; border: 1px solid #bba8dc; }
.lb-det-own.exp { background: #fbeceb; color: #8a1c1c; border: 1px solid #efc2c0; }
.lb-sample-t { position: relative; max-height: 220px; overflow: hidden; background: #f9f9fc; border: 1px solid #ccd0e0; border-radius: 12px; padding: 16px 18px; line-height: 2; color: var(--ink); }
.lb-sample-t[lang="dv"] { font-family: var(--f-dv); font-size: 1.05rem; }
.lb-sample-t[lang="ar"] { font-family: var(--f-ar); font-size: 1.2rem; }
.lb-sample-t::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #f9f9fc); }
.lb-sample-m { color: var(--gold-700); font-size: .86rem; font-weight: 600; margin: 8px 0 0; }
.lb-sample-p { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lb-sample-p span { position: relative; flex: 0 0 170px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: #ffffff; }
.lb-sample-p img { width: 100%; display: block; pointer-events: none; }
.lb-sample-p span i { position: absolute; bottom: 6px; inset-inline-end: 6px; background: rgba(9, 35, 80, .8); color: #ffffff; font-style: normal; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
.lb-sample-p .more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; background: linear-gradient(150deg, #092350, #241046); color: #ffffff; aspect-ratio: 1 / 1.414; }
.lb-sample-p .more i { position: static; background: none; font-size: 1.6rem; color: var(--gold); }
.lb-sample-p .more b { font-size: .8rem; }

/* ---------- empty ---------- */
.lb-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.lb-empty i { font-size: 3rem; color: var(--gold-200); }
.lb-empty.sm { padding: 30px 10px; }

/* ---------- home band ---------- */
.lb-band { position: relative; color: #ffffff; padding: 46px 0; background: radial-gradient(ellipse at 85% 20%, rgba(120, 134, 180, .3), transparent 50%), linear-gradient(120deg, #061735 0%, #092350 50%, #241046 100%); overflow: hidden; }
.lb-band::before { content: ""; position: absolute; inset: 0; background-image: url("../img/pattern.svg"); opacity: .05; pointer-events: none; }
.lb-band::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--gold-grad); }
.lb-band-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; align-items: center; }
.lb-band h2 { font-family: var(--f-head); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 12px 0 8px; line-height: 1.1; color: #ffffff; }
.is-dv .lb-band h2 { font-family: var(--f-dv); line-height: 1.4; }
.is-ar .lb-band h2 { font-family: var(--f-arui); }
.lb-band p { color: #d8e2f3; margin: 0 0 16px; max-width: 520px; }
.lb-band-st { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 20px; font-size: .9rem; color: #d8e2f3; }
.lb-band-st b { color: var(--gold-200); font-size: 1.3rem; font-family: var(--f-head); margin-inline-end: 3px; }
.lb-band-l { display: inline-flex; gap: 6px; }
.lb-band-l i { font-style: normal; border: 1px solid rgba(188, 195, 219, .45); border-radius: 999px; padding: 1px 10px; font-size: .8rem; }
.lb-band-l i[lang="dv"] { font-family: var(--f-dv); }
.lb-band-l i[lang="ar"] { font-family: var(--f-arui); }
.lb-band-b { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-band-shelf { background: rgba(255, 255, 255, .05); border: 1px solid rgba(188, 195, 219, .3); border-radius: 18px; padding: 22px 18px 0; box-shadow: inset 0 0 40px rgba(0, 0, 0, .25); }
.lb-band-shelf .lb-row { gap: 14px; padding-bottom: 0; justify-content: center; overflow: hidden; }
.lb-band-shelf .lb-book { flex: 0 0 104px; }
.lb-band-shelf .lb-book:nth-child(even) .lb-cv { transform: translateY(6px); }
.lb-band-shelf .lb-book:hover .lb-cv { transform: translateY(-10px) rotate(-2deg); }
.lb-band-shelf .lb-plank { margin: 0 -18px; border-radius: 0 0 16px 16px; }

/* ---------- portal "My books" ---------- */
.lb-portal .lb-hero-in { padding: 30px 22px 34px; }
.lb-portal .lb-hero { border-radius: 18px; }
.lb-portal .lb-main { padding: 18px 0 30px; }
.lb-mine { background: #ffffff; border: 1px solid var(--gold-200); border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
.lb-mine h3 { margin: 0 0 8px; color: var(--blue-950); display: flex; gap: 8px; align-items: center; }
.lb-mine h3 i { color: var(--gold); }
.lb-row.mine { padding-bottom: 6px; }
.lb-row.mine .lb-book { flex-basis: 112px; }

/* =====================================================================
   READER
   ===================================================================== */
body.lr-open { overflow: hidden; }
.lr-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: #09162e; opacity: 0; transition: opacity .25s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; height: 100vh; height: 100dvh; }
.lr-wrap.in { opacity: 1; }
.lr-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: linear-gradient(90deg, #061735, #092350 55%, #241046); color: #ffffff; border-bottom: 2px solid var(--gold); flex: none; }
.lr-logo { width: 38px; height: 38px; object-fit: contain; background: #ffffff; border-radius: 50%; padding: 3px; flex: none; }
.lr-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lr-tt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.lr-tt b[lang="en"] { font-family: var(--f-head); font-size: 1.2rem; }
.lr-tt small { color: var(--gold-200); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lr-btn { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(188, 195, 219, .35); background: rgba(255, 255, 255, .06); color: #ffffff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-grid; place-items: center; padding: 0 8px; }
.lr-btn:hover { background: rgba(188, 195, 219, .18); }
.lr-btn.x { background: rgba(255, 255, 255, .12); }
.lr-z { font-size: .78rem; color: var(--gold-200); min-width: 42px; text-align: center; }
.lr-prog { height: 3px; background: rgba(255, 255, 255, .08); flex: none; }
.lr-prog span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .15s; }
.lr-body { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; }
.lr-scroll { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; transition: filter .15s; background: #dcdde3; }
.lr-scroll.is-pdf { background: #343e52; }
.lr-scroll.is-slide { overflow: hidden; background: #09162e; }
.lr-load, .lr-err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.lr-load span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--gold-200); border-top-color: var(--blue-900); animation: spin 1s linear infinite; }
.lr-err i { font-size: 2.4rem; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* text page */
.lr-text { --fz: 100%; position: relative; max-width: 780px; margin: 26px auto 60px; background: #f9fafd; color: #1c2230; padding: 54px 64px 40px; border-radius: 6px; box-shadow: 0 1px 0 #cacdd8, 0 18px 50px rgba(26, 20, 41, .18); font-size: calc(18px * var(--fz) / 100); line-height: 1.95; font-family: Georgia, "Times New Roman", serif; }
.lr-text::before { content: ""; position: absolute; inset: 14px; border: 1px solid #bbc2d7; border-radius: 3px; pointer-events: none; }
.lr-text[lang="dv"] { font-family: var(--f-dv); font-size: calc(19.5px * var(--fz) / 100); line-height: 2.15; }
.lr-text[lang="ar"] { font-family: "Amiri", var(--f-arui), serif; font-size: calc(22px * var(--fz) / 100); line-height: 2.1; }
.lr-text p, .lr-text li, .lr-text h1, .lr-text h2, .lr-text h3, .lr-text h4, .lr-text blockquote, .lr-text td, .lr-text th { unicode-bidi: plaintext; text-align: start; }
.lr-text [style*="text-align"] { unicode-bidi: plaintext; }
.lr-text p { margin: 0 0 .9em; }
.lr-text h1, .lr-text h2, .lr-text h3, .lr-text h4 { color: #092350; line-height: 1.45; margin: 1.4em 0 .55em; font-weight: 700; }
.lr-text[lang="en"] h1, .lr-text[lang="en"] h2, .lr-text[lang="en"] h3 { font-family: var(--f-head); line-height: 1.15; }
.lr-text h1 { font-size: 1.65em; padding-bottom: .3em; border-bottom: 2px solid #7886b4; }
.lr-text h2 { font-size: 1.35em; color: #241046; }
.lr-text h3 { font-size: 1.15em; }
.lr-text h4 { font-size: 1.02em; color: #475892; }
.lr-text blockquote { margin: 1em 0; padding: .6em 1.1em; background: #e4e7f0; border-inline-start: 4px solid #7886b4; border-radius: 6px; }
.lr-text blockquote.quran { font-family: var(--f-ar); font-size: 1.25em; text-align: center; background: #f1eef6; border-inline-start-color: #431f82; direction: rtl; }
.lr-text ul, .lr-text ol { padding-inline-start: 1.6em; margin: 0 0 1em; }
.lr-text li { margin: .25em 0; }
.lr-text img { max-width: 100%; height: auto; display: block; margin: 1em auto; border-radius: 6px; pointer-events: none; }
.lr-text table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .88em; }
.lr-text td, .lr-text th { border: 1px solid #bdc2d3; padding: .4em .6em; }
.lr-text th { background: #092350; color: #ffffff; }
.lr-text hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #7886b4, transparent); margin: 2em 0; }
.lr-text a { color: #1956b3; }
.lr-head { text-align: center; margin-bottom: 2em; }
.lr-head h1 { border: 0; font-size: 1.9em; margin: .3em 0 .2em; text-align: center; unicode-bidi: normal; }
.lr-head p { color: #5a6373; margin: 0 0 .5em; text-align: center; }
.lr-by { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; color: #475892; font-size: .82em; }
.lr-orn { display: block; height: 14px; margin: 0 auto; width: 180px; background: radial-gradient(circle, #7886b4 3px, transparent 4px) center / 14px 14px no-repeat, linear-gradient(90deg, transparent, #7886b4 30%, #7886b4 70%, transparent) center / 100% 1px no-repeat; }
.lr-end { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 3em; color: #8c91a3; font-size: .7em; font-family: Inter, sans-serif; }
.lr-end img { width: 46px; opacity: .6; }
.th-sepia .lr-scroll { background: #c5c9d6; }
.th-sepia .lr-text { background: #dce0ec; color: #2f2643; }
.th-night .lr-scroll { background: #060d1b; }
.th-night .lr-text { background: #101b30; color: #d5ddeb; box-shadow: none; }
.th-night .lr-text::before { border-color: #253350; }
.th-night .lr-text h1, .th-night .lr-text h2, .th-night .lr-text h3 { color: #bcc3db; }
.th-night .lr-text h4 { color: #939ec2; }
.th-night .lr-text blockquote { background: #18253e; }
.th-night .lr-text blockquote.quran { background: #132030; }

/* toc */
.lr-toc { flex: 0 0 270px; background: #f9fafd; border-inline-end: 1px solid #bdc2d3; overflow-y: auto; padding: 16px 12px; z-index: 3; }
.lr-toc h4 { margin: 0 0 8px; color: #092350; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.lr-toc h4 i { color: #7886b4; }
.lr-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: #394358; text-decoration: none; font-size: .88rem; line-height: 1.45; }
.lr-toc[dir="rtl"] a { font-family: var(--f-dv); }
.lr-toc a:hover { background: #e4e7f0; color: #092350; }
.lr-toc a.l1 { font-weight: 700; color: #092350; }
.lr-toc a.l2 { padding-inline-start: 22px; }
.lr-toc a.l3 { padding-inline-start: 34px; font-size: .82rem; color: #677388; }
.th-night .lr-toc { background: #0d172b; border-color: #253350; }
.th-night .lr-toc a { color: #b6c1d5; }
.th-night .lr-toc a.l1, .th-night .lr-toc h4 { color: #bcc3db; }

/* pdf & slides */
.lr-pdf { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 12px 40px; }
.lr-pg { position: relative; background: #ffffff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: 100%; }
.lr-pg canvas { display: block; pointer-events: none; }
.lr-pg .pn { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(9, 35, 80, .75); color: #ffffff; font-size: .72rem; padding: 2px 9px; border-radius: 999px; font-family: Inter, sans-serif; z-index: 1; }
.lr-slide { width: 100%; height: 100%; border: 0; display: block; background: #ffffff; }
.lr-drive { position: relative; width: 100%; height: 100%; }
.lr-drive iframe { width: 100%; height: 100%; border: 0; }
.lr-pop { position: absolute; top: 0; right: 0; width: 80px; height: 64px; z-index: 2; }

/* watermark + identity + alert */
.lr-wm { position: absolute; inset: 0; pointer-events: none; z-index: 4; background-repeat: repeat; transition: opacity .12s; }
.lr-wm.hard { opacity: 0; z-index: 6; }
.th-night .lr-wm.soft { filter: invert(1); }
.lr-tag { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 5px 10px; border-radius: 8px; font-family: Inter, sans-serif; color: rgba(9, 35, 80, .3); font-size: 10.5px; line-height: 1.35; text-align: center; transition: left 1.2s ease, top 1.2s ease, color .12s, background .12s; }
.lr-tag b { font-size: 12px; }
.th-night .lr-tag { color: rgba(188, 195, 219, .28); }
.lr-wrap.lr-alert .lr-scroll, .lr-wrap.lr-alert .lr-toc { filter: blur(16px) saturate(.4); }
.lr-wrap.lr-alert .lr-wm.hard { opacity: 1; }
.lr-wrap.lr-alert .lr-tag { color: #7a1430; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px #7a1430; }
.lr-shield { position: absolute; inset: 0; z-index: 7; border: 0; background: rgba(9, 35, 80, .35); color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; font: inherit; cursor: pointer; }
.lr-shield[hidden] { display: none; }
.lr-shield i { font-size: 2.6rem; color: var(--gold-200); }
.lr-shield b { font-size: 1.05rem; max-width: 460px; }
.lr-shield small { background: #7a1430; padding: 4px 12px; border-radius: 999px; font-family: Inter, sans-serif; }
.lr-foot { flex: none; padding: 6px 14px; background: #061735; color: #b8c4d9; font-size: .7rem; font-family: Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid rgba(188, 195, 219, .25); }
.lr-foot b { color: var(--gold-200); }
.lr-foot .lr-left { color: #b79fe0; font-weight: 700; font-family: var(--f-dv), Inter, sans-serif; }
@media print { .lr-wrap { display: none !important; } }

/* =====================================================================
   ADMIN (portal)
   ===================================================================== */
.lba-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; background: linear-gradient(120deg, #092350, #241046); color: #ffffff; border-radius: 18px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(188, 195, 219, .35); }
.lba-hero h2 { margin: 0; display: flex; gap: 10px; align-items: center; }
.lba-hero h2 i { color: var(--gold); }
.lba-hero p { margin: 4px 0 0; color: #d8e2f3; font-size: .88rem; max-width: 540px; }
.lba-st { display: flex; flex-wrap: wrap; gap: 8px; }
.lba-st div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(188, 195, 219, .3); border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 76px; }
.lba-st b { display: block; font-size: 1.4rem; color: var(--gold-200); line-height: 1.1; }
.lba-st span { font-size: .72rem; color: #d8e2f3; }
.lba .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.lba .toolbar input[type=search] { flex: 1; min-width: 180px; }
.lba-list { display: grid; gap: 8px; }
.lba-row { display: flex; align-items: center; gap: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.lba-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lba-t b { color: var(--blue-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lba-t b[lang="en"] { font-family: var(--f-head); font-size: 1.15rem; }
.lba-t small { color: var(--muted); font-size: .78rem; }
.lba-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.lba-pills i { font-style: normal; font-size: .7rem; padding: 1px 8px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink-2); }
.lba-pills i.ok { background: #ede8f6; border-color: #bba8dc; color: #321760; }
.lba-pills i.off { background: #f1f2f5; color: #798295; }
.lba-pills i.gold { background: var(--gold-50); border-color: var(--gold-200); color: var(--gold-700); }
.lba-acts { display: flex; gap: 6px; flex: none; }
.lbe .ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.lbe .ed-head h2 { margin: 0; flex: 1; color: var(--blue-950); }
.lbe .ed-actions { display: flex; gap: 8px; }
.lbe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.lbe-side { position: sticky; top: 74px; display: grid; gap: 12px; }
.lbe .panel { margin-bottom: 12px; }
.lbe-side .panel { margin: 0; }
.lbe-h { margin: 0 0 10px; font-size: 1rem; color: var(--blue-950); display: flex; gap: 8px; align-items: center; }
.lbe-h i { color: var(--gold); }
.lbe-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lbe input.big { font-size: 1.15rem; font-weight: 700; }
.lbe-tsug { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 10px; }
.lbe-tsug button, .chip-b { border: 1px solid var(--line); background: var(--ivory); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink-2); }
.lbe-tsug button:hover, .chip-b:hover { background: var(--gold-50); border-color: var(--gold-200); }
.lbe .panel-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.lbe .panel-h h3 { margin: 0; }
.lbe-fm[hidden] { display: none; }
.lbe-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--gold-200); background: var(--gold-50); border-radius: 14px; padding: 22px; cursor: pointer; color: var(--blue-950); margin-bottom: 10px; text-align: center; }
.lbe-drop i { font-size: 1.8rem; color: var(--gold); }
.lbe-drop small { color: var(--muted); }
.lbe-imp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.lbe-wc { margin-inline-start: auto; color: var(--muted); font-size: .8rem; }
.lbe-rte { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #ffffff; }
.lbe-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.lbe-bar button { min-width: 32px; height: 32px; border: 1px solid transparent; background: #ffffff; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem; color: var(--blue-950); padding: 0 7px; }
.lbe-bar button:hover { border-color: var(--gold-200); background: var(--gold-50); }
.lbe-bar .sep { width: 1px; background: var(--line); margin: 4px 3px; }
.lbe-area { margin: 0 !important; max-width: none !important; border-radius: 0 !important; box-shadow: none !important; min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 24px 28px !important; outline: 0; -webkit-user-select: text; user-select: text; font-size: 17px !important; }
.lbe-area::before { display: none; }
.lbe-area[lang="dv"] { font-size: 18px !important; }
.lbe-area[lang="ar"] { font-size: 20px !important; }
.lbe-area * { -webkit-user-select: text; user-select: text; }
.lbe textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; -webkit-user-select: text; user-select: text; }
.lbe input, .lbe textarea { -webkit-user-select: text; user-select: text; }
.lbe-cvp { width: 170px; margin: 0 auto 12px; }
.lbe-colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.lbe-colors button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff; background: linear-gradient(150deg, var(--c2), var(--c1)); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.lbe-colors button.on { box-shadow: 0 0 0 3px var(--gold); }
.lbe-cvb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lba-plan { display: grid; grid-template-columns: 64px 1fr auto 84px 30px; gap: 6px; align-items: center; margin-bottom: 6px; }
.lba-plan input, .lba-plan select { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 0; }
.lba-plan .cur { font-size: .75rem; color: var(--muted); }
.lba-plan .pr { border: 0; background: #fbeceb; color: #8a1c1c; border-radius: 8px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.lbe-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.sr-du { display: flex; gap: 4px; }
.sr-du input { width: 64px; }
.sr-du select { padding: 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.sr-plan { font-size: .82rem; color: var(--gold-700); font-weight: 600; margin: 4px 0; }
.acc-lib h4 i { color: var(--gold); }
.acc-d input[type=datetime-local] { min-width: 190px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .lbe-grid { grid-template-columns: 1fr; }
  .lbe-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .lb-hero-in { grid-template-columns: 1fr; padding: 30px 16px 34px; gap: 20px; }
  .lb-hero-st { grid-template-columns: repeat(4, 1fr); }
  .lb-hero-st div { padding: 10px 4px; }
  .lb-hero-st b { font-size: 1.4rem; }
  .lb-main { padding: 16px 14px 50px; }
  .lb-grid { grid-template-columns: 1fr; }
  .lb-fbtn { display: inline-flex; }
  .lb-filters { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 330px); z-index: 1100; border-radius: 0; max-height: none; transform: translateX(-105%); transition: transform .25s; box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
  .is-rtl .lb-filters { transform: translateX(105%); }
  .lb-filters.open { transform: none !important; }
  .lb-f-x { display: block; }
  .lb-band-in { grid-template-columns: 1fr; }
  .lb-band { padding: 34px 0; }
  .lb-det { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .lb-det-cv { position: static; width: 170px; margin: 0 auto; }
  .lr-toc { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(84vw, 300px); box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .lr-text { margin: 0; padding: 30px 20px 30px; border-radius: 0; min-height: 100%; }
  .lr-text::before { inset: 8px; }
  .lb-pt-h { display: none; }
  .lb-pt-r { grid-template-columns: 1fr auto; }
  .lb-pt-k { display: none; }
  .lb-pt-p { grid-column: 1 / -1; order: 3; }
  .lbe-row3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lb-search { padding-inline-start: 12px; }
  .lb-search .btn { padding: 8px 14px; }
  .lb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lb-tabs button { flex: none; padding: 7px 12px; font-size: .86rem; }
  .lb-tabs .lb-mystat { margin-inline-start: 0; }
  .lb-views span { display: none; }
  .lb-sort { margin-inline-start: 0; flex: 1; }
  .lb-sort select { width: 100%; }
  .lb-book { flex-basis: 108px; }
  .lb-row { gap: 14px; }
  .lb-shelf { padding: 12px 10px 0; }
  .lb-plank { margin: 0 -10px; }
  .lb-cards { grid-template-columns: 1fr; }
  .lb-card { grid-template-columns: 90px 1fr; padding: 12px; gap: 12px; }
  .lb-li-p { display: none; }
  .lb-band-shelf .lb-book { flex-basis: 78px; }
  .lb-band-shelf .lb-book:nth-child(n+5) { display: none; }
  .lr-bar { gap: 8px; padding: 6px 8px; }
  .lr-logo { display: none; }
  .lr-btn { min-width: 32px; height: 32px; padding: 0 6px; font-size: .78rem; }
  .lr-z { display: none; }
  .lr-foot .lr-ns { display: none; }
  .lr-tag { font-size: 9px; }
  .lba-row { flex-wrap: wrap; }
  .lba-acts { width: 100%; justify-content: flex-end; }
  .lba-plan { grid-template-columns: 54px 1fr 70px 30px; }
  .lba-plan .cur { display: none; }
}

/* =====================================================================
   FIELDS · SHARING · COMMENTS · EXCLUSIVE · AUTHORS · INCOME
   ===================================================================== */
.lb-doms { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; max-width: 100%; }
.lb-doms::-webkit-scrollbar { display: none; }
.lb-doms button { flex: none; border: 1px solid rgba(188, 195, 219, .35); background: rgba(36, 16, 70, .45); color: #ece8f3; border-radius: 12px; padding: 7px 13px; font: inherit; font-size: .86rem; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; transition: .2s; }
.lb-doms button i { color: var(--gold-200); }
.lb-doms button .n { font-size: .72rem; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 0 7px; }
.lb-doms button.on, .lb-doms button:hover { background: #ffffff; color: var(--blue-950); border-color: #ffffff; font-weight: 700; }
.lb-doms button.on i, .lb-doms button:hover i { color: var(--green-700); }
.lb-dm { color: var(--green-900); font-size: .74rem; font-weight: 600; }
.lb-dm i { color: var(--gold); font-size: .7rem; }
.lb-chips.dm button { background: #f1eef6; border-color: #cbbfe0; color: var(--green-900); font-weight: 600; }
.lb-chips.dm button i { color: var(--green-700); }
.lb-chips bdi { font-size: .72rem; color: var(--muted); }

/* share buttons on items */
.lb-shb { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--blue-950); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); font-size: .8rem; cursor: pointer; opacity: 0; transition: .2s; }
.lb-book:hover .lb-shb, .lb-card:hover .lb-shb, .lb-book:focus-within .lb-shb { opacity: 1; }
@media (hover: none) { .lb-shb { opacity: 1; } }
.lb-shb:hover { background: var(--gold); }
.lb-card .lb-shb { top: 10px; inset-inline-start: auto; inset-inline-end: 10px; }
.lb-li .lb-shb, .lb-shb.in { position: static; opacity: 1; flex: none; box-shadow: none; background: var(--ivory); border: 1px solid var(--line); }
.lb-tile { position: relative; }
.lb-tsh { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(188, 195, 219, .6); background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer; z-index: 2; }
.lb-tsh:hover { background: var(--gold); color: var(--blue-950); }
.lb-active .sh { background: var(--blue-950); color: #ffffff; border-color: var(--blue-950); }
.lb-share h2 { margin: 0 0 12px; color: var(--blue-950); display: flex; gap: 10px; align-items: center; }
.lb-share h2 i { color: var(--gold); }
.lb-sh-pv { position: relative; min-height: 120px; border-radius: 14px; overflow: hidden; background: #092350; margin-bottom: 12px; box-shadow: var(--shadow-2); }
.lb-sh-pv img { width: 100%; display: block; }
.lb-sh-pv .lr-load { position: relative; inset: auto; height: 160px; }
.lb-sh-link { display: flex; gap: 8px; margin-bottom: 12px; }
.lb-sh-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .85rem; background: var(--ivory); -webkit-user-select: all; user-select: all; }
.lb-sh-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lb-sh-btns .btn { flex: 1 1 130px; justify-content: center; }
.btn-viber { background: #7360f2; color: #ffffff; }
.btn-wa { background: #25d366; color: #ffffff; }

/* summary · exclusive · ribbons */
.lb-sum { background: linear-gradient(135deg, #eef0f7, #ffffff); border: 1px solid var(--gold-200); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin: 10px 0; line-height: 1.9; color: var(--ink); }
.lb-sum b { display: flex; gap: 8px; align-items: center; color: var(--gold-700); margin-bottom: 4px; font-size: .9rem; }
.lb-sum[lang="dv"] { font-family: var(--f-dv); font-size: 1.02rem; }
.lb-excl { display: inline-flex; gap: 8px; align-items: center; background: linear-gradient(135deg, #20265a, #4b54b4); color: #ffffff; border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 700; margin: 6px 0; }
.lb-excl i { color: var(--gold-200); }
.lb-rib.sold { background: linear-gradient(135deg, #434b59, #272c37); }
.lb-rib.excl { background: linear-gradient(135deg, #20265a, #4b54b4); padding: 3px 8px; }
.lr-sum { max-width: 980px; margin: 16px auto 0; background: #f9fafd; border: 1px solid #bbc2d7; border-inline-start: 5px solid #7886b4; border-radius: 10px; padding: 14px 18px; color: #1c2230; line-height: 1.9; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.lr-sum b { display: flex; gap: 8px; align-items: center; color: #475892; }
.lr-sum p { margin: 4px 0 0; white-space: pre-line; }
.lr-sum[lang="dv"] { font-family: var(--f-dv); font-size: 1.05rem; }
.lr-sum[lang="ar"] { font-family: "Amiri", var(--f-arui), serif; font-size: 1.15rem; }
.lr-scroll.is-pdf { padding: 0 12px; }

/* comments */
.lb-comments { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 4px; }
.lb-cn { background: var(--gold-grad); color: var(--blue-950); font-size: .72rem; border-radius: 999px; padding: 0 8px; }
.lb-cf { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; align-items: start; margin-bottom: 12px; }
.lb-cf input, .lb-cf textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; -webkit-user-select: text; user-select: text; min-width: 0; }
.lb-cl { display: grid; gap: 10px; }
.lb-c { display: flex; gap: 10px; position: relative; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lb-c .av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--royal-grad); color: #ffffff; display: grid; place-items: center; font-weight: 700; }
.lb-c b { color: var(--blue-950); margin-inline-end: 8px; }
.lb-c small { color: var(--muted); font-size: .72rem; }
.lb-c p { margin: 4px 0 0; line-height: 1.8; white-space: pre-line; }
.lb-cx { position: absolute; top: 6px; inset-inline-end: 8px; border: 0; background: none; color: #8a1c1c; font-size: 1.2rem; cursor: pointer; }

/* charts */
.lb-svg { width: 100%; height: auto; display: block; }
.lb-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-2); margin-top: 6px; }
.lb-leg span { display: inline-flex; gap: 6px; align-items: center; }
.lb-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lb-leg.col { flex-direction: column; gap: 6px; }
.lb-donut { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; }
.lb-donut .lb-svg { max-width: 170px; }

/* admin extras */
.lba-tabs { margin-bottom: 12px; }
.lba-tabs .nav-badge { position: static; margin-inline-start: 4px; }
.lba-pills i.dm { background: #f1eef6; border-color: #cbbfe0; color: var(--green-900); }
.lba-pills i.au { background: #efeffb; border-color: #ced0f1; color: #2b2f69; }
.lba-pct { display: flex; gap: 8px; align-items: flex-end; }
.lba-pct .fld span { color: #d8e2f3; }
.lba-pct input { width: 90px; }
.lba-auth { display: grid; gap: 8px; }
.lba-au { display: flex; align-items: center; gap: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.lba-au .av { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--royal-grad); color: #ffffff; display: grid; place-items: center; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(188, 195, 219, .6); }
.lba-au .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lba-au .t b { color: var(--blue-950); }
.lba-au .t small { color: var(--muted); font-size: .76rem; }
.lba-au .pct { text-align: center; min-width: 70px; }
.lba-au .pct b { display: block; font-size: 1.2rem; color: var(--gold-700); }
.lba-au .pct small { font-size: .7rem; color: var(--muted); }
.lba-row.dr .dr-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fbeceb; color: #8a1c1c; }
.dr-r { margin: 2px 0; font-size: .85rem; color: var(--ink-2); }
.lbe-doms { display: flex; flex-wrap: wrap; gap: 6px; }
.lbe-doms button { border: 1px solid var(--line); background: #ffffff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.lbe-doms button i { color: var(--gold); font-size: .78rem; }
.lbe-doms button.on { background: var(--green-900); color: #ffffff; border-color: var(--green-900); }
.lbe-doms button.on i { color: var(--gold-200); }
.lbe-doms button.add { border-style: dashed; border-color: var(--gold); color: var(--gold-700); background: var(--gold-50); font-weight: 700; }
.lbe-me { margin: 0 0 10px; display: flex; flex-direction: column; }
.lbe-me small { color: var(--muted); }

/* income page */
.ls .lba-hero { margin-bottom: 12px; }
.ls-filt { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.ls-filt .fld { margin: 0; }
.ls-filt select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.ls-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ls-kpi div { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.ls-kpi div::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); }
.ls-kpi i { color: var(--gold); }
.ls-kpi b { font-size: 1.25rem; color: var(--blue-950); }
.ls-kpi span { font-size: .78rem; color: var(--muted); }
.ls-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ls-charts .panel { margin: 0; }
.ls-charts h3, .ls .panel > h3 { margin: 0 0 10px; font-size: 1rem; color: var(--blue-950); display: flex; gap: 8px; align-items: center; }
.ls-charts h3 i, .ls .panel > h3 i { color: var(--gold); }
.ls-wide { grid-column: 1 / -1; }
.ls-scroll { overflow-x: auto; }
.ls-scroll .lb-svg { min-width: 560px; }
.ls-tw { overflow-x: auto; }
.ls-t { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ls-t th { background: var(--blue-950); color: var(--gold-200); text-align: start; padding: 8px 10px; font-size: .76rem; white-space: nowrap; }
.ls-t td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.ls-t td small { display: block; color: var(--muted); font-size: .72rem; }
.ls-t tr:nth-child(even) td { background: #f6f6f9; }
.ls-t .st { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ls-t .st.ok, .ls-pay .st.ok { background: #ede8f6; color: #321760; }
.ls-t .st.no, .ls-pay .st.no { background: #e1e5f1; color: #40559c; }
.ls-selbar { position: sticky; top: 66px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--blue-950); color: #ffffff; border-radius: 14px; padding: 10px 16px; margin-bottom: 12px; box-shadow: var(--shadow-2); }
.ls-selbar b { color: var(--gold-200); font-size: 1.1rem; }
.ls-pays { display: grid; gap: 8px; }
.ls-pay { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #ffffff; }
.ls-pay > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-pay small { color: var(--muted); font-size: .76rem; }
.ls-pay .amt { color: var(--green-900); font-size: 1.1rem; }
.ls-pay .slip { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.ls-paysum { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 14px; padding: 14px; }
.ls-paysum span { font-size: 1.6rem; font-weight: 800; color: var(--green-900); }
.ls-paysum small { color: var(--muted); }
@media (max-width: 900px) {
  .ls-charts { grid-template-columns: 1fr; }
  .lb-donut { grid-template-columns: 130px 1fr; }
  .lb-cf { grid-template-columns: 1fr; }
}

/* ---- layout fixes: hero never wider than the screen; books keep one size; shelves fill wide screens ---- */
.lb-hero-in { grid-template-columns: minmax(0, 1fr) auto; }
.lb-hero-t { min-width: 0; }
.lb-book { width: 132px; min-width: 0; }
.lb-row.mine .lb-book { width: 112px; }
.lb-band-shelf .lb-book { width: 104px; }
.lb-shelves { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: stretch; }
.lb-shelf { display: flex; flex-direction: column; }
.lb-shelf .lb-row { flex: 1; }
@media (max-width: 900px) {
  .lb-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lb-hero-st { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 640px) {
  .lb-book { width: 108px; }
  .lb-band-shelf .lb-book { width: 78px; }
  .lb-hero h1 { font-size: 2.2rem; }
  .lb-hero p { font-size: .92rem; }
  .lb-langs button { padding: 5px 11px; font-size: .84rem; }
}
.lb-addbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--gold-50); border: 1px dashed var(--gold); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.lb-addbar span { flex: 1; min-width: 200px; color: var(--gold-700); font-size: .9rem; }
.lb-elnote { display: flex; gap: 10px; align-items: flex-start; background: #edf3fc; border: 1px solid #c7d8f3; color: var(--blue-900); border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: .9rem; line-height: 1.7; }
.lb-elnote i { color: var(--blue-700); margin-top: 4px; }
.lba-elnote { margin: 0 0 10px; }
.lb-imp h2 { margin: 0 0 6px; color: var(--blue-950); display: flex; gap: 10px; align-items: center; }
.lb-imp h2 i { color: var(--gold); }
.lb-imp #imp-mode { margin: 8px 0 12px; }
.lb-imp-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 12px 0; background: var(--ivory); }
.lb-imp-tr h4 { margin: 10px 0 6px; color: var(--blue-950); display: flex; gap: 8px; align-items: center; }
.lb-imp-tr h4 i { color: var(--gold); }
.lb-imp-lv { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.lb-imp-lv > b { display: block; font-size: .82rem; color: var(--gold-700); margin-bottom: 4px; }
.lb-imp-it { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px dashed var(--line); cursor: pointer; }
.lb-imp-it:first-of-type { border-top: 0; }
.lb-imp-it i { color: var(--blue-700); width: 18px; text-align: center; }
.lb-imp-it span { flex: 1; }
.lb-imp-it small { font-size: .72rem; color: var(--muted); background: var(--ivory); border-radius: 999px; padding: 1px 8px; }
.lb-imp-it.off { opacity: .55; cursor: default; }

/* ---- covers: mixed Dhivehi / English titles keep their own direction ---- */
.lb-cv-t, .lb-cap b, .lb-li-t b, .lba-t b, .lb-card h3 { unicode-bidi: plaintext; }
/* ---- home band: fields, captions and "more" ---- */
.lb-band-doms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lb-band-doms a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(188, 195, 219, .4); background: rgba(255, 255, 255, .06); color: #ece8f3; text-decoration: none; font-size: .85rem; transition: .2s; }
.lb-band-doms a i { color: var(--gold-200); }
.lb-band-doms a bdi { font-size: .72rem; opacity: .75; }
.lb-band-doms a:hover, .lb-band-doms a.all { background: #ffffff; color: var(--blue-950); }
.lb-band-doms a:hover i, .lb-band-doms a.all i { color: var(--green-700); }
.lb-band-shelf .lb-row { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-top: 10px; }
.lb-band-shelf .lb-row::-webkit-scrollbar { display: none; }
.lb-band-shelf .lb-book { flex: 0 0 112px; width: 112px; }
.lb-band-shelf .lb-book:nth-child(even) .lb-cv { transform: none; }
.lb-band-shelf .lb-cap { padding: 6px 2px 8px; }
.lb-band-shelf .lb-cap b { color: #ffffff; font-size: .78rem; -webkit-line-clamp: 2; }
.lb-band-shelf .lb-cap b[lang="en"] { font-size: .9rem; }
.lb-more .lb-cv { background: linear-gradient(160deg, rgba(120, 134, 180, .95), rgba(71, 88, 146, .95)); }
.lb-more-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; color: var(--blue-950); }
.lb-more-in i { font-size: 1.6rem; }
.lb-more-in b { font-size: .95rem; }
.lb-more-in small { font-size: .68rem; font-weight: 600; }
.pv-lib { display: flex; margin: 0 0 10px; padding: 8px 12px; background: #f1eef6; border: 1px solid #cbbfe0; border-radius: 10px; color: var(--green-900); font-weight: 600; }
@media (max-width: 640px) { .lb-band-shelf .lb-book { flex-basis: 92px; width: 92px; } .lb-band-shelf .lb-book:nth-child(n+5) { display: block; } }
.lb-band-in > * { min-width: 0; }
.lb-band-st, .lb-band-b, .lb-band-doms { max-width: 100%; }
.lb-band-shelf .lb-cap { height: 3.2em; overflow: hidden; }
.lb-band-shelf .lb-cap b, .lb-band-shelf .lb-cap b[lang="en"] { font-size: .78rem; font-family: inherit; line-height: 1.45; }
.lb-band-shelf .lb-cap b[lang="en"] { font-family: Inter, sans-serif; font-weight: 600; }
.lb-band-shelf .lb-row { justify-content: center; }
@media (max-width: 640px) {
  .lb-band-shelf .lb-book { flex-basis: 84px; width: 84px; }
  .lb-band-shelf .lb-book:nth-child(4) { display: none; }
  .lb-band-shelf .lb-row { gap: 10px; }
  .lb-band .lb-band-b .btn { padding: 9px 14px; font-size: .88rem; }
}
@media (max-width: 440px) { .lb-band-shelf .lb-book:nth-child(3) { display: none; } .lb-band-shelf .lb-book { flex-basis: 92px; width: 92px; } }

/* ===== timed free preview ===== */
.lb-taste-b { position: relative; }
.lb-taste-b::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--gold); opacity: .55; animation: lbPulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes lbPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.08); opacity: 0; } }
.lr-cd { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-grad); color: var(--blue-950); font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 10px rgba(120, 134, 180, .35); }
.lr-cd b { font-variant-numeric: tabular-nums; font-size: .95rem; }
.lr-cd.low { background: linear-gradient(135deg, #f19a9a, #b3263c); color: #ffffff; animation: lrBlink 1s steps(2) infinite; }
@keyframes lrBlink { 50% { opacity: .65; } }
.lr-tend { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, rgba(19, 66, 141, .92), rgba(9, 35, 80, .97)); backdrop-filter: blur(6px); }
.lr-tend[hidden] { display: none; }
.lr-tend-c { max-width: 420px; text-align: center; color: #ffffff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(188, 195, 219, .35); border-radius: 20px; padding: 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.lr-tend-c > i { font-size: 2.4rem; color: var(--gold-200); }
.lr-tend-c h3 { font-family: var(--f-head); font-size: 1.5rem; margin: 10px 0 6px; color: var(--gold-200); }
.lr-tend-c p { margin: 0 0 18px; opacity: .9; }
.lr-tend-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lr-tend-b .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, .4); }
.lr-pg.img { height: auto !important; width: min(100%, 860px) !important; }
.lr-pg.img img { display: block; width: 100%; height: auto; pointer-events: none; }
.lr-pg.more { height: auto !important; width: min(100%, 860px) !important; padding: 34px 16px; display: grid; place-items: center; gap: 8px; text-align: center; background: var(--gold-50); border: 2px dashed var(--gold); color: var(--blue-950); }
.lr-pg.more i { font-size: 1.6rem; color: var(--gold-700); }
.lbe-pv { border-top: 3px solid var(--gold); }
.lbe-secs { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lbe-secs button { border: 0; background: var(--gold-50); color: var(--gold-700); font: inherit; font-weight: 700; padding: 0 10px; cursor: pointer; }
.lbe-secs input { width: 76px; border: 0 !important; text-align: center; border-radius: 0 !important; }
.lb-defsecs { margin-top: 14px; }

/* ===== verified sales: requests, slips, new badges ===== */
.ls-new { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-grad); color: var(--blue-950); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .85rem; align-self: center; animation: lrBlink 1.6s steps(2) 3; }
.ls-reqs { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.ls-rq { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--muted); border-radius: 12px; background: var(--paper); }
.ls-rq b { flex: 1 1 60%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-rq small { order: 3; flex: 1 0 100%; color: var(--muted); font-size: .76rem; }
.ls-rq .pill { flex: 0 0 auto; width: auto; height: auto; display: inline-flex; align-items: center; gap: 5px; border: 0; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ivory); color: var(--ink-2); white-space: nowrap; }
.ls-rq .pill.sl { background: #ece6f6; color: var(--green-900); }
.ls-rq .pill.no { background: #fdecee; color: #a2283b; }
.ls-rq.st-new { border-inline-start-color: var(--blue-500); }
.ls-rq.st-confirmed { border-inline-start-color: var(--amber); }
.ls-rq.st-paid { border-inline-start-color: var(--gold); }
.ls-rq.st-active { border-inline-start-color: var(--green-500); }
.ls-rq.st-rejected { border-inline-start-color: #c0392b; opacity: .7; }
.ls-slip { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--ivory); color: var(--muted); overflow: hidden; cursor: zoom-in; margin: 1px; vertical-align: middle; }
.ls-slip img { width: 100%; height: 100%; object-fit: cover; }
.ls-t td.sl { white-space: nowrap; }
.ls-t .poslip { display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; cursor: zoom-in; }
.ls-t tr.nw td { background: #f0f2f9; }
.nwb { display: inline-block; background: #b3263c; color: #ffffff; font-size: .62rem; letter-spacing: .05em; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.sr-libnote { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-size: .84rem; background: #fdecee; color: #8c2232; border: 1px solid #f3c2c9; }
.sr-libnote.ok { background: #ece6f6; color: var(--green-900); border-color: #cdbfe6; }
@media (max-width: 640px) {
  .ls-rq b { flex-basis: 100%; white-space: normal; }
  .lr-cd { font-size: .72rem; padding: 4px 9px; }
}

/* ===== rich summary (any format) ===== */
.lb-sum-h { max-height: 230px; overflow: hidden; position: relative; transition: max-height .3s; }
.lb-sum-h::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, #f4f5f9); pointer-events: none; }
.lb-sum-h.open { max-height: none; }
.lb-sum-h.open::after { display: none; }
.lb-sum-h.lr-text, .lr-sum-h { margin: 0 !important; padding: 0 !important; max-width: none !important; background: none !important; box-shadow: none !important; border: 0 !important; font-size: inherit !important; }
.lb-sum-h.lr-text::before { display: none; }
.lb-sum-h p, .lr-sum-h p { margin: 0 0 .55em; }
.lb-sum-h h2, .lb-sum-h h3, .lr-sum-h h2, .lr-sum-h h3 { font-size: 1.05em; margin: .6em 0 .3em; color: var(--blue-950); }
.lb-sum-more { margin-top: 6px; border: 1px solid var(--gold-200); background: #ffffff; color: var(--gold-700); font: inherit; font-size: .82rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; cursor: pointer; }
.lr-sum.in-text { margin: 0 0 1.4em; box-shadow: none; max-width: none; }
.lbe-imp.sm { margin: 4px 0 6px; }
.lbe-imp.sm small { color: var(--muted); font-size: .78rem; }
.lbe-rte.sm .lbe-area { min-height: 130px; max-height: 340px; padding: 14px 18px !important; }
.lbe-sumf > span:first-child { display: block; }
@media (max-width: 640px) { .lbe-imp.sm .btn { padding: 5px 10px; font-size: .78rem; } }
