/* =========================================================================
   DanaRay — Design System
   رنگ اصلی برند از روی آرم شرکت استخراج شده: #00B2CE
   ========================================================================= */

:root {
  /* رنگ‌ها */
  --brand: #00b2ce;
  --brand-600: #019fb8;
  --brand-700: #027e93;
  --brand-900: #063e4a;
  --ink: #0b2a34;
  --ink-soft: #5b7780;
  --ink-faint: #8ba3aa;
  --paper: #f6fbfc;
  --paper-alt: #eaf6f8;
  --line: #d9e9ec;
  --amber: #f4a93b;
  --amber-dark: #d98f22;
  --white: #ffffff;
  --danger: #e1543a;
  --success: #1f9d6e;

  /* تایپوگرافی */
  --font-display: "Vazirmatn", "Tahoma", sans-serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* سایه و شعاع */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(6, 62, 74, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 62, 74, 0.10);
  --shadow-lg: 0 20px 60px rgba(6, 62, 74, 0.16);

  --container-w: 1180px;
}
.sales-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 35px;
    width: calc(200% + 30px);
}

@media (max-width: 768px) {
    .sales-feature-list {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

h1, h2 { font-weight: 900; letter-spacing: -0.01em; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }

.container-dr {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* برچسب کوچک ساختاری، پیش از هر عنوان بخش - نوعی از سیستم و امضای بصری سایت */
.dr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--brand-700);
  font-weight: 600;
  margin-bottom: 12px;
}
.dr-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  display: inline-block;
  flex-shrink: 0;
}
.dr-section-dark .dr-kicker { color: var(--amber); }
.dr-section-dark .dr-kicker::before { background: var(--amber); }

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================================
   دکمه‌ها
   ========================================================================= */

.btn-dr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-dr-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-dr-primary:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dr-outline {
  background: transparent;
  color: var(--brand-900);
  border-color: var(--line);
}
.btn-dr-outline:hover {
  background: var(--paper-alt);
  border-color: var(--brand);
  color: var(--brand-700);
  transform: translateY(-2px);
}

.btn-dr-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-dr-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dr-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-dr-block { width: 100%; justify-content: center; }

/* =========================================================================
   هدر
   ========================================================================= */

.dr-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 251, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.dr-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.dr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 90px;
}

.dr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.dr-logo img { height: 58px; width: auto; display: block; }

.dr-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dr-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.dr-nav a:hover,
.dr-nav a.active {
  background: var(--paper-alt);
  color: var(--brand-700);
}

.dr-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 991px) {
  .dr-nav { display: none; }
  .dr-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 90px;
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .dr-nav.is-open a { padding: 12px 10px; }
  .dr-nav-toggle { display: block; }
}


/* =========================================================================
   Hero + نمودار جریان (المان امضادار سایت)
   ========================================================================= */

.dr-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 90px;
}

.dr-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .dr-hero-grid { grid-template-columns: 1fr; }
}

.dr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dr-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.dr-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 22px;
}
.dr-hero h1 span { color: var(--brand-700); }

.dr-hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 34px;
}

.dr-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.dr-hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.dr-hero-trust div { display: flex; flex-direction: column; }
.dr-hero-trust strong {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--ink);
}
.dr-hero-trust span {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* --- نمایش لوگو در صفحه اول (جایگزین طرح قبلی) --- */
.dr-hero-logo-showcase {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dr-hero-logo-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 178, 206, 0.18), rgba(0, 178, 206, 0) 70%);
  animation: dr-glow-in 1.4s ease-out both;
}
.dr-hero-logo-showcase img {
  position: relative;
  max-width: 430px;
  width: 88%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(6, 62, 74, 0.18));
  animation: dr-logo-draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes dr-logo-draw {
  /* مرحله ۱: کشیده شدن بخش «داناراﻯ» از سمت راست (لوزی و بخش موج‌دار) */
  0%   { clip-path: inset(0 0 0 100%); }
  45%  { clip-path: inset(0 0 0 52%); }
  55%  { clip-path: inset(0 0 0 52%); }
  /* مرحله ۲: کشیده شدن دنباله سرکش حرف «ی» تا انتهای سمت چپ */
  100% { clip-path: inset(0 0 0 0%); }
}
@keyframes dr-glow-in {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* --- نمودار ساختار کلی سیستم (استفاده در صفحه محصولات) --- */
.dr-structure-diagram {
  position: relative;
  height: 460px;
}
.dr-structure-diagram svg { width: 100%; height: 100%; }

.dr-structure-path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.45;
}

.dr-structure-hub {
  fill: var(--brand);
}
.dr-structure-hub-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  fill: var(--white);
}

.dr-structure-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px 9px 9px;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.dr-structure-chip .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dr-structure-chip.is-hub {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  padding: 14px 22px 14px 14px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.dr-structure-chip.is-hub .icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* =========================================================================
   بخش‌ها
   ========================================================================= */

.dr-section { padding: 86px 0; }
.dr-section-alt { background: var(--paper-alt); }
.dr-section-dark {
  background: linear-gradient(160deg, var(--brand-900), #052f38 70%);
  color: var(--white);
}
.dr-section-dark h2, .dr-section-dark h3 { color: var(--white); }

.dr-section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.dr-section-head.centered { margin-inline: auto; text-align: center; }

.dr-section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 14px;
}
.dr-section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.dr-section-dark .dr-section-head p { color: rgba(255,255,255,0.75); }

/* آمار */
.dr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
@media (max-width: 500px) { .dr-stats { grid-template-columns: repeat(2, 1fr); } }

.dr-stat {
  text-align: center;
  padding: 26px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.dr-stat i { font-size: 1.5rem; color: var(--amber); margin-bottom: 10px; display: inline-block; }
.dr-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--white);
}
.dr-stat span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

/* کارت دسته‌بندی / محصول */
.dr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 991px) { .dr-grid-3, .dr-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dr-grid-3, .dr-grid-4, .dr-grid-2 { grid-template-columns: 1fr; } }

.dr-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}
.dr-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  opacity: 0.9;
}
.dr-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.dr-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--paper-alt), var(--white));
  border: 1.5px solid var(--line);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: border-color 0.22s ease, color 0.22s ease;
}
.dr-card:hover .dr-card-icon {
  border-color: var(--brand);
  color: var(--brand);
}
.dr-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 800; }
.dr-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.dr-card .dr-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-700);
  transition: gap 0.18s ease;
}
.dr-card:hover .dr-card-link { gap: 10px; }

/* نسخه فشرده‌تر کارت‌ها، مخصوص جعبه‌های ماژول */
.dr-card-compact {
  padding: 20px 18px;
}
.dr-card-compact .dr-card-icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  border-radius: 12px;
  margin-bottom: 12px;
}
.dr-card-compact h3 { font-size: 1rem; margin-bottom: 6px; }
.dr-card-compact p { font-size: 0.85rem; }
.dr-card-compact .dr-card-link { margin-top: 10px; font-size: 0.82rem; }

.dr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: #4a3204;
}

.dr-feature-list { list-style: none; padding: 0; margin: 0; }
.dr-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink-soft);
}
.dr-feature-list li i { color: var(--brand); margin-top: 4px; }

/* فرآیند پیاده‌سازی — مرحله‌بندی واقعی، نه دکوری */
.dr-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: dr-step;
}
@media (max-width: 900px) { .dr-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dr-steps { grid-template-columns: 1fr; } }

.dr-step {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: dr-step;
}
.dr-step::before {
  content: counter(dr-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand);
  background: var(--paper-alt);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 16px;
}
.dr-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.dr-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* توصیه‌نامه‌ها */
.dr-quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
}
.dr-quote-card i.bi-quote { font-size: 1.8rem; color: var(--amber); }
.dr-quote-card p { color: var(--ink); font-size: 1rem; margin: 14px 0 18px; }
.dr-quote-person strong { display: block; color: var(--ink); }
.dr-quote-person span { color: var(--ink-faint); font-size: 0.85rem; }

/* مشتریان */
.dr-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
}
.dr-customer-row:last-child { border-bottom: none; }
.dr-customer-name { font-weight: 700; color: var(--ink); }
.dr-customer-industry {
  font-size: 0.82rem;
  color: var(--brand-700);
  background: var(--paper-alt);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.dr-customer-desc { color: var(--ink-soft); font-size: 0.9rem; }

/* CTA پایانی */
.dr-cta-banner {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.dr-cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.dr-cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }

/* =========================================================================
   فوتر
   ========================================================================= */

.dr-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 26px;
}
.dr-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.dr-footer a { color: rgba(255,255,255,0.72); }
.dr-footer a:hover { color: var(--white); }
.dr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .dr-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dr-footer-grid { grid-template-columns: 1fr; } }
.dr-footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.dr-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dr-footer-logo img { height: 38px; }
.dr-footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* =========================================================================
   فرم‌ها
   ========================================================================= */

.dr-form-group { margin-bottom: 20px; }
.dr-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.dr-input,
.dr-textarea,
.dr-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dr-input:focus,
.dr-textarea:focus,
.dr-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 178, 206, 0.14);
}
.dr-textarea { min-height: 140px; resize: vertical; }
.text-danger-dr { color: var(--danger); font-size: 0.82rem; margin-top: 6px; display: block; }
.dr-alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.94rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dr-alert-success { background: #e8f8f1; color: var(--success); border: 1px solid #bfe9d5; }
.dr-alert-danger { background: #fdecea; color: var(--danger); border: 1px solid #f6cac1; }
.dr-alert-info { background: var(--paper-alt); color: var(--brand-700); border: 1px solid var(--line); }

/* =========================================================================
   صفحه‌بندی داخلی (درباره ما، سوالات متداول و ...)
   ========================================================================= */

.dr-page-header {
  padding: 56px 0 40px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.dr-breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.dr-breadcrumb a { color: var(--ink-faint); }
.dr-page-header h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.dr-page-header p { color: var(--ink-soft); max-width: 60ch; margin-top: 12px; }

.dr-accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.dr-accordion-btn {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.dr-accordion-btn i { transition: transform 0.2s ease; color: var(--brand); flex-shrink: 0; }
.dr-accordion-item.open .dr-accordion-btn i { transform: rotate(180deg); }
.dr-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.dr-accordion-item.open .dr-accordion-body {
  padding-bottom: 18px;
}

.dr-avatar-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-alt);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* =========================================================================
   انیمیشن ورود عناصر هنگام اسکرول
   ========================================================================= */
.dr-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.dr-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   پرتال پشتیبانی
   ========================================================================= */

.dr-portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .dr-portal-shell { grid-template-columns: 1fr; }
}

.dr-portal-sidebar {
  background: var(--brand-900);
  color: rgba(255,255,255,0.85);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}
.dr-portal-sidebar .dr-logo { color: var(--white); margin-bottom: 30px; }
.dr-portal-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dr-portal-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  font-size: 0.94rem;
}
.dr-portal-nav a i { width: 20px; text-align: center; }
.dr-portal-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dr-portal-nav a.active { background: var(--brand); color: var(--white); }
.dr-portal-user {
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 18px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}
.dr-portal-user strong { display: block; color: var(--white); }

.btn-dr-portal-logout {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
  font-weight: 800;
}
.btn-dr-portal-logout:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dr-portal-main { padding: 34px 34px 60px; background: var(--paper); }
.dr-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
  flex-wrap: wrap;
}
.dr-portal-topbar h1 { font-size: 1.5rem; }

.dr-portal-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-900);
  padding: 14px 20px;
  color: var(--white);
}
@media (max-width: 900px) {
  .dr-portal-mobile-bar { display: flex; }
  .dr-portal-sidebar { display: none; }
  .dr-portal-sidebar.is-open { display: flex; }
}

.dr-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .dr-summary-cards { grid-template-columns: 1fr; } }
.dr-summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dr-summary-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.dr-summary-card strong { display: block; font-family: var(--font-mono); font-size: 1.5rem; }
.dr-summary-card span { color: var(--ink-soft); font-size: 0.85rem; }

.dr-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 26px;
}
.dr-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.dr-panel-head h2 { font-size: 1.1rem; }

.dr-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dr-table th {
  text-align: right;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--line);
}
.dr-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dr-table tr:last-child td { border-bottom: none; }
.dr-table tr:hover td { background: var(--paper-alt); }

.dr-ticket-code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand-700); }

.dr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.dr-status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-open { background: #fdf0e2; color: #a1621a; }
.status-open::before { background: #d98f22; }
.status-inprogress { background: #e7f1fd; color: #2464ad; }
.status-inprogress::before { background: #2464ad; }
.status-waiting { background: #f4e9fb; color: #7c3aad; }
.status-waiting::before { background: #7c3aad; }
.status-resolved { background: #e8f8f1; color: #1f9d6e; }
.status-resolved::before { background: #1f9d6e; }
.status-closed { background: #eef1f2; color: #5b7780; }
.status-closed::before { background: #5b7780; }

.dr-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.priority-urgent { color: var(--danger); border-color: #f6cac1; background: #fdecea; }
.priority-high { color: var(--amber-dark); border-color: #f5e0bb; background: #fdf4e4; }

.dr-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.dr-empty-state i { font-size: 2.4rem; color: var(--brand); margin-bottom: 14px; display: block; }

.dr-thread { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.dr-message {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  max-width: 82%;
}
.dr-message.from-staff {
  background: var(--paper-alt);
  border-color: var(--brand);
  align-self: flex-start;
}
.dr-message.from-customer {
  align-self: flex-end;
}
.dr-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.dr-message-meta strong { color: var(--ink); }
.dr-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--brand-700);
  margin-top: 10px;
}

.btn-dr-danger {
  background: transparent;
  color: var(--danger);
  border-color: #f6cac1;
}
.btn-dr-danger:hover {
  background: #fdecea;
  color: var(--danger);
  border-color: var(--danger);
  transform: translateY(-2px);
}
.btn-dr-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-faint);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-size: 0.85rem;
  padding: 0;
}
.btn-dr-icon-danger:hover {
  background: #fdecea;
  color: var(--danger);
  border-color: #f6cac1;
}

.dr-attachment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.dr-attachment-row form { display: inline-flex; margin: 0; }

.dr-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}
.dr-sort-link i { font-size: 0.75rem; color: var(--brand); }

.dr-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.dr-bulk-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.dr-checkbox { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.dr-checkbox:disabled { cursor: not-allowed; opacity: 0.4; }

.dr-modal-preview img,
.dr-modal-preview iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
}
.dr-modal-preview iframe { height: 70vh; }
.dr-modal-preview img { max-height: 70vh; object-fit: contain; }

/* --- انتخاب‌گر چندفایلی با پیش‌نمایش و حذف تکی --- */
.dr-file-picker-hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.dr-file-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.dr-file-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
}
.dr-file-picker-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.dr-file-picker-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  flex-shrink: 0;
  font-size: 1rem;
}
.dr-file-picker-info { flex: 1; min-width: 0; }
.dr-file-picker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-file-picker-size { font-size: 0.75rem; color: var(--ink-faint); margin-top: 2px; }
.dr-file-picker-error {
  margin-top: 10px;
  font-size: 0.85rem;
  display: none;
}

.dr-announcement {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
  border-inline-start: 4px solid var(--brand);
  background: var(--paper-alt);
  font-size: 0.9rem;
}
.dr-announcement strong { display: block; margin-bottom: 4px; color: var(--ink); }

.dr-kb-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dr-kb-item:last-child { border-bottom: none; }

/* --- لیست نقطه‌ای ساده (بدون آیکون)، برای فهرست ویژگی‌ها --- */
.dr-plain-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 36px;
  margin: 0;
  padding: 0;
}
.dr-plain-bullets li {
  position: relative;
  padding-right: 20px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 0.95rem;
}
.dr-plain-bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
@media (max-width: 700px) {
  .dr-plain-bullets { grid-template-columns: 1fr; }
}

/* --- معرفی محصول با لوگو (صفحه محصولات) --- */
/*.dr-product-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px;
  margin-bottom: 36px;
}
.dr-product-intro img {
  width: 425px;
  max-width: 90%;
  height: auto;
  margin-bottom: 24px;
}
.dr-product-intro-text {
  max-width: 800px;
  margin-inline: auto;
}
.dr-product-intro-text h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  text-align: center;
}
.dr-product-intro-text p {
  color: var(--ink-soft);
  line-height: 2.1;
  margin: 0 0 16px;
  text-align: right;
}
.dr-product-intro-text p:last-child { margin-bottom: 0; }
*/
/* --- معرفی محصول با لوگو (صفحه محصولات) --- */
.dr-product-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 44px;
    margin-bottom: 36px;
    width: 100%;
    box-sizing: border-box;
}

    .dr-product-intro img {
        width: 425px;
        max-width: 90%;
        height: auto;
        margin-bottom: 24px;
    }

.dr-product-intro-text {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    min-width: 0;
    box-sizing: border-box;
}

    .dr-product-intro-text h3 {
        font-size: 1.25rem;
        margin-bottom: 16px;
        text-align: center;
    }

    .dr-product-intro-text p {
        color: var(--ink-soft);
        line-height: 2.1;
        margin: 0 0 16px;
        text-align: right;
        overflow-wrap: break-word;
        word-break: normal;
    }

        .dr-product-intro-text p:last-child {
            margin-bottom: 0;
        }

    /* Moadian feature list */
    .dr-product-intro-text ul {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding-right: 24px;
        padding-left: 0;
        text-align: right;
    }

    .dr-product-intro-text li {
        color: var(--ink-soft);
        line-height: 2;
        margin-bottom: 12px;
        overflow-wrap: break-word;
        word-break: normal;
    }

        .dr-product-intro-text li:last-child {
            margin-bottom: 0;
        }


/* --- نمودارهای گردش کار و ساختار (تصویر) --- */
.dr-chart-block {
  margin: 28px 0 40px;
}
.dr-chart-block .caption {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 70ch;
}
.dr-chart-block img,
.dr-structure-image img {
  width: 100%;
  max-width: 920px;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.dr-structure-image.is-compact img {
  width: 70%;
  max-width: 70%;
}
.dr-chart-block.is-compact img {
  max-width: 840px;
}
.dr-chart-block .followup-text {
  color: var(--ink-soft);
  line-height: 2;
  margin-top: 18px;
  max-width: 75ch;
}



@media (max-width: 700px) {

    .dr-product-intro {
        padding: 24px 18px;
        margin-bottom: 24px;
    }

        .dr-product-intro img {
            width: 300px;
            max-width: 85%;
            margin-bottom: 18px;
        }

    .dr-product-intro-text {
        width: 100%;
        max-width: 100%;
    }

        .dr-product-intro-text h3 {
            font-size: 1.15rem;
            line-height: 1.8;
            margin-bottom: 14px;
        }

        .dr-product-intro-text p {
            font-size: 0.92rem;
            line-height: 2;
        }

        .dr-product-intro-text ul {
            padding-right: 20px;
            padding-left: 0;
        }

        .dr-product-intro-text li {
            font-size: 0.92rem;
            line-height: 2;
            margin-bottom: 12px;
        }

    .dr-product-intro .btn-dr {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.8;
    }
}

@media (max-width: 400px) {

    .dr-product-intro {
        padding: 20px 14px;
    }

        .dr-product-intro img {
            width: 240px;
        }

    .dr-product-intro-text h3 {
        font-size: 1.05rem;
    }

    .dr-product-intro-text p,
    .dr-product-intro-text li {
        font-size: 0.88rem;
    }

    .dr-product-intro-text ul {
        padding-right: 18px;
    }

}

@media (max-width: 700px) {
    .dr-logo span {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}