/* Esheba — Home Page Design System */

/* ── Light theme (default) ── */
:root,
[data-theme="light"] {
  --esheba-navy: #0B3D4C;
  --esheba-teal: #1A7A8C;
  --esheba-cyan: #3DB8C8;
  --esheba-gold: #D4AF37;
  --esheba-gold-light: #F0D878;
  --esheba-bg: #F4F8FA;
  --esheba-bg-alt: #E8F2F5;
  --esheba-surface: #FFFFFF;
  --esheba-text: #1A2B32;
  --esheba-muted: #5A7179;
  --esheba-border: rgba(11, 61, 76, 0.1);
  --esheba-shadow: 0 4px 24px rgba(11, 61, 76, 0.08);
  --esheba-shadow-lg: 0 20px 60px rgba(11, 61, 76, 0.14);
  --esheba-header-bg: rgba(255, 255, 255, 0.82);
  --esheba-header-bg-scrolled: rgba(255, 255, 255, 0.95);
  --esheba-hero-bg: linear-gradient(180deg, #E8F4F7 0%, #F4F8FA 100%);
  --esheba-hero-glow-1: rgba(61, 184, 200, 0.15);
  --esheba-hero-glow-2: rgba(212, 175, 55, 0.08);
  --esheba-grid-color: rgba(11, 61, 76, 0.03);
  --esheba-inquiry-input-bg: var(--esheba-bg);
  --esheba-result-bg: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(61, 184, 200, 0.08));
  --esheba-result-border: rgba(34, 197, 94, 0.2);
  --esheba-overlay: rgba(11, 61, 76, 0.4);
  --esheba-theme-color: #0B3D4C;
  --esheba-on-gold: #0A2E38;
  --esheba-on-gold-hover: #061A21;
  --esheba-on-primary: #FFFFFF;
  --esheba-radius: 16px;
  --esheba-radius-sm: 10px;
  --esheba-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --esheba-font: 'Vazirmatn', Tahoma, sans-serif;
  --esheba-header-h: 72px;
  --esheba-table-head-bg: #E8F2F5;
  --esheba-table-head-text: #3D5560;
  --esheba-table-row-alt: rgba(11, 61, 76, 0.03);
  --esheba-table-row-hover: rgba(26, 122, 140, 0.06);
  --esheba-logo-bg: #0B3D4C;
}

/* ── Dark theme ── */
[data-theme="dark"] {
  --esheba-navy: #A8DADC;
  --esheba-teal: #62C4D4;
  --esheba-cyan: #3DB8C8;
  --esheba-gold: #D4AF37;
  --esheba-gold-light: #E8C860;
  --esheba-bg: #0D1B21;
  --esheba-bg-alt: #152830;
  --esheba-surface: #1A2F38;
  --esheba-text: #E8F2F5;
  --esheba-muted: #8BA3AD;
  --esheba-border: rgba(168, 218, 220, 0.12);
  --esheba-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --esheba-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --esheba-header-bg: rgba(13, 27, 33, 0.88);
  --esheba-header-bg-scrolled: rgba(13, 27, 33, 0.96);
  --esheba-hero-bg: linear-gradient(180deg, #0F2430 0%, #0D1B21 100%);
  --esheba-hero-glow-1: rgba(61, 184, 200, 0.12);
  --esheba-hero-glow-2: rgba(212, 175, 55, 0.06);
  --esheba-grid-color: rgba(168, 218, 220, 0.04);
  --esheba-inquiry-input-bg: #152830;
  --esheba-result-bg: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(61, 184, 200, 0.1));
  --esheba-result-border: rgba(34, 197, 94, 0.25);
  --esheba-overlay: rgba(0, 0, 0, 0.6);
  --esheba-theme-color: #0D1B21;
  --esheba-on-gold: #0A2E38;
  --esheba-on-gold-hover: #061A21;
  --esheba-on-primary: #FFFFFF;
  --esheba-table-head-bg: #1E3A45;
  --esheba-table-head-text: #C5DDE4;
  --esheba-table-row-alt: rgba(255, 255, 255, 0.03);
  --esheba-table-row-hover: rgba(98, 196, 212, 0.08);
  --esheba-logo-bg: #152830;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.esheba-body {
  margin: 0;
  font-family: var(--esheba-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--esheba-text);
  background: var(--esheba-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--esheba-transition), color var(--esheba-transition);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--esheba-teal);
  text-decoration: none;
  transition: color var(--esheba-transition);
}

a:hover {
  color: var(--esheba-navy);
}

/* ── Header ── */

.esheba-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--esheba-header-h);
  background: var(--esheba-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--esheba-border);
  transition: box-shadow var(--esheba-transition), background var(--esheba-transition);
}

.esheba-header.scrolled {
  box-shadow: var(--esheba-shadow);
  background: var(--esheba-header-bg-scrolled);
}

.esheba-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.esheba-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--esheba-navy);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.esheba-brand:hover {
  color: var(--esheba-navy);
}

.esheba-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--esheba-logo-bg);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: none;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--esheba-logo-bg) 80%, #fff 12%);
}

.esheba-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* پس‌زمینه مشکی لوگو حذف می‌شود و E سفید روی بک‌گراند تم می‌نشیند */
  mix-blend-mode: lighten;
}

.esheba-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.esheba-brand__fa {
  font-size: 1.15rem;
}

.esheba-brand__en,
.esheba-brand__tagline {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--esheba-muted);
  letter-spacing: 0.01em;
}

.esheba-brand__tagline {
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.esheba-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.esheba-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--esheba-muted);
  font-weight: 500;
  font-size: 0.925rem;
  border-radius: var(--esheba-radius-sm);
  transition: all var(--esheba-transition);
}

.esheba-nav__link:hover,
.esheba-nav__link.active {
  color: var(--esheba-navy);
  background: var(--esheba-bg-alt);
}

.esheba-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.esheba-header__login {
  white-space: nowrap;
  border-radius: 4px;
  box-shadow: none;
}

/* منوی مهمان جدا حذف شد — صفحات سایت از کشوی موبایل می‌آیند */

.esheba-account-menu {
  position: relative;
}

.esheba-account-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-surface);
  color: var(--esheba-navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.esheba-account-menu__toggle:hover,
.esheba-account-menu.open .esheba-account-menu__toggle {
  background: var(--esheba-bg-alt);
  border-color: color-mix(in srgb, var(--esheba-teal) 40%, var(--esheba-border));
  box-shadow: none;
}

.esheba-account-menu__user {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.esheba-account-menu__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.esheba-account-menu.open .esheba-account-menu__chevron {
  transform: rotate(180deg);
}

.esheba-account-menu__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: min(86vw, 14.5rem);
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  z-index: 80;
  animation: esheba-menu-in 0.16s ease;
}

@keyframes esheba-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.esheba-account-menu__group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.esheba-account-menu__group + .esheba-account-menu__group {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--esheba-border);
}

.esheba-account-menu__group-title {
  display: block;
  padding: 0.1rem 0.65rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--esheba-muted);
}

.esheba-account-menu__group--account {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.esheba-account-menu__group + .esheba-account-menu__group--account {
  border-top: 1px solid var(--esheba-border);
  margin-top: 0.35rem;
  padding-top: 0.4rem;
}

.esheba-account-menu__item {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--esheba-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.esheba-account-menu__item:hover {
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
  text-decoration: none;
}

.esheba-account-menu__item--accent {
  color: var(--esheba-teal, #0d9488);
}

.esheba-account-menu__item--cta {
  background: var(--esheba-navy);
  color: #fff;
  text-align: center;
  border-radius: 4px;
}

.esheba-account-menu__item--cta:hover {
  background: color-mix(in srgb, var(--esheba-navy) 88%, #000);
  color: #fff;
}

.esheba-account-menu__item--danger {
  color: #b91c1c;
}

.esheba-account-menu__item--danger:hover {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

[data-theme="dark"] .esheba-account-menu__item--danger {
  color: #fca5a5;
}

[data-theme="dark"] .esheba-account-menu__item--danger:hover {
  background: rgba(252, 165, 165, 0.1);
}

[data-theme="dark"] .esheba-account-menu__panel {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.esheba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--esheba-font);
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--esheba-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--esheba-transition);
  white-space: nowrap;
  text-decoration: none;
}

a.esheba-btn:hover,
a.esheba-btn:focus {
  text-decoration: none;
}

.esheba-btn--primary {
  background: linear-gradient(135deg, #0B3D4C, #1A7A8C);
  color: var(--esheba-on-primary);
  box-shadow: 0 4px 16px rgba(11, 61, 76, 0.3);
}

.esheba-btn--primary:hover,
.esheba-btn--primary:focus,
a.esheba-btn--primary:hover,
a.esheba-btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 61, 76, 0.35);
  color: var(--esheba-on-primary);
}

.esheba-btn--gold {
  background: linear-gradient(135deg, #C9A020, #E8C860);
  color: var(--esheba-on-gold);
  box-shadow: 0 4px 16px rgba(180, 140, 20, 0.35);
  font-weight: 700;
}

.esheba-btn--gold:hover,
.esheba-btn--gold:focus,
a.esheba-btn--gold:hover,
a.esheba-btn--gold:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(180, 140, 20, 0.45);
  background: linear-gradient(135deg, #B8910A, #DDB830);
  color: var(--esheba-on-gold-hover);
}

.esheba-btn--outline {
  background: transparent;
  color: var(--esheba-navy);
  border: 1.5px solid var(--esheba-border);
}

.esheba-btn--outline:hover {
  border-color: var(--esheba-teal);
  background: var(--esheba-bg-alt);
  color: var(--esheba-navy);
}

.esheba-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.esheba-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.esheba-btn--ghost {
  background: transparent;
  color: var(--esheba-muted);
  padding: 0.5rem 0.85rem;
}

.esheba-btn--ghost:hover {
  color: var(--esheba-navy);
  background: var(--esheba-bg-alt);
}

.esheba-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius-sm);
  color: var(--esheba-navy);
  cursor: pointer;
  transition: all var(--esheba-transition);
  flex-shrink: 0;
}

.esheba-theme-toggle:hover {
  border-color: var(--esheba-teal);
  background: var(--esheba-surface);
}

.esheba-theme-toggle svg {
  width: 20px;
  height: 20px;
}

.esheba-theme-toggle .icon-sun,
.esheba-theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .esheba-theme-toggle .icon-moon,
[data-theme="dark"] .esheba-theme-toggle .icon-sun {
  display: block;
}

.esheba-btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.esheba-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.esheba-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--esheba-bg-alt);
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  cursor: pointer;
}

.esheba-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--esheba-navy);
  border-radius: 2px;
  transition: var(--esheba-transition);
}

.esheba-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.esheba-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.esheba-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile site pages drawer — slides from the right */
.esheba-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.esheba-mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.esheba-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.esheba-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: var(--esheba-surface);
  border-left: 1px solid var(--esheba-border);
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.16);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.esheba-mobile-nav.open .esheba-mobile-nav__panel {
  transform: translateX(0);
}

.esheba-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--esheba-border);
  background: var(--esheba-bg-alt);
}

.esheba-mobile-nav__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.esheba-mobile-nav__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--esheba-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.esheba-mobile-nav__close:hover {
  background: var(--esheba-surface);
  color: var(--esheba-navy);
}

.esheba-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.75rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.esheba-mobile-nav__link {
  display: block;
  padding: 0.85rem 0.9rem;
  color: var(--esheba-text);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 4px;
  border-bottom: 1px solid var(--esheba-border);
}

.esheba-mobile-nav__list li:last-child .esheba-mobile-nav__link {
  border-bottom: 0;
}

.esheba-mobile-nav__link:hover,
.esheba-mobile-nav__link.is-active {
  background: color-mix(in srgb, var(--esheba-teal) 10%, transparent);
  color: var(--esheba-teal);
}

body.esheba-site-nav-open {
  overflow: hidden;
}

/* ── Hero ── */

.esheba-hero {
  position: relative;
  padding: calc(var(--esheba-header-h) + 3rem) 1.25rem 4rem;
  overflow: hidden;
}

.esheba-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, var(--esheba-hero-glow-1), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, var(--esheba-hero-glow-2), transparent),
    var(--esheba-hero-bg);
  z-index: 0;
}

.esheba-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--esheba-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--esheba-grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  z-index: 0;
}

.esheba-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.esheba-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--esheba-teal);
  margin-bottom: 1.25rem;
  box-shadow: var(--esheba-shadow);
}

.esheba-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.esheba-hero__title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--esheba-navy);
  margin: 0 0 1rem;
}

.esheba-hero__title span {
  background: linear-gradient(135deg, var(--esheba-teal), var(--esheba-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.esheba-hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--esheba-muted);
  max-width: 540px;
  margin: 0 0 1rem;
}

.esheba-hero__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 800;
  color: var(--esheba-navy);
  line-height: 1.5;
}

.esheba-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.esheba-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.esheba-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--esheba-muted);
}

.esheba-trust-item svg {
  flex-shrink: 0;
  color: var(--esheba-teal);
}

/* Hero card mockup */
.esheba-hero__visual {
  position: relative;
}

.esheba-inquiry-card {
  background: var(--esheba-surface);
  border-radius: var(--esheba-radius);
  box-shadow: var(--esheba-shadow-lg);
  border: 1px solid var(--esheba-border);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}

.esheba-inquiry-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--esheba-navy), var(--esheba-teal));
  color: #fff;
}

.esheba-inquiry-card__header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.esheba-inquiry-card__live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.9;
}

.esheba-inquiry-card__body {
  padding: 1.25rem;
}

.esheba-inquiry-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  background: var(--esheba-bg);
  padding: 0.35rem;
  border-radius: var(--esheba-radius-sm);
}

.esheba-inquiry-tab {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--esheba-muted);
  border-radius: 8px;
  cursor: default;
  transition: var(--esheba-transition);
}

.esheba-inquiry-tab.active {
  background: var(--esheba-surface);
  color: var(--esheba-navy);
  box-shadow: 0 2px 8px rgba(11, 61, 76, 0.08);
}

.esheba-inquiry-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--esheba-inquiry-input-bg);
  border: 1.5px solid var(--esheba-border);
  border-radius: var(--esheba-radius-sm);
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--esheba-navy);
  direction: ltr;
  text-align: left;
}

.esheba-inquiry-result {
  padding: 1rem;
  background: var(--esheba-result-bg);
  border: 1px solid var(--esheba-result-border);
  border-radius: var(--esheba-radius-sm);
}

.esheba-inquiry-result__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #15803D;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.esheba-inquiry-result__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(11, 61, 76, 0.1);
}

.esheba-inquiry-result__row:last-child {
  border-bottom: none;
}

.esheba-inquiry-result__label {
  color: var(--esheba-muted);
}

.esheba-inquiry-result__value {
  font-weight: 600;
  color: var(--esheba-navy);
}

.esheba-float-badge {
  position: absolute;
  background: var(--esheba-surface);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  box-shadow: var(--esheba-shadow-lg);
  border: 1px solid var(--esheba-border);
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

.esheba-float-badge--1 {
  top: -10px;
  left: -20px;
  color: var(--esheba-gold);
}

.esheba-float-badge--2 {
  bottom: 20px;
  right: -15px;
  color: var(--esheba-teal);
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections common ── */

.esheba-section {
  padding: 4rem 1.25rem;
}

.esheba-section--alt {
  background: var(--esheba-surface);
}

.esheba-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.esheba-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.esheba-section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--esheba-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.esheba-section__title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--esheba-navy);
  margin: 0 0 0.75rem;
}

.esheba-section__desc {
  color: var(--esheba-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ── Services grid ── */

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

.esheba-service-card {
  position: relative;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius);
  padding: 1.75rem;
  transition: all var(--esheba-transition);
  overflow: hidden;
}

.esheba-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--esheba-teal), var(--esheba-gold));
  transition: height var(--esheba-transition);
}

.esheba-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--esheba-shadow-lg);
  border-color: rgba(26, 122, 140, 0.2);
}

.esheba-service-card:hover::before {
  height: 100%;
}

.esheba-service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.12), rgba(61, 184, 200, 0.12));
  color: var(--esheba-teal);
  margin-bottom: 1.25rem;
}

.esheba-service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 0.5rem;
}

.esheba-service-card__desc {
  font-size: 0.9rem;
  color: var(--esheba-muted);
  margin: 0 0 1rem;
}

.esheba-service-card__tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--esheba-bg);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--esheba-teal);
}

.esheba-service-card__tag--gold {
  background: rgba(212, 175, 55, 0.15);
  color: #92700C;
}

/* ── Steps (horizontal timeline) ── */

.esheba-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.esheba-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0;
  background: none;
  border: none;
}

.esheba-step__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--esheba-surface);
  color: var(--esheba-teal);
  border: 2px solid var(--esheba-teal);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  line-height: 1;
}

.esheba-step__title {
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.esheba-step__desc {
  font-size: 0.9rem;
  color: var(--esheba-muted);
  margin: 0;
  max-width: 16.5rem;
  line-height: 1.7;
}

/* موبایل: خط عمودی بین قدم‌ها */
.esheba-steps::before {
  content: none;
}

.esheba-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  bottom: -2rem;
  right: 50%;
  width: 2px;
  transform: translateX(50%);
  background: var(--esheba-teal);
  opacity: 0.45;
  z-index: 0;
}

/* ── Stats ── */

.esheba-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.esheba-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, var(--esheba-navy), var(--esheba-teal));
  border-radius: 5px;
  color: #fff;
}

.esheba-stat__value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.esheba-stat__label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ── Features strip ── */

.esheba-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.esheba-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--esheba-surface);
  border-radius: 5px;
  border: 1px solid var(--esheba-border);
}

.esheba-feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  color: var(--esheba-gold);
  border-radius: 12px;
}

.esheba-feature__title {
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.esheba-feature__desc {
  font-size: 0.85rem;
  color: var(--esheba-muted);
  margin: 0;
}

/* ── FAQ ── */

.esheba-faq .accordion-item {
  border: 1px solid var(--esheba-border);
  border-radius: 5px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--esheba-surface);
}

.esheba-faq .accordion-button {
  font-family: var(--esheba-font);
  font-weight: 600;
  color: var(--esheba-navy);
  background: var(--esheba-surface);
  box-shadow: none !important;
  padding: 1.1rem 1.25rem;
}

.esheba-faq .accordion-button:not(.collapsed) {
  background: var(--esheba-bg-alt);
  color: var(--esheba-teal);
}

.esheba-faq .accordion-body {
  font-size: 0.925rem;
  color: var(--esheba-muted);
  line-height: 1.8;
  padding: 0 1.25rem 1.1rem;
}

/* ── CTA ── */

.esheba-cta {
  position: relative;
  padding: 3.5rem 1.25rem;
  overflow: hidden;
}

.esheba-cta__box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--esheba-navy) 0%, #134E5E 50%, var(--esheba-teal) 100%);
  border-radius: 5px;
  color: #fff;
  overflow: hidden;
}

.esheba-cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15), transparent 50%);
}

.esheba-cta__title {
  position: relative;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.esheba-cta__desc {
  position: relative;
  opacity: 0.9;
  margin: 0 0 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.esheba-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.esheba-cta__actions .esheba-btn--gold,
.esheba-cta__actions a.esheba-btn--gold {
  color: var(--esheba-on-gold);
}

.esheba-cta__actions .esheba-btn--gold:hover,
.esheba-cta__actions a.esheba-btn--gold:hover {
  color: var(--esheba-on-gold-hover);
}

/* ── Footer ── */

.esheba-footer {
  background: linear-gradient(180deg, #0a3542 0%, var(--esheba-navy) 40%, #082a35 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.esheba-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* لایه SEO بالا */
.esheba-footer__seo {
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.esheba-footer__seo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.esheba-footer__seo-title {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.esheba-footer__seo-all {
  color: var(--esheba-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.esheba-footer__seo-all:hover {
  color: #fff;
  text-decoration: underline;
}

.esheba-footer__seo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
}

.esheba-footer__seo-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--esheba-transition), border-color var(--esheba-transition), color var(--esheba-transition);
}

.esheba-footer__seo-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
}

.esheba-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.esheba-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.esheba-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--esheba-logo-bg);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--esheba-logo-bg) 80%, #fff 12%);
}

.esheba-footer__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.esheba-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.esheba-footer__name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.esheba-footer__domain-tag,
.esheba-footer__tagline-brand {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.esheba-footer__tagline-brand {
  white-space: nowrap;
}

.esheba-footer__desc {
  font-size: 0.84rem;
  line-height: 1.85;
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.62);
}

.esheba-footer__heading {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.esheba-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.esheba-footer__links li {
  margin-bottom: 0.35rem;
}

.esheba-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  text-decoration: none;
  padding: 0.28rem 0;
  transition: color var(--esheba-transition), transform var(--esheba-transition);
}

.esheba-footer__links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--esheba-gold);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity var(--esheba-transition), transform var(--esheba-transition);
}

.esheba-footer__links a:hover {
  color: #fff;
  transform: translateX(-2px);
}

.esheba-footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.esheba-footer__trust-col {
  display: flex;
  justify-content: flex-start;
}

.esheba-enamad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: var(--esheba-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  min-width: 108px;
}

.esheba-enamad-slot__badge {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--esheba-gold-light);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.esheba-enamad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.esheba-enamad img {
  display: block;
  width: 120px;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
}

.esheba-enamad__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.esheba-enamad__label {
  font-size: 0.72rem;
  font-weight: 600;
}

.esheba-enamad-slot__hint {
  margin: 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.5;
  max-width: 9rem;
}

/* لایه حقوقی پایین */
.esheba-footer__legal {
  padding: 1rem 0 0.35rem;
}

.esheba-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
}

.esheba-footer__legal-list a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  text-decoration: none;
}

.esheba-footer__legal-list a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.esheba-footer__bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.85rem;
  font-size: 0.78rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.35rem;
}

.esheba-footer__copy {
  color: rgba(255, 255, 255, 0.55);
}

.esheba-footer__tagline {
  color: var(--esheba-gold-light);
  font-weight: 600;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* legacy selectors kept for compatibility */
.esheba-footer__grid { display: none; }
.esheba-footer__bottom { display: none; }
.esheba-footer__domain { display: none; }
.esheba-footer__trust { display: none; }
.esheba-enamad__placeholder { display: none; }

/* ── PWA install banner ── */

.esheba-pwa-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--esheba-surface);
  border-radius: var(--esheba-radius);
  box-shadow: var(--esheba-shadow-lg);
  border: 1px solid var(--esheba-border);
  animation: slide-up 0.4s ease;
}

.esheba-pwa-banner.show {
  display: flex;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.esheba-pwa-banner__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--esheba-navy);
}

.esheba-pwa-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Global important alert (top of all pages) ── */

:root {
  --esheba-global-alert-h: 0px;
}

.esheba-global-alert {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #9a3412 0%, #c2410c 55%, #b45309 100%);
  color: #fff7ed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(154, 52, 18, 0.28);
}

/* فاصله برای هدر/سایدبار fixed تا زیر بنر نروند */
html:has([data-global-alert]) {
  --esheba-global-alert-h: 4.75rem; /* تا قبل از اندازه‌گیری JS */
}

html:has([data-global-alert]) body {
  padding-top: var(--esheba-global-alert-h);
}

html:has([data-global-alert]) .esheba-header {
  top: var(--esheba-global-alert-h);
}

.esheba-global-alert__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.esheba-global-alert__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.esheba-global-alert__body {
  min-width: 0;
}

.esheba-global-alert__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.esheba-global-alert__message {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  opacity: 0.96;
}

[data-theme="dark"] .esheba-global-alert {
  background: linear-gradient(90deg, #7c2d12 0%, #9a3412 55%, #92400e 100%);
}

/* ── App update banner ── */

.esheba-app-update-banner {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 1rem;
  right: 1rem;
  z-index: 1200;
  padding: 0.9rem 1rem;
  background: var(--esheba-surface);
  border-radius: var(--esheba-radius);
  box-shadow: var(--esheba-shadow-lg);
  border: 1px solid var(--esheba-border);
  animation: slide-up 0.35s ease;
}

.esheba-app-update-banner--visible {
  display: block;
}

.esheba-app-update-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.esheba-app-update-banner__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--esheba-navy);
}

.esheba-app-update-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.esheba-app-update-banner__actions #appUpdateBtn {
  min-width: 6.5rem;
  font-weight: 700;
}

@media (max-width: 575px) {
  .esheba-app-update-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .esheba-app-update-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .esheba-app-update-banner__actions {
    width: 100%;
  }

  .esheba-app-update-banner__actions .esheba-btn {
    flex: 1;
  }
}

/* ── Responsive ── */

[data-theme="dark"] .esheba-btn--primary {
  background: linear-gradient(135deg, #1A7A8C, #3DB8C8);
  color: #0D1B21;
}

[data-theme="dark"] .esheba-btn--primary:hover,
[data-theme="dark"] a.esheba-btn--primary:hover {
  color: #0A1519;
}

[data-theme="dark"] .esheba-brand__mark,
[data-theme="dark"] .esheba-footer__mark {
  background: var(--esheba-logo-bg);
  border-color: color-mix(in srgb, var(--esheba-teal) 35%, transparent);
}

[data-theme="dark"] .esheba-stat {
  background: linear-gradient(135deg, #152830, #1A3A45);
  border: 1px solid var(--esheba-border);
}

[data-theme="dark"] .esheba-footer {
  background: linear-gradient(180deg, #060d11 0%, #080f13 50%, #050a0d 100%);
  border-top-color: rgba(168, 218, 220, 0.08);
}

[data-theme="dark"] .esheba-enamad-slot {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(168, 218, 220, 0.12);
}

[data-theme="dark"] .esheba-cta__box {
  background: linear-gradient(135deg, #152830 0%, #1A3A45 50%, #1A7A8C 100%);
}

[data-theme="dark"] .esheba-faq .accordion-button:not(.collapsed) {
  color: var(--esheba-cyan);
}

@media (min-width: 576px) and (max-width: 767px) {
  .esheba-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .esheba-footer__brand-col {
    grid-column: 1 / -1;
  }

  .esheba-footer__trust-col {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .esheba-nav {
    display: flex;
  }

  .esheba-menu-toggle {
    display: none;
  }

  .esheba-mobile-nav {
    display: none !important;
  }

  .esheba-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .esheba-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .esheba-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
  }

  .esheba-steps::before {
    content: '';
    position: absolute;
    top: 23px;
    right: calc(100% / 6);
    left: calc(100% / 6);
    height: 2px;
    background: var(--esheba-teal);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
  }

  .esheba-step:not(:last-child)::after {
    content: none;
  }

  .esheba-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .esheba-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .esheba-footer__main {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 2rem 1.5rem;
    align-items: start;
  }

  .esheba-footer__trust-col {
    justify-content: flex-end;
  }

  .esheba-footer__bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }

  .esheba-footer__legal-list {
    justify-content: flex-start;
  }

  .esheba-header__actions .esheba-btn--ghost {
    display: inline-flex;
  }
}

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

  .esheba-hero {
    padding-bottom: 5rem;
  }
}

@media (max-width: 767px) {
  .esheba-inquiry-card {
    max-width: 100%;
  }

  .esheba-float-badge--1 {
    left: 0;
  }

  .esheba-float-badge--2 {
    right: 0;
  }

  /* هیرو موبایل: متن کوتاه تا گرید خدمات زودتر دیده شود */
  .esheba-hero {
    padding: calc(var(--esheba-header-h) + 1.25rem) 1rem 1.75rem;
  }

  .esheba-hero__inner {
    gap: 1rem;
  }

  .esheba-hero__badge {
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }

  .esheba-hero__title {
    margin: 0;
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.45;
  }

  .esheba-hero__desc,
  .esheba-hero__lead,
  .esheba-hero__trust {
    display: none;
  }

  .service-hub--hero {
    max-width: none;
    padding: 0.75rem;
  }

  .service-hub--hero .service-hub__title {
    margin: -0.75rem -0.75rem 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
  }

  .service-hub--hero .service-hub__grid {
    max-height: none;
    overflow: visible;
    gap: 0.5rem;
  }

  .service-hub--hero .service-hub__tile {
    min-height: 4.75rem;
    padding: 0.55rem 0.3rem;
  }

  .service-hub--hero .service-hub__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .service-hub--hero .service-hub__label {
    font-size: 0.7rem;
  }
}

/* ── Inner pages ── */

.esheba-page {
  padding: calc(var(--esheba-header-h) + 2rem) 1.25rem 3rem;
  min-height: calc(100vh - 200px);
}

.esheba-page__inner {
  max-width: 820px;
  margin: 0 auto;
}

.esheba-page__inner--wide {
  max-width: 960px;
}

.esheba-page__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.esheba-page__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--esheba-navy);
  margin: 0 0 0.75rem;
}

.esheba-page__subtitle {
  color: var(--esheba-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

.esheba-card {
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: var(--esheba-radius);
  padding: 2rem;
  box-shadow: var(--esheba-shadow);
  margin-bottom: 1.5rem;
}

.esheba-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 1rem;
}

.esheba-card p,
.esheba-card li {
  color: var(--esheba-muted);
  line-height: 1.9;
}

.esheba-card ul,
.esheba-card ol {
  padding-right: 1.25rem;
  margin: 0 0 1rem;
}

.esheba-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.esheba-value-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--esheba-bg-alt);
  border-radius: var(--esheba-radius-sm);
  border: 1px solid var(--esheba-border);
}

.esheba-value-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 122, 140, 0.15), rgba(61, 184, 200, 0.15));
  color: var(--esheba-teal);
  border-radius: 12px;
  font-size: 1.25rem;
}

.esheba-value-item__title {
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.esheba-value-item__desc {
  font-size: 0.875rem;
  color: var(--esheba-muted);
  margin: 0;
}

.esheba-card--spaced {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .esheba-card--spaced {
    margin-top: 2rem;
  }
}

/* Login */
.esheba-login-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 0 2rem;
}

.esheba-login-page .esheba-login-wrap {
  min-height: min(70vh, 36rem);
  align-items: center;
}

.esheba-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--ms-card-bg, var(--esheba-surface));
  border: 1px solid var(--ms-card-border, var(--esheba-border));
  border-radius: 8px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  animation: login-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.esheba-login-card__logo {
  text-align: center;
  margin-bottom: 1.1rem;
}

.esheba-login-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--esheba-logo-bg, #0B3D4C);
  margin-bottom: 0.65rem;
  overflow: hidden;
  animation: login-mark-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.esheba-login-card__mark img {
  width: 85%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.esheba-login-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ms-text, var(--esheba-navy));
  text-align: center;
  margin: 0 0 0.25rem;
  animation: login-fade-up 0.45s ease 0.1s both;
}

.esheba-login-card__desc {
  text-align: center;
  color: var(--ms-muted, var(--esheba-muted));
  font-size: 0.82rem;
  margin: 0 0 1.1rem;
  transition: opacity 0.2s ease;
  animation: login-fade-up 0.45s ease 0.14s both;
}

.esheba-form-group {
  margin-bottom: 0.85rem;
}

.esheba-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ms-muted, var(--esheba-muted));
  margin-bottom: 0.35rem;
}

.esheba-form-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: var(--esheba-font);
  font-size: 0.92rem;
  color: var(--ms-text, var(--esheba-text));
  background: var(--ms-card-bg, var(--esheba-surface));
  border: 1px solid var(--ms-card-border, var(--esheba-border));
  border-radius: 6px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  direction: ltr;
  text-align: left;
  box-shadow: none;
}

.esheba-form-input:focus {
  outline: none;
  border-color: var(--ms-accent, var(--esheba-teal));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-accent, var(--esheba-teal)) 22%, transparent);
}

.esheba-form-input::placeholder {
  color: var(--ms-muted, var(--esheba-muted));
  opacity: 0.7;
}

.esheba-login-card .esheba-btn--primary,
.esheba-login-card .esheba-btn--gold,
.login-modal .esheba-btn--primary,
.login-modal .esheba-btn--gold {
  width: 100%;
  margin-top: 0.15rem;
  border-radius: 6px;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.18s ease, opacity 0.18s ease;
}

.esheba-login-card .esheba-btn--primary:active:not(:disabled),
.esheba-login-card .esheba-btn--gold:active:not(:disabled),
.login-modal .esheba-btn--primary:active:not(:disabled),
.login-modal .esheba-btn--gold:active:not(:disabled) {
  transform: scale(0.985);
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  margin-bottom: 0.95rem;
  padding: 0.2rem;
  border: 1px solid var(--ms-card-border, var(--esheba-border));
  border-radius: 8px;
  background: var(--ms-card-bg, var(--esheba-surface));
}

.login-mode-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ms-muted, var(--esheba-muted));
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-family: var(--esheba-font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  box-shadow: none;
}

.login-mode-tab:hover {
  color: var(--ms-text, var(--esheba-text));
  background: rgba(0, 0, 0, 0.04);
}

.login-mode-tab.active {
  color: var(--ms-accent, var(--esheba-teal));
  background: var(--ms-accent-soft, rgba(26, 122, 140, 0.12));
  border-color: transparent;
}

.login-mode-panel {
  display: block;
}

.login-mode-panel[hidden] {
  display: none !important;
}

.login-mode-panel.active:not([hidden]),
.login-step-in {
  animation: login-fade-up 0.28s ease;
}

.login-otp-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-terms-anchor:empty {
  display: none;
}

.login-terms {
  margin: 0.65rem 0 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--ms-card-border, var(--esheba-border));
  border-radius: 4px;
  background: color-mix(in srgb, var(--ms-accent, var(--esheba-teal)) 5%, var(--ms-card-bg, var(--esheba-surface)));
}

.login-terms__label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
}

.login-terms__checkbox {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--ms-accent, var(--esheba-teal));
}

.login-terms__text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ms-text, var(--esheba-text));
}

.login-terms__text a {
  color: var(--ms-accent, var(--esheba-teal));
  font-weight: 600;
  text-decoration: none;
}

.login-terms__text a:hover {
  text-decoration: underline;
}

.esheba-login-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ms-muted, var(--esheba-muted));
  line-height: 1.55;
  text-align: center;
}

.esheba-login-note a {
  color: var(--ms-accent, var(--esheba-teal));
}

.esheba-alert {
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  animation: login-fade-up 0.25s ease;
}

.esheba-alert--error {
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.esheba-alert--success {
  background: rgba(25, 135, 84, 0.1);
  color: #0f6d43;
  border: 1px solid rgba(25, 135, 84, 0.25);
}

.login-gift-toast-host {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.login-gift-toast {
  margin-bottom: 0;
  white-space: pre-line;
}

.login-otp-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.esheba-login-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--esheba-muted);
  margin-top: 1.25rem;
  line-height: 1.7;
}

.esheba-terms-section {
  scroll-margin-top: calc(var(--esheba-header-h) + 1rem);
}

.help-section {
  scroll-margin-top: calc(var(--esheba-header-h) + 1rem);
}

.help-toc {
  margin-bottom: 1.5rem;
}

.help-toc__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--esheba-navy);
  margin: 0 0 0.75rem;
}

.help-toc__list {
  margin: 0;
  padding-right: 1.25rem;
  line-height: 2;
}

.help-toc__list a {
  color: var(--esheba-teal);
  text-decoration: none;
}

.help-toc__list a:hover {
  text-decoration: underline;
}

.help-note {
  padding: 0.75rem 1rem;
  border-radius: var(--esheba-radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: var(--esheba-text);
  font-size: 0.9rem;
}

.help-steps {
  margin: 0 0 1rem;
  padding-right: 1.35rem;
  line-height: 1.85;
}

.help-steps li + li {
  margin-top: 0.35rem;
}

.help-service-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.help-service {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--esheba-border);
  border-radius: 4px;
  background: var(--esheba-bg-alt, var(--esheba-surface));
}

.help-service dt {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--esheba-navy);
  font-size: 0.92rem;
}

.help-service dd {
  margin: 0;
  color: var(--esheba-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.help-more-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--esheba-muted);
}

.help-more-link a {
  color: var(--esheba-teal);
  font-weight: 600;
}

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

.esheba-home-inquiry__panel {
  border: 1px solid var(--esheba-border, #e2e8f0);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--esheba-surface, #fff);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.esheba-home-inquiry .dash-grid-2 {
  margin-top: 0;
}

@media (max-width: 767px) {
  .esheba-home-inquiry__panel {
    padding: 0.75rem;
  }
}

/* صفحه اصلی: فقط استعلام تازه — بدون توضیح کش / نتیجه ذخیره‌شده */
#home-inquiry [data-home-hide="cache"],
#home-inquiry .inquiry-notice--stored,
#home-inquiry #conversionNotices {
  display: none !important;
}

#home-inquiry .quick-inquiry-form__actions--dual {
  grid-template-columns: 1fr auto;
}

.login-modal {
  border: none;
  border-radius: 10px;
  padding: 0;
  width: min(92vw, 24rem);
  max-height: 90vh;
  background: var(--ms-card-bg, var(--esheba-surface, #fff));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  color: inherit;
  overflow: hidden;
}

.login-modal[open] {
  animation: login-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-modal.login-modal--closing {
  animation: login-modal-out 0.2s ease forwards;
  pointer-events: none;
}

@keyframes login-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes login-modal-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.login-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  animation: login-backdrop-in 0.28s ease;
}

.login-modal.login-modal--closing::backdrop {
  animation: login-backdrop-out 0.2s ease forwards;
}

[data-theme="dark"] .login-modal::backdrop {
  background: rgba(2, 8, 14, 0.78);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

[data-theme="dark"] .login-modal {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

@keyframes login-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes login-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes login-mark-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes login-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.login-modal__shell {
  margin: 0;
}

.login-modal[open] .login-modal__head,
.login-modal[open] .login-modal__body {
  animation: login-fade-up 0.32s ease 0.05s both;
}

.login-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--ms-card-border, var(--esheba-border, #e2e8f0));
}

.login-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ms-text, var(--esheba-navy));
}

.login-modal__close {
  border: 1px solid transparent;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ms-muted, var(--esheba-muted));
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.login-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ms-text, var(--esheba-text));
}

.login-modal__close:active {
  transform: scale(0.92);
}

[data-theme="dark"] .login-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-modal__body {
  padding: 0.95rem;
}

.login-modal__desc {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--ms-muted, var(--esheba-muted));
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .esheba-login-card,
  .esheba-login-card__mark,
  .esheba-login-card__title,
  .esheba-login-card__desc,
  .esheba-alert,
  .login-mode-panel.active:not([hidden]),
  .login-step-in,
  .login-modal[open],
  .login-modal.login-modal--closing,
  .login-modal::backdrop,
  .login-modal.login-modal--closing::backdrop,
  .login-modal[open] .login-modal__head,
  .login-modal[open] .login-modal__body {
    animation: none !important;
  }

  .esheba-form-input,
  .login-mode-tab,
  .login-modal__close,
  .esheba-login-card .esheba-btn--primary,
  .login-modal .esheba-btn--primary {
    transition: none !important;
  }
}

/* -- Solid home formula (aligned with dashboard skin) -- */
.esheba-home-solid-page .esheba-service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 1.15rem 1.2rem;
  box-shadow: none;
  border: 1px solid var(--esheba-border);
  background: var(--esheba-surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.esheba-home-solid-page .esheba-service-card::before {
  width: 3px;
  height: 100%;
  background: var(--esheba-teal);
  opacity: 0;
}

.esheba-home-solid-page .esheba-service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--esheba-teal) 35%, var(--esheba-border));
  text-decoration: none;
  color: inherit;
}

.esheba-home-solid-page .esheba-service-card:hover::before {
  opacity: 1;
}

.esheba-home-solid-page .esheba-service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--esheba-teal) 12%, transparent);
}

.esheba-home-solid-page .esheba-service-card__title {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.esheba-home-solid-page .esheba-service-card__desc {
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
  flex: 1;
}

.esheba-home-solid-page .esheba-service-card__tag {
  border-radius: 4px;
  align-self: flex-start;
}

.esheba-home-solid-page .esheba-services {
  gap: 0.85rem;
}

.esheba-home-solid-page .esheba-home-inquiry__panel {
  border-radius: 6px;
  box-shadow: none;
  padding: 1rem 1.1rem;
  background: var(--esheba-bg, #f3f4f6);
}

.esheba-home-solid-page .esheba-home-inquiry__panel .dash-panel,
.esheba-home-solid-page .esheba-home-inquiry__panel .dash-panel--soft {
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid var(--esheba-border);
  border-style: solid;
  background: var(--esheba-surface);
}

.esheba-home-solid-page .esheba-inquiry-card {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid var(--esheba-border);
}

.esheba-home-solid-page .esheba-inquiry-card__promo-text {
  margin: 0;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--esheba-muted);
}

.esheba-home-solid-page .esheba-inquiry-card__cta {
  margin-top: 0.85rem;
  width: 100%;
  border-radius: 4px;
}

.esheba-home-solid-page .esheba-btn {
  border-radius: 4px;
}

.esheba-home-solid-page .esheba-section__label {
  letter-spacing: 0.04em;
}

.esheba-home-solid-page .quick-mode-tabs {
  border-radius: 4px;
}

.esheba-home-solid-page .quick-mode-tab {
  border-radius: 3px !important;
}

@media (min-width: 768px) {
  .esheba-home-solid-page .esheba-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -- Guide / Services hub & article (Iranian soft motif) -- */

.guide-hub {
  padding-bottom: 3.5rem;
}

.guide-hub__hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--esheba-header-h) + 2.4rem) 1.25rem 2.4rem;
  background:
    linear-gradient(165deg, rgba(11, 61, 76, 0.94) 0%, rgba(13, 79, 92, 0.9) 48%, rgba(8, 42, 53, 0.96) 100%);
  color: #fff;
}

.guide-hub__hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' fill='none'%3E%3Cpath d='M0 320 L180 210 L260 250 L420 120 L520 180 L700 70 L820 140 L980 40 L1200 160 L1200 400 L0 400 Z' fill='%23ffffff' fill-opacity='0.35'/%3E%3Cpath d='M60 300c40-10 70 8 110 0s70-20 120-8 90 10 140-6' stroke='%23ffffff' stroke-opacity='0.35' stroke-width='2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L48 32 L72 40 L48 48 L40 72 L32 48 L8 40 L32 32 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: bottom center, 0 0;
  background-size: min(1100px, 120%) auto, 72px 72px;
}

.guide-hub__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.guide-hub__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.guide-hub__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.guide-hub__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.guide-hub__body {
  max-width: 980px;
  margin: -1.25rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.guide-hub__empty {
  margin: 2rem 0;
  text-align: center;
  color: var(--esheba-muted);
}

.guide-hub__section {
  margin-bottom: 2rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(11, 61, 76, 0.06);
}

.guide-hub__section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--esheba-border);
}

.guide-hub__section-title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.guide-hub__section-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--esheba-muted);
}

.guide-hub__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .guide-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-hub__card-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  min-height: 100%;
  padding: 1rem 1.05rem;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--esheba-border);
  background: color-mix(in srgb, var(--esheba-bg-alt) 70%, #fff);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-hub__card-link:hover {
  border-color: color-mix(in srgb, var(--esheba-teal) 40%, var(--esheba-border));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 61, 76, 0.08);
}

.guide-hub__card-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--esheba-teal);
  line-height: 1.4;
  padding-top: 0.15rem;
}

.guide-hub__card-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--esheba-navy);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.guide-hub__card-summary {
  display: block;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--esheba-muted);
}

.guide-hub__card-go {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--esheba-teal);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.guide-article {
  position: relative;
  padding: calc(var(--esheba-header-h) + 1.75rem) 1.25rem 3.5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--esheba-bg-alt) 80%, #dfe8eb) 0%, var(--esheba-bg) 40%);
}

.guide-article__motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 500' fill='none'%3E%3Cpath d='M0 380 L220 240 L320 290 L480 150 L620 220 L820 90 L980 180 L1200 110 L1200 500 L0 500 Z' fill='%230B3D4C'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45 10 L54 36 L80 45 L54 54 L45 80 L36 54 L10 45 L36 36 Z' fill='none' stroke='%230B3D4C' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: bottom center, 12px 12px;
  background-size: min(1000px, 130%) auto, 90px 90px;
}

.guide-article__shell {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 1.75rem;
  background: color-mix(in srgb, var(--esheba-surface) 92%, transparent);
  border: 1px solid var(--esheba-border);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(11, 61, 76, 0.07);
  backdrop-filter: blur(2px);
}

.guide-article__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  color: var(--esheba-muted);
}

.guide-article__crumb a {
  color: var(--esheba-teal);
  text-decoration: none;
  font-weight: 600;
}

.guide-article__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--esheba-navy);
}

.guide-article__summary {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--esheba-muted);
}

.guide-article__meta {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: var(--esheba-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.esheba-prose {
  color: color-mix(in srgb, var(--esheba-navy) 78%, #334);
  font-size: 1rem;
  line-height: 1.95;
}

.esheba-prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.esheba-prose h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--esheba-navy);
}

.esheba-prose p,
.esheba-prose li {
  margin: 0 0 0.9rem;
}

.esheba-prose ul,
.esheba-prose ol {
  margin: 0 0 1rem;
  padding-right: 1.2rem;
}

.esheba-prose a {
  color: var(--esheba-teal);
  font-weight: 600;
}

.esheba-prose code {
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--esheba-bg-alt) 80%, #fff);
}

.guide-article__block {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--esheba-border);
}

.guide-article__block-title {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--esheba-navy);
}

.guide-article__faq {
  margin: 0 0 0.55rem;
  border: 1px solid var(--esheba-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--esheba-bg-alt) 55%, #fff);
}

.guide-article__faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--esheba-navy);
}

.guide-article__faq-body {
  margin-top: 0.55rem;
  color: var(--esheba-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.guide-article__related {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.guide-article__related a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--esheba-border);
  text-decoration: none;
  color: var(--esheba-navy);
  font-weight: 650;
  background: color-mix(in srgb, var(--esheba-bg-alt) 60%, #fff);
}

.guide-article__related a:hover {
  border-color: color-mix(in srgb, var(--esheba-teal) 35%, var(--esheba-border));
}

.guide-article__cta {
  margin: 1.5rem 0 0;
}

.guide-article__back {
  margin: 1.75rem 0 0;
}

.guide-article__back a {
  color: var(--esheba-teal);
  font-weight: 700;
  text-decoration: none;
}

[data-theme='dark'] .guide-hub__section,
[data-theme='dark'] .guide-article__shell {
  box-shadow: none;
}

[data-theme='dark'] .guide-hub__card-link,
[data-theme='dark'] .guide-article__faq,
[data-theme='dark'] .guide-article__related a {
  background: color-mix(in srgb, var(--esheba-surface) 88%, #000);
}

/* ── Service hub grid (home + dashboard) ── */

.service-hub {
  width: 100%;
}

.service-hub__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--esheba-navy);
  text-align: right;
}

.service-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-hub__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 6.25rem;
  padding: 0.85rem 0.5rem;
  background: var(--esheba-surface);
  border: 1px solid var(--esheba-border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--esheba-navy);
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-hub__tile:hover,
.service-hub__tile:focus-visible {
  border-color: color-mix(in srgb, var(--esheba-teal) 45%, var(--esheba-border));
  box-shadow: 0 8px 20px rgba(11, 61, 76, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--esheba-navy);
}

.service-hub__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--esheba-teal) 12%, var(--esheba-surface));
  color: var(--esheba-teal);
}

.service-hub__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-hub__icon--navy {
  background: color-mix(in srgb, var(--esheba-navy) 12%, var(--esheba-surface));
  color: var(--esheba-navy);
}

.service-hub__icon--gold {
  background: color-mix(in srgb, var(--esheba-gold) 18%, var(--esheba-surface));
  color: #b45309;
}

.service-hub__label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
}

.service-hub--hero {
  background: color-mix(in srgb, var(--esheba-surface) 92%, transparent);
  border: 1px solid var(--esheba-border);
  border-radius: 5px;
  padding: 1rem;
  box-shadow: var(--esheba-shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}

.service-hub--hero .service-hub__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(90deg, var(--esheba-teal), color-mix(in srgb, var(--esheba-teal) 70%, #3db8c8));
  margin: -1rem -1rem 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 5px 5px 0 0;
}

.service-hub--hero .service-hub__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-height: min(52vh, 22rem);
  overflow-y: auto;
  padding-inline-end: 0.15rem;
}

.service-hub--hero .service-hub__tile {
  min-height: 5.25rem;
  padding: 0.65rem 0.4rem;
  background: #fff;
}

.service-hub--hero .service-hub__label {
  font-size: 0.75rem;
}

.service-hub--panel .service-hub__grid,
.service-hub--section .service-hub__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .service-hub--hero .service-hub__grid,
  .service-hub--panel .service-hub__grid,
  .service-hub--section .service-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .service-hub--panel .service-hub__grid,
  .service-hub--section .service-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-hub--hero .service-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1100px) {
  .service-hub--panel .service-hub__grid,
  .service-hub--section .service-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-hub--hero .service-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

[data-theme='dark'] .service-hub__tile,
[data-theme='dark'] .service-hub--hero .service-hub__tile {
  background: color-mix(in srgb, var(--esheba-surface) 92%, #000);
}

[data-theme='dark'] .service-hub--hero {
  background: color-mix(in srgb, var(--esheba-surface) 88%, #000);
}

