/* =====================================================================
   زندگی سبز — سیستم طراحی (Persuade: سایت معرفی / Operate: پنل‌ها)
   ===================================================================== */

:root {
  --forest-950: #001b11;
  --forest-900: #003222;
  --forest-800: #0a4531;
  --emerald-700: #014f35;
  --emerald-600: #016c48;
  --emerald-500: #0f8e63;
  --mint-300: #9df5c7;
  --mint-200: #c9f7de;
  --mint-100: #e6fbf1;
  --surface: #f8faf6;
  --surface-alt: #eef4f0;
  --card: #ffffff;
  --ink: #14211b;
  --ink-muted: #4c5850;
  --ink-soft: #636d66;
  --line: rgba(0, 27, 17, 0.1);
  --line-strong: rgba(0, 27, 17, 0.18);
  --warning: #a34f00;
  --warning-bg: #fef3c7;
  --error: #ba1a1a;
  --error-bg: #ffdad6;
  --tier-bronze: #a9764f;
  --tier-silver: #7c8a83;
  --tier-gold: #b5901f;
  --on-dark-muted: #8ecaad;
  --on-dark-soft: #6fac8e;
  --font-main: "Vazirmatn", Tahoma, Arial, sans-serif;
  --container-w: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0, 27, 17, 0.06), 0 4px 14px rgba(0, 27, 17, 0.05);
  --shadow-md: 0 10px 30px -6px rgba(0, 27, 17, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(0, 27, 17, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-top: clamp(2.75rem, 2rem + 3vw, 5.5rem);
  padding-bottom: clamp(2.75rem, 2rem + 3vw, 5.5rem);
}

.section--alt {
  background: var(--surface-alt);
}

.section--tint {
  background: linear-gradient(180deg, var(--mint-100) 0%, var(--surface) 85%);
}

.section--forest {
  background: var(--forest-950);
  color: #eaf3ee;
}

.section--forest h2 {
  color: #fff;
}

.section--forest .section-lead {
  color: #b9ccc1;
}

.section--forest .eyebrow {
  color: var(--mint-300);
}

.section--forest .eyebrow::before {
  background: var(--mint-300);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--emerald-600);
  border-radius: 2px;
  display: inline-block;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section--forest .eyebrow {
  color: var(--mint-300);
}

.section--forest .eyebrow::before {
  background: var(--mint-300);
}

.section-lead {
  color: var(--ink-muted);
  font-size: 1.03rem;
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--emerald-600);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(1, 108, 72, 0.55);
}

.btn-primary:hover {
  background: var(--emerald-700);
}

.btn-glow {
  background: var(--mint-300);
  color: var(--forest-900);
  box-shadow: 0 8px 24px -4px rgba(157, 245, 199, 0.45);
}

.btn-glow:hover {
  background: var(--mint-200);
}

.btn-outline {
  background: transparent;
  border-color: var(--emerald-600);
  color: var(--emerald-600);
}

.btn-outline:hover {
  background: var(--mint-100);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-600);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(248, 250, 246, 0.96);
}

.site-header .container {
  max-width: 1560px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-full {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.site-nav a {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.88rem;
  position: relative;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--emerald-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.15s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--emerald-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-auth-btn:hover {
  background: var(--mint-100);
  border-color: var(--emerald-600);
  color: var(--emerald-700);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.header-phone svg,
.header-phone .material-symbols-outlined {
  color: var(--emerald-600);
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- فوتر ---------- */
.site-footer {
  background: var(--forest-950);
  color: var(--on-dark-muted);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-col-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--mint-300);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9ccc1;
}

.footer-social a:hover {
  border-color: var(--mint-300);
  color: var(--mint-300);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-privacy {
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  max-width: 620px;
}

/* ---------- Hero (فرم معرفی/Persuade) ---------- */
.hero {
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
  background: linear-gradient(180deg, var(--mint-100) 0%, var(--surface) 78%);
}

.hero--forest {
  background: var(--forest-900);
  color: #eaf3ee;
  position: relative;
  overflow: hidden;
}

.hero--forest::before,
.hero--forest::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero--forest::before {
  width: 420px;
  height: 420px;
  background: rgba(1, 108, 72, 0.55);
  top: -160px;
  inset-inline-end: -100px;
}

.hero--forest::after {
  width: 340px;
  height: 340px;
  background: rgba(157, 245, 199, 0.18);
  bottom: -140px;
  inset-inline-start: -80px;
}

.hero--forest .container {
  position: relative;
  z-index: 1;
}

.hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-greenhouse.jpg");
  background-size: cover;
  background-position: left center;
  z-index: 0;
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--surface) 0%, rgba(248, 250, 246, 0.88) 32%, rgba(248, 250, 246, 0.42) 58%, rgba(248, 250, 246, 0.05) 82%);
  z-index: 1;
}

.hero--photo .container {
  position: relative;
  z-index: 2;
}

.hero--photo .hero-visual {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero--forest h1 {
  color: #fff;
}

.hero--forest .hero-lead {
  color: #bfe8d3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-600);
  margin-bottom: 1.2rem;
}

.hero--forest .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--mint-300);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-badge .material-symbols-outlined {
  font-size: 16px;
  color: var(--emerald-600);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  flex-shrink: 0;
  animation: diag-pulse 1.4s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.hero--forest .hero-visual {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.hero-visual-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line);
}

.hero--forest .hero-visual-row {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.hero-visual-row:last-child {
  border-bottom: none;
}

.hero-visual-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--mint-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero--forest .hero-visual-icon {
  background: rgba(157, 245, 199, 0.16);
  color: var(--mint-300);
}

.hero-visual-icon svg {
  width: 20px;
  height: 20px;
}

.hero-visual-text strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.hero--forest .hero-visual-text strong {
  color: #fff;
}

.hero-visual-text span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero--forest .hero-visual-text span {
  color: var(--on-dark-muted);
}

/* ---------- ویجت تشخیص هوشمند در هیرو ---------- */
.hero--photo .hero-visual.hero-diagnose-card {
  /* #1a4738 = forest-900 (#003222) with a flat 10% white tint mixed in, same recipe as the rest of the dark-glass cards. Scoped this specifically so it beats .hero--photo .hero-visual's light-glass override above. */
  background: #1a4738;
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  color: #fff;
  padding: 1.5rem;
}

.diag-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.diag-card-head-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.diag-card-head-title .material-symbols-outlined {
  color: var(--mint-300);
  font-size: 22px;
}

.diag-card-head-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.diag-card-badge {
  flex-shrink: 0;
  background: var(--mint-300);
  color: var(--forest-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.diag-card-subtitle {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}

.diag-state {
  animation: diag-fade-in 0.35s ease;
}

@keyframes diag-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diag-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(157, 245, 199, 0.45);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.diag-dropzone:hover,
.diag-dropzone.is-dragover {
  border-color: var(--mint-300);
  background: rgba(255, 255, 255, 0.07);
}

.diag-dropzone .material-symbols-outlined {
  font-size: 34px;
  color: var(--mint-300);
}

.diag-dropzone strong {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
}

.diag-dropzone span {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
}

.diag-dropzone--demo {
  position: relative;
  padding: 0;
  overflow: hidden;
  background-image: linear-gradient(to top, rgba(0, 27, 17, 0.88) 0%, rgba(0, 27, 17, 0.32) 42%, rgba(0, 27, 17, 0.02) 65%), url("../img/diag-demo-leaf.jpg");
  background-size: cover;
  background-position: center;
}

.diag-dropzone--demo:hover,
.diag-dropzone--demo.is-dragover {
  border-color: var(--mint-300);
  background-image: linear-gradient(to top, rgba(0, 27, 17, 0.88) 0%, rgba(0, 27, 17, 0.32) 42%, rgba(0, 27, 17, 0.02) 65%), url("../img/diag-demo-leaf.jpg");
}

.diag-demo-spot {
  position: absolute;
  width: 15%;
  height: 15%;
  border: 2px solid var(--mint-300);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 8px 1px rgba(157, 245, 199, 0.45);
  pointer-events: none;
}

.diag-demo-scan-pill {
  position: absolute;
  top: 10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 27, 17, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.diag-dropzone-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1rem;
}

.diag-dropzone-overlay .material-symbols-outlined {
  font-size: 20px;
  color: var(--mint-300);
}

.diag-dropzone-overlay strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

.diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.diag-actions .btn {
  flex: 1 1 auto;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
}

.diag-actions .btn .material-symbols-outlined {
  font-size: 17px;
}

.diag-btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.diag-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.diag-field {
  margin-top: 0.9rem;
}

.diag-field label {
  display: block;
  font-size: 0.76rem;
  color: var(--on-dark-muted);
  margin-bottom: 0.35rem;
}

.diag-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.84rem;
}

.diag-field select option {
  color: var(--ink);
}

.diag-hint {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  text-align: center;
}

.diag-error {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(186, 26, 26, 0.18);
  color: #ffb4ab;
  border: 1px solid rgba(186, 26, 26, 0.35);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
}

.diag-scan-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.diag-scan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diag-scan-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--mint-300);
}

.diag-scan-corner--tl {
  top: 10px;
  inset-inline-start: 10px;
  border-width: 2px 0 0 2px;
}

.diag-scan-corner--tr {
  top: 10px;
  inset-inline-end: 10px;
  border-width: 2px 2px 0 0;
}

.diag-scan-corner--bl {
  bottom: 10px;
  inset-inline-start: 10px;
  border-width: 0 0 2px 2px;
}

.diag-scan-corner--br {
  bottom: 10px;
  inset-inline-end: 10px;
  border-width: 0 2px 2px 0;
}

.diag-scan-line {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint-300), transparent);
  box-shadow: 0 0 10px 1px rgba(157, 245, 199, 0.7);
  animation: diag-scan-move 2.1s ease-in-out infinite;
}

@keyframes diag-scan-move {
  0% {
    top: 6%;
  }
  50% {
    top: 92%;
  }
  100% {
    top: 6%;
  }
}

.diag-scan-pill {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 27, 17, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.diag-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-300);
  animation: diag-pulse 1.1s ease-in-out infinite;
}

@keyframes diag-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.diag-progress {
  margin-top: 1.1rem;
}

.diag-progress-bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.diag-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint-300);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.diag-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--on-dark-muted);
}

.diag-progress-steps .is-done {
  color: var(--mint-300);
}

.diag-progress-steps .is-active {
  color: #fff;
  font-weight: 600;
}

.diag-result-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.diag-result-info {
  flex: 1;
  min-width: 0;
}

.diag-result-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.diag-severity-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.diag-severity-pill--low {
  background: rgba(157, 245, 199, 0.22);
  color: var(--mint-300);
}

.diag-severity-pill--medium {
  background: rgba(241, 211, 135, 0.22);
  color: #f1d387;
}

.diag-severity-pill--high {
  background: rgba(255, 180, 171, 0.22);
  color: #ffb4ab;
}

.diag-disease-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.diag-disease-name span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--on-dark-muted);
  display: block;
  margin-top: 0.15rem;
}

.diag-confidence {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.diag-confidence-bar {
  flex: 1;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.diag-confidence-bar span {
  display: block;
  height: 100%;
  background: var(--mint-300);
  border-radius: var(--radius-pill);
}

.diag-confidence-label {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.diag-symptoms {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-bottom: 0.8rem;
}

.diag-symptoms strong {
  color: #fff;
}

.diag-actions-list {
  margin-bottom: 0.8rem;
}

.diag-actions-list p,
.diag-alt-list p {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.diag-actions-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.diag-actions-list li {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
  padding-inline-start: 1.1rem;
  position: relative;
}

.diag-actions-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-300);
}

.diag-alt-list {
  margin-bottom: 0.8rem;
}

.diag-alt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--on-dark-muted);
  padding: 0.3rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.diag-alt-row:first-of-type {
  border-top: none;
}

.diag-disclaimer {
  font-size: 0.75rem;
  color: var(--on-dark-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.diag-full-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mint-300);
}

.diag-full-link:hover {
  color: var(--mint-200);
}

/* ---------- آمار میدانی ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 1.5rem 1.75rem;
  border-inline-end: 1px solid var(--line);
  text-align: center;
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-number {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.7rem);
  font-weight: 800;
  color: var(--emerald-600);
  display: block;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 280px;
  margin-inline: auto;
}

/* ---------- تیم ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.team-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--mint-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-icon svg {
  width: 22px;
  height: 22px;
}

.team-card h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* ---------- فرآیند / تایم‌لاین ---------- */
.timeline {
  position: relative;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 27px;
  width: 2px;
  background: var(--line);
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2.4rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--emerald-600);
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-body {
  padding-top: 0.5rem;
}

.timeline-body h3 {
  margin-bottom: 0.35rem;
}

.timeline-body p {
  color: var(--ink-muted);
  margin-bottom: 0;
  max-width: 620px;
}

.timeline-compact .timeline-step {
  padding-bottom: 1.6rem;
}

.timeline-compact .timeline-num {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

/* ---------- فرآیند کار — نمای کامل (process.html) ---------- */
.process-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.process-flow::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 27px;
  width: 2px;
  background: linear-gradient(to bottom, var(--mint-200), var(--line) 90%);
}

.process-step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.process-step-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--emerald-600);
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-card {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.process-step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.process-step-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.process-step-icon {
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.process-step-icon svg {
  width: 22px;
  height: 22px;
}

.process-step-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.process-step-card p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 620px;
}

/* ---------- فرآیند کار — کارت خلاصه (index.html) ---------- */
.process-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.process-mini-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.process-mini-flow::before {
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.process-mini-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding-inline: 0.25rem;
}

.process-mini-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--line);
}

.process-mini-marker svg {
  width: 21px;
  height: 21px;
}

.process-mini-step span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.process-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.process-card-foot p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ---------- طرح‌ها / قیمت‌گذاری ---------- */
.plan-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.plan-tab {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.plan-tab.is-active {
  background: var(--forest-900);
  border-color: var(--forest-900);
  color: #fff;
}

.plan-group {
  display: none;
}

.plan-group.is-active {
  display: block;
}

.plan-duration-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.plan-duration-row span:first-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-inline-end: 0.3rem;
}

.plan-duration-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 0.86rem;
  font-family: inherit;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.plan-duration-chip:hover {
  border-color: var(--emerald-600);
}

.plan-duration-chip.is-active {
  border-color: var(--emerald-600);
  background: var(--emerald-600);
  color: #fff;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.9rem 0 1.2rem;
  flex-wrap: wrap;
}

.plan-price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-price-unit {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.plan-calculator {
  margin-top: 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.plan-calculator-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.plan-calculator-head .material-symbols-outlined {
  color: var(--emerald-600);
  background: var(--mint-100);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-calculator-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-calculator-row label {
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.plan-calculator-row input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: var(--emerald-600);
  height: 6px;
}

.plan-calculator-value {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--emerald-700);
  background: var(--mint-100);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  min-width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.plan-calculator-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.plan-calculator-value-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.plan-calculator-overlimit {
  margin-top: 1rem;
  background: var(--warning-bg);
  border: 1px solid #f1d387;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.plan-calculator-overlimit .material-symbols-outlined {
  color: var(--warning);
  flex-shrink: 0;
}

.plan-calculator-overlimit p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7a4300;
}

.plan-calculator-hint {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(169, 118, 79, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.6rem 1.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-card--silver {
  border-color: rgba(124, 138, 131, 0.35);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--tier-bronze);
}

.plan-card--silver::before {
  background: var(--tier-silver);
}

.plan-card--gold::before {
  background: var(--tier-gold);
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.plan-card--gold {
  box-shadow: var(--shadow-md);
  border-color: rgba(181, 144, 31, 0.4);
}

.plan-tier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: none;
  margin-bottom: 0.3rem;
}

.plan-tier-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tier-bronze);
  flex-shrink: 0;
}

.plan-card--silver .plan-tier-label::before {
  background: var(--tier-silver);
}

.plan-card--gold .plan-tier-label::before {
  background: var(--tier-gold);
}

.plan-card h3 {
  margin-bottom: 1rem;
}

.plan-specs {
  margin: 1.1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.plan-specs li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.plan-specs li:last-child {
  border-bottom: none;
}

.plan-specs .spec-label {
  color: var(--ink-soft);
}

.plan-specs .spec-value {
  font-weight: 700;
  color: var(--ink);
}

.plan-card .btn {
  margin-top: auto;
}

.plan-footnote {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  background: var(--mint-100);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

/* ---------- نظر مشتری ---------- */
.testimonial {
  background: var(--forest-900);
  color: #eaf3ee;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.testimonial-quote-mark {
  font-size: 4rem;
  color: var(--mint-300);
  opacity: 0.6;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: 1.15rem;
  color: #fff;
  max-width: 760px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--mint-300);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #9fd8b9;
}

/* ---------- اعضای تیم (درباره ما / تیم ما) ----------
   flex به‌جای grid تا ردیف‌های ناقص (مثلاً ۲ یا ۳ نفر) هم وسط‌چین بمانند، نه چسبیده به یک طرف */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.people-grid .person-card {
  flex: 0 1 240px;
}

.person-card-resume-btn {
  margin-top: 1rem;
}

.person-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.person-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.person-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--emerald-700);
  font-size: 1.3rem;
  font-weight: 800;
}

.person-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.person-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--mint-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.person-card p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- کارت‌های عمومی (درباره ما / نقشه راه) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--card);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.info-card h3 svg,
.info-card h3 .material-symbols-outlined {
  color: var(--emerald-600);
  flex-shrink: 0;
}

.info-card h3 svg {
  width: 22px;
  height: 22px;
}

.report-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.report-preview-head {
  background: var(--forest-900);
  color: #fff;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.report-preview-body {
  padding: 1.25rem;
}

.report-preview-row {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.report-preview-row:last-child {
  border-bottom: none;
}

.report-preview-row span:first-child {
  color: var(--ink-soft);
}

.report-preview-row span:last-child {
  font-weight: 700;
}

/* ---------- فرم‌ها ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px var(--mint-100);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-chip {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-chip input {
  accent-color: var(--emerald-600);
}

.radio-chip:has(input:checked) {
  border-color: var(--emerald-600);
  background: var(--mint-100);
  color: var(--emerald-700);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: -0.4rem;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--mint-100);
  color: var(--emerald-700);
  border: 1px solid var(--mint-300);
}

.form-status.is-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #e3a3a3;
}

.form-status.is-loading {
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

/* ---------- ابزار تشخیص هوشمند ---------- */
.uploader {
  border: 2px dashed var(--mint-300);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem 2.25rem;
  text-align: center;
  background: linear-gradient(180deg, var(--mint-100), #fff 75%);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.uploader:hover,
.uploader.is-dragover {
  border-color: var(--emerald-600);
  background: var(--mint-100);
}

.uploader-icon-wrap {
  width: 76px;
  height: 76px;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.uploader:hover .uploader-icon-wrap,
.uploader.is-dragover .uploader-icon-wrap {
  transform: translateY(-3px);
}

.uploader-icon {
  width: 30px;
  height: 30px;
  color: var(--emerald-600);
}

.uploader-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.uploader-formats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.uploader-format-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}

.uploader input[type="file"] {
  display: none;
}

.upload-preview {
  display: none;
  margin-top: 1.5rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: #fff;
}

.upload-preview.is-visible {
  display: flex;
}

.upload-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.upload-preview-info {
  flex: 1;
}

.upload-preview-info strong {
  display: block;
  font-size: 0.9rem;
}

.upload-preview-info span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.upload-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.diagnosis-result {
  display: none;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.diagnosis-result.is-visible {
  display: block;
}

.diagnosis-result-head {
  background: var(--mint-100);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.diagnosis-result-body {
  padding: 1.5rem;
}

.diagnosis-result-body h4 {
  margin-bottom: 0.5rem;
}

.diagnosis-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--surface-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-top-color: var(--emerald-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--emerald-600);
  flex-shrink: 0;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  max-width: 720px;
}

/* ---------- نقشه راه آینده ---------- */
.roadmap-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #f1d387;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.roadmap-step {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--surface-alt);
}

.roadmap-step-num {
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

/* ---------- بخش CTA پایانی ---------- */
.cta-band {
  background: var(--forest-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(157, 245, 199, 0.16);
  filter: blur(60px);
  top: -140px;
  inset-inline-end: -80px;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: #bfe8d3;
  margin-bottom: 0;
}

/* ---------- بردکرامب صفحات داخلی ---------- */
.page-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.page-hero .eyebrow {
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero--forest {
  background: var(--forest-950);
  border-bottom: none;
}

.page-hero--forest .eyebrow {
  color: var(--mint-300);
}

.page-hero--forest h1 {
  color: #fff;
}

.page-hero--forest p {
  color: var(--on-dark-muted);
}

.section--register-photo {
  position: relative;
  overflow: hidden;
}

.section--register-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/register-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.section--register-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 246, 0.3);
  z-index: 1;
}

.section--register-photo .container {
  position: relative;
  z-index: 2;
}

.form-card--glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-lg);
}

.section--process-photo {
  position: relative;
  overflow: hidden;
}

.section--process-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/process-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.section--process-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 246, 0.78);
  z-index: 1;
}

.section--process-photo .container {
  position: relative;
  z-index: 2;
}

.section--diagnosis-photo {
  position: relative;
  overflow: hidden;
}

.section--diagnosis-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/diagnosis-bg.jpg?v=2");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.section--diagnosis-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 246, 0.35);
  z-index: 1;
}

.section--diagnosis-photo .container {
  position: relative;
  z-index: 2;
}

/* ---------- Utilities ---------- */
.mt-0 {
  margin-top: 0;
}
.text-center {
  text-align: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   Operate — پنل‌های ادمین/مشتری/کارشناس
   ===================================================================== */

.dash-body {
  background: var(--surface);
}

.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  background: var(--forest-950);
  color: #cfe0d6;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dash-sidebar-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
}

.dash-sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.dash-sidebar-brand span {
  font-size: 0.72rem;
  color: var(--on-dark-muted);
}

.dash-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(157, 245, 199, 0.12);
  color: var(--mint-300);
  border: 1px solid rgba(157, 245, 199, 0.24);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-nav a.is-active {
  background: var(--emerald-600);
  color: #fff;
}

.dash-nav .material-symbols-outlined {
  font-size: 20px;
}

.dash-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--on-dark-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-main {
  min-width: 0;
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dash-topbar-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.dash-topbar-title span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.dash-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.dash-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-logout-btn:hover {
  background: var(--mint-100);
  color: var(--emerald-700);
}

.dash-logout-btn .material-symbols-outlined {
  font-size: 18px;
}

.dash-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dash-mock-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #f1d387;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-mock-banner .material-symbols-outlined {
  font-size: 18px;
}

/* KPI tiles */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kpi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.kpi-card-head .material-symbols-outlined {
  color: var(--emerald-600);
  background: var(--mint-100);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-delta {
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.kpi-delta--up {
  color: var(--emerald-700);
  background: var(--mint-100);
}

.kpi-delta--warn {
  color: var(--warning);
  background: var(--warning-bg);
}

/* Cards / panels */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.panel-head h2,
.panel-head h3 {
  margin-bottom: 0.15rem;
}

.panel-head-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Data table */
.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: right;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface-alt);
  white-space: nowrap;
}

.data-table th:first-child {
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}

.data-table th:last-child {
  border-start-start-radius: var(--radius-sm);
  border-end-start-radius: var(--radius-sm);
}

.data-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--surface-alt);
}

/* Status chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip--success {
  background: var(--mint-100);
  color: var(--emerald-700);
}

.chip--success::before {
  background: var(--emerald-600);
}

.chip--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.chip--warning::before {
  background: var(--warning);
}

.chip--danger {
  background: var(--error-bg);
  color: var(--error);
}

.chip--danger::before {
  background: var(--error);
}

.chip--neutral {
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.chip--neutral::before {
  background: var(--ink-soft);
}

/* Tabs (generic, dashboards + FAQ-style filters) */
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: var(--surface-alt);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--card);
  color: var(--emerald-700);
  box-shadow: var(--shadow-sm);
}

/* Sparkline chart wrapper */
.sparkline-wrap {
  color: var(--emerald-600);
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* Small utility list rows (activity feed, notes) */
.list-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: none;
}

.list-row-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--mint-100);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-row-icon .material-symbols-outlined {
  font-size: 20px;
}

.list-row-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.list-row-body span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.dash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-field.full {
  grid-column: 1 / -1;
}

.dash-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.dash-field input,
.dash-field select,
.dash-field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface-alt);
  color: var(--ink);
}

.dash-field textarea {
  min-height: 90px;
  resize: vertical;
}

.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus {
  outline: none;
  border-color: var(--emerald-600);
  background: #fff;
  box-shadow: 0 0 0 3px var(--mint-100);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.86rem;
  cursor: pointer;
}

.checklist input {
  accent-color: var(--emerald-600);
  width: 17px;
  height: 17px;
}

/* ---------- طرح اشتراک من (پنل مشتری) ---------- */
.plan-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.plan-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--card);
}

.plan-overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.plan-tier-label-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.plan-tier-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tier-bronze);
  flex-shrink: 0;
}

.plan-tier-dot--silver { background: var(--tier-silver); }
.plan-tier-dot--gold { background: var(--tier-gold); }

.plan-urgent-card {
  border: 1px solid #f3cf8f;
  background: #fff8ec;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-urgent-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--warning-bg);
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-urgent-icon .material-symbols-outlined {
  font-size: 24px;
}

.plan-urgent-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.plan-urgent-phone:hover {
  color: var(--emerald-600);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
}

/* ---------- فرم گزارش بازدید (پنل کارشناس) ---------- */
.visit-report-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.vr-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--mint-100);
  color: var(--emerald-700);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.vr-draft-banner button {
  flex-shrink: 0;
}

.vr-toprow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.vr-status-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vr-obs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* کادر مستقل هر دسته مشاهده — رنگ تفکیک‌کننده از طریق آیکون هر کادر منتقل می‌شود */
.obs-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.25rem 1.4rem;
}

.obs-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.obs-box-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.obs-box-title h3 {
  margin: 0;
  font-size: 0.98rem;
}

.obs-box-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.obs-box-icon .material-symbols-outlined {
  font-size: 19px;
}

.obs-box--disease .obs-box-icon { background: #fce7ef; color: #be123c; }
.obs-box--nutrition .obs-box-icon { background: #fef3c7; color: #b45309; }
.obs-box--pest .obs-box-icon { background: #f3e8d9; color: #78350f; }
.obs-box--general .obs-box-icon { background: #dbeafe; color: #1d4ed8; }

/* سوییچ «موردی مشاهده نشد» */
.obs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}

.obs-toggle input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 38px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.obs-toggle input::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 27, 17, 0.3);
}

.obs-toggle input:checked {
  background: var(--emerald-600);
}

.obs-toggle input:checked::before {
  transform: translateX(-16px);
}

.obs-box.is-none {
  background: var(--surface-alt);
}

.obs-box.is-none .obs-box-body {
  display: none;
}

.obs-box-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.obs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* چیپ‌های انتخابی: شدت / گستره / برچسب اقدام */
.severity-group,
.extent-group,
.obs-action-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.severity-chip,
.extent-chip,
.tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
  background: #fff;
}

.severity-chip input,
.extent-chip input,
.tag-toggle input {
  display: none;
}

.severity-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}

.severity-chip--mild::before { background: #16a34a; }
.severity-chip--moderate::before { background: #ca8a04; }
.severity-chip--critical::before { background: #dc2626; }

.severity-chip--mild:has(input:checked) {
  background: #dcfce7;
  color: #15803d;
  border-color: #15803d;
}

.severity-chip--moderate:has(input:checked) {
  background: #fef9c3;
  color: #a16207;
  border-color: #a16207;
}

.severity-chip--critical:has(input:checked) {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #b91c1c;
}

.extent-chip:has(input:checked),
.tag-toggle:has(input:checked) {
  background: var(--mint-100);
  color: var(--emerald-700);
  border-color: var(--emerald-600);
}

.obs-action-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* بارگذاری عکس با پیش‌نمایش */
.obs-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.obs-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.obs-photo-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.obs-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obs-photo-thumb button {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 27, 17, 0.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.obs-photo-thumb button .material-symbols-outlined {
  font-size: 13px;
}

/* یادداشت صوتی */
.obs-audio-box {
  display: flex;
  flex-direction: column;
}

.obs-audio-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.obs-audio-actions .material-symbols-outlined {
  font-size: 17px;
}

.obs-audio-hint {
  font-size: 0.74rem;
  color: var(--error);
  margin-top: 0.4rem;
}

.obs-audio-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.8rem 0.55rem 1rem;
}

.obs-audio-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.obs-audio-play .material-symbols-outlined {
  font-size: 17px;
}

.obs-audio-progress {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  min-width: 40px;
}

.obs-audio-progress-fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--emerald-600);
  border-radius: var(--radius-pill);
}

.obs-audio-time {
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.obs-audio-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.obs-audio-remove:hover {
  color: var(--error);
}

.obs-audio-remove .material-symbols-outlined {
  font-size: 17px;
}

.obs-audio-recording .obs-record-btn {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

/* یادداشت داخلی ادمین — قفل‌شده، مشتری نمی‌بیند */
.internal-note-box {
  background: #fff7ed;
  border: 1px dashed #d97706;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.internal-note-box .dash-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #92400e;
}

.internal-note-box .material-symbols-outlined {
  font-size: 16px;
}

.internal-note-box textarea {
  background: #fff;
  border-color: #fcd34d;
}

.internal-note-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #92400e;
  margin-top: 0.5rem;
}

.vr-emergency-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--surface-alt);
}

.vr-emergency-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.vr-emergency-check input {
  accent-color: var(--emerald-600);
  width: 18px;
  height: 18px;
}

.vr-emergency-note {
  margin-top: 0.9rem;
}

.vr-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vr-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* کارت جزئیات گزارش در پنل ادمین */
.report-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 17, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 3rem 1rem;
  z-index: 200;
}

.report-detail-backdrop[hidden] {
  display: none;
}

.report-detail-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.report-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.report-detail-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.report-detail-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.report-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.report-detail-section h4 {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.report-detail-section p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0;
}

.report-internal-note {
  background: #fff7ed;
  border: 1px dashed #d97706;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.report-internal-note h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #92400e;
}

.report-internal-note .material-symbols-outlined {
  font-size: 16px;
}

.dash-nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 40px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =====================================================================
   واکنش‌گرا
   ===================================================================== */
@media (max-width: 1080px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people-grid .person-card {
    flex-basis: 220px;
  }
  .plan-grid,
  .roadmap-steps {
    grid-template-columns: 1fr;
  }
  .info-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .dash-shell {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    width: 260px;
    z-index: 60;
    transform: translateX(110%);
    transition: transform 0.2s ease;
  }
  html[dir="rtl"] .dash-sidebar {
    transform: translateX(-110%);
  }
  .dash-sidebar.is-open {
    transform: translateX(0);
  }
  .dash-nav-toggle {
    display: flex;
  }
}

@media (max-width: 800px) {
  .site-nav {
    position: fixed;
    inset-inline: 0;
    top: 66px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: flex;
  }
  .header-phone {
    display: none;
  }
  .brand {
    min-width: 0;
    flex-shrink: 1;
  }
  .brand > span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    max-width: calc(100vw - 150px);
  }
  .brand span[data-config="brandShort"] {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .hero--photo::before {
    background-position: center center;
  }
  .hero--photo::after {
    background: rgba(248, 250, 246, 0.82);
  }
  .hero-diagnose-card {
    padding: 1.2rem;
  }
  .diag-actions .btn {
    flex: 1 1 100%;
  }
  .process-mini-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.75rem;
  }
  .process-mini-flow::before {
    display: none;
  }
  .process-flow::before {
    right: 23px;
  }
  .process-step-marker {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
  .process-step-card {
    padding: 1.1rem 1.25rem;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .people-grid .person-card {
    flex-basis: 100%;
    max-width: 320px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
  .footer-note {
    flex-direction: column;
    text-align: center;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .dash-content {
    padding: 1.1rem;
  }
  .dash-topbar {
    padding: 0.8rem 1.1rem;
  }
  .dash-form-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
  .vr-toprow,
  .obs-row {
    grid-template-columns: 1fr;
  }
  .obs-box-head {
    align-items: flex-start;
  }
  .plan-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- گزارش بازدید قابل چاپ با سربرگ (report-print.html) ---------- */
.rp-wrap {
  background: var(--surface-alt);
  min-height: 100vh;
  padding: 1.5rem 1rem 3rem;
}

.rp-toolbar {
  max-width: 210mm;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rp-toolbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.rp-toolbar-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.rp-toolbar-actions {
  display: flex;
  gap: 0.6rem;
}

.rp-page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 2rem;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: #1c2e22;
  font-size: 11pt;
  line-height: 1.65;
}

/* بلوک سربرگ (عکس + پچ برچسب‌ها + مقادیر تاریخ/شماره/پیوست) -- یک واحد واحد که در چاپ
   به‌صورت position:fixed روی هر صفحه تکرار می‌شود، رجوع به قانون @media print پایین.
   اندازه صریح 210mm×297mm (نه inset:0) تا هیچ ابهامی در resolve شدن درصدها نباشد. */
.rp-header-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 210mm;
  height: 297mm;
  z-index: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}

.rp-letterhead-img {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 210mm;
  height: 297mm;
  max-width: none;
  object-fit: fill;
  display: block;
}

.rp-field {
  position: absolute;
  left: 7.3%;
  width: 16.1%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: 7pt;
  line-height: 1;
  color: #163b22;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rp-field--date { top: 4.2%; height: 1.7%; }
.rp-field--number { top: 7.4%; height: 1.7%; }
.rp-field--attachment { top: 10.7%; height: 1.7%; }

/* پچ روی برچسب‌های تاریخ/شماره/پیوست چاپ‌شده در خود عکس سربرگ -- متن اصلی داخل عکس به‌هم‌ریخته رندر شده (مشکل تولید تصویر با هوش مصنوعی)، این‌جا با فونت واقعی سایت رویش نوشته می‌شود */
.rp-label-patch {
  position: absolute;
  left: 23.8%;
  width: 6.6%;
  border-radius: 999px;
  background: #1e5436;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 6.5pt;
  line-height: 1;
}

.rp-label-patch--date { top: 4.1%; height: 1.9%; }
.rp-label-patch--number { top: 7.3%; height: 1.9%; }
.rp-label-patch--attachment { top: 10.6%; height: 1.9%; }

.rp-body {
  position: relative;
  z-index: 1;
  padding: 27% 10% 15%;
}

.rp-title {
  font-size: 14pt;
  font-weight: 800;
  color: #0f3d1f;
  margin: 0 0 0.2em;
}

.rp-meta {
  font-size: 9.5pt;
  color: #44534a;
  margin-bottom: 1.3em;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.rp-section {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(15, 61, 31, 0.15);
}

.rp-section:last-child {
  border-bottom: none;
}

.rp-section h3 {
  font-size: 11pt;
  color: #0f3d1f;
  margin: 0 0 0.3em;
}

.rp-section p {
  font-size: 10pt;
  margin: 0 0 0.3em;
}

.rp-tag {
  display: inline-block;
  font-size: 8.5pt;
  font-weight: 700;
  padding: 0.15em 0.65em;
  border-radius: 999px;
  margin-inline-start: 0.4em;
  background: rgba(15, 61, 31, 0.08);
  color: #2f4a38;
}

.rp-empty-note {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-soft);
}

@media print {
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
  .rp-toolbar {
    display: none;
  }
  .rp-wrap {
    background: #fff;
    padding: 0;
  }
  .rp-page {
    box-shadow: none;
    margin: 0;
    /* عمداً 210mm/297mm رو نگه می‌داریم (نه auto) تا سربرگ همیشه کل صفحه A4 رو بپوشونه، حتی اگه متن گزارش کوتاه باشه */
  }
  /* سربرگ (عکس + پچ‌ها + مقادیر تاریخ/شماره/پیوست) نسبت به هر برگ چاپی ثابت می‌شه، نه نسبت به کانتینر گزارش،
     تا اگه گزارش به صفحه دوم سرریز کرد، سربرگ بالای اون صفحه هم تکرار بشه */
  .rp-header-overlay {
    position: fixed;
    inset: 0;
    width: 210mm;
    height: 297mm;
  }
  .rp-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .rp-page {
    width: 100%;
    min-height: 0;
    aspect-ratio: 210 / 297;
  }
}

/* ---------- شاخص‌های عملکرد / KPI (پنل ادمین) ---------- */
.kpi-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.kpi-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kpi-filter-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.kpi-filter-group select,
.kpi-filter-group input[type="date"] {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.86rem;
  background: #fff;
  color: var(--ink);
}

.kpi-custom-range {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.kpi-custom-range label {
  margin-inline-start: 0.2rem;
}

.kpi-compare-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  padding-bottom: 0.6rem;
}

.kpi-compare-toggle input {
  accent-color: var(--emerald-600);
  width: 16px;
  height: 16px;
}

.kpi-export-actions {
  display: flex;
  gap: 0.6rem;
  margin-inline-start: auto;
  padding-bottom: 0.1rem;
}

.kpi-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
}

.kpi-section-head:first-of-type {
  margin-top: 0;
}

.kpi-section-head h3 {
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}

.kpi-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kpi-card-v2 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 148px;
}

.kpi-card-v2-head {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.kpi-card-v2-body {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.kpi-card-v2-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-card-v2-subvalue {
  font-size: 0.76rem;
  color: var(--ink-soft);
  width: 100%;
}

.kpi-card-v2-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.kpi-card-v2-delta .material-symbols-outlined {
  font-size: 14px;
}

.kpi-card-v2-delta--good {
  background: var(--mint-100);
  color: var(--emerald-700);
}

.kpi-card-v2-delta--bad {
  background: var(--error-bg);
  color: var(--error);
}

.kpi-sparkline {
  width: 100%;
  height: 32px;
  margin-top: auto;
  color: var(--emerald-600);
  overflow: visible;
}

/* کارت دونات (منبع لیدها) */
.kpi-card-v2--donut {
  grid-column: span 1;
}

.kpi-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.kpi-donut {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.kpi-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.kpi-donut-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kpi-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* نمودارها و فهرست‌های بخش مشترکین و درآمد */
.kpi-charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.kpi-chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.kpi-chart-card h4 {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.kpi-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 120px;
  padding-top: 0.5rem;
}

.kpi-bar-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
}

.kpi-bar-chart-bar {
  width: 100%;
  max-width: 48px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--tier-bronze);
}

.kpi-bar-chart-col--silver .kpi-bar-chart-bar { background: var(--tier-silver); }
.kpi-bar-chart-col--gold .kpi-bar-chart-bar { background: var(--tier-gold); }

.kpi-bar-chart-label {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.kpi-bar-chart-value {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
}

.kpi-renewal-card {
  margin-top: 1rem;
}

.kpi-renewal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.kpi-renewal-row:last-child {
  border-bottom: none;
}

.kpi-renewal-info strong {
  display: block;
  font-size: 0.88rem;
}

.kpi-renewal-info span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* کارت فهرستی بار کاری کارشناسان */
.kpi-card-v2--list {
  grid-column: span 2;
}

.kpi-workload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.kpi-workload-name {
  width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.kpi-workload-bar-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  overflow: hidden;
}

.kpi-workload-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--emerald-600);
}

.kpi-workload-row.is-over .kpi-workload-bar-fill {
  background: var(--error);
}

.kpi-workload-value {
  width: 70px;
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: left;
}

.kpi-workload-row.is-over .kpi-workload-value {
  color: var(--error);
}

/* کارت نواری سه‌بخشی (روند سلامت مشترکین) */
.kpi-card-v2--segmented .kpi-segmented-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: auto;
}

.kpi-segmented-seg--improve { background: var(--emerald-600); }
.kpi-segmented-seg--stable { background: var(--mint-300); }
.kpi-segmented-seg--worse { background: var(--error); }

.kpi-segmented-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.kpi-segmented-legend span:nth-child(1) { color: var(--emerald-700); }
.kpi-segmented-legend span:nth-child(3) { color: var(--error); }

/* حالت خالی */
.kpi-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.kpi-empty-state .material-symbols-outlined {
  font-size: 32px;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.kpi-empty-state strong {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.kpi-empty-state span {
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-card-v2--list {
    grid-column: span 2;
  }
  .kpi-charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .kpi-cards-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card-v2--list {
    grid-column: span 1;
  }
  .kpi-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .kpi-export-actions {
    margin-inline-start: 0;
  }
}

@media print {
  .dash-sidebar,
  .dash-topbar,
  .dash-mock-banner,
  .kpi-filter-bar {
    display: none !important;
  }
  .dash-shell {
    display: block;
  }
  .dash-content > *:not(#kpi-dashboard) {
    display: none !important;
  }
}

/* ---------- toast پیامک آزمایشی (otp.js) ---------- */
.zs-sms-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 320px;
  background: var(--forest-950);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zs-sms-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zs-sms-toast .material-symbols-outlined {
  color: var(--mint-300);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.zs-sms-toast strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.zs-sms-toast span {
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

/* ---------- بج شدت نتیجه تشخیص رایگان ---------- */
.diag-severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
}

.diag-severity-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.diag-severity-badge--mild {
  background: var(--mint-100);
  color: var(--emerald-700);
}
.diag-severity-badge--mild::before { background: var(--emerald-600); }

.diag-severity-badge--moderate {
  background: var(--warning-bg);
  color: var(--warning);
}
.diag-severity-badge--moderate::before { background: var(--warning); }

.diag-severity-badge--serious {
  background: var(--error-bg);
  color: var(--error);
}
.diag-severity-badge--serious::before { background: var(--error); }

/* ---------- دروازه ثبت‌نام با OTP (ابزار تشخیص رایگان) ---------- */
.diag-result-free {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.diag-result-free h4 {
  margin: 0;
}

.diag-gate {
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
}

.diag-gate-lead {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

.diag-gate .form-field {
  margin-bottom: 0.9rem;
}

.diag-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.diag-otp-phone-display {
  color: var(--emerald-700);
  font-variant-numeric: tabular-nums;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--emerald-600);
}

.diag-result-full {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.diag-result-full p {
  width: 100%;
}

/* ---------- مودال درخواست مشاوره و خرید طرح ---------- */
.zs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 17, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 3rem 1rem;
  z-index: 300;
}

.zs-modal-backdrop[hidden] {
  display: none;
}

.zs-modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.zs-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.zs-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.plan-request-summary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--mint-100);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.1rem;
}

.zs-modal-success {
  text-align: center;
  padding: 1rem 0;
}

.zs-modal-success .material-symbols-outlined {
  font-size: 40px;
  color: var(--emerald-600);
  margin-bottom: 0.8rem;
}

.zs-modal-success h4 {
  margin-bottom: 0.5rem;
}

.zs-modal-success p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

@media (max-width: 560px) {
  .zs-modal-backdrop {
    padding: 1.5rem 0.75rem;
  }
  .zs-modal-card {
    padding: 1.25rem;
  }
}
