/* ===== AUTH / AVATAR (upgrade selaras video.css) ===== */

.auth-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: #0f172a;
  border: 1px solid rgba(148,163,184,.5);
  box-shadow: 0 6px 16px rgba(15,23,42,.18);
  position: relative;
  overflow: hidden;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ring tipis di luar avatar */
.auth-avatar-circle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(59,130,246,.35);
  opacity: .85;
  pointer-events: none;
}

body.dark-mode .auth-avatar-circle {
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.75));
  color: #e5e7eb;
  border-color: rgba(148,163,184,.7);
  box-shadow: 0 8px 20px rgba(0,0,0,.7);
}

body.dark-mode .auth-avatar-circle::before {
  border-color: rgba(56,189,248,.6);
}

/* tombol profil di header */
.header-profile-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-profile-btn:hover {
  background: rgba(15,23,42,.03);
  border-color: rgba(148,163,184,.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,23,42,.16);
}

body.dark-mode .header-profile-btn:hover {
  background: rgba(15,23,42,.7);
  border-color: rgba(148,163,184,.7);
  box-shadow: 0 6px 14px rgba(0,0,0,.8);
}

.header-profile-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

body.dark-mode .header-profile-btn:focus-visible {
  outline-color: #38bdf8;
}

/* inisial user di avatar/profile */
.home-hero-profile-initial {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* state: logged in di hero (chip) */
.home-hero-profile-logged {
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  color: #0d6efd;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .7rem;
  font-weight: 600;
  border: 1px solid rgba(59,130,246,.35);
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.home-hero-profile-logged::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.3);
}

body.dark-mode .home-hero-profile-logged {
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.7));
  color: #bfdbfe;
  border-color: rgba(129,140,248,.7);
  box-shadow: 0 6px 16px rgba(0,0,0,.8);
}
