/* /app/css/account-panel.css */
/* Full-screen dim + centered card-style account panel */

/* Dimmed overlay on top of map */
.px-account-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* still behaves like a bottom sheet */
  transition: opacity 180ms ease;
}

.px-account-panel--hidden {
  opacity: 0;
  pointer-events: none;
}

/* The panel container (soft pink like screenshot) */
.px-account-panel-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 80vh;
  border-radius: 24px 24px 0 0;
  background: #fef2f7; /* soft pink background */
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.4);
  padding: 18px 18px 22px;
  box-sizing: border-box;
  overflow-y: auto;

  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(.25,.95,.5,1.2);
}

/* When open, slide sheet up */
.px-account-panel--open .px-account-panel-inner {
  transform: translateY(0%);
}

/* Close button (X) */
.px-account-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.px-account-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.px-account-close:active {
  transform: translateY(1px);
}

/* Mobile tweak */
@media (max-width: 480px) {
  .px-account-panel-inner {
    height: 78vh;
    padding: 16px 14px 20px;
    border-radius: 24px 24px 0 0;
  }
}