/* ═══════════════════════════════════════════════════════════
   مدیریت پروژه به روش هشت‌برگ (۹×۸×۸) — استایل اصلی
   طراحی: رحمان محسن بیگی | وب‌سایت: bigi.ir | سامانه: task.bigi.ir
   تم رنگی: آبی کربنی (اصلی) · نارنجی (مکمل) · سفید (زمینه)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* زمینه سفید */
  --bg:        #FFFFFF;
  --bg-2:      #F4F8FC;   /* سفیدِ مایل به آبی برای نواحی ثانویه */
  --card:      #FFFFFF;
  --track:     #EAF1F8;

  /* متن */
  --ink:       #10263F;   /* آبی کربنی خیلی تیره */
  --ink-2:     #43596F;
  --muted:     #7E93A8;
  --line:      #DFE8F2;

  /* رنگ اصلی: آبی کربنی */
  --primary:      #16395F;
  --primary-2:    #265A8E;
  --primary-deep: #0B1F36;

  /* رنگ مکمل: نارنجی */
  --accent:    #F97316;
  --accent-2:  #FB923C;
  --accent-soft: #FFF1E6;

  /* رنگ‌های کمکی */
  --ok:        #14A06B;
  --danger:    #E5484D;
  --orange:    #F97316;
  --red:       #E5484D;
  --green:     #14A06B;
  --blue:      #2B6CB0;
  --violet:    #7C3AED;

  --radius:    24px;
  --radius-sm: 14px;
  --shadow:    0 10px 30px rgba(16, 42, 74, .10);
  --shadow-lg: 0 24px 60px rgba(16, 42, 74, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* صفت hidden همیشه بر نمایش flex/گرید اولویت دارد */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── حباب‌های تزئینی پس‌زمینه (آبی و نارنجی ملایم روی سفید) ─── */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .30; }
.bg-blobs .b1 { width: 420px; height: 420px; background: #CFE3F7; top: -140px; right: -100px; }
.bg-blobs .b2 { width: 360px; height: 360px; background: #FFE1C7; bottom: -120px; left: -80px; }
.bg-blobs .b3 { width: 260px; height: 260px; background: #DCE9FB; top: 30%; left: 12%; opacity: .26; }
.bg-blobs .b4 { width: 300px; height: 300px; background: #FFE9D2; bottom: 12%; right: 8%; opacity: .26; }

b { font-weight: 700; }

/* ═══════════ نوار بالا ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(14px, 4vw, 36px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text b { font-size: 15.5px; color: var(--primary); }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .5px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 6px; box-shadow: var(--shadow);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.35; }
.user-meta b { font-size: 13px; }
.user-meta small { color: var(--muted); font-size: 11px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════ دکمه‌ها ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border-radius: 999px; padding: 10px 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

/* دکمه اصلی: آبی کربنی */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 8px 20px rgba(22, 57, 95, .35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(22, 57, 95, .45); transform: translateY(-1px); }

.btn-ghost {
  background: var(--card); color: var(--primary);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
  background: #FDECEC; color: var(--danger); border: 1px solid #F6C6C8;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-block { width: 100%; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  cursor: pointer; transition: all .18s; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* نشان شمارنده: نارنجی (رنگ مکمل) */
.badge {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ═══════════ صفحه ورود ═══════════ */
.login-body { display: flex; flex-direction: column; }

.login-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px; gap: 22px;
}

.login-card {
  width: min(480px, 100%);
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 34px 30px; border: 1px solid var(--line);
}

.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.brand-title { font-size: 21px; color: var(--primary); line-height: 1.5; }
.brand-sub { color: var(--ink-2); font-size: 13px; }
.brand-by { color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand-by a { color: var(--accent); text-decoration: none; font-weight: 700; }
.brand-by a:hover { text-decoration: underline; }

.feature-list { list-style: none; margin: 4px 0 22px; display: grid; gap: 9px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 14px;
}
.feature-list b { color: var(--ink); }
.feat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--primary)); flex: 0 0 auto; }

/* جعبه تضمین حریم خصوصی */
.privacy-box {
  display: flex; gap: 10px; align-items: flex-start;
  background: linear-gradient(135deg, #F0F7FD, #FFF4EA);
  border: 1px solid #CFE3F4;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 16px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.9;
}
.privacy-box svg { flex: 0 0 auto; color: var(--primary); margin-top: 3px; }
.privacy-box b { color: var(--primary); }
.privacy-box .o { color: var(--accent); font-weight: 700; }

.alert {
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; margin-bottom: 16px;
  line-height: 1.9;
}
.alert-danger { background: #FDECEC; color: #B3261E; border: 1px solid #F6C6C8; }
.alert-warn   { background: #FFF6E9; color: #96590A; border: 1px solid #F8DDB5; }
.alert code { font-size: 12px; background: rgba(16, 42, 74, .06); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 20px;
  background: #fff; color: #3c4043; text-decoration: none; font-weight: 600; font-size: 14.5px;
  border: 1px solid #DADCE0; border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(16, 42, 74, .10);
  transition: box-shadow .2s, transform .2s;
}
.btn-google:hover { box-shadow: 0 8px 22px rgba(16, 42, 74, .18); transform: translateY(-1px); }
.btn-google.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.login-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.9; }
.login-note code, .demo-form code { font-size: 11px; background: rgba(16, 42, 74, .06); padding: 1px 5px; border-radius: 5px; direction: ltr; display: inline-block; }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.demo-form { display: grid; gap: 12px; }

.field { display: grid; gap: 6px; }
.field span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(38, 90, 142, .14);
}
.field input[dir="ltr"] { text-align: left; }

.login-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding-bottom: 26px; line-height: 2; }
.login-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.login-footer a:hover { text-decoration: underline; }
.login-footer .privacy-inline { color: var(--primary); font-size: 11.5px; }

/* ═══════════ ساختار صفحه اصلی ═══════════ */
.app-main { max-width: 1180px; margin: 0 auto; padding: 26px clamp(14px, 4vw, 36px) 40px; }

.breadcrumb {
  max-width: 1180px; margin: 0 auto; padding: 16px clamp(14px, 4vw, 36px) 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--ink-2);
}
.breadcrumb:empty { display: none; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--primary); border-color: var(--primary); }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .here { font-weight: 700; color: var(--ink); padding: 4px 10px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; }
.page-head p { color: var(--ink-2); font-size: 13px; }
.overall-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; box-shadow: var(--shadow); font-size: 13px;
}
.overall-chip b { font-size: 16px; }

/* ═══════════ شبکه داشبورد (۹ جایگاه) ═══════════ */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.project-card {
  position: relative;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 6px;
  background: var(--pc, var(--primary));
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.pc-desc {
  color: var(--ink-2); font-size: 12.5px; min-height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pc-actions { display: flex; gap: 6px; }

.empty-slot {
  min-height: 190px; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-family: inherit; font-size: 14px; transition: all .2s;
}
.empty-slot:hover { border-color: var(--primary); color: var(--primary); background: #fff; transform: translateY(-3px); }
.empty-slot .plus {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════ مربع جادویی ۳×۳ ═══════════ */
.magic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 8px;
}
.cell {
  position: relative;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 20px; padding: 16px;
  min-height: 168px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  box-shadow: 0 4px 14px rgba(16, 42, 74, .07);
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--pc, var(--primary)); }

.cell.center {
  cursor: default;
  border: 2px solid var(--pc, var(--primary));
  background:
    linear-gradient(155deg, #FFFFFF 30%, var(--pc-soft, var(--accent-soft)) 100%);
  box-shadow: 0 16px 40px rgba(16, 42, 74, .14);
  min-height: 200px;
  justify-content: center;
}
.cell.center:hover { transform: none; }

.cell-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.cell.center .cell-title { font-size: 18px; }
.cell-desc {
  color: var(--ink-2); font-size: 11.5px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cell.center .cell-desc { font-size: 13px; -webkit-line-clamp: 3; }

.cell-ring { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

.cell-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }

.cell-corner { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 4px; z-index: 2; }
.cell-corner .icon-btn { width: 28px; height: 28px; background: rgba(255,255,255,.92); }

.done-flag {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* نوار پیشرفت */
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pc, var(--primary)), var(--pc2, var(--primary-2)));
  transition: width .7s cubic-bezier(.2, .8, .2, 1);
}
.pct { font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 42px; text-align: center; }
.cell.center .pct { font-size: 14px; }

/* حلقه درصد */
.ring { flex: 0 0 auto; }
.ring-track { fill: none; stroke: var(--track); }
.ring-fill { fill: none; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.ring-txt { font-family: inherit; font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }

/* چیپ شاخص‌ها */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600;
  border-radius: 999px; padding: 2.5px 8px;
  background: color-mix(in srgb, var(--c) 12%, white);
  color: color-mix(in srgb, var(--c) 75%, black);
  border: 1px solid color-mix(in srgb, var(--c) 25%, white);
}
.chip svg { width: 11px; height: 11px; }
.chip .v { font-weight: 800; }

/* ═══════════ کشوی کارهای اولویت‌دار ═══════════ */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 90;
  width: min(440px, 94vw); height: 100vh; height: 100dvh;
  background: var(--card); box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 15px; }
.drawer-head small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; display: grid; gap: 10px; align-content: start; }

.todo-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; display: grid; gap: 8px; background: #FBFDFF;
}
.todo-top { display: flex; align-items: center; gap: 8px; }
.todo-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); flex: 0 0 auto; }
.todo-title { font-size: 13.5px; font-weight: 700; flex: 1; }
.todo-path { font-size: 11px; color: var(--muted); }
.todo-row { display: flex; align-items: center; gap: 8px; }
.todo-row .bar { height: 8px; }
.todo-pct-input { width: 64px; }
.todo-pct-input input {
  width: 100%; font-family: inherit; font-size: 13px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 2px;
  background: var(--bg-2); color: var(--ink);
}
.todo-pct-input input:focus { outline: none; border-color: var(--primary); }

.drawer-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 13.5px; }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11, 31, 54, .35); backdrop-filter: blur(3px);
}

/* ═══════════ مودال ═══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 31, 54, .42); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  width: min(600px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  animation: pop .28s cubic-bezier(.2, .8, .3, 1.2);
}
@keyframes pop { from { transform: scale(.92) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal h3 { font-size: 17px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.modal form { display: grid; gap: 14px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 6px; }

/* انتخاب رنگ پروژه */
.color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.color-swatch {
  width: 34px; height: 34px; border-radius: 12px; border: 3px solid transparent;
  cursor: pointer; transition: transform .15s, border-color .15s; padding: 0;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.active { border-color: var(--ink); transform: scale(1.1); }
.color-custom {
  width: 34px; height: 34px; border: 1.5px dashed var(--line); border-radius: 12px;
  background: none; cursor: pointer; padding: 2px;
}

/* اسلایدرها */
.slider-field { display: grid; gap: 4px; }
.slider-head { display: flex; align-items: center; justify-content: space-between; }
.slider-head label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.slider-head label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.slider-head output { font-size: 13px; font-weight: 800; color: var(--c); min-width: 26px; text-align: center; }
input[type="range"] { width: 100%; accent-color: var(--c, var(--primary)); cursor: pointer; height: 22px; }

/* یادداشت وزن: نارنجی ملایم (رنگ مکمل) */
.weight-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px dashed #F6C79A; color: #9A4E00;
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 12px; line-height: 1.9;
}
.weight-note b { color: #7C3D00; }

/* ═══════════ توست ═══════════ */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; }
.toast {
  background: var(--primary-deep); color: #EAF3FC; font-size: 13.5px;
  border-radius: 999px; padding: 10px 22px; box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.2,.8,.2,1);
  max-width: min(92vw, 520px); text-align: center;
}
.toast.err { background: #B3261E; }
.toast.ok  { background: var(--ok); color: #fff; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ═══════════ نوار حالت آزمایشی ═══════════ */
.demo-strip {
  max-width: 1180px; margin: 14px auto 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #F0F7FD; color: #1D4E79; border: 1px solid #CFE3F4;
  border-radius: var(--radius-sm); font-size: 12.5px;
  width: calc(100% - 2 * clamp(14px, 4vw, 36px));
}
.demo-strip .icon-btn { width: 26px; height: 26px; margin-inline-start: auto; }

/* ═══════════ پاورقی ═══════════ */
.app-footer {
  text-align: center; color: var(--muted); font-size: 12.5px;
  padding: 10px 16px 26px; line-height: 2.1;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.app-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.app-footer a:hover { text-decoration: underline; }
.app-footer .privacy-note {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 16px; margin-top: 8px;
  color: var(--primary); font-size: 11.5px;
}
.app-footer .privacy-note b.o { color: var(--accent); }

/* ═══════════ حالت خالی / بارگذاری ═══════════ */
.blank {
  text-align: center; color: var(--muted); padding: 60px 10px;
}

/* ═══════════ واکنش‌گرا ═══════════ */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .user-meta { display: none; }
}
@media (max-width: 620px) {
  .dash-grid { grid-template-columns: 1fr; }
  .magic { gap: 10px; }
  .cell { min-height: 150px; padding: 13px; }
  .cell.center { min-height: 176px; }
  .cell-desc { -webkit-line-clamp: 1; }
  .page-head { flex-direction: column; align-items: stretch; }
  #todoBtn span.badge { margin-inline-start: 2px; }
  #todoBtn { font-size: 0; gap: 6px; }
  #todoBtn .badge { font-size: 11px; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 13.5px; }
}
