/* css/style.css — সাথী: পুরো সাইটের স্টাইল (মোবাইল-ফার্স্ট) */

/* ========== ১. ভেরিয়েবল ও রিসেট ========== */
:root {
  --bg: #f5f4fb;
  --surface: #ffffff;
  --surface-2: #f0eefb;
  --text: #22203a;
  --muted: #6b6889;
  --border: #e2def3;
  --primary: #7c4dff;
  --primary-dark: #5b34d6;
  --pink: #ff5fa2;
  --blue: #3fa9ff;
  --green: #22b573;
  --orange: #ff9f43;
  --red: #ef4b5f;
  --grad: linear-gradient(135deg, #8e54e9 0%, #ff5fa2 50%, #3fa9ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(142,84,233,.12), rgba(255,95,162,.12), rgba(63,169,255,.12));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(80, 60, 160, .10);
  --shadow-lg: 0 16px 48px rgba(80, 60, 160, .18);
  --font: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* প্রটেক্টেড পেজ: auth চেক শেষ না হওয়া পর্যন্ত লুকানো */
body.protected { visibility: hidden; }
body.protected.auth-ready { visibility: visible; }

.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;
}

/* ========== ২. লেআউট ও সাধারণ উপাদান ========== */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page { padding: 20px 0 60px; }
.page-title { font-size: 1.6rem; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 20px; }

.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2, .card h3 { margin-bottom: 10px; }

/* বাটন */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(124, 77, 255, .28);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 77, 255, .35); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--primary-dark); box-shadow: none; }
.btn-danger { background: var(--red); box-shadow: 0 6px 18px rgba(239, 75, 95, .28); }
.btn-success { background: var(--green); box-shadow: 0 6px 18px rgba(34, 181, 115, .28); }
.btn-small { min-height: 34px; padding: 4px 14px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ফর্ম */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 77, 255, .18);
}
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-error, .form-success {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .95rem; margin: 10px 0;
}
.form-error { background: #ffe9ec; color: #b3202f; border: 1px solid #ffc9d0; }
.form-success { background: #e4f8ee; color: #137a4b; border: 1px solid #b8ebd0; }

.check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none;
}
.check:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }

/* ব্যাজ */
.badge {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--primary-dark);
}
.badge-green { background: #dcf7ea; color: #137a4b; }
.badge-orange { background: #fff0dc; color: #b06400; }
.badge-red { background: #ffe1e5; color: #b3202f; }
.badge-blue { background: #dff0ff; color: #0f6bb5; }

/* টোস্ট */
.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  background: #2a2745; color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
.toast.error { background: #b3202f; }
.toast.success { background: #137a4b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.loader {
  width: 32px; height: 32px; margin: 30px auto; border-radius: 50%;
  border: 4px solid var(--surface-2); border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== ৩. নেভবার ========== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar-inner { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nav-brand { font-weight: 800; font-size: 1.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none !important; }
.nav-toggle { background: var(--surface-2); border: 0; border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }
.nav-menu { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 12px; }
.nav-menu.open { display: flex; }
.nav-link { padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none !important; }
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--grad); color: #fff; }
.nav-user { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 0; border-top: 1px dashed var(--border); margin-top: 6px; }
.nav-name { font-weight: 700; }
.nav-role { font-size: .8rem; color: var(--muted); }
.btn-logout { margin-left: auto; background: var(--red); box-shadow: none; }

/* ========== ৪. ল্যান্ডিং (index.html) ========== */
body.landing { background: #fffdf8; }
.landing-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid #f1e9ff; }
.landing-nav .inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: inline-grid; place-items: center; color: #fff; font-size: 1rem; }
.landing-links { display: none; gap: 18px; }
.landing-links a { color: var(--text); font-weight: 500; }

/* লুকানো গেট: দেখতে সাধারণ ছোট টেক্সট/লোগোর অংশ */
.gate-trigger {
  background: none; border: 0; padding: 0; margin: 0; cursor: default;
  font: inherit; color: inherit; letter-spacing: inherit; text-decoration: none;
}
.gate-trigger:focus-visible { outline: 2px dashed rgba(124,77,255,.4); outline-offset: 3px; }

.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 72px 16px 90px; background: var(--grad);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: #ffd86b; top: -100px; left: -80px; }
.hero::after { width: 360px; height: 360px; background: #4be0c5; bottom: -140px; right: -100px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 2.1rem; margin-bottom: 12px; text-shadow: 0 4px 20px rgba(0,0,0,.18); }
.hero p { max-width: 640px; margin: 0 auto 22px; font-size: 1.1rem; opacity: .95; }
.hero .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.section { padding: 56px 0; }
.section:nth-of-type(even) { background: var(--grad-soft); }
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.feature { text-align: center; padding: 22px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--primary); }
.feature:nth-child(2n) { border-top-color: var(--pink); }
.feature:nth-child(3n) { border-top-color: var(--blue); }
.feature:nth-child(4n) { border-top-color: var(--orange); }
.feature .emoji { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: center; }
.stat-strip .num { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery .tile { aspect-ratio: 4/3; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; text-align: center; padding: 10px; }
.tile.t1 { background: linear-gradient(135deg, #7c4dff, #3fa9ff); }
.tile.t2 { background: linear-gradient(135deg, #ff5fa2, #ff9f43); }
.tile.t3 { background: linear-gradient(135deg, #22b573, #3fa9ff); }
.tile.t4 { background: linear-gradient(135deg, #ff9f43, #ef4b5f); }
.landing-footer { background: #241f45; color: #cfc9f5; text-align: center; padding: 26px 16px; }

/* গেট মডাল */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 15, 50, .55);
  display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px);
}
.modal { width: min(100%, 380px); background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 12px; }
.modal .row { justify-content: flex-end; margin-top: 12px; }

/* ========== ৫. লগইন (login.html) ========== */
body.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #6a3df0 0%, #ff5fa2 48%, #3fa9ff 100%);
  background-size: 200% 200%; animation: bgShift 16s ease infinite;
}
@keyframes bgShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* জলছাপ: "S H A T H I" উল্টো করে ছড়ানো, কম opacity, ধীরে ভাসমান */
.watermarks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wm {
  position: absolute; font-weight: 800; letter-spacing: .35em; white-space: nowrap;
  color: #fff; opacity: .09; user-select: none;
  font-size: clamp(1.4rem, 5vw, 3rem);
  transform: rotate(var(--r, 180deg));
  animation: wmFloat var(--d, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes wmFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 180deg)); }
  50% { transform: translate3d(var(--x, 20px), var(--y, -24px), 0) rotate(var(--r, 180deg)); }
}

.login-card {
  position: relative; z-index: 1; width: min(100%, 400px);
  padding: 64px 28px 32px; margin-top: 40px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 60px rgba(40, 20, 120, .35), inset 0 1px 0 rgba(255,255,255,.5);
  border-radius: 46% 54% 44% 56% / 8% 8% 6% 6%;
  border-radius: 38px 62px 44px 58px;
  color: #fff; text-align: center;
}
.login-avatar {
  position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #efe6ff);
  border: 4px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(40,20,120,.35);
  display: grid; place-items: center; font-size: 2.6rem;
}
.login-title { font-size: 1.7rem; font-weight: 700; margin: 6px 0 22px; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.login-field { position: relative; margin-bottom: 16px; }
.login-field .icon-badge {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; font-size: 1.05rem; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.login-input {
  width: 100%; height: 52px; padding: 0 18px 0 58px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.22); color: #fff; outline: none;
}
.login-input::placeholder { color: rgba(255,255,255,.8); }
.login-input:focus { background: rgba(255,255,255,.32); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.btn-login {
  width: 100%; height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; letter-spacing: .2em; color: #fff;
  background: linear-gradient(90deg, #ff5fa2, #8e54e9, #3fa9ff);
  box-shadow: 0 10px 26px rgba(30, 10, 100, .4); transition: transform .15s, opacity .15s;
}
.btn-login:hover { transform: translateY(-2px); }
.btn-login:disabled { opacity: .6; cursor: wait; }
.login-error { background: rgba(255, 233, 236, .95); color: #b3202f; border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; font-size: .92rem; }

/* ========== ৬. ড্যাশবোর্ড ও টাস্ক প্ল্যানার ========== */
.stat-card { text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  font-weight: 600; box-shadow: var(--shadow); text-decoration: none !important; transition: transform .15s;
}
.quick-link:hover { transform: translateY(-2px); }
.quick-link .emoji { font-size: 1.6rem; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.tab-btn {
  flex: none; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--primary-dark); font-weight: 600; min-height: 42px;
}
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(124,77,255,.3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.planner-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.planner-period { font-weight: 700; font-size: 1.1rem; min-width: 150px; text-align: center; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: var(--radius-sm);
}
.task-item.done { opacity: .6; border-left-color: var(--green); }
.task-item.done .task-title { text-decoration: line-through; }
.task-item.overdue { border-left-color: var(--red); }
.task-item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green); margin-top: 3px; flex: none; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; word-break: break-word; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.task-actions { display: flex; gap: 6px; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-weight: 700; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 58px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: .8rem; cursor: pointer; }
.cal-cell.other { opacity: .4; }
.cal-cell.today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(124,77,255,.25); }
.cal-cell .dots { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 2px; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.cal-dot.done { background: var(--green); }

/* ========== ৭. প্রোফাইল (CV লেআউট) ========== */
.cv { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cv-side { background: var(--grad); color: #fff; padding: 26px 20px; text-align: center; }
.cv-photo { width: 130px; height: 130px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.7); background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 3rem; }
.cv-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.cv-roles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 8px 0 16px; }
.cv-roles .badge { background: rgba(255,255,255,.25); color: #fff; }
.cv-contact { text-align: left; font-size: .95rem; display: grid; gap: 8px; }
.cv-contact div { word-break: break-word; }
.cv-main { padding: 22px 20px; }
.cv-section { margin-bottom: 22px; }
.cv-section h3 { color: var(--primary-dark); border-bottom: 2px solid var(--surface-2); padding-bottom: 6px; }
.cv-item { margin-bottom: 10px; }
.cv-item .cv-item-title { font-weight: 700; }
.pre-line { white-space: pre-line; word-break: break-word; }

/* ========== ৮. রিপোর্ট ফর্ম (ধাপে ধাপে) ========== */
.stepper { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.step-dot {
  flex: 1; min-width: 34px; height: 8px; border-radius: 999px; background: var(--border);
}
.step-dot.done { background: var(--green); }
.step-dot.current { background: var(--primary); }
.step-count { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.step-title { font-size: 1.3rem; margin-bottom: 14px; }
.check-list { display: grid; gap: 8px; margin-bottom: 14px; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.photo-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 1; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.report-doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; }
.report-doc h2 { text-align: center; color: var(--primary-dark); }
.report-doc .report-meta { text-align: center; color: var(--muted); margin-bottom: 16px; }
.report-doc h3 { margin-top: 18px; padding-bottom: 4px; border-bottom: 2px solid var(--surface-2); }
.report-doc ul { padding-left: 20px; margin: 6px 0 10px; }

/* ========== ৯. রিপোর্ট তালিকা ========== */
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.report-card { display: flex; flex-direction: column; gap: 6px; }
.report-card .date { font-weight: 700; color: var(--primary-dark); }

/* ========== ১০. চ্যাট ========== */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 380px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); align-self: flex-start; word-break: break-word; }
.msg.own { align-self: flex-end; background: var(--grad); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: .78rem; margin-bottom: 2px; opacity: .85; }
.msg-name { font-weight: 700; }
.msg-text { white-space: pre-wrap; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.chat-form .input { flex: 1; border-radius: 999px; }
.day-sep { align-self: center; font-size: .78rem; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; }

/* ========== ১১. দায়িত্ব ========== */
.duty-card { display: flex; gap: 12px; align-items: flex-start; }
.duty-card.done { opacity: .65; }
.duty-card.done .duty-title { text-decoration: line-through; }
.duty-card input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--green); margin-top: 3px; flex: none; }
.duty-title { font-weight: 700; }

/* ========== ১২. অ্যাডমিন ========== */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-size: .9rem; white-space: nowrap; }
.role-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.role-checks .check { padding: 6px 10px; }
.kanban { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kanban-col { background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.kanban-col h3 { font-size: 1rem; }
.work-card { background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; border-left: 5px solid var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.work-card.p-high { border-left-color: var(--red); }
.work-card.p-medium { border-left-color: var(--orange); }
.work-card.p-low { border-left-color: var(--green); }

/* ========== ১৩. প্রিন্ট ========== */
@media print {
  .navbar, .step-nav, .btn, .toast-wrap { display: none !important; }
  body { background: #fff; }
  .report-doc { border: 0; box-shadow: none; }
}

/* ========== ১৪. বড় স্ক্রিন ========== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .quick-links { grid-template-columns: repeat(4, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .kanban { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 110px 16px 130px; }
  .hero h1 { font-size: 3rem; }
  .landing-links { display: flex; }
  .cv { grid-template-columns: 280px 1fr; }
  .cv-side { text-align: center; }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .cal-cell { min-height: 86px; }

  /* নেভবার: ডেস্কটপে সারিতে */
  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; flex-direction: row; align-items: center; width: auto; padding: 0; flex-wrap: wrap; }
  .nav-user { border-top: 0; margin-top: 0; padding: 0 0 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}