/* urbanXplorer Account — traveler identity surface */
.account-panel {
  position: fixed;
  z-index: 2250;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F8FAFC;
  color: #0F172A;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(.22,.8,.26,1), opacity 180ms ease;
  pointer-events: none;
}

.account-panel[hidden] { display: none !important; }

.account-panel.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.account-panel *,
.account-panel button,
.account-panel input {
  box-sizing: border-box;
  font-family: var(--font-family);
}

.account-header {
  flex: 0 0 auto;
  min-height: calc(62px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(100,116,139,.16);
  background: linear-gradient(180deg,#fff,#f8fafc);
}

.account-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-title-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.account-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.account-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  font-size: 25px;
  cursor: pointer;
}

.account-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px calc(30px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.account-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.account-intro,
.account-auth-card,
.account-user-card,
.account-plan-card {
  border: 1px solid rgba(100,116,139,.16);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 26px rgba(15,23,42,.05);
}

.account-intro h3,
.account-user-card h3,
.account-plan-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.account-intro p,
.account-user-card p,
.account-plan-card p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.45;
}

.account-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: #F1F5F9;
  margin-bottom: 14px;
}

.account-auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
}

.account-auth-tab.is-active {
  background: #fff;
  color: #0F766E;
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

.account-social-grid {
  display: grid;
  gap: 9px;
}

.account-social {
  min-height: 48px;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  background: #fff;
  color: #0F172A;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.account-social:disabled {
  opacity: .48;
  cursor: default;
}

.account-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
}

.account-separator::before,
.account-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #E2E8F0;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-field {
  display: grid;
  gap: 6px;
}

.account-field span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.account-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  background: #fff;
  color: #0F172A;
  padding: 0 12px;
  font-size: 16px;
}

.account-primary,
.account-secondary {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.account-primary {
  border: 0;
  background: #0F766E;
  color: #fff;
}

.account-secondary {
  border: 1px solid rgba(13,148,136,.22);
  background: #F0FDFA;
  color: #0F766E;
}

.account-primary:disabled,
.account-secondary:disabled {
  opacity: .5;
  cursor: default;
}

.account-status {
  min-height: 18px;
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
}

.account-status.is-error { color: #B91C1C; }
.account-status.is-success { color: #047857; }

.account-anonymous-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  display: grid;
  gap: 10px;
}

.account-anonymous-note p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
  line-height: 1.45;
}

.account-user-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #CCFBF1;
  color: #0F766E;
  font-weight: 900;
  font-size: 18px;
}

.account-user-copy {
  min-width: 0;
}

.account-user-copy strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.account-user-copy small {
  display: block;
  margin-top: 3px;
  color: #64748B;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-meta-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.account-meta {
  padding: 12px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.account-meta span {
  display: block;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
}

.account-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.account-user-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.account-plan-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #047857;
  font-size: 12px;
  font-weight: 850;
}

.account-plan-state.is-free {
  background: #F1F5F9;
  color: #475569;
}

@media (prefers-reduced-motion: reduce) {
  .account-panel { transition: none; }
}

@media (min-width: 760px) {
  .account-scroll { padding-top: 24px; }
}
