/* Helima member area — additive styling over native WooCommerce templates. */
.helima-account-page .page-entry__header {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.helima-account-page .page-entry__header .display-title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 5vw, 5.25rem);
}

.helima-account-page .entry-content.helima-prose {
  width: min(100% - 2rem, 1280px);
  max-width: 1280px;
  padding-block: clamp(1.5rem, 4vw, 4.5rem) clamp(4rem, 7vw, 7rem);
  font-size: 1rem;
}

.helima-account-page .entry-content > .woocommerce {
  width: 100%;
  max-width: none;
}

.helima-account-authenticated .woocommerce-MyAccount-content,
.helima-account-authenticated .woocommerce-MyAccount-navigation,
.helima-account-profile {
  border: 1px solid rgba(154, 180, 164, 0.15);
  background:
    linear-gradient(145deg, rgba(29, 35, 33, 0.94), rgba(16, 19, 19, 0.96)),
    var(--helima-charcoal);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.helima-account-authenticated .woocommerce-MyAccount-content {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.35rem);
  border-radius: 1.35rem;
}

.helima-account-profile {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 1.35rem;
}

.helima-account-profile::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5.75rem;
  background:
    radial-gradient(circle at 16% 10%, rgba(117, 182, 147, 0.28), transparent 52%),
    linear-gradient(120deg, rgba(20, 73, 49, 0.82), rgba(39, 47, 43, 0.42));
  content: "";
}

.helima-account-profile__top,
.helima-account-profile__identity,
.helima-account-profile__actions {
  position: relative;
  z-index: 1;
}

.helima-account-profile__top {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.helima-account-profile__avatar {
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(234, 240, 235, 0.38);
  border-radius: 1.25rem;
  background: rgba(10, 14, 12, 0.68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.helima-account-profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 0.9rem;
  object-fit: cover;
}

.helima-account-profile__state {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(181, 222, 198, 0.2);
  border-radius: 999px;
  background: rgba(8, 26, 18, 0.62);
  color: #c9e3d4;
  font-size: 0.68rem;
  white-space: nowrap;
}

.helima-account-profile__state i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #75c796;
  box-shadow: 0 0 0 0.2rem rgba(117, 199, 150, 0.13);
}

.helima-account-profile__identity {
  padding-top: 1rem;
}

.helima-account-profile__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--helima-accent-soft) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.helima-account-profile__identity h2 {
  margin: 0;
  color: var(--helima-ivory);
  font-family: var(--helima-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html[dir="rtl"] .helima-account-page .helima-account-profile__identity h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.55;
}

.helima-account-profile__identity > p:last-child {
  max-width: 100%;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: var(--helima-stone);
  font-size: 0.76rem;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helima-account-profile__actions {
  display: grid;
  gap: 0;
  margin-top: 1.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--helima-border);
}

.helima-account-profile__edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.5rem;
  padding-block: 0.4rem;
  color: var(--helima-muted) !important;
  font-size: 0.76rem;
  text-decoration: none !important;
}

.helima-account-profile__edit:hover {
  color: var(--helima-accent-soft) !important;
}

.helima-account-profile__admin {
  color: var(--helima-accent-soft) !important;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation {
  padding: 0.65rem;
  border-radius: 1.35rem;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation ul {
  gap: 0.2rem;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: #a9aaa5;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: 180ms ease;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation a::before {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--helima-stone);
  content: "◇";
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation li.is-active a,
.helima-account-authenticated .woocommerce-MyAccount-navigation a:hover,
.helima-account-authenticated .woocommerce-MyAccount-navigation a:focus-visible {
  border-color: rgba(113, 174, 139, 0.18);
  background: linear-gradient(90deg, rgba(30, 91, 62, 0.3), rgba(104, 166, 132, 0.06));
  color: var(--helima-ivory);
  outline: none;
}

.helima-account-authenticated .woocommerce-MyAccount-navigation li.is-active a::before {
  background: var(--helima-brand);
  color: #eff8f2;
  box-shadow: 0 7px 18px rgba(20, 73, 49, 0.28);
}

.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "⌂" !important; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "▤" !important; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "↓" !important; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "⌖" !important; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "◎" !important; }
.woocommerce-MyAccount-navigation-link--helima-wishlist a::before { content: "♡" !important; }
.woocommerce-MyAccount-navigation-link--helima-learning a::before { content: "▶" !important; }
.woocommerce-MyAccount-navigation-link--helima-schedule a::before { content: "◷" !important; }
.woocommerce-MyAccount-navigation-link--helima-assignments a::before { content: "✓" !important; }
.woocommerce-MyAccount-navigation-link--helima-certificates a::before { content: "✦" !important; }
.woocommerce-MyAccount-navigation-link--helima-requests a::before { content: "◫" !important; }
.woocommerce-MyAccount-navigation-link--helima-support a::before { content: "?" !important; }
.woocommerce-MyAccount-navigation-link--helima-preregistrations a::before { content: "+" !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "↪" !important; }

.helima-account-authenticated .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--helima-border);
}

.helima-account-authenticated .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  border-color: rgba(194, 110, 96, 0.18);
  background: rgba(194, 110, 96, 0.08);
  color: #edb4a9;
}

.helima-account-dashboard .woocommerce-MyAccount-content > p {
  display: none;
}

.helima-account-overview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3.6vw, 2.25rem);
  border: 1px solid rgba(128, 190, 154, 0.2);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(20, 73, 49, 0.58), rgba(20, 35, 29, 0.82) 55%, rgba(11, 14, 14, 0.92));
}

.helima-account-overview__glow {
  position: absolute;
  z-index: -1;
  inset: -10rem -7rem auto auto;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(126, 197, 155, 0.12);
  filter: blur(18px);
}

.helima-account-overview__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.helima-account-overview__eyebrow {
  margin: 0 0 0.7rem !important;
  color: #9dceb1 !important;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.helima-account-overview__header h2 {
  max-width: 18ch;
  margin: 0;
  color: #f2efe6;
  font-family: var(--helima-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.3;
}

.helima-account-overview__header p:last-child {
  max-width: 44rem;
  margin: 0.8rem 0 0;
  color: #bdc6be;
  line-height: 1.9;
}

.helima-account-overview__header .button {
  flex: 0 0 auto;
  min-height: 3rem;
  margin: 0;
  white-space: nowrap;
}

.helima-account-overview__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.helima-account-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.12rem 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(7, 12, 10, 0.3);
  backdrop-filter: blur(12px);
}

.helima-account-metric__symbol {
  display: grid;
  grid-row: 1 / 3;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.72rem;
  background: rgba(118, 186, 146, 0.12);
  color: #a9d5bc;
  font-size: 1rem;
}

.helima-account-metric strong {
  color: #f3efe7;
  font-family: var(--helima-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.helima-account-metric > span:last-child {
  overflow: hidden;
  color: #a7aea8;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helima-account-page .helima-account-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0;
}

.helima-account-page .helima-account-shortcuts::before {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
  color: var(--helima-stone);
  content: "QUICK ACCESS";
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

html[dir="rtl"] .helima-account-page .helima-account-shortcuts::before {
  content: "دسترسی سریع";
  letter-spacing: 0;
}

.woocommerce .helima-account-shortcuts .button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--helima-muted);
  text-align: start;
}

.woocommerce .helima-account-shortcuts .button::after {
  color: var(--helima-stone);
  content: "↗";
  font-weight: 400;
}

.woocommerce .helima-account-shortcuts .button:hover {
  border-color: rgba(104, 166, 132, 0.25);
  background: rgba(104, 166, 132, 0.08);
  color: var(--helima-ivory);
  transform: translateY(-2px);
}

.helima-account-page .helima-account-panel__header h2,
.helima-account-page .helima-account-card__header h3,
.helima-account-page .woocommerce-MyAccount-content > h2,
.helima-account-page .woocommerce-MyAccount-content > h3 {
  color: var(--helima-ivory);
  font-family: var(--helima-display);
  font-weight: 500;
}

.helima-account-page .woocommerce-MyAccount-content form,
.helima-account-page .woocommerce-MyAccount-content table,
.helima-account-page .woocommerce-MyAccount-content .woocommerce-Addresses {
  margin-top: 1.25rem;
}

.helima-account-page .woocommerce-MyAccount-content .woocommerce-info > p {
  margin-block: 0;
}

.helima-account-page .helima-account-learning__empty {
  display: flex;
  gap: 0.85rem 1rem;
  align-items: center;
}

.helima-account-page .helima-account-learning__empty > p {
  flex: 1 1 18rem;
}

.woocommerce .helima-account-learning__empty > .button {
  flex: 0 0 auto;
  min-height: 42px;
  margin: 0;
  padding-block: 0.65rem;
}

.helima-account-guest .entry-content.helima-prose {
  width: min(100% - 2rem, 1060px);
  max-width: 1060px;
}

.helima-account-guest .woocommerce > h2 {
  margin-top: 0;
}

.helima-account-guest #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.helima-account-guest #customer_login > div {
  width: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--helima-border);
  border-radius: 1.2rem;
  background: rgba(23, 24, 28, 0.82);
}

.helima-account-guest #customer_login h2 {
  margin-block: 0;
}

.helima-account-guest .woocommerce form.login,
.helima-account-guest .woocommerce form.register {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.helima-account-guest .woocommerce form .form-row {
  margin-block-end: 1rem;
  padding: 0;
}

.helima-account-guest .woocommerce-form-login__submit,
.helima-account-guest .woocommerce-form-register__submit {
  min-width: 8.5rem;
}

@media (min-width: 980px) {
  .helima-account-authenticated .entry-content > .woocommerce {
    display: grid;
    grid-template-columns: minmax(15rem, 0.31fr) minmax(0, 1fr);
    grid-template-areas:
      "profile content"
      "navigation content";
    gap: 0.9rem 1.15rem;
    align-items: start;
  }

  html[dir="rtl"] .helima-account-authenticated .entry-content > .woocommerce {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.31fr);
    grid-template-areas:
      "content profile"
      "content navigation";
  }

  .helima-account-authenticated .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }

  .helima-account-authenticated .helima-account-profile {
    grid-area: profile;
  }

  .helima-account-authenticated .woocommerce-MyAccount-navigation {
    position: sticky;
    top: 6.75rem;
    grid-area: navigation;
    width: auto;
  }

  .helima-account-authenticated .woocommerce-MyAccount-content {
    grid-area: content;
    width: auto;
  }
}

@media (max-width: 979px) {
  .helima-account-authenticated .entry-content > .woocommerce {
    display: grid;
    gap: 1rem;
  }

  .helima-account-authenticated .woocommerce-MyAccount-navigation {
    padding: 0.55rem;
    overflow-x: auto;
  }

  .helima-account-authenticated .woocommerce-MyAccount-navigation ul {
    display: flex;
    width: max-content;
    min-width: 100%;
  }

  .helima-account-authenticated .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .helima-account-page .helima-account-learning__empty {
    align-items: stretch;
    flex-direction: column;
  }

  .helima-account-page .helima-account-learning__empty > p {
    flex: 0 0 auto;
  }

  .woocommerce .helima-account-learning__empty > .button {
    align-self: flex-start;
  }
}

@media (max-width: 680px) {
  .helima-account-page .entry-content.helima-prose {
    width: min(100% - 1rem, 1280px);
  }

  .helima-account-overview__header {
    display: grid;
  }

  .helima-account-overview__header .button {
    width: 100%;
  }

  .helima-account-overview__metrics {
    grid-template-columns: 1fr;
  }

  .helima-account-page .helima-account-shortcuts,
  .helima-account-guest #customer_login {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .helima-account-guest #customer_login > div {
    padding: 1rem;
    border-radius: 1rem;
  }

  .helima-account-guest .woocommerce-form-login__submit,
  .helima-account-guest .woocommerce-form-register__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .helima-account-authenticated .woocommerce-MyAccount-navigation a,
  .woocommerce .helima-account-shortcuts .button {
    transition: none;
  }
}
