/* Public header user menu */

body.pd-header-auth-pending [data-pd-auth-login] {
  display: none !important;
}

.pd-header__auth-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  min-height: 2.25rem;
}

.pd-header__auth-loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  animation: pd-header-auth-pulse 1s ease-in-out infinite;
}

@keyframes pd-header-auth-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.pd-header__btn--services {
  color: var(--pd-header-link, #cbd5e1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.pd-header__btn--services:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.pd-header__user-menu {
  position: relative;
}

.pd-header__user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.pd-header__user-btn:hover,
.pd-header__user-btn[aria-expanded="true"] {
  border-color: rgba(34, 211, 238, 0.45);
}

.pd-header__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0074b3, #22d3ee);
  color: #fff;
  flex-shrink: 0;
}

.pd-header__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.pd-header__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  box-shadow: 0 16px 40px rgba(0, 0,  0, 0.35);
  z-index: 200;
}

.pd-header__dropdown[hidden] {
  display: none !important;
}

.pd-header__dropdown a,
.pd-header__dropdown button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pd-header__dropdown a:hover,
.pd-header__dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pd-header__dropdown-divider {
  height: 1px;
  margin: 0.25rem 0;
  background: rgba(255, 255, 255, 0.08);
}

.pd-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pd-empty__demo {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--app-border, rgba(255, 255, 255, 0.1));
}

.pd-empty__demo-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-text-muted, #94a3b8);
}

.pd-empty__demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.pd-empty__demo-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pd-empty__demo-list a {
  color: var(--app-accent, #22d3ee);
  font-weight: 600;
  text-decoration: none;
}

.pd-empty__demo-list span {
  font-size: 0.8125rem;
  color: var(--app-text-muted, #94a3b8);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.showcase-card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--app-border, rgba(255, 255, 255, 0.12));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.showcase-card:hover {
  border-color: var(--app-accent, #22d3ee);
}

.showcase-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.showcase-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.showcase-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--app-text-muted, #94a3b8);
  line-height: 1.5;
}

.showcase-card--rich {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.showcase-card__pitch {
  font-size: 0.875rem;
  color: var(--app-text-muted, #94a3b8);
  flex: 1;
}

.showcase-grid--rich {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.pd-header__drawer-auth {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.products-activation-banner {
  padding: 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, rgba(0, 116, 179, 0.18), rgba(34, 211, 238, 0.08));
  margin-bottom: 1.25rem;
}

.products-activation-banner h2 {
  margin: 0 0 0.35rem;
}

.products-activation-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .pd-header__user-btn span:not(.pd-header__avatar) {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
