:root {
  --navy: #14213d;
  --navy-2: #1d2f56;
  --yellow: #ffc93c;
  --pink: #ff5c8a;
  --cream: #fff8ee;
  --ink: #1b1b2a;
  --muted: #6b6b80;
  --line: #ecdfcb;
  --green: #1aa564;
  --red: #d64545;
  --bkash: #e2136e;
  --nagad: #f6921e;
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Hind Siliguri", system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; font-size: 17px; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 520px; }
.section { padding: 44px 18px; }
.hidden { display: none !important; }
.center { text-align: center; margin-top: 24px; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
code { background: #f3ead9; padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- header ---------- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.logo em { font-style: normal; color: var(--yellow); }
.logo-badge { background: var(--yellow); color: var(--navy); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; transform: rotate(-6deg); }
#nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: #fff; text-decoration: none; font: inherit; font-size: 15px; padding: 6px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav-link:hover { background: rgba(255,255,255,.1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 11px 20px; cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 14px 26px; font-size: 18px; }
.btn-sm { padding: 7px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 #d9a21a; }
.btn-yellow:hover { filter: brightness(1.05); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost-dark { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-google { width: 100%; background: #fff; color: #333; border: 2px solid var(--line); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; margin-top: 10px; cursor: pointer; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(circle at 85% 10%, var(--navy-2), var(--navy) 60%); color: #fff; padding: 52px 0 46px; overflow: hidden; }
.hero-in { position: relative; }
.sticker { display: inline-block; background: var(--pink); color: #fff; font-weight: 700; padding: 6px 16px; border-radius: 10px; transform: rotate(-3deg); margin-bottom: 18px; box-shadow: 0 4px 0 #c93a64; }
.hero h1 { font-size: clamp(30px, 6vw, 50px); max-width: 760px; }
.lead { font-size: 19px; opacity: .9; max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.proof { color: var(--yellow); font-weight: 600; margin: 10px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; max-width: 620px; }
.stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 20px; color: var(--yellow); }
.stats span { font-size: 14px; opacity: .85; }

/* ---------- sections ---------- */
.sec-title { font-size: 28px; text-align: center; margin-bottom: 24px; }
.sec-title.light { color: #fff; }
.modules, .faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.module, .faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; }
.module summary, .faq summary { cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; list-style: none; }
.module summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.mnum { background: var(--navy); color: var(--yellow); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mname { flex: 1; }
.mcount { font-size: 14px; color: var(--muted); font-weight: 500; }
.module ul { list-style: none; margin: 0; padding: 0 18px 12px; }
.module li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 16px; }
.module li small { color: var(--muted); white-space: nowrap; }
.free { font-style: normal; background: #e6f7ee; color: var(--green); padding: 1px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 18px 16px; color: #444; }
.band { background: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: #fff; border-radius: var(--r); padding: 22px; position: relative; }
.step span { position: absolute; top: -14px; left: 18px; background: var(--yellow); color: var(--navy); font-weight: 700; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.step h3 { margin-top: 8px; }
.step p { margin: 0; color: #555; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 0 36px; border-top: 1px solid var(--line); }

/* ---------- cards / forms ---------- */
.card { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 24px; }
.center-card { text-align: center; }
.center-card .btn { margin: 6px; }
.big-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]) , input[inputmode] {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fffdf9;
}
input:focus { outline: none; border-color: var(--navy); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
label.check input { width: 20px; height: 20px; }
.form-err { color: var(--red); font-size: 15px; min-height: 1em; margin: 0 0 10px; }
.hint { color: var(--muted); font-size: 14px; }
.notice { background: #fff3cd; border: 2px solid #f3d98a; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.notice.bad { background: #fde7e7; border-color: #f2b9b9; }
.notice a { font-weight: 700; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { background: #fff; padding: 0 10px; position: relative; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f6efe2; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tab { font: inherit; font-weight: 600; border: 0; background: none; padding: 9px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-card h2 { text-align: center; }
.auth-card .link-btn { display: block; margin: 12px auto 0; }

/* ---------- buy ---------- */
.price-tag { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.price-tag b { font-size: 26px; color: var(--yellow); }
.pay-card h3 { font-size: 18px; margin-top: 18px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.method { font: inherit; font-weight: 700; font-size: 18px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.method.bkash.active { border-color: var(--bkash); background: var(--bkash); color: #fff; }
.method.nagad.active { border-color: var(--nagad); background: var(--nagad); color: #fff; }
.pay-box { border-radius: 14px; padding: 14px 16px; border: 2px dashed var(--line); }
.pay-box.bkash { border-color: var(--bkash); background: #fff0f6; }
.pay-box.nagad { border-color: var(--nagad); background: #fff6ec; }
.pay-box p { margin: 0 0 8px; }
.number-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 8px 8px 14px; margin: 8px 0; }
.pay-number { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.amount { margin: 6px 0 0 !important; }
.uid { word-break: break-all; font-size: 14px; }

/* ---------- course ---------- */
.course { display: grid; grid-template-columns: 1fr 340px; gap: 22px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0e1730; border-radius: 18px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 20px; }
.player-msg p { margin: 0 0 12px; }
.player-msg .small { font-size: 14px; opacity: .8; }
.lesson-head { padding: 16px 2px; }
.lesson-head small { color: var(--muted); }
.lesson-head h1 { font-size: 24px; margin: 4px 0 12px; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list-col { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px; max-height: calc(100vh - 100px); overflow: auto; position: sticky; top: 78px; }
.progress { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.progress b { color: var(--yellow); }
.lgroup h4 { font-size: 15px; color: var(--muted); margin: 14px 6px 6px; }
.litem { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.litem:hover { background: #faf4ea; }
.litem.active { background: #fff1c9; font-weight: 600; }
.litem.locked .lt { color: var(--muted); }
.litem small { color: var(--muted); font-size: 13px; }

.demo-bar { background: var(--pink); color: #fff; text-align: center; padding: 6px; font-size: 14px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 99; transition: .25s; max-width: 90vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: var(--red); }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.atab, .chip { font: inherit; font-weight: 600; border: 2px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 12px; cursor: pointer; }
.atab.active, .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip { padding: 5px 14px; font-size: 15px; }
.filter-row { display: flex; gap: 8px; }
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pay-item { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pay-item.pending { border-color: #f3d98a; }
.pi-top { display: flex; justify-content: space-between; }
.badge { color: #fff; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 8px; background: var(--bkash); }
.badge.nagad { background: var(--nagad); }
.st { font-size: 13px; font-weight: 600; }
.st-pending { color: #b7860b; } .st-approved { color: var(--green); } .st-rejected { color: var(--red); }
.trx { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 700; letter-spacing: 1px; margin: 10px 0; background: #f6efe2; padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.pi-info { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 15px; }
.pi-info small, .stu small, .les small { display: block; color: var(--muted); font-size: 13px; }
.pi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-cards b { font-size: 28px; color: var(--navy); }
.stat-cards small { display: block; color: var(--muted); }
.stu-list, .les-list { display: grid; gap: 8px; }
.stu, .les { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.les.editing { border-color: var(--yellow); }
.les-num { background: var(--navy); color: var(--yellow); border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 14px; }
.les-main { flex: 1; }
.row-between { display: flex; justify-content: space-between; margin: 10px 0; }
.les-form { margin: 12px 0 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

@media (max-width: 820px) {
  .course { grid-template-columns: 1fr; }
  .list-col { position: static; max-height: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 34px 16px; }
  .stats b { font-size: 17px; }
  .logo span:last-child em { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .pi-info { grid-template-columns: 1fr; }
  .module li { flex-direction: column; gap: 0; }
}
