:root {
  --ink: #12211b;
  --muted: #5d6b65;
  --bg: #fbf8f2;
  --surface: #ffffff;
  --line: #e6e0d4;
  --brand: #0f6b47;
  --brand-dark: #0a4d33;
  --accent: #f2a531;
  --ok: #1d8a57;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 33, 27, .06), 0 8px 24px rgba(18, 33, 27, .06);
  --display: "Anek Bangla", "Hind Siliguri", sans-serif;
  --sans: "Hind Siliguri", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font: 600 1rem var(--sans); padding: .85em 1.4em; border-radius: 999px;
  transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: rgba(15, 107, 71, .07); }
.btn-accent { background: var(--accent); color: #2b1a00; }
.btn-accent:hover { background: #e0921c; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; margin-top: 10px; }

/* Header */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--display); }
.logo b { color: var(--brand); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--accent); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--brand); }
.badge { background: var(--accent); color: #2b1a00; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 80px 20px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #e7f2ec; color: var(--brand); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .tile { position: absolute; border-radius: 22px; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 3rem; color: #fff; }
.hero-art .t1 { inset: 0 32% 38% 0; background: linear-gradient(135deg, #0f5132, #2fa36b); }
.hero-art .t2 { inset: 10% 0 50% 72%; background: linear-gradient(135deg, #7a2e0e, #e8833a); font-size: 2rem; }
.hero-art .t3 { inset: 66% 44% 0 8%; background: linear-gradient(135deg, #4a1d6e, #a259d9); font-size: 2.2rem; }
.hero-art .t4 { inset: 56% 0 6% 60%; background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); padding: 18px; text-align: center; place-items: center; }
.hero-art .t4 strong { display: block; font: 700 1.3rem var(--display); color: var(--brand); white-space: nowrap; }
.trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust div strong { display: block; font: 700 1.5rem var(--display); }

/* Cards & grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18, 33, 27, .12); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; }
.thumb span { font-size: 2.8rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.thumb em { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 999px; }
.thumb.mini { width: 72px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.thumb.mini span { font-size: 1.6rem; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin: 10px 0 14px; }
.meta span::before { content: "•"; margin-right: 6px; opacity: .5; }
.meta span:first-child::before { display: none; }
.meta.light { color: rgba(255,255,255,.85); font-size: .92rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font: 700 1.25rem var(--display); }
.link-arrow { color: var(--brand); font-weight: 600; font-size: .9rem; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin: 0; }
.pill-ok { background: #e3f4eb; color: var(--ok); }

/* Split / how it works */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.option { padding: 32px; }
.option.featured { background: var(--brand); color: #fff; border-color: var(--brand); }
.option.featured .muted { color: rgba(255,255,255,.75); }
.option .big { font: 700 2rem var(--display); margin: 6px 0 4px; }
.option ul { padding-left: 1.1em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.step { padding: 26px; }
.step b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); font-family: var(--display); margin-bottom: 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.band { background: #eef4ef; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; }

/* Courses page */
.page-head { padding: 56px 20px 24px; }
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.search { flex: 1; min-width: 220px; padding: .8em 1.1em; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--surface); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: .5em 1em; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Course page */
.course-hero { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; padding: 56px 20px; }
.course-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.crumb { display: inline-block; margin-bottom: 14px; opacity: .85; font-weight: 500; }
.buy-box { color: var(--ink); padding: 18px; margin-bottom: -140px; position: relative; }
.buy-box .thumb { border-radius: 12px; margin-bottom: 14px; }
.buy-price { font: 700 2rem var(--display); display: flex; flex-direction: column; }
.buy-price .small { font: 400 .85rem var(--sans); }
.or { text-align: center; margin: 14px 0; position: relative; color: var(--muted); font-size: .85rem; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { background: var(--surface); padding: 0 10px; position: relative; }
.sub-teaser { display: block; background: #fff6e6; border: 1px solid #f6d79f; border-radius: 12px; padding: 14px; margin-top: 12px; }
.sub-teaser strong { display: block; }
.sub-teaser span { color: #8a5a00; font-size: .9rem; font-weight: 600; }
.course-body { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.course-body > div { max-width: 720px; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #e3f4eb; color: var(--ok); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.curriculum details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.curriculum summary { padding: 16px 18px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.curriculum ol { list-style: none; margin: 0; padding: 0 18px 12px; }
.curriculum li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-top: 36px; }
.plan { padding: 32px; position: relative; display: flex; flex-direction: column; }
.plan .checks { margin: 18px 0 24px; flex: 1; }
.plan.best { border: 2px solid var(--brand); }
.ribbon { position: absolute; top: -13px; right: 24px; background: var(--accent); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.plan-price { font: 700 2.6rem var(--display); }
.plan-price span { font: 500 1rem var(--sans); color: var(--muted); }
.compare { max-width: 780px; margin: 48px auto 0; padding: 26px 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.compare strong { font: 700 1.6rem var(--display); color: var(--brand); }

/* Cart / dashboard */
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.grow { flex: 1; }
.x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 6px; }
.summary { padding: 22px; position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 6px; }
.empty { padding: 48px; text-align: center; }
.auth { max-width: 420px; margin: 0 auto; padding: 32px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-top: 14px; }
input:not([type=radio]) { width: 100%; margin-top: 6px; padding: .75em 1em; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dash-head h1 { font-size: 2.2rem; margin: 0; }
.sub-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; margin-top: 24px; flex-wrap: wrap; }
.sub-status.on { border-color: var(--brand); background: #f0f8f3; }
.notice { background: #e3f4eb; color: var(--brand-dark); padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 600; }

/* Modal & toast */
.modal { position: fixed; inset: 0; background: rgba(18, 33, 27, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { width: min(420px, 100%); padding: 28px; position: relative; }
.modal-box .close { position: absolute; top: 12px; right: 12px; }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-methods label { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 500; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.demo-note { background: #fff6e6; color: #8a5a00; font-size: .82rem; padding: 10px 12px; border-radius: 10px; margin: 16px 0 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
#site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { padding: 28px 20px; border-top: 1px solid var(--line); margin-top: 36px; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .course-hero-grid, .course-body, .cart-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; width: 100%; }
  .buy-box { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links a { padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; }
  body.nav-open .nav-links { display: flex; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 16px; }
}

/* ---------- Auth, checkout, dashboard, admin ---------- */
.tabs { display: flex; gap: 6px; background: #efeadf; padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: .6em 1em; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.form-error { background: #fdecec; color: #a12626; padding: 10px 14px; border-radius: 10px; margin-top: 14px; font-size: .92rem; }
.form-error:empty { display: none; }
textarea, select { width: 100%; margin-top: 6px; padding: .75em 1em; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); }
textarea { min-height: 90px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.method { border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 10px; cursor: pointer; text-align: center; font: 700 1rem var(--sans); color: var(--ink); }
.method small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.method.on { border-color: var(--brand); background: #f0f8f3; }
.method .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pay-box { padding: 24px; }
.steps-list { padding-left: 1.3em; margin: 8px 0 18px; }
.steps-list li { margin-bottom: 6px; }
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff6e6; border: 1px dashed #e7b860; border-radius: 12px; padding: 12px 16px; margin: 6px 0; }
.copy-line strong { font-size: 1.25rem; letter-spacing: .03em; font-family: var(--sans); }
.copy-line button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 600 .82rem var(--sans); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 10px 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.st-pending { background: #fff3d6; color: #8a5a00; }
.st-approved { background: #e3f4eb; color: var(--ok); }
.st-rejected { background: #fdecec; color: #a12626; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .82rem; background: #faf7f0; }
td .small { display: block; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #a12626; }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-top: 32px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.admin-nav button { text-align: left; border: 0; background: none; padding: 10px 14px; border-radius: 10px; font: 600 .98rem var(--sans); cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; }
.admin-nav button.on { background: var(--brand); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 20px; }
.stat strong { display: block; font: 700 1.7rem var(--display); }
.panel { padding: 24px; margin-bottom: 20px; }
.panel h3 { margin-top: 0; }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.toggle input { width: 18px; height: 18px; margin: 0; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.lesson-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-align: left; font-weight: 600; }
.video-box { width: min(900px, 100%); padding: 16px; }
.video-box .frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .checkout-grid, .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .methods { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
.admin-shell > * { min-width: 0; }
.admin-shell .wrap, .admin-shell { max-width: 1280px; }
td .actions { flex-direction: column; align-items: stretch; }
