/* Prohori — design C "bold minimal". One accent (orange), ink + neutral greys, 8px grid. */
:root {
  --ink: #0a0a0a;
  --ink-2: #262626;
  --text: #3d3d3d;
  --mute: #6b6b6b;
  --faint: #737373;
  --line: #ececec;
  --line-2: #e2e2e2;
  --soft: #fafafa;
  --soft-2: #f4f4f3;
  --bg: #ffffff;
  --acc: #ff5a1f;
  --acc-ink: #c2410c;
  --acc-soft: #fff1eb;
  --acc-ring: rgba(255, 90, 31, .22);
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --bad: #c62828;
  --bad-soft: #fef2f2;
  --warn: #a16207;
  --warn-soft: #fefce8;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(10, 10, 10, .04), 0 1px 1px rgba(10, 10, 10, .03);
  --sh-2: 0 10px 30px -12px rgba(10, 10, 10, .14), 0 2px 6px -2px rgba(10, 10, 10, .05);
  --sh-3: 0 30px 60px -24px rgba(10, 10, 10, .22), 0 8px 20px -10px rgba(10, 10, 10, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", "Anek Bangla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="bn"] body { line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--acc-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s, color .18s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 10, 10, .6); }
.btn-primary:hover { background: #1f1f1f; box-shadow: 0 12px 26px -10px rgba(10, 10, 10, .55); transform: translateY(-1px); }
.btn-primary .ic { transition: transform .2s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--soft-2); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-light:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #a91f1f; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--acc-soft); transform: translateY(-1px); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn .spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spin { display: inline-block; }
.btn.is-loading .ic { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.btn-block { width: 100%; }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.lang a { min-width: 44px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--mute); transition: background .18s, color .18s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.logo-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 5px var(--acc-soft); }
.logo-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--acc); opacity: 0; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Site nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--mute); transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--ink); background: var(--soft-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 10, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet-panel { position: absolute; top: 0; right: 0; width: min(360px, 100%); height: 100%; background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform .3s var(--ease); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sheet-panel > a:not(.btn) { padding: 14px 8px; font-weight: 700; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.sheet-foot { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Grid background ---------- */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 85%); opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); box-shadow: var(--sh-1); }
.eyebrow b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { margin: 24px 0 0; font-size: clamp(44px, 6.6vw, 88px); line-height: .98; letter-spacing: -.05em; }
html[lang="bn"] .hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.12; letter-spacing: -.01em; }
.hl { position: relative; color: var(--acc); white-space: nowrap; }
.hl svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; color: var(--acc); opacity: .35; }
.hl svg path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { margin-top: 24px; max-width: 520px; font-size: 19px; color: var(--mute); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--mute); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--ok); }

/* Radar */
.radar-stage { position: relative; perspective: 1200px; }
.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-left: auto; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 55%, #fcfcfc 100%); border: 1px solid var(--line); box-shadow: var(--sh-3), inset 0 0 0 10px #fff, inset 0 0 0 11px var(--line); transform-style: preserve-3d; transition: transform .4s var(--ease); }
.radar-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); }
.radar-ring:nth-child(1) { inset: 16%; }
.radar-ring:nth-child(2) { inset: 32%; border-style: solid; }
.radar-ring:nth-child(3) { inset: 46%; }
.radar-axis { position: absolute; inset: 0; }
.radar-axis::before, .radar-axis::after { content: ""; position: absolute; background: var(--line); }
.radar-axis::before { left: 50%; top: 4%; bottom: 4%; width: 1px; }
.radar-axis::after { top: 50%; left: 4%; right: 4%; height: 1px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 80%, rgba(255, 90, 31, .06) 90%, rgba(255, 90, 31, .30)); will-change: transform; }
.radar-sweep::after { content: ""; position: absolute; left: 50%; top: 50%; width: 50%; height: 2px; margin-top: -1px; transform-origin: 0 50%; transform: rotate(-90deg); background: linear-gradient(90deg, rgba(255, 90, 31, .9), rgba(255, 90, 31, 0)); }
.radar-core { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 10px rgba(10, 10, 10, .05), 0 12px 30px -8px rgba(10, 10, 10, .5); }
.blip { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px #fff; transform: scale(.6); opacity: .35; transition: transform .5s var(--ease), opacity .5s; }
.blip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; }
.blip.is-hit { transform: scale(1); opacity: 1; }
.blip.is-hit::after { animation: ping 1.6s var(--ease); }
.radar-badge { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.radar-badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.toasts { position: absolute; left: -24px; top: 12%; display: grid; gap: 12px; width: 260px; pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--sh-2); animation: toastIn .5s var(--ease) both; }
.toast.is-out { animation: toastOut .4s var(--ease) both; }
.toast-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); flex: none; }
.toast b { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.toast span { font-size: 13px; color: var(--mute); line-height: 1.3; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-12px) scale(.96); } }

/* ---------- Marquee ---------- */
.strip { padding: 32px 0 8px; }
.strip-title { text-align: center; font-size: 14px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
html[lang="bn"] .strip-title { text-transform: none; letter-spacing: 0; font-size: 15px; }
.marquee { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.chip .ic { color: var(--acc); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; color: var(--acc-ink); text-transform: uppercase; letter-spacing: .12em; }
html[lang="bn"] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }
.section-head h2 { margin-top: 12px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
html[lang="bn"] .section-head h2 { letter-spacing: 0; line-height: 1.25; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--mute); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.fcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 90, 31, .09), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.fcard:hover::before { opacity: 1; }
.fcard-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-2); color: var(--ink); transition: background .25s, color .25s, transform .25s var(--ease); }
.fcard:hover .fcard-ic { background: var(--acc); color: #fff; transform: rotate(-6deg) scale(1.05); }
.fcard h3 { margin-top: 24px; font-size: 20px; }
.fcard p { margin-top: 8px; color: var(--mute); }

/* How */
.how { background: var(--soft); border-block: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps-line { position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line-2); overflow: hidden; }
.steps-line i { position: absolute; inset: 0; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.steps.in .steps-line i { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 16px; }
.step-n { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-weight: 800; font-size: 20px; color: var(--ink); transition: border-color .4s, background .4s, color .4s; }
.steps.in .step-n { border-color: var(--acc); }
.steps.in .step:last-child .step-n { background: var(--acc); color: #fff; transition-delay: 1.3s; }
.step h3 { margin-top: 24px; font-size: 20px; }
.step p { margin-top: 8px; color: var(--mute); max-width: 300px; margin-inline: auto; }

/* Demo */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.demo h2 { margin-top: 12px; font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.04em; line-height: 1.06; }
html[lang="bn"] .demo h2 { letter-spacing: 0; line-height: 1.25; }
.demo .sub { margin-top: 16px; font-size: 18px; color: var(--mute); }
.prompts { display: grid; gap: 10px; margin-top: 32px; }
.prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; font-weight: 600; color: var(--ink-2); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.prompt:hover { border-color: var(--line-2); box-shadow: var(--sh-1); transform: translateX(4px); }
.prompt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--soft-2); }
.prompt .ic { color: var(--faint); }
.prompt[aria-pressed="true"] .ic { color: var(--acc); }
.chat { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-3); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.chat-head b { display: block; color: var(--ink); line-height: 1.2; }
.chat-head small { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 13px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat-body { height: 340px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background: linear-gradient(#fff, var(--soft)); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: toastIn .35s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.chat-input span { flex: 1; min-height: 24px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-input span:empty::before { content: attr(data-placeholder); color: var(--faint); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden; }
.stat { padding: 40px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.stat:first-child b { color: var(--acc); }
.stat span { display: block; margin-top: 8px; color: var(--mute); font-weight: 600; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--sh-2); border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 700; font-size: 18px; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--soft-2); transition: background .2s, transform .3s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px -6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--acc); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 24px 24px; color: var(--mute); font-size: 16px; max-width: 680px; }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; margin: 0 auto; padding: 96px 32px; border-radius: var(--r-xl); background: var(--ink); color: #fff; text-align: center; isolation: isolate; }
.cta-band .rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px; z-index: -1; }
.cta-band .rings i { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; animation: grow 6s linear infinite; }
.cta-band .rings i:nth-child(2) { animation-delay: -2s; }
.cta-band .rings i:nth-child(3) { animation-delay: -4s; }
@keyframes grow { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.cta-band h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.05; max-width: 820px; margin: 0 auto; }
html[lang="bn"] .cta-band h2 { letter-spacing: 0; line-height: 1.25; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, .72); font-size: 18px; }
.cta-band .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Footer */
.footer { padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-top p { margin-top: 12px; color: var(--mute); max-width: 300px; }
.footer h4 { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding: 6px 0; color: var(--mute); font-weight: 500; transition: color .18s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--faint); font-size: 14px; }

/* Load-in for above-the-fold content: pure CSS, so it never waits on JS. */
.rise { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Reveal (progressive: visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .panel [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.label small { font-weight: 500; color: var(--faint); }
.input, .select { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 16px; color: var(--ink); transition: border-color .18s, box-shadow .18s; appearance: none; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: #cfcfcf; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--soft-2); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--bad-soft); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 76px; }
.reveal-pw { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 700; color: var(--mute); }
.reveal-pw:hover { background: var(--soft-2); color: var(--ink); }
.hint { font-size: 13px; color: var(--mute); }
.err { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bad); }
.caps { display: none; font-size: 13px; font-weight: 600; color: var(--warn); }
.caps.on { display: block; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.meter[data-s="4"] i { background: var(--ok); }
.meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.match { font-size: 13px; font-weight: 600; min-height: 20px; }
.match.ok { color: var(--ok); }
.match.no { color: var(--mute); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 15px; font-weight: 600; }
.alert .ic { margin-top: 2px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); border: 1px solid #fecaca; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; }
.alert-info { background: var(--acc-soft); color: var(--acc-ink); border: 1px solid #fed7c3; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-form { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.auth-form h1 { font-size: 36px; letter-spacing: -.04em; }
html[lang="bn"] .auth-form h1 { letter-spacing: 0; }
.auth-form .sub { margin-top: 8px; color: var(--mute); font-size: 17px; }
.auth-form form { margin-top: 32px; }
.auth-form .alert { margin-top: 24px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 24px; }
.auth-alt { margin-top: 24px; text-align: center; color: var(--mute); }
.auth-alt a { color: var(--ink); font-weight: 700; border-bottom: 1.5px solid var(--acc); padding-bottom: 1px; }
.auth-alt a:hover { color: var(--acc-ink); }
.auth-note { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: center; }
.auth-side { position: relative; overflow: hidden; margin: 12px; border-radius: var(--r-xl); background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; isolation: isolate; }
.auth-side .side-radar { position: absolute; right: -18%; top: -14%; width: 115%; aspect-ratio: 1; border-radius: 50%; z-index: -1; opacity: .9; }
.auth-side .side-radar i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .09); }
.auth-side .side-radar i:nth-child(1) { inset: 0; }
.auth-side .side-radar i:nth-child(2) { inset: 15%; }
.auth-side .side-radar i:nth-child(3) { inset: 30%; }
.auth-side .side-radar i:nth-child(4) { inset: 45%; background: rgba(255, 255, 255, .03); }
.auth-side .side-radar b { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, rgba(255, 90, 31, .08) 82%, rgba(255, 90, 31, .5)); animation: spin 6s linear infinite; }
.auth-side .side-radar em { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 6px rgba(255, 90, 31, .2); animation: blink 2s infinite; }
.auth-side h2 { color: #fff; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.035em; line-height: 1.12; max-width: 460px; }
html[lang="bn"] .auth-side h2 { letter-spacing: 0; line-height: 1.3; }
.auth-side ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .85); font-weight: 600; }
.auth-side li .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--acc); }

/* ---------- Panel (dashboard + admin) ---------- */
.panel > div { min-width: 0; }
.panel { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--soft); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); }
.side .logo { padding: 6px 10px 22px; }
.side .tag { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.side-nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.side-group { margin: 18px 10px 8px; font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
html[lang="bn"] .side-group { text-transform: none; letter-spacing: 0; font-size: 13px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; color: var(--text); transition: background .15s, color .15s; }
.side-link:hover { background: var(--soft-2); color: var(--ink); }
.side-link .ic { color: var(--faint); transition: color .15s; }
.side-link:hover .ic { color: var(--ink); }
.side-link[aria-current="page"] { background: var(--ink); color: #fff; }
.side-link[aria-current="page"] .ic { color: var(--acc); }
.side-link.is-soon { color: var(--faint); cursor: default; }
.side-link.is-soon:hover { background: transparent; color: var(--faint); }
.side-link.is-soon:hover .ic { color: var(--faint); }
.soon { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--soft-2); font-size: 11px; font-weight: 700; color: var(--mute); }
.side-user { position: relative; margin-top: 12px; }
.user-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; }
.user-btn:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.user-btn .meta { flex: 1; min-width: 0; }
.user-btn b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-btn small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-weight: 800; font-size: 14px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.is-admin { background: var(--ink); color: #fff; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-3); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s, transform .18s var(--ease); }
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: 14px; color: var(--text); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--soft-2); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .danger { color: var(--bad); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 32px; background: rgba(250, 250, 250, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mute); min-width: 0; }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.side-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.content { padding: 32px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 30px; letter-spacing: -.035em; }
html[lang="bn"] .page-head h1 { letter-spacing: 0; }
.page-head p { margin-top: 6px; color: var(--mute); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 17px; letter-spacing: -.01em; }
.card-head p { font-size: 14px; color: var(--mute); margin-top: 2px; }
.card-head a.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--mute); }
.card-head a.more:hover { color: var(--ink); }
.card-body { padding: 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--soft); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; justify-content: flex-end; gap: 10px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.kpi { position: relative; padding: 20px 22px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-top span { font-size: 14px; font-weight: 700; color: var(--mute); }
.kpi-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-2); color: var(--ink); }
.kpi b { display: block; margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.kpi.is-acc .kpi-ic { background: var(--acc-soft); color: var(--acc-ink); }
.kpi.is-bad b { color: var(--bad); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: livep 2s infinite; }
@keyframes livep { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 12px; }
.bar { position: relative; flex: 1; min-width: 4px; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--line-2); transform-origin: bottom; animation: barUp .8s var(--ease) both; animation-delay: calc(var(--i) * 18ms); transition: background .15s; }
.bar.has i { background: var(--ink); }
.bar.is-today i { background: var(--acc); }
.bar:hover i { background: var(--acc); }
.bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.bar:hover .tip { opacity: 1; transform: translateX(-50%); }
@keyframes barUp { from { transform: scaleY(0); } }
.chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--faint); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a.row-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.list .meta { flex: 1; min-width: 0; }
.list .meta b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .meta small { display: block; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list time, .list .time { font-size: 13px; color: var(--faint); white-space: nowrap; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line-2); box-shadow: 0 0 0 4px var(--soft-2); }
.ev-dot.success { background: #22c55e; box-shadow: 0 0 0 4px var(--ok-soft); }
.ev-dot.danger { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.ev-dot.accent { background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.empty { padding: 40px 24px; text-align: center; color: var(--mute); }
.empty .ic { margin: 0 auto 12px; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft-2); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-ink { background: var(--ink); color: #fff; }
.badge-ink::before { background: var(--acc); opacity: 1; }
.badge-plain::before { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { height: 42px; padding-left: 42px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft-2); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--mute); transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.tabs a em { font-style: normal; font-size: 12px; padding: 0 6px; border-radius: 6px; background: rgba(10, 10, 10, .06); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
html[lang="bn"] .table th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.table th a { display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--ink); }
.table th a.is-sorted { color: var(--ink); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover { background: var(--soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table .who b { display: block; color: var(--ink); font-weight: 700; }
.table .who small { display: block; color: var(--mute); font-size: 13px; }
.table .muted { color: var(--mute); font-size: 14px; white-space: nowrap; }
.table .chev { color: var(--faint); }
.you { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-ink); font-size: 11px; font-weight: 800; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.pager .pages { display: flex; gap: 6px; }
.pager .pages a, .pager .pages span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); }
.pager .pages a:hover { border-color: var(--ink); }
.pager .pages .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .pages .is-disabled { color: var(--faint); background: var(--soft); }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head h1 { font-size: 26px; }
.profile-head p { color: var(--mute); }
.profile-head .badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; }
.kv dt { color: var(--mute); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.danger-card { border-color: #fecaca; }
.danger-card .card-head h2 { color: var(--bad); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field + .field { margin-top: 0; }
.form-grid .full { grid-column: 1 / -1; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: block; color: var(--ink); }
.setting-row small { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.setting-row .select { width: 200px; }
.flash { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--sh-3); animation: toastIn .4s var(--ease) both; }
.flash .ic { color: #4ade80; }
.flash.is-out { animation: toastOut .4s var(--ease) both; }
.welcome { position: relative; overflow: hidden; padding: 32px; border-radius: var(--r-xl); background: var(--ink); color: #fff; isolation: isolate; }
.welcome h1 { color: #fff; font-size: 32px; letter-spacing: -.035em; }
html[lang="bn"] .welcome h1 { letter-spacing: 0; }
.welcome p { margin-top: 8px; color: rgba(255, 255, 255, .72); max-width: 520px; font-size: 17px; }
.welcome .rings { position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; z-index: -1; }
.welcome .rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); animation: grow 6s linear infinite; }
.welcome .rings i:nth-child(2) { animation-delay: -2s; }
.welcome .rings i:nth-child(3) { animation-delay: -4s; }
.progress { height: 8px; border-radius: 8px; background: var(--soft-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--ink), var(--acc)); transform-origin: left; animation: barW 1s var(--ease) both; }
@keyframes barW { from { transform: scaleX(0); } }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 0; }
.tick { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: transparent; }
.is-done .tick { border-color: var(--ok); background: var(--ok); color: #fff; }
.steps-list .meta { flex: 1; }
.steps-list b { display: block; color: var(--ink); }
.is-done .meta b { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }
.steps-list small { display: block; color: var(--mute); font-size: 14px; }
.module { padding: 22px; position: relative; overflow: hidden; }
.module .fcard-ic { width: 44px; height: 44px; }
.module h3 { margin-top: 16px; font-size: 17px; }
.module p { margin-top: 4px; font-size: 14px; color: var(--mute); }
.module .soon { position: absolute; right: 16px; top: 16px; }

/* ---------- Errors ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; }
.error-page .code { font-size: clamp(96px, 18vw, 180px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--ink); }
.error-page .code span { color: var(--acc); }
.error-page h1 { font-size: 26px; margin-top: 8px; }
.error-page p { margin-top: 8px; color: var(--mute); }
.error-page .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 72px; }
  .radar { margin: 0 auto; max-width: 460px; }
  .toasts { left: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn, .nav-actions .lang { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .wrap { justify-content: space-between; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .panel { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--sh-3); }
  .panel.side-open .side { transform: none; }
  .panel.side-open::after { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 10, .35); }
  .side-toggle { display: inline-flex; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 0 72px; }
  .hero .lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .toasts { width: 220px; left: -4px; top: 4%; }
  .toast { padding: 10px 12px; }
  .toast-ic { width: 32px; height: 32px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .features { grid-template-columns: 1fr; }
  .fcard { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 20px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .chat-body { height: 300px; }
  .cta-band { padding: 72px 20px; border-radius: var(--r-lg); }
  .cta-band .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
  .auth-main { padding: 20px; }
  .auth-form { padding: 32px 0; }
  .auth-form h1 { font-size: 30px; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .g-2, .g-3, .form-grid { grid-template-columns: 1fr; }
  .g-3.kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis .kpi { padding: 16px; }
  .kpis .kpi b { font-size: 28px; margin-top: 10px; }
  .kpis .kpi-top span { font-size: 13px; }
  .kpis .kpi-ic { width: 30px; height: 30px; }
  .topbar .lang a { min-width: 38px; }
  .page-head h1 { font-size: 26px; }
  .table .hide-sm { display: none; }
  .table td, .table th { padding: 12px 14px; }
  .setting-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .setting-row .select { width: 100%; }
  .toolbar { padding: 14px; }
  .search { max-width: none; min-width: 100%; }
  .card-head, .card-body { padding-left: 18px; padding-right: 18px; }
  .list li, .steps-list li { padding-left: 18px; padding-right: 18px; }
  .flash { left: 16px; right: 16px; bottom: 16px; }
  .lang a { height: 40px; }
  .footer ul a { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Fleet ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft-2); color: var(--text); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.acc { background: var(--acc-soft); color: var(--acc-ink); }
.pill.live::before { animation: blink 1.2s infinite; }
.pill.ink { background: var(--ink); color: #fff; }
.pill.ink::before { background: var(--acc); }
.cap { display: grid; gap: 6px; min-width: 120px; }
.cap small { font-size: 12px; font-weight: 700; color: var(--mute); }
.cap-bar { height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.cap-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ink); }
.cap-bar i.hot { background: var(--acc); }
.cap-bar i.full { background: var(--bad); }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 13px; }
.cli { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: #e5e5e5; overflow-wrap: anywhere; line-height: 1.5; }
.cli::before { content: "$"; color: var(--acc); font-weight: 700; }
.cli-label { display: block; margin: 16px 0 6px; font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
html[lang="bn"] .cli-label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drop > summary { list-style: none; cursor: pointer; }
.drop > summary::-webkit-details-marker { display: none; }
.drop[open] > summary .ic-chev { transform: rotate(180deg); }
.drop .ic-chev { transition: transform .2s var(--ease); }
.drop-body { margin-top: 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; }
.inline-form .field + .field { margin-top: 0; }
.banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; margin-bottom: 16px; }
.banner b { color: #fff; }
.banner .grow { flex: 1; min-width: 220px; }
.banner .progress { background: rgba(255, 255, 255, .12); margin-top: 10px; }
.banner small { color: rgba(255, 255, 255, .7); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini { padding: 14px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); }
.mini span { display: block; font-size: 12px; font-weight: 700; color: var(--mute); }
.mini b { display: block; margin-top: 4px; font-size: 20px; color: var(--ink); }
.empty-cta { padding: 48px 24px; text-align: center; }
.empty-cta .ic { margin: 0 auto 14px; color: var(--acc); }
.empty-cta p { color: var(--mute); max-width: 420px; margin: 0 auto 20px; }
.instance-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.instance-card .meta { flex: 1; min-width: 220px; }
.instance-card b { display: block; color: var(--ink); font-size: 18px; }
.instance-card .url { color: var(--mute); font-size: 14px; overflow-wrap: anywhere; }
.err-text { color: var(--bad); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .banner { padding: 16px; }
}
