/* =========================================================
   AFGHelp Dashboard - Unified Stylesheet
   File: public/css/dashboard-style.css
   توضیح: استایل‌های یکپارچه صفحات پنل کاربری
   تاریخ: بهمن ۱۴۰۴
   ========================================================= */

/* ===== متغیرهای اختصاصی داشبورد ===== */
:root {
  --accent: #2e7d32;
  --accent-light: #e8f5e9;
  --accent-very-light: #f1f8e9;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --success: #16a34a;
  --success-light: #dcfce7;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

/* ===== استایل‌های عمومی ===== */
.btn {
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #1e5a24;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-light);
}

.btn-soft {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-soft:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.btn-danger:hover {
  background: #fecaca;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.approved {
  background: var(--success-light);
  color: var(--success);
}

.status-badge.pending {
  background: var(--warning-light);
  color: var(--warning);
}

/* ===== استایل‌های اصلی داشبورد ===== */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 120px);
  background: var(--bg-light);
  margin-top: 16px;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
}

/* ===== سایدبار ===== */
.dashboard-sidebar {
  width: 280px;
  background: var(--surface);
  padding: 24px 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.user-role {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-light);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--bg-light);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.nav-badge {
  margin-right: auto;
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

/* ===== محتوای اصلی ===== */
.dashboard-main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-light);
}

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

.dashboard-title {
  font-size: 24px;
  font-weight: 700;
}

.dashboard-date {
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 100px;
}

.dashboard-breadcrumb {
  color: var(--muted);
  font-size: 14px;
}

.dashboard-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.dashboard-breadcrumb a:hover {
  color: var(--accent);
}

/* ===== کارت پروفایل کسب‌وکار ===== */
.business-profile-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.business-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.business-profile-image {
  width: 100px;
  height: 100px;
  background: var(--accent-light);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--accent);
  overflow: hidden;
}

.business-profile-info {
  flex: 1;
}

.business-profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.business-profile-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  display: inline-block;
}

.business-profile-status.pending {
  background: var(--warning);
}

.business-profile-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.business-profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.business-stats-mini {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.business-stat-mini {
  text-align: center;
}

.business-stat-mini-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.business-stat-mini-label {
  font-size: 12px;
  color: var(--muted);
}

/* ===== کارت‌های آمار ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}

.stat-change {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
}

/* ===== بخش‌های دو ستونه ===== */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* ===== کارت‌های محتوایی ===== */
.content-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px;
}

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

.card-title {
  font-weight: 700;
  font-size: 16px;
}

.card-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

/* ===== آیتم‌های لیست ===== */
.favorite-item,
.notification-item,
.business-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.favorite-item:last-child,
.notification-item:last-child,
.business-item:last-child {
  border-bottom: none;
}

.favorite-image,
.business-image {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.favorite-info,
.notification-content,
.business-info {
  flex: 1;
}

.favorite-name,
.notification-title,
.business-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.favorite-meta,
.business-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ===== نظرات ===== */
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 600;
  font-size: 14px;
}

.review-rating {
  color: #f59e0b;
}

.review-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.review-actions {
  display: flex;
  gap: 12px;
}

.review-btn {
  font-size: 12px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== اعلان‌ها ===== */
.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 8px;
}

.notification-dot.read {
  background: var(--border);
}

.notification-time {
  font-size: 11px;
  color: var(--muted);
}

/* ===== تب‌های مدیریت کسب‌وکار ===== */
.business-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.business-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
}

.business-tab:hover {
  color: var(--accent);
  background: var(--accent-very-light);
}

.business-tab.active {
  background: var(--accent-light);
  color: var(--accent);
}

/* ===== کارت‌های فرم ===== */
.section-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ===== فرم‌ها ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-label .required {
  color: var(--danger);
  margin-right: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== شبکه‌های اجتماعی ===== */
.social-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: 100px;
}

.social-icon {
  font-size: 20px;
}

.social-item input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
}

.social-item input:focus {
  outline: none;
}

/* ===== آپلود تصاویر ===== */
.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.image-upload-item {
  aspect-ratio: 1/1;
  background: var(--bg-light);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  border: 2px dashed var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.image-upload-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.image-upload-item.has-image {
  border: 2px solid var(--accent);
  position: relative;
  background-size: cover;
  background-position: center;
}

.image-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-upload-item:hover .image-upload-overlay {
  opacity: 1;
}

.image-upload-btn {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* ===== ساعات کاری ===== */
.hours-list {
  margin-top: 16px;
}

.hours-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-day {
  width: 100px;
  font-weight: 600;
}

.hours-status {
  width: 100px;
}

.hours-time {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hours-time input {
  width: 100px;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 100px;
  text-align: center;
}

.hours-time input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== ویژگی‌ها ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: 16px;
  cursor: pointer;
}

.feature-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ===== منو / محصولات ===== */
.menu-items {
  margin-top: 20px;
}

.menu-item-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 20px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.menu-item-image {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px dashed var(--border);
}

.menu-item-content {
  flex: 1;
  min-width: 200px;
}

.menu-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.menu-item-name {
  font-weight: 600;
  font-size: 16px;
}

.menu-item-price {
  color: var(--accent);
  font-weight: 700;
}

.menu-item-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.menu-item-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-item-actions {
  display: flex;
  gap: 8px;
}

.menu-item-btn {
  width: 36px;
  height: 36px;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
}

.add-menu-btn {
  width: 100%;
  padding: 16px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
/* استایل‌های مربوط به کاور و لوگو */
.cover-upload-item, .logo-upload-item {
    position: relative;
    overflow: hidden;
}

.cover-upload-item:hover .cover-upload-overlay,
.logo-upload-item:hover .logo-upload-overlay {
    opacity: 1 !important;
}

.cover-upload-overlay, .logo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.cover-upload-btn, .logo-upload-btn {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.cover-upload-btn:hover, .logo-upload-btn:hover {
    transform: scale(1.1);
}
/* ===== سوالات متداول ===== */
.faq-items {
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.faq-question {
  font-weight: 600;
}

.faq-answer {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ===== منوی پایینی موبایل ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  z-index: 100;
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  gap: 4px;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-icon {
  font-size: 20px;
}

/* ===== حالت موبایل ===== */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    border-radius: 24px 24px 0 0;
    margin-top: 8px;
    min-height: calc(100vh - 180px);
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 16px;
    padding-bottom: 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-date {
    align-self: flex-start;
  }

  .bottom-nav {
    display: block;
  }

  .business-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .business-profile-image {
    align-self: center;
  }

  .business-profile-actions {
    width: 100%;
    justify-content: center;
  }

  .business-stats-mini {
    justify-content: space-around;
  }

  /* فرم‌ها در موبایل */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .image-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hours-day {
    width: auto;
  }

  .hours-time {
    width: 100%;
  }

  .social-inputs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .image-upload-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .menu-item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .business-profile-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.alert {
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: var(--success-light);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: var(--danger-light);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  color: var(--warning);
}
/* ===== استایل‌های بخش FAQ ===== */
.faq-section {
    margin-top: 24px;
}

.faq-item-edit {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.faq-header-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-header-edit h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin: 0;
}

.faq-actions {
    display: flex;
    gap: 8px;
}

.faq-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.faq-icon-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.faq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-form-group {
    margin-bottom: 12px;
}

.faq-form-group.full-width {
    grid-column: span 2;
}

.faq-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.faq-input, .faq-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 14px;
    transition: 0.2s;
    font-family: inherit;
}

.faq-input:focus, .faq-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.faq-textarea {
    min-height: 80px;
    resize: vertical;
}

.faq-add-btn {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 20px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: 0.2s;
}

.faq-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-very-light);
}

.faq-order-input {
    width: 80px;
    text-align: center;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .faq-form-grid {
        grid-template-columns: 1fr;
    }
    .faq-form-group.full-width {
        grid-column: span 1;
    }
}


/* ===== add product styles ===== */
/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---- Product form wrapper (used in add-product page) ---- */
.product-form {
  background: var(--surface);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--border);
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Image upload area (dashed box style) ---- */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: 0.2s;
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-very-light);
}

.image-upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--muted);
}

/* ---- Image preview row ---- */
.image-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 16px;
  margin-top: 16px;
}

.image-preview img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
}

/* ---- Tags input ---- */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: var(--bg-light);
  border-radius: 18px;
  border: 1px solid transparent;
}

.tags-input:focus-within {
  border-color: var(--accent);
  background: white;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 12px;
}

.tag-item button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}

.tags-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  min-width: 120px;
}

.tags-input input:focus {
  outline: none;
}

/* ---- Price input row ---- */
.price-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input input {
  flex: 1;
}

.price-input span {
  color: var(--muted);
  font-size: 14px;
}

/* ---- Toggle group + simple switch (DIV-based, scoped to toggle-group) ---- */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* scoped to avoid conflict with profile settings switch */
.toggle-group .switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--border);
  border-radius: 40px;
  cursor: pointer;
}

.toggle-group .switch:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  transition: 0.2s;
}

.toggle-group .switch.active {
  background: var(--accent);
}

.toggle-group .switch.active:before {
  right: 26px;
}

/* =========================================================
   Profile Settings specific styles (settings page)
   ========================================================= */

/* ---- Settings cards ---- */
.settings-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

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

.settings-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-title-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.settings-badge {
  background: var(--bg-light);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---- Form extras (profile) ---- */
.form-input:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ---- Avatar section ---- */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  background: var(--accent-light);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar-btn {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-btn.upload {
  background: var(--accent-light);
  color: var(--accent);
}

.avatar-btn.upload:hover {
  background: var(--accent);
  color: white;
}

.avatar-btn.remove {
  background: var(--danger-light);
  color: var(--danger);
}

.avatar-btn.remove:hover {
  background: var(--danger);
  color: white;
}

/* ---- Security items ---- */
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.security-item:last-child {
  border-bottom: none;
}

.security-info {
  flex: 1;
}

.security-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.security-description {
  font-size: 12px;
  color: var(--muted);
}

.security-badge {
  background: var(--success-light);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ---- Notification settings (profile page) ---- */
.notification-info {
  flex: 1;
}

.notification-description {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Profile switch (input + slider), scoped to settings-card ---- */
.settings-card .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.settings-card .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-card .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .3s;
  border-radius: 34px;
}

.settings-card .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  right: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.settings-card input:checked + .slider {
  background-color: var(--accent);
}

.settings-card input:checked + .slider:before {
  transform: translateX(-24px);
}

/* ---- Button extra hover (if missing in your main file) ---- */
.btn-danger:hover {
  background: #fecaca;
}

/* ---- Modal confirm ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--surface);
  border-radius: 32px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-body {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Responsive extras that depended on missing classes ---- */
@media (max-width: 768px) {
  .product-form { padding: 20px; }

  .avatar-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-item, .notification-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .avatar-actions { width: 100%; }
  .avatar-btn { flex: 1; text-align: center; }
}


/* =========================================================
   Business Registration Page Styles
   ========================================================= */

.registration-container {
  max-width: 700px;
  margin: 40px auto;
}

/* progress bar */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  transition: all 0.3s;
}

.progress-step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.progress-step.completed .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.progress-step.active .step-label {
  color: var(--accent);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  max-width: 80px;
  position: relative;
  top: -20px;
  z-index: 1;
}

.progress-line.filled {
  background: var(--accent);
}

/* کارت اصلی */
.registration-card {
  background: var(--surface);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.registration-header {
  text-align: center;
  margin-bottom: 32px;
}

.registration-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.registration-header p {
  color: var(--muted);
  font-size: 14px;
}

/* استایل فرم */
.form-step {
  display: block;
}

.form-step.hidden {
  display: none;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title .step-number {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-very-light);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--muted);
}

.upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  width: 100px;
  font-weight: 600;
}

.hours-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-time input {
  width: 90px;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid transparent;
  border-radius: 40px;
  text-align: center;
}

.hours-time input:focus {
  outline: none;
  border-color: var(--accent);
}

.map-placeholder {
  background: var(--bg-light);
  height: 200px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin: 20px 0;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 20px;
  margin: 20px 0;
}

.form-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert-info {
  background: var(--accent-very-light);
  border: 1px solid var(--accent);
  color: var(--accent);
}


/* =========================================================
   Reviews Page Styles (مدیریت نظرات)
   ========================================================= */

/* ---- آمار نظرات ---- */
.reviews-header-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.review-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-stat-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}

.review-stat-content {
  flex: 1;
}

.review-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.review-stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ---- فیلتر و جستجو ---- */
.reviews-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.filter-tab:hover {
  background: var(--accent-very-light);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 4px 4px 16px;
  min-width: 260px;
}

.filter-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
}

.filter-search input:focus {
  outline: none;
}

.filter-search button {
  width: 38px;
  height: 38px;
  border-radius: 38px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-search button:hover {
  background: #1e5a24;
}

/* ---- توزیع امتیازات ---- */
.rating-distribution {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

/* ---- لیست نظرات ---- */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.2s;
}

.review-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-100);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.reviewer-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 700;
  font-size: 15px;
}

.review-date {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 600;
}

.review-badge {
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
}

.badge-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-approved {
  background: var(--success-light);
  color: var(--success);
}

.badge-rejected {
  background: var(--danger-light);
  color: var(--danger);
}

/* ---- کسب‌وکار مرتبط با نظر ---- */
.review-business {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-business-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.review-business-name {
  font-weight: 600;
  font-size: 14px;
}

.review-business-cat {
  font-size: 12px;
  color: var(--muted);
}

/* ---- محتوای نظر ---- */
.review-content {
  margin-bottom: 20px;
}

.review-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.review-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-image {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.review-image:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- پاسخ به نظر ---- */
.review-reply {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 16px;
  margin: 16px 0;
  border-right: 3px solid var(--accent);
}

.review-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.review-reply-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- دکمه‌های عملیات ---- */
.review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

.review-btn {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.review-btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.review-btn-primary:hover {
  background: #1e5a24;
}

.review-btn-success {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}

.review-btn-success:hover {
  background: var(--success);
  color: white;
}

.review-btn-warning {
  background: var(--warning-light);
  color: var(--warning);
  border-color: var(--warning);
}

.review-btn-warning:hover {
  background: var(--warning);
  color: white;
}

.review-btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

.review-btn-danger:hover {
  background: var(--danger);
  color: white;
}

.review-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.review-btn-outline:hover {
  background: var(--bg-light);
}

/* ---- مودال‌ها (پاسخ و گزارش) ---- */
.reply-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border-radius: 28px;
  padding: 28px;
  max-width: 500px;
  width: 90%;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
}

.reply-modal.active {
  display: block;
}

.reply-modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.reply-modal textarea,
.reply-modal select {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-light);
}

.reply-modal textarea:focus,
.reply-modal select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.reply-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- ریسپانسیو صفحه نظرات ---- */
@media (max-width: 768px) {
  .reviews-header-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .reviews-header-stats {
    grid-template-columns: 1fr;
  }

  .filter-search {
    width: 100%;
  }

  .review-images {
    justify-content: center;
  }
}