/* মুদ্রণ প্রকাশনী — "bright gallery"
   Books are shown as objects in a gallery: real 3D volumes on a white wall, lit from above.
   Palette: gallery white, plinth grey, graphite, one cobalt accent (ebooks, links), red for discounts only.
   Type: Noto Serif Bengali (light, large) for headings, Noto Sans Bengali for the interface. */

:root {
  --bg: #FCFCFB;
  --surface: #FFFFFF;
  --plinth: #EFEFEC;
  --wall: #F4F4F2;
  --ink: #17181B;
  --ink-2: #3C3F45;
  --muted: #74777E;
  --rule: #E3E3DF;
  --rule-2: #ECECE9;
  --accent: #2B45C9;
  --accent-ink: #1E33A0;
  --accent-tint: #E8ECFB;
  --red: #C0392B;
  --red-tint: #F8E7E4;
  --on-ink: #FFFFFF;
  --paper-edge: #F3F0E8;
  --lamp: rgba(255, 248, 230, .9);

  --serif: "Noto Serif Bengali", "Tiro Bangla", Georgia, serif;
  --sans: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;

  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1rem; --t-lg: 1.1875rem;
  --t-xl: 1.4375rem; --t-2xl: 1.875rem; --t-3xl: 2.5rem; --t-4xl: 3.5rem;

  --wrap: 1240px;
  --gut: 16px;
  --r-btn: 999px;
  --r-field: 10px;
  --r-panel: 14px;
  --shadow-obj: 0 30px 50px -28px rgba(23, 24, 27, .45), 0 12px 18px -14px rgba(23, 24, 27, .3);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
/* lamp OFF = night: plum sky, sunset neon (the default, cinematic). lamp ON = warm reading light.
   html[data-theme] is driven by the lamp switch (data-lamp mirrors it). */
:root {
  --sunset: linear-gradient(100deg, #D6336C 0%, #F0663A 52%, #F2A900 100%);
  --sunset-soft: linear-gradient(180deg, #FFE3D3 0%, #FFD0B5 100%);
  --glow: 0 0 0 transparent;
  --display: "Noto Serif Bengali", "Tiro Bangla", Georgia, serif;
}
:root[data-theme="light"] { --bg: #FBF6EE; --surface: #FFFFFF; --plinth: #F1E8DA; --wall: #F4EBDD; --ink: #1E1520; --ink-2: #463A47; --muted: #7A6E78; --rule: #E6DACA; --rule-2: #EFE5D7; --accent: #C2255C; --accent-ink: #9C1A49; --accent-tint: #FBE4EC; --lamp: rgba(255, 214, 140, .55); }
:root:not([data-theme="light"]) {
  --bg: #130C1B; --surface: #1C1328; --plinth: #251A34; --wall: #180F22; --ink: #F7EFE8; --ink-2: #D9CCD6; --muted: #A796A8;
  --rule: #33243F; --rule-2: #281C33; --accent: #FF5C93; --accent-ink: #FF8CB2; --accent-tint: #3A1730; --red: #FF7A66; --red-tint: #3D1C22;
  --on-ink: #130C1B; --paper-edge: #E6DCCB; --lamp: rgba(255, 170, 120, .16);
  --sunset: linear-gradient(100deg, #FF4F8B 0%, #FF8A3D 50%, #FFD166 100%);
  --glow: 0 0 40px rgba(255, 92, 147, .35);
  --shadow-obj: 0 30px 50px -24px rgba(0, 0, 0, .85), 0 12px 18px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-md); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
#app:focus, #app:focus-visible { outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
@media (min-width: 720px) { :root { --gut: 32px; } }
.muted { color: var(--muted); }

/* entrance reveal — one per section, triggered when it enters the viewport */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ buttons & fields */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.4rem; border-radius: var(--r-btn);
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font-weight: 500; font-size: var(--t-md); text-decoration: none; cursor: pointer; overflow: hidden;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--accent); padding: 0 .3rem; }
.btn--quiet:hover { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--on-ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn--primary):not(.btn--accent).is-busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: .35rem; align-content: start; }
.field > span { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: var(--t-xs); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--rule); border-radius: var(--r-field);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }

/* ------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.hdr.is-scrolled { border-bottom-color: var(--rule); }
.hdr__row { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { position: relative; width: 26px; height: 30px; perspective: 120px; }
.brand__mark i { position: absolute; bottom: 0; width: 7px; border-radius: 1px; background: var(--ink); }
.brand__mark i:nth-child(1) { left: 0; height: 30px; }
.brand__mark i:nth-child(2) { left: 9px; height: 26px; background: var(--accent); }
.brand__mark i:nth-child(3) { left: 17px; height: 28px; transform: rotate(10deg); transform-origin: bottom left; opacity: .5; }
.brand__name { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand__name b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; }
.brand__name span { font-size: var(--t-sm); color: var(--muted); }
.brand__logo { height: 36px; width: auto; }
.hdr__nav { display: none; gap: 2px; margin-left: 18px; }
.hdr__nav a { position: relative; text-decoration: none; padding: .5rem .9rem; font-weight: 500; color: var(--ink-2); }
.hdr__nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hdr__nav a:hover { color: var(--ink); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__nav a[aria-current="page"] { color: var(--ink); }
.search { flex: 1; display: none; align-items: center; gap: 8px; max-width: 360px; margin-left: auto; padding: 0 16px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-btn); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.search svg { color: var(--muted); width: 1.1rem; height: 1.1rem; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.hdr__tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.search + .hdr__tools { margin-left: 0; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 .75rem; border-radius: var(--r-btn); border: 0; background: transparent; text-decoration: none; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.tool:hover, .tool[aria-current="page"] { background: var(--plinth); color: var(--ink); }
.tool__lbl { display: none; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.tool .pill { position: absolute; top: 3px; right: 0; }
.tool.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.2); } 60% { transform: scale(.95); } }
.mnav { display: flex; gap: 6px; padding: 0 var(--gut) 12px; overflow-x: auto; }
.mnav a { flex: 1; text-align: center; text-decoration: none; padding: .5rem .9rem; border: 1px solid var(--rule); border-radius: var(--r-btn); font-weight: 500; white-space: nowrap; background: var(--surface); }
.mnav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.mnav .search { display: flex; max-width: none; margin: 0; flex: 2; height: 42px; }
@media (min-width: 900px) {
  .hdr__nav, .search { display: flex; }
  .tool__lbl { display: inline; }
  .tool .pill { position: static; }
  .mnav { display: none; }
}

/* ------------------------------------------------------------ 3D book object (.b3)
   Six faces around a box: front = cover image, back = back cover, left = spine, right = page block. */
.b3 {
  --w: 160px; --h: 240px; --d: 28px; --spine: #2A2D33; --ry: 0deg; --rx: 0deg; --open: 0deg;
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.b3__face { position: absolute; top: 0; left: 0; backface-visibility: hidden; }
.b3__front, .b3__back, .b3__first { width: var(--w); height: var(--h); }
.b3__front { transform-origin: left center; transform: translateZ(calc(var(--d) / 2)) rotateY(var(--open)); transition: transform 1s var(--ease); z-index: 2; background: var(--spine); border-radius: 1px 3px 3px 1px; overflow: hidden; }
.b3__front img, .b3__back img, .b3__first img { width: 100%; height: 100%; object-fit: cover; }
.b3__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .22) 0, rgba(255, 255, 255, .14) 3%, transparent 7%, transparent 80%, rgba(255, 255, 255, .06)); pointer-events: none; }
.b3__front .glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .35), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; mix-blend-mode: soft-light; }
/* inside of the cover: the front face stays visible from behind in the pull-out, and this paper layer
   switches on at the half-way point of the swing so you see the cover's inside, not a mirrored cover */
.pullout .b3__front { backface-visibility: visible; }
.b3__inner { position: absolute; inset: 0; z-index: 3; background: #F6F3EC; border-radius: 3px 1px 1px 3px; box-shadow: inset 12px 0 18px -12px rgba(0, 0, 0, .25); opacity: 0; transition: opacity 0s .32s; }
.pullout.is-open .b3__inner { opacity: 1; }
.b3__first { transform: translateZ(calc(var(--d) / 2 - 1px)); background: #FBF9F4; overflow: hidden; box-shadow: inset 14px 0 20px -14px rgba(0, 0, 0, .3); }
.b3__first-txt { padding: 14% 12%; color: #23252A; font-family: var(--serif); display: grid; gap: 8px; height: 100%; align-content: start; }
.b3__first-txt b { font-size: calc(var(--w) * .085); font-weight: 600; line-height: 1.3; }
.b3__first-txt span { font-size: calc(var(--w) * .055); color: #6F7279; }
.b3__first-txt i { display: block; height: 1px; background: #D9D6CE; margin: 6px 0; }
.b3__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--spine); border-radius: 3px 1px 1px 3px; overflow: hidden; }
.b3__spine { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: var(--spine); display: grid; place-items: center; overflow: hidden; }
.b3__spine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .08) 40%, rgba(0, 0, 0, .2)); }
.b3__spine span { writing-mode: vertical-rl; color: #fff; font-size: clamp(9px, calc(var(--d) * .42), 14px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 80%; opacity: .92; }
.b3__pages { width: calc(var(--d) - 2px); height: calc(var(--h) - 6px); top: 3px; left: calc((var(--w) - var(--d)) / 2 + 1px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px)); background: repeating-linear-gradient(90deg, var(--paper-edge) 0 1px, #E2DED3 1px 2px); }
.b3__top, .b3__bottom { width: calc(var(--w) - 3px); height: calc(var(--d) - 2px); top: calc((var(--h) - var(--d)) / 2 + 1px); background: repeating-linear-gradient(0deg, var(--paper-edge) 0 1px, #E2DED3 1px 2px); }
.b3__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.b3__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.b3-shadow { position: absolute; left: 50%; bottom: -26px; width: 120%; height: 30px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(23, 24, 27, .28), transparent 70%); filter: blur(4px); pointer-events: none; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 40px 0 24px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 40px; } .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 40px; min-height: 560px; } }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; max-width: 14ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero__lede { margin-top: 22px; font-size: var(--t-lg); color: var(--ink-2); max-width: 40ch; opacity: 0; animation: fadeIn .9s .45s var(--ease-out) forwards; }
.hero__cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; animation: fadeIn .9s .6s var(--ease-out) forwards; }
.hero__facts { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: var(--t-sm); opacity: 0; animation: fadeIn .9s .75s var(--ease-out) forwards; }
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { color: var(--ink); width: 1.1rem; height: 1.1rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stage { position: relative; height: 380px; perspective: 1400px; display: grid; place-items: center; }
@media (min-width: 960px) { .stage { height: 520px; } }
.stage::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 34%; background: var(--plinth); border-radius: 50%; filter: blur(0); transform: rotateX(70deg); opacity: .9; }
.stage__set { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--py, 0) * -6deg)) rotateY(calc(var(--px, 0) * 10deg + var(--sy, 0) * 1deg)); transition: transform .6s var(--ease); }
.stage__item { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; animation: drift 7s ease-in-out infinite; }
.stage__item .b3 { cursor: pointer; transition: transform 1s var(--ease); }
.stage__item:hover .b3 { --ry: -8deg !important; }
.stage__item:nth-child(1) { transform: translate3d(-115%, -50%, -120px); animation-delay: -1s; }
.stage__item:nth-child(2) { transform: translate3d(-50%, -56%, 60px); animation-delay: -3s; }
.stage__item:nth-child(3) { transform: translate3d(18%, -46%, -40px); animation-delay: -5s; }
@keyframes drift { 50% { translate: 0 -12px; } }
/* entrance uses transform only — opacity or filter on a 3D container would flatten the book */
.stage__item .b3 { animation: bookIn 1.4s var(--ease-out) backwards; }
.stage__item:nth-child(1) .b3 { animation-delay: .25s; }
.stage__item:nth-child(2) .b3 { animation-delay: .4s; }
.stage__item:nth-child(3) .b3 { animation-delay: .55s; }
@keyframes bookIn { from { translate: 0 90px; scale: .85; } to { translate: 0 0; scale: 1; } }

/* ------------------------------------------------------------ the 3D shelf (carousel) */
.gallery { position: relative; margin-top: 32px; padding: 56px 0 44px; background: var(--wall); overflow: hidden; isolation: isolate; }
.gallery::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 380px at var(--lx, 50%) var(--ly, 30%), var(--lamp), transparent 70%); transition: background .2s; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gallery__head h2 { font-size: clamp(1.75rem, 3.4vw, var(--t-3xl)); font-weight: 400; letter-spacing: -.02em; }
.gallery__head p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--rule); }
.seg button { border: 0; background: transparent; border-radius: var(--r-btn); min-height: 38px; padding: 0 1.1rem; cursor: pointer; font-weight: 500; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ring-stage { position: relative; height: 380px; perspective: 1600px; margin-top: 18px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-stage.is-drag { cursor: grabbing; }
@media (min-width: 720px) { .ring-stage { height: 440px; } }
.ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(-7deg) rotateY(var(--angle, 0deg)); transition: transform .9s var(--ease); }
.ring.is-drag { transition: none; }
.ring__item { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateY(var(--a)) translateZ(var(--r)) translate(-50%, -50%); }
.ring__item .b3 { cursor: pointer; transition: transform .6s var(--ease); }
.ring__item .b3__face { transition: filter .6s; }
.ring__item:not(.is-front) .b3__face { filter: brightness(.8) saturate(.85); }
.ring__item.is-front .b3 { transform: translateZ(40px) rotateY(var(--ry)); }
.ring__floor { position: absolute; left: 50%; bottom: 8%; width: min(900px, 90%); height: 120px; transform: translateX(-50%) rotateX(78deg); background: radial-gradient(ellipse at center, rgba(23, 24, 27, .16), transparent 68%); pointer-events: none; }
.ring-caption { text-align: center; min-height: 92px; display: grid; justify-items: center; gap: 4px; }
.ring-caption h3 { font-size: var(--t-xl); font-weight: 500; max-width: 30ch; }
.ring-caption .price { justify-content: center; }
.ring-caption.is-swap > * { animation: capIn .5s var(--ease-out); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } }
.ring-ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.round:hover { border-color: var(--ink); }
.round:active { transform: scale(.92); }
.ring-hint { font-size: var(--t-xs); color: var(--muted); }

/* ------------------------------------------------------------ sections & listings */
.section { padding: 72px 0 8px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.02em; }
.section__head p { color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; margin-bottom: 22px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 1rem; border: 1px solid var(--rule); border-radius: var(--r-btn); background: var(--surface); font-size: var(--t-sm); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip small { font-size: .75rem; opacity: .65; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 26px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.book { display: flex; flex-direction: column; min-width: 0; text-decoration: none; position: relative; }
.book__plinth { position: relative; display: grid; place-items: center; padding: 18px 14% 22px; background: var(--plinth); border-radius: 4px; perspective: 900px; transition: background-color .3s; }
.book:hover .book__plinth { background: color-mix(in srgb, var(--plinth) 70%, var(--rule)); }
.book__cover { position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: 1px 3px 3px 1px; overflow: hidden; background: var(--rule-2); box-shadow: var(--shadow-obj);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .15) 40%, transparent); z-index: 1; }
.book__cover .glare { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 55%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; pointer-events: none; }
.book.is-tilting .book__cover { transition: transform .12s linear, box-shadow .4s; box-shadow: 0 40px 60px -30px rgba(23, 24, 27, .55), 0 18px 24px -16px rgba(23, 24, 27, .35); }
.book.is-tilting .glare { opacity: 1; }
.book__fmt { position: absolute; left: 10px; top: 10px; z-index: 3; font-size: .75rem; font-weight: 500; padding: 2px 10px; border-radius: var(--r-btn); background: var(--surface); color: var(--ink); }
.book__fmt--ebook { background: var(--accent); color: #fff; }
.book__body { padding-top: 14px; display: grid; gap: 2px; }
.book__title { font-family: var(--serif); font-weight: 500; font-size: var(--t-md); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.book:hover .book__title { color: var(--accent); }
.book__author { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-feature-settings: "tnum"; }
.price b { font-weight: 600; font-size: var(--t-lg); }
.price s { color: var(--muted); font-size: var(--t-sm); }
.price .off { color: var(--red); font-size: var(--t-xs); font-weight: 600; }
.book__out { color: var(--red); font-size: var(--t-xs); font-weight: 600; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .select { width: auto; min-height: 42px; border-radius: var(--r-btn); padding-inline: 1rem; }
.page-head { padding: 48px 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, var(--t-4xl)); font-weight: 400; letter-spacing: -.025em; animation: fadeIn .7s var(--ease-out); }
.page-head p { margin-top: 10px; color: var(--ink-2); max-width: 60ch; font-size: var(--t-lg); }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.empty { padding: 48px 0; max-width: 46ch; }
.empty h2 { font-size: var(--t-xl); margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------ how ebooks work */
.how { margin-top: 88px; border-top: 1px solid var(--rule); }
.how__in { display: grid; gap: 32px; padding-block: 56px; }
@media (min-width: 900px) { .how__in { grid-template-columns: 1fr 2fr; gap: 64px; padding-block: 80px; } }
.how h2 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.02em; }
.how__intro p { color: var(--ink-2); margin-top: 14px; max-width: 38ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s, bengali); display: block; font-family: var(--serif); font-size: var(--t-3xl); font-weight: 300; line-height: 1; margin-bottom: 14px; color: var(--accent); }
.steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: var(--t-sm); }

/* ------------------------------------------------------------ book page */
.bk { display: grid; gap: 36px; padding: 28px 0 8px; }
@media (min-width: 900px) { .bk { grid-template-columns: minmax(300px, 440px) 1fr; gap: 72px; padding-top: 48px; } }
.bk__media { display: grid; justify-items: center; gap: 16px; }
@media (min-width: 900px) { .bk__media { position: sticky; top: 100px; align-self: start; } }
.bk__stage { position: relative; width: 100%; height: 420px; display: grid; place-items: center; perspective: 1400px; background: var(--plinth); border-radius: 6px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bk__stage .b3 { transition: transform .8s var(--ease); animation: bookIn 1.1s var(--ease-out); }
.bk__stage.is-drag { cursor: grabbing; }
.bk__stage.is-drag .b3 { transition: none; }
@media (min-width: 900px) { .bk__stage { height: 520px; } }
.bk__turn { display: flex; gap: 8px; }
.bk__fmt { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.bk h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; }
.bk__sub { font-size: var(--t-lg); color: var(--ink-2); margin-top: 8px; }
.bk__by { margin-top: 12px; color: var(--muted); }
.bk__by b { color: var(--ink); font-weight: 500; }
.bk__buy { margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 16px; }
.bk__buy .price b { font-family: var(--serif); font-size: var(--t-3xl); font-weight: 500; }
.bk__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bk__actions .btn { flex: 1 1 180px; }
.bk__note { font-size: var(--t-sm); color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.bk__note svg { color: var(--accent); margin-top: 3px; width: 1.05rem; height: 1.05rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--r-btn); background: var(--surface); height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.prose { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.9; color: var(--ink-2); max-width: 66ch; }
.prose p + p { margin-top: .9em; }
.bk__block { margin-top: 40px; }
.bk__block h2 { font-size: var(--t-xl); margin-bottom: 14px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; font-size: var(--t-sm); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.toc { margin: 0; padding-left: 1.4em; font-family: var(--serif); color: var(--ink-2); line-height: 2; }
.reviews { display: grid; gap: 16px; }
.review { border-top: 1px solid var(--rule); padding-top: 16px; }
.review b { font-weight: 600; }
.review .stars { color: var(--accent); font-size: var(--t-sm); margin-left: 6px; letter-spacing: 1px; }
.review p { margin-top: 6px; font-family: var(--serif); color: var(--ink-2); }

/* ------------------------------------------------------------ sheet & pull-out */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; }
.sheet__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .35s ease; }
.sheet.is-closing .sheet__scrim { animation: fade .3s ease reverse forwards; }
.sheet__panel { position: relative; background: var(--surface); width: 100%; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .25); animation: rise .45s var(--ease-out); }
.sheet.is-closing .sheet__panel { animation: rise .3s var(--ease) reverse forwards; }
@media (min-width: 720px) {
  .sheet { align-items: center; justify-items: center; padding: 24px; }
  .sheet__panel { max-width: 780px; border-radius: var(--r-panel); max-height: 88vh; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .35); }
  .sheet__panel--wide { max-width: 1000px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.sheet__bar h2 { font-size: var(--t-lg); }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); transition: background-color .2s; }
.icon-btn:hover { background: var(--plinth); color: var(--ink); }
.pages { display: grid; gap: 18px; padding: 22px; background: var(--plinth); }
.pages img, .pages canvas { width: 100%; max-width: 660px; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }

/* the pull-out: the clicked book flies to the middle, turns to face you, and its cover opens */
.pullout { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px; }
.pullout__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s ease; }
.pullout.is-on .pullout__scrim { opacity: 1; }
.pullout__box { position: relative; width: min(1040px, 100%); display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .pullout__box { grid-template-columns: 1.15fr 1fr; gap: 40px; } }
.pullout__stage { position: relative; height: 340px; perspective: 1600px; display: grid; place-items: center; }
@media (min-width: 860px) { .pullout__stage { height: 520px; } }
.pullout__fly { position: relative; transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.pullout__fly .b3 { transition: transform 1.1s var(--ease-out); }
.pullout.is-open .pullout__fly .b3 { --open: -158deg; --ry: 18deg; transform: rotateX(4deg) rotateY(18deg) translateX(34%); }
.pullout__info { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 26px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(24px); transition: opacity .6s .55s var(--ease-out), transform .6s .55s var(--ease-out); max-height: 46vh; overflow: auto; }
@media (min-width: 860px) { .pullout__info { max-height: none; } }
.pullout.is-on .pullout__info { opacity: 1; transform: none; }
.pullout__info h3 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.015em; line-height: 1.2; }
.pullout__info .prose { font-size: .98rem; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pullout__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pullout__close { position: absolute; top: 10px; right: 10px; }
.pullout.is-closing .pullout__scrim { opacity: 0; }
.pullout.is-closing .pullout__info { opacity: 0; transform: translateY(16px); transition-delay: 0s; transition-duration: .3s; }

/* fly-to-cart */
.flyer { position: fixed; z-index: 95; pointer-events: none; border-radius: 3px; box-shadow: var(--shadow-obj); transition: transform .85s cubic-bezier(.5, -0.3, .3, 1), opacity .85s ease; }

/* ------------------------------------------------------------ cart / checkout */
.two { display: grid; gap: 32px; padding-bottom: 24px; }
@media (min-width: 980px) { .two { grid-template-columns: 1fr 390px; gap: 56px; align-items: start; } .two > aside { position: sticky; top: 100px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; animation: fadeIn .5s var(--ease-out) backwards; }
.line .book__cover { box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.line__title { font-family: var(--serif); font-weight: 500; text-decoration: none; line-height: 1.4; }
.line__title:hover { color: var(--accent); }
.line__meta { font-size: var(--t-sm); color: var(--muted); margin-top: 2px; }
.line__ctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.line__ctl .qty { height: 38px; }
.line__ctl .qty button { width: 34px; }
.line__price { font-weight: 600; text-align: right; font-feature-settings: "tnum"; }
.summary { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 24px; display: grid; gap: 12px; }
.summary h2 { font-size: var(--t-xl); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); font-feature-settings: "tnum"; }
.sum-row--total { font-size: var(--t-lg); font-weight: 600; border-top: 1px solid var(--rule); padding-top: 14px; }
.sum-row .disc { color: var(--red); }
.form { display: grid; gap: 18px; }
.form__group { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.form__group legend { font-family: var(--serif); font-size: var(--t-xl); margin-bottom: 6px; padding: 0; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-field); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.opt b { font-weight: 600; display: block; }
.opt small { color: var(--muted); font-size: var(--t-xs); display: block; margin-top: 1px; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt.is-off { cursor: not-allowed; background: transparent; }
.opt.is-off b, .opt.is-off small { color: var(--muted); }
.opt__tag { font-size: .75rem; color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r-btn); padding: 1px 8px; white-space: nowrap; }
.opt__logo { font-weight: 600; font-size: .75rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 8px; letter-spacing: .02em; }
.coupon { display: flex; gap: 8px; }
.coupon .input { flex: 1; min-width: 0; min-height: 44px; text-transform: uppercase; border-radius: var(--r-btn); }
.coupon .input::placeholder { text-transform: none; }
.coupon .btn { min-height: 44px; white-space: nowrap; padding: 0 1rem; }
.msg { font-size: var(--t-sm); }
.msg--ok { color: var(--accent); }
.msg--err { color: var(--red); }
.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-field); background: var(--accent-tint); color: var(--ink); font-size: var(--t-sm); }
.notice svg { color: var(--accent); margin-top: 2px; }
.notice--warn { background: var(--red-tint); }
.notice--warn svg { color: var(--red); }
.errbox { padding: 12px 14px; border-radius: var(--r-field); background: var(--red-tint); color: var(--red); font-size: var(--t-sm); }

/* ------------------------------------------------------------ order result */
.result { max-width: 740px; padding: 48px 0 24px; }
.result h1 { font-size: var(--t-3xl); font-weight: 400; letter-spacing: -.02em; margin-top: 14px; animation: fadeIn .7s var(--ease-out); }
.result__id { font-size: var(--t-lg); margin-top: 10px; }
.result__id code { font-family: var(--sans); font-weight: 600; background: var(--plinth); padding: 2px 10px; border-radius: 6px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 500; padding: 3px 12px; border-radius: var(--r-btn); background: var(--plinth); color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--accent-tint); color: var(--accent); }
.status--wait { background: #FBF0D9; color: #8A5A00; }
.status--bad { background: var(--red-tint); color: var(--red); }
:root[data-theme="dark"] .status--wait { background: #3A2F17; color: #E9C46A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status--wait { background: #3A2F17; color: #E9C46A; } }
.result__block { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.result__block h2 { font-size: var(--t-xl); }

/* ------------------------------------------------------------ library */
.lib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
@media (min-width: 600px) { .lib { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 26px; } }
@media (min-width: 1000px) { .lib { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lib .book__cover.is-locked img { filter: grayscale(.8); opacity: .55; }
.lib__state { font-size: var(--t-xs); font-weight: 600; margin-top: 6px; }
.lib__state--wait { color: #8A5A00; }
.lib__state--bad { color: var(--red); }
.lib__actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lib__actions .btn { min-height: 38px; padding: 0 1rem; font-size: var(--t-sm); }
.restore { margin-top: 56px; padding: 28px; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--surface); max-width: 660px; }
.restore h2 { font-size: var(--t-xl); }
.restore p { color: var(--muted); font-size: var(--t-sm); margin: 6px 0 18px; }

/* ------------------------------------------------------------ reader */
.reader { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #2B2D31; color: #ECECEA; user-select: none; -webkit-user-select: none; animation: fade .3s ease; }
.reader__bar { position: relative; z-index: 4; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 10px; background: #1D1E21; border-bottom: 1px solid #36383D; }
.reader__bar .icon-btn { color: #C9CBD0; }
.reader__bar .icon-btn:hover { background: #303237; color: #fff; }
.reader__title { flex: 1; min-width: 0; font-family: var(--serif); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__title small { display: block; font-family: var(--sans); font-weight: 400; color: #9A9DA3; font-size: var(--t-xs); }
.reader__seg { display: inline-flex; border: 1px solid #3D4046; border-radius: var(--r-btn); overflow: hidden; padding: 2px; }
.reader__seg button { border: 0; background: transparent; color: #C9CBD0; padding: 0 12px; min-height: 32px; cursor: pointer; font-size: var(--t-sm); border-radius: var(--r-btn); }
.reader__seg button[aria-pressed="true"] { background: #ECECEA; color: #1D1E21; font-weight: 600; }
.reader__zoom { display: inline-flex; align-items: center; gap: 2px; }
.reader__page { font-size: var(--t-sm); color: #C9CBD0; min-width: 64px; text-align: center; font-feature-settings: "tnum"; }
.reader__body { position: relative; flex: 1; overflow: auto; }
.reader__pages { display: grid; justify-items: center; gap: 16px; padding: 20px 10px 40px; }
.reader__pages .pg { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.reader__pages canvas { display: block; width: 100%; height: 100%; }
.reader__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.reader__mark { position: absolute; left: 0; right: 14px; top: 58px; bottom: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.reader__mark > div { position: absolute; inset: -50%; opacity: .07; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; transform: rotate(-24deg); }
.reader__mark span { font-size: 15px; font-weight: 700; color: #000; padding: 34px 26px; white-space: nowrap; }
.reader__msg { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; }
.reader__msg > div { max-width: 40ch; display: grid; gap: 14px; justify-items: center; }
.reader__msg .btn { color: #17181B; }
.loader { width: 30px; height: 30px; border: 2px solid #5A5D63; border-right-color: #ECECEA; border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 640px) { .reader__zoom { display: none; } }

/* page-turn mode: an open book; the turning leaf rotates around the spine */
.flip { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; perspective: 2400px; padding: 16px; }
.flip__book { position: relative; display: flex; transform-style: preserve-3d; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.flip__page { position: relative; background: #fff; overflow: hidden; }
.flip__page canvas { display: block; width: 100%; height: 100%; }
.flip__page--l::after, .flip__page--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; }
.flip__page--l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .14)); }
.flip__page--r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .16)); }
.flip__page.is-blank { background: #EDEBE6; }
.flip__leaf { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; z-index: 5; }
.flip__leaf > div { position: absolute; inset: 0; backface-visibility: hidden; background: #fff; overflow: hidden; }
.flip__leaf > div canvas { display: block; width: 100%; height: 100%; }
.flip__leaf .back { transform: rotateY(180deg); }
.flip__leaf > div::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .18)); opacity: var(--shade, 0); }
.flip__nav { position: absolute; top: 0; bottom: 0; width: 18%; z-index: 6; border: 0; background: transparent; cursor: pointer; color: transparent; }
.flip__nav--prev { left: 0; cursor: w-resize; }
.flip__nav--next { right: 0; cursor: e-resize; }
.flip__nav:focus-visible { outline: 2px solid #8EA2FF; outline-offset: -4px; }

@media print { body * { visibility: hidden !important; } body::after { content: "এই বইটি প্রিন্ট করা যায় না।"; visibility: visible; } }

/* ------------------------------------------------------------ static pages */
.doc { max-width: 720px; padding-bottom: 40px; }
.doc h2 { font-size: var(--t-xl); margin: 32px 0 10px; }
.doc ul { line-height: 1.9; padding-left: 1.2em; }

/* ------------------------------------------------------------ footer */
.ftr { margin-top: 88px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); }
.ftr__in { display: grid; gap: 32px; padding: 56px 0 36px; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }
.ftr h3 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--accent); }
.ftr__about { max-width: 40ch; margin-top: 14px; line-height: 1.7; }
.ftr__pay { display: flex; gap: 6px; flex-wrap: wrap; }
.ftr__pay span { border: 1px solid var(--rule); border-radius: var(--r-btn); padding: 2px 10px; font-size: var(--t-xs); font-weight: 500; }
.ftr__base { border-top: 1px solid var(--rule); padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: var(--t-xs); }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 13px 18px; border-radius: var(--r-btn); font-size: var(--t-sm); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); animation: rise .4s var(--ease-out); }
.toast a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.toast--err { background: var(--red); color: #fff; }

.skel { background: linear-gradient(90deg, var(--plinth), var(--rule-2), var(--plinth)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 4px; }
.skel--cover { aspect-ratio: 3 / 4; }
.skel--line { height: 14px; margin-top: 12px; width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =====================================================================================
   v6 — cinematic layer: intro, pinned hero, lamp, wooden bookcase, reel, exam banner
   ===================================================================================== */
body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
:root[data-theme="light"] body::after { opacity: .035; }

/* intro: black frame, title punches in, letterbox opens */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #07040B; color: #fff; overflow: hidden; }
.intro__bar { position: absolute; left: 0; right: 0; height: 50%; background: #07040B; z-index: 2; }
.intro__bar--t { top: 0; } .intro__bar--b { bottom: 0; }
.intro__title { position: relative; z-index: 3; font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 13vw, 11rem); line-height: 1; letter-spacing: -.03em; background: linear-gradient(100deg, #FF4F8B, #FF8A3D 50%, #FFD166); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 79, 139, .5)); }
.intro__sub { position: absolute; z-index: 3; bottom: 18%; left: 0; right: 0; text-align: center; font-size: var(--t-sm); letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.intro__skip { position: absolute; z-index: 4; right: 20px; bottom: 20px; background: transparent; color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* header stays on one line as tools are added */
.hdr__nav a, .tool { white-space: nowrap; }
@media (max-width: 1320px) { #lampLbl { display: none; } .search { max-width: 260px; } .hdr__nav { margin-left: 6px; } .hdr__nav a { padding-inline: .6rem; } }
@media (max-width: 1080px) and (min-width: 900px) { .tool__lbl { display: none; } }

/* account avatar in the header / account page */
.acc-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: var(--sunset); color: #1A0B14; font-weight: 700; font-size: .85rem; flex: none; }
.acc-av img { width: 100%; height: 100%; object-fit: cover; }
.acc-av--lg { width: 72px; height: 72px; font-size: 1.8rem; }

/* lamp switch in the header */
.lamp-btn { position: relative; }
.lamp-btn svg .bulb { transition: fill .3s, filter .3s; }
:root[data-theme="light"] .lamp-btn svg .bulb { fill: #FFC94D; filter: drop-shadow(0 0 6px #FFC94D); }
.lamp-flash { position: fixed; inset: 0; z-index: 150; pointer-events: none; background: radial-gradient(circle at 50% 0%, rgba(255, 214, 140, .8), transparent 60%); opacity: 0; }

/* pinned cinematic hero */
.cine { position: relative; height: 230vh; }
.cine__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.cine__sky { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, #120A22 0%, #3B1446 38%, #A12D5C 66%, #FF7A45 86%, #FFC16B 100%); transition: background 1s; }
:root[data-theme="light"] .cine__sky { background: linear-gradient(180deg, #FFF4E6 0%, #FFE0C7 45%, #FFC2A1 75%, #FF9F7A 100%); }
.cine__stars { position: absolute; inset: 0 0 40% 0; z-index: -2; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 32%, #fff, transparent), radial-gradient(1.2px 1.2px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 26%, #fff, transparent), radial-gradient(1.6px 1.6px at 78% 15%, #fff, transparent), radial-gradient(1px 1px at 90% 34%, #fff, transparent), radial-gradient(1px 1px at 8% 40%, #fff, transparent), radial-gradient(1.3px 1.3px at 55% 42%, #fff, transparent); opacity: .8; animation: twinkle 4s ease-in-out infinite alternate; }
:root[data-theme="light"] .cine__stars { opacity: 0; }
@keyframes twinkle { to { opacity: .35; } }
.cine__sun { position: absolute; z-index: -1; left: 50%; bottom: 8%; width: min(70vw, 640px); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD166 0%, #FF8A3D 45%, #FF4F8B 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 32px), linear-gradient(#000 0 55%, transparent 55%); -webkit-mask-composite: source-over;
  mask: linear-gradient(180deg, #000 55%, transparent 55%) top / 100% 100% no-repeat, repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 30px);
  box-shadow: 0 0 120px rgba(255, 120, 80, .5); opacity: .95; }
.cine__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: -1; background: linear-gradient(180deg, transparent, rgba(10, 4, 16, .85)); }
:root[data-theme="light"] .cine__ground { background: linear-gradient(180deg, transparent, rgba(251, 246, 238, .9)); }
.cine__books { position: absolute; inset: 0; perspective: 1400px; pointer-events: none; }
.cine__book { position: absolute; transform-style: preserve-3d; pointer-events: auto; cursor: pointer; }
.cine__book:nth-child(1) { left: 6%; top: 18%; }
.cine__book:nth-child(2) { right: 7%; top: 14%; }
.cine__book:nth-child(3) { left: 3%; bottom: 3%; }
.cine__book:nth-child(4) { right: 3%; bottom: 2%; }
@media (max-width: 760px) { .cine__book:nth-child(n+3) { display: none; } .cine__book:nth-child(1) { left: -4%; top: 10%; } .cine__book:nth-child(2) { right: -4%; top: 8%; } }
.cine__copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gut); max-width: 1100px; }
.cine__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 8.4vw, 7.4rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .cine__title { color: #1E1520; text-shadow: none; }
.cine__title .ln { display: block; }
/* the middle line is outlined neon so it reads on top of the sunset */
.cine__title .ln--grad { color: transparent; -webkit-text-stroke: 2px #FFF4E8; text-shadow: 0 0 18px rgba(255, 92, 147, .9), 0 0 60px rgba(255, 138, 61, .6); }
:root[data-theme="light"] .cine__title .ln--grad { -webkit-text-stroke: 2px #1E1520; text-shadow: 0 0 24px rgba(255, 160, 90, .6); }
.cine__lede { margin: 22px auto 0; max-width: 46ch; font-size: var(--t-lg); color: rgba(255, 255, 255, .85); }
:root[data-theme="light"] .cine__lede { color: var(--ink-2); }
.cine__cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--glow { background: var(--sunset); border: 0; color: #1A0B14; font-weight: 600; box-shadow: 0 10px 40px -10px rgba(255, 79, 139, .7); }
.btn--glow:hover { background: var(--sunset); filter: brightness(1.08); box-shadow: 0 14px 50px -8px rgba(255, 79, 139, .9); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }
:root[data-theme="light"] .btn--ghost-light { background: rgba(255, 255, 255, .6); border-color: var(--rule); color: var(--ink); }
.letterbox { position: absolute; left: 0; right: 0; height: 0; background: #07040B; z-index: 5; }
.letterbox--t { top: 0; } .letterbox--b { bottom: 0; }
.cine__hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 6; color: rgba(255, 255, 255, .75); font-size: var(--t-xs); display: grid; justify-items: center; gap: 6px; }
.cine__hint i { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.cine__hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } }
:root[data-theme="light"] .cine__hint { color: var(--ink-2); }

/* the reading room with a real wooden bookcase and a hanging lamp */
.room { position: relative; padding: 110px 0 90px; overflow: hidden; background: radial-gradient(1200px 700px at 50% -10%, #2B1C33, #120B19 70%); isolation: isolate; transition: background .8s; }
:root[data-theme="light"] .room { background: radial-gradient(1200px 700px at 50% -10%, #FFF3DF, #EADBC6 75%); }
.room__head { position: relative; z-index: 3; text-align: center; margin-bottom: 54px; }
.room__head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -.03em; line-height: 1.05; }
.room__head p { margin-top: 12px; color: var(--muted); }
/* the lamp hangs on the left so it never covers the heading; its light cone follows it */
.room { --lamp-x: max(90px, 9%); }
.room__lamp { position: absolute; top: 0; left: var(--lamp-x); z-index: 4; transform: translateX(-50%); width: 160px; height: 230px; cursor: pointer; border: 0; padding: 0; background: none; }
@media (max-width: 1180px) { .room { padding-top: 250px; } }
@media (max-width: 760px) { .room { --lamp-x: 70px; } .room__lamp-tip { display: none; } }
.room__wire { position: absolute; left: 50%; top: 0; width: 2px; height: 70px; margin-left: -1px; background: #1A1118; }
:root[data-theme="light"] .room__wire { background: #4B3A33; }
.room__shade { position: absolute; left: 50%; top: 66px; width: 120px; height: 56px; margin-left: -60px; background: linear-gradient(180deg, #2E3B33, #1D2621); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); border-radius: 4px; }
.room__shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #C9A15A; }
.room__bulb { position: absolute; left: 50%; top: 116px; width: 30px; height: 18px; margin-left: -15px; border-radius: 0 0 15px 15px; background: #5B5348; transition: background .2s, box-shadow .2s; }
:root[data-theme="light"] .room__bulb { background: #FFF1C4; box-shadow: 0 0 30px 10px rgba(255, 210, 120, .9), 0 0 120px 40px rgba(255, 190, 90, .45); }
.room__cord { position: absolute; left: calc(50% + 34px); top: 118px; width: 1.5px; height: 70px; background: #A08A6A; transform-origin: top; transition: height .25s var(--ease); }
.room__cord::after { content: ""; position: absolute; bottom: -10px; left: -5px; width: 12px; height: 14px; border-radius: 4px 4px 6px 6px; background: #C9A15A; }
.room__lamp:hover .room__cord, .room__lamp.is-pull .room__cord { height: 92px; }
.room__lamp-tip { position: absolute; left: calc(50% + 48px); top: 160px; white-space: nowrap; font-size: var(--t-xs); color: var(--muted); }
.room__cone { position: absolute; left: var(--lamp-x); top: 120px; z-index: 1; width: min(1200px, 130vw); height: 1100px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 208, 130, .55), rgba(255, 180, 90, .14) 55%, transparent 75%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .6s; mix-blend-mode: screen; }
:root[data-theme="light"] .room__cone { opacity: 1; mix-blend-mode: normal; background: radial-gradient(50% 60% at 50% 0%, rgba(255, 220, 150, .7), rgba(255, 200, 120, .2) 55%, transparent 75%); }
.room__moon { position: absolute; right: 6%; top: 90px; width: 180px; height: 240px; border-radius: 90px 90px 6px 6px; border: 8px solid #2A1D2C; background: linear-gradient(180deg, #1D2C55, #3E2C63); box-shadow: inset 0 0 0 4px #2A1D2C; overflow: hidden; opacity: .9; transition: opacity .6s; }
.room__moon::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: #2A1D2C; }
.room__moon::after { content: ""; position: absolute; right: 34px; top: 40px; width: 44px; height: 44px; border-radius: 50%; background: #F7EBD0; box-shadow: 0 0 40px 8px rgba(247, 235, 208, .5); }
:root[data-theme="light"] .room__moon { opacity: 0; }
@media (max-width: 900px) { .room__moon { display: none; } }

.case { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 22px 22px 0; border-radius: 6px;
  background: linear-gradient(90deg, #2A170D, #4A2C18 8%, #3D2414 50%, #4A2C18 92%, #2A170D);
  box-shadow: 0 60px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.case::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, rgba(255, 220, 180, .05) 0 2px, transparent 2px 19px); }
.case__crown { position: absolute; left: -14px; right: -14px; top: -18px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #5A3720, #3A2213); box-shadow: 0 6px 12px rgba(0, 0, 0, .4); }
.case__shelf { position: relative; padding: 18px 18px 0; margin-bottom: 22px; background: linear-gradient(180deg, #180C06, #2A170D 70%); box-shadow: inset 0 18px 30px -10px rgba(0, 0, 0, .8), inset 0 -2px 0 rgba(0, 0, 0, .4); }
.case__shelf::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -22px; height: 22px; background: linear-gradient(180deg, #6A4227, #4A2C18 60%, #2E1A0E); box-shadow: 0 10px 18px rgba(0, 0, 0, .55); border-radius: 2px; }
.case__plate { position: absolute; z-index: 3; left: 50%; bottom: -18px; transform: translateX(-50%); padding: 1px 14px; font-size: var(--t-xs); font-weight: 600; color: #3A2410; background: linear-gradient(180deg, #F1D48A, #C9A15A); border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); white-space: nowrap; }
.case__plate a { text-decoration: none; }
.case__row { display: flex; align-items: flex-end; gap: 3px; min-height: 262px; padding-top: 14px; perspective: 1400px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.case__row > :first-child { margin-left: auto; }
.case__row > :last-child { margin-right: auto; }
.case__end { flex: none; width: 34px; height: 120px; margin-left: 10px; align-self: flex-end; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #8C6A2E, #E6C46E 40%, #A57E36); box-shadow: inset -3px 0 0 rgba(0, 0, 0, .25), 4px 0 10px rgba(0, 0, 0, .4); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.case__row::-webkit-scrollbar { display: none; }
.spine3d { position: relative; flex: none; transform-style: preserve-3d; cursor: pointer; border: 0; padding: 0; background: none; }
/* hover easing only after the drop-in animation, so CSS transitions never fight GSAP */
.case__row.is-ready .spine3d, .no-gsap .spine3d { transition: transform .45s var(--ease); }
.spine3d .b3 { position: absolute; bottom: 0; }
.spine3d:hover, .spine3d:focus-visible { transform: translateY(-14px) translateZ(46px) rotateY(-8deg); z-index: 2; }
.spine3d:focus-visible { outline: none; }
.spine3d:focus-visible .b3__spine { outline: 2px solid #FFD166; outline-offset: 2px; }
.case__lean { flex: none; }
.case__dim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(70% 60% at 50% 0%, rgba(40, 30, 80, .35), rgba(8, 4, 20, .72)); transition: opacity .7s; border-radius: inherit; }
:root[data-theme="light"] .case__dim { opacity: 0; }
.room__note { position: relative; z-index: 3; text-align: center; margin-top: 46px; color: var(--muted); font-size: var(--t-sm); }

/* split headline reveal (words) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* horizontal reel of new books — pinned while it slides */
.reel { position: relative; padding: 90px 0 40px; overflow: hidden; }
.reel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.reel__head h2, .duo h2, .exam-cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -.03em; line-height: 1.04; }
.reel__track { display: flex; gap: 28px; padding: 0 var(--gut); width: max-content; will-change: transform; }
.reel__item { position: relative; flex: none; width: clamp(200px, 22vw, 290px); text-decoration: none; }
.reel__item .book__plinth { padding: 26px 16% 30px; background: linear-gradient(180deg, var(--plinth), var(--surface)); border: 1px solid var(--rule); border-radius: 14px; }
.reel__item .book__body { padding-top: 16px; }
.reel__item .book__title { font-size: var(--t-lg); }
.reel__badge { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sunset); color: #1A0B14; }
@media (max-width: 860px) { .reel__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .reel__item { scroll-snap-align: start; } }

/* ebook vs print — two big panels */
.duo { padding: 80px 0 20px; }
.duo__grid { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 900px) { .duo__grid { grid-template-columns: 1fr 1fr; } }
.duo__card { position: relative; min-height: 360px; border-radius: 22px; padding: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff; isolation: isolate; transform-style: preserve-3d; }
.duo__card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg-card); transition: transform 1.2s var(--ease); }
.duo__card:hover::before { transform: scale(1.06); }
.duo__card--ebook { --bg-card: radial-gradient(120% 90% at 85% 10%, #FF5C93 0%, #7A2A9E 45%, #1B1033 100%); }
.duo__card--print { --bg-card: radial-gradient(120% 90% at 15% 10%, #FFD166 0%, #FF7A45 40%, #5A1E2E 100%); }
.duo__card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.03em; }
.duo__card p { margin-top: 12px; max-width: 34ch; color: rgba(255, 255, 255, .88); }
.duo__card .btn { margin-top: 22px; align-self: flex-start; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(6px); }
.duo__books { position: absolute; right: 26px; top: 26px; z-index: -1; display: flex; gap: 10px; perspective: 900px; }
.duo__books .book__cover { width: 92px; box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .6); }
.duo__books > :nth-child(2) { transform: translateY(26px) rotate(6deg); }
.duo__books > :nth-child(1) { transform: rotate(-6deg); }

/* নিরীক্ষা promo */
.exam-cta { position: relative; margin-top: 90px; padding: 90px 0; overflow: hidden; background: radial-gradient(900px 500px at 80% 20%, rgba(255, 92, 147, .35), transparent 60%), radial-gradient(800px 500px at 10% 90%, rgba(255, 138, 61, .3), transparent 60%), #0F0817; color: #fff; }
:root[data-theme="light"] .exam-cta { background: radial-gradient(900px 500px at 80% 20%, rgba(214, 51, 108, .2), transparent 60%), radial-gradient(800px 500px at 10% 90%, rgba(240, 102, 58, .2), transparent 60%), #2A1530; }
.exam-cta__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .exam-cta__grid { grid-template-columns: 1.1fr 1fr; } }
.exam-cta p { margin-top: 16px; max-width: 46ch; color: rgba(255, 255, 255, .82); font-size: var(--t-lg); }
.exam-cta ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: rgba(255, 255, 255, .9); }
.exam-cta li { display: flex; gap: 10px; align-items: center; }
.exam-cta li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 12px #FF5C93; flex: none; }
.exam-cta .btn { margin-top: 30px; }
.mcq-demo { position: relative; padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: perspective(1000px) rotateY(-10deg) rotateX(4deg); }
.mcq-demo__top { display: flex; justify-content: space-between; font-size: var(--t-xs); color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.mcq-demo__timer { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 18px; }
.mcq-demo__timer i { display: block; height: 100%; width: 100%; background: var(--sunset); transform-origin: left; animation: timer 9s linear infinite; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mcq-demo__q { font-family: var(--display); font-size: var(--t-xl); line-height: 1.35; margin-bottom: 16px; }
.mcq-demo__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); transition: background .4s, border-color .4s, transform .4s; }
.mcq-demo__opt b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: var(--t-sm); flex: none; }
.mcq-demo__opt.is-pick { border-color: #FFD166; background: rgba(255, 209, 102, .12); }
.mcq-demo__opt.is-right { border-color: #4ADE80; background: rgba(74, 222, 128, .16); transform: translateX(6px); }
.mcq-demo__opt.is-right b { background: #4ADE80; color: #08240F; }
.mcq-demo__exp { margin-top: 14px; font-size: var(--t-sm); color: rgba(255, 255, 255, .78); min-height: 1.6em; }

/* book page: "চলো একটু পড়ি" on the cover + YouTube thumbnail */
.bk__stage { position: relative; }
.read-tag { position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sunset); color: #1A0B14; font-weight: 700; font-size: var(--t-md); box-shadow: 0 12px 40px -10px rgba(255, 79, 139, .8); animation: readPulse 2.4s ease-in-out infinite; }
.read-tag svg { width: 1.1rem; height: 1.1rem; }
.read-tag:hover { filter: brightness(1.06); }
@keyframes readPulse { 0%, 100% { box-shadow: 0 12px 40px -10px rgba(255, 79, 139, .8), 0 0 0 0 rgba(255, 92, 147, .5); } 50% { box-shadow: 0 12px 40px -10px rgba(255, 79, 139, .8), 0 0 0 14px rgba(255, 92, 147, 0); } }
.yt { display: block; position: relative; width: 100%; border-radius: 14px; overflow: hidden; text-decoration: none; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 52px; margin: -26px 0 0 -37px; border-radius: 14px; background: #FF0033; display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.yt__play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.yt:hover .yt__play { transform: scale(1.12); }
.yt__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-size: var(--t-sm); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.bk__video { width: 100%; margin-top: 6px; }
.bk__video h2 { font-size: var(--t-lg); margin-bottom: 10px; }

.nav-exam { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 700 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .cine { height: auto; } .cine__pin { position: relative; min-height: 100vh; }
  body::after { display: none; }
}

/* sign-in page: way into the admin panel */
.admin-entry { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); text-align: center; color: var(--muted); font-size: var(--t-sm); text-decoration: none; }
.admin-entry:hover { color: var(--ink); text-decoration: underline; }
