/* استایل مدال راهنما */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.guide-modal-overlay.show {
  opacity: 1;
}

.guide-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  direction: rtl;
  font-family: 'IRANSans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.guide-modal-overlay.show .guide-modal {
  transform: translateY(0);
}

.guide-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.guide-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.guide-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: white;
  transition: background 0.2s ease;
}

.guide-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.guide-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
}

.guide-section {
  margin-bottom: 24px;
}

.guide-section:last-child {
  margin-bottom: 0;
}

.guide-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-section ul {
  margin: 0;
  padding-right: 20px;
  list-style: none;
}

.guide-section li {
  margin-bottom: 8px;
  position: relative;
  color: #555;
  font-size: 14px;
}

.guide-section li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  right: -16px;
}

.guide-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.guide-modal-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 120px;
}

.guide-modal-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.guide-modal-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* دکمه راهنما در صفحه اصلی */
.guide-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
  .guide-modal {
    margin: 10px;
    max-height: 85vh;
  }

  .guide-modal-header {
    padding: 20px 20px 16px;
  }

  .guide-modal-header h2 {
    font-size: 18px;
  }

  .guide-modal-body {
    padding: 20px;
    max-height: 55vh;
  }

  .guide-section h3 {
    font-size: 15px;
  }

  .guide-section li {
    font-size: 13px;
  }

  .guide-button {
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}