/* ==========================================================================
   طراحی مدرن آپلودر ابری پارس‌پک (ParsPack Cloud Storage Uploader)
   فونت وزیرمتن، تم شیشه‌ای (Glassmorphism)، انیمیشن‌های نرم و استاندارد RTL
   ========================================================================== */

:root {
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* رنگ‌های زمینه تم تاریک (پیش‌فرض) */
  --bg-primary: #0a0e17;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-hover: rgba(28, 38, 60, 0.85);
  --bg-card: rgba(23, 31, 50, 0.65);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(139, 92, 246, 0.4);

  /* رنگ‌های متن */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* پالت رنگ‌های شیک و پر جنب و جوش */
  --accent-primary: #8b5cf6;       /* بنفش نئونی */
  --accent-primary-hover: #7c3aed;
  --accent-secondary: #06b6d4;     /* فیروزه‌ای */
  --accent-success: #10b981;       /* سبز زمردی */
  --accent-warning: #f59e0b;       /* کهربایی */
  --accent-danger: #ef4444;        /* قرمز رزبری */

  /* گرادیانت‌ها */
  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-btn-hover: linear-gradient(135deg, #9d74f8 0%, #7579f3 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

  /* سایه‌ها و بلور */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --glass-blur: blur(20px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* متغیرهای کامپوننت نوار پیشرفت (مطابق استاندارد modern-web-guidance) */
  --progress-bar-radius: 9999px;
  --progress-bar-track: rgba(255, 255, 255, 0.08);
  --progress-bar-fill: var(--gradient-brand);
  --progress-bar-indeterminate-size: 30%;
  --progress-bar-indeterminate-animation-duration: 1.5s;
}

/* حالت تم روشن */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-hover: rgba(248, 250, 252, 0.95);
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);

  --progress-bar-track: rgba(0, 0, 0, 0.08);
}

/* ریست و پایه‌ها */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* هاله‌های نورانی متحرک پس‌زمینه */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.bg-glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: floatGlow 14s infinite ease-in-out alternate;
}

.bg-glow-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  bottom: 0px;
  left: -150px;
  animation: floatGlow 18s infinite ease-in-out alternate-reverse;
}

.bg-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: floatGlow 22s infinite ease-in-out alternate;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ساختار بدنه و کانتینر اصلی */
.app-container {
  width: 100%;
  max-width: 760px;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* پانل شیشه‌ای (Glassmorphism) */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* هدر اپلیکیشن */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

/* نشانگر وضعیت اتصال به کلود */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-loading {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.2);
}
.status-loading .status-dot {
  background: var(--text-muted);
  animation: pulseDot 1.5s infinite;
}

.status-connected {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}
.status-connected .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-local {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}
.status-local .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* دکمه‌های آیکونی */
.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* کارت اصلی برنامه */
.main-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* ۱. ناحیه درگ و دراپ (Drop Zone) */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.drop-zone:hover {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.drop-zone:focus-visible {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

.drop-zone.drag-over {
  border-color: var(--accent-secondary);
  border-style: solid;
  background: rgba(6, 182, 212, 0.08);
  transform: scale(1.015);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* انیمیشن و تصویر ابر */
.upload-illustration {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cloud-aura {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation: pulseAura 3s infinite ease-in-out;
}

@keyframes pulseAura {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

.cloud-svg {
  color: var(--accent-primary);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}

.drop-zone:hover .cloud-svg {
  transform: translateY(-6px) scale(1.08);
  color: var(--accent-secondary);
}

.drop-zone.drag-over .arrow-stem,
.drop-zone.drag-over .arrow-head {
  animation: bounceArrow 0.8s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.drop-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drop-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.browse-link {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.drop-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ۲. بخش نوار پیشرفت (Progress Section) */
.progress-section {
  padding: 10px 0;
  animation: fadeIn 0.3s ease-out;
}

.progress-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.file-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.file-meta-col {
  flex: 1;
  min-width: 0;
}

.file-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}

.progress-percent {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-secondary);
}

.file-stats-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dot-separator {
  opacity: 0.5;
}

/* استایل مدرن المان progress (مطابق modern-web-guidance) */
.progress-bar-wrapper {
  width: 100%;
}

progress {
  /* ریست استایل پیش‌فرض مرورگرها */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0 solid;
  overflow: clip;

  width: 100%;
  height: 10px;
  border-radius: var(--progress-bar-radius);
  background: var(--progress-bar-track);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
  container-type: inline-size;
}

/* برای وب‌کیت (Chrome / Edge / Safari) */
progress::-webkit-progress-bar {
  background: transparent;
}

progress::-webkit-progress-value {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s ease;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* برای فایرفاکس (مستقل تعریف شده طبق راهنمای وب) */
progress::-moz-progress-bar {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.3s ease;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* وضعیت انیمیشن نامعین (Indeterminate) */
progress:indeterminate {
  --progress-bar-animation: progress-bar-indeterminate var(--progress-bar-indeterminate-animation-duration) infinite linear;
}

progress:indeterminate:dir(rtl) {
  --progress-bar-indeterminate-animation: progress-bar-indeterminate var(--progress-bar-indeterminate-animation-duration) infinite linear reverse;
}

@keyframes progress-bar-indeterminate {
  from, to {
    inline-size: var(--progress-bar-indeterminate-size);
    margin-right: auto;
  }
  from { translate: -100%; }
  to { translate: 100cqi; }
}

.progress-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ۳. بخش نتیجه آپلود (Result Section) */
.result-section {
  animation: slideUp 0.35s ease-out;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.result-success-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.success-icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-success-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.result-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.uploaded-file-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.summary-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.summary-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.summary-name {
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
  margin-bottom: 4px;
}

.summary-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.storage-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* اینپوت کپی لینک */
.link-field-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.copy-input-group {
  display: flex;
  gap: 8px;
}

.url-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.url-input:focus {
  border-color: var(--accent-primary);
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-gradient:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.result-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-action-buttons .btn {
  flex: 1;
}

/* جعبه QR Code */
.qr-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease-out;
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  box-shadow: var(--shadow-md);
}

.qr-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.reset-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* تاریخچه آپلودها */
.history-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.history-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.text-btn:hover {
  color: var(--accent-danger);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 12px;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.history-item-icon {
  color: var(--accent-primary);
}

.history-item-meta {
  min-width: 0;
}

.history-item-name {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}

.history-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* فوتر */
.app-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px;
}

/* مودال تنظیمات و راهنما */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.setup-guide-box h4,
.status-summary-box h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.guide-steps {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-steps code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-secondary);
  direction: ltr;
  display: inline-block;
  font-size: 0.82rem;
}

.status-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.stat-item {
  font-size: 0.82rem;
}

.stat-label {
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* اعلان پیام Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--accent-success);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 185, 129, 0.3);
  backdrop-filter: var(--glass-blur);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  z-index: 200;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* کلاس‌های کمکی و انیمیشن‌ها */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 640px) {
  .app-container {
    padding: 16px 12px 30px;
  }

  .main-card {
    padding: 20px 16px;
  }

  .app-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }

  .drop-zone {
    padding: 32px 14px;
  }

  .drop-title {
    font-size: 1.05rem;
  }

  .copy-input-group {
    flex-direction: column;
  }

  .result-action-buttons {
    flex-direction: column;
  }

  .status-details-grid {
    grid-template-columns: 1fr;
  }
}
