/* === Profile Overlay (half-screen modal) === */
#profile-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55vh;
  background: rgba(14,14,14,0.98);
  border-top: 1px solid #333;
  display: none;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#profile-overlay.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

#profile-overlay .overlay-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

/* Close button */
#closeProfile {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

#profile-content { margin-top: 1.8rem; }

/* Rows */
.profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #242424;
}

.profile-row strong {
  min-width: 140px;
  font-weight: 600;
  color: #ddd;
}

/* Avatar styles */
.profile-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  background: #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.google-glow {
  border: 2px solid transparent;
  box-shadow: 0 0 6px rgba(66,133,244,0.8);
}

.guest-outline {
  border: 2px solid #555;
}

/* Username */
.profile-username {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00ffcc;
}

/* Buttons */
.profile-btn {
  margin-left: auto;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #3a3a3a;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, box-shadow 0.2s ease;
}
.profile-btn:hover { background: #2a2a2a; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.profile-btn:active { transform: scale(0.98); }

.profile-btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* Meta */
.profile-meta {
  text-align: center;
  color: #777;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

/* Account Type Badge Styles */
.profile-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: fadeInBadge 0.4s ease-in-out;
}

.badge-google {
  background: linear-gradient(135deg, #4285F4, #34A853);
}

.badge-guest {
  background: linear-gradient(135deg, #777, #444);
}

@keyframes fadeInBadge {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
  #profile-overlay {
    height: 65vh;
  }
  .profile-row strong { min-width: 100px; font-size: 0.9rem; }
  .profile-username { font-size: 1rem; }
}
.profile-favorite-row{
display:flex;
align-items:center;
gap:10px;
}

.profile-favorite-row strong{
min-width:auto;
}

.profile-favorite-row span{
font-weight:600;
color:#ffd700;
}

.profile-favorite-row .profile-btn{
margin-left:auto;
}
#profile-overlay {
  background: #0e0e0e;
}
.profile-input {
  background: #0f0f0f;
  color: #ffffff;
  border: 1px solid #ffffff;
  caret-color: #ffffff;
  font-size: 16px;
  width: 100%;
}

.profile-input:focus {
  outline: none;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}

.profile-input::placeholder {
  color: #999;
}
