/* Member Prism — account surface. Independent of Halo / prior dock templates. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

.page-account {
  --mp-ink: #e8eef8;
  --mp-mute: #c5d0e0;
  --mp-deep: #070b16;
  --mp-glass: rgba(255, 255, 255, 0.07);
  --mp-glass-2: rgba(255, 255, 255, 0.12);
  --mp-stroke: rgba(255, 255, 255, 0.16);
  --mp-cyan: #5eead4;
  --mp-rose: #fda4af;
  --mp-warn: #fb923c;
  --mp-ok: #86efac;
  --mp-display: 'Bricolage Grotesque', sans-serif;
  --mp-body: 'IBM Plex Sans', sans-serif;
  --mp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--mp-body);
  color: var(--mp-ink);
}

.page-account .a58-main {
  padding: var(--a58-chrome-top, 6.75rem) 0 4rem;
  max-width: none;
  background: var(--mp-deep);
}
.page-account .a58-main button,
.page-account .a58-main input,
.page-account .a58-main select,
.page-account .a58-main textarea {
  color: inherit;
}


.page-account .a58-main > .mp-shell {
  padding-block: 0;
}

.mp-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 70vh;
  padding: 1.5rem 1.25rem 3.5rem;
  background: var(--mp-deep);
}

.mp-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(94, 234, 212, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 35% at 90% 20%, rgba(253, 164, 175, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 90%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(180deg, #0a1020, #070b16 60%);
  pointer-events: none;
  z-index: 0;
}

.mp-blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: mp-morph 14s ease-in-out infinite;
}
.mp-blob-a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  left: -8%;
  top: 18%;
  background: rgba(94, 234, 212, 0.35);
}
.mp-blob-b {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  right: -6%;
  top: 8%;
  background: rgba(253, 164, 175, 0.3);
  animation-delay: -5s;
  animation-direction: reverse;
}
@keyframes mp-morph {
  0%, 100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; transform: translate(0, 0) rotate(0deg); }
  33% { border-radius: 60% 40% 45% 55% / 45% 55% 40% 60%; transform: translate(2%, 3%) rotate(4deg); }
  66% { border-radius: 45% 55% 60% 40% / 55% 45% 50% 50%; transform: translate(-2%, 1%) rotate(-3deg); }
}

.mp-mast,
.mp-loading,
#accountLoggedIn,
#accountLoggedOut,
#authMessage {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin-inline: auto;
}

.mp-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mp-cyan);
}

.mp-mast {
  text-align: center;
  padding: 0.6rem 0 1.6rem;
}
.mp-title {
  margin: 0 0 0.75rem;
  font-family: var(--mp-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.mp-title span {
  background: linear-gradient(120deg, var(--mp-cyan), #a5b4fc 45%, var(--mp-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mp-lede {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--mp-mute);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Loading */
.mp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(18px);
  color: var(--mp-mute);
}
.mp-loading-ring {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.25);
  border-top-color: var(--mp-cyan);
  animation: mp-spin 0.8s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* —— Member ribbon —— */
.mp-ribbon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 28px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.35s;
}
.mp-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 22px 12px 20px 14px;
  display: grid;
  place-items: center;
  font-family: var(--mp-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #07110f;
  background: linear-gradient(145deg, var(--mp-cyan), var(--mp-rose));
  box-shadow: 0 0 28px rgba(94, 234, 212, 0.35);
}
.mp-ribbon-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--mp-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}
.mp-ribbon-copy .notice {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.mp-ribbon-copy .notice.success {
  background: rgba(134, 239, 172, 0.12);
  border-color: rgba(134, 239, 172, 0.3);
  color: var(--mp-ok);
}
.mp-ribbon-copy .notice.warning {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.3);
  color: var(--mp-warn);
}
.mp-ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.mp-pill {
  appearance: none;
  border: 1px solid var(--mp-stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mp-ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--mp-ease), background 0.25s, border-color 0.25s;
}
.mp-pill:hover {
  transform: translateY(-2px);
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.4);
}
.mp-pill-ghost { color: var(--mp-mute); }
.mp-pill-warn:hover {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.45);
  color: var(--mp-warn);
}

/* Liquid tabs */
.mp-tabbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(16px);
}
.mp-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mp-mute);
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.25s;
}
.mp-tab span {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mp-rose);
  opacity: 0.8;
}
.mp-tab.is-active,
.mp-tab:hover {
  color: var(--mp-ink);
}
.mp-tab-liquid {
  position: absolute;
  z-index: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.4rem;
  width: calc((100% - 0.8rem - 0.7rem) / 3);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(253, 164, 175, 0.18));
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s var(--mp-ease);
  pointer-events: none;
}

/* Stage panes */
.mp-stage {
  border-radius: 28px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  padding: 1.35rem 1.35rem 1.5rem;
  overflow: hidden;
}
.mp-pane[hidden] { display: none !important; }
.mp-pane.is-active {
  animation: mp-pane-in 0.45s var(--mp-ease) both;
}
@keyframes mp-pane-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.mp-pane-head {
  margin-bottom: 1.1rem;
}
.mp-pane-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mp-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.mp-pane-head p {
  margin: 0;
  color: var(--mp-mute);
}
.mp-pane-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
}
.mp-link {
  color: var(--mp-cyan);
  font-weight: 600;
  text-decoration: none;
}
.mp-link:hover { color: var(--mp-rose); }

/* Profile grid injected by store-auth */
.mp-profile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.mp-profile .profile-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mp-stroke);
  transition: transform 0.3s var(--mp-ease), border-color 0.25s, background 0.25s;
}
.mp-profile .profile-item:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}
.mp-profile .profile-item .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mp-mute);
}
.mp-profile .profile-item .v {
  font-family: var(--mp-display);
  font-size: 1.05rem;
  color: var(--mp-ink);
  word-break: break-word;
}
.mp-profile .profile-item .v.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--mp-cyan);
}

/* Orders injected rows */
.mp-orders {
  display: grid;
  gap: 0.55rem;
}
.mp-orders .mini-copy {
  color: var(--mp-mute);
  font-size: 0.88rem;
}
.mp-orders .order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mp-stroke);
  transition: transform 0.3s var(--mp-ease), border-color 0.25s;
}
.mp-orders .order-row:hover {
  transform: translateX(4px);
  border-color: rgba(253, 164, 175, 0.35);
}
.mp-orders .order-row strong {
  font-family: var(--mp-display);
}
.mp-orders .btn,
.mp-orders .btn-soft {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--mp-cyan);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.mp-orders .btn:hover,
.mp-orders .btn-soft:hover {
  background: rgba(94, 234, 212, 0.25);
  transform: scale(1.04);
}

/* Forms */
.mp-form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}
.mp-field {
  position: relative;
  display: grid;
  gap: 0.35rem;
}
.mp-field > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-mute);
  transition: color 0.25s;
}
.mp-field input {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--mp-stroke);
  background: rgba(0, 0, 0, 0.42);
  color: var(--mp-ink);
  -webkit-text-fill-color: var(--mp-ink);
  caret-color: var(--mp-ink);
  font: inherit;
  outline: none;
  transition: border-color 0.28s, background 0.28s, box-shadow 0.28s, transform 0.28s;
}
.mp-field input:-webkit-autofill,
.mp-field input:-webkit-autofill:hover,
.mp-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8eef8;
  caret-color: #e8eef8;
  box-shadow: 0 0 0 1000px #0c121c inset;
  transition: background-color 9999s ease-in-out 0s;
}
.mp-field input:focus {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.06);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
  transform: translateY(-1px);
}
.mp-field.is-focus > span { color: var(--mp-cyan); }
.mp-field-line {
  display: block;
  height: 2px;
  margin-top: -2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mp-cyan), var(--mp-rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--mp-ease);
}
.mp-field.is-focus .mp-field-line { transform: scaleX(1); }

.mp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  color: var(--mp-mute);
  font-size: 0.9rem;
}
.mp-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mp-toggle-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--mp-stroke);
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.mp-toggle-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mp-ink);
  transition: transform 0.3s var(--mp-ease), background 0.25s;
}
.mp-toggle input:checked + .mp-toggle-ui {
  background: rgba(94, 234, 212, 0.25);
  border-color: rgba(94, 234, 212, 0.5);
}
.mp-toggle input:checked + .mp-toggle-ui::after {
  transform: translateX(18px);
  background: var(--mp-cyan);
}

.mp-submit {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, var(--mp-cyan), #99f6e4 40%, var(--mp-rose));
  color: #07110f;
  transition: transform 0.3s var(--mp-ease), box-shadow 0.3s;
}
.mp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(94, 234, 212, 0.25);
}
.mp-submit-soft {
  background: transparent;
  color: var(--mp-ink);
  border: 1px solid var(--mp-stroke);
}
.mp-submit-soft:hover {
  border-color: rgba(94, 234, 212, 0.45);
  color: var(--mp-cyan);
  box-shadow: none;
}

/* Guest gate */
.mp-gate {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}
.mp-gate-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 32px 28px 40px 24px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.mp-gate-card::before {
  content: '';
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 70%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent 65%);
  pointer-events: none;
}
.mp-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.3rem;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--mp-stroke);
}
.mp-switch-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mp-mute);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.25s;
}
.mp-switch-btn.is-active { color: var(--mp-ink); }
.mp-switch-glider {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.25), rgba(253, 164, 175, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.3);
  transition: transform 0.4s var(--mp-ease);
}
.mp-gate-card[data-active="register"] .mp-switch-glider {
  transform: translateX(100%);
}
.mp-gate-panel h2 {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: var(--mp-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.mp-hint {
  position: relative;
  margin: 0 0 1rem;
  color: var(--mp-mute);
}
.mp-gate-panel {
  position: relative;
  animation: mp-pane-in 0.4s var(--mp-ease) both;
}
.mp-forgot {
  margin-top: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--mp-stroke);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem 0.85rem 0.85rem;
}
.mp-forgot summary {
  cursor: pointer;
  padding: 0.55rem 0;
  color: var(--mp-cyan);
  font-weight: 600;
  list-style: none;
}
.mp-forgot summary::-webkit-details-marker { display: none; }
.mp-forgot[open] {
  animation: mp-pane-in 0.3s var(--mp-ease);
}

.mp-perks {
  padding: 1.35rem;
  border-radius: 28px 36px 22px 40px;
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.12), rgba(253, 164, 175, 0.1));
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(16px);
}
.mp-perks h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mp-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.mp-perks > p {
  margin: 0 0 1rem;
  color: var(--mp-mute);
}
.mp-perk-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mp-perk-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--mp-stroke);
  animation: mp-pane-in 0.45s var(--mp-ease) both;
  animation-delay: calc(var(--pi, 0) * 60ms);
  transition: transform 0.3s, border-color 0.25s;
}
.mp-perk-list li:hover {
  transform: translateX(4px);
  border-color: rgba(94, 234, 212, 0.35);
}
.mp-perk-list span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mp-rose);
  font-weight: 700;
}
.mp-perk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.mp-perk-links a {
  color: var(--mp-cyan);
  font-weight: 600;
  text-decoration: none;
}
.mp-perk-links a:hover { color: var(--mp-rose); }

/* Toast */
.page-account #authMessage.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  max-width: min(440px, calc(100vw - 2rem));
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid var(--mp-stroke);
  backdrop-filter: blur(16px);
  color: var(--mp-ink);
  opacity: 0;
  transition: transform 0.4s var(--mp-ease), opacity 0.35s;
  pointer-events: none;
}
.page-account #authMessage.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.page-account #authMessage.toast.success { border-color: rgba(134, 239, 172, 0.45); }
.page-account #authMessage.toast.error { border-color: rgba(251, 146, 60, 0.5); }
.page-account #authMessage.toast.warning { border-color: rgba(253, 164, 175, 0.45); }

@media (max-width: 860px) {
  .mp-gate {
    grid-template-columns: 1fr;
  }
  .mp-ribbon {
    grid-template-columns: auto 1fr;
  }
  .mp-ribbon-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .mp-profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mp-tab span { display: none; }
  .mp-gate-card {
    border-radius: 24px;
    padding: 1.1rem;
  }
  .mp-shell { padding-inline: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-blob,
  .mp-loading-ring,
  .mp-pane.is-active,
  .mp-gate-panel,
  .mp-perk-list li {
    animation: none !important;
  }
  .mp-tab-liquid,
  .mp-switch-glider {
    transition: none;
  }
}
