/* ==========================================================================
   دوربُری هوشمند - استایل‌های اختصاصی تم لایت (Light Theme)
   ========================================================================== */

:root {
  --font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* پالت رنگی لایت مدرن */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #194bfb;
  
  /* رنگ‌های اصلی اکشن (آبی مدرن 194bfb) */
  --primary: #194bfb;
  --primary-hover: #103ecb;
  --primary-light: #eef3ff;
  --primary-glow: rgba(25, 75, 251, 0.18);
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  /* سایه‌های مدرن */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
  --shadow-float: 0 20px 40px -12px rgba(25, 75, 251, 0.14);
  
  /* ترنسپرنسی شطرنجی */
  --check-color1: #ffffff;
  --check-color2: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   هدر سایت
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
}

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

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  outline: none;
}

.brand-link:hover,
.brand-link:focus,
.brand-link:active,
.brand-link:visited {
  text-decoration: none !important;
  color: inherit;
}

.brand-link * {
  text-decoration: none !important;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #194bfb, #3b82f6);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(25, 75, 251, 0.25);
  flex-shrink: 0;
}

.brand-shape-img,
.brand-favicon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 24px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.header-meta {
  display: flex;
  align-items: center;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.meta-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   بخش اصلی و هیرو
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 44px 0 60px;
}

.hero-section {
  text-align: center;
  margin-bottom: 34px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.hero-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #194bfb 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   کارت میز کار (Workspace Card)
   ========================================================================== */
.workspace-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-float);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

/* ==========================================================================
   محدوده درگ و دراپ (Dropzone)
   ========================================================================== */
.dropzone {
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-xl);
  margin: 16px;
  background-color: #fafbfc;
  transition: var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: scale(0.995);
}

.upload-icon-wrapper {
  width: 76px;
  height: 76px;
  background-color: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(25, 75, 251, 0.12);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.dropzone:hover .upload-icon-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(25, 75, 251, 0.2);
}

.dropzone-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.dropzone-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dropzone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dropzone-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.76rem;
  font-family: inherit;
  background-color: #e2e8f0;
  color: var(--text-main);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 #cbd5e1;
}

.divider-dot {
  color: #cbd5e1;
}

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(25, 75, 251, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 75, 251, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   بخش لودینگ و وضعیت پردازش
   ========================================================================== */
.processing-overlay {
  padding: 70px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-box {
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.spinner-ring {
  display: inline-block;
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
}

.spinner-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 54px;
  height: 54px;
  margin: 7px;
  border: 5px solid var(--primary);
  border-radius: 50%;
  animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}

.spinner-ring div:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring div:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes spinner-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.processing-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.steps-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  background-color: var(--bg-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: var(--transition);
}

.step-item.active .step-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==========================================================================
   کارت خطا (Error Card)
   ========================================================================== */
.error-card {
  margin: 24px;
  padding: 20px;
  background-color: var(--danger-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}

.error-icon {
  color: var(--danger);
  flex-shrink: 0;
}

.error-info {
  flex: 1;
}

.error-title {
  font-size: 1rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}

.error-message {
  font-size: 0.88rem;
  color: #b91c1c;
}

/* ==========================================================================
   میز کار نتیجه (Result Workspace)
   ========================================================================== */
.result-workspace {
  padding: 24px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.result-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.result-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background-color: var(--success-light);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   اسلایدر مقایسه قبل و بعد
   ========================================================================== */
.comparison-stage-wrapper {
  margin-bottom: 24px;
}

.comparison-container {
  position: relative;
  width: 100%;
  max-height: 540px;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #f1f5f9;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* پترن شطرنجی پس‌زمینه شفاف */
.after-canvas-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  transition: background-color 0.25s ease;
}

.img-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-layer img {
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* لایه بعد با clip-path داینامیک کنترل می‌شود */
.img-after {
  z-index: 2;
  /* پیش‌فرض نصف صفحه */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.layer-badge {
  position: absolute;
  bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}

.badge-before {
  right: 14px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

.badge-after {
  left: 14px;
  background-color: rgba(25, 75, 251, 0.9);
  color: #ffffff;
}

/* خط دستگیره اسلایدر */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  cursor: ew-resize;
  pointer-events: none;
}

.handle-line {
  flex: 1;
  width: 2px;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.handle-button {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 2px solid var(--primary);
  pointer-events: auto;
  cursor: ew-resize;
}

.handle-button svg {
  margin: 0 -2px;
}

.comparison-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   نوار پالت انتخاب رنگ پس‌زمینه
   ========================================================================== */
.customization-bar {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.customization-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

.color-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.swatch-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: var(--transition);
}

.swatch-transparent {
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%), 
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
  border: 1px solid #cbd5e1;
}

.swatch-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.color-swatch:hover .swatch-inner {
  transform: scale(1.1);
}

.color-swatch.active .swatch-inner {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--primary);
}

.color-swatch.active .swatch-name {
  color: var(--primary);
  font-weight: 700;
}

.custom-picker-label {
  position: relative;
}

.color-input-native {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ==========================================================================
   دکمه‌های فوتر نتیجه
   ========================================================================== */
.result-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.result-footer-actions .btn {
  flex: 1;
  min-width: 220px;
}

/* ==========================================================================
   بخش ویژگی‌ها (Features Section)
   ========================================================================== */
.features-section {
  margin-top: 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-card.highlight-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  box-shadow: 0 4px 16px rgba(25, 75, 251, 0.08);
}

.feature-card.highlight-card .feature-icon-box {
  background-color: #eef3ff;
  color: #194bfb;
}

.feature-tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #194bfb;
  background-color: #eef3ff;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ==========================================================================
   بخش محتوای سئو و مقایسه فنی (SEO Content Section)
   ========================================================================== */
.seo-section {
  margin-top: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}

.seo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-right: 14px;
}

.seo-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--primary);
  border-radius: 4px;
}

.seo-paragraph {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.seo-highlight-box {
  background-color: var(--bg-subtle);
  border-right: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.seo-highlight-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.seo-highlight-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* کلمات کلیدی ابری */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

.keyword-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   بخش سوالات متداول (FAQ Accordion)
   ========================================================================== */
.faq-section {
  margin-top: 36px;
  margin-bottom: 20px;
}

.faq-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 24px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  text-align: right;
  flex: 1;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* قوانین ضد کپی و ضد بازرسی در CSS */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   فوتر
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.status-indicator {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  background-color: var(--success-light);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   ریسپانسیو موبایل
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .dropzone {
    padding: 38px 16px;
    margin: 10px;
  }
  
  .upload-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
  
  .dropzone-title {
    font-size: 1.15rem;
  }
  
  .customization-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .result-footer-actions {
    flex-direction: column;
  }
  
  .result-footer-actions .btn {
    width: 100%;
  }
  
  .comparison-container {
    max-height: 380px;
    min-height: 220px;
  }
}

@media (max-width: 580px) {
  .brand-badge {
    display: none;
  }
  .brand-logo-img {
    height: 20px;
  }
  .header-meta .meta-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   ناوبری ابزارهای سامانه در هدر
   ========================================================================== */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   منوی کشویی ابزارها و قابلیت‌ها در هدر
   ========================================================================== */
.tools-menu-wrapper {
  position: relative;
}

.tools-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tools-menu-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.tools-menu-btn.active {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  color: var(--primary);
}

.tools-btn-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.dropdown-arrow {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.tools-menu-btn.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* کارت پاپ‌اوور منو */
.tools-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.tools-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ریسپانسیو هدر و منوی ابزارها در موبایل و تبلت
   ========================================================================== */
.desktop-only {
  display: inline;
}

@media (max-width: 640px) {
  .desktop-only {
    display: none;
  }

  .site-header {
    padding: 10px 0;
  }

  .container {
    padding: 0 14px;
  }

  .header-container {
    gap: 8px;
  }

  /* تنظیم متناسب برند و لوگو در موبایل */
  .brand-link {
    gap: 8px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }

  .brand-shape-img,
  .brand-favicon-img {
    width: 20px;
    height: 20px;
  }

  .brand-text {
    gap: 6px;
  }

  .brand-logo-img {
    height: 20px;
    max-width: 115px;
  }

  .brand-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 12px;
  }

  /* بهینه‌سازی دکمه منوی ابزارها در موبایل */
  .tools-menu-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .tools-btn-badge {
    font-size: 9px;
    padding: 1px 5px;
  }

  .dropdown-arrow {
    width: 11px;
    height: 11px;
  }

  /* تنظیم هوشمند و بدون اسکرول افقی کارت کشویی در موبایل */
  .tools-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: min(300px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(85vh - 60px);
    overflow-y: auto;
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
    transform: translateY(-6px);
  }

  .tools-dropdown.show {
    transform: translateY(0);
  }

  .dropdown-header {
    padding: 6px 8px 8px;
  }

  .dropdown-item {
    padding: 8px;
    gap: 10px;
  }

  .item-icon-box {
    width: 32px;
    height: 32px;
  }

  .item-icon-box svg {
    width: 16px;
    height: 16px;
  }

  .item-title {
    font-size: 12.5px;
  }

  .item-desc {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* در گوشی‌های بسیار باریک (زیر ۴۰۰ پیکسل) */
@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }

  .brand-badge {
    display: none !important;
  }

  .brand-logo-img {
    height: 19px;
    max-width: 95px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-shape-img {
    width: 18px;
    height: 18px;
  }

  .tools-menu-btn {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .tools-btn-badge {
    display: none;
  }

  .tools-dropdown {
    width: min(280px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 6px;
}

.dropdown-header-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.dropdown-header-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 10px;
}

.dropdown-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-subtle);
}

.dropdown-item.current-tool {
  background: var(--primary-light);
  border: 1px solid rgba(25, 75, 251, 0.15);
}

.item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.item-icon-box.bg-blue {
  background: #dbeafe;
  color: #194bfb;
}

.item-icon-box.bg-purple {
  background: #ede9fe;
  color: #6366f1;
}

.item-text-box {
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-item.current-tool .item-title {
  color: var(--primary);
}

.item-badge-current {
  font-size: 10px;
  font-weight: 600;
  background: rgba(25, 75, 251, 0.12);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.item-badge-new {
  font-size: 10px;
  font-weight: 700;
  background: #ef4444;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   بخش کارت معرفی و شوکیس سرتیفیکیت ساز (Tool Showcase Card)
   ========================================================================== */
.tool-showcase-section {
  margin: 48px 0 36px;
}

.showcase-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 10px 30px -5px rgba(25, 75, 251, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  box-shadow: 0 16px 40px -6px rgba(25, 75, 251, 0.14);
  border-color: #bfdbfe;
}

.showcase-glow-effect {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(25, 75, 251, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.showcase-badge-wrap {
  margin-bottom: 14px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(25, 75, 251, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(25, 75, 251, 0.08);
}

.showcase-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .showcase-body {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.showcase-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-title-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(25, 75, 251, 0.2);
}

.showcase-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.showcase-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.showcase-check {
  width: 20px;
  height: 20px;
  background: var(--success);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.showcase-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(25, 75, 251, 0.3);
  transition: var(--transition);
}

.btn-showcase-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 75, 251, 0.38);
}

.btn-showcase-cta svg {
  transition: transform 0.2s ease;
}

.btn-showcase-cta:hover svg {
  transform: translateX(-4px);
}

.showcase-free-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* شبکه مینی‌پیش‌نمایش قالب‌ها */
.showcase-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.showcase-mini-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(25, 75, 251, 0.15);
  background: #ffffff;
  transition: var(--transition);
  padding-top: 70%;
}

.showcase-mini-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-mini-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  border-color: var(--primary);
}

.showcase-mini-card:hover img {
  transform: scale(1.06);
}

.mini-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* فوتر لینک‌ها */
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-link:hover,
.footer-link.active {
  color: var(--primary);
}

.footer-sep {
  color: var(--border-light);
  font-size: 10px;
}

