:root {
  /*
    Navy قبلی خیلی تیره بود و روی UI شیشه‌ای تقریباً مشکی دیده می‌شد.
    این رنگ هنوز سورمه‌ای است، ولی نرم‌تر و مدرن‌تر دیده می‌شود.
  */
  --site-navy: #174067;
  --site-navy-strong: #0f2f50;
  --site-navy-soft: rgba(23, 64, 103, 0.72);

  /*
    Gold را کمی گرم‌تر و تمیزتر نگه می‌داریم.
  */
  --site-gold: #c99722;
  --site-gold-soft: rgba(201, 151, 34, 0.13);
  --site-gold-soft-2: rgba(201, 151, 34, 0.09);

  /*
    بک‌گراند قبلی زیادی تیره و کثیف می‌شد.
    این نسخه روشن‌تر، شفاف‌تر و لوکس‌تر است.
  */
  --site-glass-bg:
  linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
  radial-gradient(circle at top right, rgba(201, 151, 34, 0.08), transparent 46%),
  radial-gradient(circle at bottom left, rgba(23, 64, 103, 0.07), transparent 50%);

  --site-glass-bg-hover:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.60)),
    radial-gradient(circle at top right, rgba(201, 151, 34, 0.15), transparent 44%),
    radial-gradient(circle at bottom left, rgba(23, 64, 103, 0.11), transparent 50%);

  --site-glass-border: rgba(255, 255, 255, 0.55);
  --site-glass-inner-border: rgba(23, 64, 103, 0.08);

  --site-header-height: 58px;
  --site-bottom-height: 62px;
}


html {
  scroll-padding-top: calc(var(--site-header-height) + 12px);
}

body {
  padding-top: 6px;
  padding-bottom: calc(var(--site-bottom-height) + 18px);
}

.text-navy {
  color: var(--site-navy) !important;
}

.text-navy-soft {
  color: var(--site-navy-soft) !important;
}

.text-gold {
  color: var(--site-gold) !important;
}

.site-topbar {
  z-index: 1030;
}

.glass-shell {
  background: var(--site-glass-bg);
  border-color: var(--site-glass-border) !important;
  box-shadow:
    0 14px 34px rgba(15, 47, 80, 0.10),
    0 2px 8px rgba(15, 47, 80, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    inset 0 -1px 0 var(--site-glass-inner-border);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

/* ========================================
   Soft premium footer
======================================== */
.footer-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(201, 151, 34, 0.055) 0,
      rgba(201, 151, 34, 0.025) 24%,
      transparent 48%
    ),
    radial-gradient(
      circle at 92% 82%,
      rgba(51, 105, 150, 0.055) 0,
      rgba(51, 105, 150, 0.022) 26%,
      transparent 52%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(249, 251, 253, 0.88) 52%,
      rgba(255, 253, 248, 0.90) 100%
    );

  border-color: rgba(46, 87, 123, 0.09) !important;

  box-shadow:
    0 12px 34px rgba(32, 72, 108, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(46, 87, 123, 0.035) !important;

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

/* خط تزئینی بسیار ظریف بالای فوتر */
.footer-glass::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  opacity: 0.7;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 151, 34, 0.20),
    rgba(51, 105, 150, 0.14),
    transparent
  );
}

/* جلوگیری از تأثیر لایه‌های تزئینی روی محتوای فوتر */
.footer-glass > * {
  position: relative;
  z-index: 1;
}

/* عنوان‌های فوتر؛ سورمه‌ای ملایم‌تر از قبل */
.footer-glass .text-navy {
  color: #28577f !important;
}

/* متن‌های توضیحی */
.footer-glass .text-muted,
.footer-glass .footer-links .text-muted {
  color: rgba(53, 79, 101, 0.68) !important;
}

/* لینک‌ها */
.footer-glass .footer-links a {
  color: rgba(40, 87, 127, 0.78);
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.footer-glass .footer-links a:hover,
.footer-glass .footer-links a:focus-visible {
  color: #b38318;
  opacity: 1;
}

/* کادر مجوزها */
.footer-glass .license-box {
  background: rgba(255, 255, 255, 0.52) !important;
  border-color: rgba(46, 87, 123, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 5px 16px rgba(32, 72, 108, 0.035);
}

/* خط جداکننده */
.footer-glass hr {
  border: 0;
  height: 1px;
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 87, 123, 0.10),
    rgba(201, 151, 34, 0.10),
    transparent
  );
}

@media (max-width: 575.98px) {
  .footer-glass {
    background:
      radial-gradient(
        circle at 10% 10%,
        rgba(201, 151, 34, 0.045),
        transparent 42%
      ),
      radial-gradient(
        circle at 90% 90%,
        rgba(51, 105, 150, 0.045),
        transparent 46%
      ),
      rgba(255, 255, 255, 0.91);

    box-shadow:
      0 8px 24px rgba(32, 72, 108, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  }
}

.modal-glass-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 247, 250, 0.78)),
    linear-gradient(135deg, rgba(200, 146, 0, 0.06), rgba(8, 32, 61, 0.04));
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.brand-tile {
  width: 35px;
  height: 35px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48));
  border: 1px solid rgba(23, 64, 103, 0.08);
  box-shadow:
    0 6px 16px rgba(15, 47, 80, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.header-center-nav {
  min-width: 0;
}

.header-center-nav-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.top-nav-tile {
  flex: 0 0 auto;
  min-width: 59px;
  min-height: 40px;
  padding: 0.3rem 0.42rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--site-navy) !important;
  line-height: 1.1;
  white-space: nowrap;
  transition: 0.16s ease-in-out;
}

.top-nav-tile i {
  font-size: 0.8rem;
  color: rgba(23, 64, 103, 0.82) !important;
}

.top-nav-tile span {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(23, 64, 103, 0.82) !important;
}

.top-nav-tile:hover,
.top-nav-tile:focus {
  background:
    linear-gradient(135deg, rgba(201, 151, 34, 0.13), rgba(255, 255, 255, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(201, 151, 34, 0.18);
  color: var(--site-navy-strong) !important;
}

.top-nav-tile:hover i,
.top-nav-tile:focus i,
.top-nav-tile:hover span,
.top-nav-tile:focus span {
  color: var(--site-navy-strong) !important;
}

.top-nav-tile-gold {
  background:
    linear-gradient(135deg, rgba(201, 151, 34, 0.12), rgba(255, 255, 255, 0.28));
  box-shadow:
    inset 0 0 0 1px rgba(201, 151, 34, 0.12);
}


.top-nav-tile-gold i,
.top-nav-tile-gold span {
  color: var(--site-navy) !important;
}

.header-actions-side {
  min-width: fit-content;
}
.action-tile {
  width: 54px;
  min-width: 54px;
  height: 38px;
  padding: 0.22rem 0.3rem !important;
  border-radius: 0.75rem !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.05;
  white-space: nowrap;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)) !important;
  border-color: rgba(23, 64, 103, 0.10) !important;
  box-shadow:
    0 5px 14px rgba(15, 47, 80, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.action-tile i {
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(23, 64, 103, 0.78) !important;
}

.action-tile span {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(23, 64, 103, 0.78) !important;
}

.action-tile:hover,
.action-tile:focus {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(201, 151, 34, 0.12)) !important;
  border-color: rgba(201, 151, 34, 0.24) !important;
}

.action-tile:hover i,
.action-tile:hover span,
.action-tile:focus i,
.action-tile:focus span {
  color: var(--site-navy-strong) !important;
}

.btn-primary {
  --bs-btn-bg: rgba(23, 64, 103, 0.88);
  --bs-btn-border-color: rgba(23, 64, 103, 0.14);
  --bs-btn-color: #ffffff;

  --bs-btn-hover-bg: rgba(15, 47, 80, 0.92);
  --bs-btn-hover-border-color: rgba(201, 151, 34, 0.30);
  --bs-btn-hover-color: #ffffff;

  --bs-btn-active-bg: rgba(15, 47, 80, 0.96);
  --bs-btn-active-border-color: rgba(201, 151, 34, 0.35);
  --bs-btn-active-color: #ffffff;
}

.btn-primary.action-tile i,
.btn-primary.action-tile span {
  color: #ffffff !important;
}

.btn-outline-secondary {
  --bs-btn-color: var(--site-navy);
  --bs-btn-border-color: rgba(255, 255, 255, 0.24);
  --bs-btn-hover-color: var(--site-navy);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.16);
  --bs-btn-hover-border-color: rgba(200, 146, 0, 0.35);
  --bs-btn-active-color: var(--site-navy);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-active-border-color: rgba(200, 146, 0, 0.4);
  --bs-btn-bg: rgba(255, 255, 255, 0.08);
}

.btn-outline-danger {
  --bs-btn-color: var(--site-navy);
  --bs-btn-border-color: rgba(255, 255, 255, 0.24);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-hover-color: var(--site-navy);
  --bs-btn-hover-border-color: rgba(220, 53, 69, 0.28);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-active-color: var(--site-navy);
  --bs-btn-active-border-color: rgba(220, 53, 69, 0.32);
}

.action-tile,
.action-tile i,
.action-tile span {
  color: var(--site-navy) !important;
}

.language-tile {
  cursor: default;
}
.language-select {
  width: 100%;
  max-width: 42px;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: rgba(23, 64, 103, 0.80);
  text-align: center;
  text-align-last: center;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.language-select:focus {
  outline: 0;
  box-shadow: none;
}

.language-select option {
  color: #174067;
  background: #ffffff;
}

.language-choice {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.58);
  transition: 0.16s ease-in-out;
}

.language-choice:hover,
.language-choice.active {
  color: var(--site-navy);
  border-color: rgba(200, 146, 0, 0.48) !important;
  background: rgba(200, 146, 0, 0.12);
}

.language-code {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--site-navy);
}

.bottom-bar {
  bottom: 6px;
  z-index: 1029 !important;
}
.bottom-equal-nav {
  width: 100%;
  padding: 0.35rem;
  gap: 0.25rem;
}

.bottom-nav-tile {
  flex: 1 1 0;
  min-width: 0;
  min-height: 45px;
  padding: 0.25rem 0.18rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: var(--site-navy) !important;
  line-height: 1.05;
  text-align: center;
  transition: 0.16s ease-in-out;
}

.bottom-nav-tile i {
  font-size: 0.82rem;
  color: rgba(23, 64, 103, 0.78) !important;
}

.bottom-nav-tile span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.54rem;
  font-weight: 800;
  color: rgba(23, 64, 103, 0.78) !important;
}

.bottom-nav-tile:hover,
.bottom-nav-tile.active {
  background:
    linear-gradient(135deg, rgba(201, 151, 34, 0.13), rgba(255, 255, 255, 0.32));
  box-shadow:
    inset 0 0 0 1px rgba(201, 151, 34, 0.16);
  color: var(--site-navy-strong) !important;
}

.bottom-nav-tile:hover i,
.bottom-nav-tile.active i,
.bottom-nav-tile:hover span,
.bottom-nav-tile.active span {
  color: var(--site-navy-strong) !important;
}

.bottom-nav-gold {
  background:
    linear-gradient(135deg, rgba(201, 151, 34, 0.12), rgba(255, 255, 255, 0.30));
  box-shadow:
    inset 0 0 0 1px rgba(201, 151, 34, 0.13);
}


.license-box {
  width: 86px;
  height: 74px;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(8, 32, 61, 0.10) !important;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--site-navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--site-navy);
  opacity: 0.82;
}

@media (max-width: 991.98px) {
  :root {
    --site-header-height: 52px;
    --site-bottom-height: 56px;
  }

  body {
    padding-top: 4px;
    padding-bottom: calc(var(--site-bottom-height) + 16px);
  }

  .glass-shell {
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
  }

  .brand-tile {
    width: 32px;
    height: 32px;
  }

  .brand-tile img {
    width: 23px;
    height: 23px;
  }

  .top-nav-tile {
    min-width: 53px;
    min-height: 36px;
    padding: 0.25rem 0.34rem;
  }

  .top-nav-tile i {
    font-size: 0.74rem;
  }

  .top-nav-tile span {
    max-width: 76px;
    font-size: 0.52rem;
  }

  .action-tile {
    width: 49px;
    min-width: 49px;
    height: 35px;
    padding: 0.18rem 0.24rem !important;
  }

  .action-tile i {
    font-size: 0.72rem;
  }

  .action-tile span,
  .language-select {
    font-size: 0.5rem;
  }

  .bottom-bar {
    bottom: 5px;
  }

  .bottom-equal-nav {
    padding: 0.3rem;
    gap: 0.2rem;
  }

  .bottom-nav-tile {
    min-height: 40px;
    padding: 0.22rem 0.12rem;
  }

  .bottom-nav-tile i {
    font-size: 0.76rem;
  }

  .bottom-nav-tile span {
    font-size: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 0.75rem;
  }

  :root {
    --site-header-height: 48px;
    --site-bottom-height: 52px;
  }

  body {
    padding-bottom: calc(var(--site-bottom-height) + 14px);
  }

  .glass-shell {
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
  }

  .brand-tile {
    width: 29px;
    height: 29px;
  }

  .brand-tile img {
    width: 21px;
    height: 21px;
  }

  .top-nav-tile {
    min-width: 48px;
    min-height: 33px;
    padding: 0.2rem 0.28rem;
    border-radius: 0.65rem !important;
  }

  .top-nav-tile i {
    font-size: 0.68rem;
  }

  .top-nav-tile span {
    max-width: 60px;
    font-size: 0.47rem;
  }

  .action-tile {
    width: 44px;
    min-width: 44px;
    height: 32px;
    border-radius: 0.65rem !important;
  }

  .action-tile i {
    font-size: 0.66rem;
  }

  .action-tile span,
  .language-select {
    font-size: 0.46rem;
  }

  .language-select {
    max-width: 34px;
  }

  .header-center-nav {
    justify-content: center !important;
  }

  .header-center-nav-scroll {
    justify-content: center !important;
  }

  .bottom-bar {
    bottom: 4px;
  }

  .bottom-equal-nav {
    padding: 0.25rem;
    gap: 0.16rem;
  }

  .bottom-nav-tile {
    min-height: 37px;
    padding: 0.18rem 0.08rem;
    border-radius: 0.65rem !important;
  }

  .bottom-nav-tile i {
    font-size: 0.7rem;
  }

  .bottom-nav-tile span {
    font-size: 0.46rem;
  }

  .license-box {
    width: 78px;
    height: 66px;
  }
}

