/* Shared auth header widget */
.auth-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-header__toggle,
.auth-header__signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #ffffff;
  padding: 0;
}

.auth-header__signin {
  background: var(--yellow, #ffd559);
  color: var(--black, #0d0d0d);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm, 8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.auth-header__signin:hover {
  background: var(--yellow-dark, #e6be3e);
  transform: translateY(-1px);
}

.auth-header__signin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-header__toggle:hover {
  opacity: 0.92;
}

.auth-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow, #ffd559);
  background: var(--yellow, #ffd559);
  flex-shrink: 0;
}

.auth-header__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-header__avatar--fallback svg {
  width: 18px;
  height: 18px;
  stroke: var(--black, #0d0d0d);
}

.auth-header__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .auth-header__name {
    display: none;
  }
}

.auth-header__chevron {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.auth-header__toggle[aria-expanded='true'] .auth-header__chevron {
  transform: rotate(180deg);
}

.auth-header__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--white, #ffffff);
  border: 1px solid var(--border, #e5e5e0);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(13, 13, 13, 0.12));
  z-index: 1000;
  overflow: hidden;
  text-align: left;
}

.auth-header__info {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #e5e5e0);
  background: var(--light, #f5f5f0);
}

.auth-header__info strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--black, #0d0d0d);
  margin-bottom: 2px;
}

.auth-header__info span {
  display: block;
  font-size: 0.78rem;
  color: var(--charcoal, #36414D);
  word-break: break-word;
}

.auth-header__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--charcoal, #36414D);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-header__item:hover {
  background: var(--light-2, #ebebe5);
}

.auth-header__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

.auth-header__status {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #15803d;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
}

.auth-header__status--error {
  color: #b91c1c;
  background: #fef2f2;
  border-top-color: #fecaca;
}
