/* ═══════════════════════════════════════════════════════════
   QARIBIA — Nav Account Chip + Toast
   Sign-in/up itself now lives on its own page (signin.html +
   css/signin.css), styled like the operator/admin login pages
   rather than a popup. This file only holds what every page
   still needs: the profile avatar in the nav, its dropdown, the
   mobile equivalent, and the small toast used for "coming soon"
   menu items and the welcome-back nudge after returning from
   signin.html.
   ══════════════════════════════════════════════════════════ */

.qa-account-chip {
  position: relative;
}

.qa-account-chip__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: background var(--trans-base), border-color var(--trans-base);
}

.qa-account-chip__btn:hover,
.qa-account-chip__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
}

.qa-account-chip__name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.qa-account-chip__btn i {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  transition: transform var(--trans-base);
  flex-shrink: 0;
}

.qa-account-chip.open .qa-account-chip__btn i {
  transform: rotate(180deg);
}

.qa-account-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  overflow: hidden;
}

.qa-account-chip__avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.qa-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-account-chip__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.18);
  border: 1px solid rgba(28, 37, 54, 0.06);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--trans-base);
  z-index: 10;
}

.qa-account-chip.open .qa-account-chip__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qa-account-chip__who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(28, 37, 54, 0.07);
}

.qa-account-chip__who-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.qa-account-chip__divider {
  height: 1px;
  background: rgba(28, 37, 54, 0.07);
  margin: 6px 4px;
}

.qa-account-chip__menu a,
.qa-account-chip__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--trans-base);
}

.qa-account-chip__menu a:hover,
.qa-account-chip__menu button:hover {
  background: var(--cream);
}

.qa-account-chip__menu i {
  width: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Mobile profile group (injected into the slide-out nav) ─── */
.qa-mobile-auth__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
}

.qa-mobile-auth__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.qa-mobile-auth__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  color: #fff;
}

.qa-mobile-auth__list i {
  width: 18px;
  opacity: 0.75;
}

/* ── "Coming soon" toast for unbuilt menu items ──────────────── */
.qa-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 12px);
  background: var(--midnight);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 3200;
}

.qa-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .qa-auth-card {
    padding: 32px 24px 28px;
    border-radius: 18px;
  }
}
