/* Night Syllabus Publications store. Brand: red #FF0000 (accent), black, white | Montserrat + Hind Siliguri (self-hosted). */
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-regular.woff2) format("woff2");font-weight:400;font-display:swap}
/* Bold Bangla breaks conjuncts like "স্ত্রী" and "দ্য" (Rayan's rule: Bangla never 700): weight 700 uses the semibold drawing;
   digits keep the bold drawing. */
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-semibold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-bold.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+09E6-09EF}
/* Hind Siliguri's regular "১" has a wrong shape, so Bangla digits (০–৯) always use the bold drawing.
   Declared after the regular face so it wins for these characters. No extra download: the bold file is already loaded. */
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-bold.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+09E6-09EF}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-semibold.woff2) format("woff2");font-weight:600;font-display:swap}

:root{
  --red:#E60000; --red-text:#E00000; /* PageSpeed contrast (10 Nov): one slightly deeper red so white text on red and red text on white both pass 4.5. Brand red was #FF0000. */ --red-hover:#CC0000; --red-border:#FF4444; --black:#000; --white:#fff;
  --ink:#1A1A1A; --title:#111; --muted:#6B6B70; --line:#EDEDF0; --band:#F5F5F7;
  --shadow:0 1px 2px rgba(17,17,17,.04),0 8px 28px rgba(17,17,17,.06);
  --gold-soft:#FFF4D6; --green:#0B7A40; --soft:#FFF6F6;
  --bn:"Hind Siliguri","Noto Sans Bengali",sans-serif;
  --en:"Montserrat","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--band);color:var(--ink);font-family:var(--bn);line-height:1.55;
  /* footer always sits at the bottom of the screen, even on short pages */
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{width:100%;flex:1 0 auto;align-content:start}
p,h1,h2,h3{margin:0}
button,input{font:inherit}
img{max-width:100%;height:auto}
/* Ebook covers: one standard shape everywhere, 1 : 1.414 (A4/A5 portrait, like the Canva books).
   Any upload fills the frame; a different shape is trimmed from the edges, never stretched. */
.cover{display:block;aspect-ratio:1000/1414;height:auto;object-fit:cover;object-position:center top;background:#EEE}
svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
svg.fill{fill:currentColor;stroke:none}

/* ---------- checkout ---------- */
.notice{background:var(--red);color:#fff;text-align:center;font-weight:400;font-size:17px;padding:10px 16px}
.notice span{display:inline-block}
.co{max-width:1100px;margin:0 auto;padding:28px 20px 48px;display:grid;gap:20px}
.co.narrow{max-width:560px}
.timer{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:16px;padding:14px 20px;box-shadow:var(--shadow)}
.timer p{font-size:22px;font-weight:400;color:var(--title)}
.timer p b{color:var(--red-text)}
.clock{display:flex;align-items:center;gap:6px;background:#111;border-radius:12px;padding:8px 14px 6px;font:400 24px/1 var(--bn);color:#fff;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.clock i{font-style:normal;color:#FF5A5A} /* brighter red on the black clock (contrast) */
.clock span{display:inline-block;width:1.55em;text-align:center}
.alert{background:var(--soft);border:1px solid #FFC2C2;border-radius:12px;padding:12px 16px;font-weight:700;color:#9B0000}

.cols{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:22px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.step{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.step span{width:30px;height:30px;border-radius:10px;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:700;font-size:16px;flex:none;box-shadow:0 4px 10px rgba(255,0,0,.25)}
.step h2{font-size:21px;font-weight:400;color:var(--title)}

.fields{display:grid;grid-template-columns:1fr;gap:14px}
/* name and phone side by side on every screen */
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.field{display:grid;gap:5px;align-content:start}
.field.full{grid-column:1/-1}
.field label{font-weight:400;font-size:15.5px;color:var(--title)}
.field label small{font-weight:400;color:var(--muted);font-size:13.5px}
.field label .req{color:var(--red-text)}
.field input{width:100%;border:1px solid #DCDCE0;border-radius:12px;padding:13px 14px;font-size:16px;background:#FAFAFB;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s,background .15s}
.field input::placeholder{color:#A1A1A8}
.field input:hover{border-color:#C8C8CE}
.field input:focus{border-color:var(--red);background:#fff;box-shadow:0 0 0 4px rgba(255,0,0,.10)}
.field.email input{border-color:#F3C4C4}
.field.bad input{border-color:var(--red);background:var(--soft)}
/* Field title row: title on the left, green pill on the right (wraps under the title when there is no room) */
.field .lab{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
.field .hint{display:inline-flex;align-items:center;gap:6px;padding:3px 11px 3px 3px;border-radius:999px;background:#ECF8F1;color:#0B6B3A;font-size:13px;font-weight:400;line-height:1;white-space:nowrap}
.field .hint svg{width:17px;height:17px;padding:3px;border-radius:50%;background:var(--green);color:#fff;flex:none;stroke-width:3.2}
/* Bangla letters sit high in their line box; nudge the text down so it looks centred in the pill */
.field .hint span{padding-top:.2em}
.field .err{font-size:14px;color:#C00000;font-weight:700}

/* order bump */
.bump{margin-top:22px;border:1.5px dashed var(--red);border-radius:18px;overflow:hidden;background:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}
.bump-head{display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,#FFF4D6,#FFF9EA);padding:14px 16px;border-bottom:1.5px dashed var(--red)}
.bump-head .arrow{color:var(--red-text);font-size:22px;line-height:1;animation:nudge 1.2s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
.bump-head input{appearance:none;-webkit-appearance:none;width:24px;height:24px;border:2px solid var(--red);border-radius:6px;background:#fff;flex:none;display:grid;place-items:center;cursor:pointer;margin:0}
.bump-head input:checked{background:var(--red)}
.bump-head input:checked::after{content:"";width:6px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-1px,-1px)}
.bump-head input:focus-visible{outline:3px solid var(--title);outline-offset:2px}
.bump-head label{font-weight:700;font-size:17px;line-height:1.4;color:var(--title);cursor:pointer;white-space:nowrap;position:relative;top:2px} /* Bangla letters sit high in their line box: nudge so the text centres on the tick box */
.bump-head label b{color:var(--red-text);white-space:nowrap}
.bump-strip{background:var(--red);color:#fff;text-align:center;font-weight:400;font-size:16px;padding:7px 12px 5px;white-space:nowrap}
.bump-body{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;padding:16px;align-items:center}
.bump-body img{width:110px;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.16)}
.bump-body h3{font-size:18px;font-weight:700;color:var(--title)}
.bump-price{margin-top:8px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:15px}
.bump-price s{color:#736C66}
.bump-price b{color:var(--red-text);font-size:22px;line-height:1.2}
.bump-price .save{background:#ECF8F1;color:#0B6B3A;font-weight:400;border-radius:999px;padding:3px 10px 1px;font-size:13px}
.bump-badge{margin-top:8px;font-size:15px;font-weight:400;color:var(--red-text);line-height:1.35;text-wrap:balance}
.bump-err{margin-top:8px;font-size:14px;color:#C00000;font-weight:700}
.bump-foot{border-top:1.5px dashed var(--red);padding:9px 14px 8px;font-size:14.5px;text-align:center;color:var(--title);background:#FFFBF0}
.bump-foot>span{display:inline-block}
.bump-foot b{color:var(--red-text);font-weight:400}

/* summary */
.summary{position:sticky;top:16px}
.item{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.item.simple{grid-template-columns:1fr auto}
.item img{width:54px;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.item .nm{font-weight:700;font-size:15.5px;color:var(--title);line-height:1.35}
.item .nm small{display:block;font-weight:400;color:var(--muted);font-size:13px}
.item .pr{text-align:right;font-weight:700;font-size:16px;color:var(--title)}
.item .pr s{display:block;font-weight:400;font-size:13px;color:#736C66}
.item.bump-line{display:none}
.item.bump-line.on{display:grid}
/* Remember me (details kept only in this browser) */
.remember{grid-column:1/-1;display:grid;gap:6px;font-size:13.5px;color:var(--muted)}
.remember label{display:flex;gap:8px;align-items:center;cursor:pointer}
.remember input{accent-color:#111;width:16px;height:16px}
.remember .filled{color:#0A7A3D;font-weight:700}
.remember button{border:0;background:none;padding:0;color:#D00000;text-decoration:underline;cursor:pointer;font:inherit}
/* Coupon */
.coupon{margin:10px 0 0;border:0;padding:0} /* a small quiet link, not a box (Rayan: don't invite coupon requests) */
.coupon summary{display:inline-block;cursor:pointer;list-style:none;padding:2px 0;font-weight:400;font-size:13px;line-height:1.5;color:#7A736B;text-decoration:underline dotted;text-underline-offset:3px}
.coupon summary:hover{color:#111}
.coupon[open] summary{margin-bottom:8px}
.coupon summary::-webkit-details-marker{display:none}
.coupon-f{display:flex;gap:8px;padding:0 0 4px}
.coupon-f input{flex:1;min-width:0;height:44px;padding:0 12px;border:1.5px solid #E2DCD5;border-radius:10px;font:700 15px/1 Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase}
.coupon-f input:focus{outline:none;border-color:#111}
.coupon-f button{height:44px;padding:0 16px;border:0;border-radius:10px;background:#111;color:#fff;font-weight:700;font-size:14.5px;cursor:pointer;font-family:inherit}
.coupon-on{display:flex;align-items:center;gap:6px;margin:10px 0 0;padding:2px 0;color:#0B7A40;font-size:13px;line-height:1.5} /* a plain line where "কুপন কোড আছে?" was (Rayan) */
.coupon-on span{display:flex;align-items:center;gap:5px}
.coupon-on span::after{content:"|";margin-left:4px;color:#B8B1A9}
.coupon-on svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.coupon-on b{font-family:Arial,sans-serif;font-weight:700;letter-spacing:.3px}
.coupon-on form{margin:0}
.coupon-on button{border:0;padding:0;background:none;color:#7A736B;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer;font:inherit}
.coupon-on button:hover{color:#111}
.coupon-err{margin:8px 0 0;color:#D00000;font-weight:700;font-size:14px}
.coupon-ok{margin:8px 0 0;color:#0A7A3D;font-weight:700;font-size:14px}
.totals .disc{color:#0A7A3D;font-weight:700}
.totals{display:grid;gap:8px;padding:14px 0 6px}
.totals div{display:flex;justify-content:space-between;font-size:15.5px;color:var(--muted)}
.totals .grand{align-items:center;font-size:20px;font-weight:700;color:var(--title);padding-top:10px;border-top:1px solid var(--line)}
.totals .grand b{color:var(--red-text);font-size:26px}
.totals .saving{color:var(--green);font-weight:400;font-size:14.5px;background:#ECF8F1;border-radius:10px;padding:8px 12px}

.pay{margin-top:14px;background:#FAFAFB;border:1px solid var(--line);border-radius:14px;padding:14px}
.pay-top{display:flex;align-items:center;gap:10px;font-weight:400;font-size:15.5px;color:var(--title)}
.pay-top .radio{width:18px;height:18px;border-radius:50%;border:5px solid var(--red);background:#fff;flex:none}
.pay img{display:block;width:100%;max-width:320px;margin:10px 0 8px}
.pay p{font-size:14px;color:var(--muted)}

/* Pay button: brand CTA (red, 3px #FF4444 border, hover #E60000) */
.paybtn-wrap{display:block;margin-top:16px;border-radius:14px;animation:pulseRing 2.4s cubic-bezier(.455,.03,.515,.955) infinite}
.paybtn{position:relative;overflow:hidden;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:3px solid var(--red-border);border-radius:14px;background:var(--red);color:#fff;font:700 22px/1.2 var(--bn);padding:16px 12px 14px;cursor:pointer;letter-spacing:.3px}
.paybtn::before{content:"";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.25) 50%,transparent 80%);animation:shimmer 2.5s ease infinite;pointer-events:none}
.paybtn:hover{background:var(--red-hover)}
.paybtn:focus-visible{outline:3px solid var(--title);outline-offset:3px}
.paybtn[disabled]{cursor:wait;opacity:.85}
.paybtn svg{width:22px;height:22px;flex:none}
.after-pay{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;font-size:15px;font-weight:400;color:#0B6B3A;text-align:center}
.after-pay span{padding-top:.15em}
@keyframes pulseRing{0%{box-shadow:0 0 0 0 rgba(255,0,0,.45),0 10px 28px rgba(230,0,0,.30)}50%{box-shadow:0 0 0 9px rgba(255,0,0,0),0 10px 28px rgba(230,0,0,.30)}100%{box-shadow:0 0 0 0 rgba(255,0,0,0),0 10px 28px rgba(230,0,0,.30)}}
@keyframes shimmer{0%{left:-100%}60%,100%{left:150%}}

.secure{margin-top:12px;text-align:center;font-size:13px;color:var(--muted)}
.dev-note{background:#FFF8E1;border:1px dashed #E6A800;border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:8px}

.foot{margin-top:auto;background:#000;color:#9A948D;font:400 13.5px/1.5 var(--bn);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:22px max(24px,calc((100% - 1140px) / 2))} /* black band full width, text within 1140px */
.foot nav{display:flex;gap:16px;flex-wrap:wrap}

/* tablet */
@media (max-width:1024px){
  .cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
  .timer p{font-size:19px}
  .after-pay{gap:6px;font-size:clamp(13px,1.7vw,15px);white-space:nowrap}
  .bump-head{gap:8px;padding:12px}
  .bump-head .arrow{font-size:18px}
  .bump-head label{font-size:min(17px,calc((50vw - 180px) / 14.5))}
  .bump-body{grid-template-columns:86px minmax(0,1fr)}
  .bump-body img{width:86px}
}
/* phone */
@media (max-width:767px){
  .notice{font-size:14.5px;padding:9px 12px}
  .co{padding:16px 12px 32px;gap:14px}
  /* phones: offer text and timer stay on one line, sizes shrink with the screen */
  .timer{gap:8px;padding:12px;border-left-width:4px}
  .timer p{font-size:clamp(13px,4.3vw,18px);white-space:nowrap}
  .clock{font-size:clamp(15px,4.6vw,21px);padding:7px 8px 5px;gap:2px;border-radius:10px;flex:none}
  .cols{grid-template-columns:1fr}
  .card{padding:16px;border-radius:14px}
  /* keep the green pill beside the title on phones */
  .field .lab{gap:4px 6px}
  .field .hint{font-size:clamp(10.5px,3.1vw,12.5px);gap:4px;padding:2px 8px 2px 2px}
  .field .hint svg{width:15px;height:15px;padding:2.5px}
  .field label small{font-size:clamp(11px,3.4vw,13.5px)}
  .summary{position:static}
  .step h2{font-size:19px}
  /* the add-on line always stays on one row: the font shrinks with the screen */
  .bump-head{gap:8px;padding:12px}
  .bump-head .arrow{font-size:18px}
  .bump-head label{font-size:min(15.5px,calc((100vw - 140px) / 14.5))}
  .bump-strip{font-size:min(15px,calc((100vw - 90px) / 15))}
  .bump-foot{font-size:13.5px;padding:8px 10px 7px}
  .bump-badge{font-size:14px}
  .pair{gap:10px}
  .pair input{padding-left:11px;padding-right:11px}
  .bump-body{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px}
  .bump-body img{width:76px}
  .bump-body h3{font-size:16px}
  .paybtn{font-size:20px}
  .after-pay{gap:6px;font-size:clamp(11px,3.4vw,15px);white-space:nowrap}
  .foot{flex-direction:column;align-items:center;text-align:center;gap:12px}
  .foot nav{justify-content:center;gap:8px 16px}
  .foot>span{order:2;padding-top:12px;border-top:1px solid #222;width:100%} /* copyright is the last line */
}
/* ---------- shared: buttons, small text, status pills ---------- */
.muted{color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--red);color:#fff;font:700 16px/1.2 var(--bn);padding:13px 20px 11px;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--red-hover)}
.btn:focus-visible{outline:3px solid var(--title);outline-offset:2px}
.btn svg{width:20px;height:20px;flex:none;stroke-width:2.4}
.btn.ghost{background:#fff;color:var(--title);border:1px solid #DCDCE0;font-weight:400}
.btn.ghost:hover{background:var(--band)}
.btn.small{padding:8px 14px 6px;font-size:14.5px}
.btn.wide{width:100%}
.pill{display:inline-block;border-radius:999px;padding:4px 11px 2px;font-size:13.5px;white-space:nowrap}
.pill.ok{background:#ECF8F1;color:#0B6B3A}
.pill.wait{background:#FFF4D6;color:#8A5A00}
.pill.bad{background:var(--soft);color:#B00000}

/* ---------- thank-you page (layout follows the Laoshi/Delivra page) ---------- */
body.page-thanks{background:radial-gradient(1200px 360px at 50% -120px,#FFE3E3 0,rgba(255,227,227,0) 70%) no-repeat,var(--band)}
.ty{max-width:640px;margin:0 auto;padding:36px 16px 56px;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.ty-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
/* Phone/tablet: one column in reading order (downloads, sent to, help, order details). */
.ty-col{display:contents}
.ty-dl{order:1}.ty-sent{order:2}.ty-help{order:3}.ty-receipt{order:4}
.ty-hero{text-align:center;display:grid;justify-items:center;gap:8px;margin-bottom:4px}
.ty-hero h1{font-size:28px;font-weight:700;color:var(--title);line-height:1.3}
.ty-hero p{color:var(--muted);font-size:16px;max-width:62ch}
.ty-hero .btn{margin-top:8px}
.ty-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px}
.ty-icon svg{width:28px;height:28px;stroke:#fff;stroke-width:3}
.ty-icon.ok{background:var(--red);box-shadow:0 0 0 8px rgba(255,0,0,.08),0 10px 24px rgba(255,0,0,.25);animation:pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes pop{from{transform:scale(.6)}to{transform:scale(1)}}
.ty-icon.bad{background:var(--title)}
.ty-icon.spin{border:5px solid var(--line);border-top-color:var(--red-text);animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ty-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:22px;align-content:start;min-width:0}
.ty-h{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:400;color:var(--title)}
.ty-hi{width:30px;height:30px;border-radius:50%;background:var(--soft);display:grid;place-items:center;flex:none}
.ty-hi svg{width:16px;height:16px;color:var(--red-text);stroke-width:2}
.ty-book{display:flex;align-items:center;gap:16px;margin-top:6px}
.ty-dl.one .ty-book img{width:76px}
.ty-dl.one .ty-book-t{font-size:19px}
.ty-book-main{flex:1;min-width:0}
.ty-dl.one .ty-book .btn.dl{margin-top:12px;padding:12px 14px 10px;font-size:16px;white-space:nowrap}
/* several books: compact rows */
.ty-list{list-style:none;margin:2px 0 0;padding:0;display:grid}
.ty-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.ty-row:first-child{border-top:0;padding-top:4px}
.ty-row img{width:48px;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,.14)}
.ty-row .ty-book-t{font-size:16px}
.ty-row .muted{font-size:13.5px}
.ty-row .btn.dl{padding:10px 14px 8px;font-size:15px;font-weight:400;white-space:nowrap}
.ty-row .btn svg{width:18px;height:18px}
.ty-book img{width:52px;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.14);flex:none}
.ty-book-t{font-size:17px;color:var(--title);line-height:1.35}
.ty-book .muted{font-size:14px}
.ty-card .btn.dl{padding:15px 20px 13px;font-size:17px;font-weight:400}
.ty-tip{font-size:14px;color:var(--muted);text-align:center}
.ty-ch{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.ty-ch:first-of-type{border-top:0;padding-top:4px}
.ty-ci{width:34px;height:34px;border-radius:50%;background:var(--band);display:grid;place-items:center}
.ty-ci svg{width:18px;height:18px;color:var(--title);stroke-width:1.8}
.ty-cl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--title)}
.ty-cv{font-size:16px;color:var(--title);overflow-wrap:anywhere}
.ty-cn{font-size:14px;color:var(--muted);margin-top:2px}
.ty-night{background:#FFFBF0;border:1px dashed #E6C46B;border-radius:10px;padding:8px 10px;margin-top:6px;color:var(--ink)}
.ty-lib{font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;text-align:center}
.ty-lib a,.acc-alt a{color:var(--red-text)}
.ty-help{text-align:center;justify-items:center}
.ty-help h2{font-size:18px;font-weight:400;color:var(--title)}
.ty-help-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-top:4px}
.ty-help-btns .btn{border-color:var(--red);color:var(--red-text)}
.ty-help-btns .btn:hover{background:var(--soft)}
.ty-contact{font-size:13.5px;color:var(--muted)}
.ty-receipt summary{cursor:pointer;color:var(--title);list-style:none;display:flex;justify-content:space-between;align-items:center}
.ty-receipt summary::-webkit-details-marker{display:none}
.ty-receipt summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-right:4px}
.ty-receipt[open] summary::after{transform:rotate(-135deg)}
/* a closed <details> must not keep space for its hidden rows */
.ty-card.ty-receipt{display:block;padding:14px 22px}
.ty-receipt summary{min-height:28px}
.ty-receipt dl{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:14px 0 0;font-size:15px}
.ty-receipt dt,.ty-receipt dd{padding:10px 0;border-top:1px solid var(--line)}
.ty-receipt dt{color:var(--muted)}
.ty-receipt dd{margin:0;text-align:right;overflow-wrap:anywhere;color:var(--title)}
.fake-btns{display:grid;gap:10px;width:100%;max-width:320px;margin-top:10px}

@media (min-width:1025px){ /* computer (WordPress/Elementor ranges: phone ≤767, tablet 768–1024, computer ≥1025) */
  .ty{max-width:1040px;padding:48px 24px 72px;gap:22px}
  .ty-hero h1{font-size:32px}
  .ty-icon{width:64px;height:64px}
  .ty-icon svg{width:30px;height:30px}
  /* PC: two independent columns, so a tall card never leaves a gap in the other column */
  .ty-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}
  .ty-col{display:grid;gap:20px;align-content:start}
  .ty-card{padding:26px}
  .ty-card.ty-receipt{padding:16px 26px}
  .ty-dl.one .ty-book img{width:84px}
  .ty-row{grid-template-columns:54px minmax(0,1fr) auto}
  .ty-row img{width:54px}
}

/* ---------- account: sign-in, reset, library ---------- */
.acc{max-width:440px;margin:0 auto;padding:32px 16px 48px;display:grid;gap:16px}
.acc h1{font-size:24px;font-weight:700;color:var(--title)}
.acc-card{display:grid;gap:8px}
.acc-form{display:grid;gap:14px;margin-top:10px}
.acc-ok{background:#ECF8F1;color:#0B6B3A;border-radius:10px;padding:10px 12px;font-size:14.5px}
.acc-alt{text-align:center;font-size:14.5px;margin-top:4px}
.lib{max-width:880px}
.lib-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.lib-book{display:grid;gap:10px;padding:14px;align-content:start}
.lib-book img{width:100%;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.lib-book h2{font-size:16px;font-weight:700;color:var(--title);line-height:1.35}
.lib-book .btn{font-size:15px;padding:11px 12px 9px;white-space:nowrap}
@media (max-width:767px){
  .ty{padding:22px 12px 40px}
  .ty-hero h1{font-size:22px}
  .ty-card{padding:18px 16px}
  .ty-card.ty-receipt{padding:12px 16px}
  .ty-row{gap:10px}
  .ty-row .btn.dl{padding:8px 11px 6px;font-size:14px;gap:5px}
  .ty-row .btn svg{width:16px;height:16px}
  .ty-row .ty-book-t{font-size:15px}
  .lib-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

@media (prefers-reduced-motion:reduce){.paybtn::before,.paybtn-wrap,.bump-head .arrow,.ty-icon.spin,.ty-icon.ok{animation:none}}
/* Cart: remove a book from the order summary */
.item .ic{position:relative;display:block;align-self:center}
.item .ic img{display:block}
/* Option I (Rayan, 10 Nov): a small dark × on the cover's top-left corner */
.rm{position:absolute;top:-7px;left:-7px;margin:0;z-index:1}
.rm button{position:relative;width:20px;height:20px;border-radius:50%;border:2px solid #fff;background:#3A3633 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E") center/12px no-repeat;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;box-sizing:content-box;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.rm button::before{content:"";position:absolute;inset:-10px} /* bigger tap area */
.rm button:hover{background-color:var(--red)}
/* Empty cart */
.cart-empty{max-width:760px;margin:0 auto;padding:48px 16px 64px}
.cart-empty .card{text-align:center;display:grid;gap:10px;justify-items:center;padding:32px 20px}
.ce-icon{width:64px;height:64px;border-radius:18px;background:#FFF1F1;color:var(--red-text);display:grid;place-items:center}
.ce-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cart-empty h1{font-size:26px;line-height:1.3}
.cart-empty p{color:var(--muted)}
.ce-books{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;width:100%;margin-top:12px}
.ce-book{display:grid;gap:6px;justify-items:center;border:1px solid var(--line);border-radius:14px;padding:16px;text-decoration:none;color:var(--title)}
.ce-book:hover{border-color:var(--red)}
.ce-book img{width:110px;border-radius:6px;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.ce-book .t{font-weight:700}
.ce-book .p s{color:#736C66;font-size:14px}
.ce-book .p b{color:var(--red-text)}
.ce-book .btn{margin-top:4px}
/* Summary lines always keep the × column, so prices line up (× only where a line can be removed) */
.summary .item{grid-template-columns:54px minmax(0,1fr) auto}
.summary .item.simple{grid-template-columns:minmax(0,1fr) auto}

/* Footer links + policy pages */
.foot a{color:#C9C3BC;text-decoration:none;display:inline-block;padding-block:3px}
.foot a:hover,.foot a:focus-visible{color:#fff;text-decoration:underline}
/* Policy pages (modern): dark title band, one wide white box (1140 px) with the English / বাংলা buttons at its top,
   numbered sections, reading progress line. No bold in the text. */
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-semibold.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-siliguri-bold.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+09E6-09EF}
body.pol-body{display:flex;flex-direction:column;min-height:100vh;background:#F7F6F4}
.pol-in{width:100%;max-width:1140px;margin:0 auto;padding-inline:20px;box-sizing:border-box}
.pol-progress{position:fixed;inset:0 0 auto;height:3px;z-index:30;pointer-events:none}
.pol-progress span{display:block;height:100%;background:var(--red);transform:scaleX(0);transform-origin:left;will-change:transform}
.pol-top{background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(1.6) blur(12px);backdrop-filter:saturate(1.6) blur(12px);border-bottom:1px solid rgba(0,0,0,.06);position:sticky;top:0;z-index:20}
.pol-top .pol-in{display:flex;align-items:center;min-height:66px}
.pol-logo img{display:block;height:40px;width:auto}
.pol-hero{background:#0B0B0B radial-gradient(900px 320px at 85% -40%,rgba(255,0,0,.35),transparent 70%);color:#fff}
.pol-hero .pol-in{padding-block:52px 96px}
.pol-kicker{display:inline-block;margin:0 0 14px;padding:5px 12px 3px;border:1px solid rgba(255,255,255,.18);border-radius:999px;font:600 12px/1.4 var(--en);letter-spacing:.12em;text-transform:uppercase;color:#FF6B6B}
.pol-hero[lang=bn] .pol-kicker{font:600 13.5px/1.4 var(--bn);letter-spacing:0}
.pol-hero h1{margin:0;font:600 48px/1.15 var(--en);letter-spacing:-.01em}
.pol-hero[lang=bn] h1{font:600 46px/1.3 var(--bn);letter-spacing:0}
.pol-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:18px 0 0;font:400 14.5px/1.4 var(--bn);color:#B9B3AC}
.pol-hero[lang=en] .pol-meta{font-family:"Helvetica Neue",Arial,var(--bn)}
.pol-meta span{display:inline-flex;align-items:center;gap:7px}
.pol-meta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pol-main{flex:1;margin-top:-56px;padding-bottom:72px;position:relative}
.pol{min-width:0}
.pol-doc{background:#fff;border:1px solid #ECE8E3;border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.06);padding:40px 60px 36px;color:#2A2A2A;font:400 16.5px/1.8 var(--bn)}
/* Top row of the box: help email on the left, globe button on the right (one click switches English / বাংলা) */
.pol-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px 0 28px;padding-bottom:20px;border-bottom:1px solid #F0ECE7}
.pol-help{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:0;font-size:15px;line-height:1.5;color:#5F5A54}
.pol-help svg{width:18px;height:18px;fill:none;stroke:#8A8278;stroke-width:1.8;stroke-linejoin:round}
.pol-help a{color:#E00000}
.pol-help .c a{white-space:nowrap}
.lang-btn{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #DDD6CE;background:#fff;color:#333;transition:background .2s,color .2s,border-color .2s,transform .3s}
.lang-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.pol-doc .lang-btn{color:var(--red-text)}
.pol-doc .lang-btn:hover{background:var(--red);border-color:var(--red);color:#fff;transform:rotate(20deg)}
.lang-btn:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.pol-doc h2{display:flex;align-items:flex-start;gap:12px;font:600 22px/1.4 var(--bn);margin:40px 0 12px;padding-top:32px;border-top:1px solid #F0ECE7;color:#000;scroll-margin-top:84px}
.pol-doc h2:first-of-type{border-top:0;padding-top:0}
.pol-doc p+h2,.pol-doc ul+h2,.pol-doc ol+h2{margin-top:32px}
.pol-doc h2 .n{flex:none;display:grid;place-items:center;min-width:32px;height:32px;border-radius:10px;background:#FFF1F1;color:var(--red-text);font:600 15px/1 var(--bn);padding-top:2px;box-sizing:border-box;margin-top:-1px}
.pol-doc h3{font:600 17.5px/1.45 var(--bn);margin:24px 0 8px;color:#000}
.pol-doc p{margin:0 0 14px}
.pol-doc ul,.pol-doc ol{margin:0 0 16px;padding-left:24px}
.pol-doc li{margin-bottom:8px;padding-left:4px}
.pol-doc li::marker{color:var(--red-text)}
.pol[lang=bn] .pol-doc ol{list-style:bengali}
.pol-doc a{color:#E00000;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.pol-doc strong,.pol-doc b,.pol-doc em{font-weight:inherit;font-style:normal}
.pol[lang=en] .pol-doc{font-family:"Helvetica Neue",Arial,var(--bn)}
.pol[lang=en] .pol-doc h2,.pol[lang=en] .pol-doc h3{font-family:var(--en)}
.pol[lang=en] .pol-doc h2{font-size:21px}
@media (max-width:1024px){
  .pol-hero .pol-in{padding-block:40px 84px}
  .pol-hero h1{font-size:38px}
  .pol-hero[lang=bn] h1{font-size:36px}
  .pol-main{padding-bottom:48px}
  .pol-doc{padding:32px 36px 24px}
}
@media (max-width:767px){
  .pol-in{padding-inline:16px}
  .pol-main.pol-in{padding-inline:8px} /* the white legal box sits closer to the screen edges (Rayan, 10 Nov) */
  .pol-top .pol-in{min-height:58px}
  .pol-logo img{height:34px}
  .pol-hero .pol-in{padding-block:30px 74px}
  .pol-hero h1{font-size:30px}
  .pol-hero[lang=bn] h1{font-size:29px}
  .pol-meta{margin-top:14px;font-size:13.5px}
  .pol-main{margin-top:-48px}
  .pol-doc{border-radius:16px;padding:20px 16px 14px;font-size:15.5px;line-height:1.75}
  .pol-bar{margin:-4px 0 20px;padding-bottom:16px;gap:12px}
  .pol-help{font-size:13.5px;display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:2px}
  .pol-help svg{grid-row:span 2;align-self:start;margin-top:2px}
  .lang-btn{width:40px;height:40px}
  .pol-doc h2{font-size:18.5px;gap:10px;margin-top:28px;padding-top:24px}
  .pol[lang=en] .pol-doc h2{font-size:18px}
  .pol-doc h2 .n{min-width:28px;height:28px;font-size:14px;border-radius:8px}
}
@media (prefers-reduced-motion:reduce){.lang-btn{transition:none}}

/* Error pages (404 / 419 / 500 / 503): legal-page band with a big outlined code, white box with the next step */
.err-hero .pol-in{position:relative;overflow:hidden;padding-block:56px 100px}
.err-code{position:absolute;right:20px;top:50%;transform:translateY(-58%);margin:0;font:700 clamp(120px,22vw,260px)/1 var(--en);letter-spacing:-.04em;color:transparent;-webkit-text-stroke:2px rgba(255,80,80,.55);pointer-events:none;user-select:none}
.err-hero h1{position:relative;font:600 44px/1.3 var(--bn);max-width:640px;letter-spacing:0}
.err-lead{position:relative;margin:14px 0 0;max-width:560px;font:400 17px/1.6 var(--bn);color:#C9C2BA}
.err-box .pol-doc{padding:36px 40px 30px}
.pol-doc .err-h{display:block;border:0;padding:0;margin:0 0 18px;font:600 20px/1.4 var(--bn);color:#000}
.err-acts{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:26px}
.err-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 24px;border-radius:999px;background:var(--red);border:2px solid var(--red);color:#fff;font:700 17px/1 var(--bn);text-decoration:none;box-shadow:0 8px 20px rgba(255,0,0,.25);transition:background .2s,transform .2s}
.err-btn:hover{background:#E60000;transform:translateY(-1px)}
.err-btn.sec{background:#fff;color:#111;border-color:#DDD6CE;box-shadow:none}
.err-btn.sec:hover{border-color:#111;background:#fff}
.err-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pol-doc .err-btn{color:#fff;text-decoration:none}
.pol-doc .err-btn.sec{color:#111}
.pol-doc .err-links{list-style:none;margin:0 0 22px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pol-doc .err-links li{margin:0;padding:0}
.err-links li::marker{content:none}
.err-links a{display:flex;align-items:center;gap:12px;height:100%;padding:14px 16px;border:1px solid #ECE8E3;border-radius:14px;color:#111;text-decoration:none;transition:border-color .2s,background .2s}
.err-links a:hover{border-color:#FFB3B3;background:#FFF8F8}
.err-links svg{flex:none;width:38px;height:38px;padding:9px;border-radius:10px;background:#FFF1F1;fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.err-links span{display:grid;line-height:1.4}
.err-links b{font-weight:600;font-size:15.5px}
.err-links small{font-size:13.5px;color:#7A736B}
.err-note{margin:0;padding-top:18px;border-top:1px solid #F0ECE7;font-size:15px;color:#5F5A54}
@media (max-width:1024px){.err-hero h1{font-size:36px}.pol-doc .err-links{grid-template-columns:1fr}}
@media (max-width:767px){
  .err-hero .pol-in{padding-block:36px 80px}
  .err-code{display:none} /* no room beside the heading on phones; the kicker says it */
  .err-hero h1{font-size:28px}
  .err-lead{font-size:15.5px}
  .err-box .pol-doc{padding:22px 18px 18px}
  .err-acts{flex-direction:column-reverse}
  .err-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.err-btn,.err-links a{transition:none}}

/* Checkout summary: compact book rows on computer and tablet (option D: the two columns keep their natural heights) */
@media (min-width:768px){
  .summary .item{grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:8px 0}
  .summary .item.simple{grid-template-columns:minmax(0,1fr) auto}
  .summary .item img{width:40px;border-radius:5px}
  .summary .item .nm{font-size:15px;line-height:1.3}
  .summary .item .nm small{font-size:12.5px}
}
.pay[hidden],[data-paylabel][hidden],[data-freelabel][hidden]{display:none!important}
[data-discrow][hidden]{display:none!important}
[data-coupon-on][hidden],[data-coupon-box][hidden]{display:none!important}
.cp-tag{display:table;margin-top:3px;font-size:11.5px;line-height:1.5;font-weight:600;color:#0B7A40;background:#E8F6EE;border-radius:999px;padding:0 8px}
.item .pr .cp-price{display:block;color:#0B7A40;font-weight:700}
/* Payments switched off (Settings → Kill Switches): the notice replaces the Pay Now button. */
.pay-off{margin:0;padding:16px 18px;border-radius:14px;background:#FFF4F4;border:1px solid #FFD4D4;color:#B00000;font-weight:600;font-size:16px;line-height:1.6;text-align:center}
/* Phone: the line breaks at the "|" in the text (Rayan, 27 Nov); each half is balanced, so no word is left alone (e.g. "জন্য"). */
@media (max-width:767px){.notice > span{text-wrap:balance}}
.notice .nb{white-space:nowrap}
/* Sales Footer: one centred copyright line (Rayan, 10 Nov). */
.foot.foot-sales{justify-content:center;text-align:center}
/* Checkout payment logos a little smaller (Rayan, 10 Nov), so the two columns come out the same height by themselves. */
.pay img{width:auto;height:51px;max-width:100%;object-fit:contain;object-position:left center}
/* Email typo hint under the email box (Rayan, 10 Nov). */
.em-fix{margin:6px 0 0;font-size:14px;color:#8A5A00;background:#FFF7E0;border:1px solid #F2D27A;border-radius:10px;padding:6px 10px 4px}
.em-fix[hidden]{display:none}
.em-fix button{font:inherit;font-weight:600;color:#C80000;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px;word-break:break-all}

/* Thank-you page: the PDF button hops and glows so nobody misses it (Rayan, 11 Nov). Still on hover; off for reduced motion. */
@keyframes dlHop{0%,55%,100%{transform:translateY(0)}65%{transform:translateY(-6px)}75%{transform:translateY(0)}83%{transform:translateY(-3px)}91%{transform:translateY(0)}}
@keyframes dlGlow{0%,100%{box-shadow:0 0 0 0 rgba(230,0,0,.45)}50%{box-shadow:0 0 0 9px rgba(230,0,0,0)}}
.ty-dl .btn.dl,.tya-dl .btn.dl{animation:dlHop 2.2s ease-in-out infinite,dlGlow 2.2s ease-out infinite}
.ty-dl .btn.dl:hover,.ty-dl .btn.dl:focus-visible,.tya-dl .btn.dl:hover,.tya-dl .btn.dl:focus-visible{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.ty-dl .btn.dl,.tya-dl .btn.dl{animation:none}}

/* Legal pages: "or +880 …" stays on the email's line when it fits; when it must wrap, the whole "or …" moves down (Rayan, 12 Nov). */
.pol-help .ln{white-space:nowrap}

/* Thank-you page only (Rayan, 13 Nov): on phones the headline and the line under it break at the sentence break
   ("ধন্যবাদ, নাম!" / "অর্ডার সফল হয়েছে।"), never mid-sentence. Computers and tablets: one flowing line as before. */
.page-thanks .ph-br{display:none}
@media (max-width:767px){.page-thanks .ph-br{display:inline}}

/* ---------- thank-you, PAID state = design A "Celebration" (Rayan, 13 Nov) ----------
   A dark band (red glow) with a green check and the headline; white cards lift over it. The global header floats over
   the top of the band (the band is pulled up behind it). One column under 860 px. Fonts: Bangla in Hind Siliguri
   (bold Bangla uses the semibold drawing, Rayan's rule; digits keep the bold one); bold Latin (names, PDF, SMS) in
   Montserrat, since the bold Hind file has no Latin letters; regular Latin stays in Hind regular. */
@font-face{font-family:"TYA";src:url(/fonts/hind-siliguri-regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"TYA";src:url(/fonts/hind-siliguri-bold.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+09E6-09EF}
@font-face{font-family:"TYA";src:url(/fonts/hind-siliguri-semibold.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"TYA";src:url(/fonts/hind-siliguri-semibold.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0964-0965,U+0980-09FF,U+200C-200D,U+25CC}
@font-face{font-family:"TYA";src:url(/fonts/hind-siliguri-bold.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+09E6-09EF}
@font-face{font-family:"Montserrat";src:url(/fonts/montserrat-bold.woff2) format("woff2");font-weight:700;font-display:swap}
body.page-thanks-a{background:#F6F4F1}
.page-thanks-a .site-hd .hd-in{background:#fff;border-color:rgba(255,255,255,.2);box-shadow:0 14px 34px -14px rgba(0,0,0,.6)} /* a crisp white bar over the dark band */
.tya{--tya-green:#16A34A;--tya-muted:#6B6560;--tya-line:#ECE8E3;font-family:"TYA","Montserrat",var(--bn);color:#141414;padding-bottom:56px}
.tya .btn{font-family:"TYA","Montserrat",var(--bn)}
.tya-top{background:#0B0B0B radial-gradient(70% 90% at 50% -10%,rgba(230,0,0,.45),transparent 65%);color:#fff;text-align:center;margin-top:-74px;padding:104px 16px 120px}
.tya-ok{width:76px;height:76px;margin:0 auto 18px;border-radius:50%;background:var(--tya-green);display:grid;place-items:center;box-shadow:0 0 0 10px rgba(22,163,74,.18),0 0 0 22px rgba(22,163,74,.08);animation:pop .5s cubic-bezier(.2,1.4,.4,1) both}
.tya-ok svg{width:38px;height:38px;stroke:#fff;stroke-width:3}
.tya-top h1{font-size:40px;line-height:1.25;font-weight:700;color:#fff;max-width:980px;margin:0 auto}
.tya-top h1 em{font-style:normal;color:#FFD34D}
.tya-top p{margin:10px auto 0;color:#D8D2CC;font-size:18px;max-width:560px}
.tya-wrap{max-width:980px;margin:-84px auto 0;padding:0 16px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;align-items:start;position:relative}
.tya-col{display:grid;gap:18px;min-width:0}
.tya-card{background:#fff;border-radius:22px;box-shadow:0 14px 40px rgba(0,0,0,.08);padding:24px;min-width:0}
.tya-bk{display:flex;gap:18px;align-items:center}
.tya-bk img{width:96px;border-radius:10px;box-shadow:0 8px 20px rgba(0,0,0,.18);flex:none}
.tya-bt{font-size:22px;font-weight:700;line-height:1.35;color:#141414}
.tya-sub{color:var(--tya-muted);font-size:14px;margin-top:4px}
.tya .btn.dl{border-radius:14px;box-shadow:0 10px 26px rgba(230,0,0,.28)}
.tya .btn.dl.tya-full{width:100%;margin-top:18px;font-size:18px;padding:17px 22px 14px;gap:10px}
.tya-tip{margin-top:16px;padding-top:14px;border-top:1px solid var(--tya-line);color:var(--tya-muted);font-size:14px;text-align:center}
.tya-list{list-style:none;margin:0;padding:0;display:grid}
.tya-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--tya-line)}
.tya-row:first-child{border-top:0;padding-top:0}
.tya-row img{width:54px;border-radius:7px;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.tya-row .tya-bt{font-size:16px}
.tya-row .tya-sub{font-size:13px;margin-top:0}
.tya-row .btn.dl{padding:10px 14px 8px;font-size:15px;white-space:nowrap;border-radius:12px}
.tya-row .btn svg{width:18px;height:18px}
.tya-od summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:700;font-size:17px;cursor:pointer;color:#141414}
.tya-od summary::-webkit-details-marker{display:none}
.tya-od summary svg{width:20px;height:20px;stroke-width:2;transition:transform .2s ease}
.tya-od[open] summary svg{transform:rotate(180deg)}
.tya-od dl{margin:14px 0 0}
.tya-od dl>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--tya-line);font-size:15px}
.tya-od dt{color:var(--tya-muted)}
.tya-od dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.tya-od .tya-tot dd{color:var(--red-text)}
.tya-dv h2{font-size:19px;font-weight:700;line-height:1.4;margin-bottom:14px}
.tya-it{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--tya-line)}
.tya-it:first-of-type{border-top:0;padding-top:0}
.tya-it>div{flex:1;min-width:0}
.tya-ic{width:40px;height:40px;border-radius:12px;background:#FFF1F1;color:var(--red);display:grid;place-items:center;flex:none}
.tya-ic svg{width:20px;height:20px;stroke-width:2}
.tya-cl{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:16px}
.tya-cl b{font-weight:700}
.tya-st{font-size:14.5px;font-weight:600;text-align:right;color:var(--tya-muted)}
.tya-st.ok{color:#13803D}
.tya-st.bad{color:#B00000}
.tya-v{font-size:15px;margin:3px 0 2px;overflow-wrap:anywhere}
.tya-n{color:var(--tya-muted);font-size:13px}
.tya-n.ty-night{color:var(--ink);font-size:13.5px}
.tya-lib{margin-top:12px;padding-top:12px;border-top:1px solid var(--tya-line);font-size:13.5px;color:var(--tya-muted);text-align:center}
.tya-lib a{color:var(--red-text)}
.tya-help{text-align:center}
.tya-help h2{font-size:18px;font-weight:700}
.tya-hs{margin:6px 0 14px;color:var(--tya-muted);font-size:14px}
.tya-hb{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tya-hb .btn.ghost{border:1.5px solid var(--tya-line);border-radius:14px;color:#141414;font-weight:600;font-size:16px;padding:14px 18px 11px}
.tya-hb .btn.ghost:hover{background:#FAF7F4}
.tya-hb .btn svg{width:20px;height:20px;stroke-width:2}
.tya-hb .btn svg.fill{fill:#25D366}
.tya-contact{margin-top:10px;font-size:13px;color:var(--tya-muted)}
@media (max-width:860px){
  .tya-wrap{grid-template-columns:minmax(0,1fr)}
  .tya-col{display:contents}
  .tya-top h1{font-size:30px}
}
@media (max-width:767px){
  .tya{padding-bottom:40px}
  .tya-top{margin-top:-64px;padding:88px 16px 104px}
  .tya-ok{width:64px;height:64px;margin-bottom:16px}
  .tya-ok svg{width:32px;height:32px}
  .tya-top h1{font-size:26px}
  .tya-top p{font-size:16px}
  .tya-wrap{padding:0 12px;gap:14px}
  .tya-card{padding:20px;border-radius:18px}
  .tya-bk img{width:80px}
  .tya-bt{font-size:19px}
  .tya .btn.dl.tya-full{font-size:17px}
  .tya-row{gap:10px;grid-template-columns:46px minmax(0,1fr) auto}
  .tya-row img{width:46px}
  .tya-row .tya-bt{font-size:15px}
  .tya-row .btn.dl{padding:8px 11px 6px;font-size:14px;gap:5px}
  /* Rayan, 17 Nov: title on one line, Download under it filling the rest of the row (phones) */
  .tya-row{grid-template-columns:62px minmax(0,1fr);column-gap:14px;row-gap:10px;align-items:end}
  .tya-row img{grid-row:1/3;width:62px;align-self:center}
  .tya-row .tya-bt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tya-row .btn.dl{grid-column:2;justify-self:stretch;justify-content:center;align-self:start}
  .tya-hb{grid-template-columns:1fr}
  .tya-hb .wa{order:-1}
}
@media (prefers-reduced-motion:reduce){.tya-ok{animation:none}.tya-od summary svg{transition:none}}
/* Checkout summary (Rayan, 14 Nov): dashed lines like prototype B; the coupon is one badge on the totals line,
   [× CODE] left and −৳ right (no "কুপন যোগ হয়েছে… সরান" line, no badge under the course name) */
.summary .item{border-bottom-style:dashed}
.totals .grand{border-top-style:dashed}
.totals .disc{align-items:center}
.totals .cp-badge{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px 0 4px;border-radius:999px;background:#E8F6EE;color:#0B7A40}
.totals .cp-badge form{margin:0;display:flex}
.totals .cp-badge button{width:20px;height:20px;border-radius:50%;border:0;padding:0;background:#0B7A40;color:#fff;display:grid;place-items:center;cursor:pointer}
.totals .cp-badge button:hover{background:#085C30}
.totals .cp-badge svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.totals .cp-badge b{font:700 12.5px/1 Arial,sans-serif;letter-spacing:.3px;padding-top:1px}

/* ===== NS Empire design system for customer pages (Rayan "fix all", 15 Nov). MLC is the standard:
   buttons 10 px corners; main action buttons 56 px tall, 18 px bold text; fields 52 px tall, 12 px corners, Hind Siliguri;
   big boxes 16 px corners, small inner boxes 12 px; phones keep a 12 px gap at both screen sides. ===== */
.paybtn-wrap,.paybtn,.paybtn::before{border-radius:10px}
.paybtn{min-height:56px;padding:0 12px;font-size:18px}
.tyb-btn{min-height:56px;padding:0 22px;font-size:18px;border-radius:10px}
.field input{height:52px;padding:0 14px}
.rlb-form input{height:52px;font-size:16px}
.coupon-f input{height:52px;border-radius:12px;font:700 16px/1 var(--bn);letter-spacing:.5px}
.coupon-f button{height:52px;border-radius:10px;font-size:16px}
form.card,aside.card,.rlb-card,.bump,.auth-card{border-radius:16px}
.pay,.totals .saving{border-radius:12px}
@media (max-width:767px){
  .tyb-btn{font-size:18px}
  .paybtn{font-size:18px}
  .pol-main.pol-in{padding-inline:12px}
  .rlb .rlb-lift,.tyb-lift{padding-inline:12px}
}
/* Computers: the error and legal boxes line up exactly with the header bar and the footer (166 px in at 1440, was 170). */
@media (min-width:768px){.pol-in{max-width:1148px}}
.pol-doc,.tyb .card{border-radius:16px}
/* Error pages keep their ROUND pill buttons, 50 px, 17 px text (Rayan picked "as before", 15 Nov). */

/* ===== Button pairs on the title's row (Rayan, 15 Nov): computers = title left, pair right (secondary left, primary right);
   phones = title, then the pair full width with the primary on top. Error pages + thank-you help. ===== */
.err-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.err-top .err-h{margin:0}
.err-top .err-acts{margin:0;flex-wrap:nowrap;justify-content:flex-end}
.tyb-help,.tya-help{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:center;text-align:left}
.tyb-help>h2,.tya-help>h2{grid-column:1;margin:0}
.tyb-help>.muted,.tya-help>.tya-hs{grid-column:1;margin:2px 0 0}
.tyb-help .ty-help-btns,.tya-help .tya-hb{grid-column:2;grid-row:1/span 2;display:flex;gap:12px;width:auto;margin:0}
.tya-help>.tya-contact{grid-column:1/-1;margin-top:12px}
@media (max-width:767px){
  .err-top{flex-direction:column;align-items:stretch;gap:16px}
  .err-top .err-acts{flex-direction:column-reverse;gap:10px}
  .err-top .err-btn{width:100%}
  .tyb-help,.tya-help{grid-template-columns:1fr;text-align:center}
  .tyb-help .ty-help-btns,.tya-help .tya-hb{grid-column:1;grid-row:auto;flex-direction:column-reverse;gap:10px;margin-top:14px}
  .tyb-help .ty-help-btns .btn,.tya-help .tya-hb .btn{width:100%}
}

/* Checkout notice = the exact thing to fix (Rayan, 15 Nov); several = a short list. */
.alert ul{margin:6px 0 0;padding-left:20px;display:grid;gap:2px}
.alert ul li{font-weight:600}
.alert>span{display:block}
@media (max-width:767px){.tyb-help .ty-help-btns,.tya-help .tya-hb{flex-direction:column}.tyb-help .ty-help-btns .btn.pri,.tya-help .tya-hb .btn.pri{order:-1}}
/* The ebook thank-you help card is narrow (side column): text on top, then the pair as one full row (grey left, red right). */
.tya-help{grid-template-columns:1fr}
.tya-help .tya-hb{grid-column:1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr;margin-top:14px}
.tya-help .tya-hb .btn{width:100%;padding-left:12px;padding-right:12px}
@media (max-width:767px){.tya-help .tya-hb{display:flex}}
/* Thank-you page (ebook): the two columns span the header width (1108 px, 166 px in at 1440) and are equal (Rayan, 15 Nov). Phones: 12 px sides. */
.tya-wrap{max-width:1140px;padding:0 16px}
@media (min-width:861px){.tya-wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:767px){.tya-wrap{grid-template-columns:minmax(0,1fr);padding:0 12px}}
/* Order details (Rayan, 15 Nov). Ebook thank-you on computers: details open, and both columns end on the same line
   (the last card of each column fills the rest). Course stores: the same look as the ebook box (bold title, bold
   values on the right, total in red). */
@media (min-width:861px){
  .tya-wrap{align-items:stretch}
  .tya-col{display:flex;flex-direction:column;gap:18px}
  .tya-col>:last-child{flex:1 1 auto}
}
.ty-receipt summary{font-weight:700;font-size:17px;color:#141414}
.ty-receipt summary::after{width:9px;height:9px;border-color:#141414}
.ty-receipt dd{font-weight:700;text-align:right;color:#141414;overflow-wrap:anywhere}
.ty-receipt dd b{color:var(--red-text)}
@media (min-width:861px){.tya-help{align-content:center}}
/* Rayan, 17 Nov: right-side titles + help text centred; WhatsApp button without the grey border */
.tya-dv h2{text-align:center}
.tya-help,.tya-help>h2,.tya-help>.tya-hs,.tya-help>.tya-contact{text-align:center}
.tya-help .tya-hb .btn.wa{border-color:transparent;box-shadow:0 8px 18px -10px rgba(230,0,0,.6)}
/* No header on the thank-you page any more (Rayan, 15 Nov): the band starts at the top with its own space. */
.tya-top{margin-top:0;padding-top:56px}
@media (max-width:767px){.tya-top{margin-top:0;padding-top:36px}}

/* ===== Thank-you pages, one shape on every store (Rayan, 15 Nov): a green "পেমেন্ট সফল" badge (no tick), the headline,
   then two equal columns as wide as the header (one column at 860 px and below). Course stores use the same band. ===== */
.tya-badge{display:flex;width:max-content;max-width:100%;margin:0 auto 18px;align-items:center;gap:8px;border-radius:999px;padding:7px 18px 5px;font-size:16px;font-weight:600;line-height:1.4;background:rgba(31,175,84,.18);color:#7EE2A4;border:1px solid rgba(126,226,164,.35)}
.tya-badge i{width:9px;height:9px;border-radius:50%;background:currentColor;margin-top:-2px;flex:none}
.tyb-band{background:#0B0B0B radial-gradient(70% 90% at 50% -10%,rgba(230,0,0,.45),transparent 65%);padding:56px 16px 120px}
.tyb-band h1{margin-top:0}
.tyb-lift{max-width:1140px;padding:0 16px}
.tyb-grid{display:grid;gap:18px}
@media (min-width:861px){
  .tyb-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
  .tyb-col{display:flex;flex-direction:column;gap:18px;min-width:0}
  .tyb-col>:last-child{flex:1 1 auto}
  .tyb-help{grid-template-columns:1fr;align-content:center}
  .tyb-help .ty-help-btns{grid-column:1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr;margin-top:14px}
  .tyb-help .ty-help-btns .btn{width:100%;padding-left:12px;padding-right:12px}
}
@media (max-width:860px){.tyb-col{display:contents}}
@media (max-width:767px){.tyb-band{padding:36px 16px 104px}.tyb-lift{padding:0 12px}}
/* Course thank-you (Rayan, 15 Nov): left = join + video, right = sent + important + details, help = one full row under both.
   Help keeps its title-left / buttons-right row; phones keep the old order (join, important, video, sent, details, help). */
@media (min-width:861px){.tyb-lift>.tyb-help{grid-template-columns:minmax(0,1fr) auto;align-content:normal}.tyb-lift>.tyb-help .ty-help-btns{grid-column:2;grid-row:1/span 2;display:flex;margin:0}.tyb-lift>.tyb-help .ty-help-btns .btn{width:auto;padding-left:24px;padding-right:24px}}
@media (max-width:860px){.tyb-join{order:1}.tyb-warn{order:2}.tyb-video{order:3}.tyb-sent{order:4}.ty-receipt{order:5}}
@media (max-width:860px){.tyb-grid .tyb-join{order:1}.tyb-grid .tyb-warn{order:2}.tyb-grid .tyb-video{order:3}.tyb-grid .tyb-sent{order:4}.tyb-grid details.ty-receipt{order:5}}

/* Checkout (Rayan, 18 Nov): the payment line stays on ONE line on phones; the font shrinks with the screen (max 15.5 px). Text is ~19.1 x font wide; space = 100vw - 116 px. */
@media (max-width:767px){.pay-top{white-space:nowrap;font-size:min(15.5px,calc((100vw - 116px) / 19.4))}}
/* Add-on row (Rayan, 18 Nov): a tap anywhere on the yellow row ticks the box (the 24 px box + one text line was a small target on phones). The label covers the row with an invisible layer; padding-top 4px replaces top:2px (same optical nudge). */
.bump-head{position:relative}
.bump-head label{position:static;top:auto;padding-top:4px}
.bump-head label::after{content:"";position:absolute;inset:0}

/* Course thank-you title (Rayan, 18 Nov): ONE line on tablets and computers ("… আপনাকে স্বাগতম!"); phones keep the line break (too long for one line there). */
@media (min-width:768px){.tyb-band h1 br{display:none}.tyb-band h1 em{margin:0 0 0 6px;white-space:nowrap}}

/* Checkout payment line ONE line on every screen (Rayan, 18 Nov; iPad 768/820 still wrapped): size the text by the payment box itself (container units); browsers without them keep the phone rule above. Text is ~19.1 x font wide; radio 18 + gap 10. */
@supports (width:1cqi){.pay{container-type:inline-size}.pay-top{white-space:nowrap;font-size:min(15.5px,calc((100cqi - 30px) / 19.4))}}

/* Course thank-you subheading ONE line on tablets and computers (Rayan, 18 Nov): its box was 560 px and "… কোর্সগুলোর একজন লাইফটাইম মেম্বার।" (2 courses) is 559 px, so it wrapped; now as wide as the title (760 px). Thank-you band only (the get-link page reuses .tyb-hi). */
@media (min-width:768px){.tyb-band:not(.rlb-band) .tyb-hi{max-width:760px}}

/* Get-link fee line on small phones (Rayan, 18 Nov): at 360 px "… প্রযোজ্য!" wrapped alone. One line: text is ~20.3 x font wide in a (100vw - 32 px) box; max 16.5 px (390 px and up unchanged). */
@media (max-width:767px){.rlb-band .tyb-hi.rlb-fee{white-space:nowrap;font-size:min(16.5px,calc((100vw - 36px) / 20.4))}}

/* Get-link courses page subheading on small phones (Rayan, 18 Nov): its 2nd line "না-ব্যবহৃত লিংক ফ্রি, … ২৯০৳।" left "২৯০৳।" alone at 360 px. Each line (split by <br>) stays whole; ~20.4 x font wide; max 16.5 px. */
@media (max-width:767px){.rlb-band .tyb-hi:has(br){white-space:nowrap;font-size:min(16.5px,calc((100vw - 36px) / 20.6))}}

/* ===== UNIVERSAL THANK-YOU PAGE (Rayan, 19 Nov 2026; prototype Claude Work/prototypes/thankyou-final/) =====
   Same block in both code copies. Dark band + white cards lifted over it; one signature action button (.tyn-go). */
body.page-tyn{background:var(--band)}
.tyn{--tint:#F7F5F2;--wait:#9A6400;--lift:0 18px 40px rgba(0,0,0,.18);display:block;max-width:none;padding:0 0 32px}
.tyn .nw{white-space:nowrap}
.tyn svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tyn svg.fill{fill:currentColor;stroke:none}
.tyn-band{background:radial-gradient(1100px 480px at 50% -10%,#3a0606 0%,#0b0b0b 62%);color:#fff;text-align:center;padding:26px 16px 124px}
.tyn-logo{display:inline-block}.tyn-logo img{display:block;width:124px;height:auto}
.tyn-badge{display:flex;width:max-content;max-width:100%;margin:18px auto 0;align-items:center;gap:8px;border-radius:999px;padding:6px 16px 4px;font-size:15px;font-weight:600;line-height:1.4;background:rgba(31,175,84,.18);color:#7EE2A4;border:1px solid rgba(126,226,164,.35)}
.tyn-badge i{width:8px;height:8px;border-radius:50%;background:currentColor;margin-top:-2px;flex:none}
.tyn-badge.wait{background:rgba(255,196,0,.14);color:#FFD866;border-color:rgba(255,216,102,.35)}
.tyn-badge.bad{background:rgba(255,60,60,.16);color:#FF9A9A;border-color:rgba(255,154,154,.35)}
.tyn-badge i.sp{width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;background:none;animation:tynSpin .9s linear infinite}
@keyframes tynSpin{to{transform:rotate(360deg)}}
.tyn-band h1{color:#fff;font-size:40px;line-height:1.3;margin:14px auto 0;max-width:820px;font-weight:700}
.tyn-band h1 em{font-style:normal;display:inline-block;background:var(--red);border-radius:6px;padding:0 14px;margin-top:6px;transform:skewX(-8deg)}
.tyn-band h1 em span{display:inline-block;transform:skewX(8deg)}
.tyn-hi{margin:12px auto 0;max-width:620px;font-size:17.5px;color:#cfcfcf}
.tyn-lift{max-width:640px;margin:-92px auto 0;padding:0 16px;display:grid;gap:16px}
.tyn-lift>*{min-width:0}
.tyn-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);min-width:0}
.tyn-card.tyn-main{box-shadow:var(--lift)}
.tyn-card h2{font-size:20px;line-height:1.35;color:var(--title);font-weight:700;margin:0 0 12px}
.tyn-card h2.c{text-align:center;text-wrap:balance}
.tyn-card .muted{color:var(--muted)}

/* the one action button: download = course access = try again */
.tyn-go{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;border-radius:12px;background:var(--red);color:#fff;font:700 19px/1.2 var(--bn);padding:16px 22px 13px;text-decoration:none;cursor:pointer;box-shadow:0 8px 22px rgba(230,0,0,.28);animation:tynPulse 1.8s cubic-bezier(.455,.03,.515,.955) infinite,tynBounce 3.6s ease-in-out infinite}
.tyn-go::before{content:"";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.35) 50%,transparent 80%);animation:tynShine 2.4s ease infinite;pointer-events:none}
.tyn-go svg{width:22px;height:22px;flex:none;margin-top:-3px}
.tyn-go:hover{background:var(--red-hover);animation-play-state:paused}
.tyn-go:focus-visible{outline:3px solid var(--title);outline-offset:2px}
.tyn-go.row{width:auto;font-size:16px;padding:12px 18px 10px;white-space:nowrap;flex:none}
.tyn-go.row svg{width:19px;height:19px}
.tyn-go.off{background:#DCDCE0;color:#6B6B70;box-shadow:none;animation:none;cursor:default}.tyn-go.off::before{display:none}
@keyframes tynPulse{0%{box-shadow:0 8px 22px rgba(230,0,0,.28),0 0 0 0 rgba(255,0,0,.5)}70%{box-shadow:0 8px 22px rgba(230,0,0,.28),0 0 0 14px rgba(255,0,0,0)}100%{box-shadow:0 8px 22px rgba(230,0,0,.28),0 0 0 0 rgba(255,0,0,0)}}
@keyframes tynShine{0%{left:-100%}60%{left:150%}100%{left:150%}}
@keyframes tynBounce{0%,70%,100%{transform:translateY(0)}76%{transform:translateY(-4px)}82%{transform:translateY(0)}88%{transform:translateY(-2px)}94%{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.tyn-go,.tyn-go::before{animation:none}}

/* secondary buttons, each its own look: video + library (outline), email (grey), WhatsApp (solid red, no motion) */
.tyn-b2{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;font:700 16px/1.2 var(--bn);padding:13px 18px 11px;text-decoration:none;cursor:pointer;width:100%;transition:background .18s,color .18s,transform .18s,box-shadow .18s}
.tyn-b2 svg{width:20px;height:20px;flex:none;margin-top:-2px}
.tyn-b2.vid{background:#fff;color:var(--title);border:1px solid #DCDCE0;font-weight:600}
.tyn-b2.vid:hover{background:var(--band)}
.tyn-b2.lib{background:#fff;color:var(--title);border:1.5px solid var(--title)}
.tyn-b2.lib:hover,.tyn-b2.lib:focus-visible{background:var(--title);color:#fff;transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.18)}
.tyn-b2.mail{background:#F2F2F4;color:var(--title);border:1px solid #E4E4E8;font-weight:400}
.tyn-b2.mail:hover{background:#E9E9EC}
.tyn-b2.wa{background:var(--red);color:#fff;border:0}
.tyn-b2.wa:hover{background:var(--red-hover)}
.tyn-b2.wa svg{width:21px;height:21px}

/* ebooks */
.tyn-items{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.tyn-items li+li{border-top:1px solid var(--line);padding-top:12px}
.tyn-bk{display:flex;align-items:center;gap:14px}
.tyn-bk.one{margin-bottom:16px}
.tyn-bk img{width:56px;aspect-ratio:1/1.414;height:auto;object-fit:cover;object-position:top;border-radius:6px;flex:none;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.tyn-bk .t,.tyn-crs .t{flex:1;min-width:0}
.tyn-bk .n,.tyn-crs .n{font-weight:700;color:var(--title);font-size:17px;line-height:1.35;margin:0}
.tyn-bk .s,.tyn-crs .s{font-size:13.5px;color:var(--muted);margin:0}
.tyn-tip{font-size:13.5px;color:var(--muted);text-align:center;margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line)}

/* courses */
.tyn-crs{display:flex;align-items:center;gap:12px;background:var(--tint);border-radius:14px;padding:12px 14px;margin-bottom:14px}
.tyn-items-c .tyn-crs{margin:0}
.tyn-items-c li+li{border-top:0;padding-top:0}
.tyn-crs .ic{width:42px;height:42px;border-radius:12px;background:#111;color:#fff;display:grid;place-items:center;flex:none}
.tyn-crs .ic svg{width:22px;height:22px}
.tyn-acts{display:flex;gap:10px;align-items:stretch}
.tyn-acts .tyn-go{flex:1.6;width:auto;white-space:nowrap}
.tyn-acts .tyn-b2.vid{flex:1;width:auto;white-space:nowrap}
.tyn-acts.solo .tyn-go,.tyn-acts.solo .tyn-b2{flex:1}
.tyn-items-c+.tyn-acts{margin-top:14px}
.tyn-hint{font-size:13.5px;color:var(--muted);margin:8px 0 0;text-align:center}
.tyn-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.tyn-steps li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.5}
.tyn-steps b{flex:none;width:24px;height:24px;border-radius:50%;background:#111;color:#fff;font:600 13px/24px var(--en);text-align:center}

/* important box: full red stroke */
.tyn-warn{border:2px solid var(--red)}
.tyn-warn ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tyn-warn li{display:flex;gap:10px;font-size:15px;line-height:1.55}
.tyn-warn li svg{width:18px;height:18px;flex:none;color:var(--red-text);margin-top:3px;stroke-width:3}
.tyn-warn li b{color:var(--red-text)}

/* where we sent it */
.tyn-dv{display:grid;gap:10px}
.tyn-dv .r{display:flex;gap:12px;align-items:flex-start;background:var(--tint);border-radius:14px;padding:12px 14px}
.tyn-dv .ic{width:36px;height:36px;border-radius:10px;background:#fff;color:var(--red-text);display:grid;place-items:center;flex:none;border:1px solid #F1D9D9}
.tyn-dv .ic svg{width:19px;height:19px}
.tyn-dv .t{flex:1;min-width:0}
.tyn-dv .k{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;margin:0}
.tyn-dv .v{font:600 14.5px/1.5 var(--en);color:var(--title);overflow-wrap:break-word;min-width:0}
.tyn-dv .st{font-size:13px;font-weight:400;white-space:nowrap}
.tyn-dv .st.ok{color:var(--green)}.tyn-dv .st.wait{color:var(--wait)}.tyn-dv .st.bad{color:#B00000}
.tyn-dv .nt{font-size:13px;color:var(--muted);margin:2px 0 0}
.tyn-lib{border:1.5px solid #E4E4E8;border-radius:16px;padding:16px;margin-top:14px}
.tyn-lib h3{font-size:17px;font-weight:700;color:var(--title);margin:0 0 10px;text-align:center}
.tyn-lib dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0 0 12px;font-size:15px}
.tyn-lib dt{color:var(--muted)}
.tyn-lib dd{margin:0;text-align:right;font-weight:600;color:var(--title);overflow-wrap:break-word;min-width:0}
.tyn-lib dd.en{font-family:var(--en);font-size:14px}

/* order details: closed until tapped */
.tyn-rc summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;color:var(--title);font-size:16.5px;white-space:nowrap}
.tyn-rc summary::-webkit-details-marker{display:none}
.tyn-rc summary .sid{margin-left:auto;font:600 13px/1 var(--en);color:var(--muted);background:var(--tint);border-radius:999px;padding:6px 10px}
.tyn-rc summary svg{width:20px;height:20px;transition:transform .2s;flex:none}
.tyn-rc[open] summary svg{transform:rotate(180deg)}
.tyn-rc .rc-body{margin-top:14px;display:grid;gap:12px}
.tyn-rc .rc-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tyn-rc .rc-items li{display:flex;justify-content:space-between;gap:12px;font-size:15px;color:var(--title)}
.tyn-rc .rc-items li span:last-child{white-space:nowrap}
.tyn-rc .rc-tot{display:flex;justify-content:space-between;align-items:center;background:var(--tint);border-radius:12px;padding:10px 14px;font-weight:700;color:var(--title);font-size:16px}
.tyn-rc .rc-tot small{display:block;font-weight:400;font-size:12.5px;color:var(--green)}
.tyn-rc .rc-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px dashed #DDD8D0;padding-top:12px}
.tyn-rc .rc-meta div{min-width:0}
.tyn-rc .rc-meta span{display:block;font-size:12.5px;color:var(--muted)}
.tyn-rc .rc-meta b{display:block;font-weight:600;color:var(--title);font-size:14.5px;overflow-wrap:anywhere}
.tyn-rc .rc-meta b.en{font-family:var(--en);font-size:13px}

/* pending / failed / another device */
.tyn-state{text-align:center}
.tyn-state>p{margin:0 0 14px}
.tyn-state .tyn-go,.tyn-state .tyn-b2{max-width:420px;margin:0 auto}
.tyn-note{font-size:13.5px;color:var(--muted);text-align:center;text-wrap:balance;margin:12px 0 0!important}

/* help */
.tyn-help{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center}
.tyn-help h2{margin:0;font-size:18px}
.tyn-help p{font-size:14px;color:var(--muted);margin:0}
.tyn-help .hb{grid-column:2;grid-row:1/span 2;display:flex;gap:10px}
.tyn-help .hb .tyn-b2{width:auto;padding-left:22px;padding-right:22px}

/* video window */
.tyn-vd{border:0;padding:0;border-radius:16px;width:min(880px,calc(100vw - 24px));background:#000;overflow:visible}
.tyn-vd::backdrop{background:rgba(0,0,0,.78)}
.tyn-vd .fr{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden}
.tyn-vd iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tyn-vd .x{position:absolute;top:-46px;right:0;width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#111;display:grid;place-items:center;cursor:pointer}
.tyn-vd .x svg{width:20px;height:20px}

@media (max-width:767px){
  .tyn-band{padding:22px 16px 112px}
  .tyn-band h1{font-size:29px}
  .tyn-hi{font-size:16px}
  .tyn-lift{margin-top:-84px;padding:0 12px;gap:14px}
  .tyn-card{padding:18px}
  .tyn-card h2{font-size:19px}
  .tyn-go{font-size:18px}
  .tyn-help{grid-template-columns:1fr;text-align:center}
  .tyn-help .hb{grid-column:1;grid-row:auto;flex-direction:column}
  .tyn-help .hb .tyn-b2{width:100%}
  .tyn-help .hb .wa{order:-1}
  .tyn-items .tyn-bk{flex-wrap:wrap}
  .tyn-items .tyn-bk .tyn-go{width:100%}
  .tyn-items-c .tyn-crs{flex-wrap:wrap}
  .tyn-items-c .tyn-crs .tyn-go{width:100%}
}
@media (max-width:420px){
  .tyn-acts{gap:8px}
  .tyn-acts .tyn-go{font-size:16px;padding-left:10px;padding-right:10px;gap:6px}
  .tyn-acts .tyn-go svg{width:18px;height:18px}
  .tyn-acts .tyn-b2.vid{padding-left:12px;padding-right:12px;font-size:15px}
  .tyn-acts .tyn-b2.vid svg{display:none}
  .tyn-rc .rc-meta{grid-template-columns:1fr 1fr}
  .tyn-rc .rc-meta div:last-child:nth-child(3){grid-column:1/-1}
}
@media (max-width:359px){
  .tyn-acts{flex-direction:column-reverse}
  .tyn-acts .tyn-b2.vid{width:100%}
  .tyn-rc summary .sid{display:none}
  .tyn-rc summary svg{margin-left:auto}
}

/* Thank-you download buttons without cover or name (Rayan, 2 Dec) */
.tyn-dls{display:grid;gap:12px}
.tyn-dls .tyn-go{margin:0}

/* Checkout summary without cover pictures (Rayan, 4 Dec): name + price only; the x (2+ books) stays in a small first column. */
.summary .item.noimg{grid-template-columns:minmax(0,1fr) auto}
.summary .item.noimg:has(.ic button){grid-template-columns:22px minmax(0,1fr) auto}
.item.noimg .ic:not(:has(button)){display:none}
.item.noimg .ic:has(button){width:22px;height:22px}
