/* ============================================
   EMPYREAN — BURBUJA DE PERFIL
   ============================================ */

.profile-bubble {
  position: absolute;
  top: 82px;
  right: 18px;
  width: 320px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 32px;
  box-shadow:
    0 35px 80px rgba(96, 32, 96, 0.22),
    0 0 0 1px rgba(96, 32, 96, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 35px 22px 22px;
  z-index: 2000;
  transform-origin: top right;
  display: none;
  max-height: 82vh;
  overflow-y: auto;
}
@media (max-width: 450px) {
  .profile-bubble { width: auto; left: 15px; right: 15px; }
}

/* ─── Botón cerrar ──────────────────────────── */
.close-bubble-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: #f1f2f6;
  border-radius: 50%;
  border: none;
  color: #636e72;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9rem;
  z-index: 10;
}
.close-bubble-btn:hover {
  background: #ffebee;
  color: var(--danger);
  transform: scale(1.12) rotate(90deg);
}

/* ─── Avatar ────────────────────────────────── */
.bubble-avatar-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #b273b2);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(96, 32, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  font-weight: bold;
  z-index: 1;
}
.bubble-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 0.8rem;
  text-align: center;
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.bubble-avatar-wrapper:hover .avatar-edit-overlay { opacity: 1; }

/* ─── Inputs ────────────────────────────────── */
.bubble-input-group { margin-bottom: 12px; text-align: left; }
.bubble-input-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 700;
  padding-left: 5px;
}
.bubble-input-group input[type="text"] {
  padding: 12px 15px;
  font-size: 0.95rem;
  margin: 0;
  border-radius: 16px;
  background: rgba(245, 245, 245, 0.8);
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s;
}
.bubble-input-group input[type="text"]:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(96, 32, 96, 0.05);
  outline: none;
}

/* ─── Botones burbuja ───────────────────────── */
.btn-bubble {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  transition: transform 0.1s, background 0.2s;
  font-size: 0.9rem;
}
.btn-bubble:active { transform: scale(0.95); }
.btn-bubble:hover  { transform: translateY(-1px); }
.btn-bubble.pass   { background: rgba(96, 32, 96, 0.05); color: var(--primary); }
.btn-bubble.pass:hover { background: rgba(96, 32, 96, 0.1); }
.btn-bubble.logout { background: rgba(255, 71, 87, 0.08); color: var(--danger); margin-top: 8px; }
.btn-bubble.logout:hover { background: rgba(255, 71, 87, 0.15); }

/* ─── Longpress overlay ─────────────────────── */
.longpress-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.1s;
}
.longpress-overlay.active { opacity: 1; }
.longpress-svg circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}
.longpress-overlay.active circle { animation: lp-fill 0.9s linear forwards; }
