/* =====================================================================
   Smart Vision Academy, design system v2 (10 Minute School style)
   Brand red, green CTAs, purple exam actions, dark hero, light pages.
   Fonts: Plus Jakarta Sans for Latin, Bornomala for Bangla.
   ===================================================================== */
:root {
  --t-red: #E5383B; --t-red-2: #C92A2D; --t-red-soft: #FDECEC;
  --t-green: #1CAB55; --t-green-2: #158A44; --t-green-soft: #E7F7EE;
  --t-purple: #5B3DF5; --t-purple-2: #4527D9; --t-purple-soft: #EEEAFE;
  --t-dark: #0B0F19; --t-dark-2: #151B2B;
  --t-ink: #111827; --t-text: #374151; --t-muted: #6B7280; --t-line: #E8EAEE; --t-grey: #F5F6F8;
  --t-r: 14px; --t-r-sm: 10px;
  --t-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 18px -10px rgba(17, 24, 39, .18);
  --t-shadow-hover: 0 18px 38px -18px rgba(17, 24, 39, .38);
  --font: "Bornomala", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bn: "Bornomala", "Plus Jakarta Sans", sans-serif;
  /* re-point legacy tokens used by inner pages */
  --navy: #0f2a44; --navy-2: #12355a; --navy-3: #0a1e33;
  --orange: #E5383B; --orange-2: #C92A2D;
  --teal: #0f766e; --teal-2: #14b8a6; --teal-soft: #e6f6f3;
  /* Brief palette: lavender information cards, tinted subject panels */
  --lav: #ede9fe; --lav-2: #ddd6fe; --lav-ink: #4c3fb5;
  --tint-a: #e6f6f3; --tint-b: #eef1fb; --tint-c: #fdecec; --tint-d: #fff4e6;
}
body { font-family: var(--font); color: var(--t-text); background: #fff; }
.lang-bn body, body.lang-bn { font-size: 16.5px; line-height: 1.75; }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3 { font-family: var(--bn); letter-spacing: 0; line-height: 1.35; }
h1, h2, h3, h4 { color: var(--t-ink); }
a { color: inherit; }
.page-hero { background: var(--t-dark); }

/* ---------- Buttons ---------- */
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .98rem; padding: .85rem 1.4rem; border-radius: 10px; border: 2px solid transparent; transition: background .2s, color .2s, transform .2s, border-color .2s; white-space: nowrap; }
.tbtn .icon { width: 18px; height: 18px; }
.tbtn:hover { transform: translateY(-2px); }
.tbtn-green { background: var(--t-green); color: #fff; }
.tbtn-green:hover { background: var(--t-green-2); color: #fff; }
.tbtn-red { background: var(--t-red); color: #fff; }
.tbtn-red:hover { background: var(--t-red-2); color: #fff; }
.tbtn-purple { background: var(--t-purple); color: #fff; }
.tbtn-purple:hover { background: var(--t-purple-2); color: #fff; }
.tbtn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.tbtn-ghost:hover { background: #fff; color: var(--t-dark); }
.tbtn-white { background: #fff; color: var(--t-purple); }
.tbtn-white:hover { background: #f1eeff; color: var(--t-purple-2); }
.tbtn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.tbtn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-accent { background: var(--t-red); }
.btn-accent:hover { background: var(--t-red-2); }
.btn-primary { background: var(--t-dark-2); }

/* ---------- Navbar ---------- */
.tn.site-header { position: sticky; top: 0; z-index: 70; background: #fff; border-bottom: 1px solid var(--t-line); box-shadow: none; }
.tn-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.tn .brand-logo-full { height: 46px; width: auto; }
.tn-search { position: relative; flex: 0 1 300px; min-width: 180px; }
.tn-search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 40px; background: var(--t-grey); transition: border-color .2s, background .2s; }
.tn-search-box:focus-within { background: #fff; border-color: #c9cdd6; }
.tn-search-box .icon { width: 18px; height: 18px; color: var(--t-muted); flex-shrink: 0; }
.tn-search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: .9rem; color: var(--t-ink); }
.tn-results { position: absolute; left: 0; top: calc(100% + 8px); width: min(460px, 92vw); background: #fff; border: 1px solid var(--t-line); border-radius: 14px; box-shadow: 0 24px 50px -22px rgba(15, 23, 42, .4); padding: 6px 0; max-height: 440px; overflow-y: auto; z-index: 80; }
.tn-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tn-nav .nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .7rem; font-size: .93rem; font-weight: 600; color: var(--t-text); border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; position: relative; }
.tn-nav .nav-link:hover, .tn-nav .nav-link.active { color: var(--t-red); background: transparent; }
.tn-nav .caret { width: 14px; height: 14px; }
.tn-nav .drop { min-width: 250px; }
.tn-nav .drop a { font-weight: 500; }
.tn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t-red); margin-left: 5px; vertical-align: top; }
.tn-free { background: var(--t-green); color: #fff; font-size: .62rem; font-weight: 800; padding: .12rem .4rem; border-radius: 4px; margin-left: 2px; line-height: 1.4; }
.tn-actions { display: flex; align-items: center; gap: 6px; }
.tn-actions .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--t-text); }
.tn-actions .icon-btn:hover { background: var(--t-grey); color: var(--t-ink); }
.tn-actions .cart-count { background: var(--t-red); }
.tn-lang { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border: 1px solid var(--t-line); border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--t-text); }
.tn-lang:hover { border-color: var(--t-ink); color: var(--t-ink); }
.tn-login { display: inline-flex; align-items: center; height: 40px; padding: 0 1.2rem; border-radius: 8px; background: var(--t-green); color: #fff; font-weight: 700; font-size: .92rem; white-space: nowrap; margin-left: 4px; }
.tn-login:hover { background: var(--t-green-2); color: #fff; }
.tn .nb-me { padding: 2px; height: auto; border-radius: 50%; border: 2px solid var(--t-line); }
.tn .nb-me .av { width: 34px; height: 34px; background: var(--t-red); }
.tn .menu-btn { display: none; }
.drawer-search { display: flex; align-items: center; gap: 8px; margin: 4px 16px 10px; padding: 0 12px; height: 42px; border: 1px solid var(--t-line); border-radius: 30px; background: var(--t-grey); }
.drawer-search .icon { width: 18px; height: 18px; color: var(--t-muted); }
.drawer-search input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; }
@media (max-width: 1240px) { .tn-search { flex-basis: 220px; } .tn-nav .nav-link { padding: .5rem .5rem; font-size: .88rem; } }
@media (max-width: 1100px) {
  .tn-nav, .tn-search { display: none; }
  .tn .menu-btn { display: inline-grid; }
  .tn-actions { margin-left: auto; }
}
@media (max-width: 480px) { .tn .brand-logo-full { height: 40px; } .tn-login { padding: 0 .9rem; } .tn-inner { gap: 10px; } }

/* ---------- Section scaffolding ---------- */
.tsec { padding: 64px 0; background: #fff; }
.tsec-grey { background: var(--t-grey); }
.tsec-tight { padding: 32px 0; }
.thead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.thead h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 .25rem; font-weight: 800; }
.thead p { margin: 0; color: var(--t-muted); max-width: 680px; }
.thead-c { flex-direction: column; align-items: center; text-align: center; }
.tlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--t-red); white-space: nowrap; }
.tlink .icon { width: 16px; height: 16px; }

/* ---------- 1. Hero ---------- */
.th-hero { background: var(--t-dark); color: rgba(255, 255, 255, .78); padding: 54px 0 60px; position: relative; overflow: hidden; }
.th-hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 90px solid rgba(255, 255, 255, .03); pointer-events: none; }
.th-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.th-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 16px; color: #ffb3b4; font-weight: 600; font-size: .95rem; }
.th-eyebrow .icon { width: 19px; height: 19px; }
.th-hero h1 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.25; margin: 0 0 16px; font-weight: 800; }
.th-hero h1 .accent-word { color: #ff6b6e; }
.th-lead { font-size: 1.08rem; line-height: 1.8; margin: 0 0 26px; max-width: 560px; }
.th-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.th-proof { list-style: none; margin: 30px 0 0; padding: 22px 0 0; display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); }
.th-proof strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.th-proof span { font-size: .85rem; }
.th-slider { position: relative; }
.th-slides { display: grid; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); background: var(--t-dark-2); }
.th-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.th-slide.is-active { opacity: 1; visibility: visible; }
.th-slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.th-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.th-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s, background .3s; }
.th-dots button.is-active { width: 26px; background: var(--t-red); }

/* ---------- 2. Learning loop ---------- */
.th-loop-wrap { background: #fff; border-bottom: 1px solid var(--t-line); padding: 26px 0; }
.th-loop { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.th-loop li:not(.arr) { flex: 1; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 0; }
.th-loop .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--t-red-soft); color: var(--t-red); }
.th-loop li:nth-child(3) .ic { background: var(--t-green-soft); color: var(--t-green); }
.th-loop li:nth-child(5) .ic { background: var(--t-purple-soft); color: var(--t-purple); }
.th-loop li:nth-child(7) .ic { background: #E6F4FE; color: #0284C7; }
.th-loop li:nth-child(9) .ic { background: #FEF3C7; color: #B45309; }
.th-loop .ic .icon { width: 22px; height: 22px; }
.th-loop strong { color: var(--t-ink); font-size: 1.02rem; line-height: 1.2; }
.th-loop small { color: var(--t-muted); font-size: .78rem; line-height: 1.35; }
.th-loop .arr { color: #c4c8d0; flex-shrink: 0; }
.th-loop .arr .icon { width: 20px; height: 20px; }

/* ---------- 3. Categories ---------- */
.th-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.th-cat { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); transition: transform .2s, box-shadow .2s, border-color .2s; }
.th-cat:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); border-color: transparent; }
.th-cat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); flex-shrink: 0; }
.th-cat .ic .icon { width: 24px; height: 24px; }
.th-cat .tx { flex: 1; min-width: 0; }
.th-cat strong { display: block; color: var(--t-ink); font-size: .95rem; line-height: 1.35; }
.th-cat small { color: var(--t-muted); font-size: .8rem; }
.th-cat .go { width: 18px; height: 18px; color: #c4c8d0; transition: color .2s, transform .2s; }
.th-cat:hover .go { color: var(--c); transform: translateX(3px); }

/* ---------- Course card ---------- */
.cc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; box-shadow: var(--t-shadow); transition: transform .25s, box-shadow .25s; }
.cc:hover { transform: translateY(-6px); box-shadow: var(--t-shadow-hover); }
.cc-media { position: relative; aspect-ratio: 16 / 10; background: var(--t-grey); overflow: hidden; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cc:hover .cc-media img { transform: scale(1.04); }
.cc-badge { position: absolute; left: 10px; top: 10px; background: var(--t-red); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .55rem; border-radius: 6px; letter-spacing: .02em; }
.cc-badge.free { background: var(--t-green); }
.cc-badge.closed { left: auto; right: 10px; background: rgba(15, 23, 42, .82); }
.cc-mode { color: var(--teal); font-weight: 600; }
.cc-mode .icon { color: var(--teal); }
.cc-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.cc-title { font-size: 1rem; line-height: 1.45; margin: 0 0 6px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.cc-title a { color: var(--t-ink); }
.cc-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cc-by { font-size: .82rem; color: var(--t-muted); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cc-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--t-text); background: var(--t-grey); border-radius: 6px; padding: .22rem .5rem; }
.cc-meta .icon { width: 13px; height: 13px; color: var(--t-muted); }
.cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--t-line); }
.cc-price strong { font-size: 1.2rem; font-weight: 800; color: var(--t-ink); }
.cc-price strong.free { color: var(--t-green); }
.cc-price del { font-size: .85rem; color: var(--t-muted); margin-left: 6px; }
.cc-go { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--t-green); transition: gap .2s; }
.cc-go .icon { width: 15px; height: 15px; }
.cc:hover .cc-go { gap: 8px; }

/* ---------- 5. Why us ---------- */
.th-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-why-item { padding: 24px; border: 1px solid var(--t-line); border-radius: var(--t-r); background: #fff; transition: box-shadow .2s, transform .2s; }
.th-why-item:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); }
.th-why-item .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--t-red-soft); color: var(--t-red); }
.th-why-item:nth-child(2) .ic, .th-why-item:nth-child(5) .ic { background: var(--t-green-soft); color: var(--t-green); }
.th-why-item:nth-child(3) .ic, .th-why-item:nth-child(6) .ic { background: var(--t-purple-soft); color: var(--t-purple); }
.th-why-item .ic .icon { width: 24px; height: 24px; }
.th-why-item strong { display: block; color: var(--t-ink); font-size: 1.08rem; margin-bottom: .35rem; }
.th-why-item p { margin: 0; color: var(--t-muted); font-size: .92rem; line-height: 1.65; }

/* ---------- 6. MCQ CTA ---------- */
.th-mcq { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: var(--t-purple); color: rgba(255, 255, 255, .85); border-radius: 20px; padding: 40px 44px; position: relative; overflow: hidden; }
.th-mcq::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .07); }
.th-mcq .tag { display: inline-block; background: var(--t-green); color: #fff; font-size: .75rem; font-weight: 800; padding: .25rem .6rem; border-radius: 6px; margin-bottom: 12px; }
.th-mcq h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 10px; }
.th-mcq p { margin: 0 0 22px; line-height: 1.75; }
.th-mcq .nums { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.th-mcq .nums li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 14px 18px; }
.th-mcq .nums strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.th-mcq .nums span { font-size: .86rem; }

/* ---------- 9. Teachers ---------- */
.th-teachers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.th-teacher { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; text-align: center; padding-bottom: 16px; transition: transform .2s, box-shadow .2s; }
.th-teacher:hover { transform: translateY(-4px); box-shadow: var(--t-shadow-hover); }
.th-teacher .ph { aspect-ratio: 1; background: var(--t-dark-2); color: #fff; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.th-teacher .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.th-teacher strong { display: block; color: var(--t-ink); }
.th-teacher span { display: block; color: var(--t-red); font-size: .85rem; font-weight: 600; padding: 0 10px; }
.th-teacher small { display: block; color: var(--t-muted); font-size: .8rem; padding: 0 10px; }

/* ---------- 10. App ---------- */
.th-app { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: var(--t-dark); color: rgba(255, 255, 255, .78); border-radius: 22px; padding: 44px 48px; overflow: hidden; }
.th-app h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0 0 10px; }
.th-app p { margin: 0 0 18px; line-height: 1.75; }
.th-app .pts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.th-app .pts li { display: flex; align-items: center; gap: .55rem; }
.th-app .pts .icon { width: 18px; height: 18px; color: var(--t-green); }
.th-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.th-stores .store, .tf-app { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 8px 16px; }
.th-stores .store .icon, .tf-app .icon { width: 22px; height: 22px; }
.th-stores small, .tf-app small { display: block; font-size: .66rem; opacity: .8; line-height: 1.1; }
.th-stores b, .tf-app b { display: block; font-size: .95rem; line-height: 1.2; }
.th-phone { justify-self: center; width: 250px; aspect-ratio: 9 / 18; border-radius: 34px; background: #000; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transform: rotate(-4deg); }
.th-phone .screen { height: 100%; border-radius: 26px; background: #fff; overflow: hidden; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.th-phone .bar small { display: block; color: var(--t-muted); font-size: .7rem; }
.th-phone .bar strong { color: var(--t-ink); font-size: .95rem; }
.th-phone .row { display: flex; gap: 8px; align-items: center; background: var(--t-grey); border-radius: 10px; padding: 6px; }
.th-phone .row img { width: 54px; height: 34px; object-fit: cover; border-radius: 6px; }
.th-phone .row span { font-size: .68rem; font-weight: 700; color: var(--t-ink); line-height: 1.3; }
.th-phone .row small { display: block; color: var(--t-muted); font-weight: 500; }
.th-phone .live { margin-top: auto; display: flex; gap: 6px; align-items: center; background: var(--t-red-soft); color: var(--t-red); font-size: .7rem; font-weight: 700; border-radius: 8px; padding: 8px; }
.th-phone .live .icon { width: 15px; height: 15px; }

/* ---------- Reviews (reuse coverflow) ---------- */
.rv-sec .rv-summary .score { background: var(--t-red); }
.rv-dots button.on { background: var(--t-red); }
.rv-nav:hover { background: var(--t-red); border-color: var(--t-red); }

/* ---------- Footer ---------- */
.tf.site-footer { background: #fff; border-top: 1px solid var(--t-line); padding-top: 52px; }
.tf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 28px; }
.tf-about p { color: var(--t-muted); margin: 14px 0 16px; max-width: 320px; }
.tf-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.tf .tf-app { background: var(--t-dark); border: 0; padding: 7px 12px; }
.tf h3 { font-size: 1rem; color: var(--t-ink); margin: 0 0 12px; }
.tf a { display: block; color: var(--t-text); padding: .28rem 0; font-size: .92rem; }
.tf a:hover { color: var(--t-red); }
.tf-contact p { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .55rem; font-size: .92rem; }
.tf-contact p .icon { width: 17px; height: 17px; color: var(--t-red); margin-top: .2rem; flex-shrink: 0; }
.tf-contact p a { display: inline; padding: 0; }
.tf .socials { display: flex; gap: 8px; margin-top: 12px; }
.tf .socials a { width: 36px; height: 36px; border-radius: 8px; background: var(--t-grey); display: grid; place-items: center; padding: 0; color: var(--t-ink); }
.tf .socials a:hover { background: var(--t-red); color: #fff; }
.tf .footer-bottom { background: var(--t-dark); }
.tf .footer-bottom a { display: inline; color: #ff8a8c; }

/* ---------- Floating call + WhatsApp ---------- */
.tn-float { position: fixed; right: 18px; bottom: 22px; z-index: 56; display: flex; flex-direction: column; gap: 10px; }
.tn-float .wa-float { position: static; }
.tn-float-call { width: 50px; height: 50px; border-radius: 50%; background: var(--t-red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(229, 56, 59, .7); transition: transform .2s; }
.tn-float-call:hover { transform: scale(1.08); color: #fff; }
.tn-float-call .icon { width: 22px; height: 22px; }
@media (max-width: 1024px) { body.has-mobile-cta .tn-float { bottom: 92px; } }

/* Floating action buttons: slow idle bob on the stack plus an attention ring on
   each button. Bob sits on the container so the buttons keep their hover scale. */
.tn-float { animation: fab-bob 3.2s ease-in-out infinite; }
.tn-float:hover { animation-play-state: paused; }
/* inset: auto drops the fixed-position offsets .wa-float carries from site.css; relative would shift it onto the call button */
.tn-float .wa-float, .tn-float .tn-float-call { position: relative; inset: auto; }
.tn-float { align-items: center; }
.tn-float .wa-float::after, .tn-float .tn-float-call::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
    animation: fab-ring 2.4s ease-out infinite;
}
.tn-float .wa-float::after { background: #25d366; }
.tn-float .tn-float-call::after { background: var(--t-red); animation-delay: .4s; }
@keyframes fab-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .tn-float { animation: none; }
    .tn-float .wa-float::after, .tn-float .tn-float-call::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .th-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .th-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-mcq, .th-app { grid-template-columns: 1fr; }
  .th-loop { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; }
  .th-loop li:not(.arr) { flex: 0 0 210px; }
  .tf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tsec { padding: 44px 0; }
  .th-hero { padding: 34px 0 40px; }
  .th-hero h1 { font-size: 1.85rem; }
  .th-actions .tbtn { flex: 1 1 100%; }
  .th-proof { gap: 22px; }
  .th-cats { gap: 10px; }
  .th-cat { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .th-cat .go { display: none; }
  .th-why { grid-template-columns: 1fr; }
  .th-mcq { padding: 28px 22px; border-radius: 16px; }
  .th-app { padding: 30px 22px; }
  .th-phone { width: 210px; }
  .tf-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* =================== Phase 2: auth, listing, course detail =================== */
/* Sign in */
.ta { background: var(--t-grey); padding: 48px 0 64px; }
.ta-grid { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.ta-welcome h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 10px; }
.ta-welcome > p { color: var(--t-muted); margin: 0 0 18px; font-size: 1.05rem; }
.ta-welcome ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ta-welcome li { display: flex; gap: .6rem; align-items: center; color: var(--t-text); font-weight: 500; }
.ta-welcome li .icon { width: 20px; height: 20px; color: var(--t-green); }
.ta-art { position: relative; max-width: 420px; }
.ta-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 18px; }
.ta-chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: .4rem; align-items: center; background: #fff; border-radius: 10px; padding: .5rem .8rem; font-weight: 700; font-size: .85rem; box-shadow: var(--t-shadow); }
.ta-chip .icon { width: 17px; height: 17px; color: var(--t-green); }
.ta-card { background: #fff; border: 1px solid var(--t-line); border-radius: 18px; padding: 30px; box-shadow: 0 24px 50px -30px rgba(17, 24, 39, .4); }
.ta-card h2 { font-size: 1.35rem; margin: 0 0 18px; }
.ta-card label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; color: var(--t-ink); }
.ta-input { height: 50px; font-size: 1rem; border-radius: 10px; width: 100%; }
.ta-code { letter-spacing: .5em; text-align: center; font-size: 1.3rem; font-weight: 700; }
.ta-btn { width: 100%; margin-top: 18px; height: 50px; }
.ta-note, .ta-hint { font-size: .8rem; color: var(--t-muted); margin: 14px 0 0; }
.ta-note a { color: var(--t-red); font-weight: 600; }
.ta-sub { color: var(--t-muted); margin: -10px 0 8px; font-size: .92rem; }
.ta-who { display: flex; align-items: center; gap: 10px; background: var(--t-grey); border-radius: 10px; padding: 10px 12px; margin-bottom: 18px; }
.ta-who .ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--t-red); flex-shrink: 0; }
.ta-who .ic .icon { width: 18px; height: 18px; }
.ta-who > span:nth-child(2) { flex: 1; min-width: 0; }
.ta-who small { display: block; font-size: .75rem; color: var(--t-muted); }
.ta-who strong { display: block; color: var(--t-ink); word-break: break-all; }
.ta-who a { font-size: .85rem; font-weight: 700; color: var(--t-red); }
.ta-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .86rem; }
.ta-row a { color: var(--t-red); font-weight: 600; }
.ta-resend { text-align: center; margin-top: 12px; }
.ta-resend button { background: none; border: 0; color: var(--t-red); font-weight: 700; cursor: pointer; font-family: inherit; }
@media (max-width: 900px) { .ta-grid { grid-template-columns: 1fr; } .ta-art { display: none; } .ta { padding: 28px 0 44px; } .ta-card { padding: 22px; } }

/* Listing head + chips */
.tl-head { background: var(--t-grey); padding: 34px 0 28px; border-bottom: 1px solid var(--t-line); }
.tl-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 6px 0 6px; }
.tl-head p { color: var(--t-muted); margin: 0; max-width: 720px; }
.tl-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--t-muted); }
.tl-crumbs .icon { width: 13px; height: 13px; }
.tl-crumbs a:hover { color: var(--t-red); }
.tl-crumbs.light, .tl-crumbs.light a { color: rgba(255, 255, 255, .7); }
.tl-body { padding: 26px 0 64px; }
.tl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; }
.tl-chips a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: .55rem 1rem; border: 1px solid var(--t-line); border-radius: 40px; background: #fff; font-weight: 600; font-size: .9rem; color: var(--t-text); transition: all .2s; }
.tl-chips a b { font-size: .72rem; background: var(--t-grey); color: var(--t-muted); border-radius: 20px; padding: .05rem .45rem; }
.tl-chips a:hover { border-color: var(--t-red); color: var(--t-red); }
.tl-chips a.active { background: var(--t-red); border-color: var(--t-red); color: #fff; }
.tl-chips a.active b { background: rgba(255, 255, 255, .25); color: #fff; }
.tl-tools { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; flex-wrap: wrap; }
.tl-search { flex: 1; min-width: 220px; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 10px; background: #fff; }
.tl-search .icon { width: 18px; height: 18px; color: var(--t-muted); }
.tl-search input { flex: 1; border: 0; outline: none; font: inherit; background: transparent; }
.tl-count { color: var(--t-muted); font-size: .9rem; margin-left: auto; }
.tl-sort .select { height: 44px; border-radius: 10px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 26px; }
.tfaq-h { font-size: 1.2rem; margin: 26px 0 12px; }
.tfaq-cta { margin-top: 26px; padding: 18px; border-radius: 12px; background: var(--t-grey); text-align: center; }
.tfaq-cta a { color: var(--t-red); font-weight: 700; }

/* Course detail */
.tc-hero { background: var(--t-dark); color: rgba(255, 255, 255, .78); padding: 36px 0 40px; }
.tc-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 10px 0 10px; max-width: 760px; line-height: 1.3; }
.tc-hero p { max-width: 720px; margin: 0 0 14px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.tc-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tc-meta .icon { width: 16px; height: 16px; }
.tc-meta .rate { color: #fbbf24; font-weight: 700; }
.tc-meta .rate small { color: rgba(255, 255, 255, .7); font-weight: 400; }
.tc-body { padding: 0 0 60px; }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.tc-main { padding-top: 30px; min-width: 0; }
.tc-block { border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 22px 24px; margin-bottom: 18px; background: #fff; }
.tc-block h2 { font-size: 1.2rem; margin: 0 0 12px; }
.tc-sub { color: var(--t-muted); font-size: .88rem; margin: -6px 0 12px; }
.tc-clamp { max-height: 210px; overflow: hidden; position: relative; }
.tc-clamp.open { max-height: none; }
.tc-clamp:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; bottom: 30px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.tc-more { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; text-align: left; padding-top: 10px !important; background: #fff; border: 0; color: var(--t-red); font-weight: 700; cursor: pointer; font-family: inherit; padding: 0; }
.tc-clamp.open .tc-more { display: none; }
.tc-teachers { display: grid; gap: 14px; }
.tc-teacher { display: flex; gap: 14px; align-items: flex-start; }
.tc-teacher .av { width: 64px; height: 64px; border-radius: 50%; background: var(--t-dark-2); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.tc-teacher .av img { width: 100%; height: 100%; object-fit: cover; }
.tc-teacher strong { display: block; color: var(--t-ink); }
.tc-teacher span { display: block; color: var(--t-red); font-size: .85rem; font-weight: 600; }
.tc-teacher small { display: block; color: var(--t-muted); font-size: .84rem; margin-top: 2px; }
.tc-learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.tc-learn li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; }
.tc-learn .icon { width: 18px; height: 18px; color: var(--t-green); flex-shrink: 0; margin-top: .2rem; }
.tc-acc details { border: 1px solid var(--t-line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.tc-acc summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; background: var(--t-grey); font-weight: 600; color: var(--t-ink); }
.tc-acc summary::-webkit-details-marker { display: none; }
.tc-acc summary .t { flex: 1; }
.tc-acc summary .c { font-size: .8rem; color: var(--t-muted); font-weight: 500; }
.tc-acc summary .caret { width: 16px; height: 16px; transition: transform .2s; }
.tc-acc details[open] summary .caret { transform: rotate(180deg); }
.tc-acc ol { list-style: none; margin: 0; padding: 6px 16px 10px; }
.tc-acc li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--t-line); font-size: .92rem; }
.tc-acc li:last-child { border-bottom: 0; }
.tc-acc li > .icon { width: 17px; height: 17px; color: var(--t-muted); flex-shrink: 0; }
.tc-acc li span { flex: 1; }
.tc-acc .lk { color: #c4c8d0; }
.tc-acc .pv { flex: 0 0 auto; font-size: .72rem; background: var(--t-green-soft); color: var(--t-green); padding: .1rem .45rem; border-radius: 4px; }
.tc-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tc-rating strong { font-size: 2rem; color: var(--t-ink); }
.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 16px; height: 16px; color: #d1d5db; fill: currentColor; }
.stars .icon.on { color: #f59e0b; }
.tc-review { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--t-line); }
.tc-review .av { width: 40px; height: 40px; border-radius: 50%; background: var(--t-red-soft); color: var(--t-red); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.tc-review strong { display: block; color: var(--t-ink); }
.tc-review p { margin: 4px 0; }
.tc-review small { color: var(--t-muted); font-size: .78rem; }
.tc-review-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--t-line); display: grid; gap: 10px; }
.tc-review-form h3 { font-size: 1rem; margin: 0; }
.tc-stars-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.tc-stars-pick input { display: none; }
.tc-stars-pick label { cursor: pointer; color: #d1d5db; }
.tc-stars-pick label .icon { width: 26px; height: 26px; fill: currentColor; }
.tc-stars-pick input:checked ~ label, .tc-stars-pick label:hover, .tc-stars-pick label:hover ~ label { color: #f59e0b; }
.tc-review-form .tbtn { justify-self: start; }
.tc-side { position: sticky; top: 84px; margin-top: -150px; z-index: 3; }
.tc-card { background: #fff; border: 1px solid var(--t-line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(17, 24, 39, .5); }
.tc-card .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.tc-card .body { padding: 18px 20px 20px; }
.tc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-price strong { font-size: 1.9rem; font-weight: 800; color: var(--t-ink); }
.tc-price strong.free { color: var(--t-green); }
.tc-price del { color: var(--t-muted); }
.tc-price .off { background: var(--t-red); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .5rem; border-radius: 6px; }
.tc-cta { width: 100%; height: 50px; }
.tc-wa { width: 100%; margin-top: 10px; background: #25d366; color: #fff; }
.tc-wa:hover { background: #1ebe5b; color: #fff; }
.tbtn-ghostdark { background: var(--t-grey); color: var(--t-ink); border-color: var(--t-line); }
.tc-enrolled { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--t-muted); font-size: .85rem; margin: 10px 0 16px; }
.tc-enrolled .icon { width: 16px; height: 16px; }
.tc-card h4 { font-size: .95rem; margin: 0 0 10px; color: var(--t-ink); }
.tc-feat { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.tc-feat li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.tc-feat .icon { width: 17px; height: 17px; color: var(--t-green); flex-shrink: 0; margin-top: .2rem; }
.tc-help { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--t-red-soft); color: var(--t-ink); }
.tc-help .icon { width: 22px; height: 22px; color: var(--t-red); }
.tc-help small { display: block; font-size: .75rem; color: var(--t-muted); }
.tc-help b { display: block; }
@media (max-width: 1024px) {
  .tc-grid { grid-template-columns: 1fr; }
  .tc-side { position: static; margin-top: 20px; }
  .tc-main { padding-top: 0; }
  .tc-learn { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .tc-block { padding: 18px; } }

/* =================== Phase 4: result, review, leaderboard =================== */
.tr-hero { background: var(--t-dark); color: rgba(255, 255, 255, .75); padding: 34px 0 40px; }
.tr-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 4px 0 6px; line-height: 1.3; }
.tr-grid { display: flex; gap: 34px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.tr-ring { --p: 0; width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--t-green) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); display: grid; place-items: center; flex-shrink: 0; }
.tr-ring > div { width: 136px; height: 136px; border-radius: 50%; background: var(--t-dark); display: grid; place-content: center; text-align: center; }
.tr-ring strong { color: #fff; font-size: 2.2rem; line-height: 1; }
.tr-ring strong.sm { font-size: 1.3rem; }
.tr-ring span { font-size: .8rem; margin-top: 4px; }
.tr-ring.sm { width: 110px; height: 110px; margin: 0 auto 12px; background: conic-gradient(var(--t-green) calc(var(--p) * 1%), var(--t-grey) 0); }
.tr-ring.sm > div { width: 86px; height: 86px; background: #fff; }
.tr-ring.sm strong { color: var(--t-ink); font-size: 1.5rem; }
.tr-main { flex: 1; min-width: 260px; }
.tr-main > small { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .55); }
.tr-who { margin: 0 0 14px; }
.tr-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tr-stats div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 8px 14px; min-width: 92px; }
.tr-stats b { display: block; color: #fff; font-size: 1.15rem; }
.tr-stats span { font-size: .76rem; }
.tr-stats .g b { color: #4ADE80; }
.tr-stats .r b { color: #FB7185; }
.tr-stats .p b { color: #C4B5FD; }
.tr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tr-actions .tbtn { padding: .7rem 1.1rem; font-size: .92rem; }
.tr-body { padding: 30px 0 64px; background: var(--t-grey); }
.tr-review { max-width: 860px; }
.tr-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-review-head h2 { margin: 0; font-size: 1.3rem; }
.tr-filter { display: inline-flex; background: #fff; border: 1px solid var(--t-line); border-radius: 10px; padding: 4px; flex-wrap: wrap; }
.tr-filter button { border: 0; background: none; font: inherit; font-size: .84rem; font-weight: 700; color: var(--t-text); padding: .35rem .75rem; border-radius: 7px; cursor: pointer; }
.tr-filter button.active { background: var(--t-dark); color: #fff; }
.tr-feedback { background: #F0F6FF; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; color: #1E3A6B; }
.tr-q { background: #fff; border: 1px solid var(--t-line); border-left: 4px solid var(--t-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.tr-q.right { border-left-color: var(--t-green); }
.tr-q.wrong { border-left-color: var(--t-red); }
.tr-q-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tr-q-head .no { font-weight: 800; font-size: .86rem; color: var(--t-muted); }
.tr-q-head .st { font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 6px; background: var(--t-grey); color: var(--t-muted); }
.tr-q-head .st.g { background: var(--t-green-soft); color: var(--t-green); }
.tr-q-head .st.r { background: var(--t-red-soft); color: var(--t-red); }
.tr-q-text { color: var(--t-ink); font-weight: 600; margin-bottom: 10px; white-space: pre-line; }
.tr-q-img { max-width: 100%; border-radius: 10px; margin-bottom: 10px; }
.tr-opts { display: grid; gap: 6px; }
.tr-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--t-line); border-radius: 9px; font-size: .94rem; }
.tr-opt .l { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #CBD0D8; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.tr-opt em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--t-muted); }
.tr-opt.right { border-color: var(--t-green); background: var(--t-green-soft); }
.tr-opt.right .l { background: var(--t-green); border-color: var(--t-green); color: #fff; }
.tr-opt.wrong { border-color: var(--t-red); background: var(--t-red-soft); }
.tr-opt.wrong .l { background: var(--t-red); border-color: var(--t-red); color: #fff; }
.tr-opt.mine { border-color: var(--t-purple); background: var(--t-purple-soft); }
.tr-written { background: var(--t-grey); border-radius: 9px; padding: 10px 12px; white-space: pre-wrap; }
.tr-explain { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #F0F6FF; color: #1E3A6B; font-size: .9rem; border-left: 3px solid #1D64C8; }
.tr-explain b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.tr-pop { position: fixed; inset: 0; z-index: 120; background: rgba(11, 15, 25, .6); display: grid; place-items: center; padding: 16px; }
.tr-pop-box { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.tr-pop-box h2 { margin: 0 0 6px; font-size: 1.35rem; }
.tr-pop-box p { margin: 0 0 16px; color: var(--t-muted); }
.tr-pop-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.tr-pop-stats div { background: var(--t-grey); border-radius: 10px; padding: 10px 6px; }
.tr-pop-stats b { display: block; font-size: 1.25rem; color: var(--t-ink); }
.tr-pop-stats .g b { color: var(--t-green); }
.tr-pop-stats .r b { color: var(--t-red); }
.tr-pop-stats small { font-size: .74rem; color: var(--t-muted); }
.tr-pop-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tr-pop-act .tbtn { padding: .7rem 1.1rem; font-size: .92rem; }
.tr-pop-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--t-grey); display: grid; place-items: center; cursor: pointer; color: var(--t-muted); }
.tr-pop-x .icon { width: 16px; height: 16px; }

/* Leaderboard */
.lb-hero { text-align: center; padding-bottom: 0; overflow: hidden; }
.lb-hero .tl-crumbs { justify-content: center; }
.lb-hero h1 { margin-top: 12px; }
.lb-hero > .container > p { margin: 0 0 14px; }
.lb-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lb-chips span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: .45rem .8rem; font-size: .86rem; color: #fff; }
.lb-chips .icon { width: 16px; height: 16px; color: #FBBF24; }
.lb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 30px; }
.lb-step { width: 180px; display: flex; flex-direction: column; align-items: center; }
.lb-step .av { position: relative; width: 66px; height: 66px; border-radius: 50%; background: #fff; color: var(--t-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; border: 3px solid #C0C6D0; }
.lb-step .av b { position: absolute; bottom: -6px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: #C0C6D0; color: var(--t-dark); font-size: .75rem; display: grid; place-items: center; border: 2px solid var(--t-dark); }
.lb-step strong { color: #fff; margin-top: 10px; font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-step small { font-size: .78rem; margin-bottom: 10px; }
.lb-step .block { width: 100%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: rgba(255, 255, 255, .85); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border-radius: 12px 12px 0 0; }
.lb-step.p1 .block { height: 130px; background: linear-gradient(180deg, rgba(251, 191, 36, .45), rgba(251, 191, 36, .08)); }
.lb-step.p2 .block { height: 96px; }
.lb-step.p3 .block { height: 72px; background: linear-gradient(180deg, rgba(217, 119, 6, .35), rgba(217, 119, 6, .06)); }
.lb-step.p1 .av { width: 80px; height: 80px; border-color: #FBBF24; }
.lb-step.p1 .av b { background: #FBBF24; }
.lb-step.p3 .av { border-color: #D97706; }
.lb-step.p3 .av b { background: #D97706; color: #fff; }
.lb-step.me strong { color: #FBBF24; }
.lb-table-wrap { background: #fff; border: 1px solid var(--t-line); border-radius: 14px; overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lb-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--t-muted); padding: 12px 16px; border-bottom: 1px solid var(--t-line); background: var(--t-grey); }
.lb-table td { padding: 11px 16px; border-bottom: 1px solid var(--t-line); vertical-align: middle; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table td small { display: block; color: var(--t-muted); font-size: .78rem; }
.lb-table tr.me td { background: #FFF8E6; }
.lb-table .nowrap { white-space: nowrap; }
.lb-rank { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--t-grey); font-weight: 800; color: var(--t-ink); padding: 0 6px; }
.lb-rank.m1 { background: #FBBF24; }
.lb-rank.m2 { background: #D7DBE2; }
.lb-rank.m3 { background: #F3B67A; }
.lb-you { font-style: normal; font-size: .7rem; font-weight: 700; background: var(--t-purple); color: #fff; padding: .1rem .4rem; border-radius: 4px; margin-left: 4px; }
.lb-empty { text-align: center; color: var(--t-muted); padding: 3rem 1rem !important; }
.lb-note { font-size: .82rem; color: var(--t-muted); text-align: center; margin: 14px 0; }
.lb-act { text-align: center; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .tr-grid { gap: 20px; justify-content: center; text-align: center; }
  .tr-stats, .tr-actions { justify-content: center; }
  .tr-ring { width: 140px; height: 140px; }
  .tr-ring > div { width: 112px; height: 112px; }
  .lb-step { width: 31%; }
  .lb-step .av { width: 52px; height: 52px; font-size: .95rem; }
  .lb-step.p1 .av { width: 62px; height: 62px; }
  .lb-step small { font-size: .7rem; }
  .lb-table .hide-sm { display: none; }
  .lb-table th, .lb-table td { padding: 10px; }
}

/* =================== Phase 5: MCQ practice builder =================== */
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tp-main { min-width: 0; }
.tp-step { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-r); padding: 20px 22px; margin-bottom: 16px; }
.tp-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin: 0 0 14px; }
.tp-step h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--t-purple); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.tp-step-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-step-head h2 { margin-bottom: 6px; }
.tp-quick { display: flex; gap: 6px; }
.tp-quick button { border: 1px solid var(--t-line); background: #fff; border-radius: 8px; padding: .3rem .7rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--t-text); }
.tp-quick button:hover { border-color: var(--t-purple); color: var(--t-purple); }
.tp-hint { font-size: .84rem; color: var(--t-muted); margin: 0 0 12px; }
.tp-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tp-track { position: relative; cursor: pointer; }
.tp-track input, .tp-mode input, .tp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tp-track > span { display: block; padding: 14px 16px; border: 1.5px solid var(--t-line); border-radius: 12px; transition: border-color .15s, background .15s; }
.tp-track strong { display: block; color: var(--t-ink); }
.tp-track small { color: var(--t-muted); font-size: .8rem; }
.tp-track input:checked + span { border-color: var(--t-purple); background: var(--t-purple-soft); }
.tp-track input:focus-visible + span, .tp-mode input:focus-visible + .ic { outline: 2px solid var(--t-purple); outline-offset: 2px; }
.tp-subj { border: 1px solid var(--t-line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.tp-subj summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; background: var(--t-grey); }
.tp-subj summary::-webkit-details-marker { display: none; }
.tp-subj summary strong { flex: 1; color: var(--t-ink); font-size: .95rem; }
.tp-subj summary small { color: var(--t-muted); font-size: .78rem; }
.tp-subj .caret { width: 16px; height: 16px; color: var(--t-muted); transition: transform .2s; }
.tp-subj[open] .caret { transform: rotate(180deg); }
.tp-check input, .tp-topic input { position: absolute; opacity: 0; pointer-events: none; }
.tp-check { display: inline-flex; cursor: pointer; }
.tp-check span, .tp-topic .box { width: 20px; height: 20px; border: 1.5px solid #B9BEC8; border-radius: 5px; background: #fff; display: grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.tp-check input:checked + span, .tp-topic input:checked + .box { background: var(--t-purple); border-color: var(--t-purple); }
.tp-check input:checked + span::after, .tp-topic input:checked + .box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.tp-check input:indeterminate + span { background: var(--t-purple); border-color: var(--t-purple); }
.tp-check input:indeterminate + span::after { content: ""; width: 10px; height: 2px; background: #fff; }
.tp-topics { padding: 6px 14px 10px 44px; display: grid; gap: 2px; }
.tp-topic { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: .92rem; }
.tp-topic .t { flex: 1; }
.tp-topic b { font-size: .76rem; color: var(--t-muted); background: var(--t-grey); border-radius: 20px; padding: .05rem .5rem; }
.tp-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 18px; }
.tp-range label, .tp-field label, .tp-field .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--t-ink); margin-bottom: 8px; }
.tp-range label b { color: var(--t-purple); }
.tp-range input[type=range] { width: 100%; accent-color: var(--t-purple); }
.tp-range small { display: block; font-size: .78rem; color: var(--t-muted); margin-top: 4px; }
.tp-field .select { width: 100%; height: 44px; border-radius: 10px; }
.tp-seg { display: inline-flex; background: var(--t-grey); border-radius: 10px; padding: 4px; width: 100%; }
.tp-seg label { flex: 1; cursor: pointer; }
.tp-seg span { display: block; text-align: center; padding: .5rem; border-radius: 7px; font-weight: 700; font-size: .88rem; color: var(--t-text); }
.tp-seg input:checked + span { background: #fff; color: var(--t-ink); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
.tp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-mode { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--t-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tp-mode:has(input:checked) { border-color: var(--t-purple); background: var(--t-purple-soft); }
.tp-mode .ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--t-purple); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--t-line); }
.tp-mode .ic .icon { width: 19px; height: 19px; }
.tp-mode strong { display: block; color: var(--t-ink); }
.tp-mode small { display: block; color: var(--t-muted); font-size: .82rem; line-height: 1.45; }
.tp-side { position: sticky; top: 84px; }
.tp-sum { background: var(--t-dark); color: rgba(255, 255, 255, .75); border-radius: 16px; padding: 20px; }
.tp-sum h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.tp-sum ul { list-style: none; margin: 0 0 16px; padding: 0; }
.tp-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.tp-sum li b { color: #fff; text-align: right; }
.tp-go { width: 100%; height: 50px; }
.tp-note { font-size: .78rem; margin: 10px 0 0; text-align: center; }
.tp-recent { background: #fff; border: 1px solid var(--t-line); border-radius: 14px; padding: 16px; margin-top: 14px; }
.tp-recent h3 { font-size: .98rem; margin: 0 0 8px; }
.tp-recent a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--t-line); color: inherit; }
.tp-recent a:first-of-type { border-top: 0; }
.tp-recent strong { display: block; font-size: .88rem; color: var(--t-ink); }
.tp-recent small { font-size: .76rem; color: var(--t-muted); }
.tp-recent b { font-size: .86rem; color: var(--t-purple); white-space: nowrap; }
.tp-empty { background: #fff; border: 1px solid var(--t-line); border-radius: 14px; text-align: center; padding: 48px 20px; }
@media (max-width: 1024px) { .tp-grid { grid-template-columns: 1fr; } .tp-side { position: static; } }
@media (max-width: 640px) { .tp-tracks { grid-template-columns: 1fr 1fr; } .tp-track > span { padding: 12px; } .tp-sets, .tp-modes { grid-template-columns: 1fr; } .tp-step { padding: 16px; } .tp-topics { padding-left: 14px; } }

/* =================== Phase 6: shop =================== */
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-bottom: 26px; }
.ts-stock { display: inline-flex; align-items: center; gap: .35rem; height: 44px; padding: 0 14px; border: 1px solid var(--t-line); border-radius: 10px; background: #fff; font-weight: 600; font-size: .88rem; color: var(--t-text); }
.ts-stock .icon { width: 16px; height: 16px; }
.ts-stock.active { border-color: var(--t-green); color: var(--t-green); background: var(--t-green-soft); }
.ts-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.ts-promise > div { display: flex; gap: 12px; align-items: flex-start; background: var(--t-grey); border-radius: 12px; padding: 16px; }
.ts-promise .icon { width: 26px; height: 26px; color: var(--t-red); }
.ts-promise strong { display: block; color: var(--t-ink); font-size: .95rem; }
.ts-promise small { color: var(--t-muted); font-size: .82rem; }
.tb-wrap { padding: 26px 0 50px; }
.tb-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; margin-top: 18px; align-items: start; }
.tb-media { position: sticky; top: 84px; }
.tb-cover { border-radius: 14px; overflow: hidden; background: var(--t-grey); padding: 22px; }
.tb-peek { width: 100%; margin-top: 12px; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-tags span { font-size: .76rem; font-weight: 700; background: var(--t-grey); color: var(--t-text); border-radius: 6px; padding: .2rem .55rem; }
.tb-tags span:first-child { background: var(--t-red-soft); color: var(--t-red); }
.tb-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 6px; line-height: 1.3; }
.tb-sub { color: var(--t-muted); font-size: 1.05rem; margin: 0 0 4px; }
.tb-by { color: var(--t-muted); margin: 0 0 16px; }
.tb-buy { border: 1px solid var(--t-line); border-radius: 16px; padding: 20px; background: #fff; }
.tb-stock { margin: -4px 0 14px; font-size: .9rem; font-weight: 600; }
.tb-stock .ok { color: var(--t-green); display: inline-flex; align-items: center; gap: .3rem; }
.tb-stock .ok .icon { width: 16px; height: 16px; }
.tb-stock .low { color: #B7791F; }
.tb-stock .out { color: var(--t-red); }
.tb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tb-actions .tbtn { flex: 1; min-width: 160px; }
.tb-now { width: 100%; }
.tb-perks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--t-line); display: grid; gap: 9px; }
.tb-perks li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.tb-perks .icon { width: 18px; height: 18px; color: var(--t-red); margin-top: .15rem; }
.tb-perks b { color: var(--t-ink); }
.tb-bundle { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--t-green-soft); }
.tb-bundle > .icon { width: 22px; height: 22px; color: var(--t-green); }
.tb-bundle strong { display: block; color: var(--t-ink); }
.tb-bundle a { display: block; color: var(--t-green-2); font-weight: 600; font-size: .9rem; }
.tb-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 30px; align-items: start; }
.tb-specs dl { margin: 0; }
.tb-specs dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--t-line); font-size: .9rem; }
.tb-specs dl > div:last-child { border-bottom: 0; }
.tb-specs dt { color: var(--t-muted); }
.tb-specs dd { margin: 0; color: var(--t-ink); font-weight: 600; text-align: right; }
.tsec-grey { background: var(--t-grey); }
.tb-modal { position: fixed; inset: 0; z-index: 130; background: rgba(11, 15, 25, .7); display: grid; place-items: center; padding: 16px; }
.tb-modal-box { width: 100%; max-width: 900px; height: min(88vh, 900px); background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tb-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--t-line); }
.tb-modal-head button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--t-grey); cursor: pointer; display: grid; place-items: center; }
.tb-modal-head .icon { width: 16px; height: 16px; }
.tb-modal-box iframe { flex: 1; width: 100%; border: 0; }
.tb-modal-img { flex: 1; overflow: auto; text-align: center; background: var(--t-grey); }
.tb-modal-img img { max-width: 100%; }
@media (max-width: 1024px) { .tb-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 26px; } .tb-body { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tb-grid { grid-template-columns: 1fr; }
  .tb-media { position: static; max-width: 320px; margin: 0 auto; width: 100%; }
  .ts-promise { grid-template-columns: 1fr; }
  .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tl-tools .ts-stock { flex: 1; justify-content: center; }
}
@media (max-width: 760px) { .tl-tools .tl-search { max-width: none; flex-basis: 100%; } .tl-tools .tl-count { margin-left: 0; } }
@media (max-width: 760px) { .tl-tools .tl-search { max-width: none; flex-basis: 100%; } .tl-tools .tl-count { margin-left: 0; } }

/* =====================================================================
   Humanize pass: fewer decorative effects, plainer surfaces, content first.
   Flat cards with a hairline border, smaller radius, no glow or lift,
   left-aligned headings, real schedules instead of icon grids.
   ===================================================================== */
:root { --t-r: 8px; --t-r-sm: 6px; --t-shadow: none; --t-shadow-hover: 0 2px 0 rgba(17, 24, 39, .06); }
.th-hero::after { display: none; }
.th-hero { padding: 44px 0 48px; }
.th-hero h1 .accent-word { color: #ff7a7c; }
.tbtn { border-radius: 6px; }
.tbtn:hover { transform: none; }
.cc, .tc-card, .ta-card, .tc-block, .tp-step, .tb-buy, .lb-table-wrap, .tr-q, .tr-pop-box { box-shadow: none !important; }
.cc { border-radius: 8px; }
.cc:hover { transform: none; border-color: #c9ced6; }
.tc-card, .ta-card { border-radius: 10px; }
.tl-chips a { border-radius: 6px; }
.tl-chips a b { border-radius: 4px; }
.tbtn-ghost { background: transparent; }
.tn-float-call { box-shadow: none; }
.tn-float-call:hover { transform: none; }
.thead-c { align-items: flex-start; text-align: left; }

.hm-kicker { color: rgba(255, 255, 255, .62); font-size: .95rem; margin: 0 0 10px; }
.hm-facts { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.hm-facts p { margin: 0 0 4px; }
.hm-facts a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.hm-facts a:hover { text-decoration-color: #fff; }

.hm-notice { border-bottom: 1px solid var(--t-line); background: #fffaf0; }
.hm-notice-in { display: flex; align-items: center; gap: 16px; min-height: 48px; font-size: .9rem; }
.hm-notice-in > strong { color: var(--t-red); flex-shrink: 0; }
.hm-notice-in ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex: 1; min-width: 0; overflow: hidden; }
.hm-notice-in li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.hm-notice-in li a { color: var(--t-text); }
.hm-notice-in li a:hover { color: var(--t-red); }
.hm-more { font-weight: 600; font-size: .88rem; color: var(--t-red); white-space: nowrap; }
.hm-more:hover { text-decoration: underline; }

.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--t-line); padding-bottom: 10px; }
.hm-head h2, .hm-h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 0; font-weight: 700; }
.hm-head a { font-weight: 600; font-size: .92rem; color: var(--t-red); }
.hm-head a:hover { text-decoration: underline; }
.hm-h2 { margin-bottom: 14px; }

.hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-cats a { display: block; padding: 14px 16px; border: 1px solid var(--t-line); border-left: 3px solid var(--c); border-radius: 6px; background: #fff; color: inherit; }
.hm-cats a:hover { background: var(--t-grey); }
.hm-cats strong { display: block; color: var(--t-ink); font-size: .96rem; line-height: 1.4; }
.hm-cats small { color: var(--t-muted); font-size: .8rem; }

.hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hm-rows { list-style: none; margin: 0 0 12px; padding: 0; }
.hm-rows li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--t-line); }
.hm-rows li:first-child { border-top: 1px solid var(--t-line); }
.hm-rows .d { width: 52px; text-align: center; font-size: .76rem; color: var(--t-muted); line-height: 1.2; flex-shrink: 0; }
.hm-rows .d b { display: block; font-size: 1.3rem; color: var(--t-ink); }
.hm-rows a { flex: 1; min-width: 0; color: inherit; }
.hm-rows a:hover strong { color: var(--t-red); }
.hm-rows strong { display: block; color: var(--t-ink); font-weight: 600; }
.hm-rows small { color: var(--t-muted); font-size: .84rem; }

.hm-try { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hm-try-copy p { color: var(--t-text); margin: 0 0 18px; max-width: 460px; }
.hm-q { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 20px; }
.hm-q > small { color: var(--t-muted); font-size: .8rem; }
.hm-q .q { font-weight: 600; color: var(--t-ink); font-size: 1.05rem; margin: 6px 0 14px; }
.hm-q .opts { display: grid; gap: 8px; }
.hm-q button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 6px; background: #fff; font: inherit; color: var(--t-ink); cursor: pointer; }
.hm-q button span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #c9ced6; display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.hm-q button:hover { border-color: #9aa1ad; }
.hm-q button.right { border-color: var(--t-green); background: var(--t-green-soft); }
.hm-q button.right span { background: var(--t-green); border-color: var(--t-green); color: #fff; }
.hm-q button.wrong { border-color: var(--t-red); background: var(--t-red-soft); }
.hm-q button.wrong span { background: var(--t-red); border-color: var(--t-red); color: #fff; }
.hm-q button:disabled { cursor: default; }
.hm-q .ex { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--t-line); font-size: .92rem; color: var(--t-text); }

.hm-note { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hm-note p { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.75; color: var(--t-text); max-width: 560px; }
.hm-note .sign { font-size: .9rem; color: var(--t-muted); font-style: italic; }
.hm-note ol { margin: 6px 0 0; padding-left: 1.3rem; display: grid; gap: 14px; }
.hm-note li { padding-left: 4px; color: var(--t-ink); line-height: 1.6; }
.hm-note li::marker { color: var(--t-red); font-weight: 700; }

.hm-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--t-line); }
.hm-quotes figure { margin: 0; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--t-line); }
.hm-quotes figure:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--t-line); }
.hm-quotes blockquote { margin: 0 0 14px; color: var(--t-ink); line-height: 1.7; }
.hm-quotes figcaption { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--t-muted); }
.hm-quotes figcaption img, .hm-quotes .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hm-quotes .av { background: var(--t-grey); display: grid; place-items: center; font-weight: 700; color: var(--t-ink); }
.hm-quotes figcaption strong { display: block; color: var(--t-ink); font-size: .92rem; }

.hm-teachers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; }
.hm-teachers > * { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.hm-teachers img, .hm-teachers .av { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; object-position: top; flex-shrink: 0; }
.hm-teachers .av { background: #fff; border: 1px solid var(--t-line); display: grid; place-items: center; font-weight: 700; }
.hm-teachers strong { display: block; color: var(--t-ink); }
.hm-teachers em { display: block; font-style: normal; color: var(--t-red); font-size: .88rem; }
.hm-teachers small { color: var(--t-muted); font-size: .82rem; }

.hm-app { border-top: 1px solid var(--t-line); }
.hm-app-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.hm-app p { margin: 0; color: var(--t-text); }
.hm-app strong { color: var(--t-ink); margin-right: 6px; }

@media (max-width: 1024px) {
  .hm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-quotes { grid-template-columns: 1fr 1fr; }
  .hm-quotes figure:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .hm-quotes figure:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--t-line); }
}
@media (max-width: 760px) {
  .hm-cats { grid-template-columns: 1fr 1fr; }
  .hm-two, .hm-try, .hm-note, .hm-teachers { grid-template-columns: 1fr; gap: 28px; }
  .hm-quotes { grid-template-columns: 1fr; }
  .hm-quotes figure, .hm-quotes figure:nth-child(2n) { padding-left: 0; border-left: 0; padding-right: 0; }
  .hm-notice-in ul { display: block; }
  .hm-notice-in li { max-width: none; }
  .hm-notice-in li + li { display: none; }
  .hm-app-in { flex-direction: column; align-items: flex-start; }
}

/* Course detail and book pages: sections split by rules, not boxed cards. */
.tc-main .tc-block, .tb-main .tc-block { border: 0; border-bottom: 1px solid var(--t-line); border-radius: 0; padding: 26px 0; margin: 0; background: transparent; }
.tc-main .tc-block:last-child, .tb-main .tc-block:last-child { border-bottom: 0; }
.tc-main { padding-top: 6px; }
.tc-clamp:not(.open)::after { background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.tc-learn .icon, .tc-feat .icon { color: var(--t-ink); opacity: .55; }
.tc-acc details { border-radius: 6px; }
.tc-acc summary { background: #fff; }
.tc-acc details[open] summary { border-bottom: 1px solid var(--t-line); }
.tc-help { background: var(--t-grey); }
.tb-specs .tc-block { box-shadow: none; }

/* =====================================================================
   Bangla type and hero cards.
   Headings: Bornomala (bold, very readable in Bangla).
   Body and headings: Bornomala for Bangla, Plus Jakarta Sans for Latin.
   ===================================================================== */
:root {
  --font: "Bornomala", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bn: "Bornomala", "Plus Jakarta Sans", sans-serif;
  --bn-head: "Bornomala", "Plus Jakarta Sans", sans-serif;
}
body.lang-bn { font-family: "Bornomala", "Plus Jakarta Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.7; }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn .hm-h2, body.lang-bn .hb-title, body.lang-bn .tn-brand-name { font-family: var(--bn-head); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
body.lang-bn h1 { font-weight: 800; }
body.lang-bn .tbtn, body.lang-bn .tn-nav .nav-link { font-weight: 600; }

/* Hero */
.th-hero { background: #0B0F19; padding: 52px 0 56px; }
.th-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 44px; }
.th-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.18; margin-bottom: 18px; }
body.lang-bn .th-hero h1 { line-height: 1.22; }
.th-hero h1 .accent-word { font-style: normal; color: #FFC83D; position: relative; white-space: nowrap; }
.th-hero h1 .accent-word::after { display: block; content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 60 6, 120 4, 180 9 S 270 16, 297 8' fill='none' stroke='%23E5383B' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; z-index: -1; }
.th-hero h1 .accent-word { z-index: 0; }
.th-lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 540px; }
.hm-kicker { color: #FFC83D; font-weight: 600; letter-spacing: .01em; }

/* Hero slide cards */
.hb { position: relative; }
.hb-track { position: relative; height: 400px; }
.hb-card { position: absolute; inset: 0; display: flex; border-radius: 18px; overflow: hidden; background: var(--c, #C62F33); color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hb-card.is-active { opacity: 1; visibility: visible; }
.hb-card:hover { color: #fff; }
.hb-text { position: relative; z-index: 2; flex: 0 0 57%; max-width: 57%; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 30px 6px 30px 32px; }
.hb-tag { align-self: flex-start; background: #FFC83D; color: #2A1B00; font-weight: 700; font-size: .86rem; padding: .28rem .7rem; border-radius: 4px; transform: rotate(-2deg); }
.hb-title { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.22; font-weight: 800; color: #fff; }
.hb-sub { font-size: .98rem; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hb-meta { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .95); padding: .35rem .7rem; background: rgba(0, 0, 0, .18); border-radius: 6px; align-self: flex-start; }
.hb-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hb-price { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hb-price del { font-size: .95rem; font-weight: 500; opacity: .7; margin-left: 8px; }
.hb-btn { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--c, #C62F33); font-weight: 700; padding: .7rem 1.1rem; border-radius: 6px; }
.hb-btn .icon { width: 17px; height: 17px; transition: transform .2s; }
.hb-card:hover .hb-btn .icon { transform: translateX(3px); }
.hb-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 41%; z-index: 1; }
.hb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 52% 0 0 52% / 100% 0 0 100%; }
.hb-photo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 46%; border-radius: 52% 0 0 52% / 100% 0 0 100%; background: rgba(255, 255, 255, .12); z-index: -1; }
.hb-image img { width: 100%; height: 100%; object-fit: cover; }
.hb-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.hb-nav > button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hb-nav > button:hover { background: rgba(255, 255, 255, .1); }
.hb-nav > button .icon { width: 16px; height: 16px; }
.hb-dots { display: flex; gap: 6px; }
.hb-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s, background .3s; }
.hb-dots button.is-active { width: 26px; background: #FFC83D; }

@media (max-width: 1024px) {
  .th-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hb-track { height: 360px; }
}
@media (max-width: 640px) {
  .th-hero { padding: 30px 0 34px; }
  .th-hero h1 { font-size: 2.1rem; }
  .hb-track { height: 430px; }
  .hb-card { flex-direction: column; }
  .hb-text { flex: 1 1 auto; padding: 22px 20px 20px; gap: 10px; justify-content: flex-end; }
  .hb-photo { left: 0; width: 100%; height: 42%; bottom: auto; }
  .hb-photo img { border-radius: 0 0 50% 50% / 0 0 22% 22%; }
  .hb-photo::before { display: none; }
  .hb-sub { display: none; }
  .hb-title { font-size: 1.45rem; }
  .hb-price { font-size: 1.4rem; }
}

.hb-card .hb-title { display: block; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.22; font-weight: 800; color: #fff; margin: 0; }
.hb-card .hb-sub { display: block; }
.th-hero h1 .accent-word::after { bottom: -.08em; height: .3em; }
@media (max-width: 640px) { .hb-text { max-width: none; } .hb-card .hb-title { font-size: 1.45rem; } }
.th-hero h1 .accent-word::after { bottom: .02em; height: .22em; }

/* Listing toolbar: chips wrap on desktop, scroll with an edge fade on phones; select text not clipped. */
.tl-chips { flex-wrap: wrap; overflow: visible; gap: 8px; padding: 0 0 16px; }
.tl-chips a { padding: .45rem .85rem; font-size: .9rem; line-height: 1.4; gap: 8px; }
.tl-chips a b { font-size: .74rem; padding: .05rem .4rem; line-height: 1.4; }
.tl-tools { align-items: center; }
.tl-search { height: 46px; }
.tl-search input { line-height: 1.4; padding: 0; height: 100%; }
.tl-sort .select, .tl-tools select { height: 46px; line-height: 1.4; padding: 0 2.4rem 0 .9rem; font-size: .92rem; font-family: inherit; border: 1px solid var(--t-line); border-radius: 6px; background-color: #fff; min-width: 170px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; cursor: pointer; }
.tl-count { white-space: nowrap; }
@media (max-width: 760px) {
  .tl-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 14px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tl-sort { flex: 1; }
  .tl-sort .select { width: 100%; }
}
.ts-stock { white-space: nowrap; } @media (max-width: 760px) { .tl-tools .ts-stock { flex: 0 0 auto; padding: 0 12px; } }

/* =====================================================================
   Light hero: cream background, big red Bangla headline, starred list
   of open courses, original line illustration on the right.
   ===================================================================== */
.hv { background: #FBF3D9; padding: 56px 0 50px; overflow: hidden; }
.hv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hv-kicker { color: #1F2A6B; font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.hv h1 { color: #D42A2F; font-size: clamp(2.4rem, 4.8vw, 4rem); line-height: 1.15; font-weight: 800; margin: 0 0 24px; letter-spacing: -.005em; }
body.lang-bn .hv h1 { line-height: 1.2; }
.hv h1 .accent-word { font-style: normal; color: #1F2A6B; position: relative; white-space: nowrap; z-index: 0; }
.hv h1 .accent-word::after { display: block; content: ""; position: absolute; left: -1%; right: -1%; bottom: .06em; height: .28em; z-index: -1; background: #FFC83D; border-radius: 3px; transform: skewX(-8deg); opacity: .9; }
.hv-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.hv-list li { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 600; color: #141A33; }
.hv-list svg { width: 20px; height: 20px; fill: #2453D6; flex-shrink: 0; }
.hv-list a { color: inherit; border-bottom: 1px solid transparent; }
.hv-list a:hover { color: #D42A2F; border-bottom-color: currentColor; }
.hv-lead { font-size: 1.12rem; color: #3a3f55; max-width: 540px; margin: 0 0 24px; }
.hv .th-actions { gap: 12px; }
.hv .tbtn-ghostdark { background: transparent; border-color: #1F2A6B; color: #1F2A6B; }
.hv .tbtn-ghostdark:hover { background: #1F2A6B; color: #fff; }
.hv-call { margin: 18px 0 0; font-size: .95rem; color: #3a3f55; }
.hv-call a { color: #1F2A6B; font-weight: 700; }
.hv-media { display: flex; justify-content: center; }
.hv-art { width: 100%; max-width: 560px; height: auto; }

/* Offer cards now sit in their own band under the hero */
.hv-offers { background: #0B0F19; padding: 34px 0 26px; }
.hv-offers .hb-track { height: 330px; }
.hv-offers .hb-text { flex-basis: 60%; max-width: 60%; padding-left: 40px; }
.hv-offers .hb-photo { width: 38%; }

@media (max-width: 1024px) {
  .hv-grid { grid-template-columns: 1fr; gap: 20px; }
  .hv-media { order: -1; }
  .hv-art { max-width: 420px; }
}
@media (max-width: 640px) {
  .hv { padding: 26px 0 32px; }
  .hv h1 { font-size: 2.2rem; margin-bottom: 18px; }
  .hv-list li { font-size: 1rem; }
  .hv-art { max-width: 300px; }
  .hv .th-actions .tbtn { width: 100%; }
  .hv-offers .hb-track { height: 430px; }
  .hv-offers .hb-text { max-width: none; padding-left: 20px; }
  .hv-offers .hb-photo { width: 100%; }
}
.hv-offers { background: #fff; padding: 30px 0 18px; } .hv-offers .hb-nav > button { border-color: var(--t-line); color: var(--t-ink); } .hv-offers .hb-nav > button:hover { background: var(--t-grey); } .hv-offers .hb-dots button { background: #d5d9e0; } .hv-offers .hb-dots button.is-active { background: #D42A2F; }

/* Home categories: picture tiles, no coloured edge */
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.hc { display: block; color: inherit; }
.hc-pic { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--t-grey); }
.hc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hc:hover .hc-pic img { transform: scale(1.04); }
.hc-txt { display: block; padding: 10px 2px 0; }
.hc-txt strong { display: block; color: var(--t-ink); font-size: 1.02rem; line-height: 1.4; }
.hc:hover .hc-txt strong { color: var(--t-red); }
.hc-txt small { color: var(--t-muted); font-size: .85rem; }
.hc-soon { margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--t-line); color: var(--t-muted); font-size: .92rem; }
.hc-soon b { color: var(--t-ink); font-weight: 600; }
@media (max-width: 640px) { .hc-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .hc-txt strong { font-size: .94rem; } }

/* Read more: measured height, smooth open and close, soft fade only while closed. */
.rm { position: relative; }
.rm-body { overflow: hidden; transition: max-height .45s cubic-bezier(.2, .7, .2, 1); position: relative; }
.rm-body > :last-child { margin-bottom: 0; }
.rm.is-tall:not(.is-open) .rm-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 55%, #fff 100%); pointer-events: none; }
.rm-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: .5rem 1rem .5rem 1.05rem; border: 1px solid var(--t-line); border-radius: 999px; background: #fff; color: var(--t-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.rm-btn:hover { border-color: var(--t-ink); }
.rm-btn:focus-visible { outline: 2px solid var(--t-red); outline-offset: 2px; }
.rm-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.rm.is-open .rm-btn svg { transform: rotate(180deg); }
.rm [x-cloak] { display: none; }
@media (prefers-reduced-motion: reduce) { .rm-body, .rm-btn svg { transition: none; } }
.tc-card .tc-cta, .tc-card .tc-wa { margin-bottom: 4px; } .tc-card .body h4 { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--t-line); }
.tc-side { margin-top: 30px; top: 90px; } @media (max-width: 1024px) { .tc-side { margin-top: 20px; } }

/* Course header photo: photo on the right, fading into the dark panel behind the text. */
.tc-hero.has-photo { position: relative; isolation: isolate; background: #0B0F19 var(--hero-img) right 30% / cover no-repeat; padding: 48px 0 56px; }
.tc-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 25, .97) 0%, rgba(11, 15, 25, .9) 38%, rgba(11, 15, 25, .55) 68%, rgba(11, 15, 25, .25) 100%), linear-gradient(0deg, rgba(11, 15, 25, .55) 0%, rgba(11, 15, 25, 0) 45%); }
.tc-hero.has-photo h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.tc-hero.has-photo p { color: rgba(255, 255, 255, .86); }
@media (max-width: 760px) { .tc-hero.has-photo { background-position: 70% center; } .tc-hero.has-photo::before { background: linear-gradient(180deg, rgba(11, 15, 25, .78) 0%, rgba(11, 15, 25, .92) 100%); } }

/* =====================================================================
   Coaching/LMS feedback (Oct 2026): brief design system on inner pages.
   Tinted subject panels on course details, teal lecture counts/progress.
   ===================================================================== */
.tc-acc summary { background: var(--teal-soft); color: var(--navy); border-bottom: 1px solid #d4ebe7; }
.tc-acc summary .c { color: var(--teal); font-weight: 600; }
.tc-acc li .lk { color: var(--t-muted); }
.tc-acc li .pv { color: var(--teal); background: var(--teal-soft); }
/* Lavender information cards helper (benefit/info blocks) */
.tc-info-lav { background: var(--lav); border: 1px solid var(--lav-2); border-radius: 12px; padding: 14px 16px; color: var(--lav-ink); }

/* Subject grouping on public course details. */
.tc-subject { margin-bottom: 16px; }
.tc-subject-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--teal-soft); border: 1px solid #cdeae5; border-radius: 10px 10px 0 0; }
.tc-subject-head h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.tc-subject-head span { font-size: .82rem; font-weight: 600; color: var(--teal); }
.tc-subject .tc-acc { border: 1px solid #cdeae5; border-top: 0; border-radius: 0 0 10px 10px; padding: 8px; }

/* =====================================================================
   Publications feedback (Oct 2026): catalog banner, left filter panel,
   subcategory chips and book-card meta/stock states.
   ===================================================================== */
.pub-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 22px 0; }
.pub-banner h1 { color: #fff; margin: 6px 0 2px; font-size: clamp(1.5rem, 3vw, 2rem); }
.pub-banner p { color: rgba(255,255,255,.78); margin: 0; }
.pub-banner .tl-crumbs.light a, .pub-banner .tl-crumbs.light span { color: rgba(255,255,255,.75); }
.pub-banner .tl-crumbs.light a:hover { color: #fff; }

.tl-subchips { margin-top: -4px; }
.tl-subchips a { font-size: .85rem; background: var(--teal-soft); border-color: #cdeae5; color: var(--navy); }
.tl-subchips a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.tp-layout { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.tp-filters { position: sticky; top: calc(var(--header-h, 72px) + 10px); }
.tp-filters details { background: var(--lav); border: 1px solid var(--lav-2); border-radius: 12px; padding: 4px 14px 14px; }
.tp-filters summary { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); padding: 12px 0; cursor: pointer; list-style: none; }
.tp-filters summary::-webkit-details-marker { display: none; }
.tp-filters summary .icon { width: 18px; height: 18px; }
.tp-filter-form { display: flex; flex-direction: column; gap: 12px; }
.tp-fld { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--t-text); }
.tp-fld .select { width: 100%; }
.tp-stock { font-size: .9rem; }
.tp-clear { font-size: .82rem; color: var(--t-red); }

.book-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .74rem; color: var(--t-muted); margin: 2px 0 4px; }
.book-meta .book-type { background: var(--tint-b); color: var(--navy); padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.book-stock { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; margin-bottom: 6px; }
.book-stock .icon { width: 14px; height: 14px; }
.book-stock.in { color: var(--teal); }
.book-stock.low { color: #b7791f; }
.book-stock.out { color: var(--t-red); }
.book-details-link { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--navy); margin-top: 6px; }
.book-details-link .icon { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); }
  .tp-filters { position: static; }
  .tp-filters details:not([open]) summary { margin-bottom: 0; }
}

/* Book details tabs + buy-box refinements (Publications feedback). */
.tb-tabs { margin-top: 20px; }
.tb-tabnav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--t-line); margin-bottom: 16px; }
.tb-tabnav button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--t-muted); cursor: pointer; font-family: inherit; }
.tb-tabnav button:hover { color: var(--navy); }
.tb-tabnav button.active { color: var(--navy); border-bottom-color: var(--t-red); }
.tb-panel { display: none; }
.tb-panel.active { display: block; }
.tb-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tb-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--t-line); }
.tb-dl dt { color: var(--t-muted); font-size: .88rem; }
.tb-dl dd { margin: 0; font-weight: 600; color: var(--t-ink); text-align: right; }
.tb-toc { margin: 0; padding-left: 1.2rem; line-height: 1.9; }
.tb-corrections { list-style: none; margin: 8px 0 0; padding: 0; }
.tb-corrections li { background: var(--tint-d); border: 1px solid #fbe4c6; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.tb-corrections small { color: var(--t-muted); margin-left: 6px; }
.tb-corrections p { margin: 4px 0 0; font-size: .9rem; color: var(--t-text); }
.tb-save { color: var(--teal); font-weight: 600; margin: -4px 0 6px; }
.tb-prenote { background: var(--lav); border: 1px solid var(--lav-2); color: var(--lav-ink); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.tb-stock .pre { color: var(--lav-ink); font-weight: 700; }
.tb-modal-tools { display: flex; gap: 6px; align-items: center; }
.tb-modal-tools button { background: var(--t-grey); border: 1px solid var(--t-line); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.tb-modal-img { overflow: auto; }
.tb-modal-img img, .tb-modal [data-src] { transform-origin: top center; transition: transform .15s; }
@media (max-width: 620px) { .tb-dl { grid-template-columns: 1fr; } }
