/**
 * Appily Seventyseven — Vault Desk
 * Light account shell · Onest + JetBrains Mono
 */

/* ── Tokens & base ─────────────────────────────────────────── */

body.vx-account {
  --vx-paper: #F1F4F8;
  --vx-panel: #FFFFFF;
  --vx-ink: #0B1220;
  --vx-mute: #64748B;
  --vx-teal: #0D9488;
  --vx-teal-deep: #0F766E;
  --vx-coral: #F43F5E;
  --vx-line: rgba(11, 18, 32, 0.1);
  --vx-display: "Onest", system-ui, sans-serif;
  --vx-mono: "JetBrains Mono", ui-monospace, monospace;
  --vx-radius: 14px;
  --vx-radius-sm: 10px;
  --vx-shadow: 0 18px 48px rgba(11, 18, 32, 0.08);
  --vx-shadow-soft: 0 8px 24px rgba(11, 18, 32, 0.06);
  --vx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --vx-glow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  --vx-rise-y: 18px;
  --vx-rise-dur: 0.65s;

  margin: 0;
  min-height: 100dvh;
  font-family: var(--vx-display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--vx-ink);
  background: var(--vx-paper);
  -webkit-font-smoothing: antialiased;
}

body.vx-account *,
body.vx-account *::before,
body.vx-account *::after {
  box-sizing: border-box;
}

body.vx-account .a77-bare-main {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

/* ── Root & ambient mesh ─────────────────────────────────────── */

.vx-root {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow-x: visible;
}

.vx-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(13, 148, 136, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 18%, rgba(244, 63, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(13, 148, 136, 0.05) 0%, transparent 60%),
    linear-gradient(165deg, #F8FAFC 0%, var(--vx-paper) 42%, #EEF2F7 100%);
}

.vx-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 20%, transparent 75%);
}

.vx-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

.vx-orb--a {
  width: min(520px, 72vw);
  height: min(520px, 72vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14) 0%, rgba(13, 148, 136, 0) 68%);
  animation: vx-orb-drift-a 22s ease-in-out infinite alternate;
}

.vx-orb--b {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  bottom: -10%;
  left: -6%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, rgba(244, 63, 94, 0) 70%);
  animation: vx-orb-drift-b 26s ease-in-out infinite alternate;
}

@keyframes vx-orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-24px, 18px) scale(1.06); }
}

@keyframes vx-orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -14px) scale(1.04); }
}

/* ── Top bar ─────────────────────────────────────────────────── */

.vx-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--vx-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: var(--vx-ink);
  min-width: 0;
}

.vx-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  max-width: 18ch;
}

.vx-brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--vx-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vx-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-family: var(--vx-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, var(--vx-teal) 0%, var(--vx-teal-deep) 100%);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}

.vx-top-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vx-top-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vx-mute);
  text-decoration: none !important;
  transition: color 0.2s, background 0.2s;
}

.vx-top-links a:hover {
  color: var(--vx-ink);
  background: rgba(11, 18, 32, 0.04);
}

.vx-top-cta {
  margin-left: 0.25rem;
  color: #fff !important;
  background: var(--vx-ink) !important;
}

.vx-top-cta:hover {
  background: #162033 !important;
  color: #fff !important;
}

/* ── Shell & loading ─────────────────────────────────────────── */

.vx-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  min-width: 0;
}

.vx-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 220px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--vx-radius);
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-shadow-soft);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vx-mute);
}

.vx-loading::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--vx-teal);
  animation: vx-spin 0.75s linear infinite;
}

/* ── Desk layout (logged in) ───────────────────────────────── */

.vx-desk {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.vx-identity {
  position: sticky;
  top: 1rem;
  padding: 1.5rem 1.35rem;
  border-radius: calc(var(--vx-radius) + 2px);
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-shadow-soft);
}

.vx-avatar {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
}

.vx-avatar > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--vx-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--vx-teal-deep);
  background: linear-gradient(160deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.04) 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border-radius: 18%;
}

.vx-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 22%;
  border: 2px solid transparent;
  border-top-color: var(--vx-teal);
  border-right-color: rgba(13, 148, 136, 0.35);
  animation: vx-avatar-spin 8s linear infinite;
  pointer-events: none;
}

@keyframes vx-avatar-spin {
  to { transform: rotate(360deg); }
}

.vx-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vx-teal);
}

.vx-identity h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vx-identity-copy {
  margin: 0 0 1.1rem;
  font-size: 0.84rem;
  color: var(--vx-mute);
  line-height: 1.5;
}

.vx-identity-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vx-stage {
  min-width: 0;
}

/* ── Segment nav + glider ────────────────────────────────────── */

.vx-segments {
  position: relative;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border-radius: calc(var(--vx-radius) + 4px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-shadow-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.vx-segments::-webkit-scrollbar {
  display: none;
}

.vx-segment-glider {
  position: absolute;
  top: 0.35rem;
  left: 0;
  height: calc(100% - 0.7rem);
  border-radius: var(--vx-radius-sm);
  background: var(--vx-ink);
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.18);
  transition: transform 0.38s var(--vx-ease), width 0.38s var(--vx-ease), opacity 0.2s;
  pointer-events: none;
  z-index: 0;
}

.vx-segment {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-width: 5.5rem;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: var(--vx-radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vx-mute);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s;
}

.vx-segment:hover {
  color: var(--vx-ink);
}

.vx-segment.is-active {
  color: #fff;
}

/* ── Panes ───────────────────────────────────────────────────── */

.vx-panes {
  position: relative;
  min-height: 320px;
}

.dash-panel {
  display: none;
}

.dash-panel.is-active {
  display: block;
}

.vx-pane {
  padding: 1.5rem 1.45rem 1.65rem;
  border-radius: calc(var(--vx-radius) + 2px);
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s var(--vx-ease),
    transform 0.42s var(--vx-ease);
}

.vx-pane.is-active {
  opacity: 1;
  transform: translateY(0);
}

.vx-pane-head {
  margin-bottom: 1.25rem;
}

.vx-pane-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vx-pane-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vx-pane-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--vx-mute);
}

/* ── Profile grid & quick links ──────────────────────────────── */

.vx-profile.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.profile-item {
  padding: 0.9rem 1rem;
  border-radius: var(--vx-radius-sm);
  background: var(--vx-paper);
  border: 1px solid var(--vx-line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-item:hover {
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.04);
}

.profile-item .k {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vx-mute);
}

.profile-item .v {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vx-ink);
  word-break: break-word;
  line-height: 1.4;
}

.profile-item .v.mono {
  font-family: var(--vx-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.vx-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vx-chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vx-teal-deep);
  text-decoration: none !important;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.18);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.vx-chip-link:hover {
  background: rgba(13, 148, 136, 0.14);
  border-color: rgba(13, 148, 136, 0.32);
  transform: translateY(-1px);
}

/* ── Orders ─────────────────────────────────────────────────── */

.vx-orders.order-list {
  display: grid;
  gap: 0.65rem;
}

.vx-orders .order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 1rem 1.05rem;
  border-radius: var(--vx-radius-sm);
  background: var(--vx-paper);
  border: 1px solid var(--vx-line);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.vx-orders .order-row:hover {
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 6px 20px rgba(11, 18, 32, 0.05);
  transform: translateY(-1px);
}

.vx-orders .order-row strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vx-orders.is-compact .order-row {
  padding: 0.65rem 0.85rem;
}

.vx-orders.is-compact .order-row strong {
  font-size: 0.84rem;
}

.vx-orders.is-compact .mini-copy {
  font-size: 0.72rem;
}

.mini-copy {
  margin: 0.18rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--vx-mute);
}

.order-row .btn.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--vx-teal-deep);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.order-row .btn.btn-soft:hover {
  background: rgba(13, 148, 136, 0.18);
  transform: translateY(-1px);
}

/* ── Forms & floating fields ─────────────────────────────────── */

.vx-form.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 28rem;
}

.vx-field {
  position: relative;
  display: block;
}

.vx-field > span {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--vx-mute);
  pointer-events: none;
  transition: top 0.22s var(--vx-ease), transform 0.22s var(--vx-ease), font-size 0.22s, color 0.22s;
  transform-origin: left center;
  background: transparent;
  padding: 0 0.15rem;
  z-index: 1;
}

.vx-field input {
  width: 100%;
  padding: 1.05rem 0.85rem 0.55rem;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius-sm);
  background: var(--vx-panel);
  font: inherit;
  font-size: 0.92rem;
  color: var(--vx-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.vx-field input::placeholder {
  color: transparent;
}

.vx-field input:focus {
  outline: none;
  border-color: var(--vx-teal);
  box-shadow: var(--vx-glow);
}

.vx-field:focus-within > span,
.vx-field.is-filled > span,
.vx-field:has(input:not(:placeholder-shown)) > span {
  top: 0.42rem;
  transform: translateY(0) scale(0.82);
  color: var(--vx-teal-deep);
  font-weight: 600;
}

.vx-field:has(.vx-strength) input {
  padding-bottom: 0.45rem;
}

/* Password strength meter */

.vx-strength {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding: 0 0.1rem;
}

.vx-strength i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.08);
  transition: background 0.28s var(--vx-ease), transform 0.28s var(--vx-spring);
}

.vx-strength[data-score="1"] i:nth-child(-n+1),
.vx-strength[data-score="2"] i:nth-child(-n+2),
.vx-strength[data-score="3"] i:nth-child(-n+3),
.vx-strength[data-score="4"] i:nth-child(-n+4) {
  background: var(--vx-teal);
  transform: scaleY(1.15);
}

.vx-strength[data-score="1"] i:nth-child(-n+1) { background: var(--vx-coral); }
.vx-strength[data-score="2"] i:nth-child(-n+2) { background: #F59E0B; }

.vx-strength-label {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vx-mute);
  letter-spacing: 0.04em;
}

.vx-strength[data-score="1"] ~ .vx-strength-label { color: var(--vx-coral); }
.vx-strength[data-score="2"] ~ .vx-strength-label { color: #D97706; }
.vx-strength[data-score="3"] ~ .vx-strength-label { color: var(--vx-teal); }
.vx-strength[data-score="4"] ~ .vx-strength-label { color: var(--vx-teal-deep); }

/* ── Toggles / switches ──────────────────────────────────────── */

.vx-toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 32rem;
}

.vx-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--vx-radius-sm);
  background: var(--vx-paper);
  border: 1px solid var(--vx-line);
}

.vx-toggles li strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.vx-toggles li span {
  display: block;
  font-size: 0.78rem;
  color: var(--vx-mute);
  line-height: 1.4;
}

.vx-switch {
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.12);
  cursor: pointer;
  transition: background 0.28s var(--vx-ease);
}

.vx-switch.is-on {
  background: var(--vx-teal);
}

.vx-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(1.55rem - 6px);
  height: calc(1.55rem - 6px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.18);
  transition: transform 0.32s var(--vx-spring);
}

.vx-switch.is-on .vx-switch-knob {
  transform: translateX(1.2rem);
}

.vx-switch.is-spring .vx-switch-knob {
  animation: vx-knob-spring 0.38s var(--vx-spring);
}

@keyframes vx-knob-spring {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.vx-switch.is-on.is-spring .vx-switch-knob {
  animation: vx-knob-spring-on 0.38s var(--vx-spring);
}

@keyframes vx-knob-spring-on {
  0%   { transform: translateX(1.2rem) scale(1); }
  40%  { transform: translateX(1.2rem) scale(1.12); }
  100% { transform: translateX(1.2rem) scale(1); }
}

/* ── Gate (logged out) ───────────────────────────────────────── */

.vx-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.vx-gate-story h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.vx-gate-lede {
  margin: 0 0 1.35rem;
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--vx-mute);
  line-height: 1.6;
}

.vx-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vx-perks li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--vx-radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--vx-line);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

.vx-perks li span {
  flex-shrink: 0;
  font-family: var(--vx-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vx-teal);
}

.vx-gate-card {
  padding: 0;
  border-radius: calc(var(--vx-radius) + 4px);
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-shadow);
  overflow: hidden;
}

/* Magnetic tabs */

.vx-mag {
  position: relative;
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem;
  background: var(--vx-paper);
  border-bottom: 1px solid var(--vx-line);
}

.vx-mag-glider {
  position: absolute;
  top: 0.4rem;
  left: 0;
  height: calc(100% - 0.8rem);
  border-radius: var(--vx-radius-sm);
  background: var(--vx-panel);
  border: 1px solid var(--vx-line);
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.07);
  transition: transform 0.38s var(--vx-ease), width 0.38s var(--vx-ease);
  pointer-events: none;
  z-index: 0;
}

.vx-mag-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--vx-radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--vx-mute);
  cursor: pointer;
  transition: color 0.25s;
}

.vx-mag-tab:hover {
  color: var(--vx-ink);
}

.vx-mag-tab.is-active {
  color: var(--vx-teal-deep);
}

.vx-gate-body {
  padding: 1.45rem 1.35rem 1.65rem;
}

.auth-split-panel {
  display: none;
}

.auth-split-panel.is-active {
  display: block;
  animation: vx-panel-in 0.42s var(--vx-ease) both;
}

@keyframes vx-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-split-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-split-panel .lead {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  color: var(--vx-mute);
  line-height: 1.55;
  max-width: 40ch;
}

.vx-forgot.auth-forgot-block {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--vx-line);
}

.vx-forgot summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--vx-teal-deep);
  list-style: none;
  user-select: none;
}

.vx-forgot summary::-webkit-details-marker {
  display: none;
}

.vx-forgot summary::after {
  content: " ›";
  display: inline-block;
  transition: transform 0.2s;
}

.vx-forgot[open] summary::after {
  transform: rotate(90deg);
}

.vx-forgot .vx-form {
  margin-top: 0.85rem;
}

.vx-reset h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.vx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--vx-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.vx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.vx-btn--teal {
  color: #fff;
  background: linear-gradient(145deg, var(--vx-teal) 0%, var(--vx-teal-deep) 100%);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.25);
}

.vx-btn--teal:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.32);
}

.vx-btn--ghost {
  color: var(--vx-ink);
  background: var(--vx-paper);
  border-color: var(--vx-line);
}

.vx-btn--ghost:hover:not(:disabled) {
  background: #E8EDF3;
  border-color: rgba(11, 18, 32, 0.14);
}

.vx-btn--line {
  color: var(--vx-mute);
  background: transparent;
  border-color: var(--vx-line);
}

.vx-btn--line:hover:not(:disabled) {
  color: var(--vx-coral);
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.04);
}

.vx-btn--sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.76rem;
}

/* ── Notices & toast (store-auth.js) ─────────────────────────── */

.notice {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--vx-radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid var(--vx-line);
  background: var(--vx-paper);
  color: var(--vx-ink);
}

.notice.success {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.25);
  color: var(--vx-teal-deep);
}

.notice.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
  color: #B45309;
}

#profileVerifyNotice:empty {
  display: none;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  max-width: min(380px, calc(100vw - 2rem));
  padding: 0.85rem 1.1rem;
  border-radius: var(--vx-radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  background: var(--vx-ink);
  box-shadow: var(--vx-shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.32s var(--vx-ease), transform 0.32s var(--vx-ease);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: linear-gradient(145deg, var(--vx-teal) 0%, var(--vx-teal-deep) 100%);
}

.toast.error {
  background: linear-gradient(145deg, #E11D48 0%, var(--vx-coral) 100%);
}

.toast.warning {
  background: linear-gradient(145deg, #D97706 0%, #F59E0B 100%);
  color: #fff;
}

.toast.info {
  background: var(--vx-ink);
}

/* ── Footer ──────────────────────────────────────────────────── */

.vx-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.35rem;
  border-top: 1px solid var(--vx-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
}

.vx-foot > a {
  font-weight: 700;
  color: var(--vx-ink);
  text-decoration: none !important;
}

.vx-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.vx-foot nav a {
  color: var(--vx-mute);
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s;
}

.vx-foot nav a:hover {
  color: var(--vx-teal-deep);
}

/* ── Scroll reveal ───────────────────────────────────────────── */

[data-vx-rise] {
  opacity: 0;
  transform: translateY(var(--vx-rise-y));
  transition:
    opacity var(--vx-rise-dur) var(--vx-ease),
    transform var(--vx-rise-dur) var(--vx-ease);
  transition-delay: var(--vx-delay, 0ms);
}

[data-vx-rise].is-in {
  opacity: 1;
  transform: translateY(0);
}

.vx-root[data-vx-ready="0"] [data-vx-rise] {
  animation: vx-rise-fallback 0.01s linear 1.4s forwards;
}

@keyframes vx-rise-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Shared animation keyframes ──────────────────────────────── */

@keyframes vx-spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .vx-desk {
    grid-template-columns: 1fr;
  }

  .vx-identity {
    position: static;
  }

  .vx-gate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vx-top {
    flex-direction: column;
    align-items: stretch;
  }

  .vx-brand strong {
    max-width: none;
  }

  .vx-top-links {
    justify-content: flex-start;
  }

  .vx-segments {
    flex-wrap: nowrap;
  }

  .vx-segment {
    min-width: 4.75rem;
    padding-inline: 0.75rem;
  }

  .vx-pane {
    padding: 1.15rem 1rem 1.25rem;
  }

  .vx-profile.profile-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .vx-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .vx-orb--a,
  .vx-orb--b,
  .vx-avatar-ring,
  .vx-loading::before {
    animation: none !important;
  }

  .vx-segment-glider,
  .vx-mag-glider,
  .vx-switch,
  .vx-switch-knob,
  .vx-pane,
  .vx-field > span,
  .vx-field input,
  .vx-strength i,
  .toast,
  [data-vx-rise] {
    transition-duration: 0.01ms !important;
  }

  .auth-split-panel.is-active {
    animation: none !important;
  }

  .vx-switch.is-spring .vx-switch-knob,
  .vx-switch.is-on.is-spring .vx-switch-knob {
    animation: none !important;
  }

  [data-vx-rise] {
    opacity: 1;
    transform: none;
  }
}
