/* NewsFlow: প্যানেলের স্টাইল (সংস্করণ ৩) */
@font-face {
  font-family: 'Noto Sans Bengali';
  src: url('../fonts/noto-sans-bengali.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1f4fa3;  --blue-dark: #173d80;  --blue-soft: #eaf1fb;
  --green: #17803d; --green-soft: #e6f4ea;
  --red: #b42318;   --red-soft: #fdecea;
  --yellow: #f2b01e; --yellow-soft: #fff6dd; --yellow-ink: #714b00;
  --ink: #1a2433; --muted: #5b6778; --line: #e3e8ef;
  --bg: #f4f6fa; --surface: #ffffff; --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.7 'Noto Sans Bengali', 'Nirmala UI', 'Segoe UI', Arial, sans-serif;
}
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.4; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 700; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
small { font-size: 13px; }

/* ---------- উপরের মেনু ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.logo-mark i { display: block; width: 9px; height: 9px; border-radius: 2px; }
.logo-mark i:nth-child(1) { background: var(--blue); }
.logo-mark i:nth-child(2) { background: var(--green); }
.logo-mark i:nth-child(3) { background: var(--yellow); }
.logo-mark i:nth-child(4) { background: var(--red); }

.menu { display: flex; gap: 24px; }
.menu a { padding: 19px 2px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }

.who { margin-left: auto; position: relative; }
.who summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; }
.who summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.who-pop { position: absolute; right: 0; top: 48px; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.who-pop small { display: block; margin-bottom: 12px; word-break: break-all; }

.content { max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- ব্লক ও ফর্ম ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-2 .panel { margin-bottom: 0; }

.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-head .sub { color: var(--muted); font-size: 14px; margin: 0; }

.block { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd2dc; border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 163, .15); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; margin-top: 12px; }
label.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.radios { display: grid; gap: 10px; margin-bottom: 16px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio input { margin-top: 5px; accent-color: var(--blue); }
.radio strong { display: block; font-weight: 500; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice-body { display: block; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.choice input:checked + .choice-body { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 163, .15); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice-body img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.choice-body .ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #f2f4f7; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.choice-body .nm { display: block; padding: 9px 10px; font-size: 13.5px; font-weight: 500; }

.savebar { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 10px; justify-content: flex-end; }
.form-actions { display: flex; gap: 8px; padding-top: 6px; }

/* ---------- বোতাম ---------- */
.btn { display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: var(--surface); color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }
.btn-danger { background: var(--surface); border-color: #e6b8b3; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-sm { padding: 5px 12px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; text-align: center; }
form.inline { display: inline; }

/* ---------- বার্তা ও ব্যাজ ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid transparent; }
.alert-ok { background: var(--green-soft); border-color: #bde0c8; color: #11602e; }
.alert-bad { background: var(--red-soft); border-color: #f1c2bd; color: #8c1d14; }
.alert-warn { background: var(--yellow-soft); border-color: #f1dca0; color: var(--yellow-ink); }

.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: #eef1f5; color: #44505f; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .65; }
.badge.ok, .chip.ok { background: var(--green-soft); color: var(--green); }
.badge.bad, .chip.bad { background: var(--red-soft); color: var(--red); }
.badge.warn, .chip.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge.info, .chip.info { background: var(--blue-soft); color: var(--blue); }

/* ---------- টেবিল ও তালিকা ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table .w-time { width: 190px; }

.kv { display: grid; grid-template-columns: 120px 1fr; row-gap: 10px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 17px; }

details.fold { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
details.fold summary { cursor: pointer; font-weight: 500; color: var(--blue); }
details.fold[open] summary { margin-bottom: 14px; }

/* ---------- সাইটের তালিকা ও চেকলিস্ট ---------- */
.site-row { display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; text-decoration: none; color: inherit; }
.site-row:hover { border-color: #b9c6dc; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
.site-main { flex: 1; min-width: 0; }
.site-main strong { display: block; font-size: 16px; }
.site-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.site-meta { text-align: right; min-width: 130px; font-size: 13px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.mark { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step .t { flex: 1; }
.step.done .mark { background: var(--green); color: #fff; }
.step.done .t { color: var(--muted); }

/* ---------- কার্ডের ছোট ছবি ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eef0f3; }
.thumb .ph { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; color: var(--muted); background: #f2f4f7; }
.thumb .cap { padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.thumb .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- লগইন ও নিবন্ধন ---------- */
.guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.guest-box { width: 100%; max-width: 410px; }
.guest-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.guest-box .panel { padding: 30px; }
.guest-box h1 { font-size: 20px; margin-bottom: 20px; }
.guest-foot { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 16px; }

/* ---------- ছোট পর্দা ---------- */
@media (max-width: 760px) {
  .topbar-in { padding: 0 16px; gap: 16px; }
  .who summary span:last-child { display: none; }
  .content { padding: 20px 16px 72px; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .site-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-meta { text-align: left; }
  .panel { padding: 18px; }
}


/* ---------- সংখ্যার ঘর (অপারেটর পাতা) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 16px 18px; }
.stat.green { border-top-color: var(--green); }
.stat.yellow { border-top-color: var(--yellow); }
.stat b { display: block; font-size: 26px; line-height: 1.35; }
.stat span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- পথের রেখা (ফিরে যাওয়ার লিংক) ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs b { color: var(--ink); font-weight: 500; }

/* ================= সংস্করণ ৪: নতুন মেনু ও পাতা ================= */
.topbar-in { gap: 20px; }
.menu { gap: 18px; }
.menu a { white-space: nowrap; }
.nbadge { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; line-height: 1.6; }

.right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.who { margin-left: 0; }
.oplink { font-size: 14px; color: var(--muted); text-decoration: none; }
.oplink:hover { color: var(--blue); }

/* সাইট বদলানোর বাক্স */
.switch { position: relative; }
.switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px; max-width: 210px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch summary::after { content: '▾'; color: var(--muted); }
.switch-pop { position: absolute; left: 0; top: 46px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); z-index: 30; }
.switch-pop a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.switch-pop a:hover { background: var(--bg); }
.switch-pop a.cur { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.switch-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* সংখ্যার ঘর, ফিল্টার, পাতা বদল */
.stat.red { border-top-color: var(--red); }
a.chip { text-decoration: none; }
a.chip:hover { filter: brightness(.96); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; font-size: 14px; }
.filters a.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 500; }
.pager { display: flex; justify-content: space-between; margin-top: 20px; }

/* অটোমেশনের অবস্থার সারি */
.feat { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; padding-bottom: 0; }
.feat:first-of-type { padding-top: 0; }
.feat .ft { flex: 1; min-width: 0; }
.feat .ft strong { display: block; font-weight: 500; }
.feat .ft small { display: block; }
.feat .chip { min-width: 78px; justify-content: center; }
.more { font-size: 14px; text-decoration: none; }
.more:hover { text-decoration: underline; }
.danger-zone { border-color: #e6b8b3; }

@media (max-width: 900px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px 14px; }
  .menu { order: 3; width: 100%; overflow-x: auto; gap: 18px; }
  .menu a { padding: 10px 2px; }
  .feat { flex-wrap: wrap; }
}

/* ================= নিজের ডিজাইন (Design Studio) ================= */
.studio { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.preview-box { position: sticky; top: 84px; }
.frame { width: 324px; height: 405px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.frame iframe { width: 1080px; height: 1350px; border: 0; transform: scale(.3); transform-origin: 0 0; }

.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field input[type=color] { height: 42px; padding: 3px; cursor: pointer; }
.field input[type=range] { padding: 0; accent-color: var(--blue); }

.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.preset:hover { border-color: var(--blue); background: var(--blue-soft); }
.preset .sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); }

.choice-wrap { display: block; }
.choice-tools { display: flex; justify-content: center; margin-top: 6px; font-size: 13px; }
.choice-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; border: 2px dashed #b9c6dc; border-radius: 10px; color: var(--blue); text-decoration: none; font-weight: 500; font-size: 14px; text-align: center; padding: 12px; }
.choice-new span { font-size: 28px; line-height: 1; }
.choice-new:hover { background: var(--blue-soft); border-color: var(--blue); }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .preview-box { position: static; order: -1; }
  .colors { grid-template-columns: 1fr 1fr; }
}




/* ---------- সেটিংস: কানেক্টরের তথ্য ---------- */
.steps-mini { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.alert-warn { background: var(--yellow-soft); border: 1px solid #e8c766; color: var(--yellow-ink); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14.5px; }
.copy-row { margin-bottom: 16px; }
.copy-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; font: 14px/1.4 ui-monospace, Consolas, monospace; }
.copy-box input.hot { background: var(--yellow-soft); border-color: #e8c766; }

/* ---------- ডিজাইন Studio ---------- */
.group-title { font-size: 15px; font-weight: 700; margin: 28px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.group-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.subfield { background: var(--blue-soft); border-radius: 8px; padding: 12px 14px 2px; margin: 10px 0 16px; }
.frame { transition: opacity .15s; }
.frame.loading { opacity: .55; }



/* ---------- ভাষা পরিবর্তন ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 5px 12px; font-size: 13px; line-height: 1.6; color: var(--muted); text-decoration: none; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--ink); background: var(--bg); }
.lang-switch a.active { background: var(--blue); color: #fff; font-weight: 500; }
.guest-lang { position: fixed; top: 16px; right: 16px; z-index: 10; }

/* ইংরেজি মোডে ইংরেজির উপযোগী ফন্ট; সাইটের বাংলা নাম পড়ার জন্য বাংলা ফন্ট শেষে থাকে */
html[lang="en"] body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Bengali', 'Nirmala UI', sans-serif;
  line-height: 1.6;
}



/* ---------- হেডার ঠিকঠাক বসানো (ইংরেজি লেখা বাংলার চেয়ে লম্বা) ---------- */
.topbar-in, .content { max-width: 1160px; }
.topbar-in { gap: 16px; }
.logo { white-space: nowrap; flex-shrink: 0; }
.menu { gap: 14px; }
.menu a { font-size: 14.5px; }
.switch summary { max-width: 170px; }
.right { gap: 12px; flex-shrink: 0; }
.who summary { white-space: nowrap; }
.who summary span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { white-space: nowrap; flex-shrink: 0; }
.lang-switch a { padding: 4px 10px; font-size: 13px; }
html[lang="en"] body { font-size: 15px; }

/* ছোট স্ক্রিনে মেনু দ্বিতীয় সারিতে নামবে */
@media (max-width: 1100px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px 14px; }
  .menu { order: 3; width: 100%; overflow-x: auto; }
  .menu a { padding: 10px 2px; }
}



/* ---------- ভাষা ড্রপডাউন ---------- */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: '▾'; font-size: 11px; }
.lang summary:hover, .lang[open] summary { background: var(--bg); color: var(--ink); }
.lang-pop { position: absolute; right: 0; top: 44px; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); z-index: 30; }
.lang-pop a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-pop a:hover { background: var(--bg); }
.lang-pop a.cur { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.lang-pop a.cur::after { content: '✓'; }

/* ---------- টেবিলের শেষ ঘর ঠিক করা (হেডারের .right ক্লাসের সাথে সংঘর্ষ) ---------- */
.table td.right, .table th.right { display: table-cell; margin-left: 0; text-align: right; white-space: nowrap; }

/* ইংরেজি লেখা লম্বা হলে বাটন/শিরোনাম যেন না ভাঙে */
.page-head { flex-wrap: wrap; }
.actions .btn, .step .btn, .feat .btn { white-space: nowrap; }

/* কার্ডের ছোট ঘরে চিপের লেখা যেন কেটে না যায় */
.thumb .chips .chip { white-space: normal; line-height: 1.4; padding-top: 3px; padding-bottom: 3px; }
.thumb .cap { overflow-wrap: anywhere; }
.copy-box .btn { white-space: nowrap; }
.panel-head h2 small { font-weight: 400; }

/* ডিজাইন পাতায় ইংরেজি লেখা লম্বা হলে যেন না ভাঙে */
.choice-body .nm { overflow-wrap: anywhere; }
.preset { white-space: nowrap; }
.radio span small { display: block; }

/* ================= ধাপ ৭.১: আইকন, বার্তার বার, তথ্য-বাক্স, পাসওয়ার্ড বোতাম ================= */
.icon { flex: none; display: inline-block; vertical-align: -3px; }

/* বার্তার বার: আইকন + লেখা + বন্ধ বোতাম */
.alert { display: flex; align-items: flex-start; gap: 10px; }
.alert-ico { margin-top: 3px; }
.alert-body { flex: 1; min-width: 0; }
.alert-x { flex: none; margin: 1px -4px 0 0; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .6; cursor: pointer; line-height: 0; }
.alert-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

/* ছোট তথ্য-বাক্স: <span class="tip" tabindex="0" data-tip="ব্যাখ্যা"><x-icon name="info" size="16" /></span> */
.tip { position: relative; display: inline-flex; margin-left: 6px; color: #8a94a6; cursor: help; vertical-align: middle; }
.tip:hover, .tip:focus { color: var(--blue); outline: 0; }
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 250px; padding: 8px 10px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 30;
}
.tip:hover::after, .tip:focus::after { opacity: 1; }

/* পাসওয়ার্ড দেখানোর বোতাম */
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 42px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #8a94a6; cursor: pointer; border-radius: 0 8px 8px 0; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .i-hide { display: none; }
.pw-toggle.on .i-hide { display: inline-flex; }
.pw-toggle.on .i-show { display: none; }

/* লগইন/রেজিস্টার */
.auth-sub { color: var(--muted); font-size: 14.5px; margin: -14px 0 22px; }

/* ================= লগইন / নিবন্ধন / ইমেইল যাচাই (নতুন ডিজাইন) ================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; background: var(--surface); }

/* বাম পাশ: পরিচয় */
.auth-side { background: #14264a; color: #e6ecf7; padding: 40px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: inherit; text-decoration: none; }
.auth-side .logo-mark i:nth-child(1) { background: #7aa6ee; }
.auth-pitch { max-width: 380px; }
.auth-pitch h2 { font-size: 28px; line-height: 1.4; color: #fff; margin-bottom: 14px; }
.auth-pitch p { color: #b9c6df; margin-bottom: 28px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e6ecf7; }
.auth-points .icon { color: #7ed39a; margin-top: 4px; }
.auth-legal { font-size: 13px; color: #8ea0c4; }

/* ডান পাশ: ফর্ম */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 80px 24px 48px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-brand-sm { display: none; color: var(--ink); margin-bottom: 28px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
.auth-box .auth-sub { margin: 0 0 28px; }
.auth-box .auth-sub strong { color: var(--ink); font-weight: 500; word-break: break-all; }
.auth-box .field { margin-bottom: 20px; }
.auth-box .field input:not([type=checkbox]) { height: 44px; }
.auth-box .btn-block { padding: 11px 18px; font-size: 15.5px; }
.auth-box .btn:disabled { opacity: .6; cursor: default; }
.auth-foot { text-align: center; font-size: 14.5px; color: var(--muted); margin: 24px 0 0; }

/* ঘরের নিচের এরর */
.field.has-error input { border-color: var(--red); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .14); }
.field-error { color: var(--red); font-size: 13.5px; margin-top: 6px; }

/* পাসওয়ার্ডের নিয়ম ও মিল */
.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.rules li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.rules li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b6bfcc; flex: none; }
.rules li.ok { color: var(--green); }
.rules li.ok::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.match { font-size: 13.5px; margin-top: 6px; }
.match.ok { color: var(--green); }
.match.bad { color: var(--red); }

/* ইমেইল যাচাইয়ের পাতা */
.verify-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.verify-ico + h1 + .auth-sub { margin-bottom: 18px; }
.verify-steps { margin: 0 0 24px; padding-left: 20px; color: var(--ink); font-size: 14.5px; display: grid; gap: 4px; }
.verify-hint { margin: 14px 0 0; }

/* ভাষা বদলের বোতাম ডান কোণে, সবার ওপরে */
.guest-lang { top: 18px; right: 24px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { align-items: flex-start; padding: 72px 20px 40px; }
  .auth-brand-sm { display: inline-flex; }
}

/* অ্যাডমিন টেবিলের কাজের ঘর */
.table td.op-cell { text-align: right; width: 1%; white-space: nowrap; }
.op-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: flex-start; }
/* অ্যাডমিন টেবিলের কাজের ঘর */
.table td.op-cell { text-align: right; width: 1%; white-space: nowrap; }
.op-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* লাইসেন্স popup */
dialog.op-modal { border: 0; border-radius: 14px; padding: 22px; width: min(400px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.op-modal::backdrop { background: rgba(15, 23, 42, .5); }
.op-modal h3 { margin: 0 0 4px; font-size: 18px; }
.op-modal p.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; word-break: break-all; }
.op-modal label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.op-modal input { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.op-modal .row { display: flex; gap: 8px; justify-content: flex-end; }


