﻿    }

    .app {
      max-width: 520px;
      margin: 0 auto;
    }

    /* ---------- Ù‡Ø¯Ø± ---------- */
    .header {
      text-align: center;
      margin-bottom: 22px;
    }

    .header h1 {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 1.35rem;
      font-weight: 800;
      color: #1b4d1b;
      background: #ffffffd9;
      padding: 12px 20px;
      border-radius: 50px;
      box-shadow: 0 6px 16px rgba(0, 40, 0, 0.12);
      border: 1px solid #c8e6c9;
    }

    .header h1 i {
      color: #2e7d32;
      font-size: 1.3rem;
    }

    .header p {
      margin-top: 10px;
      font-size: 0.82rem;
      color: #3b5e3b;
      font-weight: 400;
    }

    /* ---------- Ú©Ø§Ø±Øª Ø¢Ù¾Ù„ÙˆØ¯ ---------- */
    .card {
      background: #ffffff;
      border-radius: 26px;
      padding: 18px;
      box-shadow: 0 10px 24px rgba(0, 40, 0, 0.08);
      border: 1px solid #dcefdc;
      margin-bottom: 18px;
    }

    .upload-zone {
      border: 2.5px dashed #8bc34a;
      border-radius: 20px;
      padding: 30px 16px;
      text-align: center;
      background: #f9fff9;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .upload-zone:active {
      background: #eef7ea;
      border-color: #2e7d32;
      transform: scale(0.99);
    }

    .upload-zone input {
      display: none;
    }

    .upload-zone .icon-circle {
      width: 70px;
      height: 70px;
      background: #e8f5e9;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
    }

    .upload-zone .icon-circle i {
      font-size: 2rem;
      color: #2e7d32;
    }

    .upload-zone p {
      font-weight: 700;
      color: #1e3a1e;
      font-size: 0.95rem;
      margin-bottom: 6px;
    }

    .upload-zone span {
      font-size: 0.75rem;
      color: #6b8f6b;
    }

    /* ---------- Ù¾ÛŒØ´â€ŒÙ†Ù…Ø§ÛŒØ´ ---------- */
    .preview-wrap {
      position: relative;
      display: none;
      margin-bottom: 14px;
    }

    .preview-wrap.active {
      display: block;
      animation: pop 0.4s ease;
    }

    @keyframes pop {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    .preview-wrap img {
      width: 100%;
      height: 210px;
      object-fit: cover;
      border-radius: 20px;
      border: 3px solid #e8f5e9;
      box-shadow: 0 6px 14px rgba(0, 30, 0, 0.1);
    }

    /* ---------- Ø§Ø³Ú©Ù† ØªØµÙˆÛŒØ±ÛŒ Ù‡Ù†Ú¯Ø§Ù… ØªØ­Ù„ÛŒÙ„ ---------- */
    .scan-overlay {
      position: absolute;
      inset: 3px;
      border-radius: 18px;
      overflow: hidden;
      pointer-events: none;
      display: none;
      background: linear-gradient(to bottom, rgba(46,125,50,.04), rgba(46,125,50,.02));
    }
    .scan-overlay.active { display: block; }
    .scan-line {
      position: absolute;
      left: 0;
      right: 0;
      height: 3px;
      top: 0;
      background: linear-gradient(90deg, transparent, #8bc34a, #ffffff, #8bc34a, transparent);
      box-shadow: 0 0 14px 3px rgba(139,195,74,.75);
      animation: scanMove 1.65s ease-in-out infinite;
    }
    .scan-grid {
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(139,195,74,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(139,195,74,.10) 1px, transparent 1px);
      background-size: 28px 28px;
      opacity: .45;
      animation: scanPulse 1.2s ease-in-out infinite;
    }
    .scan-label {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(20,65,20,.82);
      color: #fff;
      border-radius: 18px;
      padding: 7px 11px;
      font-size: .7rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
      backdrop-filter: blur(5px);
    }
    @keyframes scanMove {
      0% { transform: translateY(0); opacity: .35; }
      15% { opacity: 1; }
      50% { transform: translateY(202px); opacity: 1; }
      85% { opacity: 1; }
      100% { transform: translateY(0); opacity: .35; }
    }
    @keyframes scanPulse {
      0%,100% { opacity: .25; }
      50% { opacity: .6; }
    }

    .preview-wrap .remove-btn {
      position: absolute;
      top: 10px;
      left: 10px;
      width: 36px;
      height: 36px;
      background: rgba(255, 255, 255, 0.95);
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #c62828;
      font-size: 0.9rem;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .preview-wrap .file-name {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(27, 77, 27, 0.85);
      color: white;
      font-size: 0.7rem;
      padding: 5px 12px;
      border-radius: 20px;
      max-width: 70%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* ---------- Ø¯Ú©Ù…Ù‡â€ŒÙ‡Ø§ ---------- */
    .btn {
      width: 100%;
      border: none;
      border-radius: 18px;
      padding: 16px;
      font-weight: 800;
      font-size: 1rem;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .btn:active {
      transform: scale(0.98);
    }

    .btn-primary {
      background: linear-gradient(135deg, #43a047, #2e7d32);
      box-shadow: 0 8px 18px -4px rgba(46, 125, 50, 0.6);
      margin-top: 6px;
    }

    .btn-primary:disabled {
      background: #b0c4b0;
      box-shadow: none;
      cursor: not-allowed;
    }

    .btn-ghost {
      background: #e8f5e9;
      color: #2e7d32;
      box-shadow: none;
      border: 1px solid #c8e6c9;
      margin-top: 10px;
      font-size: 0.9rem;
      padding: 13px;
    }

    /* ---------- Ø­Ø§Ù„Øª Ø®Ø§Ù„ÛŒ ---------- */
    .empty-hint {
      text-align: center;
      padding: 24px 10px;
      color: #6b8f6b;
      font-size: 0.85rem;
      line-height: 1.8;
    }

    .empty-hint i {
      font-size: 2.5rem;
      color: #b5d6b5;
      display: block;
      margin-bottom: 10px;
    }

    /* ---------- Ù†ØªØ§ÛŒØ¬ ---------- */
    .results {
      display: none;
      animation: slideUp 0.5s ease;
    }

    .results.active {
      display: block;
    }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1rem;
      font-weight: 800;
      color: #1b4d1b;
      margin: 22px 4px 12px;
    }

    .section-title .num {
      width: 30px;
      height: 30px;
      background: #2e7d32;
      color: white;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 800;
      flex-shrink: 0;
    }

    /* Ú©Ø§Ø±Øªâ€ŒÙ‡Ø§ÛŒ Ø®Ù„Ø§ØµÙ‡ */
    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .summary-item {
      background: #ffffff;
      border-radius: 18px;
      padding: 14px 12px;
      border: 1px solid #e0f0e0;
      box-shadow: 0 4px 10px rgba(0, 40, 0, 0.05);
      text-align: center;
    }

    .summary-item i {
      font-size: 1.3rem;
      color: #2e7d32;
      margin-bottom: 8px;
      display: block;
    }

    .summary-item .label {
      font-size: 0.72rem;
      color: #5f7a5f;
      margin-bottom: 4px;
      font-weight: 500;
    }

    .summary-item .value {
      font-size: 1.15rem;
      font-weight: 800;
      color: #1b3b1b;
    }

    /* Ù„ÛŒØ³Øª Ø¬Ø²Ø¦ÛŒØ§Øª */
    .info-list {
      background: #ffffff;
      border-radius: 20px;
      padding: 6px 16px;
      border: 1px solid #e0f0e0;
      box-shadow: 0 4px 10px rgba(0, 40, 0, 0.05);
    }

    .info-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 0;
      border-bottom: 1px solid #eef7ee;
      gap: 10px;
    }

    .info-row:last-child {
      border-bottom: none;
    }

    .info-row .left {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
    }

    .info-row .left i {
      width: 32px;
      height: 32px;
      background: #e8f5e9;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #2e7d32;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .info-row .left .txt {
      font-size: 0.82rem;
      font-weight: 500;
      color: #2c4a2c;
      line-height: 1.4;
    }

    .info-row .left .txt small {
      display: block;
      font-size: 0.68rem;
      color: #7a957a;
      font-weight: 400;
      margin-top: 2px;
    }

    .info-row .right {
      font-size: 0.82rem;
      font-weight: 800;
      color: #1b4d1b;
      background: #f1f9f1;
      padding: 6px 12px;
      border-radius: 12px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .info-row .right.warn {
      background: #fff3e0;
      color: #e65100;
    }

    .info-row .right.good {
      background: #e8f5e9;
      color: #2e7d32;
    }

    .info-row .right.bad {
      background: #ffebee;
      color: #c62828;
    }

    /* Ø¨Ø±Ú†Ø³Ø¨â€ŒÙ‡Ø§ÛŒ Ø§Ø¨Ø²Ø§Ø± */
    .tools-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      background: #ffffff;
      border-radius: 20px;
      padding: 16px;
      border: 1px solid #e0f0e0;
      box-shadow: 0 4px 10px rgba(0, 40, 0, 0.05);
    }

    .tool-tag {
      background: #f1f9f1;
      border: 1px solid #c8e6c9;
      color: #1b4d1b;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 8px 13px;
      border-radius: 50px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .tool-tag i {
      color: #2e7d32;
      font-size: 0.75rem;
    }

    /* Ú©Ø§Ø±Øª Ù…Ø§Ù„ÛŒ */
    .money-card {
      background: linear-gradient(135deg, #2e7d32, #1b5e20);
      border-radius: 22px;
      padding: 20px;
      color: white;
      box-shadow: 0 12px 24px -8px rgba(27, 94, 32, 0.6);
      margin-bottom: 12px;
    }

    .money-card .row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .money-card .row:last-child {
      border-bottom: none;
    }

    .money-card .row .lbl {
      font-size: 0.82rem;
      opacity: 0.9;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .money-card .row .val {
      font-size: 1rem;
      font-weight: 800;
    }

    .money-card .row .val.big {
      font-size: 1.25rem;
      color: #c8e6c9;
    }

    /* ØªÙˆØµÛŒÙ‡ Ù†Ù‡Ø§ÛŒÛŒ */
    .advice-final {
      background: #fff8e1;
      border-right: 5px solid #f9a825;
      border-radius: 18px;
      padding: 16px;
      display: flex;
      gap: 12px;
      margin-top: 12px;
    }

    .advice-final i {
      color: #f57c00;
      font-size: 1.4rem;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .advice-final p {
      font-size: 0.83rem;
      line-height: 1.9;
      color: #4e342e;
      font-weight: 500;
    }

    /* Ø§Ø³Ú©Ø±ÙˆÙ„â€ŒØ¨Ø§Ø± */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: #e0f0e0; }
    ::-webkit-scrollbar-thumb { background: #81a981; border-radius: 10px; }

    .upload-options { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
    .upload-option { min-height:118px; border:2px solid #c8e6c9; border-radius:22px; background:#f9fff9; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:9px; cursor:pointer; transition:.2s ease; user-select:none; }
    .upload-option:hover, .upload-option:active { border-color:#43a047; background:#eef8ee; transform:translateY(-1px); }
    .option-icon { width:48px; height:48px; border-radius:15px; background:#e8f5e9; display:flex; align-items:center; justify-content:center; color:#2e7d32; font-size:1.25rem; }
    .option-text strong { display:block; color:#1b4d1b; font-size:.88rem; }
    .option-text span { display:block; color:#6b8f6b; font-size:.68rem; margin-top:4px; }
    .analysis-loading { display:none; align-items:center; justify-content:center; gap:8px; color:#2e7d32; font-size:.82rem; font-weight:700; padding:12px 0 2px; }
    .analysis-loading.active { display:flex; }
    .uploadCard.dragging { border-color:#43a047; background:#f1f9f1; }
    @media (max-width:360px) { .upload-options{grid-template-columns:1fr;} .upload-option{min-height:92px; flex-direction:row; justify-content:flex-start; padding:14px; text-align:right;} }
    @media (min-width: 480px) {
      .summary-grid { grid-template-columns: repeat(4, 1fr); }
    }

    /* ---------- Ø¯Ú©Ù…Ù‡â€ŒÙ‡Ø§ÛŒ Ø§Ù†ØªÙ‡Ø§ÛŒÛŒ ---------- */
    .action-buttons {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 16px;
      margin-bottom: 8px;
    }
    .action-btn {
      border: none;
      border-radius: 16px;
      padding: 13px 8px;
      font-family: inherit;
      font-size: 0.82rem;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .action-btn:active { transform: scale(0.97); }
    .action-send { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
    .action-print { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
    .action-save { background: #fff8e1; color: #ef6c00; border: 1px solid #ffe0b2; }

    /* ---------- Ù¾Ø§Ù¾â€ŒØ¢Ù¾ Ø§Ø±Ø³Ø§Ù„ Ú¯Ø²Ø§Ø±Ø´ ---------- */
    .share-modal { display:none; position:fixed; inset:0; z-index:9999; background:rgba(10,35,15,.48); backdrop-filter:blur(5px); align-items:flex-end; justify-content:center; padding:14px; }
    .share-modal.active { display:flex; animation:modalIn .22s ease; }
    @keyframes modalIn { from{opacity:0} to{opacity:1} }
    .share-sheet { width:min(520px,100%); background:#fff; border-radius:28px 28px 22px 22px; padding:20px; box-shadow:0 20px 60px rgba(0,0,0,.22); animation:sheetUp .28s ease; }
    @keyframes sheetUp { from{transform:translateY(35px);opacity:.7} to{transform:translateY(0);opacity:1} }
    .share-head { display:flex; align-items:center; gap:12px; margin-bottom:15px; }
    .share-icon { width:46px;height:46px;border-radius:15px;background:#e8f5e9;color:#2e7d32;display:flex;align-items:center;justify-content:center;font-size:1.25rem; }
    .share-head h3 { margin:0;color:#1b4d1b;font-size:1rem; }
    .share-head p { margin:3px 0 0;color:#718571;font-size:.7rem; }
    .share-close { margin-right:auto;border:0;background:#f4f7f4;width:34px;height:34px;border-radius:50%;color:#648064;cursor:pointer;font-size:1rem; }
    .report-preview { background:#f7fbf7;border:1px solid #e0eee0;border-radius:18px;padding:14px;margin-bottom:14px;max-height:190px;overflow:auto; }
    .report-preview .rp-title { font-weight:800;color:#1b4d1b;font-size:.82rem;margin-bottom:9px; }
    .report-line { display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e8f1e8;font-size:.73rem; }
    .report-line:last-child{border-bottom:0}.report-line span:first-child{color:#718571}.report-line span:last-child{font-weight:800;color:#2c4a2c;text-align:left}
    .share-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
    .share-action { border:0;border-radius:15px;padding:13px 9px;font-family:inherit;font-weight:800;font-size:.78rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px; }
    .share-action.primary{grid-column:1/-1;background:linear-gradient(135deg,#43a047,#2e7d32);color:#fff;box-shadow:0 8px 18px rgba(46,125,50,.25)}
    .share-action.secondary{background:#f1f7f1;color:#2e7d32;border:1px solid #d9ead9}
    .share-note{text-align:center;color:#899889;font-size:.65rem;margin-top:11px;line-height:1.6}

    @media print {
      body { background: white !important; padding: 0 !important; }
      .upload-card, #emptyHint, .action-buttons { display: none !important; }
      .results { display: block !important; }
      .card, .summary-item, .info-list, .tools-wrap, .money-card { box-shadow: none !important; }
    }
  </style>

/* ============================================================
   استایل‌های اضافه شده برای نسخهٔ کامل اپلیکیشن
   ============================================================ */

/* ---------- صفحهٔ ورود ---------- */
.login-card {
  background: #fff;
  border-radius: 28px;
  padding: 34px 24px 28px;
  box-shadow: 0 12px 40px rgba(27, 77, 27, .10);
  text-align: center;
}
.login-logo {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.1rem;
  box-shadow: 0 12px 26px rgba(46, 125, 50, .28);
}
.login-card h2 { font-size: 1.28rem; color: #1b4d1b; margin-bottom: 8px; }
.login-card .sub { color: #6b8f6b; font-size: .82rem; line-height: 1.7; margin-bottom: 22px; }
.login-features { display: grid; gap: 10px; margin-bottom: 24px; text-align: right; }
.login-feature {
  display: flex; align-items: center; gap: 12px;
  background: #f6fbf6; border: 1px solid #e3eee3; border-radius: 16px; padding: 12px 14px;
}
.login-feature i { color: #2e7d32; font-size: 1.05rem; width: 22px; text-align: center; }
.login-feature span { font-size: .8rem; color: #3c5a3c; font-weight: 600; }

/* ---------- نوار بالای اپلیکیشن ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 20px; padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(27, 77, 27, .07);
  margin-bottom: 14px;
}
.topbar .tb-title { font-weight: 800; color: #1b4d1b; font-size: .95rem; }
.topbar .tb-spacer { flex: 1; }
.tb-btn {
  border: 0; background: #f1f7f1; color: #2e7d32;
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.tb-btn:active { transform: scale(.94); }
.tb-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; overflow: hidden;
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- تب‌ها ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tab {
  border: 0; background: #fff; border-radius: 16px; padding: 12px;
  font-family: inherit; font-weight: 700; font-size: .84rem; color: #6b8f6b;
  cursor: pointer; box-shadow: 0 4px 14px rgba(27, 77, 27, .05);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tab.active {
  background: linear-gradient(135deg, #43a047, #2e7d32); color: #fff;
  box-shadow: 0 8px 18px rgba(46, 125, 50, .25);
}

/* ---------- تاریخچه ---------- */
.history-list { display: grid; gap: 10px; }
.history-item {
  background: #fff; border-radius: 18px; padding: 12px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 6px 18px rgba(27, 77, 27, .06);
  cursor: pointer; transition: .18s ease; border: 0; width: 100%;
  font-family: inherit; text-align: right;
}
.history-item:active { transform: scale(.98); }
.history-thumb {
  width: 62px; height: 62px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: #e8f5e9; display: flex; align-items: center; justify-content: center; color: #81a881;
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-meta { flex: 1; min-width: 0; }
.history-meta strong { display: block; color: #1b4d1b; font-size: .86rem; margin-bottom: 4px; }
.history-meta small { display: block; color: #7d9a7d; font-size: .7rem; }
.history-status {
  font-size: .62rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.history-status.completed { background: #e8f5e9; color: #2e7d32; }
.history-status.processing { background: #fff8e1; color: #ef6c00; }
.history-status.failed { background: #ffebee; color: #c62828; }
.history-empty {
  text-align: center; padding: 50px 20px; color: #7d9a7d;
}
.history-empty i { font-size: 2.6rem; margin-bottom: 12px; color: #a5c9a5; }
.history-empty p { font-size: .84rem; line-height: 1.7; }

/* ---------- جزئیات تاریخچه ---------- */
.detail-back {
  border: 0; background: #fff; border-radius: 14px; padding: 10px 14px;
  font-family: inherit; font-weight: 700; font-size: .8rem; color: #2e7d32;
  cursor: pointer; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(27,77,27,.06);
  display: inline-flex; align-items: center; gap: 7px;
}
.detail-image {
  width: 100%; border-radius: 20px; overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(27, 77, 27, .12); background: #e8f5e9;
}
.detail-image img { width: 100%; display: block; }

/* ---------- بارگذاری ---------- */
.loading-box {
  background: #fff; border-radius: 24px; padding: 40px 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(27, 77, 27, .10);
}
.loading-spinner {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  border: 5px solid #d7ead7; border-top-color: #2e7d32;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box h3 { color: #1b4d1b; font-size: 1rem; margin-bottom: 8px; }
.loading-box p { color: #6b8f6b; font-size: .8rem; line-height: 1.7; }
.loading-steps { display: grid; gap: 8px; margin-top: 20px; text-align: right; }
.loading-step {
  display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #9db69d;
  transition: .25s ease;
}
.loading-step i { width: 24px; height: 24px; border-radius: 50%; background: #eef4ee;
  display: flex; align-items: center; justify-content: center; font-size: .65rem; }
.loading-step.done { color: #2e7d32; font-weight: 700; }
.loading-step.done i { background: #2e7d32; color: #fff; }
.loading-step.active { color: #1b4d1b; font-weight: 700; }
.loading-step.active i { background: #43a047; color: #fff; animation: pulse 1.2s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- خطا ---------- */
.error-box {
  background: #fff; border-radius: 24px; padding: 40px 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(27, 77, 27, .10);
}
.error-box .err-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px;
  background: #ffebee; color: #c62828; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
}
.error-box h3 { color: #b71c1c; font-size: 1.05rem; margin-bottom: 8px; }
.error-box p { color: #8c8c8c; font-size: .82rem; line-height: 1.7; margin-bottom: 20px; }

/* ---------- اشتراک‌گذاری ---------- */
.share-actions-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 14px; }

/* ---------- چاپ ---------- */
@media print {
  .topbar, .tabs, .detail-back, .action-buttons, .upload-options { display: none !important; }
  body { background: #fff; padding: 0; }
  .card, .summary-item, .info-list, .tools-wrap, .money-card { box-shadow: none !important; }
}
