/* ==========================================================================
   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-color: #f8fafc;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(128, 128, 128, 0.1);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* متغیرهای دارک‌مود لوکس V3 */
body.dark-mode {
  --bg-color: #0b0f19;
  --bg-page: #0b0f19;
  --card-bg: #1e293b;
  --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-page);
  color: var(--text-main);
  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: 1200px;
  margin: 0 auto;
  padding: 15px 16px 40px;
  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(--card-bg);
  color: var(--text-main);
  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: 100;
  transition: var(--transition);
}

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

/* ==========================================================================
   4. HEADER & CAFE BRANDING
   ========================================================================== */
.header {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  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(--card-bg);
  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(--card-bg);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 8px;
}

.status-light.open {
  background-color: #10b981;
  animation: pulse 2s infinite;
}

.status-light.closed {
  background-color: #ef4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   5. SEARCH BAR & SEARCH RESULTS
   ========================================================================== */
.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 14px 45px 14px 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--bg-color);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  background: var(--card-bg);
  border-color: var(--primary, #064c8d);
  box-shadow: 0 0 0 4px rgba(6, 76, 141, 0.1);
}

.search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

#searchResults {
  display: none;
}

.search-no-result {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1.5px dashed #cbd5e1;
  margin: 20px auto;
  box-sizing: border-box;
}

body.dark-mode .search-no-result {
  border-color: #334155;
}

/* ==========================================================================
   6. STICKY CATEGORY NAV (نوار شناور پیل‌های دسته‌بندی V3)
   ========================================================================== */
.sticky-category-nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 25px;
}

.category-scroll-inner {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  display: flex;
  gap: 10px;
  padding: 2px 16px;
  box-sizing: border-box;
}

.category-scroll-inner::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155 !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cat-pill i {
  font-size: 0.95rem;
  color: var(--primary);
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(6, 76, 141, 0.25);
  transform: translateY(-1px);
}

.cat-pill:hover i,
.cat-pill.active i {
  color: #ffffff !important;
}

body.dark-mode .sticky-category-nav {
  background: rgba(11, 15, 25, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cat-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0 !important;
}

body.dark-mode .cat-pill:hover,
body.dark-mode .cat-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   7. CATEGORY BANNERS & SPECIAL SECTIONS (بنرهای سربرگ دسته‌ها)
   ========================================================================== */
.menu-section {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.category-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.58) 100%);
  z-index: 1;
}

.category-banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  width: 100%;
}

.category-banner-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.category-banner-title i {
  color: #fcd34d;
}

.category-banner-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 6px 0 0;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* تایمر تخفیف */
.discount-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #ef4444;
  color: #dc2626;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.discount-timer-pill i {
  color: #dc2626;
  font-size: 1.1rem;
  animation: spinSand 3s infinite linear;
}

@keyframes spinSand {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body.dark-mode .discount-timer-pill {
  background: #1e293b;
  border-color: #ef4444;
  color: #f87171;
}

/* ==========================================================================
   8. MODERN FOOD GRID & FOOD CARDS (کارت‌های مدرن غذایی V3)
   ========================================================================== */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.food-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.food-card.unavailable {
  opacity: 0.65;
  filter: grayscale(0.7);
}

.food-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
}

.food-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.food-card:hover .food-image {
  transform: scale(1.08);
}

.food-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2.5rem;
}

.badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
  z-index: 2;
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
  z-index: 2;
}

.badge-unavailable {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(2px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 3;
}

.food-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.food-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

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

.food-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #f1f5f9;
}

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

.price-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.price-old {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

body.dark-mode .food-card {
  border-color: #334155;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .food-price-row {
  border-color: #334155;
}

body.dark-mode .food-image-wrapper {
  background: #0f172a;
}

/* ==========================================================================
   9. RESPONSIVE FOR MOBILE (V3)
   ========================================================================== */
@media (max-width: 640px) {
  .food-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .food-content {
    padding: 12px;
  }
  .food-name {
    font-size: 0.95rem;
  }
  .food-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .price-current {
    font-size: 1.05rem;
  }
  .category-banner {
    min-height: 90px;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .category-banner-title {
    font-size: 1.15rem;
  }
  .discount-timer-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   10. BRANCH SELECTION & GEO-LOCATION (صفحه انتخاب شعبه)
   ========================================================================== */
.branch-selection {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

.branch-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.branch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.branch-card.nearest {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(6, 76, 141, 0.15);
}

.branch-card.nearest::before {
  content: "نزدیک‌ترین شعبه به شما";
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.branch-card.closed {
  background: #fafafa;
  opacity: 0.9;
}

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

.branch-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
}

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

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.open {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-dot.closed {
  background: #ef4444;
}

.branch-details-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 16px;
}

.branch-detail-item {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.branch-detail-item a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.branch-closed-reason {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fef2f2;
  border-right: 3px solid #ef4444;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #991b1b;
}

.branch-card a.select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.branch-card a.select-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}

.branch-card.closed a.select-btn {
  background: #64748b;
  box-shadow: none;
}

.geo-permission-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

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

.geo-permission-box h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 800;
}

.geo-permission-box p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

.geo-permission-box .btn-allow,
.geo-permission-box .btn-skip {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition: 0.2s;
}

.geo-permission-box .btn-allow {
  background: var(--primary);
  color: #fff;
  border: none;
}

.geo-permission-box .btn-skip {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  margin-right: 10px;
}

@media (max-width: 480px) {
  .geo-permission-box {
    text-align: center;
  }
  .geo-permission-box .btn-allow,
  .geo-permission-box .btn-skip {
    display: block;
    width: 100%;
    margin: 8px 0 0 0 !important;
  }
}

.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: 600;
  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;
}

.geo-toast.success {
  background: rgba(16, 185, 129, 0.95);
}

.geo-toast.error {
  background: rgba(239, 68, 68, 0.95);
}

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

body.dark-mode .branch-name {
  color: #f8fafc;
}

body.dark-mode .branch-details-row {
  border-color: #334155;
}

body.dark-mode .branch-detail-item,
body.dark-mode .branch-detail-item a {
  color: #94a3b8;
}

body.dark-mode .branch-card.closed {
  background: #0f172a;
}

body.dark-mode .geo-permission-box {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .geo-permission-box h3 {
  color: #f8fafc;
}

body.dark-mode .geo-permission-box p {
  color: #94a3b8;
}

body.dark-mode .geo-permission-box .btn-skip {
  border-color: #475569;
  color: #94a3b8;
}

/* ==========================================================================
   11. CLOSED BRANCH NOTICE (پیام شعبه تعطیل)
   ========================================================================== */
.closed-branch-box {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  background: #fff5f5;
  border-radius: 20px;
  border: 1px solid #fecaca;
  box-sizing: border-box;
}

body.dark-mode .closed-branch-box {
  background: #1e1e24;
  border-color: #5c2626;
}

/* ==========================================================================
   12. FOOTERS
   ========================================================================== */
.footer {
  background-color: var(--card-bg, #ffffff);
  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-main);
  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);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  margin: 0 5px;
  color: var(--primary, #064c8d);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a i {
  font-size: 1.5rem;
}

.social-links a:hover {
  background: #e1306c;
  color: #fff;
  transform: translateY(-3px);
}

.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(--card-bg);
  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: 1000;
  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(--card-bg);
  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;
  }
}