/* Full-screen Account page (not Settings) */
#accountPage {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(8, 12, 20, 0.72);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#accountPage[hidden] {
  display: none !important;
}

.account-sheet {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface, #121a28);
  color: var(--text, #e2e8f0);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 520px) {
  #accountPage {
    align-items: center;
    padding: 24px 16px;
  }
  .account-sheet {
    border-radius: 18px;
    max-height: min(640px, 92vh);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
  }
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  position: sticky;
  top: 0;
  background: var(--surface, #121a28);
  z-index: 1;
}

.account-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.account-body {
  padding: 8px 18px 28px;
}

.account-panel h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.account-lead {
  color: var(--muted, #94a3b8);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

.account-field {
  margin-bottom: 12px;
}

.account-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--muted, #94a3b8);
}

.account-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--bg, #0b1220);
  color: var(--text, #e2e8f0);
  font: inherit;
  font-size: 0.95rem;
}

.account-field input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.account-actions .btn {
  width: 100%;
  min-height: 44px;
}

.account-profile {
  text-align: center;
  padding: 12px 0 20px;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.account-profile h2 {
  margin: 0 0 4px;
}

.account-email {
  color: var(--muted, #94a3b8);
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.account-plan-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.account-note {
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
  line-height: 1.4;
  margin-top: 16px;
}

#accountBtn.is-logged-in {
  color: var(--text, #e2e8f0);
}

#accountBtn.is-plus {
  color: #14b8a6;
  box-shadow: 0 0 0 1.5px rgba(20, 184, 166, 0.55);
}

body.account-open {
  overflow: hidden;
}
