/* AssessLearn Pro — main stylesheet */
:root {
  --brand: #0f766e; --brand-600: #0d6b63; --brand-700: #0b5a53; --brand-50: #ecfdf8; --brand-100: #ccfbef;
  --accent: #f59e0b; --accent-dark: #b45309;
  --ink: #16191f; --ink-2: #3a3f47; --muted: #6a6f73; --line: #d9dde3; --line-2: #eceef1;
  --bg: #ffffff; --bg-soft: #f7f8fa; --bg-dark: #12151b;
  --ok: #15803d; --ok-bg: #e8f7ee; --warn: #b45309; --warn-bg: #fff6e5; --err: #b91c1c; --err-bg: #fdecec; --info-bg: #eef4ff; --info: #1d4ed8;
  --star: #e59819; --star-empty: #d5d8dc; --surface: #ffffff; --input-line: #b9bec5; --primary: #0f766e; --primary-hover: #0b5a53;
  color-scheme: light;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 2px 6px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  --font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1280px;
}
:root[data-theme="dark"] {
  --brand: #2dd4bf; --brand-600: #22c3ae; --brand-700: #5eead4; --brand-50: rgba(45,212,191,.10); --brand-100: rgba(45,212,191,.20);
  --ink: #e8eaed; --ink-2: #c3c8cf; --muted: #9aa2ab; --line: #2c333d; --line-2: #222831;
  --bg: #0e1116; --bg-soft: #141920; --bg-dark: #07090c; --surface: #181d25; --input-line: #3a424e;
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.10); --warn: #fbbf24; --warn-bg: rgba(251,191,36,.10); --err: #f87171; --err-bg: rgba(248,113,113,.10); --info-bg: rgba(96,165,250,.10); --info: #93c5fd;
  --star-empty: #3d4550; --primary: #0d9488; --primary-hover: #0f766e;
  --shadow: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --brand: #2dd4bf; --brand-600: #22c3ae; --brand-700: #5eead4; --brand-50: rgba(45,212,191,.10); --brand-100: rgba(45,212,191,.20);
  --ink: #e8eaed; --ink-2: #c3c8cf; --muted: #9aa2ab; --line: #2c333d; --line-2: #222831;
  --bg: #0e1116; --bg-soft: #141920; --bg-dark: #07090c; --surface: #181d25; --input-line: #3a424e;
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.10); --warn: #fbbf24; --warn-bg: rgba(251,191,36,.10); --err: #f87171; --err-bg: rgba(248,113,113,.10); --info-bg: rgba(96,165,250,.10); --info: #93c5fd;
  --star-empty: #3d4550; --primary: #0d9488; --primary-hover: #0f766e;
  --shadow: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
  color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); transition: background .2s, color .2s; font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--bg-soft); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1b1300; }
.btn-accent:hover { background: #e48f05; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { color: var(--err); border-color: #f1c4c4; }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { padding: 6px 12px; font-size: .86rem; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.inline { display: inline; }

.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.form label small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form .check, label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; margin: 0 0 18px; }
legend { font-weight: 800; padding: 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.help { display: block; font-weight: 400; color: var(--muted); font-size: .83rem; margin-top: 4px; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 14px; border: 1px solid transparent; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe6cd; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #f3c7c7; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #cddcff; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f6dfb2; }
.flash-wrap { position: fixed; top: 76px; right: 16px; z-index: 90; width: min(420px, calc(100vw - 32px)); }
.flash-wrap .alert { box-shadow: var(--shadow); animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); vertical-align: middle; text-transform: capitalize; }
.badge-best { background: #fdf0c8; color: #6b4a00; }
.badge-new { background: var(--brand-100); color: var(--brand-700); }
.badge-ok, .badge-published, .badge-paid, .badge-approved { background: var(--ok-bg); color: var(--ok); }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-rejected, .badge-failed, .badge-cancelled, .badge-refunded { background: var(--err-bg); color: var(--err); }
.badge-draft { background: var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); background: var(--surface); font-size: .9rem; }
.pill:hover, .pill.active { border-color: var(--ink); text-decoration: none; }
.pill.active { background: var(--ink); color: var(--bg); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star { width: 14px; height: 14px; display: inline-block; background: var(--star); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.star.s-empty { background: var(--star-empty); }
.star.s-half { background: linear-gradient(90deg, var(--star) 50%, var(--star-empty) 50%); }
.stars-sm .star { width: 12px; height: 12px; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; }
.rating b { color: #8a5a00; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: .88rem; padding: 8px 16px; }
.announce a { color: #ffd27a; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 1px 0 var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none !important; flex: none; }
.brand img.logo-img { height: 36px; width: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-lg { font-size: 1.4rem; }
.brand .pro { color: var(--brand); }
.nav-link { color: var(--ink-2); font-weight: 500; font-size: .93rem; padding: 8px 6px; white-space: nowrap; border: 0; background: none; cursor: pointer; font-family: inherit; }
.nav-link:hover { color: var(--brand); text-decoration: none; }
.header-search { flex: 1; min-width: 160px; position: relative; }
.header-search input { margin: 0; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg-soft); padding: 11px 16px 11px 44px; font-size: .92rem; }
.header-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.icon-btn .icon { width: 22px; height: 22px; }
.count-dot { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 120px; height: 120px; font-size: 2rem; }
.avatar-md { width: 56px; height: 56px; font-size: 1.1rem; }

.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; z-index: 60; }
.dropdown.right .dropdown-menu { left: auto; right: 0; }
.dropdown:hover > .dropdown-menu, .dropdown:focus-within > .dropdown-menu, .dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 18px; color: var(--ink); font: inherit; font-size: .92rem; background: none; border: 0; text-align: left; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.dropdown-menu .sep { border-top: 1px solid var(--line-2); margin: 6px 0; }
.dropdown-menu .head { padding: 10px 18px 12px; display: flex; gap: 12px; align-items: center; }
.dropdown-menu .head b { display: block; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); overflow-y: auto; padding: 18px 0; animation: drawerin .2s ease; }
@keyframes drawerin { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-panel a, .drawer-panel button { display: block; padding: 11px 22px; color: var(--ink); font: inherit; background: none; border: 0; width: 100%; text-align: left; }
.drawer-panel h4 { padding: 12px 22px 4px; margin: 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #0b3d38 0%, #0f766e 55%, #129a8f 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 24px 72px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; }
.hero p.lead { font-size: 1.1rem; opacity: .92; max-width: 560px; }
.hero-search { display: flex; background: var(--surface); border-radius: 999px; padding: 6px; max-width: 560px; margin: 22px 0 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-search input { border: 0; margin: 0; background: transparent; padding: 12px 18px; font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 999px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a { color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 5px 12px; border-radius: 999px; font-size: .85rem; }
.hero-tags a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.hero-art { position: relative; }
.hero-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-card + .hero-card { margin-top: 14px; margin-left: 40px; }
.hero-card .row { display: flex; gap: 12px; align-items: center; }
.hero-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.progress { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.trust { border-bottom: 1px solid var(--line-2); background: var(--bg-soft); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 24px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand); border: 1px solid var(--line); flex: none; }
.trust-item b { display: block; font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head h2 { margin-bottom: 4px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 14px; font-weight: 700; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; font: inherit; font-weight: 700; }
.tabs a.active, .tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- Course cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; color: var(--ink); position: relative; text-decoration: none !important; }
.course-card .thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 10px; position: relative; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.course-card:hover .thumb img, .course-card:hover .thumb .ph { transform: scale(1.04); }
.course-card:hover h3 { color: var(--brand); }
.course-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .by { font-size: .8rem; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .meta { font-size: .78rem; color: var(--muted); margin: 3px 0; }
.course-card .price { font-weight: 800; font-size: 1.02rem; margin-top: 3px; }
.course-card .price s { color: var(--muted); font-weight: 400; font-size: .88rem; margin-left: 6px; }
.course-card .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; color: #fff; transition: transform .3s; position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; bottom: -70px; background: rgba(255,255,255,.12); }
.ph::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 60px; top: -30px; background: rgba(255,255,255,.08); }
.ph .ph-cat { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .9; position: relative; z-index: 1; }
.ph .ph-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph .ph-icon { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; opacity: .9; z-index: 1; }
.ph-0 { background: linear-gradient(135deg, #0f766e, #14b8a6); } .ph-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.ph-2 { background: linear-gradient(135deg, #7c2d12, #f97316); } .ph-3 { background: linear-gradient(135deg, #581c87, #a855f7); }
.ph-4 { background: linear-gradient(135deg, #831843, #ec4899); } .ph-5 { background: linear-gradient(135deg, #14532d, #22c55e); }
.ph-6 { background: linear-gradient(135deg, #713f12, #eab308); } .ph-7 { background: linear-gradient(135deg, #1f2937, #4b5563); }

.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); transition: box-shadow .15s, transform .15s, border-color .15s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; text-decoration: none; }
.cat-tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.cat-tile b { font-size: .95rem; }
.cat-tile span { color: var(--muted); font-size: .8rem; }

/* Program cards (edX style) */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); background: var(--surface); transition: box-shadow .15s; }
.prog-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.prog-card .top { background: var(--bg-dark); color: #fff; padding: 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.prog-card .top::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(245,158,11,.5); }
.prog-card .top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.prog-card .top > * { position: relative; z-index: 1; }
.prog-card .partner { font-size: .8rem; opacity: .85; font-weight: 600; }
.prog-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prog-card h3 { margin: 0; }
.prog-type { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.prog-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }

/* Stats band + CTA */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 16px; }
.stats-band b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--bg-dark); color: #fff; border-radius: 16px; padding: 36px 40px; }
.cta-band p { opacity: .85; margin: 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how-card .num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #1b1300; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.quote-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quote-card p { font-size: .98rem; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0 56px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group h4 { font-size: .95rem; margin: 0 0 10px; }
.filter-group label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: .9rem; margin: 0 0 8px; cursor: pointer; }
.filter-group input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.catalog-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.catalog-bar select { width: auto; margin: 0; }
.list-item { display: grid; grid-template-columns: 260px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-item:hover { text-decoration: none; }
.list-item:hover h3 { color: var(--brand); }
.list-item .thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.list-item p { margin: 0 0 4px; color: var(--ink-2); font-size: .9rem; }
.list-item .price { font-weight: 800; font-size: 1.05rem; text-align: right; }
.list-item .price s { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-weight: 700; padding: 0 8px; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; color: var(--line); margin: 0 auto 12px; display: block; }
.filter-toggle { display: none; }

/* ---------- Course page ---------- */
.course-hero { background: var(--bg-dark); color: #fff; padding: 32px 0 36px; }
.course-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
.crumbs { font-size: .86rem; margin-bottom: 14px; color: #c7cbd1; }
.crumbs a { color: #9ee8dc; font-weight: 600; }
.course-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.course-hero .sub { font-size: 1.12rem; opacity: .92; margin-bottom: 14px; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; align-items: center; }
.course-hero .facts a { color: #9ee8dc; text-decoration: underline; }
.course-hero .rating b { color: #f6c35b; }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 32px 24px 56px; }
.buy-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 90px; margin-top: -270px; }
.buy-card .media { aspect-ratio: 16/9; position: relative; background: #000; }
.buy-card .media img, .buy-card .media .ph { width: 100%; height: 100%; object-fit: cover; }
.buy-card .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-weight: 700; border: 0; cursor: pointer; width: 100%; font: inherit; font-weight: 700; }
.buy-card .play span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.buy-card .play .circle { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.buy-card .inner { padding: 20px; }
.buy-card .big-price { font-size: 1.9rem; font-weight: 800; }
.buy-card .big-price s { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.buy-card .off { color: var(--err); font-weight: 700; font-size: .9rem; }
.buy-card .stack { display: grid; gap: 8px; margin: 14px 0; }
.buy-card ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; display: grid; gap: 8px; }
.buy-card li { display: flex; gap: 10px; align-items: center; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.outcomes li { display: flex; gap: 10px; font-size: .92rem; }
.outcomes .icon { color: var(--brand); margin-top: 3px; }
.curriculum { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.curriculum details { border-bottom: 1px solid var(--line); }
.curriculum details:last-child { border-bottom: 0; }
.curriculum summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg-soft); cursor: pointer; font-weight: 700; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::before { content: "▸"; margin-right: 10px; transition: transform .15s; display: inline-block; }
.curriculum details[open] summary::before { transform: rotate(90deg); }
.curriculum summary span:first-child { flex: 1; }
.curriculum summary small { font-weight: 400; color: var(--muted); }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 40px; font-size: .9rem; }
.lesson-row .t { flex: 1; }
.lesson-row .d { color: var(--muted); font-size: .84rem; }
.lesson-row a { font-weight: 600; }
.prose { font-size: .95rem; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 20px; }
.clamp { max-height: 260px; overflow: hidden; position: relative; }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); }
.clamp.open { max-height: none; }
.clamp.open::after { display: none; }
.instructor-card { display: flex; gap: 18px; align-items: flex-start; }
.instructor-card .stats { font-size: .86rem; color: var(--ink-2); display: grid; gap: 4px; margin: 8px 0; }
.rating-summary { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.rating-summary .big { font-size: 3.4rem; font-weight: 800; color: #8a5a00; line-height: 1; }
.bar-row { display: grid; grid-template-columns: 1fr 90px 44px; gap: 12px; align-items: center; font-size: .85rem; margin-bottom: 6px; }
.bar-row .progress > span { background: #8f949b; }
.review { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.review b { display: block; }
.review p { margin: 6px 0 0; font-size: .92rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { width: 30px; height: 30px; margin: 0; cursor: pointer; background: var(--star-empty); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { background: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 120; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: min(900px, 100%); background: #000; border-radius: var(--radius); overflow: hidden; position: relative; }
.modal-box .head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; background: #111; }
.modal-close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.ratio { aspect-ratio: 16/9; width: 100%; }
.ratio iframe, .ratio video { width: 100%; height: 100%; border: 0; display: block; background: #000; }

/* ---------- Cart / checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding: 28px 0 56px; }
.cart-line { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-line .thumb { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .price { font-weight: 800; color: var(--brand); text-align: right; }
.cart-line .price s { display: block; font-weight: 400; color: var(--muted); }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.summary .total { font-size: 2rem; font-weight: 800; }
.summary .row { display: flex; justify-content: space-between; margin: 6px 0; }
.pay-methods { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; margin: 0 !important; font-weight: 700 !important; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.pay-logo { width: 46px; height: 30px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.pay-bkash { background: #e2136e; } .pay-nagad { background: #ec1c24; } .pay-rocket { background: #8c3494; } .pay-bank { background: #334155; }
.pay-detail { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.pay-detail .num { font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.steps-ol { padding-left: 20px; margin: 8px 0 0; font-size: .9rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table .actions form { display: inline; }

/* ---------- Dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.dash-side { background: var(--bg-dark); color: #c9cdd3; padding: 18px 0; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.dash-side h4 { padding: 14px 22px 6px; margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #7f868f; }
.dash-side a { display: flex; align-items: center; gap: 12px; padding: 10px 22px; color: #d7dbe0; font-size: .92rem; font-weight: 500; }
.dash-side a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.dash-side a.active { background: rgba(20,184,166,.16); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.dash-side .num { margin-left: auto; background: var(--accent); color: #1b1300; border-radius: 10px; font-size: .72rem; font-weight: 800; padding: 1px 7px; }
.dash-main { padding: 28px 32px 56px; background: var(--bg-soft); min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.6rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.6rem; margin-top: 4px; }
.kpi small { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; margin: 0; min-width: 200px; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.chart-bars div { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.chart-bars div:hover { background: var(--brand-700); }
.chart-bars div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .72rem; padding: 3px 7px; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; }
.builder-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.builder-section > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg-soft); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.builder-section > header input { margin: 0; flex: 1; min-width: 180px; font-weight: 700; }
.builder-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.builder-lesson .t { flex: 1; font-weight: 600; min-width: 0; }
.builder-add { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.builder-add input, .builder-add select { width: auto; margin: 0; flex: 1; min-width: 140px; }
.q-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.opt-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.opt-row input[type=text] { margin: 0; }
.opt-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }

/* ---------- Learn player ---------- */
.learn-top { background: var(--bg-dark); color: #fff; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 18px; position: sticky; top: 0; z-index: 40; }
.learn-top a { color: #fff; }
.learn-top .title { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid #3a3f47; padding-left: 16px; }
.learn-top .prog { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.ring { width: 38px; height: 38px; }
.learn { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 60px); }
.learn-main { min-width: 0; }
.stage { background: #000; }
.stage .ratio { max-height: 72vh; aspect-ratio: 16/9; margin: 0 auto; }
.lesson-content { padding: 28px 36px 48px; max-width: 900px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 36px; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.learn-side { border-left: 1px solid var(--line); background: var(--surface); height: calc(100vh - 60px); position: sticky; top: 60px; overflow-y: auto; }
.learn-side h3 { padding: 16px 18px; margin: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.learn-side .sec { padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.learn-side .sec small { display: block; font-weight: 400; color: var(--muted); }
.learn-side a.li { display: flex; gap: 12px; padding: 11px 18px; color: var(--ink); font-size: .88rem; border-bottom: 1px solid var(--line-2); }
.learn-side a.li:hover { background: var(--bg-soft); text-decoration: none; }
.learn-side a.li.current { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.learn-side .tick { width: 18px; height: 18px; border-radius: 4px; border: 2px solid #9aa0a6; flex: none; display: grid; place-items: center; margin-top: 1px; }
.learn-side .tick.done { background: var(--primary); border-color: var(--primary); color: #fff; }
.learn-side .tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.learn-side .li small { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-top: 2px; }
.text-stage { background: linear-gradient(135deg, #0b3d38, #0f766e); color: #fff; padding: 46px 36px; }
.text-stage h1 { margin: 0; font-size: 1.7rem; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.quiz-q h4 { margin: 0 0 12px; font-size: 1rem; }
.quiz-opt { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 8px !important; font-weight: 500 !important; cursor: pointer; }
.quiz-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.quiz-opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.quiz-opt.right { border-color: #86d3a3; background: var(--ok-bg); }
.quiz-opt.wrong { border-color: #f0a9a9; background: var(--err-bg); }
.result-box { border-radius: var(--radius); padding: 22px; margin-bottom: 22px; display: flex; gap: 18px; align-items: center; }
.result-box.pass { background: var(--ok-bg); border: 1px solid #bfe6cd; }
.result-box.fail { background: var(--err-bg); border: 1px solid #f3c7c7; }
.result-box .score { font-size: 2.4rem; font-weight: 800; }
.side-toggle { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c9cdd3; padding: 48px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #c9cdd3; display: block; padding: 4px 0; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2f37; margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.site-footer .credit a { display: inline; padding: 0; color: #fff; font-weight: 600; }
.site-footer .credit a:hover { color: #5eead4; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a3f47; display: grid; place-items: center; padding: 0; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(140deg, #0b3d38, #0f766e 60%, #14b8a6); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; right: -100px; bottom: -100px; width: 340px; height: 340px; border-radius: 50%; border: 44px solid rgba(245,158,11,.35); }
.auth-art ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 18px; }
.auth-art li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form .inner { width: min(420px, 100%); }
.install-body { background: var(--bg-soft); padding: 40px 16px; }
.install-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }

/* ---------- Certificate ---------- */
.cert-page { background: #e8ebef; min-height: 100vh; padding: 32px 16px; font-family: var(--font); }
.cert-actions { max-width: 1000px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cert { max-width: 1000px; aspect-ratio: 1.414/1; margin: 0 auto; background: #fff; position: relative; padding: 5% 6%; box-shadow: 0 20px 60px rgba(0,0,0,.15); overflow: hidden; display: flex; flex-direction: column; }
.cert::before { content: ""; position: absolute; inset: 18px; border: 2px solid #0f766e; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 26px; border: 1px solid #f59e0b; pointer-events: none; }
.cert .corner { position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -90px; background: radial-gradient(circle, rgba(15,118,110,.18), transparent 70%); }
.cert .top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cert .label { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: 4%; }
.cert h1 { font-size: clamp(1.6rem, 4.4vw, 3rem); margin: 2% 0 1%; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.cert .course { font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--brand); margin: 1% 0; }
.cert .meta { color: var(--ink-2); font-size: clamp(.75rem, 1.4vw, .95rem); }
.cert .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; position: relative; z-index: 1; }
.cert .sig { border-top: 1px solid var(--ink); padding-top: 6px; min-width: 180px; font-size: .85rem; }
.cert .sig b { display: block; font-size: 1rem; }
.cert .qr { text-align: center; font-size: .7rem; color: var(--muted); }
.cert .qr svg { width: 96px; height: 96px; display: block; margin: 0 auto 4px; }
.seal { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fcd34d, #d97706); display: grid; place-items: center; color: #4a2a00; font-weight: 800; font-size: .7rem; text-align: center; box-shadow: 0 0 0 6px #fde68a, 0 0 0 7px #d97706; line-height: 1.15; }
@media print {
  .cert-actions { display: none; }
  .cert-page { background: #fff; padding: 0; }
  .cert { box-shadow: none; max-width: none; width: 100%; }
  @page { size: A4 landscape; margin: 0; }
}

/* ---------- Misc ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line-2); padding: 32px 0; }
.page-head p { margin: 0; color: var(--muted); }
.narrow { max-width: 820px; }
.note { background: var(--warn-bg); border: 1px solid #f6dfb2; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; color: #6b4a00; }
.copy { cursor: pointer; }
.kbd { font-family: ui-monospace, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.ok-text { color: var(--ok); } .err-text { color: var(--err); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-head { display: flex; gap: 28px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-scroll { grid-auto-columns: calc((100% - 44px) / 3); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-hide-lg { display: none; }
}
@media (max-width: 980px) {
  .header-search, .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 24px 52px; }
  .hero-art { display: none; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .course-hero .container, .course-body { grid-template-columns: 1fr; }
  .buy-card { margin-top: 0; position: static; }
  .course-body .side { order: -1; }
  .prog-grid, .how-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; display: flex; overflow-x: auto; padding: 0; }
  .dash-side h4 { display: none; }
  .dash-side a { white-space: nowrap; padding: 14px 16px; }
  .dash-main { padding: 22px 16px 48px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .learn { grid-template-columns: 1fr; }
  .learn-side { position: fixed; top: 60px; right: 0; bottom: 0; width: min(380px, 92vw); height: auto; z-index: 45; transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow); }
  .learn-side.open { transform: none; }
  .side-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 36px 16px 44px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: 1rem; }
  .trust-inner { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px !important; }
  .trust-item b { font-size: .95rem; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .row-scroll { grid-auto-columns: 72%; gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid, .how-grid, .stats-band { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .list-item { grid-template-columns: 120px 1fr; }
  .list-item .price { grid-column: 2; text-align: left; }
  .list-item p.sub { display: none; }
  .outcomes { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 90px 1fr; }
  .cart-line .price { grid-column: 2; text-align: left; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lesson-content, .lesson-nav { padding-left: 16px; padding-right: 16px; }
  .text-stage { padding: 32px 16px; }
  .section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .instructor-card, .profile-head { flex-direction: column; }
  .hero-search { flex-direction: column; border-radius: 14px; gap: 6px; }
  .hero-search .btn { border-radius: 10px; }
  .install-card { padding: 22px; }
  .cert .bottom { flex-wrap: wrap; }
  .header-actions .hide-sm { display: none; }
  .learn-top .prog span, .hide-sm-text { display: none; }
}
@media (max-width: 420px) {
  .grid-cards { grid-template-columns: 1fr; }
  .brand-text { display: none; }
}

/* ---------- Preferences (language, currency, theme) ---------- */
.pref-badge { font-size: .68rem; font-weight: 800; margin-left: 3px; letter-spacing: .02em; }
.prefs > .icon-btn { width: auto; padding: 0 10px; border-radius: 999px; gap: 2px; }
.pref-menu { min-width: 270px; padding: 10px 0; }
.pref-group { padding: 8px 16px; }
.pref-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dropdown-menu .seg a, .dropdown-menu .seg button { flex: 1; justify-content: center; padding: 8px 6px; font-size: .86rem; border-right: 1px solid var(--line); gap: 5px; }
.dropdown-menu .seg > :last-child { border-right: 0; }
.dropdown-menu .seg .on, .dropdown-menu .seg button.on { background: var(--ink); color: var(--bg); font-weight: 700; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; } :root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-dark { display: inline; } :root:not([data-theme="light"]) .when-light { display: none; } }
.drawer-prefs { display: flex; gap: 8px; padding: 6px 18px 10px; flex-wrap: wrap; }
.drawer-panel .drawer-prefs a, .drawer-panel .drawer-prefs button { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.header-search input { background: var(--bg-soft); color: var(--ink); }
:root[data-theme="dark"] .header-search input { border-color: var(--input-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header-search input { border-color: var(--input-line); } }
:lang(bn) body, html[lang="bn"] body { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; line-height: 1.3; }
