/* «قدردانم» — استایل مشترک */

/* فونت خودمیزبان است، نه از CDN بیرونی. دو دلیل: ‎@import‎ بیرونی رندرِ صفحه را
   تا رسیدنِ پاسخ نگه می‌دارد و اگر آن دامنه از داخل ایران در دسترس نباشد صفحه
   دیر باز می‌شود؛ و وابستگیِ بیرونی، سیاست امنیتی محتوا (CSP) را باز می‌کند.
   نسخهٔ متغیر همهٔ وزن‌ها (از ۳۰۰ تا ۹۰۰، شاملِ ۴۵۰ و ۵۵۰ و ۶۵۰ و ۷۵۰ و ۸۵۰
   که در همین فایل استفاده شده‌اند) را با یک فایل ۱۱۱ کیلوبایتی پوشش می‌دهد. */
@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/Vazirmatn-Variable.woff2?v=33003') format('woff2-variations'),
       url('/static/fonts/Vazirmatn-Variable.woff2?v=33003') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1F6E5C;
  --green-dark: #14503F;
  --coral: #E0645C;
  --cream: #FAF6EF;
  --card: #FFFFFF;
  --ink: #2B2B28;
  --muted: #6E6960;
  --line: #EAE3D6;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(31, 110, 92, .10);
}

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

body {
  font-family: Vazirmatn, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--cream);
  background-image: radial-gradient(circle at 85% 8%, rgba(31,110,92,.07), transparent 40%),
                    radial-gradient(circle at 10% 95%, rgba(224,100,92,.06), transparent 40%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.9;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 80px; }

.name-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.name-fields > div { display: flex; min-width: 0; flex-direction: column; }
.name-fields > div > input { margin-top: auto; }
.name-fields label .hint { display: inline; margin-inline-start: 4px; font-size: .78rem; }
.person-name .first { font-size: 1em; font-weight: 700; }
.person-name .last  { font-size: .68em; font-weight: 500; opacity: .75; }

.brand { text-align: center; margin-bottom: 26px; }
.brand h1 { color: var(--green); font-size: 2rem; font-weight: 800; }
.brand p, .brand-line { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.brand-line { display: block; line-height: 1.7; }
.brand .logo { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.manifesto {
  max-width: 560px;
  margin: 10px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink) !important;
  font-size: 1.12rem !important;
  font-weight: 700;
  line-height: 1.9;
  box-shadow: 0 8px 24px rgba(31, 110, 92, .07);
}
.manifesto-call {
  margin-top: 10px !important;
  color: var(--green) !important;
  font-size: 1rem !important;
  font-weight: 800;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin-bottom: 18px;
}

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 540px) { .choices { grid-template-columns: 1fr; } }

.choice {
  cursor: pointer;
  text-align: center;
  padding: 26px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.choice .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.choice h3 { font-size: 1.15rem; margin-bottom: 6px; }
.choice p { font-size: .88rem; color: var(--muted); }
.choice.love:hover { border-color: var(--coral); }
.choice.gratitude:hover { border-color: var(--green); }

.role-cloud { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.role-cloud-label { color: var(--muted); font-size: .78rem; margin-inline-end: 2px; }
.role-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F3F2ED;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
}
.hidden-role-line { margin-top: 8px; min-height: 1.5em; }
.love-options { margin: 8px 0 10px; display: grid; gap: 8px; }
.love-option-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.option-label { min-width: 44px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.love-chip {
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  color: var(--coral);
  background: #FFF9F7;
  border: 1.5px solid rgba(224, 100, 92, .32);
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 18px;
  cursor: pointer;
}
.love-chip.selected { color: #fff; background: var(--coral); border-color: var(--coral); }
.preview-greeting-options { margin: 14px 0 10px; }
.preview-greeting-options .love-chip { color: var(--green); background: #F5FAF7; border-color: rgba(31,110,92,.3); }
.preview-greeting-options .love-chip.selected { color: #fff; background: var(--green); border-color: var(--green); }
.preview-greeting-options .love-chip:disabled { cursor: default; opacity: .45; }
.love-chip:focus-visible { outline: 3px solid rgba(224, 100, 92, .22); outline-offset: 2px; }
.short-textarea { min-height: 88px; }
.daily-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 10px;
}
.daily-actions .btn { padding: 12px 14px; }
.daily-actions .inperson {
  grid-column: 1 / -1;
  background: var(--green-dark);
  box-shadow: 0 7px 18px rgba(20, 80, 63, .2);
  font-size: 1.02rem;
}
.depth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 10px;
}
.depth-actions .btn { min-height: 58px; padding: 12px 14px; }
.depth-actions .inperson {
  background: var(--green-dark);
  box-shadow: 0 7px 18px rgba(20, 80, 63, .2);
}
@media (max-width: 540px) {
  .depth-actions { grid-template-columns: 1fr; }
  .daily-actions { grid-template-columns: 1fr; }
  .daily-actions .inperson { grid-column: auto; }
}

label { display: block; font-weight: 600; font-size: .95rem; margin: 16px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; display: block; }

input[type=text], textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FFFDF9;
  color: var(--ink);
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { min-height: 110px; resize: vertical; }
.reply-sent-state { background: #F1F7F4; color: var(--muted); }
.btn:disabled { cursor: default; opacity: .62; transform: none; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 13px 30px;
  background: var(--green);
  color: #fff;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #C74E47; }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.block { width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

.row-btns { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.steps span { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--green); }

.quote {
  border-right: 3px solid var(--green);
  background: #F3F7F0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  color: #4A5B50;
  margin-top: 14px;
}

.hidden { display: none !important; }

/* ---------- صفحه دریافت ---------- */
.envelope-scene { text-align: center; padding: 8vh 0 4vh; }
.envelope {
  position: relative;
  width: min(310px, 86vw);
  height: 196px;
  padding: 0;
  border: 1px solid rgba(75, 86, 79, .16);
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8, #f4eee2);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  display: inline-block;
  animation: float 2.6s ease-in-out infinite;
  filter: drop-shadow(0 14px 20px rgba(31,110,92,.25));
}
.envelope-icon { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); font-size: 4.5rem; line-height: 1; }
.envelope-to, .envelope-from, .envelope-date {
  position: absolute;
  z-index: 1;
  font-size: .78rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}
.envelope-to { top: 18px; right: 22px; }
.envelope-from { bottom: 18px; right: 22px; }
.envelope-date { top: 98px; left: 24px; font-size: .68rem; }
.envelope:focus-visible { outline: 3px solid rgba(31,110,92,.24); outline-offset: 5px; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.envelope-scene h2 { margin-top: 18px; font-size: 1.3rem; }
.envelope-scene p { color: var(--muted); }

.letter {
  animation: reveal .9s ease both;
  white-space: pre-wrap;
  font-size: 1.08rem;
  padding-top: 14px;
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
.letter .salutation { font-weight: 800; color: var(--green); font-size: 1.2rem; margin-bottom: 14px; }
.letter .signature { margin-top: 32px; color: var(--green); font-weight: 700; text-align: left; }

.reactions { display: flex; gap: 10px; justify-content: center; margin: 18px 0 6px; }
.reactions button {
  font-size: 1.7rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  width: 56px; height: 56px;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}
.reactions button:hover { transform: scale(1.15); border-color: var(--green); }
.reactions button.picked { background: #E8F3EE; border-color: var(--green); transform: scale(1.12); }

.future-movement-card {
  border: 1.5px solid rgba(31, 110, 92, .3);
  background: linear-gradient(180deg, #FFFEFB, #F1F8F4);
}
.future-movement-icon { display: block; font-size: 2rem; margin-bottom: 4px; }
.future-movement-card h2 { color: var(--green-dark); font-size: 1.2rem; line-height: 1.7; }
.future-movement-card blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--green);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-weight: 750;
}
.movement-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 12px;
}
.movement-actions .btn { min-height: 64px; padding: 11px 14px; }
@media (max-width: 520px) {
  .movement-actions { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .85rem; }

.linkbox {
  direction: ltr;
  text-align: left;
  font-size: .85rem;
  background: #F4F1E9;
  border: 1px dashed #C9C2B2;
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
  margin: 8px 0;
}

.badge {
  display: inline-block;
  background: #E8F3EE;
  color: var(--green);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .85rem;
  font-weight: 600;
  margin: 3px;
}
.badge.wait { background: #F6EFE2; color: #A08434; }
button.badge { min-height: 42px; padding: 10px 18px; }

.confetti-pop { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }

footer.credit { text-align: center; margin-top: 40px; color: var(--muted); font-size: .8rem; }
footer.credit a { color: var(--green); text-decoration: none; }
.privacy-summary { border-inline-start: 5px solid var(--green); }
.privacy-page h2 { color: var(--green); font-size: 1.12rem; margin: 22px 0 7px; }
.privacy-page h2:first-child { margin-top: 0; }
.privacy-content ul { padding-right: 22px; }
.privacy-content li { margin-bottom: 7px; }
.privacy-content p { text-align: justify; }

/* ---------- راهنمای نصب ---------- */
.android-download-notice{position:fixed;z-index:80;right:16px;bottom:16px;max-width:min(470px,calc(100vw - 32px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 45px rgba(18,58,47,.2);direction:rtl}.android-download-notice div{display:grid;gap:2px}.android-download-notice b{color:var(--green-dark)}.android-download-notice span{font-size:.78rem;color:var(--muted)}.android-download-close{border:0;background:transparent;color:var(--muted);font-size:1.4rem;line-height:1;cursor:pointer;padding:6px}@media(max-width:520px){.android-download-notice{grid-template-columns:auto 1fr}.android-download-notice .btn{grid-column:1/-1;width:100%;text-align:center}.android-download-notice span{font-size:.74rem}}
.install-guide { max-width: 720px; }
.install-app-icon { display: block; margin: 0 auto 12px; border-radius: 22px; box-shadow: var(--shadow); }
.install-guide .brand h1 { font-size: 1.75rem; }
.install-hero { text-align: center; border-color: rgba(31, 110, 92, .28); }
.install-hero h2, .install-card h2 { color: var(--green); font-size: 1.2rem; margin-bottom: 8px; }
.install-step { display: inline-block; color: var(--green); background: #E8F3EE; border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 800; margin-bottom: 8px; }
.install-now { margin-top: 18px; }
.android-download { display: block; width: fit-content; margin: 20px auto 0; text-decoration: none; }
.install-status { min-height: 1.8em; margin-top: 8px; }
.install-qr-card { display: grid; grid-template-columns: minmax(0, 1fr) 246px; align-items: center; gap: 24px; }
.install-qr-card h2 { color: var(--green); font-size: 1.25rem; margin-bottom: 8px; }
.install-qr-link { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; line-height: 0; }
.install-qr { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.install-url { direction: ltr; display: inline-block; margin-top: 10px; color: var(--coral); font-weight: 800; text-decoration: none; }
.install-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.install-heading h2 { margin: 5px 0 0; }
.install-platform { direction: ltr; display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 18px; background: var(--green); color: white; font-size: .78rem; font-weight: 800; }
.install-card ol, .install-card ul { padding-right: 24px; }
.install-card li { margin: 7px 0; }
.install-card b { color: var(--green); }
.install-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #F4EEE3; color: var(--muted); font-size: .88rem; }
.install-warning { border: 1px solid rgba(224, 100, 92, .28); background: #FFF6F3; color: var(--ink); }
.install-warning b { color: var(--coral); }
.install-recommended { border: 2px solid rgba(31, 110, 92, .4); }
@media (max-width: 440px) {
  .install-guide .brand h1 { font-size: 1.45rem; }
  .install-card { padding: 22px 18px; }
  .install-qr-card { grid-template-columns: 1fr; text-align: center; }
  .install-qr-link { width: min(100%, 246px); margin: 0 auto; }
  .install-platform { flex-basis: 54px; height: 54px; border-radius: 15px; font-size: .7rem; }
}

/* ---------- نوار بالا ---------- */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto; padding: 14px 20px 0;
}
.topnav .home { font-weight: 800; color: var(--green); text-decoration: none; font-size: 1.05rem; }
.topnav .actions { display: flex; gap: 8px; }
.btn.small { padding: 8px 16px; font-size: .85rem; border-radius: 10px; }
@media (max-width: 480px) {
  .topnav { padding-inline: 12px; gap: 6px; }
  .topnav .home { flex: 0 0 auto; white-space: nowrap; font-size: .9rem; }
  .topnav .actions { min-width: 0; gap: 4px; }
  /* برچسب‌ها در ::after و font-size:0 برداشته شدند — بازماندهٔ نوارِ پیش از
     همبرگر بودند، بی‌اثر و تله‌ای برای هر کسی که بعداً منو را دست بگیرد. */
}

/* ---------- جنگل واقعی و گواهی کاشت ---------- */
.real-forest-wrap .brand .btn { margin-top: 16px; }
/* انتخابگرِ همراه: ورودیِ جست‌وجو + فهرستِ فیلترشونده، به‌جای select.
   overflow روی .real-tree-form مخفی است، پس فهرست نباید از کارت بیرون بزند —
   ارتفاعش محدود شده و خودش می‌لغزد. */
.honoree-pick { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.honoree-pick.hidden { display: none; }
.honoree-pick > input[type="text"] {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font: inherit;
}
.honoree-pick > input[type="text"]:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31,110,92,.15);
}
.honoree-pick > input[type="text"]:disabled { background: #F5F3EE; color: var(--muted); cursor: not-allowed; }
.honoree-list {
  position: absolute; inset-block-start: 54px; inset-inline: 0; z-index: 20;
  max-height: 232px; overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); box-shadow: 0 18px 40px rgba(21,67,52,.16);
}
.honoree-list[hidden] { display: none; }
.honoree-list > li {
  min-height: 44px; display: flex; align-items: center;
  padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: .95rem;
}
.honoree-list > li:hover,
.honoree-list > li[aria-selected="true"] { background: rgba(31,110,92,.1); }
.honoree-list > .honoree-empty { color: var(--muted); cursor: default; }
.honoree-list > .honoree-empty:hover { background: transparent; }
.honoree-note { margin: 0; }

.real-tree-form {
  position: relative; overflow: hidden; max-width: 780px; margin-inline: auto;
  padding: clamp(24px, 5vw, 42px); border-color: rgba(31,110,92,.18);
  background: radial-gradient(circle at 6% 0%, rgba(224,100,92,.08), transparent 27%),
              linear-gradient(145deg, #FFFFFF 0%, #FBFDFB 65%, #F2F8F4 100%);
  box-shadow: 0 22px 55px rgba(27,79,64,.12);
}
.real-tree-form::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--coral), #D9B66F, var(--green));
}
.tree-form-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tree-form-heading > span { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: #E8F3ED; font-size: 1.75rem; box-shadow: inset 0 0 0 1px rgba(31,110,92,.1); }
.tree-form-heading h2 { color: var(--green-dark); font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.5; }
.tree-form-heading p { color: var(--muted); font-size: .88rem; }
.real-tree-form form { display: grid; gap: 20px; margin-top: 24px; }
.tree-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
.real-tree-form label { margin: 0; }
.tree-field { display: grid; min-width: 0; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 750; }
.tree-field > span, .tree-field .field-title { display: flex; align-items: center; gap: 6px; }
.tree-field em { padding: 1px 7px; border-radius: 999px; background: #EAF4EF; color: var(--green); font-size: .65rem; font-style: normal; }
.real-tree-form small { color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.65; }
.real-tree-form .tree-field input,
.real-tree-form .tree-field select,
.real-tree-form .tree-field textarea,
.real-tree-form select {
  width: 100%; min-height: 52px; margin: 0; padding: 12px 15px;
  border: 1.5px solid #DDD5C7; border-radius: 15px; background: rgba(255,253,249,.92);
  color: var(--ink); font: inherit; line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(35,48,42,.035), 0 3px 12px rgba(35,48,42,.025);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.real-tree-form .tree-field input:hover,
.real-tree-form .tree-field select:hover,
.real-tree-form .tree-field textarea:hover,
.real-tree-form select:hover { border-color: #B9C9C0; background: #fff; }
.real-tree-form .tree-field input:focus,
.real-tree-form .tree-field select:focus,
.real-tree-form .tree-field textarea:focus,
.real-tree-form select:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31,110,92,.1), 0 8px 20px rgba(31,110,92,.07); }
.real-tree-form .tree-field textarea { min-height: 150px; resize: vertical; }
.tree-photo-field { padding: 15px; border: 1px dashed #CFC5B5; border-radius: 17px; background: rgba(250,246,239,.66); }
.tree-file-input { position: absolute; width: 1px !important; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.tree-file-picker { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tree-file-trigger { flex: 0 0 auto; padding: 9px 16px; border: 1.5px solid var(--green); border-radius: 12px; background: #fff; color: var(--green); cursor: pointer; font-size: .82rem; font-weight: 800; transition: color .15s, background .15s; }
.tree-file-trigger:hover { background: var(--green); color: #fff; }
.tree-file-input:focus + .tree-file-picker .tree-file-trigger { box-shadow: 0 0 0 4px rgba(31,110,92,.12); }
.tree-file-picker span { min-width: 0; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.real-tree-form fieldset { display: grid; gap: 10px; border: 1px solid #DDD5C7; border-radius: 19px; padding: 20px; background: rgba(255,255,255,.7); }
.real-tree-form legend { color: var(--green-dark); font-size: 1rem; font-weight: 850; padding: 0 8px; }
.real-tree-form .choice { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 15px; background: #FFFDF9; text-align: right; font-weight: 600; box-shadow: none; transform: none; }
.real-tree-form .choice:hover { border-color: #B9C9C0; box-shadow: none; transform: none; }
.real-tree-form .choice:has(input:checked) { border-color: var(--green); background: #EDF6F1; box-shadow: 0 0 0 3px rgba(31,110,92,.07); }
.real-tree-form .choice input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--green); }
.real-tree-form .choice span { display: grid; gap: 1px; }
.real-tree-form .choice b { color: var(--ink); font-size: .9rem; }
.real-tree-form .choice small { display: block; }
.real-tree-form fieldset select { margin: 0 32px 2px 0; width: calc(100% - 32px); }
.tree-submit { width: 100%; min-height: 54px; margin-top: 2px; font-size: 1rem; box-shadow: 0 10px 24px rgba(31,110,92,.2); }
.tree-form-note { min-height: 1.7em; text-align: center; font-size: .85rem; }
.real-tree-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.real-tree-card { display: grid; grid-template-columns: 42% 1fr; gap: 18px; align-items: start; }
.real-tree-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: #f3efe7; }
.real-tree-card h2 { color: var(--green); margin: 8px 0 4px; }
.real-tree-story { border-right: 2px solid var(--coral); padding-right: 10px; color: var(--muted); }
.badge.certified { background: #e3f2e9; color: var(--green-dark); }
.badge.reported { background: #f3efe7; color: #665e52; }
.empty-real-forest span { display: block; font-size: 3rem; }
.certificate-wrap { width: min(760px, calc(100% - 28px)); margin: 32px auto 70px; }
.real-tree-certificate { padding: clamp(26px, 6vw, 58px); border: 2px solid var(--green); border-radius: 26px; text-align: center; background: linear-gradient(160deg,#fffdf9,#f2f8f4); box-shadow: 0 18px 50px rgba(31,110,92,.12); }
.certificate-mark { width: 76px; height: 76px; border-radius: 20px; display: block; margin: 0 auto 6px; box-shadow: 0 8px 22px rgba(18,51,42,.18); }.eyebrow { color: var(--green); letter-spacing: .04em; }.real-tree-certificate h1 { color: var(--green-dark); font-size: clamp(2rem,7vw,3.8rem); }
.certificate-photo { width: min(100%, 500px); max-height: 360px; object-fit: cover; border-radius: 18px; margin: 22px auto; }
.real-tree-certificate dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 25px 0; text-align: right; }
.real-tree-certificate dl div { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.real-tree-certificate dt { color: var(--muted); font-size: .78rem; }.real-tree-certificate dd { margin: 2px 0 0; font-weight: 800; }
.proof-line { display: inline-block; background: #e7f2ec; color: var(--green); border-radius: 999px; padding: 7px 13px; font-weight: 800; }
.real-tree-certificate blockquote { margin: 24px 0; color: var(--muted); font-style: normal; }.certificate-manifest { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.certificate-share { margin-top: 16px; }

/* ---------- یک نفر روی درختِ واقعی ---------- */
/* دو انسان مرکزِ سندند، نه یک ردیف در جدولِ مشخصات. تعریفشان یک‌جاست
   (partials/person.html) و کارت و گواهی هر دو از همان می‌آیند. */
.tree-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tree-person-face {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: var(--cream);
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(18,51,42,.16);
}
.tree-person-initial {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold, #CCA848), var(--coral));
  color: #fff; font-weight: 800; font-size: .95rem;
}
.tree-person-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: right; }
.tree-person-name a,
.tree-person-name b { font-size: .95rem; font-weight: 750; color: var(--ink); }
.tree-person-name a {
  color: var(--green-dark); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.tree-person-name a:hover { color: var(--green); }
.tree-person-name small { font-size: .74rem; color: var(--muted); line-height: 1.5; }
/* هدفِ لمسی: نام باید بی‌خطا زده شود، نه با نوکِ انگشت شکار شود */
.tree-person-name a { display: inline-block; min-height: 24px; padding-block: 2px; }

.tree-person.big .tree-person-face { width: 48px; height: 48px; font-size: 1.2rem; }
.tree-person.big .tree-person-name a,
.tree-person.big .tree-person-name b { font-size: 1.05rem; }

.certificate-people {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px;
  margin: 24px 0 4px; padding: 18px 16px;
  background: rgba(255,255,255,.66); border: 1px solid var(--line); border-radius: 16px;
}
.tree-card-people { display: flex; flex-direction: column; gap: 9px; margin: 10px 0 4px; }

/* ---------- زمینِ جنگل ---------- */
.forest-land-card { padding: 12px 12px 6px; overflow: hidden; }
.forest-land { border-radius: 18px; overflow: hidden; background: #12332A; }
.forest-land svg { display: block; width: 100%; height: auto; }
.forest-land-note { margin: 12px 6px 8px; text-align: center; }
.land-tree { cursor: pointer; outline: none; }
.land-tree image { transition: transform .2s ease; transform-box: fill-box; transform-origin: bottom center; }
.land-tree:hover image { transform: translateY(-4px) scale(1.04); }
.land-tree:focus-visible image { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.land-place {
  font-family: Vazirmatn, Tahoma, sans-serif; font-size: 17px; font-weight: 700;
  fill: rgba(250,246,239,.56); direction: rtl; unicode-bidi: plaintext;
}
.land-count { font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; fill: rgba(231,190,98,.66); }
@media (prefers-reduced-motion: reduce) { .land-tree:hover image { transform: none; } }

/* ---------- درختِ واقعی در صفحهٔ کاربر ---------- */
.profile-earth { margin-top: 18px; }
.profile-earth h2 { color: var(--green-dark); }
.earth-group-title {
  margin: 16px 0 10px; font-size: .9rem; font-weight: 750; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.earth-group-title .fa-digits {
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 9px; font-size: .82rem; color: var(--green-dark);
}
.earth-trees { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.earth-tree {
  display: flex; flex-direction: column; gap: 5px; padding: 10px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  text-decoration: none; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.earth-tree:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.earth-tree img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; }
.earth-tree b { font-size: .95rem; font-weight: 750; }
.earth-tree small { font-size: .78rem; color: var(--muted); line-height: 1.55; }

@media(max-width:650px){.real-tree-grid{grid-template-columns:1fr}.real-tree-card{grid-template-columns:1fr}.real-tree-card img{aspect-ratio:16/10}.real-tree-certificate dl{grid-template-columns:1fr}.tree-form-grid{grid-template-columns:1fr}.real-tree-form{padding:24px 16px}.tree-form-heading{align-items:flex-start}.tree-file-picker{align-items:flex-start;flex-direction:column}.tree-file-picker span{white-space:normal}.real-tree-form fieldset{padding:16px 12px}.real-tree-form fieldset select{margin-right:0;width:100%}}

/* ---------- مودال ورود ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(30,40,35,.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: 20px;
}
.modal {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; width: 100%; max-width: 400px;
  animation: pop .25s ease;
}
.modal h3 { color: var(--green); margin-bottom: 4px; }
.privacy-consent {
  display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 4px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #F7FAF8; font-size: .82rem; font-weight: 400; line-height: 1.8;
}
.privacy-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; accent-color: var(--green); }
.privacy-consent a, .privacy-content a { color: var(--green); font-weight: 700; }
.devcode {
  background: #FFF6DE; border: 1px dashed #D9B44A; color: #7A5E12;
  border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-top: 10px;
  text-align: center;
}
.devcode b { font-size: 1.2rem; letter-spacing: 3px; }

/* ---------- ضبط صدا ---------- */
.recorder { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.rec-btn {
  font: inherit; cursor: pointer; border: 1.5px solid var(--line);
  background: var(--card); border-radius: 12px; padding: 10px 16px; font-weight: 600;
}
.rec-btn.recording { border-color: var(--coral); color: var(--coral); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.recorder audio { height: 40px; max-width: 100%; }

/* ---------- داشبورد ---------- */
.dashboard-profile-entry {
  display: inline-flex;
  min-width: min(100%, 290px);
  min-height: 92px;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: 0 14px 38px rgba(3,20,14,.18);
  backdrop-filter: blur(14px);
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.dashboard-profile-entry:hover {
  border-color: rgba(234,220,184,.78);
  background: rgba(255,255,255,.16);
}
.dashboard-profile-entry:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }
.dashboard-profile-entry .profile-avatar-hero { width: 72px; height: 72px; font-size: 1.75rem; }
.dashboard-profile-copy { display: grid; line-height: 1.55; }
.dashboard-profile-copy b { color: #fff; font-size: 1.05rem; }
.dashboard-profile-copy small { color: rgba(255,255,255,.74); font-size: .78rem; }
.profile-pane {
  width: min(100%, 820px);
  margin-inline: auto;
  scroll-margin-top: 84px;
}
.profile-pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 16px;
}
.profile-pane-heading h2 { color: var(--green); }
.profile-pane-heading .btn { flex: 0 0 auto; }
.profile-pane > .card {
  padding: 30px;
  border-color: color-mix(in oklch, var(--line) 82%, var(--gold));
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(21,67,52,.08);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button {
  flex: 1 1 105px; font: inherit; font-weight: 700; padding: 11px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  color: var(--muted);
}
.tabs button.on { border-color: var(--green); color: var(--green); background: #E8F3EE; }
.tab-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-inline-start: 4px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: .72rem;
}
.reply-alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-color: #CFE5DB; }
.reply-alert.hidden { display: none; }
.reply-badge { background: #E8F3EE; color: var(--green-dark); }
.msg-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; background: #FFFDF9;
}
.msg-item .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-item .who { font-weight: 700; }
.msg-item .body-preview { color: #5A564C; font-size: .92rem; margin-top: 6px; white-space: pre-wrap; }
.msg-item a { color: var(--green); font-size: .85rem; text-decoration: none; font-weight: 600; }
.sent-message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.inline-link {
  border: 0; padding: 0; background: none; color: var(--green); font: inherit;
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.sent-share { margin-top: 8px; }
.public-garden-entry p { margin-bottom: 14px; }
.movement-garden-link { margin: 8px 0 18px; }
.movement-garden-link .btn { padding: 9px 18px; font-size: .85rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
/* تعداد شمارنده‌های حرکت جمعی ثابت نیست؛ ستون‌ها خودشان را با آن جور می‌کنند
   تا خانهٔ خالی داخل نوارِ گِرد نماند. */
.stat-row.movement-stat-row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-align: center; padding: 14px 8px;
}
.stat b { display: block; font-size: 1.6rem; color: var(--green); }
.stat span { font-size: .8rem; color: var(--muted); }
@media (max-width: 540px) {
  .stat-row.movement-stat-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* با تعداد فرد، شمارندهٔ آخر تمام‌عرض می‌شود تا خانهٔ خالی نماند. */
  .stat-row.movement-stat-row > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.rem-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rem-item:last-child { border-bottom: none; }
.rem-del { cursor: pointer; color: var(--coral); background: none; border: none; font-size: 1rem; }
.rem-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 540px) { .rem-form { grid-template-columns: 1fr 1fr; } }

/* ---------- باغچه شخصی ---------- */
.garden-shell { background: #FAF6EF; }
.garden-heading, .sapling-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.garden-heading { margin-bottom: 18px; }
.garden-heading h3 { color: var(--green); }
.sapling-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sapling-card {
  min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px;
  background: #FAF6EF; text-align: center;
}
.sapling-title h4 { color: var(--tree-color); font-size: 1.05rem; }
.sapling-title span { color: var(--muted); font-size: .75rem; }
.sapling-species-subtitle { color: var(--muted); font-size: .74rem; line-height: 1.7; margin-top: 3px; }
.garden-image-frame {
  width: 100%; aspect-ratio: 1 / 1; margin: 8px auto; background: #FAF6EF;
}
.garden-image {
  display: block; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .45s ease;
}
.garden-image.loaded { opacity: 1; }
.growth-progress {
  height: 10px; overflow: hidden; border-radius: 999px; background: #E8E0D3;
  direction: rtl;
}
.growth-progress span {
  display: block; height: 100%; border-radius: inherit; background: var(--tree-color);
  transition: width .5s ease;
}
.next-stage { color: var(--tree-color); font-size: .82rem; font-weight: 800; margin-top: 6px; }
.fruit-count { margin: 12px 0 4px; font-size: .88rem; }
.fruit-count b { color: var(--tree-color); }
.garden-celebration {
  position: relative; overflow: hidden; margin-bottom: 14px; padding: 15px 18px;
  border: 1px solid #D9C987; border-radius: 16px; background: #FFF7D9;
  color: #705C12; text-align: center; box-shadow: var(--shadow);
}
.confetti-bits { display: block; letter-spacing: 9px; margin-bottom: 2px; }
.garden-history { display: grid; gap: 8px; margin-top: 12px; }
.garden-history-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px;
  border-radius: 10px; background: #F7F3EA; font-size: .86rem;
}
.garden-history-row b { color: var(--green); }

.invite-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.garden-harvest { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.garden-harvest h4 { color: var(--green); margin-bottom: 9px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.profile-fields > div:last-child { grid-column: 1 / -1; }
.profile-fields label { margin-top: 8px; }
.profile-fields label .hint {
  display: inline;
  margin-inline-start: 5px;
  font-size: .78rem;
}
.profile-fields input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 17px;
  border: 1px solid #D8D1C2;
  border-radius: 15px;
  background: #FFFEFB;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(21,67,52,.025);
  font: inherit;
  font-size: 1rem;
}
.profile-fields input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--gold) 18%, transparent);
}
.profile-fields input[readonly] {
  border-color: #DED8CC;
  background: #F4F0E8;
  color: var(--muted);
  cursor: default;
}
#profile-phone { direction: ltr; text-align: right; }
@media (max-width: 540px) {
  .sapling-grid { grid-template-columns: 1fr; }
  .profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-fields > div:last-child { grid-column: 1 / -1; }
  .profile-fields label { font-size: .875rem; white-space: nowrap; }
  .profile-fields label .hint { font-size: .72rem; }
  .dashboard-profile-entry { width: 100%; min-width: 0; padding-inline-end: 16px; }
  .profile-pane-heading { align-items: stretch; flex-direction: column; }
  .profile-pane-heading .btn { width: 100%; }
  .profile-pane > .card { padding: 24px 19px; border-radius: 25px; }
}

/* ---------- رضایت نمایش عمومی ---------- */
.display-mode-options { display: grid; gap: 9px; margin-top: 18px; }
.display-mode-options label {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 13px; background: #FFFDF9; cursor: pointer;
}
.display-mode-options label:has(input:checked) { border-color: var(--green); background: #EEF6F2; }
.display-mode-options input { margin-top: 7px; accent-color: var(--green); }
.display-mode-options span { display: grid; }
.display-mode-options small { color: var(--muted); font-weight: 400; }

/* ---------- باغ عمومی ---------- */
.public-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }
.public-garden-brand { max-width: 680px; margin-inline: auto; }
.public-garden-card { position: relative; padding: 24px; }
.public-garden-toolbar {
  display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px;
}
.public-garden-toolbar h2 { color: var(--green); }
.year-picker { margin: 0; display: grid; gap: 5px; color: var(--muted); font-size: .82rem; }
.year-picker select {
  font: inherit; color: var(--green); background: #FFFDF9; border: 1.5px solid var(--green);
  border-radius: 10px; padding: 8px 28px 8px 10px;
}
.public-garden-ground {
  width: 100%; min-height: 360px; overflow: hidden; border: 1px solid var(--line);
  border-radius: 22px; background: #FAF6EF;
}
.public-garden-ground svg { display: block; width: 100%; height: auto; min-height: 360px; }
.garden-wire {
  fill: none; stroke: rgba(178, 142, 66, .28); stroke-width: 1.35;
  stroke-linecap: round; stroke-dasharray: 3 8; vector-effect: non-scaling-stroke;
}
.garden-dew ellipse{fill:#BEE8E7;stroke:#fff;stroke-width:.8;opacity:.82;filter:drop-shadow(0 1px 1px rgba(31,110,92,.18))}
/* زمینِ باغ و سایهٔ نشستنِ نهال. سایه کارِ همان تپهٔ خاک را می‌کند —
   می‌گوید «این روی زمین ایستاده» — ولی لکهٔ قهوه‌ای نمی‌سازد. */
.garden-land path:nth-child(1) { fill: #F2F5EC; }
.garden-land path:nth-child(2) { fill: #E8F0E6; }
.garden-land path:nth-child(3) { fill: #DCEADD; }
.sapling-shadow { fill: #2E5A44; opacity: .17; }

.public-sapling { outline: none; }
.public-sapling.linked { cursor: pointer; }
.public-sapling image {
  mix-blend-mode: multiply;
  filter: contrast(1.18) brightness(1.08);
}
.garden-avatar { clip-path: circle(50%); mix-blend-mode: normal !important; filter: none !important; }
.avatar-ring { fill: var(--card); stroke: rgba(178,142,66,.6); stroke-width: 2; }
.mine-halo { fill: rgba(224, 100, 92, .13); stroke: transparent; stroke-width: 4; }
.public-sapling:not(.mine) .mine-halo { display: none; }
.public-sapling.mine .mine-halo { stroke: rgba(224, 100, 92, .6); }
.garden-tooltip {
  position: fixed; z-index: 30; direction: rtl; display: grid; min-width: 175px;
  padding: 8px 11px; border-radius: 10px; color: #fff; background: rgba(20, 80, 63, .94);
  box-shadow: 0 8px 24px rgba(20, 80, 63, .25); pointer-events: none; font-size: .8rem;
}
.garden-tooltip span { opacity: .8; }
.garden-tooltip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-bottom: 3px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(24, 31, 27, .38); }
.bottom-sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(100%, 520px);
  transform: translateX(-50%); padding: 26px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: #FFFDF9; box-shadow: 0 -14px 40px rgba(20, 55, 45, .2);
}
.bottom-sheet h2 { color: var(--green); font-size: 1.25rem; }
.bottom-sheet .btn { margin-top: 12px; }
.sheet-close {
  position: absolute; left: 16px; top: 12px; width: 42px; height: 42px; border: 0;
  border-radius: 50%; background: #F2ECE2; color: var(--ink); font-size: 1.7rem; cursor: pointer;
}
.empty-garden { min-height: 360px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-garden span { font-size: 3rem; }
.garden-species-guide { padding: 18px 22px; }
.garden-species-guide h2 { color: var(--green); font-size: 1rem; margin-bottom: 8px; }
.garden-species-guide p { line-height: 1.9; }
.garden-species-guide p + p { margin-top: 5px; }
.species-guide-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; }
.species-guide-item + .species-guide-item { margin-top: 10px; }
.species-guide-item img { width: 78px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.public-cta h2 { color: var(--green); }
.public-cta .btn { margin-top: 12px; }
.public-cta-actions { max-width: 760px; margin-inline: auto; }
.public-cta .public-cta-actions .btn { margin-top: 0; }
.movement-fresh { margin: 8px 0 18px; }

/* ---------- اثر تو ---------- */
.effect-wrap { max-width: 1040px; margin: 0 auto; padding: 30px 18px 70px; }
.effect-brand { padding-bottom: 18px; }
.effect-brand h1 { color: var(--green); }
.effect-brand > p { color: var(--green-dark); font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 800; line-height: 1.75; }
.effect-summary { margin-top: 12px; color: var(--muted); line-height: 1.9; }
.effect-card { overflow: hidden; }
.effect-graph { width: 100%; min-height: 420px; direction: ltr; }
.effect-graph svg { display: block; width: 100%; height: auto; max-height: 650px; overflow: visible; }
.effect-wire { fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 3 8; opacity: .34; vector-effect: non-scaling-stroke; }
.effect-node { cursor: pointer; outline: none; }
.effect-node:focus .effect-node-halo { stroke-width: 5; }
.effect-node-halo { fill: var(--card); stroke: var(--green); stroke-width: 2; opacity: .88; }
.effect-node-halo.mine { stroke: var(--coral); stroke-width: 4; }
.effect-node image { object-fit: contain; mix-blend-mode: multiply; }
.effect-node-label { direction: rtl; unicode-bidi: plaintext; text-anchor: middle; fill: var(--green-dark); font-family: inherit; font-size: 18px; font-weight: 700; }
.effect-quiet { min-height: 300px; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--muted); }
.effect-quiet span { font-size: 3.2rem; }
.effect-quiet p { max-width: 600px; line-height: 2; }
.effect-invite { max-width: 640px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.effect-invite .row-btns { justify-content: center; }
.effect-origin { margin: 30px auto; color: var(--muted); text-align: center; line-height: 2; }
@media(max-width:600px) {
  .effect-wrap { padding: 20px 10px 55px; }
  .effect-card { padding: 18px 10px; }
  .effect-graph { min-height: 300px; overflow: hidden; }
  .effect-node-label { font-size: 21px; }
  .effect-invite { padding-inline: 8px; }
}

/* ---------- پروفایل عمومی ---------- */
.profile-impact b { display: block; color: var(--green); font-size: 2.6rem; line-height: 1.2; }
.profile-impact span { color: var(--muted); }
.profile-year h2 { color: var(--green); font-size: 1.1rem; margin-bottom: 12px; }
.profile-saplings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.profile-saplings article { text-align: center; border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: #FAF6EF; }
.profile-saplings img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.profile-saplings h3 { color: var(--green); font-size: 1rem; }
.profile-saplings p { color: var(--muted); font-size: .8rem; }
.profile-avatar {
  display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  border-radius: 50%; background: linear-gradient(145deg, #edf5ef, #f6e8dc);
  background-position: center; background-size: cover; color: var(--green);
  box-shadow: 0 0 0 4px var(--card), 0 10px 30px rgba(20,80,63,.14);
}
.profile-avatar.has-image > span { display: none; }
.profile-avatar-hero, .profile-avatar-public { width: 104px; height: 104px; font-size: 2.5rem; }
.profile-avatar-public { object-fit: cover; margin-inline: auto; }
.avatar-editor { display: flex; align-items: center; gap: 20px; margin: 18px 0 22px; }
.profile-avatar-editor { width: 92px; height: 92px; font-size: 2rem; }
.avatar-pick { display: inline-block; margin: 0 0 8px; cursor: pointer; }
.avatar-editor .btn { margin-inline-end: 7px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.install-troubleshoot { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f8f3e9; }
.install-troubleshoot summary { cursor: pointer; color: var(--green); font-weight: 750; }
@media (max-width: 600px) {
  .public-garden-toolbar { align-items: stretch; flex-direction: column; }
  .profile-saplings { grid-template-columns: 1fr; }
}

/* ---------- دکمه‌های اشتراک‌گذاری ---------- */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 4px; }
.share-btn {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  border: none; border-radius: 12px; padding: 11px 20px; color: #fff;
  text-decoration: none; display: inline-block;
}
.share-btn.wa { background: #25D366; }
.share-btn.tg { background: #229ED9; }
.share-btn.sms { background: #6E6960; }
.share-btn.native { background: var(--green); }
.share-btn.copy { background: #6E6960; }
.share-btn.story { color: #fff; background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
.share-btn:hover { filter: brightness(1.08); }
.share-sheet { text-align: center; }
.share-sheet-icon, .future-share-icon { display: block; font-size: 2.3rem; margin-bottom: 8px; }
.share-sheet .share-row { margin: 18px 0 8px; }
.future-share-card { border: 1.5px solid rgba(31, 110, 92, .28); background: linear-gradient(180deg, #FFFDF9, #F4FAF6); }
.future-share-card .share-row { margin-block: 16px; }
.share-install-card .row-btns { flex-wrap: wrap; }
@media (max-width: 480px) {
  .share-btn { flex: 1 1 calc(50% - 8px); padding-inline: 12px; }
}

/* ---------- زبان بصری «آیندهٔ خلق‌شده» ----------
   این لایه فقط ظاهر را یکپارچه می‌کند؛ ساختار، متن و رفتار محصول ثابت می‌ماند. */
:root {
  --green: #174C3C;
  --green-dark: #0E352A;
  --coral: #C56B4D;
  --cream: #F5F0E6;
  --card: #FFFEFB;
  --ink: #21342D;
  --muted: #66736B;
  --line: #DED8C9;
  --gold: #C7A35C;
  --gold-soft: #EADCB8;
  --radius: 26px;
  --shadow: 0 18px 50px rgba(21, 67, 52, .10);
}

body {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 8% 3%, rgba(199,163,92,.13), transparent 28rem),
    radial-gradient(circle at 92% 94%, rgba(23,76,60,.10), transparent 32rem);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .34;
  pointer-events: none;
  background-image: url('/static/design/sprout-mark.png');
  background-repeat: no-repeat;
  background-position: -90px calc(100% + 90px);
  background-size: 310px auto;
}

.wrap { max-width: 820px; padding: 34px 22px 88px; }
.public-wrap { max-width: 1120px; }

.topnav {
  max-width: 1120px;
  padding: 16px 22px;
  margin-top: 12px;
  border: 1px solid rgba(222,216,201,.88);
  border-radius: 18px;
  background: rgba(255,254,251,.82);
  box-shadow: 0 10px 32px rgba(21,67,52,.07);
  backdrop-filter: blur(14px);
}
.topnav .home { color: var(--green-dark); letter-spacing: -.01em; }

.brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 270px;
  display: grid;
  place-content: center;
  padding: 42px clamp(22px, 6vw, 62px);
  margin-bottom: 24px;
  border: 1px solid rgba(199,163,92,.34);
  border-radius: 32px;
  background: var(--green-dark) url('/static/design/forest-network.jpg') center 52% / cover no-repeat;
  box-shadow: 0 24px 70px rgba(14,53,42,.20);
}
.brand::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,35,28,.38), rgba(8,35,28,.78)),
    radial-gradient(circle at 50% 20%, rgba(199,163,92,.20), transparent 42%);
}
.brand .logo { filter: drop-shadow(0 6px 12px rgba(0,0,0,.22)); }
.brand h1 { color: #FFF9EA; font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.35; text-shadow: 0 3px 18px rgba(0,0,0,.28); }
.brand p, .brand-line { color: rgba(255,255,255,.82); }
.manifesto {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFDF5 !important;
  box-shadow: none;
  font-size: clamp(1rem, 2.3vw, 1.2rem) !important;
}
.manifesto-call { color: var(--gold-soft) !important; }

.card,
.choice,
.stat,
.msg-item,
.garden-celebration {
  border-color: rgba(218,208,188,.92);
  box-shadow: var(--shadow);
}
.card { padding: clamp(22px, 4vw, 34px); }

.choices { gap: 18px; }
.choice {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 200px 24px 30px;
  border-width: 1px;
  background: rgba(255,254,251,.97);
  box-shadow: 0 16px 42px rgba(21,67,52,.08);
}
.choice::before {
  content: '';
  position: absolute;
  inset: 10px 16px auto;
  height: 192px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .32s ease;
}
.choice.love::before { background-image: url('/static/design/tree-pomegranate.png'); }
.choice.gratitude::before { background-image: url('/static/design/tree-walnut.png'); }
.choice:hover::before { transform: scale(1.035) translateY(-2px); }
.choice .emoji {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(199,163,92,.34);
  border-radius: 50%;
  background: rgba(255,254,251,.92);
  font-size: 1.55rem;
  box-shadow: 0 8px 22px rgba(21,67,52,.10);
}
.choice h3 {
  color: var(--green-dark);
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.7;
  margin-bottom: 8px;
}
.choice p { max-width: 29ch; color: var(--muted); font-size: .9rem; line-height: 1.95; }
.choice:hover { border-color: var(--gold); box-shadow: 0 24px 55px rgba(21,67,52,.14); }
.choice.love:hover, .choice.gratitude:hover { border-color: var(--gold); }

.quote {
  border: 1px solid rgba(199,163,92,.28);
  border-right: 4px solid var(--gold);
  background: rgba(255,252,242,.82);
  color: #53645B;
}

input[type=text], textarea,
.year-picker select,
.real-tree-form .tree-field input,
.real-tree-form .tree-field select,
.real-tree-form .tree-field textarea,
.real-tree-form select {
  border-color: #D8D1C2;
  background: #FFFEFB;
  box-shadow: inset 0 1px 2px rgba(21,67,52,.025);
}
input:focus, textarea:focus,
.real-tree-form .tree-field input:focus,
.real-tree-form .tree-field select:focus,
.real-tree-form .tree-field textarea:focus,
.real-tree-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199,163,92,.16);
}

.btn { background: var(--green); border-radius: 999px; box-shadow: 0 8px 22px rgba(23,76,60,.16); }
.btn:hover { background: var(--green-dark); }
.btn.coral { background: #B95F45; }
.btn.ghost { color: var(--green); background: rgba(255,254,251,.68); border-color: rgba(23,76,60,.52); box-shadow: none; }
.love-chip { color: #9A4B37; background: #FFF9F5; border-color: rgba(185,95,69,.30); }
.love-chip.selected { background: #B95F45; border-color: #B95F45; }
.preview-greeting-options .love-chip.selected { background: var(--green); border-color: var(--green); }
.steps span { height: 7px; background: #DCD5C7; }
.steps span.on { background: var(--gold); }

.tabs button.on,
.display-mode-options label:has(input:checked),
.real-tree-form .choice:has(input:checked) {
  border-color: var(--gold);
  background: #FBF5E6;
  color: var(--green-dark);
}
.garden-shell,
.sapling-card,
.garden-image-frame,
.public-garden-ground,
.profile-saplings article { background: #F8F3E9; }
.future-share-card { background: linear-gradient(180deg, #FFFEFB, #F2F7F2); }

@media (max-width: 700px) {
  .topnav { margin: 8px 10px 0; padding: 12px 14px; }
  .brand { min-height: 235px; border-radius: 26px; }
}
@media (max-width: 540px) {
  .wrap { padding-inline: 14px; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 325px; padding-top: 182px; }
  .choice::before { height: 176px; }
  .name-fields { grid-template-columns: 1fr; }
}

/* ---------- Future Vision parity v2 ----------
   معماری بصری مستقیماً از پروژهٔ Lovable گرفته شده است. */
:root {
  --green: oklch(0.36 0.08 155);
  --green-dark: oklch(0.20 0.04 160);
  --coral: oklch(0.55 0.18 27);
  --cream: oklch(0.977 0.012 95);
  --card: oklch(0.992 0.008 95);
  --ink: oklch(0.26 0.045 155);
  --muted: oklch(0.52 0.03 150);
  --line: oklch(0.90 0.02 110);
  --gold: oklch(0.79 0.12 85);
  --gold-soft: oklch(0.88 0.07 90);
  --parchment: oklch(0.965 0.018 92);
  --moss: oklch(0.62 0.07 145);
  --radius: 12px;
  --shadow: 0 24px 60px -32px oklch(0.28 0.055 158 / .45);
  --shadow-lift: 0 40px 90px -50px oklch(0.2 0.04 160 / .6);
  --canopy-gradient: linear-gradient(170deg, oklch(0.24 0.045 160), oklch(0.30 0.06 155) 55%, oklch(0.26 0.05 150));
  --dawn-gradient: linear-gradient(180deg, oklch(0.985 0.012 95), oklch(0.955 0.025 105));
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  background-image: none;
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body::before { display: none; }

/* هدر شناور Lovable */
.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  width: min(100% - 32px, 1152px);
  max-width: none;
  min-height: 72px;
  margin: 0 auto;
  padding: 16px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.topnav .home,
.topnav .actions {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(9,35,27,.68);
  color: rgba(255,255,255,.9);
  box-shadow: 0 12px 36px rgba(3,20,14,.14);
  backdrop-filter: blur(16px);
}
.topnav .home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  font-size: .88rem;
}
.topnav a:focus-visible,
.topnav button:focus-visible,
.brand-actions a:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}
.topnav .actions {
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
}
.topnav .actions .btn,
.topnav .actions a.btn {
  min-height: 36px;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.78);
  box-shadow: none;
  font-size: .78rem;
}
.topnav .actions .btn:hover,
.topnav .actions a.btn:hover { background: rgba(255,255,255,.09); color: #fff; }
/* برجستگیِ طلایی به کنترلِ حساب گره خورده، نه به «آخرین آیتم». پیش از این
   آخرین آیتم «خروج» بود و پررنگ‌ترین کنترلِ نوار می‌شد. */
.topnav .actions .nav-account {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-weight: 850;
}
.topnav .actions .nav-account:hover { background: var(--gold-soft) !important; }

/* صفحهٔ جاری حذف نمی‌شود؛ علامت می‌خورد. */
.topnav .actions .here {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
  font-weight: 800;
  cursor: default;
}
.topnav .actions .here::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  flex-shrink: 0;
}

.nav-account-wrap { position: relative; display: inline-flex; }
.nav-account-menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(9,35,27,.94);
  box-shadow: 0 18px 44px rgba(3,20,14,.3);
  backdrop-filter: blur(16px);
}
.nav-account-menu[hidden] { display: none; }
.nav-account-menu > a,
.nav-account-menu > button {
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  text-align: start;
  text-decoration: none;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255,255,255,.86);
  cursor: pointer;
}
.nav-account-menu > a:hover,
.nav-account-menu > button:hover { background: rgba(255,255,255,.1); color: #fff; }
/* خروج شکلِ متفاوتی دارد؛ هم‌شکلِ یک مقصد نیست. */
.nav-account-menu > .nav-logout {
  margin-block-start: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 11px 11px;
  color: var(--coral);
}
.nav-account-menu > .nav-logout:hover { background: rgba(224,100,92,.16); color: #fff; }

.nav-controls { margin-inline-start: auto; }
.nav-menu-toggle { display: none; }

.real-tree-form,
.card[id],
[id^='screen-'] { scroll-margin-top: 92px; }

/* صفحهٔ نخست: هیروی تمام‌صفحه و بخش‌های سراسری */
.home-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.home-page .brand {
  position: relative;
  isolation: isolate;
  min-height: 82vh;
  width: 100%;
  margin: 0;
  padding: 106px 24px 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--green-dark) url('/static/design/forest-network.jpg') center / cover no-repeat;
  box-shadow: none;
  text-align: center;
}
.home-page .brand::before {
  background: rgba(8,35,27,.72);
}
.home-page .brand::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 230px;
  background: linear-gradient(to top, var(--cream), transparent);
}
.home-page .brand .logo {
  width: 58px;
  height: 58px;
  margin: 0 0 28px;
  background: url('/static/design/sprout-mark.png') center / contain no-repeat;
  filter: sepia(1) saturate(.75) hue-rotate(355deg) brightness(1.28);
  font-size: 0;
  animation: future-sway 7s ease-in-out infinite;
}
.home-page .brand .home-brand-name {
  order: 1;
  margin: 0;
  color: rgba(234,220,184,.84);
  font-size: .92rem;
  font-weight: 550;
  letter-spacing: .12em;
  text-shadow: none;
}
.home-page .brand .manifesto {
  order: 2;
  max-width: 1040px;
  margin: 26px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFF9ED !important;
  box-shadow: none;
  font-size: clamp(2.45rem, 4.65vw, 4.2rem) !important;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.home-page .brand .manifesto span {
  background: linear-gradient(100deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-page .brand .manifesto-call {
  order: 3;
  max-width: 620px;
  margin-top: 28px !important;
  color: rgba(255,249,237,.72) !important;
  font-size: 1.08rem !important;
  font-weight: 450;
}
.home-page .brand-actions {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.home-page .brand-actions .btn {
  min-height: 54px;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 0 60px -10px color-mix(in oklch, var(--gold) 46%, transparent);
  text-decoration: none;
}
.home-page .brand-actions .btn.ghost {
  border-color: rgba(255,255,255,.22);
  background: rgba(9,35,27,.22);
  color: rgba(255,255,255,.88);
  box-shadow: none;
}
.home-page .space-legend {
  order: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 820px;
  margin: 18px auto 0;
  color: rgba(255,249,237,.84);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.8;
}
/* اینجا inline-flex نباشد: در فلکس‌باکس، متنِ کنارِ <b> یک آیتمِ جداست و
   gap میانشان می‌افتد — یعنی یک فاصله درست پیش از ویرگولی که باید به
   «باغ مهر» بچسبد. متنِ روان این مشکل را ندارد. */
.home-page .space-legend span { text-align: center; }
.home-page .space-legend b { color: var(--gold-soft); }

@keyframes future-sway {
  0%,100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

.home-page #invite-banner,
.home-page #chainBanner {
  position: relative;
  z-index: 12;
  max-width: 760px;
  margin: 34px auto 0;
}
.home-page #movement {
  position: relative;
  z-index: 10;
  width: min(100% - 40px, 1024px);
  margin: -92px auto 0;
}
.home-page #movement .movement-fresh {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(9,35,27,.64);
  color: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
}
.home-page #movement .stat-row {
  overflow: hidden;
  gap: 1px;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.home-page #movement .stat {
  min-height: 126px;
  display: grid;
  align-content: center;
  padding: 24px 16px;
  border: 0;
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
}
.home-page #movement .stat b { font-size: 2.35rem; font-weight: 900; }
.home-page #movement .movement-forest-summary { margin-top: 20px; }
.home-page #movement .movement-garden-link { margin: 16px 0 0; }

.home-page #screen-pick {
  margin-top: 0;
  padding: 72px 24px 80px;
  background: var(--dawn-gradient);
  border-top: 1px solid var(--line);
}
.home-page .choices {
  width: min(100%, 920px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}
.home-page .choice {
  position: relative;
  min-height: 286px;
  display: block;
  overflow: hidden;
  padding: 196px 34px 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: none;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  text-align: right;
  transform: none;
}
.home-page .choice::before { content: none; }
.home-page .choice::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 26px;
  background: var(--line);
  transition: background .25s;
}
.home-page .choice .emoji { display: none; }
.home-page .choice-symbol {
  position: absolute;
  top: 25px;
  left: 50%;
  z-index: 1;
  display: block;
  width: 152px;
  height: 152px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(18,58,42,.08));
  transform: translateX(-50%);
  transition: transform .3s ease, filter .3s ease;
}
.home-page .choice-symbol-gratitude {
  top: 32px;
  left: 50%;
  width: 138px;
  height: 138px;
}
.home-page .choice .choice-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-deep);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
}
.home-page .choice .choice-heading {
  display: block;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.7;
}
.home-page .choice .choice-copy {
  display: block;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}
.home-page .choice:focus-visible {
  outline: 4px solid color-mix(in oklch, var(--gold) 72%, white);
  outline-offset: 5px;
}
.home-page .choice:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.home-page .choice:hover::after { background: var(--gold); }
.home-page .choice:hover .choice-symbol {
  transform: translate(-50%, -4px) scale(1.02);
  filter: drop-shadow(0 14px 20px rgba(18,58,42,.16));
}

.home-page .home-effects {
  padding: 74px 24px 0;
  background: var(--cream);
}
.home-page .home-effects #movement { margin: 0 auto; }
.home-page .home-effects .space-legend {
  color: var(--muted);
  margin-top: 24px;
}
.home-page .home-effects .space-legend b { color: var(--green-dark); }

.home-page #screen-pick > .quote {
  max-width: 780px;
  margin: 0 auto;
  padding: 110px 32px;
  border: 0;
  border-right: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 550;
  line-height: 2.2;
}

/* جریان‌های واقعی محصول، با همان زبان فرم Lovable */
.home-page [id^='screen-']:not(#screen-pick) {
  min-height: 72vh;
  padding: 110px 24px;
  background: var(--dawn-gradient);
}
.home-page [id^='screen-']:not(#screen-pick) > .card,
.home-page [id^='screen-']:not(#screen-pick) > .steps {
  width: min(100%, 820px);
  margin-inline: auto;
}
.card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.home-page [id^='screen-'] > .card > h2 {
  margin-bottom: 24px;
  color: var(--ink) !important;
  font-size: 1.42rem;
  font-weight: 850;
}
label { margin-top: 22px; color: var(--ink); font-weight: 700; }
input[type=text], textarea {
  min-height: 54px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: none;
}
textarea { min-height: 132px; }
input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--gold) 18%, transparent);
}
.love-chip,
.preview-greeting-options .love-chip {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.love-chip.selected,
.preview-greeting-options .love-chip.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.steps { margin-bottom: 20px !important; }
.steps span { background: var(--line); }
.steps span.on { background: var(--gold); }
.btn {
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: none;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn.coral { background: var(--gold); color: var(--green-dark); }
.btn.coral:hover { background: var(--gold-soft); }
.btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
}
.btn.ghost:hover { border-color: var(--green); background: color-mix(in oklch, var(--green) 6%, transparent); }
.quote {
  border: 0;
  border-right: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
}

/* صفحات داخلی: نوار تیره و کارت هم‌پوشان مثل صفحهٔ Garden جدید */
.wrap:not(.home-wrap),
.public-wrap {
  max-width: 1152px;
  padding: 0 24px 100px;
}
.wrap:not(.home-wrap) > .brand,
.public-wrap > .brand {
  width: 100vw;
  min-height: 410px;
  margin: 0 calc(50% - 50vw) 0;
  padding: 128px max(24px, calc((100vw - 1104px)/2)) 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--canopy-gradient);
  box-shadow: none;
  text-align: right;
}
.wrap:not(.home-wrap) > .brand::before,
.public-wrap > .brand::before {
  background: radial-gradient(circle at 35% 10%, color-mix(in oklch, var(--gold) 22%, transparent), transparent 28rem);
}
.wrap:not(.home-wrap) > .brand h1,
.public-wrap > .brand h1 {
  color: #FFF9ED;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: none;
}
.wrap:not(.home-wrap) > .brand p,
.public-wrap > .brand p { max-width: 650px; color: rgba(255,255,255,.84); }
.wrap:not(.home-wrap) > .brand .logo,
.public-wrap > .brand .logo { color: var(--gold); }
.brand-mark {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(3,20,14,.22);
}
.brand-wordmark {
  display: block;
  width: min(430px, 82vw);
  height: auto;
  margin-inline: auto;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 14px 24px rgba(3,20,14,.26));
}
.brand-wordmark-home {
  order: 1;
  width: clamp(270px, 34vw, 430px);
  margin-bottom: 4px;
}
.brand-wordmark-compact {
  width: clamp(220px, 32vw, 330px);
  margin-bottom: 14px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.brand-saplings {
  width: 126px;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(234,220,184,.65);
  border-radius: 999px;
  background: #FFFDF5;
  box-shadow: 0 12px 30px rgba(3,20,14,.22);
  overflow: hidden;
}
.brand-saplings img {
  width: 49px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.wrap:not(.home-wrap) > .brand + .card,
.public-wrap > .brand + .card,
.public-garden-card {
  position: relative;
  z-index: 8;
  margin-top: -92px;
  box-shadow: var(--shadow-lift);
}
.public-garden-brand { max-width: none; }
.public-garden-ground {
  border: 0;
  border-radius: 0;
  background: var(--parchment);
}
.garden-species-guide,
.public-cta { margin-top: 28px; }
.species-guide-item img,
.profile-saplings img { mix-blend-mode: normal; }
.sapling-card,
.msg-item,
.stat,
.profile-saplings article {
  border-color: var(--line);
  background: var(--card);
  box-shadow: none;
}

footer.credit {
  width: 100vw;
  margin: 80px calc(50% - 50vw) -100px;
  padding: 54px 24px;
  background: var(--canopy-gradient);
  color: rgba(255,255,255,.78);
}
footer.credit a { color: rgba(255,255,255,.88); }
footer.credit a:hover { color: #fff; }

@media (max-width: 720px) {
  .topnav {
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 10px 0;
    align-items: flex-start;
  }
  .topnav .home {
    min-height: 44px;
    padding: 8px 12px;
    font-size: .875rem;
  }
  .nav-controls { position: relative; }
}

/* نوار با سه آیتم ۳۶۴ پیکسل لازم دارد (اندازه‌گیری‌شده)، پس تا پیش از این
   عرض جمع نمی‌شود. پیش از این در ۷۲۰ پیکسل جمع می‌شد — ۱۵۶ پیکسل زودتر از
   لازم — و کاربر برای هر مقصد یک لمسِ اضافه می‌داد. */
@media (max-width: 400px) {
  .nav-menu-toggle {
    display: inline-flex;
    min-width: 64px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(9,35,27,.78);
    color: #fff;
    box-shadow: 0 12px 36px rgba(3,20,14,.14);
    backdrop-filter: blur(16px);
    font: inherit;
    font-size: .875rem;
    font-weight: 750;
    cursor: pointer;
  }
  .nav-menu-toggle:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 3px;
  }
  .topnav .actions {
    position: absolute;
    inset-block-start: 52px;
    inset-inline-end: 0;
    display: none;
    width: min(260px, calc(100vw - 20px));
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border-radius: 20px;
  }
  .topnav.menu-open .actions { display: flex; }
  .topnav .actions .btn,
  .topnav .actions a.btn {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 9px 14px;
    font-size: .875rem;
    text-align: right;
  }
  .nav-account-wrap { display: block; }
  .nav-account-menu {
    position: static;
    min-width: 0;
    margin-block-start: 4px;
    box-shadow: none;
    background: rgba(255,255,255,.06);
  }
}

@media (max-width: 720px) {
  .real-tree-form,
  .card[id],
  [id^='screen-'] { scroll-margin-top: 78px; }
  .home-page .brand { min-height: 78vh; padding-inline: 20px; }
  .home-page .brand .manifesto { font-size: clamp(2.35rem, 11vw, 4.3rem) !important; }
  .home-page .space-legend { display: grid; gap: 4px; padding-inline: 8px; font-size: .84rem; }
  .home-page #movement { width: calc(100% - 24px); }
  .home-page #movement .stat-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .home-page #movement .stat-row > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .home-page #movement .stat { min-height: 104px; }
  .home-page #screen-pick { padding: 52px 14px 64px; }
  .home-page .choices { grid-template-columns: 1fr; }
  .home-page .choice { min-height: 300px; padding: 184px 28px 30px; }
  .home-page .choice-symbol { top: 24px; left: 50%; width: 138px; height: 138px; }
  .home-page .choice-symbol-gratitude { top: 31px; left: 50%; width: 124px; height: 124px; }
  .avatar-editor { align-items: flex-start; }
  .home-page #screen-pick > .quote { padding: 84px 22px; }
  .home-page .home-effects { padding: 56px 12px 0; }
  .home-page [id^='screen-']:not(#screen-pick) { padding: 92px 14px; }
  .card { border-radius: 25px; padding: 24px 19px; }
  .wrap:not(.home-wrap), .public-wrap { padding-inline: 14px; }
  .wrap:not(.home-wrap) > .brand,
  .public-wrap > .brand { min-height: 360px; padding-bottom: 125px; }
  .brand-saplings { width: 112px; min-height: 62px; }
  .brand-saplings img { width: 42px; height: 46px; }
}

/* ---------- خوانایی فارسی و اندازهٔ لمس ---------- */
.about-page > .brand + .card h3,
.about-page > .brand + .card p,
.privacy-summary > *,
.privacy-content > * {
  width: min(100%, 72ch);
  margin-inline: auto;
}

@media (max-width: 720px) {
  .small,
  .muted.small,
  .install-platform,
  .envelope-to,
  .envelope-from,
  .envelope-date,
  .tree-field,
  .tree-field em,
  .real-tree-form small,
  .tree-file-trigger,
  .tree-file-picker span,
  .person-name .last,
  footer.credit {
    font-size: .875rem;
  }

  .real-tree-form .tree-field input,
  .real-tree-form .tree-field select,
  .real-tree-form .tree-field textarea,
  .real-tree-form select {
    font-size: 1rem;
  }

  footer.credit a,
  #real-forest-counter {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding-inline: 6px;
  }

  .tree-file-trigger,
  button.badge {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.love-chip.selected {
  font-weight: 850;
  transform: translateY(-2px);
}

:where(a, button, input, textarea, select, [tabindex]:not([tabindex='-1'])):focus-visible {
  outline: 3px solid var(--gold-soft) !important;
  outline-offset: 3px;
}

/* Screen headings receive programmatic focus so assistive technologies announce
   each step. They are not interactive controls, so suppress the browser's
   default focus rectangle while keeping focus itself intact. */
[id^='screen-'] :where(h1, h2)[tabindex='-1']:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* تعهد حریم خصوصی، جایی که کاربر تازه چیزی سپرده است. */
.privacy-promise {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(31, 110, 92, .06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.9;
  text-align: right;
}
.privacy-promise a { color: var(--green); font-weight: 700; }

/* ورودی‌های باغ و جنگل حالا خودِ عددها هستند، نه دکمهٔ جداگانه. زیرخط می‌ماند
   (نشانهٔ کلیک‌پذیری) ولی ملایم می‌شود تا دو سطرِ پشت‌سرهم شلوغ نشوند. */
#movement p a {
  color: var(--green);
  font-weight: 600;
  text-decoration-color: rgba(31, 110, 92, .35);
  text-underline-offset: 3px;
}
#movement p a:hover { text-decoration-color: var(--green); }
