/* shell.css v2 */
:root {
  --dh-tab-h: 64px;
  --dh-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  padding-bottom: calc(var(--dh-tab-h) + var(--dh-safe-bottom) + 12px) !important;
}

html.dh-installed #dh-install-banner,
html.dh-installed #dh-install-home {
  display: none !important;
}

#dh-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--dh-tab-h) + var(--dh-safe-bottom));
  padding-bottom: var(--dh-safe-bottom);
  background: rgba(10, 10, 16, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#dh-tabbar button {
  flex: 1; border: none; background: transparent;
  color: #7a6a4a; font-family: inherit; font-size: 0.72rem;
  padding: 8px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#dh-tabbar button .ico { font-size: 1.3rem; }
#dh-tabbar button.active { color: #f0c040; }

.dh-home-wrap { padding: 6px 2px 28px; text-align: right; }

.dh-home-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 16px;
}
.dh-greet { margin: 0; color: #e8e0d0; font-size: 1.05rem; }
.dh-greet b { color: #f0c040; }
.dh-date { margin: 4px 0 0; color: #6a6048; font-size: 0.78rem; }

.dh-chip {
  font-size: 0.72rem; padding: 6px 10px; border-radius: 999px;
  background: rgba(240,192,64,0.12); color: #d4af37;
  border: 1px solid rgba(240,192,64,0.3); white-space: nowrap;
}

.dh-quote-hero {
  background: linear-gradient(160deg, #1c1a28 0%, #121018 55%, #1a1510 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.dh-quote-label {
  color: #f0c040; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px;
}
.dh-quote-sub {
  color: #7a6a4a; font-size: 0.75rem; margin-bottom: 14px;
}
.dh-q-line {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dh-q-line:first-of-type { border-top: none; }
.dh-q-num {
  grid-row: 1 / span 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(240,192,64,0.15); color: #f0c040;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}
.dh-q-line p {
  margin: 0; color: #ece4d4; font-size: 0.95rem; line-height: 1.9;
}
.dh-q-tag {
  font-size: 0.7rem; color: #8a7a55;
}
.dh-quote-foot {
  margin-top: 12px; font-size: 0.7rem; color: #5a5040; text-align: center;
}

.dh-fade-in {
  animation: dhFadeUp 0.45s ease both;
}
@keyframes dhFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dh-cta-card {
  background: #161622;
  border: 1px solid #2a2a3e;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.dh-cta-title {
  margin: 0 0 6px; color: #f0c040; font-size: 1.05rem; font-weight: 700;
}
.dh-cta-desc {
  margin: 0 0 14px; color: #a09070; font-size: 0.88rem; line-height: 1.7;
}
.dh-cta-main { width: 100%; }
.dh-cta-sec {
  width: 100%; margin-top: 8px;
  border-color: rgba(212,175,55,0.45) !important;
  color: #f0c040 !important;
}

.dh-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.dh-mini {
  background: #12121c; border: 1px solid #2a2a3e; border-radius: 12px;
  padding: 14px 10px; color: #cbb98a; font-family: inherit; font-size: 0.85rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.dh-mini span { font-size: 1.2rem; }

.dh-profile-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #8a7020);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700; color: #111;
  margin: 0 auto 12px;
}
.dh-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0;
}
.dh-stat {
  background: #12121c; border-radius: 12px; padding: 12px; text-align: center;
  border: 1px solid #2a2a3e;
}
.dh-stat .n { font-size: 1.3rem; color: #f0c040; font-weight: 700; }
.dh-stat .l { font-size: 0.75rem; color: #8a7a55; margin-top: 4px; }

.dh-mini-one { grid-template-columns: 1fr; }
.dh-mini-one .dh-mini { flex-direction: row; justify-content: center; gap: 8px; padding: 14px; }

/* پروفایل غنی */
.dh-last-card {
  margin-top: 14px;
  background: #12121c;
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: right;
}
.dh-last-empty { border-style: dashed; opacity: 0.95; }
.dh-last-title {
  color: #f0c040;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.dh-last-meta {
  color: #7a6a4a;
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.dh-last-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dh-last-row:first-of-type { border-top: none; }
.dh-last-rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(240,192,64,0.15); color: #f0c040;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.dh-last-name {
  flex: 1; color: #e8e0d0; font-size: 0.9rem; line-height: 1.5;
}
.dh-last-score {
  color: #d4af37; font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}

/* محتوا محدود؛ تب‌بار تمام‌عرض */
.container, #app {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.btn, button.btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.card {
  border-radius: 16px;
}

.dh-brand { margin-bottom: 10px; }
.dh-brand-name { font-size: 1.35rem; font-weight: 800; color: #f0c040; }
.dh-brand-sub { margin-top: 4px; font-size: 0.78rem; color: #b0a080; line-height: 1.65; }
.dh-date { color: #c4b48a !important; font-size: 0.88rem !important; opacity: 1 !important; margin-top: 6px !important; }
.dh-greet { margin-top: 10px !important; }


/* ===== FIX v16: تب‌بار همیشه ۳ دکمه کامل ===== */
#dh-tabbar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: stretch !important;
  height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  z-index: 2147483000 !important;
  background: rgba(10, 10, 16, 0.98) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.28) !important;
}
#dh-tabbar button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
#dh-install-banner {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147482000 !important;
}

.dh-build-v{font-size:0.7rem;color:#8a7a55;font-weight:600;margin-right:6px;}


/* ========== UI Premium v21 — حس اپ آموزشی ========== */
:root {
  --dh-gold: #f0c040;
  --dh-gold-dim: #d4af37;
  --dh-bg: #0c0c12;
  --dh-card: #14141c;
  --dh-border: rgba(212, 175, 55, 0.28);
  --dh-text: #e8e0d0;
  --dh-muted: #8a7a55;
}

body {
  background: radial-gradient(ellipse at top, #16141f 0%, var(--dh-bg) 55%) !important;
  color: var(--dh-text);
}

#app, .container {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 14px;
  padding-right: 14px;
}

/* هدر پیشرفت */
.dh-progress-wrap, .dh-edu-header {
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid var(--dh-border);
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin: 8px 0 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.dh-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--dh-muted);
}
.dh-progress-labels .on {
  color: var(--dh-gold);
  font-weight: 700;
}
.dh-brand-mini {
  font-weight: 800;
  color: var(--dh-gold-dim);
  letter-spacing: 0.02em;
}
.dh-progress-track {
  height: 6px;
  background: #1e1e2a;
  border-radius: 99px;
  overflow: hidden;
}
.dh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8962e, var(--dh-gold), #ffe08a);
  border-radius: 99px;
  transition: width 0.35s ease;
  box-shadow: 0 0 12px rgba(240,192,64,0.45);
}
.dh-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 4px;
}
.dh-step {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: #5a5040;
}
.dh-step i {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #2a2a38;
  border: 1.5px solid #3a3a4a;
}
.dh-step.active { color: var(--dh-gold); font-weight: 700; }
.dh-step.active i {
  background: var(--dh-gold);
  border-color: var(--dh-gold);
  box-shadow: 0 0 10px rgba(240,192,64,0.6);
}
.dh-step.done { color: #a89050; }
.dh-step.done i {
  background: #a89050;
  border-color: #a89050;
}

/* کارت‌ها و دکمه‌ها */
.card {
  background: var(--dh-card) !important;
  border: 1px solid var(--dh-border) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}
.btn, button.btn {
  min-height: 48px !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary, button.btn-primary {
  background: linear-gradient(135deg, #d4af37, #f0c040) !important;
  color: #1a1408 !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}
.btn-primary:active, button.btn-primary:active {
  transform: scale(0.98);
}
.btn:not(.btn-primary) {
  background: #1a1a24 !important;
  border: 1px solid #333 !important;
  color: var(--dh-text) !important;
}

/* گزینه‌های قلمرو / مسیر */
.option {
  background: #12121a !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.option.selected {
  border-color: var(--dh-gold) !important;
  background: rgba(240,192,64,0.08) !important;
  box-shadow: 0 0 0 1px rgba(240,192,64,0.25);
}
.option:active:not(.dh-path-done) {
  transform: scale(0.985);
}
.dh-path-done {
  opacity: 0.4 !important;
  pointer-events: none !important;
  filter: grayscale(0.75);
  border-color: #2a2a32 !important;
}
.dh-path-done strong { color: #777 !important; }

/* جرقه */
.dh-spark-chip {
  background: linear-gradient(135deg, rgba(240,192,64,0.12), rgba(20,20,28,0.9));
  border: 1px solid rgba(240,192,64,0.35);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 8px 0 12px;
}
.dh-spark-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dh-gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.dh-spark-hint {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--dh-muted);
}
.dh-spark-bar {
  height: 5px;
  background: #1e1e2a;
  border-radius: 99px;
  overflow: hidden;
}
.dh-spark-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f0c040);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* تب‌بار */
#dh-tabbar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  z-index: 2147483000 !important;
  background: rgba(10, 10, 16, 0.97) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.28) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#dh-tabbar button.active {
  color: var(--dh-gold) !important;
}

/* عناوین */
h2 {
  letter-spacing: -0.01em;
}
.dh-stage-hint {
  color: var(--dh-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
}

/* نتایج */
.dh-motive-count {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(240,192,64,0.12);
  border: 1px solid rgba(240,192,64,0.35);
  color: var(--dh-gold);
}


/* ——— جذابیت v17: جرقه‌یاب + والدین ——— */
.dh-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}
.dh-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(240,192,64,0.28);
  background: linear-gradient(160deg, rgba(26,26,46,0.95), rgba(14,14,22,0.98));
  color: var(--text-primary, #e0e0e0);
  text-align: right;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dh-feature:active { transform: scale(0.98); }
.dh-feature:hover { border-color: rgba(240,192,64,0.55); }
.dh-f-ico { font-size: 1.15rem; }
.dh-f-t { font-weight: 700; font-size: 0.95rem; color: #f0c040; }
.dh-f-d { font-size: 0.75rem; color: #9a9080; }

.dh-back-link {
  background: none;
  border: none;
  color: #9a9080;
  font-size: 0.88rem;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}
.dh-spark-title, .dh-par-title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #f0e6c8;
}
.dh-spark-desc, .dh-par-lead {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #b0a080;
  margin-bottom: 14px;
}
.dh-spark-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dh-spark-time {
  min-width: 2rem;
  font-weight: 700;
  color: #f0c040;
  font-variant-numeric: tabular-nums;
}
.dh-spark-track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.dh-spark-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #d4af37, #f0c040);
  border-radius: 99px;
  transition: width 0.35s linear;
}
.dh-spark-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dh-spark-card {
  text-align: right;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #14141e;
  color: #e0e0e0;
  font-size: 0.88rem;
  line-height: 1.65;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dh-spark-card.on {
  border-color: rgba(240,192,64,0.65);
  background: rgba(240,192,64,0.12);
  box-shadow: 0 0 0 1px rgba(240,192,64,0.2);
}
.dh-spark-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #7a7368;
  text-align: center;
}
.dh-spark-result {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(240,192,64,0.25);
  background: #151520;
  line-height: 1.8;
}
.dh-spark-msg { margin-top: 10px; color: #c8c0b0; font-size: 0.92rem; }

.dh-par-card {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #151520;
}
.dh-par-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #f0c040;
}
.dh-par-card p, .dh-par-list {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #c8c0b0;
}
.dh-par-card.warn {
  border-color: rgba(196,100,80,0.35);
  background: rgba(60,24,20,0.35);
}
.dh-par-card.warn h3 { color: #e09080; }
.dh-par-card.good {
  border-color: rgba(240,192,64,0.35);
  background: rgba(40,32,12,0.4);
}
.dh-par-list {
  padding-right: 18px;
  margin: 0;
}
.dh-par-list li { margin-bottom: 10px; }


/* v18 badges + stories */
.dh-feature-3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 380px) {
  .dh-feature-3 { grid-template-columns: 1fr; }
}
.dh-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.dh-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #12121a;
  opacity: 0.4;
  font-size: 0.68rem;
  color: #8a8478;
}
.dh-badge.on {
  opacity: 1;
  border-color: rgba(240,192,64,0.55);
  background: rgba(240,192,64,0.12);
  color: #f0c040;
}
.dh-badge-ico { font-size: 0.75rem; }
.dh-badge-new {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240,192,64,0.15);
  border: 1px solid rgba(240,192,64,0.4);
  color: #f0e6c0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.dh-story-list { display: flex; flex-direction: column; gap: 10px; }
.dh-story-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #151520;
}
.dh-story-card.featured {
  border-color: rgba(240,192,64,0.35);
  background: rgba(40,32,12,0.35);
}
.dh-story-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: #f0c040;
  margin-bottom: 6px;
  opacity: 0.9;
}
.dh-story-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #f0e6c8;
}
.dh-story-card p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #c8c0b0;
}
.dh-story-foot {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #7a7368;
  text-align: center;
  line-height: 1.6;
}


/* داستان زنده اسب‌های سیاه */
.dh-story-live-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dh-story-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240,192,64,0.15);
  border: 1px solid rgba(240,192,64,0.4);
  color: #f0c040;
}
.dh-story-count {
  font-size: 0.75rem;
  color: #8a8478;
  font-variant-numeric: tabular-nums;
}
.dh-story-today {
  font-size: 0.82rem;
  color: #9a9080;
  margin-bottom: 12px;
  line-height: 1.5;
}
.dh-story-hero {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(240,192,64,0.28);
  background: linear-gradient(165deg, rgba(40,32,12,0.45), rgba(18,18,28,0.98));
  margin-bottom: 12px;
}
.dh-story-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0e6c8;
}
.dh-story-en {
  font-size: 0.8rem;
  color: #a09070;
  margin-top: 2px;
  direction: ltr;
  text-align: right;
}
.dh-story-role {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #f0c040;
}
.dh-story-lesson {
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e8e0d0;
  font-weight: 600;
}
.dh-story-body {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #c8c0b0;
}
.dh-story-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d0c8b8;
}
.dh-story-actions {
  display: flex;
  gap: 8px;
}


/* سخن بزرگان */
.dh-feature-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dh-poem-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(240,192,64,0.22);
  background: linear-gradient(165deg, rgba(28,24,40,0.95), rgba(18,18,28,0.98));
  margin-bottom: 10px;
}
.dh-poem-label {
  display: inline-block;
  font-size: 0.7rem;
  color: #c0a860;
  margin-bottom: 8px;
}
.dh-poem-line {
  font-size: 1.05rem;
  line-height: 2;
  color: #f0e8d8;
  text-align: center;
  margin: 4px 0;
}
.dh-poem-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dh-poem-poet {
  color: #f0c040;
  font-size: 0.88rem;
  font-weight: 600;
}
.dh-poem-tag {
  font-size: 0.72rem;
  color: #8a8478;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}
.dh-poem-live-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}


/* ===== Home v22 — ماکت حرفه‌ای ===== */
.dh-home-v22 { padding-bottom: 12px; }
.dh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 8px;
}
.dh-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.dh-logo-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #f0c040;
  text-align: center;
}
.dh-logo-sub {
  font-size: 0.68rem;
  color: #8a8478;
  text-align: center;
  margin-top: 2px;
}
.dh-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #2a2418, #121018);
  border: 1px solid rgba(240,192,64,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(240,192,64,0.15);
}
.dh-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #c8c0b0;
  font-size: 1rem;
  cursor: pointer;
}
.dh-hello { text-align: center; margin-bottom: 18px; }
.dh-hello-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f5f0e6;
  margin: 0 0 6px;
  line-height: 1.4;
}
.dh-hello-sub {
  margin: 0;
  color: #9a9285;
  font-size: 0.9rem;
  line-height: 1.7;
}
.dh-hero-journey {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(40,34,22,0.95), rgba(18,16,28,0.98));
  border: 1px solid rgba(240,192,64,0.28);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(240,192,64,0.08);
  margin-bottom: 12px;
}
.dh-hero-text { flex: 1; text-align: right; }
.dh-hero-text h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #f0c040;
}
.dh-hero-text p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #b0a890;
  line-height: 1.6;
}
.dh-hero-cta {
  width: auto !important;
  min-width: 120px;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
}
.dh-compass {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(240,192,64,0.12), transparent 70%);
  animation: dh-compass-soft 6s ease-in-out infinite;
}
@keyframes dh-compass-soft {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.dh-progress-card,
.dh-spark-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22,20,32,0.92);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 12px;
}
.dh-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.dh-progress-title { font-size: 0.95rem; color: #e8e0d0; font-weight: 600; }
.dh-progress-sub { font-size: 0.78rem; color: #8a8478; margin-top: 3px; }
.dh-progress-ico { opacity: 0.7; }
.dh-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.dh-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #f0c040);
  transition: width 0.6s ease;
}
.dh-progress-pct {
  text-align: left;
  font-size: 0.8rem;
  color: #f0c040;
  margin-top: 6px;
  font-weight: 600;
}
.dh-spark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dh-spark-label { color: #c0a860; font-size: 0.85rem; font-weight: 600; }
.dh-spark-marks { color: rgba(240,192,64,0.45); font-size: 1.4rem; line-height: 1; }
.dh-spark-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #e8e2d6;
}
.dh-spark-author {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #8a8478;
  text-align: left;
}
.dh-feature-soft .dh-feature {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
.dh-chip-line { text-align: center; margin: 8px 0 0; }
#dh-tabbar button .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
#dh-tabbar button .ico svg { display: block; }
#dh-tabbar button.active { color: #f0c040; }
#dh-tabbar button.active .ico { color: #f0c040; }

@media (prefers-reduced-motion: reduce) {
  .dh-compass { animation: none; }
}


/* ===== Home v23 fixes ===== */
.dh-topbar-clean { justify-content: center; }
.dh-topbar-clean .dh-top-brand { justify-content: center; }
.dh-hello-title {
  font-size: 1.55rem !important;
  font-weight: 700;
  color: #f5f0e6 !important;
  line-height: 1.45;
}
.dh-hello-sub {
  font-size: 1rem !important;
  color: #b0a890 !important;
  line-height: 1.8;
  margin-top: 6px;
}
.dh-date {
  margin-top: 10px !important;
  font-size: 0.92rem !important;
  color: #9a9285 !important;
  opacity: 1 !important;
}
.dh-hero-text h2 { font-size: 1.25rem !important; }
.dh-hero-text p { font-size: 0.95rem !important; line-height: 1.7; }
.dh-hero-cta { font-size: 1rem !important; padding: 12px 26px !important; }
.dh-progress-title { font-size: 1.05rem !important; }
.dh-progress-sub { font-size: 0.88rem !important; }
.dh-progress-pct-big {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0c040;
}
.dh-messages-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(22,20,32,0.92);
  border: 1px solid rgba(240,192,64,0.18);
  margin-bottom: 14px;
  text-align: right;
}
.dh-messages-head { margin-bottom: 12px; }
.dh-messages-label {
  display: block;
  color: #f0c040;
  font-size: 1.05rem;
  font-weight: 700;
}
.dh-messages-sub {
  display: block;
  margin-top: 4px;
  color: #8a8478;
  font-size: 0.88rem;
}
.dh-q-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dh-q-line:last-of-type { border-bottom: none; }
.dh-q-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240,192,64,0.15);
  color: #f0c040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.dh-q-body p {
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.85 !important;
  color: #e8e2d6 !important;
}
.dh-q-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #a09070;
}
.dh-quote-foot {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6a6558;
  text-align: center;
}
.dh-f-t { font-size: 0.95rem !important; }
.dh-f-d { font-size: 0.78rem !important; }

/* تب‌بار: فقط یک آیکون SVG */
#dh-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #8a8478;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 6px 8px;
}
#dh-tabbar button .ico {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0 !important;
  line-height: 0 !important;
}
#dh-tabbar button .ico::before,
#dh-tabbar button .ico::after {
  content: none !important;
  display: none !important;
}
#dh-tabbar button .ico svg {
  display: block;
  width: 22px;
  height: 22px;
}
#dh-tabbar button .lbl {
  font-size: 0.78rem;
  line-height: 1.2;
}
#dh-tabbar button.active {
  color: #f0c040;
}


/* ===== v24: session + brand + larger feature text ===== */
.dh-topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 14px;
}
.dh-top-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dh-brand-text { text-align: center; }
.dh-logo-title {
  font-size: 0.95rem !important;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #f0c040 !important;
}
.dh-logo-sub {
  font-size: 0.95rem !important;
  color: #e8e0d0 !important;
  font-weight: 600;
  margin-top: 2px;
}
.dh-system-tagline {
  margin: 10px 0 0;
  padding: 8px 14px;
  max-width: 92%;
  font-size: 0.92rem !important;
  line-height: 1.6;
  color: #c8b890 !important;
  background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.22);
  border-radius: 999px;
  text-align: center;
}
.dh-feature {
  padding: 14px 10px !important;
}
.dh-f-ico { font-size: 1.45rem !important; }
.dh-f-t {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #efe8dc !important;
}
.dh-f-d {
  font-size: 0.86rem !important;
  color: #a09888 !important;
  margin-top: 4px;
}
.dh-hero-secondary {
  display: block;
  width: auto;
  margin-top: 10px;
  font-size: 0.9rem !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #b0a890 !important;
}
.dh-hello-title { font-size: 1.6rem !important; }
.dh-hello-sub { font-size: 1.02rem !important; }
.dh-date { font-size: 0.95rem !important; }


/* روی v24 — فقط عنوان هویت، سلام+تاریخ، پیام بیشتر، فونت چهار آیکون */
.dh-identity-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.75;
  color: #f5f0e6;
}
.dh-greet-date {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #a09888;
  line-height: 1.6;
}
.dh-msg-more {
  display: block;
  width: 100%;
  margin: 10px 0 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240,192,64,0.3);
  background: rgba(240,192,64,0.07);
  color: #e0c878;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.dh-feature-soft .dh-f-t {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #f2ebe0 !important;
}
.dh-feature-soft .dh-f-d {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #a8a090 !important;
}
.dh-feature-soft .dh-f-ico {
  font-size: 1.5rem !important;
}


/* آیکون اسب بالای DARK HORSE */
.dh-top-brand-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.dh-logo-mark {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(240,192,64,0.35);
  box-shadow: 0 4px 14px rgba(212,175,55,0.22);
  background: #0a0a0f;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.dh-logo-horse {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.dh-brand-text { text-align: center; }


/* ============================================================
   HOME UNIFIED — یک تم واحد نزدیک ماکت
   بولد فقط: سامانه هدایت تحصیلی
   نام کاربر: سبک
   ============================================================ */

.dh-mk2 {
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 12px 32px;
  color: #e8e2d6;
  background: radial-gradient(ellipse 120% 70% at 50% -5%, rgba(212,175,55,0.06), transparent 50%);
}

/* Brand */
.dh-mk2-brand { text-align: center; }
.dh-mk2-logo-ring {
  width: 104px; height: 104px; margin: 0 auto 12px;
  border-radius: 28px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,224,138,0.3), transparent 65%);
  box-shadow: 0 0 48px rgba(212,175,55,0.3);
}
.dh-mk2-logo-ring img {
  width: 92px; height: 92px; object-fit: contain;
  border-radius: 22px;
  border: 1.5px solid rgba(246,217,122,0.45);
}
.dh-mk2-word {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 0.16em;
  color: #F0D060;
  text-shadow: 0 0 24px rgba(240,208,96,0.45);
}
.dh-mk2-fa {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 1.05rem; color: #ddd5c5; font-weight: 600;
}
.dh-mk2-fa i {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* ★ بولد فقط سامانه */
.dh-mk2-sys {
  margin: 16px auto 0 !important;
  max-width: 320px;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;
  color: #f4efe6 !important;
  text-align: center;
}
.dh-mk2-sub {
  margin: 6px 0 0 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #c9b888 !important;
  text-align: center;
}

/* نام کاربر — نه بولد */
.dh-mk2-hello { text-align: center; margin: 14px 0 16px; }
.dh-mk2-greet {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #9a9285 !important;
}
.dh-mk2-date {
  margin: 4px 0 0 !important;
  font-size: 0.78rem !important;
  color: #6a6558 !important;
  font-weight: 400 !important;
}

/* Hero */
.dh-mk2-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 196px;
  margin-bottom: 14px;
  border: 1.5px solid rgba(246,217,122,0.48);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 0 40px rgba(212,175,55,0.15);
}
.dh-mk2-hero-bg {
  position: absolute; inset: 0;
  background-color: #080a12;
  background-size: cover !important;
  background-position: 70% center !important;
}
.dh-mk2-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 75% 45%, rgba(246,217,122,0.18), transparent 60%);
  pointer-events: none;
}
.dh-mk2-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(4,4,10,0.92) 0%, rgba(4,4,10,0.6) 42%, rgba(4,4,10,0.15) 100%);
  pointer-events: none;
}
.dh-mk2-hero-body { position: relative; z-index: 2; padding: 20px 18px 18px; }
.dh-mk2-hero-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.dh-mk2-compass {
  width: 48px; height: 48px; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255,224,138,0.5));
}
.dh-mk2-compass img { width: 48px; height: 48px; object-fit: contain; }
.dh-mk2-hero-title {
  font-size: 1.3rem; font-weight: 800; color: #F6D97A;
  text-shadow: 0 0 14px rgba(246,217,122,0.3);
}
.dh-mk2-hero-sub { margin-top: 5px; font-size: 0.88rem; color: #c5bdae; line-height: 1.55; }
.dh-mk2-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: none; border-radius: 999px;
  background: linear-gradient(180deg, #FFE08A, #C9A227);
  color: #1a1206; font-family: inherit; font-size: 1.02rem; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(212,175,55,0.4);
}
.dh-mk2-cta span { font-size: 1.15rem; }

/* Progress */
.dh-mk2-progress {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: 18px;
  background: linear-gradient(145deg, #18151f, #0e0c14);
  border: 1px solid rgba(212,175,55,0.12);
  margin-bottom: 14px;
}
.dh-mk2-ring { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.dh-mk2-ring svg { width: 100%; height: 100%; }
.dh-mk2-ring-val { filter: drop-shadow(0 0 5px rgba(212,175,55,0.5)); }
.dh-mk2-ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 800; color: #F0C040;
}
.dh-mk2-prog-body { flex: 1; min-width: 0; }
.dh-mk2-prog-title { font-size: 1rem; font-weight: 700; color: #ebe4d8; margin-bottom: 10px; }
.dh-mk2-bar {
  height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden;
}
.dh-mk2-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #A67C00, #F6D97A);
}
.dh-mk2-cont {
  margin-top: 10px; padding: 0; border: none; background: none;
  color: #F0C040; font-family: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}

/* Quote */
.dh-mk2-quote {
  padding: 18px 16px; border-radius: 18px;
  background: linear-gradient(160deg, #16131c, #0c0b12);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 18px;
}
.dh-mk2-quote-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.dh-mk2-quote-label { flex: 1; font-size: 1.05rem; font-weight: 800; color: #ebe4d8; }
.dh-mk2-qq { font-size: 1.5rem; color: rgba(240,192,64,0.4); }
.dh-mk2-quote-text {
  margin: 0; font-size: 0.98rem; line-height: 1.95; color: #d4ccc0; text-align: right;
}
.dh-mk2-quote-by { margin-top: 12px; font-size: 0.82rem; color: #8a8478; text-align: left; }

/* Features */
.dh-mk2-sep {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 14px; font-size: 0.88rem; font-weight: 700; color: #b0a070;
}
.dh-mk2-sep i {
  width: 52px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
}
.dh-mk2-orb {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255,224,138,0.28), #121018 68%);
  border: 1px solid rgba(246,217,122,0.32);
  box-shadow: 0 0 18px rgba(212,175,55,0.18);
}
.dh-mk2-orb img { width: 24px; height: 24px; object-fit: contain; display: block; }
.dh-mk2-orb-m {
  background: radial-gradient(circle at 40% 30%, rgba(126,200,163,0.18), #121018 68%);
  border-color: rgba(126,200,163,0.32);
}
.dh-mk2-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; margin-bottom: 10px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(145deg, #18151f, #100e16);
  color: inherit; font-family: inherit; cursor: pointer; text-align: right;
}
.dh-mk2-row-hot {
  border-color: rgba(246,217,122,0.32);
  box-shadow: 0 0 24px rgba(212,175,55,0.1);
}
.dh-mk2-row-t { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dh-mk2-row-t strong { font-size: 1.02rem; color: #f4efe6; font-weight: 800; }
.dh-mk2-row-t span { font-size: 0.8rem; color: #8a8478; line-height: 1.5; }
.dh-mk2-chev { display: flex; align-items: center; opacity: 0.85; }
.dh-mk2-chev img { width: 18px; height: 18px; }
.dh-mk2-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.dh-mk2-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px 14px; min-height: 128px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(160deg, #18151f, #100e16);
  color: inherit; font-family: inherit; cursor: pointer; text-align: right;
}
.dh-mk2-tile strong { font-size: 0.98rem; color: #f4efe6; font-weight: 800; }
.dh-mk2-tile span { font-size: 0.76rem; color: #8a8478; line-height: 1.5; }


/* ============================================================
   FIX FOCUSED — دستور کاربر
   1) بولد فقط سامانه
   2) کارت سفر طلایی درخشان
   3) چهار عنصر یک رنگ طلایی
   4) کیفیت بصری مثل لوگوی اسب
   ============================================================ */

/* 1) بولد */
.dh-mk2-sys {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #f7f2e8 !important;
  line-height: 1.75 !important;
}
.dh-mk2-sub {
  font-weight: 600 !important;
  color: #d4c49a !important;
}
.dh-mk2-greet {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #8a8478 !important;
}

/* 4) لوگو — درخشش قوی‌تر (مرجع کیفیت) */
.dh-mk2-logo-ring {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,230,150,0.45), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(212,175,55,0.2), transparent 55%) !important;
  box-shadow:
    0 0 40px rgba(246,217,122,0.45),
    0 0 80px rgba(212,175,55,0.2) !important;
}
.dh-mk2-logo-ring img {
  border-color: rgba(246,217,122,0.65) !important;
  box-shadow: 0 0 24px rgba(212,175,55,0.35) !important;
}
.dh-mk2-word {
  color: #F6D97A !important;
  text-shadow:
    0 0 18px rgba(246,217,122,0.55),
    0 0 36px rgba(212,175,55,0.3) !important;
}

/* 2) کارت سفر — طلایی درخشان */
.dh-mk2-hero {
  border: 2px solid rgba(246,217,122,0.65) !important;
  box-shadow:
    0 0 0 1px rgba(255,224,138,0.2),
    0 12px 40px rgba(0,0,0,0.5),
    0 0 50px rgba(212,175,55,0.35),
    inset 0 0 60px rgba(246,217,122,0.06) !important;
}
.dh-mk2-hero-glow {
  background: radial-gradient(ellipse 80% 70% at 70% 40%,
    rgba(255,224,138,0.35),
    rgba(212,175,55,0.12) 45%,
    transparent 70%) !important;
}
.dh-mk2-hero-title {
  color: #FFE08A !important;
  text-shadow: 0 0 20px rgba(255,224,138,0.5) !important;
}
.dh-mk2-cta {
  background: linear-gradient(180deg, #FFE9A0 0%, #F0C040 45%, #C9A227 100%) !important;
  box-shadow:
    0 6px 24px rgba(212,175,55,0.55),
    0 0 30px rgba(246,217,122,0.3) !important;
}
.dh-mk2-compass {
  filter: drop-shadow(0 0 14px rgba(255,224,138,0.65)) !important;
}

/* 3) چهار عنصر — یک رنگ طلایی (نه سبز برای والدین) */
.dh-mk2-orb,
.dh-mk2-orb-m {
  background: radial-gradient(circle at 40% 30%,
    rgba(255,224,138,0.35),
    rgba(20,18,28,0.95) 68%) !important;
  border: 1.5px solid rgba(246,217,122,0.45) !important;
  box-shadow:
    0 0 22px rgba(212,175,55,0.28),
    0 0 8px rgba(246,217,122,0.15) !important;
}
.dh-mk2-row,
.dh-mk2-tile {
  border-color: rgba(212,175,55,0.18) !important;
  background: linear-gradient(145deg, #1a1722, #100e16) !important;
}
.dh-mk2-row-hot {
  border-color: rgba(246,217,122,0.4) !important;
  box-shadow: 0 0 28px rgba(212,175,55,0.18) !important;
}
.dh-mk2-row-t strong,
.dh-mk2-tile strong {
  color: #f4efe6 !important;
}
.dh-mk2-sep span { color: #c9b888 !important; }
.dh-mk2-sep i {
  background: linear-gradient(90deg, transparent, rgba(246,217,122,0.6), transparent) !important;
  box-shadow: 0 0 8px rgba(212,175,55,0.35) !important;
}

/* پیشرفت هم هم‌خانواده طلایی */
.dh-mk2-progress {
  border-color: rgba(212,175,55,0.2) !important;
}
.dh-mk2-ring-val {
  filter: drop-shadow(0 0 8px rgba(246,217,122,0.55)) !important;
}
.dh-mk2-quote {
  border-color: rgba(212,175,55,0.12) !important;
}

.dh-mk2-meta{display:flex;justify-content:space-between;align-items:center;padding:4px 2px 10px}
.dh-mk2-meta-name{font-size:.88rem!important;font-weight:500!important;color:#a8a090!important}
.dh-mk2-meta-date{font-size:.78rem!important;font-weight:400!important;color:#6a6558!important}
.dh-mk2-logo-ring{background:radial-gradient(circle at 50% 35%,rgba(255,236,170,.55),transparent 58%),radial-gradient(circle at 50% 70%,rgba(212,175,55,.25),transparent 60%)!important;box-shadow:0 0 36px rgba(246,217,122,.55),0 0 70px rgba(212,175,55,.28)!important}
.dh-mk2-logo-ring img{border:1.5px solid rgba(255,224,138,.7)!important;box-shadow:0 0 28px rgba(246,217,122,.4)!important}
.dh-mk2-word{color:#FFE08A!important;text-shadow:0 0 22px rgba(255,224,138,.55),0 0 40px rgba(212,175,55,.3)!important}
.dh-mk2-hero{min-height:180px!important;border:1.5px solid rgba(246,217,122,.55)!important;box-shadow:0 10px 32px rgba(0,0,0,.4),0 0 36px rgba(212,175,55,.22)!important;border-radius:18px!important}
.dh-mk2-hero-glow{display:none!important}
.dh-mk2-hero-shade{background:linear-gradient(100deg,rgba(8,8,14,.88) 0%,rgba(8,8,14,.55) 45%,rgba(8,8,14,.2) 100%)!important}
.dh-mk2-hero-title{color:#F6D97A!important;text-shadow:0 0 12px rgba(246,217,122,.35)!important}
.dh-mk2-cta{background:linear-gradient(180deg,#FFE08A,#D4AF37)!important;box-shadow:0 6px 20px rgba(212,175,55,.4)!important}
.dh-mk2-sys{font-weight:800!important;font-size:1.12rem!important;color:#f4efe6!important}
.dh-guide-ov{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.72);display:flex;align-items:flex-end;justify-content:center;padding:12px;font-family:Vazirmatn,sans-serif}
.dh-guide-panel{width:100%;max-width:420px;max-height:88vh;overflow:auto;background:linear-gradient(165deg,#1a1722,#0e0c14);border:1px solid rgba(212,175,55,.35);border-radius:20px 20px 16px 16px;padding:20px 18px 18px;position:relative}
.dh-guide-x{position:absolute;top:12px;left:12px;width:36px;height:36px;border:none;border-radius:50%;background:rgba(255,255,255,.06);color:#c8c0b0;font-size:1.4rem;cursor:pointer}
.dh-guide-title{margin:0 0 14px;text-align:center;font-size:1.15rem;color:#F0C040;font-weight:800}
.dh-guide-body{text-align:right;color:#c8c0b0;font-size:.9rem;line-height:1.95}
.dh-guide-body h3{color:#F0C040;font-size:.95rem;margin:14px 0 6px}
.dh-guide-body ul{padding-right:18px;margin:8px 0}
.dh-g-quote{color:#F6D97A!important;font-weight:700;margin-bottom:4px}
.dh-g-src{font-size:.78rem;color:#7a7568;margin-bottom:12px}
.dh-g-note{margin-top:12px;padding:10px 12px;border-radius:10px;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.2);color:#d4c49a!important}
.dh-guide-dots{display:flex;justify-content:center;gap:8px;margin:16px 0 12px}
.dh-guide-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.15)}
.dh-guide-dots span.on{background:#D4AF37}
.dh-guide-actions{display:flex;gap:10px}
.dh-guide-btn{flex:1;padding:12px;border:none;border-radius:12px;background:linear-gradient(180deg,#F0C040,#D4AF37);color:#1a1206;font-family:inherit;font-weight:800;font-size:.95rem;cursor:pointer}
.dh-guide-btn.secondary{background:transparent;color:#c8c0b0;border:1px solid rgba(255,255,255,.15)}


/* ========== v54: متن طلایی ملایم + اصلاح راهنما + پنل سفر + متا ========== */

/* ۱) نوشته‌های سفید → طلایی ملایم مثل «بر اساس فردیت» */
:root {
  --text-primary: #d4c49a !important;
  --text-secondary: #c9b888 !important;
  --text-soft: #b8a878 !important;
}
body, #app, .dh-home-wrap, .dh-mk2 {
  color: #d4c49a !important;
}
/* صفحات سفر / کارت‌ها / نتایج */
#app p, #app span, #app div, #app li, #app label,
.card, .quote, .swipe-card, .btn:not(.btn-primary):not(.dh-mk2-cta):not(.dh-guide-btn) {
  color: inherit;
}
#app h1, #app h2, #app h3 {
  color: #e8d9a8 !important;
}
/* تب‌بار */
.dh-tabbar, .dh-tab, .dh-tab span {
  color: #c9b888 !important;
}
.dh-tab.active, .dh-tab.active span {
  color: #F0C040 !important;
}

/* ۴) نام و تاریخ — سمت چپ، ستونی */
.dh-mk2-meta {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: 6px 4px 12px !important;
}
.dh-mk2-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  direction: ltr;
}
.dh-mk2-meta-name {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #c9b888 !important;
  direction: rtl;
  text-align: left;
}
.dh-mk2-meta-date {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: #a89870 !important;
  direction: rtl;
  text-align: left;
}

/* ۳) پنل سفر — هم‌رنگ با صفحه، فقط حاشیه طلایی ظریف */
.dh-mk2-hero {
  background: #121018 !important;
  border: 1px solid rgba(212,175,55,0.28) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
  min-height: 168px !important;
}
.dh-mk2-hero-bg {
  opacity: 0.45 !important;
  filter: saturate(0.85) brightness(0.9);
}
.dh-mk2-hero-shade {
  background: linear-gradient(105deg,
    rgba(12,12,18,0.92) 0%,
    rgba(12,12,18,0.75) 50%,
    rgba(12,12,18,0.55) 100%) !important;
}
.dh-mk2-hero-title {
  color: #e8d9a8 !important;
  text-shadow: none !important;
}
.dh-mk2-hero-sub {
  color: #c9b888 !important;
}
.dh-mk2-cta {
  background: linear-gradient(180deg, #E8C547, #D4AF37) !important;
  box-shadow: 0 4px 16px rgba(212,175,55,0.3) !important;
}

/* ۲) راهنما — بالای تب‌بار + دکمه‌ها همیشه قابل لمس */
.dh-guide-ov {
  z-index: 10080 !important;
  align-items: center !important;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}
.dh-guide-panel {
  max-height: min(78vh, 640px) !important;
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
  display: flex;
  flex-direction: column;
}
.dh-guide-body {
  flex: 1;
  overflow: auto;
  max-height: none;
  padding-bottom: 8px;
  color: #d4c49a !important;
}
.dh-guide-actions {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, #121018 20%);
}
.dh-guide-title {
  color: #e8d9a8 !important;
}
.dh-guide-btn {
  min-height: 48px;
}

/* بولد سامانه */
.dh-mk2-sys {
  color: #e8d9a8 !important;
  font-weight: 800 !important;
}
.dh-mk2-sub {
  color: #c9b888 !important;
}

/* override common whites in journey UI */
#app [style*="color:#e0e0e0"],
#app [style*="color: #e0e0e0"],
#app [style*="color:#fff"],
#app [style*="color:#ffffff"],
#app [style*="color:white"] {
  color: #d4c49a !important;
}

/* v55 */
/* حذف اثر متا از خانه */
.dh-mk2-meta { display: none !important; }

/* پروفایل: نام + تاریخ */
.dh-prof-head {
  text-align: center;
  padding: 8px 0 16px;
  margin-bottom: 8px;
}
.dh-prof-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e8d9a8 !important;
}
.dh-prof-date {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #c9b888 !important;
  font-weight: 500;
}

/* دکمه شروع/ادامه سفر کوچک‌تر */
.dh-mk2-cta {
  padding: 9px 18px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  min-height: auto !important;
}
.dh-mk2-cta span {
  font-size: 0.95rem !important;
}

/* گزینه‌های سوالات راهبرد/ارزش — طلایی ملایم */
#app .btn {
  color: #d4c49a !important;
}
#app .btn-primary {
  color: #1a1206 !important;
}
#app .card p,
#app .card {
  color: #d4c49a !important;
}
#app h2 {
  color: #e8d9a8 !important;
}
#app .option {
  color: #d4c49a !important;
}
#app .option.selected {
  color: #F0C040 !important;
}

/* ========== v56: سلسله‌مراتب تایپو + پروفایل تک‌نام ==========
   الگوی لوکس (Apple/Spotify/Linear):
   - یک نام نمایشی زیر آواتار
   - زیرش متای کم‌رنگ (تاریخ / عضویت)
   سوال: روشن‌تر و بزرگ‌تر | گزینه: ملایم‌تر و کوچک‌تر
*/

.dh-prof-display-name {
  text-align: center !important;
  margin: 10px 0 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #f0e6c8 !important;
  letter-spacing: -0.01em;
}
.dh-prof-date {
  text-align: center !important;
  margin: 6px 0 0 !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: #a89870 !important;
}
.dh-prof-head { display: none !important; } /* جلوگیری از تکرار */

/* --- سوالات: تمایز سوال vs گزینه --- */
/* متن سوال داخل کارت */
#app .card > p {
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  line-height: 1.85 !important;
  color: #f0e6c8 !important; /* روشن‌تر از گزینه */
}
/* عنوان بخش (راهبرد n از m) */
#app > h2,
#app h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #e8d9a8 !important;
}
/* گزینه‌های دکمه سوالات */
#app .card .btn:not(.btn-primary) {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  color: #c9b888 !important; /* ملایم‌تر */
  background: #16141e !important;
  border: 1px solid rgba(212,175,55,0.18) !important;
  text-align: right !important;
}
#app .card .btn:not(.btn-primary):active {
  border-color: rgba(240,192,64,0.45) !important;
  color: #e8d9a8 !important;
}
/* گزینه انتخاب‌شده — کمی برجسته‌تر */
#app .card .btn:not(.btn-primary)[style*="border:2px solid"],
#app .card .btn:not(.btn-primary)[style*="border: 2px solid"] {
  color: #f0e6c8 !important;
  border-color: #D4AF37 !important;
  background: rgba(212,175,55,0.08) !important;
}

/* گزینه‌های محله/مسیر (.option) */
#app .option {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #c9b888 !important;
}
#app .option.selected {
  color: #f0e6c8 !important;
  font-weight: 600 !important;
}

/* دکمه اصلی */
#app .btn-primary {
  color: #1a1206 !important;
  font-weight: 700 !important;
}


/* v57 on v56: تیتر سامانه یک خط + boot خانه */
.dh-mk2-sys {
  white-space: nowrap !important;
  font-size: 0.92rem !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 4px !important;
}
@media (min-width: 360px) {
  .dh-mk2-sys { font-size: 0.98rem !important; }
}
@media (min-width: 400px) {
  .dh-mk2-sys { font-size: 1.05rem !important; }
}


/* v58 — دارایی واقعی ماکت ارزیاب */
.dh-mk2-hero-bg {
  background-size: cover !important;
  background-position: center 40% !important;
  opacity: 1 !important;
  filter: none !important;
}
.dh-mk2-hero {
  min-height: 200px !important;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.35) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 28px rgba(212,175,55,0.12) !important;
}
.dh-mk2-hero-shade {
  background: linear-gradient(105deg,
    rgba(8,8,14,0.82) 0%,
    rgba(8,8,14,0.45) 48%,
    rgba(8,8,14,0.18) 100%) !important;
}

/* feature art از JPG ارزیاب */
.dh-mk2-feat {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(212,175,55,0.18);
  border: 1px solid rgba(246,217,122,0.25);
  background: #121018;
}
.dh-mk2-feat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dh-mk2-row-hot .dh-mk2-feat {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.dh-mk2-tile .dh-mk2-feat {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 14px;
}
.dh-mk2-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
