/* ===================== Font Face ===================== */
@font-face {
  font-family: 'PeydaWeb';
  src: url('../fonts/PeydaWeb-Regular.woff2') format('woff2'),
    url('../fonts/PeydaWeb-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWeb';
  src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2'),
    url('../fonts/PeydaWeb-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWeb';
  src: url('../fonts/PeydaWeb-Black.woff2') format('woff2'),
    url('../fonts/PeydaWeb-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'),
    url('../fonts/IRANSansX-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Light.woff2') format('woff2'),
    url('../fonts/IRANSansX-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2'),
    url('../fonts/IRANSansX-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2'),
    url('../fonts/IRANSansX-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'),
    url('../fonts/IRANSansX-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* ===================== Theme Variables ===================== */
:root {
  /* پالت رنگی اصلی */
  --color-primary: #0090E8;
  /* آبی روشن */
  --color-primary-light: #66bfff;
  /* آبی آسمانی */
  --color-secondary: #db5637;
  /* نارنجی */
  --color-accent: #0D3675;
  /* سورمه‌ای */
  --color-gradient-start: #FF8C5A ;
  --color-gradient-end: #db5637;

  --font-heading: 'PeydaWeb', sans-serif;
  --font-body: 'IRANSansX', sans-serif;

  --transition: 0.3s ease;
  --global-max-width: 1200px;
  /* عرض مشترک هدر و باتم‌نویگیشن */
}

body.light-theme {
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --bg-surface: #eef0f2;
  --text-primary: #2c3e50;
  --text-secondary: #5a6b7c;
  --text-muted: #8898a5;
}

body.dark-theme {
  --bg-body: #1a1d22;
  --bg-card: #24272e;
  --bg-surface: #2d3138;
  --text-primary: #eae0d5;
  --text-secondary: #a0a8b8;
  --text-muted: #7a8798;
}

/* ===================== Global ===================== */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  padding-top: 75px;
  /* ارتفاع هدر + فاصله */
  padding-bottom: 85px;
  /* ارتفاع باتم‌نویگیشن + فاصله */
  transition: background-color var(--transition), color var(--transition);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    padding-top: 65px;
    padding-bottom: 80px;
  }
}

/* ===================== Header (Glass, Fixed) ===================== */
.header {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1040;
  max-width: var(--global-max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: background var(--transition);
}

body.dark-theme .header {
  background: rgba(28, 30, 35, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  /* ارتفاع داخلی */
}

.header-logo img {
  height: 44px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn,
.header-menu-btn {
  background: transparent;
  border: 1px solid var(--bg-surface);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: background var(--transition);
}

.header-btn:hover,
.header-menu-btn:hover {
  background: var(--bg-surface);
}

.header-btn .material-icons,
.header-menu-btn .material-icons {
  font-size: 20px;
}

.header-btn-text {
  white-space: nowrap;
}

.header-menu-btn {
  padding: 0.4rem;
}

/* منوی کشویی شیشه‌ای */
.header-dropdown-wrapper {
  position: relative;
}

.header-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0;
  z-index: 1060;
  flex-direction: column;
}

body.dark-theme .header-dropdown-menu {
  background: rgba(28, 30, 35, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-dropdown-menu.active {
  display: flex;
}

.header-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.header-dropdown-menu a:hover {
  background: var(--bg-surface);
}

.header-dropdown-menu .material-icons {
  font-size: 22px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .header-actions {
    gap: 0.3rem;
  }

  .header-btn-text {
    display: none;
  }

  .header-btn,
  .header-menu-btn {
    padding: 0.3rem 0.6rem;
  }
}

/* ===================== Bottom Navigation (Glass, Fixed) ===================== */
.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 1040;
  max-width: var(--global-max-width);
  /* از متغیر مشترک استفاده می‌کند */
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  transition: background var(--transition);
}

body.dark-theme .bottom-nav {
  background: rgba(28, 30, 35, 0.85);
}

.bottom-nav .nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 500;
  position: relative;
  transition: all var(--transition);
}

.nav-item .material-icons {
  font-size: 22px;
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -6px;
  width: 30px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

/* ===================== Full-Page Hero ===================== */
.hero-page {
  padding-top: 0 !important;
}

.hero-full {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 120vh;
  background: url('../images/hero-desktop.png') center/cover no-repeat;
  /* COVER برای پوشش کامل */
  display: flex;
  align-items: center;
  margin-top: -100px;
  /* چسبیدن به زیر هدر (ارتفاع هدر + فاصله) */
  z-index: 0;
  background-attachment: scroll;
}

.hero-full-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  max-width: var(--global-max-width);
  margin: 0 auto;
  padding: 0 10px;
  /* همان فاصلهٔ ۱۰px کانتینر */
  box-sizing: border-box;
  width: 100%;
}

.hero-text-wrapper {
  text-align: right;
  max-width: 550px;
  color: #fff;
  padding: 2rem 0;
}

.hero-full .hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.hero-full .hero-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.2rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-full .hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-full .hero-btn {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 0.9rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(219, 86, 55, 0.4);
  text-decoration: none;
  display: inline-block;
}

.hero-full .hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(219, 86, 55, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-full {
    height: 100dvh;
    /* تمام ارتفاع صفحه */
    aspect-ratio: auto;
    /* حذف نسبت ثابت */
    background: url('../images/hero-mobile.png') center/cover no-repeat;
    margin-top: -80px;
    /* همچنان زیر هدر */
    max-height: none;
    /* اجازهٔ تمام‌صفحه شدن */
  }

  .hero-full-content {
    justify-content: center;
    text-align: center;
    align-items: flex-start;
    /* متن از بالای هیرو شروع شود */
    padding-top: 80px;
  }

  .hero-text-wrapper {
    text-align: center;
  }

  .hero-full .hero-title {
    font-size: 2.2rem;
  }

  .hero-full .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-full .hero-btn {
    margin-top: 0;

  }

  .hero-full .hero-desc {
    margin-bottom: 1rem;
    /* قبلاً 2rem بود، فاصله متن تا دکمه نصف می‌شه */
  }

}


/* ===================== Main Footer ===================== */
.main-footer {
  background: var(--bg-card);
  padding: 2rem 1.5rem 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}

body.dark-theme .main-footer {
  background: var(--bg-card);
}

.footer-cloud {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -1px;
  position: relative;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--global-max-width);
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-logo {
  width: 100px;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  transition: background 0.3s;
}

.footer-social a img {
  width: 20px;
  height: 20px;
  filter: invert(40%);
  transition: filter 0.3s;
}

.footer-social a:hover {
  background: var(--color-primary);
}

.footer-social a:hover img {
  filter: brightness(0) invert(1);
}

body.dark-theme .footer-social a img {
  filter: invert(70%);
}

body.dark-theme .footer-social a:hover img {
  filter: brightness(0) invert(1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-links img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-form input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.footer-newsletter-form button {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-contact-info {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-contact-info .material-icons {
  font-size: 18px;
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--bg-surface);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: var(--global-max-width);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


@media (max-width: 768px) {
  .hero-text-wrapper {
    padding: 1rem;
    border-radius: 16px;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ===================== بخش داستان ژیکلند ===================== */

/* Wrapper اصلی برای محدود کردن عرض به اندازه هدر و فوتر */
.page-section {
  max-width: var(--global-max-width);
  /* 1200px */
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* چیدمان دوستونه (عکس + متن) */
.story-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 3rem 0;
  flex-wrap: wrap;
}

/* ستون تصاویر */
.story-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  /* چسبیدن به راست (RTL) */
}

/* ===================== دایره‌های هم‌پوشان ===================== */
.overlap-circles {
  position: relative;
  width: 350px;
  /* عرض کل ناحیه */
  height: 350px;
  margin: 0 auto;
}

/* استایل مشترک هر دو دایره */
.circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-card);
  /* جداکنندهٔ سفید/تیره بین دو تصویر */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* دایرهٔ اصلی (بزرگ‌تر) */
.circle-main {
  width: 300px;
  height: 300px;
  top: 0;
  right: 0;
  z-index: 2;
}

.circle-main img,
.circle-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* دایرهٔ دوم (کوچک‌تر، قرارگرفته روی دایرهٔ اصلی) */
.circle-secondary {
  width: 200px;
  height: 200px;
  bottom: 0;
  left: 0;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===================== ستون متن ===================== */
.story-text {
  flex: 1;
  min-width: 280px;
}

.story-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.story-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 2;
}

/* ===================== واکنش‌گرایی (موبایل) ===================== */
@media (max-width: 768px) {
  .story-section {
    flex-direction: column;
    text-align: center;
  }

  .story-image-wrapper {
    justify-content: center;
  }

  /* کمی کوچک‌تر شدن دایره‌ها برای موبایل */
  .overlap-circles {
    width: 280px;
    height: 280px;
  }

  .circle-main {
    width: 210px;
    height: 210px;
  }

  .circle-secondary {
    width: 140px;
    height: 140px;
  }
}

/* ===================== Member Card ===================== */
.member-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.member-img-wrapper {
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  justify-content: center;
}

.member-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.member-body {
  padding: 0.5rem 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.member-specialty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-btn {
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff !important;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
  display: inline-block;
}

.member-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ===================== Members Grid ===================== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: unset;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
  }

  .members-grid::-webkit-scrollbar {
    display: none;
  }

  .members-grid::before,
  .members-grid::after {
    content: '';
    position: sticky;
    top: 0;
    width: 25px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
  }

  .members-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
    margin-right: -25px;
  }

  .members-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
    margin-left: -25px;
  }

  .members-grid>.member-col {
    flex: 0 0 auto;
    width: calc(50% - 0.5rem);
  }
}

/* Tablet: 3 columns */
@media (min-width: 769px) and (max-width: 991px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ===================== ردیف عنوان و مشاهده همه ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  /* اگر جا کم بود، به خط بعد نره */
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.view-all-link .material-icons {
  font-size: 18px;
  line-height: 1;
}

/* ===================== Category Showcase Card ===================== */
.showcase-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--bg-surface);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* شبکه ۲×۲ تصاویر */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.showcase-grid-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
}

.showcase-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.showcase-card:hover .showcase-grid-item img {
  transform: scale(1.05);
}

/* شمارنده */
.showcase-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

/* متن کارت */
.showcase-body {
  flex: 1;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.showcase-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.showcase-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.showcase-link .material-icons {
  font-size: 18px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .showcase-card {
    flex-direction: column;
    text-align: center;
  }

  .showcase-grid {
    width: 120px;
    height: 120px;
  }
}

/* ===================== بخش دعوت پزشکان (CTA) ===================== */
.cta-doctor-section {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 28px;
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  position: relative;
  color: #fff;
}

/* نگهدارندهٔ تصویر و ذرات */
.cta-doctor-art {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  order: -1;
  /* ← این خط عکس را به سمت چپ می‌برد (در RTL) */
}

/* دایرهٔ شیشه‌ای پشت عکس */
.cta-doctor-art-bg {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* تصویر PNG */
.cta-doctor-art-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

/* ذرات شناور (دایره‌های سفید) */
.cta-doctor-art::before,
.cta-doctor-art::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cta-doctor-art::before {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  animation: floatParticle 6s infinite ease-in-out;
}

.cta-doctor-art::after {
  width: 25px;
  height: 25px;
  bottom: 20px;
  right: 20px;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ستون متن */
.cta-doctor-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* در RTL به سمت راست می‌چسبد */
}

.cta-doctor-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-doctor-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cta-doctor-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 14px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  align-self: flex-end;
  /* در RTL به سمت راست می‌چسبد */
  text-decoration: none;
  display: inline-block;
}

.cta-doctor-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ===================== موبایل ===================== */
@media (max-width: 768px) {
  .cta-doctor-section {
    flex-direction: column;
    text-align: center;
  }

  .cta-doctor-art {
    width: 150px;
    height: 150px;
    order: -1;
    /* تصویر در بالا */
  }

  .cta-doctor-art-bg {
    width: 120px;
    height: 120px;
  }

  .cta-doctor-art-img {
    width: 100px;
    height: 100px;
  }

  .cta-doctor-text {
    align-items: center;
  }

  .cta-doctor-btn {
    align-self: center;
  }
}

/* ===================== شبکه‌های ژیکلند ===================== */
.networks-strip {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin: 3rem 0;
}

.networks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.network-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.network-item:hover {
  transform: translateY(-3px);
}

.network-logo-large {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  object-fit: contain;
  background: var(--bg-card);
  padding: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.network-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.network-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  max-width: 200px;
}

.network-item-link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.network-item-link .material-icons {
  font-size: 16px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .networks-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ===================== Network Page Card ===================== */
.network-page-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.network-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.network-card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.network-rect-logo {
  width: 180px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 10px;
}

.network-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.network-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.network-card-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.network-card-members {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.members-avatars {
  display: flex;
  align-items: center;
}

.member-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card);
  margin-left: -10px;
  transition: transform 0.3s;
}

.member-avatar-small:first-child {
  margin-left: 0;
}

.member-avatar-small:hover {
  transform: scale(1.2);
  z-index: 2;
}

.members-count {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* بخش آخرین محتوا */
.network-card-latest {
  margin-top: auto;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 1rem;
}

.network-card-latest h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.latest-content-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.latest-content-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.latest-content-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.latest-content-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.latest-stat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* گرید کارت‌ها */
.networks-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .networks-page-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== منوی کشویی سفارشی ===================== */
.custom-dropdown {
  position: relative;
  min-width: 150px;
}

.custom-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-surface);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

body.dark-theme .custom-dropdown-btn {
  background: var(--bg-card);
  border-color: var(--bg-surface);
}

.custom-dropdown-menu {
  display: none;
  /* پیش‌فرض مخفی */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.custom-dropdown-menu.active {
  display: block;
  /* با کلیک باز می‌شود */
}

.custom-dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.custom-dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--color-primary);
}

/* ===================== استایل‌های صفحه جستجو ===================== */
.zh-search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* ----- ورودی جستجو ----- */
.zh-search-input-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.zh-search-input-box input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-card);
  padding: 0.9rem 3rem 0.9rem 4.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition);
  box-sizing: border-box;
}

.zh-search-input-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 144, 232, 0.2);
}

.zh-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.zh-search-clear {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

/* ----- فیلترها ----- */
.zh-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.zh-filters .custom-dropdown {
  flex: 1;
  min-width: 150px;
}

.zh-search-btn {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----- تاریخچه و تگ‌ها ----- */
.zh-history-section,
.zh-tags-section {
  margin-bottom: 2rem;
}

.zh-history-section h4,
.zh-tags-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.zh-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zh-history-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface);
  border-radius: 25px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.zh-history-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.zh-history-tag .material-icons {
  font-size: 16px;
}

.zh-popular-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--color-primary-light);
  border-radius: 25px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.zh-popular-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ----- نتایج ----- */
.zh-search-results h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.zh-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .zh-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .zh-results-grid {
    grid-template-columns: 1fr;
  }
}

.zh-empty-search {
  text-align: center;
  padding: 3rem 1rem;
}

.zh-empty-search .material-icons {
  font-size: 80px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* ----- کارت عضو (ایزوله) ----- */
.zh-member-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.zh-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.zh-member-img-wrapper {
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  justify-content: center;
}

.zh-member-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.zh-member-body {
  padding: 0.5rem 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zh-member-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.zh-member-specialty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.zh-member-btn {
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff !important;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
  display: inline-block;
}

.zh-member-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}

/* ===================== هیروی جستجو ===================== */
.zh-search-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.zh-hero-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zh-float 3s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 144, 232, 0.3);
}

.zh-hero-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-card);
  padding: 8px;
}

@keyframes zh-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.zh-hero-text {
  flex: 1;
  min-width: 250px;
}

.zh-hero-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.zh-hero-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .zh-search-hero {
    flex-direction: column;
    text-align: center;
  }

  .zh-hero-image {
    width: 140px;
    height: 140px;
  }

  .zh-hero-image img {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .zh-search-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===================== Doctor Card ===================== */
.doctor-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* قاب عکس مربعی */
.doctor-img-wrapper {
  height: 180px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* محتوای کارت */
.doctor-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.doctor-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.doctor-specialty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.doctor-contact,
.doctor-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  justify-content: flex-start;
}

.doctor-contact .material-icons,
.doctor-location .material-icons {
  font-size: 16px;
  color: var(--color-primary);
}

/* امتیاز: عدد در راست، ستاره‌ها در چپ */
.doctor-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.8rem;
  width: 100%;
}

.doctor-rating .star-rating {
  display: flex;
  direction: ltr;
  /* ستاره‌ها از چپ پر شوند */
}

.rating-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* دکمه رزرو نوبت (عرض کامل) */
.doctor-card .doctor-btn {
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.3s, transform 0.2s;
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-top: auto;

}

.doctor-card .doctor-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===================== Doctors Grid ===================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ===================== ستاره‌ها ===================== */
.star {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #e0e0e0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled {
  background: #ffb703;
}

.star.half {
  background: linear-gradient(to left, #ffb703 50%, #e0e0e0 50%);
}

body.dark-theme .star {
  background: #4a4a4a;
}

body.dark-theme .star.filled {
  background: #ffb703;
}

body.dark-theme .star.half {
  background: linear-gradient(to left, #ffb703 50%, #4a4a4a 50%);
}

/* ===================== باکس پزشک برتر ===================== */
.top-doctor-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 144, 232, 0.06), rgba(219, 86, 55, 0.08));
  border: 1px solid rgba(219, 86, 55, 0.3);
  border-radius: 28px;
  padding: 2rem;
  margin-bottom: 4rem;
  /* فاصله از کارت‌ها */
  overflow: hidden;
}

.top-doctor-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-doctor-avatar {
  flex-shrink: 0;
}

.top-doctor-avatar-bg {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D3675, #db5637);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 144, 232, 0.3);
}

.top-doctor-avatar img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
}

.top-doctor-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* محتوا راست‌چین */
}

.top-doctor-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.top-doctor-specialty {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.top-doctor-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.top-doctor-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  /* در موبایل اسکرول نشکنند */
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.top-doctor-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.badge-satisfaction {
  background: #2e7d32;
}

.badge-popular {
  background: #6a1b9a;
}

.badge-appointments {
  background: #c62828;
}

/* دکمهٔ مخصوص باکس پزشک برتر (چپ‌چین، گرادیانت سورمه‌ای-نارنجی) */
.top-doctor-card .doctor-btn {
  align-self: flex-end;
  /* در RTL به چپ می‌چسبد */
  margin-right: auto;
  /* تأکید بر چسبیدن به چپ */
  background: linear-gradient(135deg, #db5637, #0D3675);
  color: #fff !important;
  width: auto;
  padding: 0.6rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s, transform 0.2s;
}

.top-doctor-card .doctor-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* موبایل */
@media (max-width: 768px) {
  .top-doctor-inner {
    flex-direction: column;
    text-align: center;
  }

  .top-doctor-avatar-bg {
    width: 150px;
    height: 150px;
  }

  .top-doctor-avatar img {
    width: 140px;
    height: 140px;
  }

  .top-doctor-ribbon {
    top: 8px;
    left: -38px;
    font-size: 0.7rem;
    width: 130px;
  }

  .top-doctor-badges {
    justify-content: center;
  }
}

.top-doctor-ribbon {
  position: absolute;
  top: 12px;
  left: -32px;
  width: 150px;
  padding: 0.4rem 0;
  background: linear-gradient(180deg, #f59e0b, #e5a00d);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding-right: 20px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

@media (max-width: 768px) {
  .top-doctor-card .doctor-btn {
    align-self: center !important;
    margin-right: 0 !important;
  }

  .top-doctor-name,
  .top-doctor-specialty {
    text-align: center !important;
    width: 100%;
  }
}

/* ===================== صفحه رزرو نوبت ===================== */
.booking-page {
  max-width: var(--global-max-width);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* حالت خالی */
.booking-hero-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.booking-hero-empty img {
  width: 160px;
  height: 160px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.booking-hero-empty h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}

.booking-hero-empty p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* اطلاعات پزشک انتخاب‌شده */
.selected-doctor-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.selected-doctor-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
}

.selected-doctor-info {
  flex: 1;
  min-width: 200px;
}

.selected-doctor-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.selected-doctor-specialty {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.selected-doctor-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.selected-doctor-meta i {
  font-size: 18px;
  vertical-align: middle;
  color: var(--color-primary);
}

.doctor-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doctor-stat-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.badge-rating {
  background: #f59e0b;
}

.badge-satisfaction {
  background: #2e7d32;
}

.badge-recommend {
  background: #6a1b9a;
}

.badge-appointments {
  background: #c62828;
}

.change-doctor-btn {
  background: transparent;
  border: 2px solid var(--bg-surface);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.change-doctor-btn:hover {
  background: var(--bg-surface);
}

/* ردیف تقویم و ساعت */
.booking-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .booking-datetime-row {
    grid-template-columns: 1fr;
  }
}

/* تقویم */
.calendar-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-nav {
  background: var(--bg-surface);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.3s;
}

.calendar-nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.calendar-day-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  border-color: var(--color-primary);
  background: rgba(0, 144, 232, 0.1);
}

.calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.calendar-day.today {
  border-color: var(--color-accent);
}

/* انتخاب ساعت */
.time-slot-group {
  margin-bottom: 1rem;
}

.time-slot-group h5 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.time-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-slot {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.time-slot:hover:not(.disabled) {
  border-color: var(--color-primary);
}

.time-slot.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.time-slot.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* دلیل مراجعه */
.booking-reason {
  margin-bottom: 2rem;
}

.booking-reason textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.8rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  resize: vertical;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--color-primary);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

.other-person-form {
  display: none;
  margin-bottom: 2rem;
}

.other-person-form.active {
  display: block;
}

.other-person-form .form-control {
  margin-bottom: 1rem;
  text-align: right;
  direction: rtl;
  padding: 0.85rem 1.2rem;
  /* ارتفاع بیشتر */
  border-radius: 14px;
  /* گردتر */
  font-size: 0.95rem;
}

/* دکمه رزرو */
.booking-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, Var(--color-gradient-start), Var(--color-gradient-end));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.booking-submit-btn:hover {
  opacity: 0.9;
}

/* مخفی کردن بخش‌ها */
.hidden {
  display: none !important;
}

/* باکس دور ساعت مراجعه را هم ارتفاع با تقویم کن */
.booking-datetime-row>div:last-child {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* ← ارتفاع کامل والد */
  box-sizing: border-box;
}

/* ===== حالت خالی ساعت مراجعه ===== */
.empty-time-slots {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-time-slots .empty-time-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.empty-time-slots p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== هم‌ارتفاع‌سازی باکس ساعت با تقویم ===== */
.time-slots-wrapper {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .selected-doctor-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .selected-doctor-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .selected-doctor-meta {
    justify-content: center;
  }

  .doctor-stats-row {
    justify-content: center;
  }

  .doctor-stats {
    justify-content: center;
  }

  .change-doctor-btn {
    margin-top: 0.8rem;
  }
}

/* ===================== Rain Effect ===================== */
.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  top: -40px;
  width: 3px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
  animation: rainFall linear infinite;
  opacity: 0.6;
}

/* موقعیت، طول و سرعت تصادفی برای هر قطره */
.raindrop:nth-child(1) {
  left: 5%;
  height: 30px;
  animation-duration: 0.8s;
  animation-delay: 0s;
}

.raindrop:nth-child(2) {
  left: 15%;
  height: 25px;
  animation-duration: 0.7s;
  animation-delay: 0.2s;
}

.raindrop:nth-child(3) {
  left: 25%;
  height: 35px;
  animation-duration: 0.9s;
  animation-delay: 0.5s;
}

.raindrop:nth-child(4) {
  left: 35%;
  height: 28px;
  animation-duration: 0.75s;
  animation-delay: 0.1s;
}

.raindrop:nth-child(5) {
  left: 45%;
  height: 32px;
  animation-duration: 0.85s;
  animation-delay: 0.4s;
}

.raindrop:nth-child(6) {
  left: 55%;
  height: 26px;
  animation-duration: 0.7s;
  animation-delay: 0.3s;
}

.raindrop:nth-child(7) {
  left: 65%;
  height: 30px;
  animation-duration: 0.8s;
  animation-delay: 0.6s;
}

.raindrop:nth-child(8) {
  left: 75%;
  height: 34px;
  animation-duration: 0.9s;
  animation-delay: 0.15s;
}

.raindrop:nth-child(9) {
  left: 85%;
  height: 27px;
  animation-duration: 0.75s;
  animation-delay: 0.35s;
}

.raindrop:nth-child(10) {
  left: 95%;
  height: 31px;
  animation-duration: 0.85s;
  animation-delay: 0.55s;
}

@keyframes rainFall {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* در موبایل تعداد قطرات کمتر شود */
@media (max-width: 768px) {

  .raindrop:nth-child(7),
  .raindrop:nth-child(8),
  .raindrop:nth-child(9),
  .raindrop:nth-child(10) {
    display: none;
  }
}

@media (max-width: 768px) {

  /* تبدیل گرید پزشکان به اسکرول افقی برای صفحه اصلی */
  #home-doctors-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    position: relative;
  }

  #home-doctors-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  /* افکت محو در لبه‌ها */
  #home-doctors-grid::before,
  #home-doctors-grid::after {
    content: '';
    position: sticky;
    top: 0;
    width: 25px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
  }

  #home-doctors-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
    margin-right: -25px;
  }

  #home-doctors-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
    margin-left: -25px;
  }

  /* هر کارت ۴۵٪ عرض تا بخشی از کارت سوم دیده شود */
  #home-doctors-grid>.doctor-col {
    flex: 0 0 auto;
    width: 45%;
  }
}

/* ===== استایل دکمه آواتار در هدر ===== */
.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-primary-light);
}

.user-profile-btn-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

/* صفحهٔ لاگین حتماً overflow مخفی شود */
.auth-page {
  overflow-x: hidden !important;
}

/* ===================== Profile Page ===================== */
.profile-card-new {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 144, 232, 0.25);
  /* سایهٔ آبی */
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
}

body.dark-theme .profile-card-new {
  background: rgba(28, 30, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 144, 232, 0.4);
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.profile-edit-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  color: var(--text-primary);
}

.profile-edit-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.profile-edit-btn .material-icons {
  font-size: 18px;
}

.profile-name-new {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.profile-phone-new {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================== Profile Menu ===================== */
.profile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-menu li {
  border-bottom: 1px solid var(--bg-surface);
}

.profile-menu li:last-child {
  border-bottom: none;
}

.profile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.profile-menu a:hover {
  background: var(--bg-surface);
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-item-left .material-icons {
  font-size: 24px;
  color: var(--color-primary);
}

.menu-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

/* ===================== اعلان‌ها ===================== */
.notification-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.notification-card.unread {
  border-right: 3px solid var(--color-primary);
}

.notification-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.notification-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ===================== کارت‌های داخلی (ویرایش اطلاعات، دعوت و...) ===================== */
.profile-subpage-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

/* ===================== آپلود عکس پروفایل ===================== */
.profile-pic-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .profile-pic-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.profile-pic-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-pic-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

.profile-pic-wrapper:hover .profile-pic-img {
  opacity: 0.85;
}

.profile-pic-edit-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.profile-pic-edit-icon .material-icons {
  font-size: 18px;
}

.profile-pic-info h5 {
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.profile-pic-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== فرم‌های پروفایل ===================== */
.profile-form .form-control {
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border 0.3s, box-shadow 0.3s;
  text-align: right;
  direction: rtl;
}

.profile-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 144, 232, 0.2);
  background: var(--bg-card);
}

.profile-save-btn {
  width: 100%;
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile-save-btn:hover {
  opacity: 0.9;
}

/* ===================== دکمه اکشن سفارشی (آبی-نارنجی) ===================== */
.btn-custom-action {
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.btn-custom-action:hover {
  opacity: 0.9;
}

/* ===================== اعلان‌ها ===================== */
.notification-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.notification-card.unread {
  border-right: 3px solid var(--color-primary);
}

.notification-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.notification-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

/* ===================== هیروی صفحات جانبی ===================== */
.page-hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin-bottom: 1rem;
}

.page-hero .material-icons {
  font-size: 56px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  background: rgba(0, 144, 232, 0.1);
  border-radius: 50%;
  padding: 1rem;
  display: inline-block;
}

.page-hero h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.page-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===================== صفحات جانبی ===================== */
.faq-item {
  border-bottom: 1px solid var(--bg-surface);
  padding: 0.5rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 0.8rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 150px;
  padding-bottom: 1rem;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.legal-item {
  margin-bottom: 1.5rem;
}

.legal-item h4 {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.legal-item p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===================== چت پشتیبانی ===================== */
.support-chat-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 400px;
}

.support-chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-surface);
  margin-bottom: 1rem;
}

.support-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.support-agent-name {
  font-weight: 700;
  color: var(--text-primary);
}

.support-agent-status {
  font-size: 0.8rem;
  color: var(--color-primary);
}

.support-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-bubble.agent {
  align-self: flex-start;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
}

.support-chat-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.support-chat-input input {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.support-chat-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

/* ===================== یادداشت‌ها ===================== */
.note-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.note-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-light);
}

.note-doctor-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.note-doctor-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.note-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.note-btn {
  background: var(--bg-surface);
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
}

.note-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.note-btn.delete:hover {
  background: #dc3545;
  color: #fff;
}

.note-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.note-empty .material-icons {
  font-size: 70px;
  color: var(--text-muted);
  opacity: 0.5;
}

.note-edit-form {
  display: none;
  margin-top: 0.8rem;
}

.note-edit-form.active {
  display: block;
}

.note-edit-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

/* ===================== نوبت‌ها ===================== */
.apt-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.apt-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-light);
}

.apt-info {
  flex: 1;
  min-width: 180px;
}

.apt-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.apt-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.apt-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.apt-status {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.status-upcoming {
  background: #db5637;
}

.status-past {
  background: #0D3675;
}

.apt-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.apt-empty .material-icons {
  font-size: 70px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===================== تب‌های نوبت / سفارش ===================== */
.order-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.order-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===================== ستاره‌های امتیاز ===================== */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.rating-star {
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: #e0e0e0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background 0.2s;
}

.rating-star.active,
.rating-star:hover {
  background: #f59e0b;
}

/* ===================== اسلایدر رضایت ===================== */
.satisfaction-slider-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.satisfaction-percent {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.3rem;
}

/* ===================== مودال شیشه‌ای (پاپ‌آپ) ===================== */
.vendor-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  /* پیش‌فرض مخفی */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  /* بالاتر از همه */
  padding: 1rem;
}

.vendor-modal.active {
  display: flex;
}

.vendor-modal-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
}

body.dark-theme .vendor-modal-card {
  background: rgba(28, 30, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-modal-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* ===================== ستاره‌های امتیاز ===================== */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  direction: ltr;
}

.rating-star {
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: #e0e0e0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background 0.2s, transform 0.2s;
}

.rating-star:hover {
  background: #f59e0b;
  transform: scale(1.1);
}

.rating-star.active {
  background: #f59e0b;
}

/* ===================== اسلایدر رضایت ===================== */
.satisfaction-slider-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.satisfaction-percent {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.3rem;
}

/* ===================== صفحه پروفایل پزشک ===================== */
.doctor-profile-page {
  max-width: var(--global-max-width);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* ----- کارت اطلاعات ----- */
.dp-info-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dp-info-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.dp-avatar-wrapper {
  flex-shrink: 0;
}

.dp-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary-light);
  box-shadow: 0 8px 20px rgba(0, 144, 232, 0.2);
}

.dp-details {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.dp-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.dp-specialty {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dp-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dp-stars {
  color: #f59e0b;
  font-size: 1.2rem;
}

.dp-rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dp-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dp-contact i {
  font-size: 18px;
  vertical-align: middle;
  color: var(--color-primary);
}

/* شبکه‌های اجتماعی با گرادیانت */
.dp-social {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.dp-social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db5637, #0D3675);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dp-social-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(219, 86, 55, 0.4);
}

.dp-social-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* دکمه رزرو (چپ) */
.dp-booking-btn {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.8rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
  align-self: center;
}

.dp-booking-btn:hover {
  opacity: 0.9;
}

/* ----- توضیحات ----- */
.dp-description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-surface);
}

.dp-description h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.8rem;
}

.dp-description p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ----- کارت‌های آماری (طراحی جدید) ----- */

@media (max-width: 768px) {
  .dp-stats-row {
    grid-template-columns: 1fr;
  }
}

.dp-stat-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dp-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dp-stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem;
  background: rgba(0, 144, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-stat-icon .material-icons {
  font-size: 30px;
  color: var(--color-primary);
}

.dp-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.dp-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ----- نظرات ----- */
.dp-reviews {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dp-reviews h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.dp-review-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--bg-surface);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.dp-review-item:last-child {
  border: none;
}

.dp-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dp-review-content {
  flex: 1;
}

.dp-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.dp-review-header strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dp-review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dp-review-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* دکمه ثبت نظر (چپ) */
.dp-add-review-btn {
  background: var(--bg-surface);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-end;
  margin-top: 1rem;
}

.dp-add-review-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.dp-review-form {
  display: none;
  margin-top: 1rem;
}

.dp-review-form.active {
  display: block;
}

.dp-review-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--bg-surface);
  background: var(--bg-surface);
  padding: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.dp-review-stars {
  display: flex;
  gap: 0.3rem;
  margin: 0.5rem 0;
  font-size: 1.5rem;
  cursor: pointer;
}

.dp-review-stars span {
  color: #ccc;
  transition: color 0.2s;
}

.dp-review-stars span:hover {
  color: #f59e0b;
}

.dp-review-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* ----- ارزیابی کلی ----- */
.dp-evaluation {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  /* فاصله از فوتر */
}

.dp-evaluation h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.dp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dp-badge {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.dp-badge strong {
  color: var(--color-primary);
  margin-right: 0.3rem;
}

.dp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* ۴ ستون در دسکتاپ */
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .dp-stats-row {
    grid-template-columns: repeat(2, 1fr);
    /* ۲ ستون در تبلت */
  }
}

@media (max-width: 576px) {
  .dp-stats-row {
    grid-template-columns: 1fr;
    /* ۱ ستون در موبایل */
  }
}

/* ========== تنظیمات موبایل ========== */
@media (max-width: 768px) {

  /* وسط‌چین شدن کامل باکس اطلاعات پزشک */
  .dp-info-row {
    flex-direction: column;
    text-align: center;
  }

  .dp-details {
    align-items: center;
    text-align: center;
  }

  .dp-contact,
  .dp-social {
    justify-content: center;
  }

  .dp-booking-btn {
    align-self: center;
    margin-top: 0.2rem;
  }

  /* کارت‌های آماری: ۲ عدد در هر ردیف */
  .dp-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ستاره‌ها و عدد امتیاز وسط‌چین */
  .dp-rating {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dp-booking-btn {
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================== بخش متخصصان محبوب ===================== */
.dp-popular-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.dp-popular-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* تبلت: ۳ ستون */
@media (max-width: 991px) {
  .dp-popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* موبایل: اسکرول افقی */
@media (max-width: 768px) {
  .dp-popular-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
  }

  .dp-popular-grid::-webkit-scrollbar {
    display: none;
  }

  /* افکت محو در لبه‌ها */
  .dp-popular-grid::before,
  .dp-popular-grid::after {
    content: '';
    position: sticky;
    top: 0;
    width: 25px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
  }

  .dp-popular-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
    margin-right: -25px;
  }

  .dp-popular-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
    margin-left: -25px;
  }

  .dp-popular-grid>.member-col {
    flex: 0 0 auto;
    width: 45%;
    /* دو کارت کامل + بخشی از کارت سوم */
  }
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.back-btn .material-icons {
  font-size: 1.2rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-secondary);
}

.page-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== دکمه اشتراک‌گذاری ===================== */
.dp-share-wrapper {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
  /* در RTL به سمت راست می‌چسبد */
}

.dp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--color-primary-light);
  border-radius: 14px;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.dp-share-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.dp-share-btn .material-icons {
  font-size: 20px;
}

/* در موبایل دکمه وسط‌چین شود */
@media (max-width: 768px) {
  .dp-share-wrapper {
    justify-content: center;
  }
}

/* ===================== مودال تأیید نوبت ===================== */
.booking-summary {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: right;
}

/* ===================== فیلترهای صفحه پزشکان ===================== */
.doctors-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.doctors-filters .filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.doctors-filters .custom-dropdown {
  flex: 1;
  min-width: 140px;
}

/* ===================== دکمه مشاهده بیشتر (با خط چین) ===================== */
.load-more-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.load-more-line {
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--color-primary);
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.load-more-btn:hover {
  background: #0077cc;
}

.load-more-btn .material-icons {
  font-size: 18px;
}

/* ===================== لینک شبکه‌های ژیکلند ===================== */
.dp-network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.dp-network-card {
  flex: 1;
  min-width: 250px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--bg-surface);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dp-network-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dp-network-logo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.dp-network-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--bg-surface);
  padding: 8px;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.dp-network-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: -5px;
  left: -5px;
  z-index: 2;
}

.dp-network-text {
  flex: 1;
}

.dp-network-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.dp-network-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.dp-network-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.dp-network-link:hover {
  color: #0077cc;
}

.dp-network-link .material-icons {
  font-size: 18px;
}

/* واکنش‌گرایی */
@media (max-width: 576px) {
  .dp-network-card {
    flex-direction: column;
    text-align: center;
  }

  .dp-network-logo-wrapper {
    margin-bottom: 0.5rem;
  }
}

/* ===================== Auth Pages ===================== */

/* تنظیمات کلی صفحه */
body.auth-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa; /* fallback */
}

/* لایهٔ عکس تار پس‌زمینه */
.auth-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/auth-bg.jpg') center/cover no-repeat;
  filter: blur(12px);
  transform: scale(1.1);       /* جلوگیری از لبه‌های تار */
  z-index: 0;
}

/* لایهٔ تیرهٔ روی عکس */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* کانتینر اصلی فرم */
.auth-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  margin: auto;               /* وسط‌چین شدن کامل */
  padding: 1rem;
  box-sizing: border-box;
}

/* کارت شیشه‌ای */
.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}

/* لوگو */
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  height: 50px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

/* عنوان و زیرعنوان */
.auth-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.8rem;
}

/* گروه‌های ورودی */
.auth-input-group {
  margin-bottom: 1.2rem;
  text-align: right;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ورودی‌های متن */
.auth-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  color: #fff;
  transition: 0.3s;
  text-align: right;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 144, 232, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ردیف فراموشی رمز و ذخیره رمز */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1.2rem;
  font-size: 0.85rem;
}

.auth-link {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* چک‌باکس ذخیره رمز */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.85rem;
}

.auth-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-block;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}

.auth-checkbox input:checked + .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.auth-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* دکمهٔ اصلی */
.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* فوتر (لینک‌ها) */
.auth-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.auth-footer a {
  color: var(--color-primary-light);
  font-weight: 600;
  text-decoration: none;
}

/* دکمه بازگشت به خانه */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  margin-top: 1rem;
}

.auth-back-link:hover {
  color: #fff;
}

.auth-back-link .material-icons {
  font-size: 18px;
}

/* ===================== دکمه مشاهده سایت (شبکه‌ها) ===================== */
.network-site-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  text-align: center;
  background: linear-gradient(135deg, #0090E8, #0D3675);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
}

.network-site-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

.network-site-btn .material-icons {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 0.3rem;
}