/* ShiftNevis shared public shell - matched to home page header style */
:root {
  --sn-font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --sn-surface: #ffffff;
  --sn-text: #181326;
  --sn-text-soft: #413a55;
  --sn-muted: #756f87;
  --sn-line: #ebe7f4;
  --sn-line-strong: #ded5f2;
  --sn-brand: #7c3aed;
  --sn-brand-2: #6d28d9;
  --sn-brand-3: #5b21b6;
  --sn-brand-soft: #f1ebff;
  --sn-shadow-md: 0 22px 60px rgba(31, 23, 56, 0.1);
  --sn-container: 1220px;
}

#siteHeader,
#siteFooter {
  direction: rtl;
  font-family: var(--sn-font);
}

.sn-container {
  width: min(var(--sn-container), 92vw);
  margin-inline: auto;
}

.sn-btn {
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-text-soft);
  border-radius: 15px;
  padding: 11px 15px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(31, 23, 56, 0.04);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sn-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(31, 23, 56, 0.08);
  border-color: var(--sn-line-strong);
}

.sn-btn--primary {
  background: linear-gradient(135deg, var(--sn-brand), var(--sn-brand-2));
  border-color: rgba(124, 58, 237, 0.25);
  color: #fff;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.22);
}

.sn-btn--logout {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(220, 38, 38, 0.16);
  color: #b91c1c;
  box-shadow: none;
}

.sn-btn--logout:hover {
  background: #fff1f2;
  border-color: rgba(220, 38, 38, 0.24);
  color: #991b1b;
}

/* Header: intentionally matched to current home page */
.sn-site-header {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 80;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.24s ease;
  will-change: transform, opacity;
}

.sn-site-header.sn-header-hidden {
  transform: translateY(-120%);
  opacity: 0;
}

.sn-topbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 20px 50px rgba(7, 25, 35, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: inherit;
  text-decoration: none;
}

.sn-brand__mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 12px 26px rgba(31, 23, 56, 0.12);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.sn-brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.sn-brand__copy {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.sn-brand__copy b {
  color: var(--sn-text);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.3px;
}

.sn-brand__copy small {
  color: var(--sn-muted);
  font-size: 12px;
  font-weight: 750;
}

.sn-topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sn-topbar__nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #514a62;
  text-decoration: none;
  transition: 0.16s ease;
}

.sn-topbar__nav a {
  position: relative;
}

.sn-topbar__nav a:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--sn-brand-3);
  box-shadow: 0 8px 20px rgba(31, 23, 56, 0.055);
}

.sn-topbar__nav a.is-active {
  background: transparent;
  color: var(--sn-brand-3);
  box-shadow: none;
}

.sn-topbar__nav a.is-active::after {
  content: "";
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sn-brand), #14b8a6);
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.25);
}

.sn-topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.sn-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sn-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sn-brand-3);
  place-items: center;
}

.sn-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 13, 24, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.sn-bottom-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sn-bottom-sheet {
  position: fixed;
  right: 10px;
  left: 10px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 260;
  max-height: min(72vh, 520px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(235, 231, 244, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(
      420px 220px at 50% 0%,
      rgba(124, 58, 237, 0.12),
      transparent 70%
    ),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 -22px 70px rgba(7, 25, 35, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.24s ease,
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.sn-bottom-sheet.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sn-sheet__handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #ddd6e8;
}

.sn-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sn-sheet__head b {
  color: var(--sn-text);
  font-size: 17px;
  font-weight: 950;
}

.sn-sheet__head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--sn-line);
  border-radius: 15px;
  background: #fff;
  color: #625a72;
  display: grid;
  place-items: center;
}

.sn-sheet__items {
  display: grid;
  gap: 9px;
}

.sn-sheet__items a,
.sn-sheet__items button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(235, 231, 244, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: #3f3657;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  font-family: var(--sn-font);
  font-size: 14px;
  font-weight: 950;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
}

.sn-sheet__items a:hover,
.sn-sheet__items button:hover {
  background: #f5f0ff;
  border-color: #d8c9ff;
  color: var(--sn-brand-3);
}

.sn-sheet__items i {
  width: 24px;
  text-align: center;
  color: var(--sn-brand);
  font-size: 17px;
}

.sn-sheet__danger {
  color: #b91c1c !important;
}

.sn-sheet__danger i {
  color: #b91c1c !important;
}

/* Footer */
.sn-footer {
  padding: 54px 0 26px;
  background:
    radial-gradient(
      760px 360px at 85% 0%,
      rgba(124, 58, 237, 0.16),
      transparent 64%
    ),
    radial-gradient(
      620px 300px at 8% 55%,
      rgba(20, 184, 166, 0.12),
      transparent 68%
    ),
    #05131b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(221, 229, 233, 0.72);
}

.sn-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.95fr 0.95fr;
  gap: 14px;
}

.sn-footer-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.sn-footer-card--brand {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(124, 58, 237, 0.08)
  );
}

.sn-footer-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.sn-footer-card p,
.sn-footer-card a,
.sn-footer-card li {
  color: rgba(221, 229, 233, 0.72);
  font-size: 13px;
  line-height: 2;
  font-weight: 650;
  text-decoration: none;
}

.sn-footer-card a:hover {
  color: #fff;
}

.sn-footer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sn-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sn-footer__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11.5px;
  font-weight: 900;
}

/* Footer Social */

.sn-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 22px;
  flex-wrap: wrap;
}

.sn-footer__social a {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);

  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1 !important;

  transition: 0.22s ease;
}

.sn-footer__social a i {
  line-height: 1;
}

.sn-footer__social a:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.34);
}

.sn-footer__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(221, 229, 233, 0.62);
  font-size: 12.5px;
  font-weight: 750;
}

.sn-footer__copyright {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.9;
}

.sn-footer__madeby {
  color: rgba(221, 229, 233, 0.58);
}

.sn-footer__madeby::before {
  content: "•";
  margin-left: 10px;
  color: rgba(167, 139, 250, 0.8);
}

.sn-footer__bottom a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 950;
  text-decoration: none;
}

.sn-footer__phones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.sn-footer__phones a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 950;
}

.sn-footer__phones i {
  color: #a78bfa;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .sn-site-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 170;
  }

  .sn-topbar {
    min-height: 76px;
    align-items: center;
    flex-direction: row;
    border-radius: 28px;
  }

  .sn-topbar__nav--desktop {
    display: none;
  }

  .sn-topbar__actions {
    width: auto;
    margin-right: 0;
  }

  .sn-menu-toggle {
    display: grid;
    order: 3;
  }
}

@media (max-width: 680px) {
  .sn-container {
    width: min(94vw, var(--sn-container));
  }

  .sn-site-header {
    top: 10px;
  }

  .sn-topbar {
    min-height: 70px;
    padding: 10px;
    gap: 8px;
    border-radius: 24px;
  }

  .sn-brand {
    min-width: 0;
    flex: 1;
    gap: 9px;
  }

  .sn-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .sn-brand__copy b {
    font-size: 16px;
  }

  .sn-brand__copy small {
    display: none;
  }

  .sn-topbar__actions {
    gap: 7px;
  }

  .sn-topbar__actions .sn-btn {
    min-height: 42px;
    font-size: 11.5px;
    padding: 9px 12px;
    border-radius: 15px;
  }

  .sn-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 17px;
  }

  .sn-footer {
    padding-top: 38px;
  }

  .sn-footer__grid {
    grid-template-columns: 1fr;
  }

  .sn-footer-card {
    padding: 18px;
  }
  .sn-footer__bottom {
    padding: 18px 0 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .sn-footer__copyright {
    justify-content: center;
    text-align: center;
    gap: 6px 10px;
  }

  .sn-footer__copyright span + span {
    padding-right: 0;
    border-right: 0;
  }

  .sn-footer__phones {
    justify-content: center;
  }

  .sn-footer__phones a {
    min-width: 144px;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  body.sn-sheet-open {
    overflow: hidden;
  }
}

.sn-bottom-nav {
  display: none;
}

@media (max-width: 1100px) {
  body {
    padding-bottom: 104px;
  }

  .sn-bottom-nav {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 175;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    min-height: 78px;
    padding: 14px 8px 8px;
    border: 1px solid rgba(235, 231, 244, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(7, 25, 35, 0.18);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    direction: rtl;
    overflow: visible;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .sn-bottom-nav a,
  .sn-bottom-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b6478;
    min-width: 0;
    min-height: 50px;
    padding: 6px 5px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    gap: 4px;
    font-family: var(--sn-font);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    text-decoration: none;
  }

  .sn-bottom-nav i {
    font-size: 17px;
    line-height: 1;
  }

  .sn-bottom-nav a.is-active {
    color: var(--sn-brand-3);
    background: var(--sn-brand-soft);
  }

  .sn-bottom-nav__main {
    color: #fff !important;
    background: linear-gradient(
      135deg,
      var(--sn-brand),
      var(--sn-brand-2)
    ) !important;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
    transform: translateY(-6px);
    min-height: 60px !important;
    border-radius: 24px !important;
  }

  .sn-bottom-nav__main i {
    font-size: 20px;
  }

  .sn-site-header.sn-header-hidden ~ .sn-bottom-nav {
    transform: translateY(-4px);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 98px;
  }

  .sn-bottom-nav {
    right: 8px;
    left: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 74px;
    padding: 13px 7px 8px;
    border-radius: 26px;
  }

  .sn-bottom-nav a,
  .sn-bottom-nav button {
    font-size: 10.5px;
    min-height: 48px;
  }

  .sn-bottom-nav__main {
    transform: translateY(-5px);
    min-height: 58px !important;
  }
}
