@font-face {
  font-display: swap;
  font-family: 'IranYekan';
  font-weight: bold;
  src: url('../fonts/IranYekan/iranyekanwebboldfanum.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'IranYekan';
  font-weight: normal;
  src: url('../fonts/IranYekan/iranyekanwebregularfanum.ttf') format('truetype');
}

:root {
  --etedal-primary: #00aaad;
  --etedal-secondary: #00B494;
  --etedal-error: #f44336;
  --etedal-info: #039BE5;
  --etedal-ink: #14212b;
  --etedal-muted: #6b7a86;
  --etedal-header-h: 64px;
  --etedal-bottom-h: calc(64px + env(safe-area-inset-bottom));
}

html, body.etedal-body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: IranYekan, IRANSans, Tahoma, sans-serif;
  background: #fff;
  min-height: 100%;
  color: var(--etedal-ink);
}

a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }
button { font-family: inherit; }

.etedal-main { position: relative; min-height: 100vh; padding-bottom: var(--etedal-bottom-h); }
.etedal-page { min-height: calc(100vh - var(--etedal-header-h) - var(--etedal-bottom-h)); }

.etedal-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--etedal-header-h);
  padding: 0 clamp(16px, 4vw, 8%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,33,43,.06);
  box-shadow: 0 8px 24px rgba(8, 10, 37, .04);
}
.etedal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}
.etedal-header-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}
.etedal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.etedal-logo img { height: 40px; display: block; }
.etedal-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--etedal-ink);
}

.etedal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  flex: 1;
}
.etedal-nav > a,
.etedal-dd-btn {
  color: var(--etedal-ink);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease, color .2s ease;
}
.etedal-nav > a:hover,
.etedal-dd-btn:hover { background: rgba(0,170,173,.08); color: var(--etedal-primary); }
.etedal-nav > a.active { color: var(--etedal-info); font-weight: 700; background: rgba(3,155,229,.08); }

.etedal-dd { position: relative; }
.etedal-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15,28,46,.14);
  border: 1px solid rgba(20,33,43,.06);
  border-radius: 14px;
  min-width: 240px;
  z-index: 400;
  padding: 8px;
  flex-direction: column;
}
.etedal-dd.open .etedal-dd-menu,
.etedal-dd:hover .etedal-dd-menu { display: flex; }
.etedal-dd-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--etedal-ink);
  font-size: 14px;
}
.etedal-dd-menu a:hover { background: rgba(0,170,173,.08); color: var(--etedal-primary); }

.etedal-header-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.etedal-ghost-link {
  font-size: 13px;
  color: var(--etedal-muted);
  padding: 8px 10px;
}
.etedal-ghost-link:hover { color: var(--etedal-primary); }
.etedal-credit-btn {
  border: 1px solid var(--etedal-secondary);
  color: var(--etedal-secondary);
  background: transparent;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.etedal-credit-btn:hover {
  background: var(--etedal-secondary);
  color: #fff;
  transform: translateY(-1px);
}
.etedal-cta-btn {
  background: linear-gradient(135deg, var(--etedal-primary), var(--etedal-secondary));
  color: #fff !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 8px 18px rgba(0,170,173,.28);
  transition: transform .2s ease, filter .2s ease;
}
.etedal-cta-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.etedal-home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--etedal-header-h) - var(--etedal-bottom-h));
  padding: 20px 10px;
  overflow: hidden;
}
.etedal-home:before {
  content: '';
  background-color: #0e0e0e99;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.etedal-home-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50%;
}
.etedal-home-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.etedal-calendar-wrap {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.etedal-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 4px;
  font-weight: bold;
  font-size: 16px;
}
.etedal-cal-header button {
  border: 0;
  background: transparent;
  color: var(--etedal-primary);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
}
.etedal-weekdays,
.etedal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0 10px 10px;
  text-align: center;
}
.etedal-weekdays span {
  font-size: 12px;
  color: #888;
  padding: 8px 0;
}
.etedal-days button {
  border: 0;
  background: transparent;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  color: rgba(0,0,0,.8);
  cursor: not-allowed;
  pointer-events: none;
}
.etedal-days button.greenDay {
  background: #dcffcc !important;
  color: #2e7d32 !important;
  cursor: pointer;
  pointer-events: auto;
  font-weight: 700;
}
.etedal-days button.offDay,
.etedal-days button.weekend {
  color: var(--etedal-error) !important;
}
.etedal-days button.empty { visibility: hidden; }
.etedal-cal-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem 1.25rem;
}
.etedal-cal-footer button {
  border: 0;
  background: transparent;
  color: var(--etedal-primary);
  font-size: 14px;
  cursor: pointer;
}
.etedal-loading {
  color: #fff;
  z-index: 2;
  position: relative;
  padding: 2rem;
}
.d-none { display: none !important; }

.etedal-social {
  position: absolute;
  right: 200px;
  bottom: 20px;
  z-index: 100;
  background: #f8fafd;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.etedal-social img { width: 30px; height: 30px; }
.etedal-social img:hover { opacity: .5; }
.etedal-enamad {
  height: 150px;
  width: 150px;
  display: block;
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #f8fafd;
  border-radius: 10px;
  padding: 5px;
}
.etedal-enamad img { width: 100%; height: 100%; }

.etedal-modal-backdrop,
.etedal-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,16,24,.48);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.etedal-modal-backdrop {
  align-items: center;
  padding: 16px;
}
.etedal-modal-backdrop.d-none,
.etedal-sheet-backdrop.d-none { display: none; }

.etedal-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  min-width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.etedal-modal h2 { margin: 0 0 8px; text-align: center; font-size: 20px; }
.etedal-modal input {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 12px;
}
.etedal-modal button {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: var(--etedal-secondary);
  color: #fff;
  cursor: pointer;
}
.etedal-modal button.ghost {
  background: transparent;
  color: #666;
}

.etedal-sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
  animation: sheetUp .28s ease;
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.etedal-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d7dde3;
  margin: 4px auto 8px;
}
.etedal-sheet h3 {
  margin: 0 4px 6px;
  font-size: 1rem;
}
.etedal-sheet a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f8fa;
  border: 1px solid rgba(20,33,43,.05);
}
.etedal-sheet a:hover { background: rgba(0,170,173,.1); }
.etedal-sheet a strong { font-size: .95rem; }
.etedal-sheet a span { font-size: .78rem; color: var(--etedal-muted); }
.etedal-sheet-close {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--etedal-muted);
  padding: 12px;
  cursor: pointer;
}

.etedal-bottom-nav {
  display: grid;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 500;
  height: calc(64px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(20,33,43,.08);
  box-shadow: 0 -8px 24px rgba(8,10,37,.06);
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.etedal-bottom-nav a,
.etedal-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--etedal-muted);
  font-size: 11px;
  cursor: pointer;
  border-radius: 12px;
  padding: 6px 4px;
}
.etedal-bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.etedal-bottom-nav a.active,
.etedal-bottom-nav button.bn-orders {
  color: var(--etedal-primary);
  font-weight: 700;
}
.etedal-bottom-nav a:hover,
.etedal-bottom-nav button:hover {
  background: rgba(0,170,173,.08);
  color: var(--etedal-primary);
}

.etedal-contact {
  position: relative;
  min-height: calc(100vh - var(--etedal-header-h) - var(--etedal-bottom-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.etedal-contact:before {
  content: '';
  background: #0e0e0e99;
  position: absolute;
  inset: 0;
}
.etedal-contact-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.95);
  border-radius: 16px;
  padding: 28px;
  max-width: 720px;
  width: 100%;
}
.etedal-contact-card h1 { margin-top: 0; }
.etedal-contact-card h2 { font-size: 15px; font-weight: normal; line-height: 1.8; }
.etedal-contact-card h2 b { margin-left: 6px; }

@media (max-width: 959px) {
  .etedal-nav-desktop { display: none !important; }
  .etedal-brand-text { font-size: .95rem; }
  .etedal-home { padding-bottom: 40px; }
  .etedal-social, .etedal-enamad {
    position: static;
    margin: 16px 0 0;
  }
  .etedal-home-content { max-width: 100%; }
  .etedal-credit-btn { padding: 8px 14px; font-size: 13px; }
}
