/* Temp Connect auth shell — header account menu + CTA shortcode */

/* Beat Avada `.fusion-li-item { display: inline-flex !important }` */
.fusion-tb-header ul#topbar .fusion-li-item.tc-auth-hidden,
.fusion-tb-header ul#topbar li.tc-auth-hidden,
ul#topbar .fusion-li-item.tc-auth-hidden,
ul#topbar li.tc-auth-hidden {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Keep dropdown above the white main nav / hero */
.fusion-tb-header,
.fusion-tb-header .fusion-builder-row-1,
.fusion-tb-header ul#topbar {
  overflow: visible !important;
  z-index: 10050;
  position: relative;
}

.fusion-tb-header ul#topbar .tc-auth-account-item,
ul#topbar .tc-auth-account-item {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  position: relative;
  z-index: 10060;
}

.fusion-tb-header ul#topbar .tc-auth-account-item .icon-wrapper,
ul#topbar .tc-auth-account-item .icon-wrapper {
  display: none !important;
}

.tc-auth-account {
  position: relative;
  font-family: inherit;
}

/* Profile chip — same pill language as Blog / FAQs */
.fusion-tb-header ul#topbar .tc-auth-account__toggle,
ul#topbar .tc-auth-account__toggle,
.tc-auth-account__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  cursor: pointer;
  line-height: 1.2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  box-sizing: border-box;
  min-height: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.fusion-tb-header ul#topbar .tc-auth-account__toggle:hover,
.fusion-tb-header ul#topbar .tc-auth-account__toggle:focus,
.tc-auth-account.is-open .tc-auth-account__toggle,
ul#topbar .tc-auth-account__toggle:hover,
ul#topbar .tc-auth-account__toggle:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
  color: #fff !important;
}

.tc-auth-account.is-open .tc-auth-account__chevron {
  transform: rotate(180deg);
}

.tc-auth-account__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tc-auth-account__avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 13px;
  background: linear-gradient(145deg, #1dbf73, #0e9b5a);
  box-shadow: none;
}

.tc-auth-account__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-auth-account__initials {
  line-height: 1;
}

.tc-auth-account__meta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 140px;
}

.fusion-tb-header ul#topbar .tc-auth-account__name,
ul#topbar .tc-auth-account__name,
.tc-auth-account__toggle .tc-auth-account__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  color: #fff !important;
  opacity: 1;
  line-height: 1.2;
}

.tc-auth-account__role {
  display: none;
}

.tc-auth-account__chevron {
  width: 10px;
  height: 6px;
  margin-left: 0.05rem;
  flex: 0 0 auto;
  color: #fff;
  opacity: 0.9;
  transition: transform 0.18s ease;
}

.tc-auth-account__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 228px;
  padding: 0.55rem;
  border-radius: 12px;
  background: #fff;
  color: #2b3340;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  z-index: 10070;
}

.tc-auth-account__dropdown[hidden] {
  display: none !important;
}

.tc-auth-account__profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem 0.65rem;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid #e8eef5;
  text-decoration: none !important;
  color: inherit !important;
}

.tc-auth-account__profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.tc-auth-account__profile-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-auth-account__profile-text span {
  font-size: 11px;
  color: #6b7280;
}

.tc-auth-account__links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0;
}

.tc-auth-account__link {
  display: block;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151 !important;
  text-decoration: none !important;
}

.tc-auth-account__link:hover,
.tc-auth-account__link:focus {
  background: #f3faf7;
  color: #0e9b5a !important;
}

.tc-auth-account__logout {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tc-auth-account__logout:hover,
.tc-auth-account__logout:focus {
  background: #fef3f2;
}

/* Dark/light header safety: if topbar text is dark, keep toggle readable */
.fusion-tb-header ul#topbar .tc-auth-account__toggle {
  color: inherit;
}

@media (max-width: 782px) {
  .tc-auth-account__name {
    display: none;
  }

  .tc-auth-account__toggle {
    padding: 0.22rem 0.4rem;
  }
}

/* ---- Homepage CTA shortcode ---- */
.tc-auth-cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 0;
  text-align: center;
}

.tc-auth-cta__welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.tc-auth-cta__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1dbf73;
}

.tc-auth-cta__lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #353e48;
}

.tc-auth-cta__welcome .tc-auth-cta__lead {
  margin: 0;
  text-align: left;
}

.tc-auth-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.tc-auth-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tc-auth-cta__btn--primary {
  background: #1dbf73;
  color: #fff !important;
  border: 1px solid #1dbf73;
}

.tc-auth-cta__btn--primary:hover,
.tc-auth-cta__btn--primary:focus {
  background: #17a863;
  border-color: #17a863;
  color: #fff !important;
}

.tc-auth-cta__btn--secondary {
  background: #fff;
  color: #1dbf73 !important;
  border: 1.5px solid #1dbf73;
}

.tc-auth-cta__btn--secondary:hover,
.tc-auth-cta__btn--secondary:focus {
  background: #effbf9;
}

.tc-auth-cta__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #353e48 !important;
  text-decoration: underline !important;
}

@media (max-width: 600px) {
  .tc-auth-cta__actions {
    flex-direction: column;
  }

  .tc-auth-cta__btn {
    width: 100%;
  }
}
