/* IranNet Header Services V3 */

.irh3-header {
  --irh3-ink: #101a31;
  --irh3-muted: #67738a;
  --irh3-line: #e1e7f0;
  --irh3-blue: #456af4;
  --irh3-green: #55d6a8;
  --irh3-dark: #081428;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--irh3-ink);
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 10px 35px rgb(18 39 83 / 8%);
  backdrop-filter: blur(20px);
}

.irh3-header,
.irh3-header * {
  box-sizing: border-box;
}

.irh3-header svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.irh3-shell {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.irh3-top {
  border-bottom: 1px solid var(--irh3-line);
}

.irh3-top__grid {
  display: grid;
  min-height: 88px;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.irh3-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.irh3-brand img {
  display: block;
  width: auto;
  height: 55px;
  max-width: 200px;
  object-fit: contain;
}

.irh3-promise {
  display: grid;
  gap: 7px;
  border-right: 1px solid var(--irh3-line);
  padding-right: 28px;
}

.irh3-promise span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #27344c;
  font-size: 13px;
  font-weight: 950;
}

.irh3-promise i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--irh3-green);
  box-shadow: 0 0 0 6px rgb(85 214 168 / 10%), 0 0 18px rgb(85 214 168 / 35%);
}

.irh3-promise small {
  color: #8290a6;
  font-size: 10px;
  font-weight: 750;
}

.irh3-account-desktop {
  display: flex;
  align-items: center;
  gap: 9px;
}

.irh3-account-desktop a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.irh3-account-desktop a:hover {
  transform: translateY(-2px);
}

.irh3-login {
  border: 1px solid #dce3ed;
  color: #425069;
  background: #fff;
}

.irh3-login:hover {
  border-color: #bdcaff;
  color: var(--irh3-blue);
}

.irh3-register {
  border: 1px solid var(--irh3-blue);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 255 255 / 18%), transparent 38%),
    linear-gradient(135deg, #5275fb, #3e5edb);
  box-shadow: 0 13px 28px rgb(69 106 244 / 22%);
}

.irh3-register:hover {
  color: #fff;
  box-shadow: 0 18px 37px rgb(69 106 244 / 29%);
}

.irh3-register svg {
  width: 16px;
  height: 16px;
}

.irh3-mobile-toggle,
.irh3-account-mobile {
  display: none;
}

/* Main navigation */

.irh3-nav {
  position: relative;
  border-bottom: 1px solid rgb(224 230 240 / 75%);
  background: rgb(250 251 254 / 90%);
}

.irh3-nav__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 3px;
}

.irh3-nav-item {
  position: relative;
}

.irh3-nav-trigger {
  display: flex;
  min-height: 64px;
  align-items: stretch;
}

.irh3-nav-trigger > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: #324058;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.irh3-nav-trigger > a::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--irh3-blue), var(--irh3-green));
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s ease, transform .2s ease;
}

.irh3-nav-item:hover .irh3-nav-trigger > a,
.irh3-nav-item:focus-within .irh3-nav-trigger > a,
.irh3-nav-item.is-expanded .irh3-nav-trigger > a {
  color: var(--irh3-blue);
  transform: translateY(-1px);
}

.irh3-nav-item:hover .irh3-nav-trigger > a::after,
.irh3-nav-item:focus-within .irh3-nav-trigger > a::after,
.irh3-nav-item.is-expanded .irh3-nav-trigger > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.irh3-nav-trigger > button {
  display: grid;
  width: 34px;
  place-items: center;
  border: 0;
  color: #7f8ba1;
  background: transparent;
  cursor: pointer;
}

.irh3-nav-trigger > button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
  transition: color .2s ease, transform .24s ease;
}

.irh3-nav-item:hover .irh3-nav-trigger > button svg,
.irh3-nav-item:focus-within .irh3-nav-trigger > button svg,
.irh3-nav-item.is-expanded .irh3-nav-trigger > button svg {
  color: var(--irh3-blue);
  transform: rotate(180deg);
}

/* Rich menu panels */

.irh3-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  display: grid;
  width: min(960px, calc(100vw - 32px));
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgb(215 223 236 / 92%);
  border-radius: 24px;
  padding: 12px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 30px 90px rgb(17 41 92 / 20%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  transform-origin: top right;
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(22px);
}

.irh3-panel::before {
  position: absolute;
  top: -13px;
  right: 0;
  left: 0;
  height: 13px;
  content: "";
}

.irh3-nav-item:hover > .irh3-panel,
.irh3-nav-item:focus-within > .irh3-panel,
.irh3-nav-item.is-expanded > .irh3-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.irh3-panel__intro {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: 19px;
  padding: 27px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgb(93 124 255 / 36%), transparent 34%),
    radial-gradient(circle at 10% 92%, rgb(65 210 166 / 18%), transparent 28%),
    linear-gradient(145deg, #0b1933, #10244b);
}

.irh3-panel__intro > span {
  color: #71e2b2;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.irh3-panel__intro > strong {
  display: block;
  margin-top: 13px;
  color: #fff;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -.035em;
  font-weight: 950;
}

.irh3-panel__intro > p {
  margin: 13px 0 0;
  color: #a5b2c9;
  font-size: 9px;
  line-height: 1.95;
}

.irh3-panel__intro > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #75e4b5;
  font-size: 9px;
  font-weight: 950;
  text-decoration: none;
}

.irh3-panel__intro > a svg {
  width: 16px;
  height: 16px;
}

.irh3-panel__visual {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 18px;
  height: 165px;
  color: #79a1ff;
  opacity: .88;
}

.irh3-panel__visual::before {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgb(119 145 211 / 20%);
  border-radius: 50%;
  content: "";
  animation: irh3-orbit 24s linear infinite;
}

.irh3-panel__visual svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgb(77 111 255 / 25%));
}

.irh3-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: start;
}

.irh3-panel-card {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3e8f1;
  border-radius: 17px;
  padding: 15px;
  color: inherit;
  background:
    linear-gradient(145deg, #fff, #fbfcff);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.irh3-panel-card:hover {
  border-color: #c8d4ff;
  box-shadow: 0 16px 38px rgb(31 66 146 / 10%);
  transform: translateY(-3px);
}

.irh3-panel-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #e0e6ef;
  border-radius: 15px;
  color: var(--irh3-blue);
  background: linear-gradient(145deg, #f8faff, #edf2ff);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.irh3-panel-card:hover .irh3-panel-card__icon {
  border-color: var(--irh3-blue);
  color: #fff;
  background: var(--irh3-blue);
  transform: rotate(-5deg) scale(1.04);
}

.irh3-panel-card__icon svg {
  width: 24px;
  height: 24px;
}

.irh3-panel-card__copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.irh3-panel-card__copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.irh3-panel-card strong {
  color: var(--irh3-ink);
  font-size: 11px;
  font-weight: 950;
}

.irh3-panel-card small {
  border: 1px solid #dce4ff;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--irh3-blue);
  background: #f1f5ff;
  font-size: 6px;
  font-weight: 950;
}

.irh3-panel-card em {
  color: var(--irh3-muted);
  font-size: 8px;
  line-height: 1.75;
  font-style: normal;
}

.irh3-panel-card__arrow {
  width: 17px;
  height: 17px;
  color: #a0aabd;
  transition: color .2s ease, transform .2s ease;
}

.irh3-panel-card:hover .irh3-panel-card__arrow {
  color: var(--irh3-blue);
  transform: translateX(-3px);
}

/* account popover */

.irh3-account-mobile {
  position: relative;
}

.irh3-account-mobile > button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce3ef;
  border-radius: 13px;
  color: #46546c;
  background: #fff;
  cursor: pointer;
}

.irh3-account-mobile > button svg {
  width: 21px;
  height: 21px;
}

.irh3-account-mobile > button i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--irh3-green);
}

.irh3-account-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 1100;
  width: min(310px, calc(100vw - 20px));
  border: 1px solid #dfe5ef;
  border-radius: 19px;
  padding: 15px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 25px 70px rgb(17 42 92 / 19%);
  animation: irh3-popover .2s ease both;
  backdrop-filter: blur(18px);
}

.irh3-account-popover[hidden] {
  display: none !important;
}

.irh3-account-popover > small {
  color: var(--irh3-blue);
  font-size: 7px;
  font-weight: 950;
}

.irh3-account-popover > strong {
  display: block;
  margin-top: 7px;
  color: var(--irh3-ink);
  font-size: 12px;
  font-weight: 950;
}

.irh3-account-popover > a {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e4e9f1;
  border-radius: 13px;
  margin-top: 10px;
  padding: 12px;
  color: inherit;
  background: #fafbfe;
  text-decoration: none;
}

.irh3-account-popover > a:hover {
  border-color: #c8d4ff;
  background: #f2f5ff;
}

.irh3-account-popover > a > span {
  display: grid;
  gap: 4px;
}

.irh3-account-popover small {
  color: #8a96aa;
  font-size: 7px;
}

.irh3-account-popover b {
  color: var(--irh3-ink);
  font-size: 10px;
  font-weight: 950;
}

.irh3-account-popover > a > svg {
  width: 17px;
  height: 17px;
  color: var(--irh3-blue);
}

.irh3-mobile-actions {
  display: none;
}

/* Mobile */

@media (max-width: 940px) {
  body.irh3-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .irh3-shell {
    width: min(100% - 20px, 1240px);
  }

  .irh3-top__grid {
    min-height: 70px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .irh3-mobile-toggle,
  .irh3-account-mobile {
    display: block;
  }

  .irh3-mobile-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    z-index: 1101;
    place-content: center;
    gap: 5px;
    border: 1px solid #dce3ef;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
  }

  .irh3-mobile-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: #35435b;
    transition: transform .22s ease, opacity .22s ease;
  }

  .irh3-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .irh3-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .irh3-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .irh3-brand {
    z-index: 1100;
    justify-self: center;
  }

  .irh3-brand img {
    height: 45px;
    max-width: 160px;
  }

  .irh3-promise,
  .irh3-account-desktop {
    display: none;
  }

  .irh3-account-mobile {
    z-index: 1101;
    justify-self: end;
  }

  .irh3-nav {
    position: fixed !important;
    top: 70px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1080 !important;
    display: block !important;
    width: 100% !important;
    height: calc(100dvh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid var(--irh3-line);
    background:
      radial-gradient(circle at 92% 4%, rgb(69 106 244 / 8%), transparent 26%),
      rgb(247 249 253 / 99%);
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important;
    transform: translateY(-12px) !important;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease !important;
    backdrop-filter: blur(20px);
  }

  .irh3-nav.is-open,
  .irh3-header.is-menu-open .irh3-nav {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .irh3-nav__inner {
    display: grid !important;
    min-height: max-content;
    gap: 10px;
    align-content: start;
    padding: 18px 0 42px;
  }

  .irh3-nav-item {
    overflow: hidden;
    border: 1px solid #e1e7f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgb(25 51 106 / 5%);
  }

  .irh3-nav-trigger {
    min-height: 64px;
  }

  .irh3-nav-trigger > a {
    min-width: 0;
    min-height: 64px;
    flex: 1;
    padding: 0 18px;
    font-size: 15px;
  }

  .irh3-nav-trigger > a::after {
    display: none;
  }

  .irh3-nav-trigger > button {
    width: 62px;
    border-right: 1px solid #e4e9f1;
  }

  .irh3-nav-trigger > button svg {
    width: 20px;
    height: 20px;
  }

  .irh3-panel {
    position: static;
    display: none;
    width: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    border: 0;
    border-top: 1px solid #e4e9f1;
    border-radius: 0 0 15px 15px;
    padding: 10px;
    background: #fafbfe;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .irh3-nav-item:hover > .irh3-panel,
  .irh3-nav-item:focus-within > .irh3-panel {
    display: none;
  }

  .irh3-nav-item.is-expanded > .irh3-panel {
    display: grid;
  }

  .irh3-panel__intro {
    display: none;
  }

  .irh3-panel__grid {
    grid-template-columns: 1fr;
  }

  .irh3-panel-card {
    min-height: 88px;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    padding: 12px;
  }

  .irh3-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .irh3-mobile-actions a {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3ef;
    border-radius: 13px;
    color: #46546c;
    background: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
  }

  .irh3-mobile-actions a:last-child {
    border-color: var(--irh3-blue);
    color: #fff;
    background: var(--irh3-blue);
  }
}

@media (max-width: 460px) {
  .irh3-shell {
    width: min(100% - 14px, 1240px);
  }

  .irh3-top__grid {
    min-height: 68px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .irh3-nav {
    top: 68px !important;
    height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
  }

  .irh3-brand img {
    height: 42px;
    max-width: 150px;
  }

  .irh3-mobile-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes irh3-orbit {
  to { transform: rotate(360deg); }
}

@keyframes irh3-popover {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .irh3-header *,
  .irh3-header *::before,
  .irh3-header *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* End IranNet Header Services V3 */
