/* ============================================================
   📁 site.css - فایل استایل اصلی سایت
   نسخه: 3.5 (چت آنلاین اصلاح‌شده)
   ============================================================ */

/* ============================================================
   🔹 بخش ۱: متغیرهای رنگ اصلی سایت
   ============================================================ */
   :root {
    --bg: #080d20;
    --panel: #101936;
    --panel2: #f7f9ff;
    --blue: #536dfe;
    --cyan: #58d6e8;
    --text: #f3f6ff;
    --muted: #aab4d1;
    --ink: #182858;
    --line: rgba(255, 255, 255, .1);
  
    --brand-dark: #090F21;
    --brand-navy: #182554;
    --brand-purple: #7551AA;
    --brand-purple-light: #9B7BC7;
    --brand-navy-light: #253670;
  
    --grad-main: linear-gradient(135deg, #7551AA 0%, #182554 100%);
    --grad-hover: linear-gradient(135deg, #9B7BC7 0%, #253670 100%);
    --grad-icon: linear-gradient(135deg, #7551AA 0%, #9B7BC7 50%, #182554 100%);
  
    --font-main: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
  }
  
  /* ============================================================
     🔹 بخش ۲: تنظیمات پایه و ریست
     ============================================================ */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Vazirmatn, Tahoma, sans-serif;
    overflow-x: hidden;
  }
  
  a { color: inherit; text-decoration: none; }
  button, a { -webkit-tap-highlight-color: transparent; }
  
  /* ============================================================
     🔹 بخش ۳: پس‌زمینه ذرات و نورها
     ============================================================ */
  #particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 15% 15%, #1d2c68 0, transparent 42%),
      radial-gradient(ellipse at 85% 80%, #123d58 0, transparent 38%),
      var(--bg);
  }
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .22;
    animation: drift 18s ease-in-out infinite alternate;
  }
  .orb.one { width: 390px; height: 390px; background: #5c6cff; top: -140px; left: -100px; }
  .orb.two { width: 300px; height: 300px; background: #36d9d0; bottom: -100px; right: -80px; animation-delay: -7s; }
  
  @keyframes drift {
    to { transform: translate3d(70px, 50px, 0) scale(1.12); }
  }
  
  .noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  }
  
  /* ============================================================
     🔹 بخش ۴: کانتینر اصلی و نوار ناوبری
     ============================================================ */
  .wrap {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
  }
  
  nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  
  .nav-order { padding: 11px 15px; font-size: 13px; border-radius: 13px; white-space: nowrap; }
  
  .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
  .brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: grid; place-items: center; font-size: 20px;
    box-shadow: 0 8px 28px #536dfe50;
  }
  
  .navlinks { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
  .navlinks a { transition: color .25s; }
  .navlinks a:hover { color: white; }
  
  .status {
    display: flex; align-items: center; gap: 9px; font-size: 13px;
    color: #b9f8db; background: #143b37; border: 1px solid #28675b;
    padding: 9px 14px; border-radius: 999px;
  }
  .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #50e3a4; box-shadow: 0 0 0 5px #50e3a420;
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px #50e3a400; } }
  
  /* ============================================================
     🔹 بخش ۵: بخش Hero (بنر اصلی)
     ============================================================ */
  .hero {
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 60px;
    padding: 72px 0 90px;
  }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid #7182ff55; background: #536dfe14;
    color: #b9c3ff; padding: 8px 14px; border-radius: 999px;
    font-size: 13px; margin-bottom: 22px;
  }
  h1 {
    font-size: clamp(38px, 5.2vw, 66px);
    line-height: 1.45; margin: 0 0 20px; font-weight: 900;
    letter-spacing: -1.8px;
  }
  h1 .gradient {
    background: linear-gradient(100deg, #8b9aff 10%, #65e3e2 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .lead {
    color: var(--muted); font-size: 17px; line-height: 2.2;
    max-width: 590px; margin: 0 0 30px;
  }
  .ctas { display: flex; gap: 13px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: 15px; font-weight: 700; font-size: 15px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .btn:hover { transform: translateY(-4px); }
  .primary {
    background: linear-gradient(115deg, #586fff, #3e55dc);
    box-shadow: 0 12px 30px #536dfe40;
  }
  .primary:hover { box-shadow: 0 17px 40px #536dfe65; }
  .secondary { border: 1px solid var(--line); background: #ffffff08; }
  .secondary:hover { border-color: #8390ff; }
  
  .socials { display: flex; gap: 12px; margin-top: 30px; }
  .social {
    width: 44px; height: 44px; border: 1px solid var(--line);
    background: #ffffff08; border-radius: 14px;
    display: grid; place-items: center; font-size: 18px;
    color: #c7d0ef; transition: .25s;
  }
  .social:hover {
    background: #536dfe25; transform: translateY(-4px);
    border-color: #7182ff88; color: white;
  }
  
  /* ============================================================
     🔹 بخش ۶: بخش تصویری (کارت پروفایل)
     ============================================================ */
  .visual { position: relative; display: grid; place-items: center; min-height: 430px; }
  
  .halo {
    position: absolute; width: min(390px, 90%); aspect-ratio: 1;
    border: 1px solid #7c8cff35; border-radius: 50%;
    animation: rotate 32s linear infinite;
  }
  .halo:before, .halo:after {
    content: ""; position: absolute;
    border: 1px solid #58d6e830; border-radius: 50%; inset: 28px;
  }
  .halo:after { inset: 65px; border-style: dashed; }
  @keyframes rotate { to { transform: rotate(360deg); } }
  
  .profile-card {
    position: relative; width: min(310px, 85%); aspect-ratio: .82;
    border-radius: 34px;
    background: linear-gradient(145deg, #1b2a58, #0d1530);
    border: 1px solid #a3b0ff35;
    box-shadow: 0 35px 100px #0008, inset 0 1px #ffffff20;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; transform: rotate(-3deg); transition: transform .5s;
  }
  .profile-card:hover { transform: rotate(0) translateY(-7px); }
  .profile-card:before {
    content: ""; position: absolute; width: 250px; height: 250px;
    border-radius: 50%; background: #526dff40; filter: blur(50px); top: 20px;
  }
  .avatar {
    position: relative; width: 138px; height: 138px; border-radius: 38px;
    background: linear-gradient(135deg, #7184ff, #55d9db);
    display: grid; place-items: center; font-size: 58px; font-weight: 900;
    color: #fff; box-shadow: 0 18px 50px #536dfe55; margin-bottom: 24px;
  }
  .profile-card h2 { font-size: 22px; margin: 0 0 6px; position: relative; }
  .profile-card p { color: #aab6df; font-size: 14px; margin: 0; position: relative; }
  
  .float-tag {
    position: absolute; display: flex; align-items: center; gap: 9px;
    padding: 12px 16px; background: #121d3b;
    border: 1px solid #9aa7ff35; border-radius: 16px;
    box-shadow: 0 15px 35px #0005; font-size: 13px; color: #e1e7ff;
    animation: bob 5s ease-in-out infinite;
  }
  .float-tag b { font-size: 18px; }
  .tag1 { top: 45px; right: 0; }
  .tag2 { bottom: 60px; left: 0; animation-delay: -2s; }
  .tag3 { top: 50%; left: -15px; animation-delay: -3.5s; }
  @keyframes bob { 50% { transform: translateY(-12px); } }
  
  /* ============================================================
     🔹 بخش ۷: بخش‌های عمومی و سربرگ‌ها
     ============================================================ */
  .section { padding: 70px 0; }
  .section-head { text-align: center; margin-bottom: 38px; }
  .kicker { font-size: 13px; color: #8c9bff; font-weight: 700; letter-spacing: 1px; }
  .section h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 12px; }
  .section-head p { color: var(--muted); margin: 0; line-height: 2; }
  
  /* ============================================================
     🔹 بخش ۸: بخش تماس و فوتر
     ============================================================ */
  .contact {
    margin: 50px auto 80px; padding: clamp(24px, 5vw, 48px);
    border-radius: 30px;
    background: linear-gradient(120deg, #1c2b62, #122b48);
    border: 1px solid #8b9aff35;
    display: flex; align-items: center; justify-content: space-between;
    gap: 25px;
  }
  .contact h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
  .contact p { color: #bdc9e9; margin: 0; line-height: 2; }
  
  footer {
    padding: 26px 0 35px; border-top: 1px solid var(--line);
    color: #8490b2; font-size: 13px;
    display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap;
  }
  
  /* ============================================================
     🔹 بخش ۹: انیمیشن ورود المان‌ها (Reveal)
     ============================================================ */
  .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  
  /* ============================================================
     🔹 بخش ۱۰: ریسپانسیو کلی
     ============================================================ */
  @media (max-width: 850px) {
    .hero {
      grid-template-columns: 1fr; gap: 30px;
      padding-top: 55px; text-align: center;
    }
    .lead { margin-inline: auto; }
    .ctas, .socials { justify-content: center; }
    .visual { min-height: 410px; grid-row: 1; }
    .navlinks { display: none; }
    .nav-order { font-size: 12px; padding: 10px 12px; width: auto; white-space: nowrap; }
    .contact { flex-direction: column; text-align: center; }
  }
  
  @media (max-width: 560px) {
    .wrap { width: min(100% - 28px, 1100px); }
    nav { height: 72px; }
    .status { font-size: 11px; padding: 8px 10px; }
    .brand { font-size: 14px; }
    .brand-mark { width: 36px; height: 36px; }
    .hero { min-height: auto; padding: 45px 0 55px; }
    .visual { min-height: 350px; }
    .profile-card { width: 245px; }
    .avatar { width: 110px; height: 110px; font-size: 48px; border-radius: 30px; }
    .float-tag { font-size: 11px; padding: 10px 12px; }
    .tag1 { right: -2px; }
    .tag2 { left: -2px; bottom: 45px; }
    .tag3 { left: -8px; }
    .section { padding: 50px 0; }
    .btn { width: 100%; }
    .ctas { display: grid; }
    .contact { margin: 35px auto 55px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      scroll-behavior: auto !important;
      transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
  }
  
  /* ============================================================
     🔹 بخش ۱۱: فرم سفارش (تنظیمات پایه)
     ============================================================ */
  #site-order { scroll-margin-top: 28px; }
  #site-order .so-option { color: #f3f6ff; }
  #site-order .so-option.selected { color: #aeb8ff; }
  #site-order .so-textarea,
  #site-order .so-input { color: #f3f6ff; background: #0b1430; }
  #site-order .so-textarea::placeholder,
  #site-order .so-input::placeholder { color: #7786ad; }
  #site-order .so-summary-row { border-bottom-color: rgba(255, 255, 255, .08); }
  #site-order .so-step-name { color: #aab4d1; }
  #site-order .so-step-number { background: #202b4a; color: #c7d0ef; }
  #site-order .so-step-indicator.active .so-step-number { background: #202b5a; color: #b9c3ff; }
  
  html, body, button, input, textarea, select {
    font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif !important;
  }
  #site-order .so-shell,
  #site-order .so-shell * {
    font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  }
  
  /* ============================================================
     🔹 بخش ۱۲: فرم سفارش (متغیرها و ساختار)
     ============================================================ */
  #site-order {
    --so-primary: #536dfe;
    --so-primary-soft: #202b5a;
    --so-orange: #58d6e8;
    --so-ink: #f3f6ff;
    --so-muted: #aab4d1;
    --so-border: rgba(255, 255, 255, .14);
    --so-panel: #101936;
    --so-bg: #080d20;
    font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
    color: var(--so-ink);
    max-width: 1180px;
    margin: 34px auto;
    padding: 0;
    box-sizing: border-box;
  }
  #site-order * { box-sizing: border-box; }
  
  #site-order .so-shell {
    overflow: hidden;
    border-radius: 18px;
    padding: 15px 18px 16px;
    background: linear-gradient(135deg, #172653, #102c46);
    border: 1px solid rgba(139, 154, 255, .24);
    box-shadow: 0 18px 50px rgba(18, 32, 65, .14);
  }
  #site-order .so-heading {
    color: #fff; text-align: center;
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 900; margin: 4px 0 16px; letter-spacing: -.6px;
  }
  
  #site-order .so-progress-wrap {
    background: #0d1530;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    padding: 17px 14px 12px;
    margin-bottom: 9px;
    overflow: hidden;
  }
  #site-order .so-progress {
    display: flex; align-items: flex-start; gap: 0;
    direction: rtl; position: relative;
  }
  #site-order .so-progress:before {
    content: ""; height: 4px; background: #d5deef;
    position: absolute; top: 5px; right: 3%; left: 3%; border-radius: 9px;
  }
  #site-order .so-progress-fill {
    height: 4px; background: var(--so-primary);
    position: absolute; top: 5px; right: 3%; width: 0;
    border-radius: 9px; transition: width .45s ease;
  }
  #site-order .so-step-indicator {
    position: relative; z-index: 1; flex: 1; min-width: 0;
    text-align: center; cursor: default;
  }
  #site-order .so-step-dot {
    width: 34px; height: 34px; display: grid; place-items: center;
    margin: -10px auto 12px; border-radius: 50%;
    background: #d5deef; color: #75829a; border: 3px solid white;
    font-weight: bold; font-size: 13px; transition: .25s ease;
  }
  #site-order .so-step-indicator.active .so-step-dot,
  #site-order .so-step-indicator.done .so-step-dot {
    background: var(--so-primary); color: #fff;
    box-shadow: 0 0 0 4px rgba(64, 88, 245, .10);
  }
  #site-order .so-step-indicator.done .so-step-dot { background: #08a878; }
  #site-order .so-step-name { font-size: 12px; color: #8991a0; font-weight: 700; }
  #site-order .so-step-indicator.active .so-step-name { color: var(--so-primary); }
  #site-order .so-step-number {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 8px; margin-top: 8px;
    border-radius: 10px; background: #202b4a; color: #68738a; font-size: 12px;
  }
  #site-order .so-step-indicator.active .so-step-number {
    color: var(--so-primary); background: var(--so-primary-soft);
  }
  
  #site-order .so-panel {
    background: var(--so-panel);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    padding: 15px 18px 16px;
    min-height: 0;
    animation: soFadeIn .35s ease both;
  }
  #site-order .so-panel-title {
    text-align: center;
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 800; margin: 0 0 14px; line-height: 1.8;
  }
  
  #site-order .so-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
  #site-order .so-option {
    appearance: none; width: 100%; min-height: 78px;
    border: 1px solid var(--so-border); border-radius: 9px;
    background: #0b1430; padding: 10px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; color: var(--so-ink); font: inherit; font-size: 15px;
    font-weight: 600;
    line-height: 1.5; text-align: center; cursor: pointer;
    transition: transform .2s ease, border-color .2s ease,
                background .2s ease, box-shadow .2s ease;
  }
  #site-order .so-option:hover {
    transform: translateY(-3px);
    border-color: #9aa8ff;
    box-shadow: 0 8px 22px rgba(35, 54, 110, .08);
  }
  #site-order .so-option.selected {
    border: 1.5px solid var(--so-primary);
    background: #202b5a; color: var(--so-primary);
    box-shadow: inset 0 0 0 1px rgba(64, 88, 245, .04);
  }
  #site-order .so-icon {
    font-size: 26px; line-height: 1; color: #58d6e8; min-height: 26px;
  }
  #site-order .so-option.selected .so-icon { color: var(--so-primary); }
  
  #site-order .so-field-label {
    display: block; font-weight: 800; margin: 0 0 10px; font-size: 15px;
  }
  #site-order .so-field { margin-bottom: 14px; }
  
  #site-order .so-textarea {
    display: block; width: 100%; min-height: 145px; resize: vertical;
    border: 1px solid var(--so-border); border-radius: 8px;
    padding: 12px; font: inherit; line-height: 1.9; outline: none;
    color: var(--so-ink); background: #0b1430;
    transition: border-color .2s, box-shadow .2s;
  }
  #site-order .so-input {
    width: 100%; border: 1px solid var(--so-border);
    border-radius: 8px; padding: 13px 14px; font: inherit; outline: none;
  }
  #site-order .so-textarea:focus,
  #site-order .so-input:focus {
    border-color: var(--so-primary);
    box-shadow: 0 0 0 3px rgba(64, 88, 245, .1);
  }
  #site-order .so-help { color: var(--so-muted); font-size: 12px; margin-top: 8px; }
  
  #site-order .so-nav {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-top: 10px; direction: ltr;
  }
  #site-order .so-btn {
    border: 0; border-radius: 9px; padding: 10px 20px;
    font: inherit; font-size: 13px; font-weight: 800;
    cursor: pointer; transition: transform .2s ease, filter .2s ease;
  }
  #site-order .so-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
  #site-order .so-btn-primary { background: var(--so-primary); color: #fff; }
  #site-order .so-btn-secondary {
    background: #ffffff08; color: #dce5ff;
    border: 1px solid rgba(255, 255, 255, .16);
  }
  #site-order .so-btn:disabled {
    opacity: .4; cursor: not-allowed; transform: none;
  }
  
  #site-order .so-error {
    display: none; color: #c62828; font-size: 13px; margin-top: 14px;
  }
  
  #site-order .so-summary {
    border: 1px solid var(--so-border); border-radius: 10px;
    overflow: hidden; margin-bottom: 22px;
  }
  #site-order .so-summary-row {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
    line-height: 1.8;
  }
  #site-order .so-summary-row:last-child { border-bottom: 0; }
  #site-order .so-summary-row strong { color: #aab4d1; font-size: 13px; }
  #site-order .so-summary-row span { text-align: left; font-weight: 700; font-size: 13px; }
  
  #site-order .so-success {
    display: none; text-align: center; padding: 25px 10px; line-height: 2;
  }
  #site-order .so-success.is-visible { display: block; }
  #site-order .so-success .so-success-icon {
    width: 62px; height: 62px; display: grid; place-items: center;
    margin: 0 auto 15px; border-radius: 50%;
    background: #143b37; color: #50e3a4; font-size: 30px;
  }
  #site-order .so-status { margin-top: 12px; color: #aab4d1; font-size: 13px; }
  #site-order .so-status.error { color: #ff9eae; }
  #site-order .so-status.ok { color: #7ff0bd; }
  
  @keyframes soFadeIn {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ریسپانسیو فرم سفارش */
  @media (min-width: 851px) {
    #site-order .so-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #site-order .so-option { min-height: 76px; }
    #site-order .so-step-dot { width: 30px; height: 30px; margin: -9px auto 8px; }
    #site-order .so-step-name { font-size: 11px; }
    #site-order .so-progress-wrap { padding-top: 20px; }
  }
  @media (max-width: 850px) {
    #site-order .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #site-order .so-option { min-height: 76px; }
    #site-order .so-step-name { font-size: 10px; }
    #site-order .so-step-number { display: none; }
    #site-order .so-progress-wrap { padding: 22px 8px 14px; }
    #site-order .so-shell { padding: 14px; }
  }
  @media (max-width: 520px) {
    #site-order { padding: 8px; margin: 20px auto; }
    #site-order .so-grid { gap: 9px; }
    #site-order .so-option { min-height: 100px; padding: 12px 8px; font-size: 13px; }
    #site-order .so-step-name { display: none; }
    #site-order .so-step-dot { margin-bottom: 3px; }
    #site-order .so-panel { padding: 16px 12px; }
    #site-order .so-nav { flex-direction: row; }
    #site-order .so-btn { padding: 12px 16px; }
  }
  
  /* ============================================================
     🔹 بخش ۱۳: سکشن خدمات (سربرگ و شبکه)
     ============================================================ */
  #services {
    position: relative;
    padding: 80px 20px;
    background: transparent;
  }
  
  .section-head {
    text-align: center;
    margin-bottom: 60px;
  }
  .section-head .kicker {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(117, 81, 170, 0.1);
    color: var(--brand-purple);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(117, 81, 170, 0.3);
    border-radius: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #b3cbec;
    margin: 12px 0;
  }
  .section-head p {
    color: #d0dff5;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
  }
  
  .services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
  }
  @media (max-width: 1024px) {
    .services { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  }
  @media (max-width: 640px) {
    .services { grid-template-columns: 1fr; gap: 18px; }
  }
  
  /* ============================================================
     🔹 بخش ۱۴: کارت خدمات (طراحی نهایی v3.0)
     ============================================================ */
  .service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  
    padding: 36px 26px 24px;
    background: linear-gradient(
      160deg,
      rgba(24, 37, 84, 0.85) 0%,
      rgba(9, 15, 33, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  
    border: 1px solid rgba(117, 81, 170, 0.3);
    border-radius: 22px;
    direction: rtl;
    font-family: var(--font-main);
    overflow: visible;
    isolation: isolate;
  
    transition:
      transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      border-color 0.3s ease,
      background 0.3s ease;
  
    box-shadow:
      0 4px 20px rgba(9, 15, 33, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .service-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    background: var(--grad-icon);
    box-shadow:
      0 6px 18px rgba(117, 81, 170, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .service:hover .service-badge {
    transform: rotate(-10deg) scale(1.1);
  }
  
  .service-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
  }
  .service:hover .service-title {
    background: linear-gradient(135deg, #9B7BC7, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .service-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid rgba(117, 81, 170, 0.25);
    direction: rtl;
  }
  
  .price-prefix {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
  }
  
  .price-number {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffd104;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
    text-shadow:
      0 0 12px rgba(255, 209, 4, 0.5),
      0 0 24px rgba(255, 209, 4, 0.25);
    transition: text-shadow 0.3s ease;
  }
  .service:hover .price-number {
    text-shadow:
      0 0 18px rgba(255, 209, 4, 0.8),
      0 0 32px rgba(255, 209, 4, 0.4);
  }
  
  .price-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
  }
  
  .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    width: 100%;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
  }
  .service-features li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
  }
  .service-features li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--grad-main);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(117, 81, 170, 0.5);
  }
  
  .price-order-block {
    position: relative;
    margin-top: auto;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    direction: rtl;
    font-family: var(--font-main);
  
    background: linear-gradient(
      135deg,
      #7551AA 0%,
      #4A3480 40%,
      #253670 70%,
      #182554 100%
    );
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
  
    border: 1px solid rgba(155, 123, 199, 0.4);
    box-shadow:
      0 8px 24px rgba(117, 81, 170, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  .price-order-block:hover {
    transform: translateY(-3px);
    box-shadow:
      0 14px 36px rgba(117, 81, 170, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  @keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  .block-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent
    );
    pointer-events: none;
    z-index: 5;
  }
  .price-order-block:hover .block-shine {
    animation: blockShine 1.2s ease;
  }
  @keyframes blockShine {
    0% { left: -100%; }
    100% { left: 100%; }
  }
  
  .service-order {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
  }
  .order-text { transition: transform 0.3s ease; }
  .order-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  .service-order:hover .order-text { transform: translateX(-2px); }
  .service-order:hover .order-arrow { transform: translateX(-6px); }
  
  .service-order::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: transform 0.4s ease;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
  .service-order:hover::after {
    transform: translateX(-50%) scaleX(1);
  }
  
  /* ─── نوار نئون متحرک دور کارت ─── */
  @property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }
  
  .service::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
  
    background: conic-gradient(
      from var(--angle, 0deg),
      #7551AA,
      #9B7BC7,
      #58d6e8,
      #7551AA,
      #9B7BC7,
      #7551AA
    );
  
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
  
    animation: neonRotate 4s linear infinite;
  }
  .service:hover::after { opacity: 1; }
  
  @keyframes neonRotate {
    to { --angle: 360deg; }
  }
  
  .service:hover {
    transform: translateY(-8px);
    border-color: transparent;
    background: linear-gradient(
      160deg,
      rgba(37, 54, 112, 0.95) 0%,
      rgba(9, 15, 33, 1) 100%
    );
    filter: drop-shadow(0 0 6px rgba(117, 81, 170, 0.5))
            drop-shadow(0 0 12px rgba(88, 214, 232, 0.25));
  }
  
  @supports not (background: conic-gradient(from 0deg, red, blue)) {
    .service::after {
      background: linear-gradient(90deg, #7551AA, #58d6e8, #9B7BC7, #7551AA);
      background-size: 300% 100%;
      animation: neonSlide 4s linear infinite;
    }
    @keyframes neonSlide {
      0% { background-position: 0% 50%; }
      100% { background-position: 300% 50%; }
    }
  }
  
  /* ============================================================
     🔹 بخش ۱۵: ریسپانسیو کارت خدمات
     ============================================================ */
  @media (max-width: 1200px) {
    .services { gap: 22px; }
    .service { padding: 30px 22px 22px; }
    .service-title { font-size: 1.45rem; }
    .price-number { font-size: 1.5rem; }
  }
  
  @media (max-width: 768px) {
    #services { padding: 60px 16px; }
    .section-head h2 { font-size: 1.7rem; }
    .service { padding: 26px 18px 18px; border-radius: 18px; }
    .service-badge { width: 40px; height: 40px; font-size: 1.15rem; }
    .service-title { font-size: 1.35rem; }
    .price-number { font-size: 1.4rem; }
    .service-order { font-size: 0.9rem; padding: 12px 16px; }
  }
  
  @media (max-width: 480px) {
    .section-head h2 { font-size: 1.4rem; }
    .section-head p { font-size: 0.9rem; }
    .service { padding: 22px 16px 16px; }
    .service-badge { width: 36px; height: 36px; font-size: 1rem; }
    .service-title { font-size: 1.2rem; }
    .price-number { font-size: 1.25rem; }
    .service-order { font-size: 0.85rem; padding: 11px 14px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .service,
    .service-badge,
    .service-title,
    .price-number,
    .price-order-block,
    .block-shine,
    .service-order,
    .order-text,
    .order-arrow,
    .service::after {
      animation: none !important;
      transition: none !important;
    }
    .service::after { opacity: 0.6; }
  }
  
  /* ============================================================
     🔹 بخش ۱۶: نوار ناوبری نسخه 2.1 (دکمه حمایت)
     ============================================================ */
  html { scroll-padding-top: 20px; }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .donate-btn {
    padding: 11px 15px;
    font-size: 13px;
    border-radius: 13px;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6b9a26, #ffb35c26);
    border: 1px solid #ff8fb050;
    color: #ffd5e2;
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .donate-btn:hover {
    transform: translateY(-2px);
    border-color: #ff8fb0;
    box-shadow: 0 10px 30px #ff6b9a30;
  }
  .donate-btn span { color: #ff7aa5; }
  
  /* ============================================================
     🔹 بخش ۱۷: بخش نمونه‌کارها (Portfolio)
     ============================================================ */
  .portfolio {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .pf-card {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #121d3b, #0d142b);
    border: 1px solid var(--line);
    transition: transform .3s, border-color .3s, box-shadow .3s;
  }
  .pf-card:hover {
    transform: translateY(-6px);
    border-color: #7283ff70;
    box-shadow: 0 22px 50px #00000050;
  }
  .pf-shot {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0a1128;
    outline: none;
  }
  .pf-shot img {
    display: block; width: 100%; height: auto;
    transform: translateY(0);
    transition: transform var(--pf-dur, 6s) linear;
    will-change: transform;
  }
  .pf-shot.is-scrolling img {
    transform: translateY(calc(-1 * var(--pf-shift, 0px)));
  }
  .pf-shot::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, #0d142bcc, transparent);
    pointer-events: none;
    transition: opacity .4s;
  }
  .pf-shot.is-scrolling::after { opacity: 0; }
  .pf-empty {
    height: 100%; display: grid; place-items: center;
    font-size: 40px; color: #536dfe60;
  }
  .pf-body { padding: 20px 22px 24px; }
  .pf-body h3 { margin: 0 0 8px; font-size: 18px; }
  .pf-body p { color: var(--muted); line-height: 2; font-size: 14px; margin: 0 0 12px; }
  .pf-link {
    display: inline-flex; gap: 6px; font-size: 13px;
    color: var(--cyan); font-weight: 700;
  }
  .pf-link:hover { color: #fff; }
  
  /* ============================================================
     🔹 بخش ۱۸: بخش حمایت مالی (Donate)
     ============================================================ */
  .donate {
    margin: 0 auto 80px;
    padding: clamp(26px, 5vw, 52px);
    border-radius: 30px;
    text-align: center;
    background:
      radial-gradient(ellipse at top, #ff6b9a1f, transparent 60%),
      linear-gradient(145deg, #141d3e, #0e1530);
    border: 1px solid #ff8fb035;
    scroll-margin-top: 24px;
  }
  .donate h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0; }
  .donate-head p {
    color: #bdc9e9; line-height: 2; margin: 0 auto; max-width: 620px;
  }
  .donate-box {
    margin-top: 26px;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  }
  .donate-box img, .donate-box iframe { max-width: 100%; }
  .donate.flash { animation: donateFlash 1.4s ease; }
  @keyframes donateFlash {
    30% { box-shadow: 0 0 0 6px #ff8fb040, 0 0 60px #ff6b9a40; }
  }
  
  @media (max-width: 850px) {
    .portfolio { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .portfolio { grid-template-columns: 1fr; }
    .donate-btn { padding: 9px 11px; font-size: 12px; }
    .nav-actions { gap: 6px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pf-shot img { transition-duration: .01s !important; }
  }
  
  /* ============================================================
     🔹 بخش ۱۹: اصلاحات نهایی و دسترسی‌پذیری
     ============================================================ */
  .service,
  .pf-card { min-width: 0; overflow-wrap: anywhere; }
  
  .pf-shot:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
  }
  
  .contact-copy { min-width: 0; flex: 1; }
  .contact > .btn { flex-shrink: 0; }
  
  .contact-socials {
    display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 20px;
  }
  .contact-socials:empty { display: none; }
  
  .contact-social-link {
    display: inline-flex; align-items: center; flex-wrap: wrap;
    gap: 8px; font-size: 14px; color: var(--text); max-width: 100%;
  }
  .contact-social-link span[dir] {
    color: var(--cyan); overflow-wrap: anywhere; min-width: 0;
  }
  .contact-social-link:hover { color: var(--cyan); }
  
  .contact-social-link:focus-visible,
  .service-order:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
  }
  
  @media (max-width: 850px) {
    .contact-socials { justify-content: center; }
  }
  @media (max-width: 560px) {
    html { overflow-x: clip; }
  }
  
  /* ============================================================
     🔹 بخش ۲۰: پنل کشویی پیگیری سفارش
     ============================================================ */
  .track-toggle-btn {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 999;
  
    transform-origin: 0 0;
    transform: translateY(-50%) rotate(-90deg);
  
    display: flex;
    align-items: center;
    gap: 10px;
  
    padding: 12px 22px;
    background: linear-gradient(135deg, #7551AA, #4A3480);
    color: #f7e706;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid rgba(155, 123, 199, 0.5);
    border-radius: 0 0 16px 16px;
    cursor: pointer;
    box-shadow:
      0 8px 28px rgba(117, 81, 170, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition:
      background 0.3s ease,
      box-shadow 0.3s ease;
    white-space: nowrap;
  }
  
  .track-toggle-btn:hover {
    background: linear-gradient(135deg, #9B7BC7, #7551AA);
    box-shadow:
      0 12px 36px rgba(117, 81, 170, 0.7),
      0 0 30px rgba(88, 214, 232, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .track-toggle-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .track-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .track-toggle-text {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }
  
  .track-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd104;
    text-shadow: 0 0 10px rgba(255, 209, 4, 0.5);
    flex-shrink: 0;
    transform: rotate(-90deg);
    animation: arrowPulseFixed 1.8s ease-in-out infinite;
  }
  
  @keyframes arrowPulseFixed {
    0%, 100% {
      transform: rotate(-90deg) translateX(0) scale(1);
      opacity: 0.85;
    }
    50% {
      transform: rotate(-90deg) translateX(4px) scale(1.15);
      opacity: 1;
    }
  }
  
  .track-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(440px, 100%);
    z-index: 1000;
  
    background: linear-gradient(
      145deg,
      rgba(24, 37, 84, 0.98) 0%,
      rgba(9, 15, 33, 0.99) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(155, 123, 199, 0.4);
    box-shadow:
      20px 0 60px rgba(0, 0, 0, 0.6),
      inset -1px 0 0 rgba(255, 255, 255, 0.05);
  
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
  }
  
  .track-drawer.is-open {
    transform: translateX(0);
  }
  
  .track-drawer-handle {
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
  
    width: 22px;
    height: 90px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: linear-gradient(135deg, #7551AA, #4A3480);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    box-shadow:
      4px 0 16px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
  }
  
  .track-drawer-handle:hover {
    background: linear-gradient(135deg, #9B7BC7, #7551AA);
  }
  
  .track-drawer .handle-arrow {
    transition: transform 0.4s ease;
    display: inline-block;
  }
  .track-drawer.is-open .handle-arrow {
    transform: rotate(180deg);
  }
  
  .track-drawer-content {
    padding: 32px 26px 40px;
  }
  
  .track-drawer-header {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(155, 123, 199, 0.25);
    position: relative;
  }
  
  .track-drawer-close {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f6ff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    z-index: 10;
  }
  
  .track-drawer-close:hover {
    background: rgba(255, 90, 90, 0.2);
    border-color: rgba(255, 90, 90, 0.5);
    color: #ff9eae;
    transform: scale(1.1);
  }
  
  @media (max-width: 560px) {
    .track-drawer-close {
      display: flex;
    }
    .track-drawer-header {
      position: relative;
      padding-left: 60px;
    }
  }
  
  .track-drawer-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #9B7BC7, #58d6e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .track-drawer-header p {
    color: #aab4d1;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.8;
  }
  
  .track-drawer .track-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .track-drawer .track-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .track-drawer .track-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .track-drawer .track-field input {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 0.95rem;
    color: #f3f6ff;
    background: #0b1430;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .track-drawer .track-field input::placeholder { color: #7786ad; }
  .track-drawer .track-field input:focus {
    border-color: #536dfe;
    box-shadow: 0 0 0 3px rgba(83, 109, 254, 0.15);
  }
  
  .track-drawer .track-submit {
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
  }
  
  .track-drawer .track-result {
    margin-top: 24px;
    display: none;
  }
  .track-drawer .track-result.is-visible { display: block; }
  
  .track-result-card {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(117, 81, 170, 0.15), rgba(88, 214, 232, 0.08));
    border: 1px solid rgba(155, 123, 199, 0.35);
    animation: trackFadeIn 0.4s ease;
  }
  @keyframes trackFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .track-result-error {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(198, 40, 40, 0.12);
    border: 1px solid rgba(198, 40, 40, 0.35);
    color: #ff9eae;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
  }
  
  .track-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  
  .track-order-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
  }
  .track-order-id b {
    color: #536dfe;
    font-size: 1.3rem;
    font-weight: 900;
  }
  
  .track-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
  }
  .track-status-badge.status-new       { background: rgba(83, 109, 254, 0.2); color: #aeb8ff; border: 1px solid rgba(83, 109, 254, 0.4); }
  .track-status-badge.status-review    { background: rgba(255, 209, 4, 0.15); color: #ffd104; border: 1px solid rgba(255, 209, 4, 0.4); }
  .track-status-badge.status-progress  { background: rgba(88, 214, 232, 0.15); color: #58d6e8; border: 1px solid rgba(88, 214, 232, 0.4); }
  .track-status-badge.status-done      { background: rgba(80, 227, 164, 0.15); color: #50e3a4; border: 1px solid rgba(80, 227, 164, 0.4); }
  .track-status-badge.status-cancel    { background: rgba(198, 40, 40, 0.15); color: #ff9eae; border: 1px solid rgba(198, 40, 40, 0.4); }
  
  .track-answers {
    display: grid;
    gap: 8px;
  }
  
  .track-answer-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.8;
    flex-wrap: wrap;
  }
  .track-answer-row strong {
    color: #aab4d1;
    font-weight: 700;
  }
  .track-answer-row span {
    color: #f3f6ff;
    text-align: left;
    font-weight: 600;
  }
  
  .track-answer-row--list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .track-answer-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .track-answer-list li {
    position: relative;
    padding-right: 22px;
    color: #f3f6ff;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.8;
    text-align: right;
  }
  
  .track-answer-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #7551AA, #58d6e8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(88, 214, 232, 0.4);
  }
  
  .track-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .track-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
  
  .track-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
  }
  
  .track-type-badge.track-type-package {
    background: rgba(80, 227, 164, 0.15);
    color: #50e3a4;
    border: 1px solid rgba(80, 227, 164, 0.4);
  }
  
  .track-type-badge.track-type-form {
    background: rgba(83, 109, 254, 0.15);
    color: #aeb8ff;
    border: 1px solid rgba(83, 109, 254, 0.4);
  }
  
  @media (max-width: 560px) {
    .track-toggle-btn {
      top: auto;
      bottom: 20px;
      left: 20px;
      transform: none;
      transform-origin: center;
      border-radius: 50%;
      padding: 14px;
      width: 56px;
      height: 56px;
      justify-content: center;
      gap: 0;
    }
    .track-toggle-btn:hover {
      transform: translateY(-3px);
    }
    .track-toggle-btn.is-hidden {
      transform: translateY(100px);
    }
    .track-toggle-text {
      display: none;
    }
    .track-toggle-icon {
      width: auto;
      height: auto;
      background: transparent;
      font-size: 1.5rem;
    }
    .track-toggle-arrow {
      display: none;
    }
    .track-drawer {
      width: 100%;
      max-width: 420px;
    }
    .track-drawer-content {
      padding: 26px 20px 36px;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .track-toggle-btn,
    .track-drawer,
    .track-drawer-handle,
    .track-overlay {
      transition: none !important;
      animation: none !important;
    }
  }
  
  /* ============================================================
     🔔 بخش نوتیفیکیشن PWA
     ============================================================ */
  .notif-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(155, 123, 199, 0.25);
    text-align: center;
  }
  
  .notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(83, 109, 254, 0.4);
  }
  
  .notif-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(83, 109, 254, 0.6);
  }
  
  .notif-btn:disabled {
    background: #50e3a4;
    cursor: not-allowed;
    opacity: 0.9;
  }
  
  .notif-help {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: #aab4d1;
    line-height: 1.7;
  }
  
  /* ============================================================
     🎟️ بخش کد تخفیف
     ============================================================ */
  .service-discount {
    width: 100%;
    margin: 12px 0;
    text-align: center;
  }
  
  .discount-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed rgba(155, 123, 199, 0.5);
    border-radius: 10px;
    color: #9B7BC7;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  
  .discount-toggle:hover {
    background: rgba(155, 123, 199, 0.1);
    border-color: #9B7BC7;
    color: #ffffff;
  }
  
  .discount-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .discount-input {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.85rem;
    color: #f3f6ff;
    background: #0b1430;
    border: 1px solid rgba(155, 123, 199, 0.3);
    border-radius: 8px;
    outline: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.25s ease;
  }
  
  .discount-input:focus {
    border-color: #9B7BC7;
    box-shadow: 0 0 0 3px rgba(155, 123, 199, 0.15);
  }
  
  .discount-apply {
    padding: 10px 20px;
    background: linear-gradient(135deg, #7551AA, #4A3480);
    color: #ffffff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .discount-apply:hover {
    transform: translateY(-2px);
  }
  
  .discount-message {
    width: 100%;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
  }
  
  .discount-message.success {
    color: #50e3a4;
  }
  
  .discount-message.error {
    color: #ff9eae;
  }
  
  .price-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-left: 8px;
  }
  
  .price-discounted {
    color: #50e3a4 !important;
  }
  
  .discount-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #50e3a4, #3bbd85);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 6px;
  }
  
  /* ============================================================
     🛒 پنل کشویی سفارش پکیج
     ============================================================ */
  .package-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(480px, 100%);
    z-index: 1001;
  
    background: linear-gradient(
      145deg,
      rgba(24, 37, 84, 0.98) 0%,
      rgba(9, 15, 33, 0.99) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(155, 123, 199, 0.4);
    box-shadow:
      20px 0 60px rgba(0, 0, 0, 0.6),
      inset -1px 0 0 rgba(255, 255, 255, 0.05);
  
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
  }
  
  .package-drawer.is-open {
    transform: translateX(0);
  }
  
  .package-drawer-handle {
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
  
    width: 22px;
    height: 90px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: linear-gradient(135deg, #50e3a4, #3bbd85);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    box-shadow:
      4px 0 16px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
  }
  
  .package-drawer-handle:hover {
    background: linear-gradient(135deg, #5fffb5, #50e3a4);
  }
  
  .package-drawer .handle-arrow {
    transition: transform 0.4s ease;
    display: inline-block;
  }
  .package-drawer.is-open .handle-arrow {
    transform: rotate(180deg);
  }
  
  .package-drawer-close {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f6ff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
  }
  
  .package-drawer-close:hover {
    background: rgba(255, 90, 90, 0.2);
    border-color: rgba(255, 90, 90, 0.5);
    color: #ff9eae;
    transform: scale(1.1);
  }
  
  .package-drawer-content {
    padding: 32px 26px 40px;
    position: relative;
  }
  
  .package-drawer-header {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(155, 123, 199, 0.25);
  }
  
  .package-drawer-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #50e3a4, #58d6e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .package-drawer-header p {
    color: #aab4d1;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.8;
  }
  
  .package-summary {
    background: rgba(80, 227, 164, 0.08);
    border: 1px solid rgba(80, 227, 164, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .package-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #f3f6ff;
    border-bottom: 1px solid rgba(80, 227, 164, 0.15);
  }
  
  .package-summary-row:last-child {
    border-bottom: none;
  }
  
  .package-summary-row strong {
    color: #aab4d1;
  }
  
  .package-summary-row span {
    color: #50e3a4;
    font-weight: 800;
  }
  
  .package-summary-features {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(80, 227, 164, 0.15);
  }
  
  .package-summary-features ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
  }
  
  .package-summary-features li {
    position: relative;
    padding-right: 22px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
  }
  
  .package-summary-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #50e3a4, #3bbd85);
    border-radius: 50%;
  }
  
  .package-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .package-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .package-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
  }
  
  .package-field input {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 0.95rem;
    color: #f3f6ff;
    background: #0b1430;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  
  .package-field input::placeholder {
    color: #7786ad;
  }
  
  .package-field input:focus {
    border-color: #50e3a4;
    box-shadow: 0 0 0 3px rgba(80, 227, 164, 0.15);
  }
  
  .package-help {
    font-size: 0.75rem;
    color: #aab4d1;
  }
  
  .package-submit {
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, #50e3a4, #3bbd85) !important;
    box-shadow: 0 8px 24px rgba(80, 227, 164, 0.4) !important;
  }
  
  .package-submit:hover {
    box-shadow: 0 12px 32px rgba(80, 227, 164, 0.6) !important;
  }
  
  .package-error {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(198, 40, 40, 0.12);
    border: 1px solid rgba(198, 40, 40, 0.35);
    color: #ff9eae;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
  }
  
  .package-error.is-visible {
    display: block;
  }
  
  .package-success {
    display: none;
    text-align: center;
    padding: 30px 20px;
    line-height: 2;
  }
  
  .package-success.is-visible {
    display: block;
  }
  
  .package-success-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #143b37, #1a4a44);
    color: #50e3a4;
    font-size: 34px;
    box-shadow: 0 8px 24px rgba(80, 227, 164, 0.3);
  }
  
  .package-success h3 {
    color: #50e3a4;
    margin: 0 0 10px;
    font-size: 1.3rem;
  }
  
  .package-success p {
    color: #aab4d1;
    margin: 0 0 16px;
  }
  
  .package-success-code {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(83, 109, 254, 0.15);
    border: 1px solid rgba(83, 109, 254, 0.4);
    border-radius: 10px;
    color: #aeb8ff;
    font-weight: 800;
    font-size: 1rem;
  }
  
  .package-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  
  .package-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
  
  .package-order-btn {
    cursor: pointer;
    width: 100%;
    background: transparent;
    border: none;
    font: inherit;
  }
  
  @media (max-width: 560px) {
    .package-drawer {
      width: 100%;
      max-width: 440px;
    }
    .package-drawer-content {
      padding: 70px 20px 36px;
    }
    .package-drawer-close {
      display: flex;
    }
    .package-drawer-handle {
      display: none;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .package-drawer,
    .package-drawer-handle,
    .package-overlay {
      transition: none !important;
    }
  }
  
  /* ============================================================
     💬 چت آنلاین — طراحی تلگرام (نسخه اصلاح‌شده v3.5)
     ============================================================ */
  
  /* ─── دکمه شناور ─── */
  .msm-chat-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(83, 109, 254, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: msmChatPulse 2s ease-in-out infinite;
  }
  
  @keyframes msmChatPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(83, 109, 254, 0.5); }
    50% { box-shadow: 0 8px 28px rgba(83, 109, 254, 0.5), 0 0 0 12px rgba(83, 109, 254, 0.1); }
  }
  
  .msm-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(83, 109, 254, 0.7);
  }
  
  .msm-chat-toggle.is-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }
  
  .msm-chat-toggle-icon {
    font-size: 1.6rem;
    line-height: 1;
  }
  
  .msm-chat-toggle-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
  }
  
  .msm-chat-toggle-status.online {
    background: #50e3a4;
    box-shadow: 0 0 12px rgba(80, 227, 164, 0.8);
  }
  
  .msm-chat-toggle-status.offline {
    background: #8490b2;
  }
  
  /* ─── پنجره چت ─── */
  .msm-chat-window {
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
  }
  
  .msm-chat-window.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  
  /* ─── هدر ─── */
  .msm-chat-header {
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: 60px;
  }
  
  .msm-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .msm-chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  
  .msm-chat-header-info h4 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 800;
  }
  
  .msm-chat-header-status {
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
  }
  
  .msm-chat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
  }
  
  .msm-chat-header-status.online .msm-chat-dot {
    background: #50e3a4;
  }
  
  .msm-chat-header-status.offline .msm-chat-dot {
    background: #8490b2;
  }
  
  .msm-chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
  }
  
  .msm-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }
  
  /* ─── بدنه چت ─── */
  .msm-chat-body {
    flex: 1 1 0;
    overflow: hidden;
    background: #F0F4F8;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
  }
  
  /* ─── حالت ۱: فرم شروع ─── */
  .msm-chat-start {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    min-height: 0;
  }
  
  .msm-chat-welcome {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  
  .msm-chat-welcome.online {
    background: linear-gradient(135deg, rgba(80, 227, 164, 0.1), rgba(88, 214, 232, 0.05));
    border: 1px solid rgba(80, 227, 164, 0.3);
  }
  
  .msm-chat-welcome.offline {
    background: linear-gradient(135deg, rgba(132, 144, 178, 0.1), rgba(132, 144, 178, 0.05));
    border: 1px solid rgba(132, 144, 178, 0.3);
  }
  
  .msm-chat-welcome-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .msm-chat-welcome p {
    margin: 0;
    color: #182554;
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 600;
  }
  
  .msm-chat-offline-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .msm-chat-offline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  
  .msm-chat-offline-whatsapp { background: #25D366; }
  .msm-chat-offline-whatsapp:hover { background: #1ea854; transform: translateY(-2px); }
  
  .msm-chat-offline-bale { background: #4caf50; }
  .msm-chat-offline-bale:hover { background: #3d8b40; transform: translateY(-2px); }
  
  /* ─── فرم شروع ─── */
  .msm-chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .msm-chat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .msm-chat-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5a7a;
  }
  
  .msm-chat-field input,
  .msm-chat-field textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.85rem;
    color: #182554;
    background: #ffffff;
    border: 1px solid #b8c4d9;
    border-radius: 10px;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
  }
  
  .msm-chat-field textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.6;
  }
  
  .msm-chat-field input:focus,
  .msm-chat-field textarea:focus {
    border-color: #536dfe;
    box-shadow: 0 0 0 3px rgba(83, 109, 254, 0.12);
  }
  
  .msm-chat-submit {
    padding: 12px 18px;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(83, 109, 254, 0.35);
    margin-top: 4px;
  }
  
  .msm-chat-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(83, 109, 254, 0.5);
  }
  
  .msm-chat-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .msm-chat-error {
    display: none;
    padding: 10px 14px;
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    color: #b82626;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
  }
  
  .msm-chat-error.is-visible {
    display: block;
  }
  
  /* ═══════════════════════════════════════════════════════════
     حالت ۲: نمایش گفتگو — Flex ستونی
     ═══════════════════════════════════════════════════════════ */
  
     .msm-chat-conversation {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    
    .msm-chat-code-bar {
     grid-area: code;
    }
    
    .msm-chat-messages {
      position: absolute;
      top: 45px;
      bottom: 70px;
      left: 0;
      right: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px 14px 80px 14px;   /* ✅ از 20px به 80px */
      display: flex;
      flex-direction: column;
      gap: 6px;
      scroll-behavior: smooth;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }
    
    /*.msm-chat-reply {
      grid-area: reply;
      padding: 8px 12px 12px;
      background: #F0F4F8;
      border-top: 1px solid #e0e6ef;
    }*/
  
  /* کد پیگیری */
  .msm-chat-code-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    background: #ffffff;
    border-bottom: 1px solid #e0e6ef;
    font-size: 0.75rem;
    color: #4a5a7a;
    z-index: 2;
  }
  
  .msm-chat-code-bar strong {
    color: #536dfe;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 900;
  }
  
  .msm-chat-code-copy {
    background: #F0F4F8;
    border: 1px solid #b8c4d9;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.25s ease;
  }
  
  .msm-chat-code-copy:hover {
    background: #536dfe;
    border-color: #536dfe;
    color: #ffffff;
  }
  
  .msm-chat-code-bar strong {
    color: #536dfe;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 900;
  }
  
  .msm-chat-code-copy {
    background: #F0F4F8;
    border: 1px solid #b8c4d9;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.25s ease;
  }
  
  .msm-chat-code-copy:hover {
    background: #536dfe;
    border-color: #536dfe;
    color: #ffffff;
  }
  
  /* ─── پیام‌ها (اسکرول اصلی) ─── */
  .msm-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* ─── فاصله‌گذار انتهای پیام‌ها ─── */
.msm-chat-spacer {
  flex-shrink: 0;
  height: 80px;              /* ارتفاع فاصله */
  width: 100%;
  pointer-events: none;      /* غیرقابل کلیک */
}

/* در موبایل فاصله کمتر */
@media (max-width: 560px) {
  .msm-chat-spacer {
    height: 90px;
  }
}
  
  .msm-chat-message {
    display: flex;
    animation: msmChatMsgIn 0.25s ease;
    max-width: 100%;
  }
  
  @keyframes msmChatMsgIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .msm-chat-message.user { justify-content: flex-end; }
  .msm-chat-message.admin { justify-content: flex-start; }
  
  .msm-chat-bubble {
    max-width: 75%;
    padding: 6px 10px 4px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
  
  .msm-chat-message.user .msm-chat-bubble {
    background: #536dfe;
    color: #ffffff;
    border-bottom-right-radius: 4px;
  }
  
  .msm-chat-message.admin .msm-chat-bubble {
    background: #ffffff;
    color: #182554;
    border-bottom-left-radius: 4px;
  }
  
  .msm-chat-message-time {
    display: block;
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 2px;
    line-height: 1;
  }
  
  .msm-chat-message.user .msm-chat-message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
  }
  
  .msm-chat-message.admin .msm-chat-message-time {
    color: #4a5a7a;
    text-align: right;
  }
  
  /* ─── فرم پاسخ (همیشه پایین، ثابت) ─── */
  .msm-chat-reply {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    padding: 8px 12px 12px;
    background: #F0F4F8;
    border-top: 1px solid #e0e6ef;
    z-index: 2;
  }
  
  .msm-chat-reply-form {
    display: flex;
    gap: 2px;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 4px 4px 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    top:100px;
  }
  
  .msm-chat-reply-form textarea {
    flex: 1;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.82rem;
    color: #182554;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    height: 40px;
    line-height: 1.4;
    font-family: inherit;
  }
  
  .msm-chat-reply-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }
  
  .msm-chat-reply-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(83, 109, 254, 0.4);
  }
  
  .msm-chat-reply-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #ffffff;
    border-radius: 20px;
    padding: 4px 4px 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .msm-chat-reply-form textarea {
    flex: 1;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.82rem;
    color: #182554;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 80px;
    line-height: 1.4;
    font-family: inherit;
  }
  
  .msm-chat-reply-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }
  
  .msm-chat-reply-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(83, 109, 254, 0.4);
  }
  
  .msm-chat-reply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  /* ─── پیام موفقیت ─── */
  .msm-chat-success {
    flex: 1 1 0;
    text-align: center;
    padding: 30px 20px;
    overflow-y: auto;
    min-height: 0;
  }
  
  .msm-chat-success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: msmChatSuccessPop 0.5s ease;
  }
  
  @keyframes msmChatSuccessPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
  .msm-chat-success h3 {
    color: #50e3a4;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 900;
  }
  
  .msm-chat-success p {
    color: #4a5a7a;
    margin: 0 0 16px;
    font-size: 0.8rem;
    line-height: 1.7;
  }
  
  .msm-chat-success-code {
    background: #F0F4F8;
    border: 1px dashed #b8c4d9;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.75rem;
    color: #4a5a7a;
  }
  
  .msm-chat-success-code strong {
    color: #536dfe;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 900;
  }
  
  .msm-chat-success-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #536dfe, #3e55dc);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  
  .msm-chat-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(83, 109, 254, 0.5);
  }
  
  /* ─── اسکرول‌بار نازک ─── */
  .msm-chat-messages::-webkit-scrollbar,
  .msm-chat-start::-webkit-scrollbar,
  .msm-chat-success::-webkit-scrollbar {
    width: 6px;
  }
  
  .msm-chat-messages::-webkit-scrollbar-track,
  .msm-chat-start::-webkit-scrollbar-track,
  .msm-chat-success::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .msm-chat-messages::-webkit-scrollbar-thumb,
  .msm-chat-start::-webkit-scrollbar-thumb,
  .msm-chat-success::-webkit-scrollbar-thumb {
    background: rgba(132, 144, 178, 0.3);
    border-radius: 3px;
  }
  
  .msm-chat-messages::-webkit-scrollbar-thumb:hover,
  .msm-chat-start::-webkit-scrollbar-thumb:hover,
  .msm-chat-success::-webkit-scrollbar-thumb:hover {
    background: rgba(132, 144, 178, 0.5);
  }
  
  /* ─── ریسپانسیو موبایل ─── */
  @media (max-width: 560px) {
    .msm-chat-toggle {
      bottom: 20px;
      left: 20px;
      width: 54px;
      height: 54px;
    }
  
    .msm-chat-toggle-icon {
      font-size: 1.4rem;
    }
  
    .msm-chat-window {
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      max-width: 100%;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      transform: translateY(100%);
    }
  
    .msm-chat-window.is-open {
      transform: translateY(0);
    }
  
    .msm-chat-header {
      border-radius: 0;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .msm-chat-toggle,
    .msm-chat-window,
    .msm-chat-message,
    .msm-chat-toggle-status {
      animation: none !important;
      transition: none !important;
    }
  }
  /* ============================================================
   📱 بنر نصب PWA
   ============================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: 100px;
  right: 24px;
  max-width: 340px;
  background: linear-gradient(135deg, #172653, #102c46);
  border: 1px solid rgba(83, 109, 254, 0.4);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 12px;
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  
  /* مخفی به صورت پیش‌فرض */
  transform: translateX(400px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pwa-install-banner.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: pwaBounce 2s ease-in-out infinite;
}

@keyframes pwaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.pwa-banner-text span {
  color: #aab4d1;
  font-size: 0.75rem;
  line-height: 1.5;
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
}

.pwa-install-btn {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, #536dfe, #3e55dc);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(83, 109, 254, 0.4);
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(83, 109, 254, 0.6);
}

.pwa-dismiss-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aab4d1;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.pwa-dismiss-btn:hover {
  background: rgba(255, 90, 90, 0.15);
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff9eae;
}

/* ─── موبایل ─── */
@media (max-width: 560px) {
  .pwa-install-banner {
    bottom: 80px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-banner {
    transition: none !important;
  }
  .pwa-banner-icon {
    animation: none !important;
  }
}
  /* ============================================================
     ✅ پایان فایل site.css - نسخه 3.5
     ============================================================ */