/* ──────────────────────────────────────────────────────────────
   teen.css — ظاهر ارزیابی و نقشهٔ رشد تیناپ
   موبایل‌اول، راست‌چین. عمداً بدون رنگ هشدار و بدون حسِ «امتحان».

   رنگ‌ها از teen-ds.css می‌آیند. اینجا فقط نام‌های محلی به توکن‌های
   سیستم وصل می‌شوند — پس با عوض‌شدن هویت، این صفحه‌ها هم با آن
   جلو می‌آیند و هیچ رنگی در دو جا تعریف نمی‌شود.
   ────────────────────────────────────────────────────────────── */

.tn {
  --ink:      var(--t-ink,    #26343D);
  --ink-2:    var(--t-ink-2,  #596770);
  --ink-3:    var(--t-ink-3,  #7A878F);
  --line:     var(--t-line,   #DFE6E5);
  --surface:  var(--t-paper,  #ffffff);
  --bg:       var(--t-cream,  #FAF8F4);
  --brand:    var(--t-teal,   #287D80);
  --area:     var(--brand);
  --r:        var(--t-r-card, 20px);
  --shadow:   var(--t-sh, 0 1px 2px rgba(38,52,61,.05), 0 14px 32px -20px rgba(38,52,61,.32));

  direction: rtl;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 16px 70px;
  color: var(--ink);
  font-family: Vazirmatn, "Vazirmatn FD", Tahoma, system-ui, sans-serif;
  line-height: 2;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x:hidden;
}

/* پس‌زمینهٔ نرم که با رنگ حوزهٔ جاری عوض می‌شود */
.tn-assess {
  background:
    radial-gradient(120% 55% at 50% -8%, color-mix(in srgb, var(--area) 13%, transparent), transparent 70%);
  transition: background .5s ease;
  border-radius: 28px;
}

.tn-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

.tn-h1 { font-size: 26px; line-height: 1.6; margin: 10px 0 12px; font-weight: 800; letter-spacing: -.2px; }
.tn-lead { color: var(--ink-2); margin: 0 0 4px; font-size: 15px; }
.tn-sub  { color: var(--ink-3); font-size: 13.5px; margin: 10px 0 0; }

.tn-chip {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--area); background: color-mix(in srgb, var(--area) 11%, transparent);
  border-radius: 999px; padding: 4px 13px;
}

/* ── خوش‌آمد ── */
.tn-intro-text { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.tn-facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.tn-facts li { display: flex; gap: 13px; align-items: flex-start; }
.tn-facts span {
  flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand); font-weight: 800; font-size: 15px; margin-top: 4px;
}
.tn-facts div { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.tn-facts b { display: block; color: var(--ink); font-size: 15px; }
.tn-facts i { font-style: normal; font-weight: 700; color: var(--ink); }

/* ── دکمه ── */
.tn-btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--brand); color: #fff; font: 700 15px/1 inherit;
  padding: 15px 26px; border-radius: 14px;
  transition: transform .12s ease, background .2s ease;
}
.tn-btn:hover { background: #2369bd; color: #fff; }
.tn-btn:active { transform: scale(.985); }
.tn-btn-lg { width: 100%; padding: 17px; font-size: 16px; }
.tn-btn-ghost {
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
}
.tn-btn-ghost:hover { background: #fff; color: var(--ink); }

/* ── نوار پیشرفت (بدون نمره) ── */
.tn-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tn-nums {
  flex: 1; display: flex; gap: 5px; overflow-x: auto; padding: 5px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tn-nums::-webkit-scrollbar { display: none; }
.tn-num {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink-3); font: 700 12.5px/1 inherit; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.tn-num:hover { border-color: color-mix(in srgb, var(--nc, var(--brand)) 50%, var(--line)); }
/* جواب‌داده‌شده: رنگ حوزهٔ خودش */
.tn-num.on {
  background: color-mix(in srgb, var(--nc) 14%, #fff);
  border-color: color-mix(in srgb, var(--nc) 45%, transparent);
  color: var(--nc);
}
/* سؤال جاری: پررنگ و کمی بزرگ‌تر — بعد از .on می‌آید تا بر آن غلبه کند */
.tn-num.now {
  background: var(--nc); border-color: var(--nc); color: #fff;
  transform: scale(1.14);
  box-shadow: 0 3px 11px -3px color-mix(in srgb, var(--nc) 70%, transparent);
}
.tn-count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-back {
  width: 38px; height: 38px; flex: none; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; color: var(--ink-2); font-size: 17px; line-height: 1;
}
.tn-back:hover { color: var(--ink); border-color: rgba(27,32,48,.2); }

/* ── کارت سؤال ── */
.tn-qcard { padding: 24px 22px 20px; }
.tn-area {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--area);
  background: color-mix(in srgb, var(--area) 11%, transparent);
  border-radius: 999px; padding: 4px 13px; margin-bottom: 14px;
}
.tn-q { font-size: 19px; line-height: 1.85; font-weight: 700; margin: 0 0 20px; }

.tn-opts { display: grid; gap: 9px; }
.tn-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 12px 15px;
  background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 14px;
  font: 600 15px/1.7 inherit; color: var(--ink); text-align: right; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.tn-opt:hover { border-color: color-mix(in srgb, var(--area) 45%, var(--line)); background: #fff; }
.tn-opt:active { transform: scale(.994); }
.tn-opt .tn-dot {
  flex: 0 0 21px; height: 21px; border-radius: 50%;
  border: 2px solid rgba(27,32,48,.22); transition: all .15s ease;
}
.tn-opt .tn-lab { flex: 1; }
.tn-opt em {
  font-style: normal; font-size: 11.5px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px;
}
.tn-opt.sel { border-color: var(--area); background: color-mix(in srgb, var(--area) 7%, #fff); }
.tn-opt.sel .tn-dot { border-color: var(--area); background: var(--area); box-shadow: inset 0 0 0 3.5px #fff; }
.tn-opt.sel em { opacity: 0; }

.tn-hint { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 16px 0 0; }
@media (hover: none) { .tn-hint { display: none; } }

/* ورود کارت */
@keyframes tnInR { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes tnInL { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.tn-qcard.in-r { animation: tnInR .26s cubic-bezier(.22,.9,.3,1); }
.tn-qcard.in-l { animation: tnInL .26s cubic-bezier(.22,.9,.3,1); }
@keyframes tnNudge { 0%,100% { transform: none; } 25% { transform: translateX(7px); } 75% { transform: translateX(-7px); } }
.tn-qcard.nudge { animation: tnNudge .4s ease; }

/* ── در حال ثبت ── */
.tn-sending { text-align: center; padding: 50px 24px; color: var(--ink-2); }
.tn-spin {
  width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid rgba(27,32,48,.12); border-top-color: var(--brand);
  animation: tnSpin .8s linear infinite;
}
@keyframes tnSpin { to { transform: rotate(360deg); } }
.tn-err { color: #b3261e; font-size: 14.5px; }

/* ══════════════ نقشهٔ رشد ══════════════ */
.tn-maphead { margin-bottom: 22px; }
.tn-note {
  background: #fff8e6; border: 1px solid #f0dfb4; border-radius: 13px;
  padding: 12px 15px; font-size: 14px; color: #6b5516; margin-bottom: 18px;
}
.tn-note a { color: #6b5516; font-weight: 700; }
.tn-note-ok { background: #ecf7ec; border-color: #c6e3c6; color: #255b25; }

.tn-domains { display: grid; gap: 13px; margin-bottom: 26px; }
.tn-dom {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 17px 18px 15px; box-shadow: var(--shadow);
}
.tn-dom-aside { background: #fafbfd; box-shadow: none; }
.tn-dom-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tn-dom-top h2 { font-size: 16px; font-weight: 700; margin: 0; }
.tn-score { font-size: 22px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.tn-score i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tn-score-na { color: var(--ink-3); }

.tn-track {
  height: 9px; border-radius: 6px; background: rgba(27,32,48,.07);
  margin: 12px 0 9px; overflow: hidden;
}
.tn-fill {
  display: block; height: 100%; border-radius: 6px; background: var(--c);
  animation: tnGrow .75s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes tnGrow { from { width: 0 !important; } }

.tn-dom-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tn-band { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.tn-band-na { font-weight: 600; color: var(--ink-3); }
.tn-aside-tag { font-size: 11.5px; color: var(--ink-3); }

.tn-strengths, .tn-goals, .tn-trend {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.tn-strengths h3, .tn-goals h3, .tn-trend h3 { font-size: 17px; margin: 0 0 10px; font-weight: 800; }

.tn-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-pill {
  font-size: 14px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border-radius: 999px; padding: 6px 15px;
}

/* ── انتخاب هدف ── */
.tn-picks { display: grid; gap: 10px; margin: 16px 0 14px; }
.tn-pick {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px;
  background: #fbfcfe; transition: border-color .15s ease, background .15s ease;
}
.tn-pick:hover { background: #fff; border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tn-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tn-tick {
  flex: 0 0 22px; height: 22px; border-radius: 7px;
  border: 2px solid rgba(27,32,48,.22); position: relative; transition: all .15s ease;
}
.tn-pick input:checked ~ .tn-tick { background: var(--c); border-color: var(--c); }
.tn-pick input:checked ~ .tn-tick::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.tn-pick input:checked ~ .tn-pick-body b { color: var(--c); }
.tn-pick-body { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tn-pick-body b { font-size: 15px; font-weight: 700; }
.tn-pick-body em {
  font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); border-radius: 999px; padding: 2px 10px;
}

.tn-custom { display: block; margin-bottom: 18px; }
.tn-custom span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.tn-custom input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 13px;
  font: 400 15px/1.7 inherit; background: #fbfcfe; color: var(--ink);
}
.tn-custom input:focus { outline: 0; border-color: var(--brand); background: #fff; }
.tn-limit { font-size: 13px; color: #b3261e; margin: 0 0 12px; }

/* ── روند ── */
.tn-trend-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.tn-trend-row:last-of-type { border-bottom: 0; }
.tn-trend-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.tn-trend-nums { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tn-delta {
  min-width: 46px; text-align: center; font-size: 13px; font-weight: 800;
  border-radius: 999px; padding: 3px 9px; color: var(--ink-3); background: rgba(27,32,48,.06);
  font-variant-numeric: tabular-nums;
}
.tn-delta.up   { color: #1f6f3f; background: rgba(31,111,63,.1); }
.tn-delta.down { color: #8a5a1f; background: rgba(138,90,31,.1); }

.tn-mapfoot { display: grid; gap: 14px; justify-items: center; margin-top: 26px; text-align: center; }
.tn-fine { font-size: 12px; color: var(--ink-3); line-height: 1.9; max-width: 460px; }

/* ── دسکتاپ ── */
@media (min-width: 720px) {
  .tn { padding: 40px 20px 80px; }
  .tn-h1 { font-size: 30px; }
  .tn-q { font-size: 21px; }
  .tn-domains { grid-template-columns: 1fr 1fr; }
  .tn-dom-aside { grid-column: 1 / -1; }
}

/* ── احترام به کاهش حرکت ── */
@media (prefers-reduced-motion: reduce) {
  .tn *, .tn *::before, .tn *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

/* ══════════════ مسیر من ══════════════ */
.tn-stats { display: flex; gap: 10px; margin-bottom: 20px; }
.tn-stat {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow);
}
.tn-stat b { display: block; font-size: 23px; font-weight: 800; line-height: 1.3; }
.tn-stat span { font-size: 12.5px; color: var(--ink-3); }

.tn-empty { text-align: center; }
.tn-empty .tn-btn { margin-top: 18px; }

.tn-track-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
  border-top: 3px solid var(--c);
}
.tn-track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tn-track-head h2 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.tn-track-meta { font-size: 12.5px; color: var(--ink-3); }

.tn-ring {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(27,32,48,.09) 0);
  position: relative;
}
.tn-ring::before { content: ""; position: absolute; inset: 5px; background: var(--surface); border-radius: 50%; }
.tn-ring i { position: relative; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--c); }

.tn-next {
  margin-top: 16px; padding: 17px; border-radius: 15px;
  background: color-mix(in srgb, var(--c) 6%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--c) 22%, transparent);
  transition: transform .3s ease;
}
.tn-next .tn-area { --area: var(--c); margin-bottom: 9px; }
.tn-next h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.tn-next p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.tn-next .tn-btn { background: var(--c); }
.tn-next .tn-btn:hover { filter: brightness(.93); }
.tn-pts { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0 !important; }
.tn-next.celebrate { transform: scale(1.015); }

.tn-resp {
  width: 100%; margin-bottom: 13px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font: 400 14.5px/1.9 inherit;
  color: var(--ink); resize: vertical;
}
.tn-resp:focus { outline: 0; border-color: var(--c); }
.tn-rest { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; }

.tn-timeline { margin-top: 16px; }
.tn-timeline summary {
  cursor: pointer; font-size: 13.5px; color: var(--ink-2); font-weight: 600;
  padding: 7px 0; list-style: none;
}
.tn-timeline summary::-webkit-details-marker { display: none; }
.tn-timeline summary::before { content: "▾ "; color: var(--ink-3); }
.tn-timeline[open] summary::before { content: "▴ "; }
.tn-timeline ol { list-style: none; padding: 0; margin: 8px 0 0; }
.tn-timeline li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.tn-timeline li:last-child { border-bottom: 0; }
.tn-day { flex: 0 0 56px; color: var(--ink-3); font-size: 12px; }
.tn-stitle { flex: 1; }
.tn-sstate { font-size: 12px; color: var(--ink-3); }
li.st-done .tn-stitle { color: var(--ink-3); text-decoration: line-through; }
li.st-done .tn-sstate { color: #1f6f3f; }
li.st-open .tn-stitle { font-weight: 700; }
li.st-open .tn-sstate { color: var(--c); font-weight: 700; }
li.st-locked { opacity: .55; }

.tn-badges { display: grid; gap: 10px; }
.tn-badge {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe;
}
.tn-badge-dot {
  flex: 0 0 14px; height: 14px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent);
}
.tn-badge b { font-size: 14.5px; }
.tn-badge em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-right: auto; }

.tn-notes { list-style: none; padding: 0; margin: 10px 0 14px; }
.tn-notes li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tn-notes li:last-child { border-bottom: 0; }
.tn-notes b { display: block; font-size: 14.5px; }
.tn-notes span { display: block; color: var(--ink-2); font-size: 13.5px; }
.tn-notes time { font-size: 11.5px; color: var(--ink-3); }
.tn-notes li.new b::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); margin-left: 7px; vertical-align: middle;
}
.tn-unread {
  font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 999px; padding: 2px 9px; margin-right: 6px;
}

@media (max-width: 420px) {
  .tn-count { display: none; }
  .tn-num { width: 27px; height: 27px; font-size: 12px; }
}

/* ══════════════ امتیاز و جایزه ══════════════ */
.tn-level { border-top: 3px solid var(--c); }
.tn-level-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.tn-level .tn-chip { --area: var(--c); }
.tn-level .tn-h1 { font-size:21px; margin:8px 0 0; }
.tn-bal { text-align:center; flex:none; }
.tn-bal b { display:block; font-size:28px; font-weight:800; color:var(--c); line-height:1.2; }
.tn-bal span { font-size:12px; color:var(--ink-3); }
.tn-level .tn-track { margin:16px 0 8px; }
.tn-level .tn-fill { background: var(--c); }

.tn-mini { display:flex; gap:8px; margin-top:16px; }
.tn-mini div { flex:1; text-align:center; background:#fbfcfe; border:1px solid var(--line);
  border-radius:12px; padding:9px 4px; }
.tn-mini b { display:block; font-size:17px; font-weight:800; }
.tn-mini span { font-size:11.5px; color:var(--ink-3); }

.tn-tasks { display:grid; gap:10px; margin-top:12px; }
.tn-task { display:flex; align-items:flex-start; gap:12px; padding:13px 15px;
  border:1.5px solid var(--line); border-radius:14px; background:#fbfcfe;
  transition:background .2s ease, border-color .2s ease, opacity .2s ease; }
.tn-task-main { flex:1; min-width:0; }
.tn-task b { display:block; font-size:15px; }
.tn-task-main > span { display:block; font-size:13.5px; color:var(--ink-2); margin-top:2px; }
.tn-task-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.tn-task-tags em { font-style:normal; font-size:11.5px; color:var(--ink-3);
  background:rgba(27,32,48,.05); border-radius:999px; padding:2px 9px; }
.tn-task-tags em.pts { color:#1f6f3f; background:rgba(31,111,63,.1); font-weight:700; }
.tn-task-tags em.wait { color:#8a5a1f; background:rgba(138,90,31,.12); }
.tn-task-tags em.bad { color:#b3261e; background:rgba(179,38,30,.1); }
.tn-evi { font-size:13px; color:var(--ink-3); margin:8px 0 0; border-right:2px solid var(--line); padding-right:9px; }
.tn-task .tn-resp { margin:10px 0 0; }
.tn-check { flex:none; width:38px; height:38px; border-radius:11px; cursor:pointer;
  border:2px solid rgba(27,32,48,.18); background:#fff; font-size:17px; font-weight:800;
  color:var(--ink-3); transition:all .18s ease; }
.tn-check:hover:not(:disabled) { border-color:#1f6f3f; color:#1f6f3f; }
.tn-check:disabled { cursor:default; }
.tn-task.is-done { background:rgba(31,111,63,.06); border-color:rgba(31,111,63,.25); }
.tn-task.is-done .tn-check { background:#1f6f3f; border-color:#1f6f3f; color:#fff; }
.tn-task.is-done b { color:var(--ink-3); text-decoration:line-through; }
.tn-task.is-pend { background:rgba(138,90,31,.05); border-color:rgba(138,90,31,.22); }
.tn-task.is-rej  { background:rgba(179,38,30,.04); border-color:rgba(179,38,30,.2); }

.tn-rewards { display:grid; gap:10px; margin-top:12px; }
.tn-reward { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 15px; border:1.5px solid var(--line); border-radius:14px; background:#fbfcfe; }
.tn-reward b { display:block; font-size:15px; }
.tn-reward span { display:block; font-size:13px; color:var(--ink-2); margin-top:2px; }
.tn-reward em { font-style:normal; font-size:11.5px; color:var(--ink-3); }
.tn-reward .tn-btn { flex:none; padding:10px 15px; font-size:13.5px; white-space:nowrap; }
.tn-reward.is-locked { opacity:.6; }
.tn-reward.is-locked .tn-btn, .tn-reward.is-out .tn-btn { background:rgba(27,32,48,.12); color:var(--ink-3); }
.tn-card h3.mt { margin-top:22px; }

.tn-lb { list-style:none; padding:0; margin:12px 0 0; counter-reset:lb; }
.tn-lb li { display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:11px; font-size:14.5px; }
.tn-lb li.me { background:color-mix(in srgb, var(--brand) 9%, transparent); font-weight:700; }
.tn-lb .rank { flex:0 0 26px; height:26px; border-radius:8px; display:grid; place-items:center;
  background:rgba(27,32,48,.06); font-size:12.5px; font-weight:800; color:var(--ink-2); }
.tn-lb li:nth-child(1) .rank { background:#eda100; color:#fff; }
.tn-lb li:nth-child(2) .rank { background:#b9bcc4; color:#fff; }
.tn-lb li:nth-child(3) .rank { background:#c98f63; color:#fff; }
.tn-lb .name { flex:1; }
.tn-lb .pts { font-variant-numeric:tabular-nums; color:var(--ink-2); font-size:13.5px; }

.tn-notes li span.up   { color:#1f6f3f; font-weight:700; }
.tn-notes li span.down { color:#8a5a1f; font-weight:700; }

/* ══════════════ پورتال خانواده ══════════════ */
.tn-whoami { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.tn-whoami .tn-h1 { font-size:20px; margin:8px 0 0; }
.tn-whoami .tn-btn-ghost { flex:none; padding:9px 14px; font-size:13px; }

.tn-roles { display:grid; gap:11px; margin-top:18px; }
.tn-role { text-align:right; padding:17px 18px; border:1.5px solid var(--line); border-radius:15px;
  background:#fbfcfe; cursor:pointer; font:inherit; color:var(--ink); transition:all .18s ease; }
.tn-role:hover { border-color:var(--brand); background:#fff; transform:translateY(-1px); }
.tn-role b { display:block; font-size:16px; }
.tn-role span { font-size:13px; color:var(--ink-3); }

.tn-qlist { display:grid; gap:10px; margin-top:12px; }
.tn-qitem { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border:1.5px solid var(--line); border-radius:14px; background:#fbfcfe;
  text-decoration:none; color:var(--ink); transition:all .18s ease; }
.tn-qitem:hover { border-color:var(--brand); background:#fff; color:var(--ink); }
.tn-qitem b { display:block; font-size:15px; }
.tn-qitem span { display:block; font-size:13px; color:var(--ink-2); margin-top:2px; }
.tn-qitem em { flex:none; font-style:normal; font-size:13px; font-weight:700; color:var(--brand); }

.tn-child { border:1px solid var(--line); border-radius:15px; padding:15px; margin-bottom:11px; background:#fbfcfe; }
.tn-child-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tn-child-head b { font-size:15px; }
.tn-code code { background:rgba(13,148,136,.12); color:#0b7a70; border-radius:7px;
  padding:3px 10px; font-size:14px; letter-spacing:2px; font-weight:700; }
.tn-unlink { border:0; background:none; color:#b3261e; font:600 12.5px inherit; cursor:pointer; padding:4px; }
.tn-child-row { display:flex; align-items:center; gap:10px; margin-top:11px; font-size:13.5px; }
.tn-child-row > span { flex:0 0 38%; }
.tn-child-row .tn-track { flex:1; margin:0; height:7px; }
.tn-child-row em { font-style:normal; font-size:12.5px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.tn-child-streak { font-size:13.5px; color:var(--ink-2); margin:11px 0 0; }
.tn-privacy { font-size:12.5px; color:var(--ink-3); line-height:1.95; margin:12px 0 0;
  background:rgba(13,148,136,.07); border-right:3px solid #0d9488; border-radius:0 10px 10px 0; padding:9px 12px; }

.tn-joinbox { margin-top:14px; }
.tn-joinbox label { display:block; font-size:13.5px; color:var(--ink-2); margin-bottom:8px; }
.tn-joinrow { display:flex; gap:9px; }
.tn-joinrow input { flex:1; padding:13px 15px; border:1.5px solid var(--line); border-radius:13px;
  font:700 16px/1 inherit; letter-spacing:4px; text-align:center; text-transform:uppercase; background:#fbfcfe; }
.tn-joinrow input:focus { outline:0; border-color:var(--brand); background:#fff; }
.tn-joinrow .tn-btn { flex:none; }

/* ══════════════ قاب گوشی روی دسکتاپ ══════════════
   روی صفحهٔ بزرگ، تجربهٔ نوجوان داخل یک قاب موبایل نشان داده می‌شود،
   چون این صفحه‌ها برای گوشی طراحی شده‌اند و روی عرض زیاد پخش می‌شوند. */
@media (min-width: 900px) {
  .tn {
    position: relative;
    width: 400px;
    max-width: 400px;
    margin: 40px auto 60px;
    padding: 46px 18px 44px;
    background: #fff;
    border: 11px solid #15181f;
    border-radius: 46px;
    min-height: 760px;
    box-shadow:
      0 0 0 2px #313746,
      0 34px 80px -26px rgba(12,18,32,.55),
      0 4px 14px rgba(12,18,32,.12);
  }
  /* ناچ بالای صفحه */
  .tn::before {
    content: "";
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 136px; height: 25px;
    background: #15181f;
    border-radius: 0 0 15px 15px;
    z-index: 5;
  }
  /* نوار پایین */
  .tn::after {
    content: "";
    position: absolute;
    bottom: 11px; left: 50%; transform: translateX(-50%);
    width: 118px; height: 4px;
    background: rgba(27,32,48,.22);
    border-radius: 3px;
  }
  /* نوار شمارهٔ سؤال‌ها در قاب باریک‌تر */
  .tn-num { width: 27px; height: 27px; font-size: 12px; }
  .tn-domains { grid-template-columns: 1fr; }
  .tn-h1 { font-size: 23px; }
  .tn-q { font-size: 18px; }
}

/* ══════════════ محتوای قدم و مسیر دستاورد ══════════════ */
.tn-stepcontent {
  display:flex; align-items:center; gap:10px; margin:12px 0 14px; padding:12px 14px;
  background:#fff; border:1.5px solid color-mix(in srgb, var(--c, var(--brand)) 28%, transparent);
  border-radius:13px; text-decoration:none; color:var(--ink); transition:all .18s ease;
}
.tn-stepcontent:hover { border-color:var(--c, var(--brand)); color:var(--ink); transform:translateY(-1px); }
.tn-stepcontent em { font-style:normal; font-size:11.5px; font-weight:700; color:var(--c, var(--brand));
  background:color-mix(in srgb, var(--c, var(--brand)) 12%, transparent); border-radius:999px; padding:3px 10px; flex:none; }
.tn-stepcontent b { flex:1; font-size:14.5px; font-weight:600; }
.tn-stepcontent span { flex:none; font-size:12.5px; color:var(--c, var(--brand)); font-weight:700; }
.tn-skind { font-style:normal; font-size:11px; color:var(--ink-3); background:rgba(27,32,48,.06);
  border-radius:999px; padding:1px 7px; margin-right:5px; }
.tn-track-outcome { font-size:13px; color:var(--ink-2); margin:7px 0 0; }
.tn-prize { display:inline-block; font-size:11.5px; font-weight:700; color:#8a5a1f;
  background:rgba(237,161,0,.14); border-radius:999px; padding:2px 10px; margin-right:6px; }

/* بلوک مسیر در انتهای مقاله */
.tn-path {
  direction:rtl; font-family:Vazirmatn,"Vazirmatn FD",Tahoma,system-ui,sans-serif;
  max-width:760px; margin:38px auto; padding:26px 24px 24px;
  background:#fff; border:1px solid rgba(27,32,48,.1); border-radius:20px;
  border-top:4px solid var(--c); box-shadow:0 1px 2px rgba(27,32,48,.05), 0 10px 30px -18px rgba(27,32,48,.3);
  color:#1b2030; line-height:2;
}
.tn-path-tag { display:inline-block; font-size:12px; font-weight:700; color:var(--c);
  background:color-mix(in srgb, var(--c) 12%, transparent); border-radius:999px; padding:4px 13px; }
.tn-path-head h2 { font-size:21px; font-weight:800; margin:10px 0 6px; }
.tn-path-outcome { font-size:14.5px; color:#5b6478; margin:0; }
.tn-path-intro { font-size:14px; color:#5b6478; margin:16px 0 14px;
  background:color-mix(in srgb, var(--c) 6%, transparent); border-radius:11px; padding:11px 14px; }
.tn-path-list { list-style:none; padding:0; margin:0 0 18px; counter-reset:p; }
.tn-path-list li { display:flex; gap:13px; align-items:flex-start; padding:11px 0;
  border-bottom:1px solid rgba(27,32,48,.07); }
.tn-path-list li:last-child { border-bottom:0; }
.tn-path-list .num { flex:0 0 28px; height:28px; border-radius:9px; display:grid; place-items:center;
  background:rgba(27,32,48,.06); font-size:12.5px; font-weight:800; color:#5b6478; margin-top:3px; }
.tn-path-list li.here .num { background:var(--c); color:#fff; }
.tn-path-list .body { flex:1; min-width:0; }
.tn-path-list .body a { color:#1b2030; font-weight:700; font-size:15px; text-decoration:none;
  border-bottom:1.5px solid color-mix(in srgb, var(--c) 40%, transparent); }
.tn-path-list .body a:hover { color:var(--c); border-color:var(--c); }
.tn-path-list .body b { font-size:15px; }
.tn-path-list li.here .body b { color:var(--c); }
.tn-path-list .body em { display:block; font-style:normal; font-size:12.5px; color:#8b93a7; }
.tn-path-prize { display:flex; align-items:center; gap:10px; padding:12px 15px; margin-bottom:16px;
  background:rgba(237,161,0,.1); border-radius:12px; font-size:14px; }
.tn-path-prize b { color:#8a5a1f; font-size:13px; }
.tn-path .tn-btn { display:inline-block; }
@media (min-width:900px) { .tn-path { max-width:760px; border-width:1px; border-top-width:4px;
  border-radius:20px; min-height:0; padding:26px 24px 24px; box-shadow:0 1px 2px rgba(27,32,48,.05), 0 10px 30px -18px rgba(27,32,48,.3); }
  .tn-path::before, .tn-path::after { display:none; } }

/* ══════════════ کوچ ══════════════ */
.tn-wide { direction:rtl; font-family:Vazirmatn,"Vazirmatn FD",Tahoma,system-ui,sans-serif;
  max-width:1000px; margin:0 auto; padding:34px 18px 70px; color:#1b2030; line-height:2; }
.tn-wide-head { text-align:center; margin-bottom:30px; }
.tn-wide-head h1 { font-size:27px; font-weight:800; margin:0 0 8px; }
.tn-wide-head p { color:#5b6478; font-size:15px; margin:0; }

.tn-coaches { display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:760px){ .tn-coaches { grid-template-columns:1fr 1fr; } }
.tn-coach { display:flex; align-items:center; gap:14px; padding:17px; background:#fff;
  border:1px solid rgba(27,32,48,.1); border-radius:18px; box-shadow:0 1px 2px rgba(27,32,48,.05); }
.tn-coach img, .tn-coach-ph { flex:0 0 62px; width:62px; height:62px; border-radius:50%; object-fit:cover; }
.tn-coach-ph { display:grid; place-items:center; background:#e6f2f1; color:#0f766e; font:800 24px/1 inherit; }
.tn-coach-ph.lg { flex:0 0 96px; width:96px; height:96px; font-size:36px; }
.tn-coach-body { flex:1; min-width:0; }
.tn-coach-body b { display:block; font-size:16px; }
.tn-coach-body span { display:block; font-size:13.5px; color:#5b6478; margin-top:2px; }
.tn-coach-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.tn-coach-tags em { font-style:normal; font-size:11.5px; color:#0f766e;
  background:rgba(15,118,110,.1); border-radius:999px; padding:2px 10px; }
.tn-coach .tn-btn { flex:none; padding:10px 16px; font-size:13.5px; background:#0f766e; }
.tn-coach .tn-btn:hover { background:#0b5f58; }

.tn-coach-page { background:#fff; border:1px solid rgba(27,32,48,.1); border-radius:20px;
  padding:28px 26px; box-shadow:0 1px 2px rgba(27,32,48,.05); }
.tn-coach-page header { display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-bottom:22px; }
.tn-coach-page header img { width:96px; height:96px; border-radius:50%; object-fit:cover; }
.tn-coach-page h1 { font-size:25px; font-weight:800; margin:0 0 5px; }
.tn-coach-page .lead { color:#5b6478; font-size:15px; margin:0 0 9px; }
.tn-coach-page section { margin-bottom:22px; }
.tn-coach-page h2 { font-size:17px; font-weight:800; margin:0 0 9px; }
.tn-coach-page p { color:#3f4654; font-size:15px; margin:0; }
.tn-creds { margin:0; padding-right:20px; color:#3f4654; font-size:14.5px; }
.tn-creds li { margin-bottom:5px; }
.tn-coach-page footer .tn-btn { background:#0f766e; }

.tn-session-head { display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.tn-session-head em { font-style:normal; font-size:12.5px; color:var(--ink-3); }
.tn-session h3 { font-size:17px; font-weight:700; margin:0 0 9px; }
.tn-session-note { font-size:14.5px; color:var(--ink-2); background:#fbfcfe;
  border-right:3px solid var(--brand); border-radius:0 11px 11px 0; padding:11px 13px; margin:0 0 14px; }
.tn-session-acts { border-top:1px solid var(--line); padding-top:13px; }
.tn-session-acts b { display:block; font-size:13.5px; margin-bottom:9px; }
.tn-act { display:flex; justify-content:space-between; gap:10px; padding:7px 0; font-size:14px; }
.tn-act em { font-style:normal; font-weight:700; color:#1f6f3f; font-size:12.5px; }
.tn-session-acts .tn-btn { margin-top:10px; padding:9px 15px; font-size:13px; }

/* ══════════════════════════════════════════════════════════════
   بلوک‌های صفحه‌ساز
   این بلوک‌ها بیرون از قاب گوشی (.tn) روی صفحات عمومی می‌نشینند،
   پس توکن‌ها باید اینجا هم تعریف شوند، وگرنه رنگ‌ها خالی می‌مانند.
   ══════════════════════════════════════════════════════════════ */

.tn-blk {
  --ink:      #1b2030;
  --ink-2:    #5b6478;
  --ink-3:    #8b93a7;
  --line:     rgba(27, 32, 48, .09);
  --surface:  #ffffff;
  --bg:       #f4f6fb;
  --brand:    #2a78d6;
  --area:     var(--brand);
  --r:        var(--t-r-card, 20px);
  --shadow:   var(--t-sh, 0 1px 2px rgba(38,52,61,.05), 0 14px 32px -20px rgba(38,52,61,.32));

  direction: rtl;
  color: var(--ink);
  font-family: Vazirmatn, "Vazirmatn FD", Tahoma, system-ui, sans-serif;
  line-height: 2;
}
.tn-blk-in { max-width: 760px; margin: 0 auto; padding: 0 18px; }

.tn-blk-head { text-align: center; margin-bottom: 26px; }
.tn-blk-head h2 { font-size: 23px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.tn-blk-head p  { font-size: 15px; color: var(--ink-2); margin: 0; }

.tn-guest { text-align: center; padding: 24px 0; }
.tn-guest p { color: var(--ink-2); margin: 0 0 16px; }

/* ── قدم بعدی ── */
.tn-next {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--tc, var(--brand));
}
.tn-next-track { font-size: 12.5px; color: var(--tc, var(--brand)); font-weight: 700; }
.tn-next h3 { font-size: 19px; margin: 6px 0 10px; font-weight: 800; }
.tn-next p  { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.tn-next-meta { display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.tn-next-meta i { margin-left: 5px; }

/* ── کارت مسیر ── */
.tn-track-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.tn-track-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tn-track-meta h3 { font-size: 17px; margin: 0 0 2px; font-weight: 800; }
.tn-track-meta span { font-size: 13px; color: var(--ink-3); }

/* ── حلقهٔ پیشرفت ── */
.tn-ringwrap { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.tn-ring-lg { width: 108px; height: 108px; }
.tn-ring-lg b { font-size: 20px; }
.tn-ringtext strong { display: block; font-size: 16px; font-weight: 800; }
.tn-ringtext span { font-size: 13.5px; color: var(--ink-3); }

/* ── قفسهٔ نشان ── */
.tn-badge-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.tn-badge {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 10px; text-align: center; display: flex; flex-direction: column; gap: 7px;
}
.tn-badge-ico {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: color-mix(in srgb, var(--bc) 14%, #fff); color: var(--bc);
}
.tn-badge.locked { opacity: .5; }
.tn-badge.locked .tn-badge-ico { background: #eef0f5; color: var(--ink-3); }
.tn-badge-title { font-size: 13.5px; font-weight: 700; }
.tn-badge-date  { font-size: 11.5px; color: var(--ink-3); }

/* ── دعوت به ارزیابی ── */
.tn-cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.tn-cta-intro { color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; }
.tn-cta-note  { color: var(--ink-3); font-size: 13.5px; margin: 0 0 16px; }
.tn-cta .tn-btn + .tn-btn { margin-right: 8px; }

/* ── نیم‌رخ ── */
.tn-domains { display: flex; flex-direction: column; gap: 16px; }
.tn-dom-row  { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tn-dom-name { font-size: 14.5px; font-weight: 700; }
.tn-dom-val  { font-size: 15px; font-weight: 800; color: var(--dc, var(--brand)); }
.tn-dom-val.muted { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tn-dom-band { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; display: block; }
.tn-disclaimer { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 20px; }

/* ── کارهای امروز ── */
.tn-tasklist { display: flex; flex-direction: column; gap: 9px; }
.tn-task-sum { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.tn-blk .tn-task {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.tn-blk .tn-task.done { opacity: .62; }
.tn-blk .tn-task.done .tn-task-title { text-decoration: line-through; }
.tn-task-check { color: var(--ink-3); font-size: 17px; line-height: 1.6; }
.tn-blk .tn-task.done .tn-task-check { color: #008300; }
.tn-task-body  { flex: 1; display: flex; flex-direction: column; }
.tn-task-title { font-size: 14.5px; font-weight: 700; }
.tn-task-desc  { font-size: 12.5px; color: var(--ink-3); }
.tn-task-pts   { font-size: 13px; font-weight: 700; color: #008300; white-space: nowrap; }
.tn-blk .tn-task.pending .tn-task-pts { color: var(--ink-3); font-weight: 600; font-size: 12px; }

/* ── کارت سطح ── */
.tn-blk .tn-level {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--lc, var(--brand));
}
.tn-level-top  { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tn-level-pts b { font-size: 26px; font-weight: 800; color: var(--lc, var(--brand)); }
.tn-level-name { font-size: 14px; font-weight: 700; color: var(--lc, var(--brand)); }
.tn-level-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.tn-level-foot a { color: var(--brand); text-decoration: none; }

/* ── زنجیره ── */
.tn-streak {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
}
.tn-streak-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.tn-streak-num  { color: #eb6834; font-size: 15px; }
.tn-streak-num b { font-size: 24px; font-weight: 800; }
.tn-streak-best { font-size: 13px; color: var(--ink-3); }
.tn-streak-days { display: flex; gap: 5px; flex-wrap: wrap; }
.tn-sday { width: 15px; height: 15px; border-radius: 4px; background: #eef0f5; }
.tn-sday.on { background: #eb6834; }
.tn-streak-note { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; }

/* ── برترین‌ها ── */
.tn-blk .tn-lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tn-blk .tn-lb li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px 16px;
}
.tn-blk .tn-lb li.me { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.tn-lb-rank { width: 26px; height: 26px; border-radius: 50%; background: #eef0f5; color: var(--ink-2);
              display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; }
.tn-blk .tn-lb li:nth-child(1) .tn-lb-rank { background: #d49a00; color: #fff; }
.tn-blk .tn-lb li:nth-child(2) .tn-lb-rank { background: #a7adbb; color: #fff; }
.tn-blk .tn-lb li:nth-child(3) .tn-lb-rank { background: #c08457; color: #fff; }
.tn-lb-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.tn-lb-pts  { font-size: 14px; font-weight: 800; color: var(--brand); }
.tn-blk .tn-privacy { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 14px; }

/* ── جایزه‌ها ── */
.tn-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 13px; }
.tn-blk .tn-reward {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.tn-blk .tn-reward.ready { border-color: #008300; }
.tn-blk .tn-reward.out   { opacity: .55; }
.tn-reward-cost { font-size: 12.5px; font-weight: 700; color: #c2410c; }
.tn-blk .tn-reward h4 { font-size: 15px; margin: 0; font-weight: 800; }
.tn-blk .tn-reward p  { font-size: 13px; color: var(--ink-2); margin: 0; }
.tn-reward-tag { font-size: 12.5px; color: var(--ink-3); }
.tn-reward-tag.muted { color: var(--ink-3); }

/* ── نقشهٔ فعالیت ── */
.tn-heat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow); overflow-x: auto;
}
.tn-heat-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px);
  gap: 3px; direction: rtl; justify-content: start;
}
.tn-hd { width: 13px; height: 13px; border-radius: 3px; background: #eef0f5; display: inline-block; }
.tn-hd.lv1 { background: #cfe0f6; }
.tn-hd.lv2 { background: #9bc1ec; }
.tn-hd.lv3 { background: #5f94dd; }
.tn-hd.lv4 { background: #1c5cab; }
.tn-heat-foot { display: flex; justify-content: space-between; align-items: center;
                font-size: 12.5px; color: var(--ink-3); margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.tn-heat-key { display: inline-flex; align-items: center; gap: 3px; }

@media (max-width: 560px) {
  .tn-blk-in { padding: 0 14px; }
  .tn-blk-head h2 { font-size: 20px; }
  .tn-ringwrap { flex-direction: column; text-align: center; }
}
.tn-timeline li.more { opacity: .55; font-style: italic; }
.tn-timeline li.more .tn-tl-dot { background: transparent; border-style: dashed; }

/* ══════════════════════════════════════════════════════════════
   ارزیابی: نوار پیشرفت، ادامهٔ پیش‌نویس، مرور پیش از ثبت
   ══════════════════════════════════════════════════════════════ */

/* نوار باریک بالای صحنه — خلاصه‌ای از چیزی که چیپ‌های شماره‌دار
   با ۲۵ سؤال دیگر نمی‌توانند در یک نگاه بدهند. */
.tn-progress {
  height: 4px; border-radius: 99px; background: rgba(27,32,48,.08);
  margin: 0 0 14px; overflow: hidden;
}
.tn-progress span {
  display: block; height: 100%; width: 0;
  background: var(--area, var(--brand)); border-radius: 99px;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}

/* ادامهٔ ارزیابی نیمه‌کاره */
.tn-resume { margin-top: 6px; }
.tn-resume p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.tn-resume p b { color: var(--ink); }
.tn-link {
  display: block; width: 100%; margin-top: 12px; padding: 10px;
  background: none; border: 0; color: var(--ink-3);
  font-family: inherit; font-size: 14px; cursor: pointer; text-decoration: underline;
}
.tn-link:hover { color: var(--ink-2); }

/* مرور */
.tn-review .tn-h2 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.tn-review-list { display: flex; flex-direction: column; gap: 7px; margin: 20px 0 24px; }
.tn-rrow {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 11px;
  width: 100%; text-align: right; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  font-family: inherit; color: var(--ink); transition: .16s;
}
.tn-rrow:hover { border-color: var(--nc, var(--brand)); transform: translateX(-2px); }
.tn-rnum {
  width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--nc, #2a78d6) 14%, #fff); color: var(--nc, var(--brand));
}
.tn-rq { font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-ra { font-size: 13px; font-weight: 700; color: var(--nc, var(--brand)); white-space: nowrap; }

/* تلاش دوباره پس از شکست ثبت */
.tn-sending .tn-btn { margin-top: 18px; }
.tn-spin[hidden] { display: none; }

/* روی لمسی، راهنمای کیبورد بی‌معنی است */
@media (hover: none) and (pointer: coarse) { .tn-hint { display: none; } }

@media (max-width: 560px) {
  .tn-rq { font-size: 12.5px; }
  .tn-rrow { grid-template-columns: 26px 1fr auto; gap: 9px; padding: 11px 12px; }
}

/* ══════════════════════════════════════════════════════════════
   صفحهٔ اول نوجوان: سربرگ، سه قدم، مسیرها
   ══════════════════════════════════════════════════════════════ */

.tnh, .tnw, .tnp {
  --ink: #1b2030; --ink-2: #5b6478; --ink-3: #8b93a7;
  --line: rgba(27,32,48,.09); --surface: #fff;
  --brand: #2a78d6; --brand-d: #1c5cab; --accent: #eb6834;
  direction: rtl;
  font-family: Vazirmatn, "Vazirmatn FD", Tahoma, system-ui, sans-serif;
}

/* ── سربرگ ── */
.tnh {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, #f7faff 0%, #eef4fd 46%, #fdf3ee 100%);
  padding: clamp(56px, 11vw, 112px) 20px clamp(52px, 9vw, 92px);
  text-align: center;
}
/* لکه‌های نور: تزئین محض، پس از دید صفحه‌خوان پنهان است */
.tnh-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.tnh-glow-a { width: 420px; height: 420px; background: #9bc1ec; top: -160px; inset-inline-end: -110px; }
.tnh-glow-b { width: 360px; height: 360px; background: #f5c2a6; bottom: -150px; inset-inline-start: -90px; }
.tnh-in { position: relative; max-width: 740px; margin: 0 auto; }

.tnh-kicker { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.tnh-title {
  font-size: clamp(29px, 6.2vw, 50px); font-weight: 900; line-height: 1.5;
  color: var(--ink); margin: 0 0 16px; letter-spacing: 0;
}
.tnh-accent { display: block; color: var(--brand); }
.tnh-lead {
  font-size: clamp(15.5px, 2.1vw, 18px); line-height: 2.2; color: var(--ink-2);
  max-width: 560px; margin: 0 auto 30px;
}

.tnh-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tnh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16.5px;
  text-decoration: none; border: 2px solid var(--brand);
  box-shadow: 0 14px 30px -14px rgba(42,120,214,.85);
  transition: transform .16s ease, background .2s ease, box-shadow .2s ease;
}
.tnh-btn:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; transform: translateY(-2px); }
.tnh-btn:active { transform: translateY(0) scale(.985); }
.tnh-btn-ghost {
  background: transparent; color: var(--brand); border-color: rgba(42,120,214,.35); box-shadow: none;
}
.tnh-btn-ghost:hover { background: rgba(42,120,214,.08); color: var(--brand-d); border-color: var(--brand); }
.tnh-note { display: block; margin-top: 15px; font-size: 13.5px; color: var(--ink-3); }

/* کارت قدم بعدی در سربرگ */
.tnh-nextcard {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tc, var(--brand));
  border-radius: 20px; padding: 20px 24px; max-width: 460px; margin: 0 auto 26px;
  box-shadow: 0 1px 2px rgba(27,32,48,.05), 0 16px 36px -22px rgba(27,32,48,.4);
}
.tnh-nexttrack { display: block; font-size: 12.5px; font-weight: 700; color: var(--tc, var(--brand)); margin-bottom: 5px; }
.tnh-nextcard strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.tnh-nextmeta { display: inline-block; margin-top: 7px; font-size: 13px; color: var(--ink-3); }

/* برچسب‌های شناور */
.tnh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 36px 0 0; padding: 0; }
.tnh-chips li {
  background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 17px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  backdrop-filter: blur(6px);
  animation: tnFloat 5.5s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes tnFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── سه قدم ── */
.tnw { padding: clamp(50px, 8vw, 86px) 20px; background: #fff; }
.tnw-in { max-width: 1040px; margin: 0 auto; }
.tnw-h { text-align: center; font-size: clamp(22px, 3.6vw, 31px); font-weight: 900; color: var(--ink); margin: 0 0 10px; }
.tnw-sub { text-align: center; font-size: 15.5px; color: var(--ink-2); max-width: 520px; margin: 0 auto 44px; line-height: 2.1; }

.tnw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tnw-steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 24px 26px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tnw-steps li:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--sc) 40%, #fff);
  box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--sc) 70%, transparent);
}
.tnw-ico {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: color-mix(in srgb, var(--sc) 13%, #fff); color: var(--sc);
}
.tnw-n {
  position: absolute; top: 16px; inset-inline-end: 20px;
  font-size: 34px; font-weight: 900; color: color-mix(in srgb, var(--sc) 16%, #fff); line-height: 1;
}
.tnw-steps h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 9px; }
.tnw-steps p  { font-size: 14.5px; line-height: 2.05; color: var(--ink-2); margin: 0; }

/* ── مسیرها ── */
.tnp { padding: clamp(50px, 8vw, 86px) 20px; background: #f6f8fc; }
.tnp-in { max-width: 1040px; margin: 0 auto; }
.tnp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tnp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tnp-card:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--tc) 40%, #fff);
  box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--tc) 70%, transparent);
}
.tnp-ico {
  width: 48px; height: 48px; border-radius: 15px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: color-mix(in srgb, var(--tc) 13%, #fff); color: var(--tc);
}
.tnp-card h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.tnp-card p  { font-size: 14px; line-height: 2; color: var(--ink-2); margin: 0 0 12px; }
.tnp-meta { font-size: 12.5px; font-weight: 700; color: var(--tc); }

@media (prefers-reduced-motion: reduce) {
  .tnh-chips li { animation: none; }
  .tnw-steps li:hover, .tnp-card:hover { transform: none; }
}
@media (max-width: 575.98px) {
  .tnh-actions { flex-direction: column; }
  .tnh-btn { width: 100%; }
  .tnh-chips li { font-size: 13px; padding: 6px 14px; }
}

/* نشان‌های تصویری: تصویر جای آیکون می‌نشیند، پس قاب دایره‌ای
   و پس‌زمینهٔ رنگی لازم نیست. نشان نگرفته خاکستری و کم‌رنگ است. */
.tn-badge-ico img { width: 100%; height: auto; display: block; }
.tn-badge-ico:has(img) { background: none; width: 72px; height: auto; }
.tn-badge.locked .tn-badge-ico:has(img) { background: none; }
.tn-badge.locked .tn-badge-ico img { filter: grayscale(1); opacity: .45; }

/* ══════════════════════════════════════════════════════════════
   حالت مهمان: توضیح + نمونهٔ واقعی
   یک عنوان خشک و یک دکمهٔ ورود، برای کسی که محصول را نمی‌شناسد
   هیچ چیزی نمی‌گوید. اینجا اول توضیح می‌دهیم، بعد نشان می‌دهیم.
   ══════════════════════════════════════════════════════════════ */
.tn-guest { text-align: center; }
.tn-guest-what {
  max-width: 54ch; margin: 0 auto 22px;
  font-size: 15px; line-height: 2.15; color: var(--t-ink-2, #596770);
}
.tn-guest-sample {
  position: relative; text-align: right;
  max-width: 460px; margin: 0 auto 24px; padding: 18px;
  background: var(--t-cream, #FAF8F4);
  border: 2px dashed var(--t-line-strong, #7A908F);
  border-radius: var(--t-r-card, 20px);
}
.tn-guest-tag {
  position: absolute; top: -12px; inset-inline-start: 18px;
  background: var(--t-sun, #F4C65B); color: var(--t-ink, #26343D);
  border: 2px solid var(--t-ink, #26343D); border-radius: 999px;
  padding: 2px 12px; font-size: 12px; font-weight: 800;
}
/* داخل نمونه، سایه و برجستگی لازم نیست — نمونه است نه کارت واقعی */
.tn-guest-sample .tn-next,
.tn-guest-sample .tn-level { box-shadow: none; border: 1px solid var(--t-line, #DFE6E5); }
.tn-guest-sample .tn-task  { box-shadow: none; }

/* ── کاراکتر در سرصفحه و حالت خالی ── */
.tn-mapchar, .tn-emptychar { text-align: center; margin: 0 auto 10px; }
.tn-mapchar img  { width: min(190px, 52%); height: auto; }
.tn-emptychar img{ width: min(210px, 60%); height: auto; }

/* ══════════════════════════════════════════════════════════════
   داشبورد کاربر
   ══════════════════════════════════════════════════════════════ */
.tnd { max-width: 920px; }

/* ── سلام ── */
.tnd-hello {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px;
  background: linear-gradient(135deg, var(--t-cream) 0%, var(--t-teal-soft) 100%);
  border: 2px solid var(--t-ink); border-radius: var(--t-r-lg);
  padding: 24px 24px 0; margin-bottom: 18px; overflow: hidden;
}
.tnd-hello-txt { padding-bottom: 24px; }
.tnd-hello-txt .t-kicker { margin-bottom: 6px; }
.tnd-hello-txt .t-lead   { margin: 8px 0 0; }
.tnd-hello-char { align-self: end; }
.tnd-hello-char img { width: clamp(110px, 20vw, 165px); height: auto; display: block; margin-bottom: -4px; }

/* ── آمار ── */
.tnd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tnd-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 10px; text-decoration: none; text-align: center;
  border: 2px solid var(--t-ink); border-radius: var(--t-r-card);
  box-shadow: -5px 5px 0 var(--t-ink); color: var(--t-ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
a.tnd-stat:hover { transform: translate(2px,-2px); box-shadow: -7px 7px 0 var(--t-ink); color: var(--t-ink); }
.tnd-stat b { font-size: 1.7rem; font-weight: 900; line-height: 1.2; }
.tnd-stat span { font-size: .82rem; font-weight: 700; opacity: .75; }
.tnd-stat-sun    { background: var(--t-sun-soft); }
.tnd-stat-coral  { background: var(--t-coral-soft); }
.tnd-stat-violet { background: var(--t-violet-soft); }
.tnd-stat-teal   { background: var(--t-teal-soft); }
.tnd-stat-teal b { font-size: 1.15rem; }

/* ── کارت‌ها ── */
.tnd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tnd-card {
  position: relative; background: var(--t-paper);
  border: 2px solid var(--t-ink); border-radius: var(--t-r-card);
  padding: 22px; box-shadow: -5px 5px 0 var(--t-ink);
  display: flex; flex-direction: column; gap: 9px;
}
.tnd-card-tag {
  align-self: flex-start; font-size: .74rem; font-weight: 800;
  background: var(--t-ink); color: #fff; border-radius: 999px; padding: 3px 11px;
}
.tnd-card h2 { font-size: 1.15rem; font-weight: 900; margin: 2px 0 0; }
.tnd-card p  { font-size: .9rem; color: var(--t-ink-2); margin: 0; line-height: 1.95; }
.tnd-card small { font-size: .78rem; color: var(--t-ink-3); }
.tnd-card .t-btn { margin-top: auto; align-self: stretch; }

.tnd-next { border-top: 6px solid var(--tc, var(--t-teal)); }
.tnd-next-track { font-size: .78rem; font-weight: 800; color: var(--tc, var(--t-teal-ink)); }
.tnd-bar { height: 7px; border-radius: 99px; background: var(--t-line); overflow: hidden; margin-top: 4px; }
.tnd-bar span { display: block; height: 100%; background: var(--tc, var(--t-teal)); border-radius: 99px;
                transition: width .5s cubic-bezier(.4,0,.2,1); }

.tnd-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tnd-tasks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.tnd-tasks li.done { opacity: .55; }
.tnd-tasks li.done span { text-decoration: line-through; }
.tnd-tasks i { color: var(--t-ink-3); }
.tnd-tasks li.done i { color: var(--t-ok); }
.tnd-tasks span { flex: 1; }
.tnd-tasks b { color: var(--t-ok); font-size: .84rem; }

@media (max-width: 560px) {
  .tnd-hello { grid-template-columns: 1fr; padding: 20px 18px 0; }
  .tnd-hello-char { justify-self: center; }
  .tnd-hello-char img { width: 140px; }
}

/* ══════════════════════════════════════════════════════════════
   پوستهٔ پنل کاربر
   پنل <head> خودش را دارد و بوت‌استرپ می‌آورد؛ اینجا فقط
   رنگ و شکل را با بقیهٔ سایت یکی می‌کنیم.
   ══════════════════════════════════════════════════════════════ */
.desktop-sidebar, .mobile-sidebar {
  border-inline-start: 2px solid var(--t-ink);
  background: var(--t-paper) !important;
}
.desktop-sidebar .nav-link, .mobile-sidebar .nav-link {
  border-radius: var(--t-r-btn); margin: 2px 8px; min-height: 44px;
  color: var(--t-ink-2); font-weight: 700;
  transition: background .16s ease, color .16s ease;
}
.desktop-sidebar .nav-link:hover, .mobile-sidebar .nav-link:hover {
  background: var(--t-teal-soft); color: var(--t-teal-ink);
}
.desktop-sidebar .nav-link.active, .mobile-sidebar .nav-link.active {
  background: var(--t-teal-dark) !important; color: #fff !important;
  box-shadow: -3px 3px 0 var(--t-ink);
}
.admin-navbar {
  background: var(--t-paper) !important;
  border-bottom: 2px solid var(--t-ink);
  box-shadow: none !important;
}
.admin-navbar, .admin-navbar a, .admin-navbar .navbar-brand { color: var(--t-ink) !important; }

/* ══════════════════════════════════════════════════════════════
   صفحات پنل کاربر
   این صفحه‌ها با عناصر خام بوت‌استرپ ساخته شده‌اند و منطق فرم
   دارند. به‌جای بازنویسی مارک‌آپ — که ریسک شکستن فرم‌ها را دارد —
   همان عناصر را با زبان بصری سایت هماهنگ می‌کنیم.
   ══════════════════════════════════════════════════════════════ */

.admin-main { max-width: 980px; }

/* تیتر صفحه */
.admin-main > h2,
.admin-main > h1 {
  font-size: 1.45rem; font-weight: 900; color: var(--t-ink);
  margin: 0 0 6px; letter-spacing: 0;
}
.admin-main > h2 + p { color: var(--t-ink-2); font-size: .94rem; margin-bottom: 22px; }

/* کارت */
.admin-main .card {
  background: var(--t-paper);
  border: 2px solid var(--t-ink) !important;
  border-radius: var(--t-r-card);
  box-shadow: -5px 5px 0 var(--t-ink);
}
.admin-main .card-header {
  background: var(--t-cream); border-bottom: 2px solid var(--t-ink);
  font-weight: 800; color: var(--t-ink);
}
.admin-main .card-body { padding: 20px; }
.admin-main .card-title { font-weight: 800; }

/* کارت‌های رنگی داشبوردهای قدیمی را هم آرام می‌کنیم */
.admin-main .card.bg-primary, .admin-main .card.text-white.bg-primary { background: var(--t-teal) !important; }
.admin-main .card.bg-success, .admin-main .card.text-white.bg-success { background: var(--t-ok) !important; }
.admin-main .card.bg-light { background: var(--t-cream) !important; }

/* فرم */
.admin-main .form-label { font-weight: 700; font-size: .9rem; color: var(--t-ink); }
.admin-main .form-control,
.admin-main .form-select {
  min-height: 46px; padding: .6rem .9rem; font-size: .95rem;
  border: 2px solid var(--t-line); border-radius: var(--t-r-btn);
  background: var(--t-paper); color: var(--t-ink);
}
.admin-main .form-control:focus,
.admin-main .form-select:focus {
  border-color: var(--t-teal); box-shadow: 0 0 0 4px rgba(40,125,128,.14);
}
.admin-main textarea.form-control { min-height: 110px; }

/* دکمه */
.admin-main .btn {
  min-height: 44px; border-radius: var(--t-r-btn); font-weight: 800;
  border-width: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .13s ease, box-shadow .13s ease;
}
.admin-main .btn-primary {
  background: var(--t-teal-dark); border-color: var(--t-ink); color: #fff;
  box-shadow: -4px 4px 0 var(--t-ink);
}
.admin-main .btn-primary:hover { transform: translate(2px,-2px); box-shadow: -6px 6px 0 var(--t-ink); }
.admin-main .btn-primary:active { transform: translate(-2px,2px); box-shadow: -2px 2px 0 var(--t-ink); }
.admin-main .btn-outline-primary { color: var(--t-teal-ink); border-color: var(--t-teal); }
.admin-main .btn-outline-primary:hover { background: var(--t-teal); color: #fff; }
.admin-main .btn-sm { min-height: 36px; font-size: .86rem; padding: 0 14px; }
.admin-main .btn-danger { background: var(--t-err); border-color: var(--t-ink); }

/* جدول */
.admin-main .table {
  --bs-table-border-color: var(--t-line);
  border: 2px solid var(--t-ink); border-radius: var(--t-r-card); overflow: hidden;
}
.admin-main .table > thead { background: var(--t-cream); }
.admin-main .table > thead th {
  font-weight: 800; color: var(--t-ink); font-size: .88rem;
  border-bottom: 2px solid var(--t-ink); padding: 12px;
}
.admin-main .table > tbody td { padding: 12px; font-size: .9rem; vertical-align: middle; }
.admin-main .table > tbody tr:hover { background: var(--t-cream); }

/* پیام */
.admin-main .alert {
  border: 2px solid var(--t-ink); border-radius: var(--t-r-card);
  box-shadow: -4px 4px 0 var(--t-ink); font-weight: 600;
}
.admin-main .alert-success { background: var(--t-ok-soft); color: var(--t-ok); }
.admin-main .alert-danger  { background: var(--t-err-soft); color: var(--t-err); }
.admin-main .alert-info    { background: var(--t-teal-soft); color: var(--t-teal-ink); }
.admin-main .alert-warning { background: var(--t-sun-soft); color: var(--t-sun-ink); }

/* نشان و فهرست */
.admin-main .badge { border-radius: 999px; font-weight: 800; padding: .42em .85em; }
.admin-main .badge.bg-primary { background: var(--t-teal) !important; }
.admin-main .badge.bg-success { background: var(--t-ok) !important; }
.admin-main .badge.bg-warning { background: var(--t-sun) !important; color: var(--t-ink) !important; }
.admin-main .badge.bg-danger  { background: var(--t-err) !important; }
.admin-main .list-group-item { border-color: var(--t-line); padding: 14px 16px; }
.admin-main .nav-tabs .nav-link { border-radius: var(--t-r-btn) var(--t-r-btn) 0 0; font-weight: 700; }
.admin-main .nav-tabs .nav-link.active { border-color: var(--t-ink) var(--t-ink) var(--t-paper); }

/* حالت خالی */
.admin-main .text-muted { color: var(--t-ink-3) !important; }

/* سرصفحهٔ صفحه با کاراکتر */
.tnp-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px;
  background: linear-gradient(135deg, var(--t-cream) 0%, var(--t-violet-soft) 100%);
  border: 2px solid var(--t-ink); border-radius: var(--t-r-lg);
  padding: 20px 22px 0; margin-bottom: 20px; overflow: hidden;
}
.tnp-head-txt { padding-bottom: 20px; }
.tnp-head-txt h2 { font-size: 1.3rem; font-weight: 900; margin: 0 0 5px; }
.tnp-head-txt p  { margin: 0; font-size: .9rem; color: var(--t-ink-2); }
.tnp-head-char img { width: clamp(84px, 16vw, 120px); height: auto; display: block; margin-bottom: -4px; }
@media (max-width: 560px) {
  .tnp-head { grid-template-columns: 1fr; padding: 18px 16px 0; }
  .tnp-head-char { justify-self: center; }
}

body:has(#mobileSidebar):has(#desktopSidebar):has(#adminMain) {
  --panel-page:#faf5ef; --panel-card:#fffaf5; --panel-line:#e8d9c8;
  --panel-text:#382820; --panel-accent:#a8472b; --panel-soft:#f6e8da;
  background:var(--panel-page); color:var(--panel-text);
}
#desktopSidebar.desktop-sidebar, #mobileSidebar.mobile-sidebar {
  background:var(--panel-card) !important;
  border-color:var(--panel-line); color:var(--panel-text);
}
#desktopSidebar .nav-link, #mobileSidebar .nav-link { color:var(--panel-text); border-radius:12px; }
#desktopSidebar .nav-link:is(:hover,:focus-visible,.active), #mobileSidebar .nav-link:is(:hover,:focus-visible,.active) {
  color:#87361f; background:var(--panel-soft);
}
#desktopSidebar .sidebar-toggle, #mobileSidebar .offcanvas-header {
  color:#87361f; border-color:var(--panel-line);
}
body:has(#mobileSidebar):has(#adminMain) .admin-navbar {
  background:var(--panel-card); color:var(--panel-text); border-color:var(--panel-line);
}
#adminMain { color:var(--panel-text); }
#adminMain :is(.card,.tnd-card,.tnd-stat,.tnd-hello) {
  background:var(--panel-card); border:1px solid var(--panel-line);
  border-radius:24px; box-shadow:0 10px 24px rgb(70 36 24 / 7%); color:var(--panel-text);
}
#adminMain .tnd-hello {
  background:var(--panel-soft);
}
#adminMain :is(.tnd-stat,.tnd-hello) :is(.t-h2,.t-kicker,strong) { color:#773821; }
#adminMain :is(.btn-primary,.t-btn-primary) {
  --bs-btn-hover-bg:#85351f; --bs-btn-hover-border-color:#85351f;
  background-color:var(--panel-accent); border-color:var(--panel-accent); color:white;
}
#adminMain :is(.btn-outline-primary,.t-btn-ghost) { border-color:var(--panel-accent); color:#87361f; }
#adminMain :is(.btn-outline-primary,.t-btn-ghost):is(:hover,:focus-visible) {
  background:var(--panel-soft); color:#773821;
}


/* Shared workspace layout and assessment results */
#adminMain > .tn, main .tn.tn-map {box-sizing:border-box;width:100% !important;max-width:1100px !important;min-width:0; min-height:0 !important;height:auto !important;max-height:none !important;overflow:visible !important;margin:0 auto !important;padding:clamp(14px,3vw,32px) !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;background:transparent !important;color:#382820;}
#adminMain > .tn::before,#adminMain > .tn::after, main .tn.tn-map::before, main .tn.tn-map::after {display:none !important;content:none !important;}
#adminMain .tnp-head,main .tn-map .tn-maphead {background:#f6e8da;border:1px solid #e8d9c8;border-radius:24px;box-shadow:none;padding:clamp(16px,3vw,32px);color:#773821;}
#adminMain .tnp-head-char, main .tn-map .tn-mapchar {display:none;}
#adminMain :is(.tn-card,.tn-track-card,.tn-stat,.table-responsive,.alert-info), main .tn-map :is(.tn-dom,.tn-goals,.tn-pick) {border:1px solid #e8d9c8;border-radius:20px;background:#fffaf5;color:#382820;box-shadow:0 6px 20px rgb(70 36 24 / 6%);}
#adminMain .table-responsive {overflow-x:auto;} #adminMain .table {--bs-table-bg:transparent;--bs-table-color:#382820;--bs-table-border-color:#e8d9c8;margin:0;} #adminMain .table thead {--bs-table-bg:#f6e8da;--bs-table-color:#773821;}
#adminMain .card-header,#adminMain .nav-tabs .active {background:#f6e8da;color:#773821;} #adminMain :is(.form-control,.form-select) {border-color:#dbc6b6;border-radius:12px;} #adminMain :is(.form-control,.form-select):focus {box-shadow:0 0 0 3px #a8472b25;border-color:#a8472b;}
:is(#adminMain,.tn-map) :is(.tn-btn,.t-btn,.btn-primary,.btn-outline-primary) {border-radius:999px !important;padding:10px 22px !important;min-height:44px;border:1px solid #a8472b !important;box-shadow:none !important;transform:none !important;font-weight:650;background:#a8472b !important;color:white !important;}
:is(#adminMain,.tn-map) :is(.tn-btn-ghost,.t-btn-ghost,.btn-outline-primary) {background:#fffaf5 !important;color:#923c25 !important;}
:is(#adminMain,.tn-map) :is(.tn-btn,.t-btn,.btn-primary,.btn-outline-primary):is(:hover,:focus-visible) {background:#873820 !important;color:white !important;}
:is(#adminMain,.tn-map) .tn-chip {background:#f6e8da;color:#773821;} :is(#adminMain,.tn-map) .tn-fill {background:#a8472b;}
#adminMain .tnd-hello-char {overflow:hidden;align-self:stretch;min-height:140px;background:url('/assets/terra/img/p1.jpg') center/cover no-repeat;border-radius:20px;} #adminMain .tnd-hello-char img {visibility:hidden;animation:none;}

/* Shared panel navigation */
.panel-navigation {padding:4px 10px 18px;}
.panel-nav-group + .panel-nav-group {margin-top:10px;border-top:1px solid #eddfd3;padding-top:10px;}
.panel-nav-title {padding:0 12px 5px;color:#795a4a;font-size:.82rem;font-weight:700;}
:is(#mobileSidebar,#desktopSidebar) .panel-navigation .nav-link {display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;margin:1px 0;border-radius:12px;color:#4d392e;transition:background-color .18s ease,color .18s ease;}
.panel-navigation .nav-link i {width:20px;text-align:center;transition:transform .18s ease;color:#956346;}
:is(#mobileSidebar,#desktopSidebar) .panel-navigation .nav-link[aria-current] {background:#f4e4d7;color:#84391f;box-shadow:inset -3px 0 #a8472b;}
:is(#mobileSidebar,#desktopSidebar) .panel-navigation .nav-link:focus-visible {outline:2px solid #a8472b;outline-offset:-2px;}
@media(hover:hover){:is(#mobileSidebar,#desktopSidebar) .panel-navigation .nav-link:hover {background:#f6eadd;color:#84391f;} .panel-navigation .nav-link:hover i {transform:translateX(-2px);}}
#desktopSidebar.mini .panel-nav-title {display:none;} #desktopSidebar.mini .panel-navigation {padding-inline:4px;} #desktopSidebar.mini .panel-navigation .nav-link {justify-content:center;padding-inline:2px;}
@media(prefers-reduced-motion:reduce){:is(#desktopSidebar,#mobileSidebar) .panel-navigation .nav-link,:is(#desktopSidebar,#mobileSidebar) .panel-navigation .nav-link i {transition:none;transform:none;}}

/* Journey badge collection */
#adminMain .journey-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:14px;margin-top:16px}
.journey-award{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;border:1px solid #e7dbce;border-radius:18px;background:#fffcf8;padding:18px 12px;color:#473428}
.journey-award__art{display:grid;place-items:center;width:68px;height:68px;margin-bottom:4px;border-radius:50%;border:3px solid #fff8e7;outline:2px solid var(--award-color);background:linear-gradient(145deg,color-mix(in srgb,var(--award-color),white 20%),color-mix(in srgb,var(--award-color),black 32%));box-shadow:inset 0 0 0 3px #ffffff45,0 4px 9px #4b362022;color:#fff;font-size:27px;}
.journey-award small{color:#67594f;line-height:1.7}.journey-award__state{font-size:.78rem;color:#574132;background:#f4e6d8;padding:3px 10px;border-radius:99px;margin-top:auto}.journey-award.is-locked{filter:grayscale(1);background:#f7f7f7}.journey-award.is-locked .journey-award__art{opacity:.72}

/* Center each panel view in the space beside its navigation. */
body:has(#desktopSidebar) #adminMain {max-width:none!important;width:auto!important;min-width:0;box-sizing:border-box;}
#adminMain > :not(script,link,style) {box-sizing:border-box;max-width:min(100%,1100px)!important;margin-inline:auto!important;}
#adminMain .honor-shelf {padding:22px;background:#f6ecdf;border:1px solid #ddc5ad;border-radius:22px;row-gap:24px;}
#adminMain .honor-shelf .journey-award {border-bottom:9px solid #b58561;box-shadow:0 5px 0 #e0c6af,0 10px 12px #69432418;}
#adminMain .tn-rewards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:16px;}
#adminMain .tn-reward {display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:0 0 16px;background:#fffaf5;border:1px solid #e8d9c8;border-radius:20px;}#adminMain .tn-reward>div,#adminMain .tn-reward>button {margin-inline:14px;}#adminMain .gift-art {display:block;width:100%;aspect-ratio:24/11;object-fit:cover;}
.admin-navbar .panel-bell,.admin-navbar .panel-exit {position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#873820;background:#f6e8da;margin-inline:3px;}.panel-count:not([hidden]){position:absolute;top:-2px;right:-2px;background:#a8472b;color:white;border-radius:999px;min-width:19px;text-align:center;font-size:12px;line-height:19px;}
