/* ==========================================================================
   1. FONTS & CSS VARIABLES
   ========================================================================== */
@font-face {
  font-family: "DoranFaNum";
  src:
    url("DoranFaNum-Bold.woff2") format("woff2"),
    url("DoranFaNum-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Doran";
  src:
    url("DoranFaNum-Bold.woff") format("woff"),
    url("DoranFaNum-Bold.woff2") format("woff2");
}

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

:root {
  --radius: 12px;
  --transition: all 0.3s ease;
  /* وضعیت لایت‌مود (پیش‌فرض) */
  --bg-body: #f4f6fb;
  --bg-color: #f4f6fb;
  --surface: #ffffff;
  --card-bg: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --text-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* متغیرهای دارک‌مود نئو-بنتو V4 */
body.dark-mode {
  --bg-body: #090d16;
  --bg-color: #0b0f19;
  --surface: #131b2e;
  --card-bg: #131b2e;
  --surface-glass: rgba(19, 27, 46, 0.9);
  --text-dark: #f8fafc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   2. BASE & LAYOUT STRUCTURE
   ========================================================================== */
html,
body {
  height: 100%;
}

body {
  font-family: "DoranFaNum", "Doran", Tahoma, sans-serif !important;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.3s,
    color 0.3s;
}

button,
input,
textarea,
select {
  font-family: inherit !important;
}

.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 90px;
  box-sizing: border-box;
}

.admin-footer,
.footer {
  flex-shrink: 0;
}

/* ==========================================================================
   3. DARK MODE TOGGLE BUTTON
   ========================================================================== */
.dark-mode-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: var(--surface);
  color: var(--text-dark);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1000;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   4. HEADER & BRANDING (هدر پایه و کارت برند نئو-بنتو)
   ========================================================================== */
.header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

.logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: var(--shadow);
  border: 3px solid var(--surface);
  background-color: #eee;
}

.cafe-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary, #333);
  margin-bottom: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* کارت برند بالای صفحه منو V4 */
.v5-header-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.v5-brand-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.v5-brand-logo {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.v5-branch-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
}

.v5-branch-status-pill.open {
  background: #dcfce7;
  color: #15803d;
}

.v5-branch-status-pill.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.v5-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.v5-dot.open {
  background: #10b981;
  animation: pulseDotOpen 1.8s infinite;
}

.v5-dot.closed {
  background: #ef4444;
  animation: pulseDotClosed 1.8s infinite;
}

@keyframes pulseDotOpen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseDotClosed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   5. SEARCH BAR & SEARCH RESULTS
   ========================================================================== */
.v5-search-container {
  position: relative;
  margin-bottom: 28px;
}

.v5-search-container input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
  color: var(--text-dark);
}

.v5-search-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(6, 76, 141, 0.12);
}

.v5-search-container i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
}

body.dark-mode .v5-search-container input {
  background: #131b2e;
  color: #fff;
}

#searchResults {
  display: none;
}

/* ==========================================================================
   6. BENTO SHOWCASE GRID (بنتو شوکیس تخفیف‌ها و محبوب‌ترین‌ها)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.bento-card-hero {
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  scroll-margin-top: 20px;
}

.bento-card-hero.discount-theme {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bento-card-hero.discount-theme::after {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #ef4444;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.bento-card-hero.popular-theme {
  background: linear-gradient(135deg, #1e293b 0%, #1e1b18 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bento-card-hero.popular-theme::after {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f59e0b;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.bento-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
}

.bento-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
}

/* ==========================================================================
   7. ZIG-ZAG NEO-BENTO ITEM CARDS (کارت‌های مدرن زیگزاگی V4)
   ========================================================================== */
.category-section-v5 {
  margin-bottom: 35px;
  scroll-margin-top: 20px;
}

.cat-title-v5 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.cat-title-v5 i {
  color: var(--primary);
}

.v5-item-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-sizing: border-box;
}

.category-section-v5 .v5-item-card:nth-child(even) {
  flex-direction: row-reverse;
}

.v5-item-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  border-color: rgba(6, 76, 141, 0.2);
}

.v5-item-card.unavailable {
  opacity: 0.6;
  filter: grayscale(0.7);
}

.v5-item-thumb {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.v5-item-thumb:hover {
  transform: scale(1.05);
}

.v5-item-thumb-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.v5-item-details {
  flex: 1;
  min-width: 0;
}

.v5-item-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v5-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v5-price-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 12px;
}

.v5-item-price-current {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.v5-item-price-old {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.micro-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.micro-tag.pop {
  background: #fef3c7;
  color: #b45309;
}

.micro-tag.disc {
  background: #fee2e2;
  color: #b91c1c;
}

body.dark-mode .v5-price-wrapper {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .v5-item-price-current {
  color: #fff;
}

/* ==========================================================================
   8. FLOATING BOTTOM DOCK (داک شیشه‌ای شناور پایین صفحه V4)
   ========================================================================== */
.v5-floating-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 92%;
  overflow-x: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  transition:
    bottom 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.v5-floating-dock::-webkit-scrollbar {
  display: none;
}

@keyframes scrollHintEffect {
  0% {
    transform: translateX(-50%) translateX(0);
  }
  30% {
    transform: translateX(-50%) translateX(-15px);
  }
  60% {
    transform: translateX(-50%) translateX(10px);
  }
  100% {
    transform: translateX(-50%) translateX(0);
  }
}

.dock-hint-anim {
  animation: scrollHintEffect 2.2s cubic-bezier(0.25, 1, 0.5, 1) 1s 1;
}

.dock-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
}

.dock-item-btn i {
  font-size: 0.9rem;
  color: var(--primary);
}

.dock-item-btn:hover,
.dock-item-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(6, 76, 141, 0.3);
}

.dock-item-btn.active i {
  color: #ffffff;
}

.dock-item-btn.special-disc {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-item-btn.special-disc i {
  color: #ffffff !important;
}

.dock-item-btn.special-pop {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-item-btn.special-pop i {
  color: #ffffff !important;
}

body.dark-mode .v5-floating-dock {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dock-item-btn {
  color: #cbd5e1;
}

/* ==========================================================================
   9. RESPONSIVE FOR MOBILE (V4)
   ========================================================================== */
@media (max-width: 580px) {
  .v5-item-thumb,
  .v5-item-thumb-placeholder {
    width: 85px;
    height: 85px;
    border-radius: 14px;
  }
  .v5-item-card {
    padding: 12px;
    gap: 12px;
  }
  .v5-item-name {
    font-size: 0.98rem;
  }
  .v5-item-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 4;
  }
  .v5-price-wrapper {
    padding: 4px 10px;
    gap: 8px;
  }
  .v5-item-price-current {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   10. BRANCH SELECTION & GEO-LOCATION (صفحه انتخاب شعبه V4)
   ========================================================================== */
.branch-card-v5 {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.branch-card-v5:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.branch-card-v5.nearest {
  border: 2px solid var(--primary);
}

.branch-card-v5.nearest::before {
  content: "⚡ نزدیک‌ترین شعبه";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  padding: 3px 14px;
  border-radius: 20px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.b-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.b-status {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.b-status.open {
  background: #dcfce7;
  color: #15803d;
}

.b-status.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.b-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.b-dot.open {
  background: #10b981;
  animation: pulseDotOpen 1.8s infinite;
}

.b-dot.closed {
  background: #ef4444;
  animation: pulseDotClosed 1.8s infinite;
}

.b-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #64748b;
}

.b-info a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.b-closed-reason {
  background: #fff5f5;
  border-right: 3px solid #ef4444;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #991b1b;
  line-height: 1.6;
}

.b-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.25s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.b-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}

.geo-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.geo-box i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.geo-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}

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

body.dark-mode .branch-card-v5,
body.dark-mode .geo-box {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .b-title {
  color: #f8fafc;
}

body.dark-mode .b-info {
  border-color: #334155;
  color: #94a3b8;
}

body.dark-mode .b-info a {
  color: #f1f5f9;
}

body.dark-mode .b-closed-reason {
  background: #3a1a1a;
  border-right-color: #f87171;
  color: #fca5a5;
}

/* ==========================================================================
   11. CLOSED BRANCH NOTICE (پیام شعبه تعطیل)
   ========================================================================== */
.closed-branch-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   12. FOOTERS
   ========================================================================== */
.footer {
  background-color: var(--surface);
  padding: 30px 20px 40px 20px;
  text-align: center;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-section {
  width: 100%;
  margin-bottom: 0;
}

.footer-section h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.footer-section a {
  color: var(--primary, #064c8d);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  transition: var(--transition);
}

.footer-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phone-link {
  display: inline-flex !important;
  align-items: center;
  background-color: var(--primary, #064c8d);
  color: #ffffff !important;
  padding: 10px 25px !important;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.phone-link i {
  margin-left: 10px;
  font-size: 1.2rem;
}

.phone-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.admin-footer {
  text-align: center;
  padding: 20px 20px;
  font-size: 0.9rem;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  position: relative;
  width: 100%;
}

.admin-footer,
.admin-footer a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
}

.admin-footer a:hover {
  color: #fff200 !important;
}

/* ==========================================================================
   13. PHOTO PREVIEW MODAL
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 95%;
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  box-sizing: border-box;
}

.modal-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: calc(var(--radius) - 5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-modal-btn:hover {
  transform: scale(1.1);
}

/* ریسپانسیو مودال */
@media (min-width: 769px) {
  .modal-content img {
    max-height: 85vh;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 8px;
  }
  .modal-content img {
    width: 100%;
    height: auto;
    max-height: 75vh;
  }
  .close-modal-btn {
    top: -40px;
    right: 0;
    font-size: 2rem;
  }
}
