/* ==========================================================================
   کلینیک تخصصی فیزیوتراپی احیاء - استایل اختصاصی صفحه خوش‌آمدگویی و هات‌اسپات
   Ehya Physiotherapy Clinic - Fully Responsive Stylesheet
   ========================================================================== */

:root {
  /* پالت رنگی اصلی مشتق از لوگوی کلینیک احیاء */
  --color-primary: #6eb734;          /* سبز نمادین احیاء و تحرک */
  --color-primary-dark: #528d22;     /* سبز تیره جهت کنتراست و هاور */
  --color-primary-light: #8fd44e;    /* سبز روشن هایلایت */
  --color-primary-subtle: #edf8e5;   /* پس‌زمینه لطیف سبز */
  --color-primary-glow: rgba(110, 183, 52, 0.35);

  /* رنگ‌های تیره و کانتور لوگو */
  --color-dark: #373634;             /* زغالی گرم لوگو */
  --color-dark-deep: #242321;        /* زغالی عمیق */
  --color-dark-surface: #464441;     /* سطوح تیره */

  /* پالت پس‌زمینه و خنثی (برگرفته از حلقه کرم/عاجی لوگو) */
  --bg-body: #fbf9f4;                /* کرم بسیار ملایم و گرم */
  --bg-card: #ffffff;
  --bg-card-subtle: #f6f3eb;
  --bg-card-hover: #ffffff;
  --border-color: #e9e4d6;
  --border-color-hover: #6eb734;

  /* متون و تایپوگرافی */
  --text-main: #2b2a28;
  --text-muted: #6e6b66;
  --text-subtle: #96928b;
  --text-inverse: #ffffff;

  /* پالت گرادیان اینستاگرام (برند استاندارد) */
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-glow: rgba(220, 39, 67, 0.32);

  /* وضعیت وای‌فای */
  --wifi-status: #10b981;
  --wifi-pulse: rgba(16, 185, 129, 0.4);

  /* ستاره‌های نظرسنجی */
  --star-color: #f59e0b;

  /* سایه‌ها و افکت‌های مدرن */
  --shadow-sm: 0 2px 6px rgba(55, 54, 52, 0.05);
  --shadow-md: 0 8px 24px rgba(55, 54, 52, 0.08);
  --shadow-lg: 0 16px 36px rgba(55, 54, 52, 0.12);
  --shadow-hover: 0 20px 40px rgba(110, 183, 52, 0.16);

  /* انحناها و شعاع‌ها */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* گذار و انیمیشن */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* فونت پیش‌فرض */
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* حالت تاریک (Dark Mode) هماهنگ با رنگ زغالی لوگو */
[data-theme="dark"] {
  --bg-body: #1e1d1b;
  --bg-card: #282724;
  --bg-card-subtle: #33312d;
  --bg-card-hover: #2f2e2a;
  --border-color: #3f3d38;
  --border-color-hover: #8fd44e;

  --text-main: #f5f3ee;
  --text-muted: #b5b1a8;
  --text-subtle: #87837b;

  --color-primary-subtle: rgba(110, 183, 52, 0.16);
  --color-primary-glow: rgba(143, 212, 78, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 20px 40px rgba(110, 183, 52, 0.22);
}

/* ==========================================================================
   ریست، ایمنی واکنش‌گرایی و استایل‌های پایه
   ========================================================================== */

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

html {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.68;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* گرادیان‌های نوری نرم در پس‌زمینه بدون ایجاد اسکرول افقی */
body::before {
  content: "";
  position: fixed;
  top: -8vw;
  right: -8vw;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(110, 183, 52, 0) 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(40px);
}

body::after {
  content: "";
  position: fixed;
  bottom: -8vw;
  left: -8vw;
  width: 35vw;
  height: 35vw;
  max-width: 450px;
  max-height: 450px;
  background: radial-gradient(circle, rgba(220, 39, 67, 0.12) 0%, rgba(220, 39, 67, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 3.5vw, 1.25rem);
}

/* ==========================================================================
   نوار وضعیت بالایی هات‌اسپات (Hotspot Connectivity Bar)
   ========================================================================== */

.top-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hotspot-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
}

.status-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: var(--wifi-status);
  border-radius: 50%;
  flex-shrink: 0;
}

.status-beacon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: var(--wifi-status);
  opacity: 0.6;
  animation: beacon-pulse 2s infinite ease-out;
}

@keyframes beacon-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.wifi-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  min-width: 0;
}

.wifi-label {
  white-space: nowrap;
  font-size: 0.82rem;
}

.wifi-badge {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.wifi-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

[data-theme="dark"] .wifi-badge {
  color: var(--color-primary-light);
}

/* بهینه‌سازی نوار در موبایل‌های کوچک جهت جلوگیری از چندخطی شدن */
@media (max-width: 480px) {
  .wifi-label {
    display: none; /* روی گوشی‌ها برای جلوگیری از شلوغی و شکست، متن مخفی و نشان متصل حفظ می‌شود */
  }
  .wifi-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
  }
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   بخش هدر و معرفی کلینیک (Hero Header)
   ========================================================================== */

.hero-section {
  padding: clamp(1.4rem, 3.5vw, 2.2rem) 0 1rem;
  text-align: center;
}

.clinic-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
}

.logo-wrapper {
  position: relative;
  width: clamp(105px, 22vw, 140px);
  height: clamp(105px, 22vw, 140px);
  margin-bottom: 0.85rem;
  transition: transform var(--transition-normal);
}

.logo-wrapper:hover {
  transform: scale(1.04) rotate(1.5deg);
}

.logo-glow-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-primary), #8fd44e, var(--color-dark), var(--color-primary));
  opacity: 0.45;
  filter: blur(8px);
  z-index: 1;
  animation: slow-spin 18s linear infinite;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clinic-logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.clinic-title-fa {
  font-size: clamp(1.3rem, 4.8vw, 2rem);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  padding: 0 0.5rem;
}

.clinic-title-fa span {
  color: var(--color-primary-dark);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .clinic-title-fa span {
  color: var(--color-primary-light);
}

.clinic-title-en {
  font-size: clamp(0.78rem, 2.3vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid rgba(110, 183, 52, 0.25);
  color: var(--color-primary-dark);
  padding: 0.4rem clamp(0.75rem, 2.5vw, 1.1rem);
  border-radius: var(--radius-full);
  font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  font-weight: 600;
  max-width: 95%;
  line-height: 1.4;
}

[data-theme="dark"] .welcome-chip {
  color: var(--color-primary-light);
}

.welcome-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.clinic-tagline {
  max-width: 600px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: clamp(0.84rem, 2.4vw, 0.95rem);
  line-height: 1.68;
  padding: 0 0.5rem;
}

/* ==========================================================================
   بخش ویژه و تمرکز اصلی: کارت اینستاگرام (Instagram Hero Card)
   ========================================================================== */

.instagram-spotlight {
  padding: 1rem 0 1.8rem;
}

.ig-card-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3px;
  background: var(--ig-gradient);
  box-shadow: 0 12px 36px var(--ig-glow), var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.ig-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px var(--ig-glow), var(--shadow-lg);
}

.ig-card-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 3px);
  padding: clamp(1.2rem, 3.5vw, 2.2rem) clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 2;
}

/* هدر کارت اینستاگرام */
.ig-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

@media (min-width: 640px) {
  .ig-header-row {
    flex-direction: row;
    text-align: right;
    align-items: center;
    gap: 1.25rem;
  }
}

.ig-avatar-badge {
  position: relative;
  width: clamp(72px, 16vw, 84px);
  height: clamp(72px, 16vw, 84px);
  flex-shrink: 0;
}

.ig-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: var(--ig-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate-ig 6s linear infinite;
}

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

.ig-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: cover;
}

.ig-icon-stamp {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background: var(--ig-gradient);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ig-icon-stamp svg {
  width: 13px;
  height: 13px;
}

.ig-account-meta {
  flex-grow: 1;
  min-width: 0;
}

.ig-account-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .ig-account-title {
    justify-content: flex-start;
  }
}

.verified-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  flex-shrink: 0;
}

.ig-handle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #dc2743;
  direction: ltr;
  display: inline-block;
  letter-spacing: 0.03em;
  background: rgba(220, 39, 67, 0.08);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.ig-account-desc {
  font-size: clamp(0.82rem, 2.2vw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* آمار و دستاوردها */
.ig-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.3rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border-color);
  text-align: center;
  gap: 0.2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0 0.2rem;
  min-width: 0;
}

.stat-item:not(:last-child) {
  border-left: 1px solid var(--border-color);
}

.stat-num {
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(0.68rem, 2.2vw, 0.78rem);
  color: var(--text-muted);
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
}

/* مزایای دنبال کردن */
.ig-perks-title {
  font-size: clamp(0.88rem, 2.6vw, 0.98rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ig-perks-title svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .ig-perks-title svg {
  color: var(--color-primary-light);
}

.ig-perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .ig-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.perk-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.perk-pill:hover {
  background: var(--bg-card-hover);
  border-color: rgba(220, 39, 67, 0.35);
  transform: translateY(-2px);
}

.perk-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(220, 39, 67, 0.12), rgba(240, 148, 51, 0.12));
  color: #dc2743;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.perk-icon-box svg {
  width: 17px;
  height: 17px;
}

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

.perk-text h4 {
  font-size: clamp(0.84rem, 2.4vw, 0.9rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.perk-text p {
  font-size: clamp(0.74rem, 2.2vw, 0.78rem);
  color: var(--text-muted);
  line-height: 1.48;
}

/* ==========================================================================
   دکمه‌های اقدام اینستاگرام ( کاملاً بهینه‌سازی‌شده برای همه رزولوشن‌ها )
   ========================================================================== */

.ig-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 680px) {
  .ig-cta-group {
    flex-direction: row;
    align-items: stretch;
  }
}

.btn-ig-primary {
  flex: 1.3;
  background: var(--ig-gradient);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px var(--ig-glow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  touch-action: manipulation;
  width: 100%;
}

.btn-ig-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.btn-ig-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--ig-glow);
}

.btn-ig-primary:hover::after {
  left: 100%;
}

.btn-ig-primary svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-ig-secondary {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 0.9rem 1.1rem;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: clamp(0.85rem, 2.5vw, 0.92rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  touch-action: manipulation;
  width: 100%;
}

.btn-ig-secondary:hover {
  background: var(--border-color);
  border-color: var(--color-primary-dark);
}

.btn-ig-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.handle-pill {
  direction: ltr;
  display: inline-block;
  background: rgba(220, 39, 67, 0.09);
  color: #dc2743;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 800;
}

/* ==========================================================================
   پیش‌نمایش ریلزها و ویدیوها ( اسلایدر لمسی در موبایل + گرید در دسکتاپ )
   ========================================================================== */

.ig-reels-preview {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--border-color);
}

.reels-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reels-preview-header h5 {
  font-size: clamp(0.8rem, 2.4vw, 0.86rem);
  font-weight: 700;
  color: var(--text-muted);
}

.reels-more-hint {
  font-size: 0.78rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

[data-theme="dark"] .reels-more-hint {
  color: var(--color-primary-light);
}

/* در صفحات موبایل: اسکرول افقی با اسنپ جهت خوانایی عالی */
.reels-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

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

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

.reel-card {
  position: relative;
  flex: 0 0 clamp(145px, 45vw, 190px);
  min-height: 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  background: var(--color-dark-surface);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem 0.65rem;
  color: #ffffff;
  transition: transform var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
  .reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
  }
  .reel-card {
    flex: unset;
    min-height: 230px;
  }
}

.reel-card:hover {
  transform: translateY(-3px);
}

.reel-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.reel-card:hover .reel-card-bg {
  opacity: 0.8;
  transform: scale(1.06);
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.reel-play-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.reel-play-badge svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

.reel-caption {
  position: relative;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ==========================================================================
   بخش فرهنگ حضور و توصیه‌های زمان انتظار (Waiting Etiquette)
   ========================================================================== */

.waiting-etiquette-section {
  padding: 1.4rem 0 1.8rem;
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.section-tag {
  display: inline-block;
  font-size: clamp(0.72rem, 2.2vw, 0.78rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-subtle);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .section-tag {
  color: var(--color-primary-light);
}

.section-title {
  font-size: clamp(1.15rem, 3.8vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.section-desc {
  font-size: clamp(0.82rem, 2.4vw, 0.88rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.etiquette-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 600px) and (max-width: 880px) {
  .etiquette-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .etiquette-grid .etiquette-card:last-child {
    grid-column: span 2;
  }
}

@media (min-width: 881px) {
  .etiquette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.etiquette-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.4rem) 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.etiquette-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.etiquette-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

[data-theme="dark"] .etiquette-icon {
  color: var(--color-primary-light);
}

.etiquette-icon svg {
  width: 22px;
  height: 22px;
}

.etiquette-card h4 {
  font-size: clamp(0.9rem, 2.5vw, 0.96rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.etiquette-card p {
  font-size: clamp(0.78rem, 2.2vw, 0.82rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   بخش خدمات تخصصی کلینیک احیاء (Clinic Services)
   ========================================================================== */

.services-section {
  padding: 1.4rem 0 1.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 580px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  transition: all var(--transition-normal);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .service-icon-box {
  color: var(--color-primary-light);
}

.service-icon-box svg {
  width: 20px;
  height: 20px;
}

.service-content {
  min-width: 0;
  flex: 1;
}

.service-content h4 {
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.service-content p {
  font-size: clamp(0.76rem, 2.2vw, 0.81rem);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   بخش ساعات کاری و ارتباط سریع با کلینیک (Clinic Info & Contact)
   ========================================================================== */

.contact-section {
  padding: 1.4rem 0 1.8rem;
}

.contact-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 3.5vw, 2rem) clamp(1rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 1.8rem;
  }
}

.contact-info-block h3 {
  font-size: clamp(1.1rem, 3.2vw, 1.25rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.schedule-list {
  list-style: none;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: clamp(0.8rem, 2.4vw, 0.86rem);
}

@media (max-width: 480px) {
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .schedule-hours {
    padding-right: 1.5rem;
    font-size: 0.82rem;
  }
}

.schedule-day {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule-day svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .schedule-day svg {
  color: var(--color-primary-light);
}

.schedule-hours {
  color: var(--text-muted);
  font-weight: 600;
}

.contact-details-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-color);
  font-size: clamp(0.82rem, 2.4vw, 0.88rem);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.6;
  color: var(--text-main);
}

.contact-detail-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary-dark);
}

[data-theme="dark"] .contact-detail-row svg {
  color: var(--color-primary-light);
}

.contact-detail-row .phone-link {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  unicode-bidi: embed;
}

.contact-detail-row .phone-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .contact-detail-row .phone-link {
  color: var(--color-primary-light);
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 540px) {
  .contact-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: clamp(0.84rem, 2.5vw, 0.9rem);
  transition: all var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
  width: 100%;
}

.btn-call {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-call:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-location {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-location:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-chat {
  background: #25d366;
  color: #ffffff;
}

.btn-chat:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

.action-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ==========================================================================
   بخش نظرسنجی و تجربه بیمار (Patient Rating)
   ========================================================================== */

.feedback-section {
  padding: 1.1rem 0 1.8rem;
}

.feedback-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3.5vw, 1.6rem) 1rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.feedback-card h4 {
  font-size: clamp(0.96rem, 2.8vw, 1.05rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.feedback-card p {
  font-size: clamp(0.78rem, 2.3vw, 0.85rem);
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.stars-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.star-btn {
  font-size: 2.2rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--border-color);
  transition: all var(--transition-fast);
  padding: 0.15rem;
  touch-action: manipulation;
  line-height: 1;
}

.star-btn:hover,
.star-btn:hover ~ .star-btn,
.star-btn.active,
.star-btn.active ~ .star-btn {
  color: var(--star-color);
  transform: scale(1.14);
}

.feedback-toast {
  display: none;
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-size: clamp(0.8rem, 2.4vw, 0.88rem);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.6rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

[data-theme="dark"] .feedback-toast {
  color: var(--color-primary-light);
}

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

/* ==========================================================================
   نوار شناور دسترسی سریع در موبایل (Sticky Mobile Action Bar)
   با در نظر گرفتن SafeArea آیفون و گوشی‌های لبه‌خمیده
   ========================================================================== */

.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bar-btn {
  flex: 1;
  padding: 0.75rem 0.6rem;
  min-height: 46px;
  border-radius: var(--radius-md);
  font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.mobile-bar-btn-ig {
  background: var(--ig-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--ig-glow);
}

.mobile-bar-btn-call {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.mobile-bar-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.mobile-btn-text-short {
  display: none;
}

@media (max-width: 360px) {
  .mobile-btn-text {
    display: none;
  }
  .mobile-btn-text-short {
    display: inline;
  }
}

/* ==========================================================================
   فوتر (Footer)
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 calc(5.2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 2rem;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.footer-clinic-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-address {
  max-width: 500px;
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 0 0.5rem;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 0.4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.9rem;
  width: 100%;
}

/* پاپ‌آپ اعلان کپی (Copy Toast) */
.toast-alert {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-dark);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.8rem, 2.5vw, 0.86rem);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  max-width: 90vw;
}

@media (min-width: 768px) {
  .toast-alert {
    bottom: 30px;
  }
}

.toast-alert.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-alert svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary-light);
  flex-shrink: 0;
}
