/**
 * LiPlus Services - Mobile WebApp Style & Design System
 * منطبق بر استانداردهای VibeFarsi و رابط کاربری پیام‌رسان لی‌پلاس
 */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  /* تم روشن (پیش‌فرض سیستم) */
  --font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Tahoma, sans-serif;
  
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --primary: #0088cc;
  --primary-hover: #0077b5;
  --primary-light: rgba(0, 136, 204, 0.08);
  --primary-glow: rgba(0, 136, 204, 0.25);
  
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1);
  
  --header-height: 60px;
  --transition-speed: 0.22s;
}

/* تم تاریک (Dark Mode - LiPlus Night Theme) */
[data-theme="dark"] {
  --bg-app: #0e1621;
  --bg-surface: #17212b;
  --bg-card: #1f2c3a;
  --bg-card-subtle: #17212b;
  --bg-hover: #243444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #229ed9;
  --primary-hover: #38bdf8;
  --primary-light: rgba(34, 158, 217, 0.14);
  --primary-glow: rgba(34, 158, 217, 0.3);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.55);
}

/* بازنشانی و پایه‌ها */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  letter-spacing: 0;
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
}

/* محفظه نگهدارنده مینی‌اپ */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* هدر اپلیکیشن */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-speed);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088cc, #229ed9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 4px 10px var(--primary-glow);
}

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

.brand-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-inline-start: 4px;
}

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

/* دکمه‌های آیکونی هدر */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 16px;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn:active {
  transform: scale(0.94);
}

/* بدنه اصلی صفحات */
.app-main {
  flex: 1;
  padding: 14px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* نوار جستجوی سریع در صفحه اصلی */
.quick-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.quick-search-bar:hover {
  border-color: var(--primary);
  background-color: var(--bg-hover);
}

.quick-search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* اسلایدر بنرها */
.banner-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.banner-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  direction: ltr; /* جهت اسلاید صحیح انیمیشن LTR / RTL */
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 2.3 / 1;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
}

.banner-dot.active {
  width: 20px;
  background-color: #ffffff;
}

/* -------------------------------------------------------------
   کامپوننت گرید ویو افقی ۲ ردیفه خدمات (مطابق تصویر ارسالی کاربر)
------------------------------------------------------------- */
.section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-inline: 4px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.section-more-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.section-more-link:hover {
  color: var(--primary);
}

.section-more-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.section-more-link:hover svg {
  transform: translateX(-3px);
}

/* ریل اسکرول افقی ۲ ردیفه */
.horizontal-grid-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.horizontal-grid-wrapper::-webkit-scrollbar {
  height: 4px;
}

.horizontal-grid-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.horizontal-grid-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 72px);
  gap: 14px 12px;
  min-width: max-content;
}

/* آیتم سرویس (آیکون + عنوان) */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

.service-item:active {
  transform: scale(0.92);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  position: relative;
  border-radius: 18px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background-color: var(--bg-card-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover .service-icon-box {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.15);
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.service-icon-fallback {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.service-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.service-title {
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  color: var(--text-main);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* ریل افقی تک‌سطره پوسترها و بنرها (دقیقاً مشابه تصویر تازه‌ها) */
.poster-row-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.poster-row-wrapper::-webkit-scrollbar {
  height: 4px;
}

.poster-row-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.poster-row-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: max-content;
}

.poster-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.18s ease;
}

.poster-item:active {
  transform: scale(0.95);
}

.poster-thumb-box {
  width: 104px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-item:hover .poster-thumb-box {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.22);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

.poster-title {
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
  width: 100%;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* بنرهای جفتی ۲ ستونه */
.banner-grid-2-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.banner-grid-2-item {
  display: block;
  aspect-ratio: 1.5 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.banner-grid-2-item:active {
  transform: scale(0.96);
}

.banner-grid-2-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* گرید تک ردیفه افقی */
.horizontal-grid-track.single-row {
  grid-template-rows: 1fr;
}

/* -------------------------------------------------------------
   کارت‌های ستونی خبری با سربرگ رنگی (دقیقاً مطابق تصویر ۳)
------------------------------------------------------------- */
.news-columns-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.news-columns-wrapper::-webkit-scrollbar {
  height: 4px;
}

.news-columns-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.news-columns-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  min-width: max-content;
}

.news-column-card {
  width: 275px;
  flex-shrink: 0;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-column-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.news-ribbon-header {
  padding: 8px 14px;
  margin: 8px 8px 6px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 0;
}

.news-rows-list {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 8px;
  gap: 4px;
}

.news-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.18s ease;
}

.news-row-item:hover {
  background-color: var(--bg-hover);
}

.news-row-item:active {
  transform: scale(0.98);
}

.news-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background-color: var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-row-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-row-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.news-row-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------
   ریل استوری دایره‌ای (circular_stories)
------------------------------------------------------------- */
.stories-row-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  min-width: max-content;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-main);
}

.story-ring-box {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #0088cc, #229ed9, #a855f7);
  box-shadow: 0 4px 10px rgba(0, 136, 204, 0.25);
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.story-item:hover .story-ring-box {
  transform: scale(1.06);
}

.story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card);
  display: block;
}

/* -------------------------------------------------------------
   کلاس‌های اصلاح سایز آیکون‌ها و پوسترها (Size Modifiers)
------------------------------------------------------------- */
/* سایز کوچک (Small) */
.section-card.size-small .service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.section-card.size-small .horizontal-grid-track {
  grid-auto-columns: minmax(56px, 62px);
  gap: 10px 8px;
}
.section-card.size-small .poster-item {
  width: 86px;
}
.section-card.size-small .poster-thumb-box {
  width: 86px;
  height: 122px;
}

/* سایز بزرگ (Large) */
.section-card.size-large .service-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}
.section-card.size-large .horizontal-grid-track {
  grid-auto-columns: minmax(74px, 82px);
  gap: 16px 14px;
}
.section-card.size-large .poster-item {
  width: 120px;
}
.section-card.size-large .poster-thumb-box {
  width: 120px;
  height: 172px;
}

/* ریل اسکرول استوری‌ها */
.stories-row-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.stories-row-wrapper::-webkit-scrollbar {
  height: 4px;
}

.stories-row-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

/* بنر عریض تکی تمام‌عرض (wide_banner) */
.wide-banner-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wide-banner-item {
  display: block;
  width: 100%;
  aspect-ratio: 2.8 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.wide-banner-item:active {
  transform: scale(0.98);
}

.wide-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wide-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* تنظیمات سایز کارت‌های خبری */
.section-card.size-small .news-column-card {
  width: 235px;
}
.section-card.size-small .news-row-avatar {
  width: 38px;
  height: 38px;
}
.section-card.size-small .news-row-title {
  font-size: 11.5px;
}
.section-card.size-small .news-row-desc {
  font-size: 10px;
}

.section-card.size-large .news-column-card {
  width: 310px;
}
.section-card.size-large .news-row-avatar {
  width: 50px;
  height: 50px;
}
.section-card.size-large .news-row-title {
  font-size: 13.5px;
}
.section-card.size-large .news-row-desc {
  font-size: 11.5px;
}

/* تنظیمات سایز استوری */
.section-card.size-small .story-item {
  width: 58px;
}
.section-card.size-small .story-ring-box {
  width: 52px;
  height: 52px;
}
.section-card.size-large .story-item {
  width: 80px;
}
.section-card.size-large .story-ring-box {
  width: 74px;
  height: 74px;
}

/* -------------------------------------------------------------
   صفحه لیست تمام خدمات (services.php)
------------------------------------------------------------- */
.list-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  transition: all 0.18s;
}

.back-link:hover {
  background-color: var(--primary);
  color: #fff;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 42px 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab-pill {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tab-pill.active, .category-tab-pill:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* شبکه کامل گرید برای صفحه لیست */
.all-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
}

@media (max-width: 380px) {
  .all-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* حالت خالی (Empty State) */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state-icon {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* فوتر وب‌اپ */
.app-footer {
  margin-top: auto;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  background-color: var(--bg-surface);
}

.app-footer a {
  color: var(--primary);
  text-decoration: none;
}
