/* ── Profile Page ── Ultra 3.0 ── */

/* Premium Cards */
.p-card {
  background: #fff;
  border: 1px solid rgba(196,175,245,0.15);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px -8px rgba(107,95,160,0.07);
  transition: box-shadow .3s ease, transform .3s ease;
}
.p-card:hover { box-shadow: 0 16px 48px -12px rgba(107,95,160,0.12); }

/* Tab System */
.tab-hidden { display: none !important; }
.tab-active { display: block; }

/* Edit Sheet Overlay */
.edit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,10,20,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.edit-overlay.open { opacity: 1; pointer-events: auto; visibility: visible; }

.edit-sheet {
  background: #fff;
  border-radius: 2rem;
  width: 95%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.edit-overlay.open .edit-sheet { transform: translateY(0) scale(1); }

/* Floating Input */
.fi { position: relative; margin-bottom: 0; }
.fi input {
  width: 100%; padding: 14px 0 8px; font-size: 15px; font-weight: 500;
  border: none; border-bottom: 2px solid rgba(107,95,160,0.12);
  background: transparent; color: #1a1a2e; outline: none;
  transition: border-color .3s ease;
}
.fi input:focus { border-bottom-color: #c4aff5; }
.fi label {
  position: absolute; left: 0; top: 14px;
  font-size: 13px; font-weight: 500; color: rgba(107,95,160,0.5);
  pointer-events: none; transition: all .25s ease;
}
.fi input:focus + label,
.fi input:not(:placeholder-shown) + label {
  top: -6px; font-size: 10px; color: #c4aff5;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}

/* Stars */
.star-rating svg {
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), color .15s ease;
}
.star-rating svg:hover { transform: scale(1.25) rotate(5deg); }

/* Scrollbar */
.edit-sheet::-webkit-scrollbar { width: 4px; }
.edit-sheet::-webkit-scrollbar-thumb { background: rgba(107,95,160,0.15); border-radius: 9px; }

/* Mobile */
@media (max-width: 640px) {
  .edit-sheet { border-radius: 1.25rem; width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; }
}
