.lp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; }

.lp-user-dropdown { position: relative; }
.lp-user-btn {
  background: none; border: none; cursor: pointer;
  padding: .125rem; border-radius: 9999px; position: relative;
  transition: box-shadow .2s ease;
}
.lp-user-btn:focus-visible { outline: 2px solid rgba(16,185,129,.5); outline-offset: 2px; }
.lp-header-avatar-img {
  width: 34px; height: 34px; border-radius: 9999px;
  object-fit: cover; display: block;
  border: 2px solid rgba(16,185,129,.2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-user-btn:hover .lp-header-avatar-img {
  border-color: rgba(16,185,129,.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.lp-header-avatar-initials {
  width: 34px; height: 34px; border-radius: 9999px;
  background: linear-gradient(135deg,#10b981,#059669);
  color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .7rem;
  border: 2px solid rgba(16,185,129,.25);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-user-btn:hover .lp-header-avatar-initials {
  border-color: rgba(16,185,129,.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.lp-user-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; border: 2px solid #fff;
}

.lp-header-link {
  position: relative; text-decoration: none;
  font-size: .8125rem; font-weight: 600;
  color: #57534e; padding: .5rem 1rem; border-radius: .5rem;
  transition: color .2s cubic-bezier(.34,1.56,.64,1), background .2s cubic-bezier(.34,1.56,.64,1);
}
.lp-header-link:hover { color: #1c1917; background: rgba(28,25,23,.05); }
.lp-header-link.active { color: #059669; }
.lp-header-link::after {
  content: ''; position: absolute; inset: auto 50% .25rem;
  transform: translateX(-50%) scaleX(0);
  width: 1rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg,#10b981,#34d399);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.lp-header-link.active::after { transform: translateX(-50%) scaleX(1); }
.lp-header-link:hover::after { transform: translateX(-50%) scaleX(.3); }
.lp-header-link.active:hover::after { transform: translateX(-50%) scaleX(1); }

.lp-login-btn {
  color: #57534e; text-decoration: none; font-size: .8125rem; font-weight: 600;
  padding: .5rem .875rem; border-radius: .5rem;
  transition: color .2s cubic-bezier(.34,1.56,.64,1), background .2s cubic-bezier(.34,1.56,.64,1);
}
.lp-login-btn:hover { color: #1c1917; background: rgba(28,25,23,.05); }

.lp-header-cta {
  display: inline-flex; align-items: center; gap: .375rem;
  background: linear-gradient(135deg,#10b981,#059669) !important;
  color: #fff !important; font-size: .8125rem; font-weight: 600;
  padding: .5rem 1.25rem; border-radius: 9999px;
  text-decoration: none; letter-spacing: .005em;
  box-shadow: 0 2px 12px rgba(16,185,129,.25);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.lp-header-cta:hover {
  box-shadow: 0 4px 20px rgba(16,185,129,.35);
  transform: translateY(-1px) scale(1.02);
}
.lp-header-cta:active { transform: scale(.97); }

.lp-user-menu {
  position: absolute; top: calc(100% + .5rem); right: 0;
  width: 260px; background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: .75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1), visibility .2s ease;
  z-index: 9999;
}
.lp-user-btn[aria-expanded="true"] + .lp-user-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.lp-user-card {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  background: rgba(0,0,0,.02);
}
.lp-user-card-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem;
}
.lp-user-avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }
.lp-user-avatar-initials {
  width: 40px; height: 40px; font-size: .8125rem;
  background: linear-gradient(135deg,#10b981,#059669);
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 9999px;
}
.lp-user-info { min-width: 0; flex: 1; }
.lp-user-name {
  display: block; font-size: .875rem; font-weight: 600;
  color: #1c1917; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-user-email {
  display: block; font-size: .75rem; color: #78716c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-user-meta { display: flex; align-items: center; gap: .375rem; }
.lp-plan-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 9999px; text-transform: capitalize;
}
.plan-free { color: #78716c; background: rgba(28,25,23,.06); }
.plan-paid { color: #10b981; background: rgba(16,185,129,.1); }
.lp-admin-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; color: #f59e0b; background: rgba(245,158,11,.1); }

.lp-user-menu-items { padding: .375rem 0; }
.lp-menu-item {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .5rem 1rem; font-size: .875rem;
  color: #57534e; text-decoration: none; border: none; background: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lp-menu-item:hover { background: rgba(28,25,23,.04); color: #1c1917; }
.lp-menu-item svg { flex-shrink: 0; }
.lp-menu-item-danger { color: #ef4444; }
.lp-menu-item-danger:hover { background: rgba(239,68,68,.08); color: #dc2626; }
.lp-menu-item-admin { color: #f59e0b; }
.lp-menu-divider { height: 1px; background: rgba(0,0,0,.06); margin: .25rem 0; }
.lp-logout-form { padding: .375rem 0 .5rem; }

.lp-mobile-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; font-size: .875rem;
  color: #57534e; text-decoration: none; border-radius: .5rem;
  transition: background .15s ease, color .15s ease;
}
.lp-mobile-link:hover { background: rgba(28,25,23,.04); color: #1c1917; }
.lp-mobile-link.active { color: #059669; font-weight: 600; }
.lp-mobile-link-admin { color: #f59e0b; }
.lp-mobile-login {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; font-size: .875rem;
  color: #1c1917; font-weight: 500; text-decoration: none; border-radius: .5rem;
  transition: background .15s ease;
}
.lp-mobile-login:hover { background: rgba(28,25,23,.04); }
.lp-mobile-cta {
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .625rem .75rem; font-size: .875rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,#10b981,#059669) !important;
  border-radius: .5rem; text-decoration: none; margin-top: .25rem;
}
