/* Appily Twentyfive — Vital Gauge account console (unique AP25 layout) */

.vg25-page {
  background: var(--pu-light);
  padding-bottom: 72px;
}

/* ── Hero ── */
.vg25-hero {
  position: relative;
  background: var(--pu-black);
  color: var(--pu-white);
  padding: 56px 0 72px;
  overflow: hidden;
}
.vg25-hero-gauge {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  opacity: .14;
  pointer-events: none;
}
.vg25-hero-gauge svg { width: 100%; height: 100%; }
.vg25-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.vg25-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pu-lime);
}
.vg25-hero h1 {
  font-family: var(--pu-font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.vg25-hero h1 em {
  font-style: normal;
  color: var(--pu-lime);
}
.vg25-hero-lede {
  margin: 0;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 15px;
}
.vg25-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--pu-lime);
  background: rgba(191,255,0,.08);
  font-family: var(--pu-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--pu-lime);
  line-height: 1.2;
  text-align: center;
  flex-shrink: 0;
}

/* ── Stage ── */
.vg25-stage {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.vg25-wrap { max-width: 1080px; }

.vg25-loading {
  text-align: center;
  padding: 32px;
  background: var(--pu-white);
  border-radius: 16px;
  border: 1px solid var(--pu-border);
  box-shadow: var(--pu-shadow);
}

/* ── Logged-out: gauge rail + crate ── */
.vg25-access {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
  border: 1px solid var(--pu-border);
}

.vg25-gauge-rail {
  background: var(--pu-black);
  color: var(--pu-white);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.vg25-gauge-rail::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pu-lime) 0%, transparent 40%, transparent 60%, var(--pu-lime) 100%);
  opacity: .5;
}
.vg25-rail-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.vg25-dial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 16px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  font-family: inherit;
}
.vg25-dial:hover {
  border-color: rgba(191,255,0,.35);
  color: var(--pu-white);
}
.vg25-dial.is-active {
  background: rgba(191,255,0,.14);
  border-color: var(--pu-lime);
  color: var(--pu-lime);
  transform: translateX(4px);
}
.vg25-dial-num {
  font-family: var(--pu-font);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.vg25-dial-label {
  font-size: 13px;
  font-weight: 600;
}
.vg25-dial-note {
  font-size: 11px;
  opacity: .7;
}
.vg25-rail-perks {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vg25-rail-perks li {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.vg25-rail-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pu-lime);
}

.vg25-crate {
  position: relative;
  background: var(--pu-white);
  padding: 36px 40px 40px;
}
.vg25-crate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--pu-lime) 0,
    var(--pu-lime) 12px,
    var(--pu-black) 12px,
    var(--pu-black) 24px
  );
}
.vg25-crate-panel {
  display: none;
  animation: vg25FadeIn .35s ease;
}
.vg25-crate-panel.is-focused { display: block; }
@keyframes vg25FadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.vg25-crate-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pu-gray);
}
.vg25-crate-panel h2 {
  font-family: var(--pu-font);
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.vg25-crate-lede {
  margin: 0 0 24px;
  color: var(--pu-gray);
  line-height: 1.65;
  max-width: 440px;
}

.vg25-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}
.vg25-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pu-gray);
  margin-bottom: 6px;
}
.vg25-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pu-border);
  border-radius: 12px;
  font: inherit;
  background: var(--pu-light);
  transition: border-color .15s, box-shadow .15s;
}
.vg25-field input:focus {
  outline: none;
  border-color: var(--pu-black);
  box-shadow: 0 0 0 3px rgba(191,255,0,.35);
  background: var(--pu-white);
}
.vg25-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--pu-radius-pill);
  font-family: var(--pu-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform .12s, opacity .12s;
}
.vg25-btn:hover { transform: translateY(-1px); }
.vg25-btn-primary {
  background: var(--pu-lime);
  color: var(--pu-black);
}
.vg25-btn-primary:hover { background: var(--pu-lime-dim); }
.vg25-btn-soft {
  background: var(--pu-light);
  color: var(--pu-black);
  border: 1px solid var(--pu-border);
}
.vg25-btn-ghost {
  background: transparent;
  color: var(--pu-black);
  border: 1px solid var(--pu-border);
}
.vg25-btn-sm { padding: 10px 18px; font-size: 12px; }

.vg25-forgot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--pu-border);
  max-width: 400px;
}
.vg25-forgot h3 {
  font-family: var(--pu-font);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.vg25-forgot .vg25-form { gap: 12px; }

/* ── Logged-in: member header + compass + console ── */
.vg25-member-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--pu-black);
  color: var(--pu-white);
  border-radius: 20px 20px 0 0;
  border: 1px solid #222;
  border-bottom: none;
}
.vg25-member-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--pu-lime);
  color: var(--pu-black);
  font-family: var(--pu-font);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vg25-member-intro { flex: 1; min-width: 180px; }
.vg25-member-intro span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pu-lime);
  margin-bottom: 4px;
}
.vg25-member-header h2 {
  font-family: var(--pu-font);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}
.vg25-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vg25-member-actions .vg25-btn-ghost {
  color: var(--pu-white);
  border-color: rgba(255,255,255,.25);
}
.vg25-member-actions .vg25-btn-ghost:hover {
  border-color: var(--pu-lime);
  color: var(--pu-lime);
}
.vg25-member-actions .vg25-btn-soft {
  background: rgba(191,255,0,.12);
  border-color: rgba(191,255,0,.35);
  color: var(--pu-lime);
}

.vg25-console-shell {
  background: var(--pu-white);
  border: 1px solid var(--pu-border);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--pu-shadow);
  overflow: hidden;
}

.vg25-compass {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 24px 16px;
  background: var(--pu-light);
  border-bottom: 1px solid var(--pu-border);
}
.vg25-compass-arc {
  position: absolute;
  top: 8px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pu-lime) 15%, var(--pu-lime) 85%, transparent);
  opacity: .45;
  pointer-events: none;
}
.vg25-compass-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pu-gray);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  z-index: 1;
}
.vg25-compass-item small {
  font-size: 10px;
  font-weight: 500;
  opacity: .75;
}
.vg25-compass-item:hover {
  color: var(--pu-black);
  background: rgba(255,255,255,.7);
}
.vg25-compass-item.is-active {
  background: var(--pu-white);
  border-color: var(--pu-border);
  color: var(--pu-black);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.vg25-compass-item.is-active small { color: var(--pu-lime-dim); opacity: 1; }
.vg25-compass-link { margin-left: auto; }

.vg25-console {
  position: relative;
  padding: 32px 28px 36px;
}
.vg25-console::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  width: 48px;
  height: 4px;
  background: var(--pu-lime);
  border-radius: 0 0 4px 4px;
}
.vg25-panel-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pu-gray);
}
.vg25-panel-title {
  font-family: var(--pu-font);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 20px;
}

.vg25-console .profile-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
}
.vg25-console .profile-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pu-border);
  border-radius: 0;
}
.vg25-console .profile-item:last-child { border-bottom: 0; }
.vg25-console .profile-item .k {
  margin: 0;
  font-size: 11px;
}
.vg25-console .profile-item .v {
  font-size: 15px;
}
.vg25-console .profile-item .v.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--pu-gray);
}

.vg25-orders-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.vg25-order-stream .order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--pu-light);
  border-radius: 14px;
  border: 1px solid var(--pu-border);
  border-left: 4px solid var(--pu-lime);
}
.vg25-order-stream .order-row strong {
  font-family: var(--pu-font);
  font-size: 14px;
}
.vg25-order-stream .mini-copy {
  font-size: 13px;
  color: var(--pu-gray);
  margin-top: 2px;
}
.vg25-order-stream .btn-soft {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: var(--pu-radius-pill);
  font-family: var(--pu-font);
  font-size: 12px;
  font-weight: 700;
  background: var(--pu-black);
  color: var(--pu-white);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.vg25-order-stream .btn-soft:hover {
  background: var(--pu-lime);
  color: var(--pu-black);
}
.vg25-order-stream > .mini-copy {
  padding: 20px;
  background: var(--pu-light);
  border-radius: 14px;
  text-align: center;
  color: var(--pu-gray);
}

.vg25-console .notice {
  margin-bottom: 20px;
  border-radius: 12px;
}

.dash-panel { display: none; }
.dash-panel.is-active { display: block; animation: vg25FadeIn .3s ease; }

/* Toast fix (store-auth uses .visible) */
.toast.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .vg25-hero-inner { grid-template-columns: 1fr; }
  .vg25-chip { display: none; }
  .vg25-access { grid-template-columns: 1fr; }
  .vg25-gauge-rail {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .vg25-gauge-rail::after { display: none; }
  .vg25-rail-label { width: 100%; margin-bottom: 0; }
  .vg25-dial { flex: 1; min-width: 140px; }
  .vg25-dial.is-active { transform: none; }
  .vg25-rail-perks { display: none; }
  .vg25-crate { padding: 28px 24px 32px; }
  .vg25-compass-link { margin-left: 0; }
  .vg25-member-header { border-radius: 16px 16px 0 0; }
  .vg25-console-shell { border-radius: 0 0 16px 16px; }
  .vg25-console .profile-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .vg25-hero { padding: 40px 0 56px; }
  .vg25-order-stream .order-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
