/* SerpAi auth pages — design inspired by offshorekeys.co.uk
   Fonts: Roboto / Poppins / Montserrat / Roboto Slab
   Palette: pure black, off-white type, teal accent
*/

/* Hide protected page content until session gate passes */
html.auth-lock body {
  visibility: hidden !important;
}

html.auth-ready body {
  visibility: visible;
}

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-soft: #eaeaea;
  --text-muted: #a0a0a0;
  --text-dim: #6f6f6f;
  --accent: #00a99d;
  --accent-hover: #00c4b6;
  --accent-deep: #008f86;
  --blue: #2679ce;
  --danger: #f1644b;
  --success: #9ecc4f;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --font-ui: "Poppins", "Roboto", Arial, sans-serif;
  --font-display: "Montserrat", "Poppins", sans-serif;
  --font-serif: "Roboto Slab", Georgia, serif;
  --radius: 2px;
  --focus: 0 0 0 2px rgba(0, 169, 157, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-soft);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

/* Future-aihub style WebGL particle waves — fixed behind all content */
.waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.waves canvas {
  display: block;
  width: 100%;
  height: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Page shell — sits above wave field so UI stays readable */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Semi-transparent so the wave field shows through */
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(0, 169, 157, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(38, 121, 206, 0.05), transparent 50%),
    rgba(0, 0, 0, 0.55);
}

/* Top bar — transparent header energy like the reference */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topnav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.topnav a:hover {
  color: var(--accent);
}

/* Main split */

.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 4vw, 48px) 40px;
}

/* Hero / culture copy */

.hero {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--text);
}

.tagline {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-style: normal;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-note {
  margin: 18px 0 0;
  max-width: 38ch;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.promo-chip {
  margin: 0 0 18px;
  max-width: 42ch;
  padding: 10px 12px;
  border: 1px solid rgba(0, 169, 157, 0.45);
  background: rgba(0, 169, 157, 0.08);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.promo-chip strong {
  color: var(--accent-hover);
  font-weight: 600;
}

.pillars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pillars li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* Auth panel */

.auth {
  display: flex;
  justify-content: flex-end;
}

.auth-card {
  width: min(420px, 100%);
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Sign-up: slightly denser form so the card stays compact */
.main--signup {
  align-items: start;
  padding-top: clamp(20px, 4vh, 48px);
}

.main--signup .login-form {
  gap: 14px;
}

.main--signup .auth-card {
  width: min(440px, 100%);
}

.main--signup .tp-input {
  height: 46px;
}

.main--signup .btn-primary {
  height: 48px;
  margin-top: 4px;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-header p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Form */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.label-row label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-quiet {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}

.link-quiet:hover {
  color: var(--accent);
}

.tp-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-input::placeholder {
  color: var(--text-dim);
}

.tp-input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.tp-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.tp-input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(241, 100, 75, 0.25);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .tp-input {
  padding-right: 72px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  height: 34px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--text);
}

.toggle-password:focus-visible {
  outline: none;
  color: var(--accent);
  box-shadow: var(--focus);
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.field-error[hidden] {
  display: none;
}

/* Remember */

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-ui {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
}

.checkbox-ui::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}

.remember input:checked + .checkbox-ui {
  background: var(--accent);
  border-color: var(--accent);
}

.remember input:checked + .checkbox-ui::after {
  transform: rotate(45deg) scale(1);
}

.remember input:focus-visible + .checkbox-ui {
  box-shadow: var(--focus);
}

/* Primary CTA — solid teal like the reference accent */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  background: var(--accent-deep);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary.is-loading .btn-label {
  opacity: 0;
}

.btn-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  text-align: center;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  background: rgba(158, 204, 79, 0.08);
  border-color: rgba(158, 204, 79, 0.35);
  color: var(--success);
}

.form-status.is-error {
  background: rgba(241, 100, 75, 0.08);
  border-color: rgba(241, 100, 75, 0.35);
  color: var(--danger);
}

.auth-footer {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 500;
}

/* Footer */

.footer {
  padding: 18px clamp(20px, 4vw, 48px) 28px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--accent);
}

/* Login-page member voices strip */

.voices {
  margin-top: auto;
  padding: 0 0 8px;
  border-top: 1px solid var(--border);
}

.voices__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px) 10px;
}

.voices__eyebrow {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.voices__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.voices__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.voices__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 clamp(20px, 4vw, 48px) 16px;
  animation: voices-scroll 52s linear infinite;
}

.voices__viewport:hover .voices__track,
.voices__viewport:focus-within .voices__track {
  animation-play-state: paused;
}

.voice-card {
  flex: 0 0 300px;
  padding: 12px 14px;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid var(--border);
}

.voice-card__quote {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.voice-card__who {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.voice-card__who strong {
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes voices-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

/* Responsive */

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 28px;
  }

  .hero {
    max-width: none;
    text-align: center;
  }

  .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .pillars {
    justify-content: center;
  }

  .auth {
    justify-content: center;
  }

  .auth-card {
    width: min(440px, 100%);
  }

  .voices__bar {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 16px 18px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .pillars li {
    width: 100%;
    text-align: center;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .voice-card {
    flex: 0 0 260px;
    padding: 10px 12px;
  }

  .voice-card__quote {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .voices__track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
  }

  .voice-card--clone {
    display: none;
  }

  .voices__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ========== Landing page ========== */

.page--landing {
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(0, 169, 157, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(38, 121, 206, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.5);
}

/* Side rails: keep main content centered between left strip + right board */
@media (min-width: 1280px) {
  body.page-private .page--landing main {
    width: min(920px, calc(100% - 560px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 981px) and (max-width: 1279px) {
  body.page-private .page--landing main {
    padding-left: 12px;
    padding-right: min(280px, 28vw);
  }
}

/* Live activity strip — left side (inward, not flush to edge) */
.live-strip {
  position: fixed;
  left: max(24px, min(40px, calc((100vw - 1120px) / 2 - 300px)));
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: min(260px, 22vw);
  pointer-events: none;
  user-select: none;
}

.live-strip__label {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #00a99d, #5b8cff, #a855f7);
  box-shadow: 0 4px 16px rgba(91, 140, 255, 0.35);
  text-align: center;
}

.live-strip__viewport {
  position: relative;
  /* 4 cards @ 68px + 3 gaps @ 10px — clips the spare 5th card */
  height: calc(4 * 68px + 3 * 10px);
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.live-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Smooth upward scroll of the whole stack */
.live-strip__list.is-sliding {
  transition: transform 0.85s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.live-strip__item {
  display: block;
  flex-shrink: 0;
  /* Fixed height so each slide step is identical (no jump from height mismatch) */
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Deposit cards — teal / green glow */
.live-strip__item.is-deposit {
  background: linear-gradient(
    135deg,
    rgba(0, 169, 157, 0.45) 0%,
    rgba(52, 211, 153, 0.22) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow:
    0 6px 22px rgba(0, 169, 157, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Withdraw cards — amber / orange / purple */
.live-strip__item.is-withdraw {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.4) 0%,
    rgba(249, 115, 22, 0.28) 45%,
    rgba(139, 92, 246, 0.25) 100%
  );
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow:
    0 6px 22px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-strip__user {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.live-strip__item.is-deposit .live-strip__user {
  color: #5eead4;
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.5);
}

.live-strip__item.is-withdraw .live-strip__user {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.live-strip__action {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.live-strip__amt {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.live-strip__item.is-deposit .live-strip__amt {
  color: #86efac;
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.4);
}

.live-strip__item.is-withdraw .live-strip__amt {
  color: #fdba74;
  text-shadow: 0 0 10px rgba(253, 186, 116, 0.4);
}

@media (max-width: 1100px) {
  .live-strip {
    width: 220px;
    left: 12px;
  }

  .live-strip__viewport {
    height: calc(4 * 62px + 3 * 10px);
  }

  .live-strip__item {
    font-size: 0.82rem;
    padding: 10px 14px;
    height: 62px;
    min-height: 62px;
    max-height: 62px;
  }

  .live-strip__amt {
    font-size: 0.92rem;
  }
}

@media (max-width: 860px) {
  .live-strip {
    display: none;
  }
}

/* ——— Right rail: Active lockups (top) + 30-day earnings (below) ——— */
.right-rail {
  position: fixed;
  left: min(
    calc(50% + min(460px, 42vw) + 16px),
    calc(100% - 260px - 32px)
  );
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 252px;
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  pointer-events: none;
}

.right-rail > * {
  pointer-events: auto;
}

/* Active lockup trackers — above earnings */
.lockup-rail {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 42%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(91, 140, 255, 0.35);
  background:
    linear-gradient(165deg, rgba(20, 30, 55, 0.94) 0%, rgba(8, 12, 20, 0.95) 100%);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lockup-rail__label {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #5b8cff, #a855f7, #00a99d);
  box-shadow: 0 3px 12px rgba(91, 140, 255, 0.3);
}

.lockup-rail__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
}

.lockup-rail__status {
  margin: 0 0 6px;
  font-size: 0.75rem;
}

.lockup-list--rail {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 140, 255, 0.4) transparent;
}

/* Compact lockup cards inside the right rail */
.lockup-list--rail .lockup-card {
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}

.lockup-list--rail .lockup-card__head {
  margin-bottom: 6px;
  flex-direction: column;
  gap: 4px;
}

.lockup-list--rail .lockup-card__title {
  font-size: 0.82rem;
}

.lockup-list--rail .lockup-card__meta {
  font-size: 0.68rem;
}

.lockup-list--rail .lockup-card__status {
  font-size: 0.62rem;
  padding: 2px 6px;
}

.lockup-list--rail .lockup-stats {
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}

.lockup-list--rail .lockup-stat:nth-child(3) {
  grid-column: 1 / -1;
}

.lockup-list--rail .lockup-stat__label {
  font-size: 0.58rem;
}

.lockup-list--rail .lockup-stat__value {
  font-size: 0.75rem;
}

.lockup-list--rail .tx-empty {
  margin: 0;
  padding: 8px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

.earn-board {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background:
    linear-gradient(165deg, rgba(0, 40, 38, 0.92) 0%, rgba(8, 12, 20, 0.94) 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.4) transparent;
}

.earn-board__label {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(90deg, #00a99d, #34d399, #5b8cff);
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.35);
}

.earn-board__sub {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.85);
}

.earn-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.earn-board__item {
  margin: 0;
}

.earn-board__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  pointer-events: auto;
}

.earn-board__card:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(0, 169, 157, 0.12);
  transform: translateX(-2px);
}

.earn-board__img {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
  display: block;
}

.earn-board__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.earn-board__name {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.earn-board__flow {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.earn-board__buy {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.earn-board__arrow {
  font-size: 0.75rem;
  color: rgba(0, 169, 157, 0.9);
  font-weight: 600;
}

.earn-board__get {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #86efac;
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.35);
}

.earn-board__foot {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, #64748b);
}

@media (max-width: 1279px) {
  .right-rail {
    left: auto;
    right: 24px;
    width: 236px;
  }

  .earn-board {
    padding: 10px;
  }

  .earn-board__img {
    width: 48px;
    height: 36px;
  }

  .earn-board__get {
    font-size: 0.82rem;
  }
}

@media (max-width: 1100px) {
  .right-rail {
    right: 16px;
    width: 220px;
  }
}

@media (max-width: 980px) {
  .right-rail {
    display: none;
  }
}

.topbar--landing {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}

.topnav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.topnav .nav-user {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-right: 4px;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 169, 157, 0.45);
  background: rgba(0, 169, 157, 0.1);
  text-decoration: none;
  color: inherit;
}

a.wallet-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.wallet-chip__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wallet-chip__value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.topnav .nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.topnav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.landing-hero {
  padding: clamp(48px, 10vh, 100px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 64px);
}

.landing-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.landing-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--text);
}

.landing-hero__lede {
  margin: 0 auto 32px;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-primary--inline {
  width: auto;
  min-width: 180px;
  height: 50px;
  margin-top: 0;
  padding: 0 28px;
  text-decoration: none;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.btn-primary--inline:hover {
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  background: rgba(0, 169, 157, 0.06);
}

.hero-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
  margin-inline: auto;
}

.hero-stats li {
  padding: 16px 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stats__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Products section */

.products {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
}

.section-head__copy {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.brand-block {
  margin-bottom: 48px;
}

.brand-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.brand-block__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-block__head p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: rgba(0, 169, 157, 0.45);
  transform: translateY(-2px);
}

.product-card--featured {
  border-color: rgba(0, 169, 157, 0.35);
}

.product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
}

.product-card__visual--hp {
  background: #0c0c0c;
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.35);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 18px 18px;
}

.product-card__series {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card[data-brand="hp"] .product-card__series {
  color: #5aa0e8;
}

.product-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-card__desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* Buy → Get visual on card image */
.product-card__earn-pill {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 80, 75, 0.88) 100%
  );
  border: 1px solid rgba(52, 211, 153, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.product-card__earn-pill span:last-child {
  color: #86efac;
}

.product-card__earn-pill-arrow {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Card body earnings strip */
.product-earn {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 169, 157, 0.25);
  background: linear-gradient(
    135deg,
    rgba(0, 169, 157, 0.1) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
  flex: 1;
}

.product-earn__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-earn__label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-earn__val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.product-earn__col--out .product-earn__val {
  color: #86efac;
}

.product-earn__arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.85;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ——— Earn procedure diagram ——— */
.earn-guide {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) 40px;
}

.section-head--tight {
  margin-bottom: 28px;
}

.earn-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.earn-step {
  position: relative;
  flex: 1 1 160px;
  max-width: 220px;
  margin: 0;
  padding: 22px 16px 18px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 169, 157, 0.08), transparent 55%),
    var(--surface);
}

.earn-step--pay {
  border-color: rgba(52, 211, 153, 0.4);
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.14), transparent 55%),
    var(--surface);
}

.earn-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(0, 169, 157, 0.12);
  border: 1px solid rgba(0, 169, 157, 0.3);
}

.earn-step--pay .earn-step__icon {
  color: #86efac;
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}

.earn-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--accent);
}

.earn-step--pay .earn-step__num {
  background: #86efac;
}

.earn-step__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.earn-step__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.earn-step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
  list-style: none;
}

.earn-guide__formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 auto;
  padding: 14px 18px;
  max-width: 640px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 10px;
  border: 1px solid rgba(0, 169, 157, 0.28);
  background: rgba(0, 169, 157, 0.07);
}

.earn-guide__formula strong {
  color: var(--text);
  font-weight: 700;
}

.earn-guide__sep {
  color: var(--accent);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .earn-step__arrow {
    display: none;
  }

  .earn-step {
    max-width: none;
    flex: 1 1 100%;
  }

  .product-card__earn-pill {
    font-size: 0.68rem;
    gap: 4px;
    padding: 6px 8px;
  }
}

.product-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.btn-buy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

button.btn-buy:hover:not(:disabled),
.product-card--link:hover .btn-buy {
  background: var(--accent-hover);
}

.btn-buy:active:not(:disabled) {
  transform: translateY(1px);
  background: var(--accent-deep);
}

.btn-buy:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-buy:disabled,
.btn-buy.is-owned {
  background: var(--text-dim);
  color: #111;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-buy.is-added {
  background: var(--success);
  color: #0a0a0a;
}

.btn-buy.is-failed {
  background: var(--danger);
}

.product-card--link {
  cursor: pointer;
}

.product-card--link:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.product-card.is-owned,
.product-row.is-owned {
  border-color: rgba(158, 204, 79, 0.35);
}

.product-card.is-owned::after,
.product-row.is-owned::after {
  content: "Owned";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--success);
  color: #0a0a0a;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card,
.product-row {
  position: relative;
}

.buy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 20px;
  border: 1px solid rgba(0, 169, 157, 0.4);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.buy-toast.is-error {
  border-color: rgba(241, 100, 75, 0.5);
  color: #fecaca;
}

.buy-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .topnav .wallet-chip {
    padding: 6px 10px;
  }

  .wallet-chip__label {
    display: none;
  }
}

/* Price table */

.price-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.price-table-title {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.price-table td {
  color: var(--text-soft);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover td {
  background: rgba(0, 169, 157, 0.04);
}

.price-table td:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.price-table--earn td.is-earn {
  font-family: var(--font-display);
  font-weight: 800;
  color: #86efac;
  font-variant-numeric: tabular-nums;
}

.price-table--earn td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.price-table-note {
  margin: 0;
  padding: 12px 20px 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* Bottom CTA */

.landing-cta {
  padding: 24px clamp(20px, 4vw, 48px) 72px;
}

.landing-cta__inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(0, 169, 157, 0.1), transparent 50%),
    var(--surface);
}

.landing-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--text);
}

.landing-cta p {
  margin: 0 auto 28px;
  max-width: 40ch;
  color: var(--text-muted);
}

.landing-cta .landing-hero__actions {
  margin-bottom: 0;
}

.footer--landing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .brand-block .product-grid {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .topnav a:not(.nav-cta) {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .price-table th,
  .price-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

/* ========== Wallet page ========== */

.wallet-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 48px) 64px;
}

.wallet-page__head {
  text-align: center;
  margin-bottom: 32px;
}

.wallet-page__head h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--text);
}

.wallet-page__lede {
  margin: 0 auto;
  max-width: 40ch;
  color: var(--text-muted);
}

.wallet-balance-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(0, 169, 157, 0.12), transparent 55%),
    var(--surface);
  margin-bottom: 24px;
}

.wallet-balance-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.wallet-balance-card__label {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wallet-balance-card__amount {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.wallet-balance-card__sub {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.wallet-balance-card__sub strong {
  color: var(--accent-hover);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Solid, high-visibility action buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-action:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-action:active:not(:disabled) {
  transform: translateY(1px);
}

/* Withdraw — amber / gold so it stands out */
.btn-action--withdraw {
  background: linear-gradient(135deg, #e6a817 0%, #f5c542 50%, #d4920a 100%);
  color: #1a1200;
  box-shadow: 0 6px 18px rgba(230, 168, 23, 0.35);
}

.btn-action--withdraw:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(230, 168, 23, 0.5);
}

/* Invitation bonus — vivid blue / violet */
.btn-action--invite {
  background: linear-gradient(135deg, #2679ce 0%, #5b8cff 45%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(38, 121, 206, 0.4);
}

.btn-action--invite:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(91, 140, 255, 0.5);
}

#btn-withdraw:disabled,
#btn-withdraw.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
  box-shadow: none;
}

#btn-withdraw:disabled:hover,
#btn-withdraw.is-locked:hover {
  filter: grayscale(0.35);
}

.withdraw-hint {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.withdraw-hint.is-unlocked {
  color: var(--success);
}

@media (max-width: 640px) {
  .wallet-actions .btn-action {
    width: 100%;
  }
}

.btn-ghost--sm {
  min-width: auto;
  height: 40px;
  padding: 0 16px;
  font-size: 0.72rem;
}

.wallet-status {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  font-size: 0.88rem;
}

.wallet-status[hidden] {
  display: none;
}

.wallet-status.is-success {
  border-color: rgba(158, 204, 79, 0.35);
  background: rgba(158, 204, 79, 0.08);
  color: var(--success);
}

.wallet-status.is-error {
  border-color: rgba(241, 100, 75, 0.35);
  background: rgba(241, 100, 75, 0.08);
  color: var(--danger);
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-panel {
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.wallet-panel--wide {
  margin-bottom: 0;
}

.wallet-panel__head {
  margin-bottom: 20px;
}

.wallet-panel__head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.wallet-panel__head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-box {
  padding: 16px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.stat-box__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-box__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.invite-code-box {
  padding: 14px;
  border: 1px solid rgba(0, 169, 157, 0.3);
  background: rgba(0, 169, 157, 0.06);
}

.invite-code-box__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.invite-code-box__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-code-box__row code {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
}

.btn-copy {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.invite-code-box__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.invitees-list {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.invitees-list__label {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.invitees-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invitees-list li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.invitees-list li:last-child {
  border-bottom: none;
}

.invite-link-box {
  margin-top: 12px;
}

.invite-preview {
  margin: 14px 0 0;
}

.invite-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #050505;
}

.invite-preview figcaption {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.invite-gate {
  text-align: center;
  padding: 12px 4px 8px;
}

.invite-gate__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.invite-gate__copy {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.manual-settlement-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 171, 60, 0.35);
  background: rgba(250, 171, 60, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.manual-settlement-banner strong {
  color: #fbbf24;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.modal__dialog--deposit {
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.withdraw-fee-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.12) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.withdraw-fee-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
}

.withdraw-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
}

.withdraw-fee-row strong {
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.withdraw-fee-row strong.is-fee {
  color: #fdba74;
}

.withdraw-fee-row--net {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.withdraw-fee-row--net strong {
  color: #86efac;
  font-size: 1.05rem;
  font-family: var(--font-display, inherit);
}

.crypto-address-box,
.crypto-send-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.12) 0%,
    rgba(168, 85, 247, 0.08) 100%
  );
  border-radius: 8px;
}

.crypto-send-box {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(
    135deg,
    rgba(0, 169, 157, 0.16) 0%,
    rgba(52, 211, 153, 0.08) 100%
  );
}

.crypto-address-box__label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover, #5b8cff);
}

.crypto-address-box__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.crypto-address-box__code {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.crypto-address-box__code--amount {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: -0.02em;
}

.crypto-convert-panel {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
}

.crypto-convert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 6px;
}

.crypto-convert-row strong {
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.crypto-convert-row:last-of-type {
  margin-bottom: 4px;
}

.deposit-howto {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 169, 157, 0.3);
  background: rgba(0, 169, 157, 0.08);
}

.deposit-howto__title {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.deposit-howto__steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.deposit-howto__steps li {
  margin-bottom: 4px;
}

.deposit-howto__steps li:last-child {
  margin-bottom: 0;
}

select.tp-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

select.tp-input option {
  background: #111;
  color: #fff;
}

.user-notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.user-notice {
  position: relative;
  padding: 12px 14px 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding-right: 88px;
}

.user-notice--error {
  border-color: rgba(241, 100, 75, 0.45);
  background: rgba(241, 100, 75, 0.1);
}

.user-notice--info {
  border-color: rgba(0, 169, 157, 0.35);
  background: rgba(0, 169, 157, 0.08);
}

.user-notice strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
}

.user-notice p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.user-notice--error strong {
  color: #fecaca;
}

.user-notice__dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.user-notice__dismiss:hover {
  color: var(--text);
  border-color: var(--accent);
}

.pending-row {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.pending-row:last-child {
  border-bottom: 1px solid var(--border);
}

.pending-row em {
  color: #faab3c;
  font-style: normal;
}

.admin-stats {
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--text-soft);
}

.admin-tab.is-active {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.admin-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-panel.is-active:not([hidden]) {
  display: block;
}

.admin-tab--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.live-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23b3b;
  box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(226, 59, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 59, 59, 0);
  }
}

.live-updated {
  margin: 10px 0 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-board {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 8px;
}

.live-board__title {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.live-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 0;
}

.live-stats .stat-box__value {
  font-size: 1.2rem;
}

.stat-box__sub {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stat-box--in .stat-box__value {
  color: var(--success);
}

.stat-box--out .stat-box__value {
  color: var(--danger);
}

.live-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 18px;
}

.live-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-filter {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

.live-filter:hover {
  color: var(--text);
  border-color: var(--accent);
}

.live-filter.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.72);
}

.live-row.is-new {
  animation: live-row-in 0.9s ease;
  border-color: rgba(0, 169, 157, 0.55);
}

@keyframes live-row-in {
  from {
    background: rgba(0, 169, 157, 0.18);
  }
  to {
    background: rgba(17, 17, 17, 0.72);
  }
}

.live-row__kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}

.live-row--deposit .live-row__kind {
  color: var(--success);
  border-color: rgba(158, 204, 79, 0.45);
}

.live-row--withdraw .live-row__kind {
  color: var(--danger);
  border-color: rgba(241, 100, 75, 0.45);
}

.live-row__main {
  min-width: 0;
}

.live-row__main h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.live-row__main p {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.live-row__status {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  justify-self: end;
}

.live-row.is-pending .live-row__status {
  color: #e2b93b;
}

.live-row.is-approved .live-row__status {
  color: var(--success);
}

.live-row.is-rejected .live-row__status {
  color: var(--danger);
}

.live-row__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .live-row {
    grid-template-columns: 44px 1fr;
  }

  .live-row__status {
    grid-column: 2;
    justify-self: start;
  }
}

.link-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--accent-hover);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: #a5c0ff;
}

.support-textarea {
  min-height: 120px;
  height: auto !important;
  padding: 12px 14px !important;
  resize: vertical;
  line-height: 1.45;
}

.support-textarea--issue {
  min-height: 220px;
}

.support-textarea--reply {
  min-height: 260px;
  width: 100%;
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-ticket-card {
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.support-ticket-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.support-ticket-card__status {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.support-ticket-card__status.status-open {
  color: #fbbf24;
}

.support-ticket-card__status.status-replied {
  color: var(--success);
}

.support-ticket-card__meta {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.support-ticket-card__issue {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.45;
  white-space: pre-wrap;
}

.support-ticket-card__reply {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 169, 157, 0.3);
  background: rgba(0, 169, 157, 0.08);
}

.support-ticket-card__reply strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.support-ticket-card__reply p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  white-space: pre-wrap;
  line-height: 1.45;
}

.support-issue-body {
  white-space: pre-wrap !important;
  color: var(--text-soft) !important;
}

.support-reply-box {
  margin-top: 12px;
}

.support-admin-card {
  align-items: start;
}

/* FAQ */
.faq-page {
  max-width: 800px;
}

.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin: 0 0 32px;
}

.faq-toc a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.faq-toc a:hover {
  color: var(--accent-hover);
  border-color: rgba(0, 169, 157, 0.4);
  text-decoration: none;
}

.faq-section {
  margin-bottom: 36px;
}

.faq-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent-hover);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent-hover);
}

.faq-item__body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item__body p,
.faq-item__body li {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.faq-item__body p:last-child,
.faq-item__body ul:last-child,
.faq-item__body ol:last-child {
  margin-bottom: 0;
}

.faq-item__body ul,
.faq-item__body ol {
  margin: 0 0 10px;
  padding-left: 1.25rem;
}

.faq-item__body code {
  font-family: var(--font-display);
  font-size: 0.85em;
  color: var(--accent-hover);
  word-break: break-all;
}

.faq-table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
  border: 1px solid var(--border);
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.faq-table th,
.faq-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.faq-table th {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.faq-table td {
  color: var(--text-soft);
}

.faq-table tr:last-child td {
  border-bottom: none;
}

.faq-table td:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

/* ——— Withdrawal guide (illustrated FAQ) ——— */

#withdraw-guide {
  scroll-margin-top: 88px;
}

.withdraw-guide__intro {
  margin: -4px 0 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.withdraw-guide {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.withdraw-guide__note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background: rgba(0, 169, 157, 0.08);
}

.withdraw-guide__note-title {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.withdraw-guide__note ul {
  margin: 0;
  padding-left: 1.15rem;
}

.withdraw-guide__note li {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.withdraw-guide__note li:last-child {
  margin-bottom: 0;
}

.guide-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.guide-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.35);
}

.guide-step__body {
  min-width: 0;
}

.guide-step__title {
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.guide-step__text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-step__list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.guide-step__list li {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mini app UI snippets */
.ui-snip {
  margin: 0;
}

.ui-snip__cap {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ui-snip__frame {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 169, 157, 0.1), transparent 55%),
    #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ui-snip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.ui-snip-nav span {
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid transparent;
}

.ui-snip-nav span.is-active {
  color: var(--accent-hover);
  border-color: rgba(0, 169, 157, 0.5);
  background: rgba(0, 169, 157, 0.12);
}

.ui-snip-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.ui-snip-balance__label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ui-snip-balance__amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.ui-snip-balance__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ui-snip-balance__sub strong {
  color: var(--accent-hover);
  font-weight: 700;
}

.ui-snip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ui-snip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  user-select: none;
}

.ui-snip-btn--deposit {
  color: #04120f;
  background: var(--accent);
}

.ui-snip-btn--withdraw {
  color: #fff;
  background: linear-gradient(135deg, #c44a36, #f1644b);
  box-shadow: 0 0 0 2px rgba(241, 100, 75, 0.35);
}

.ui-snip-btn--invite {
  color: var(--text-soft);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.ui-snip-btn--ghost {
  color: var(--text-muted);
  border-color: var(--border);
  background: transparent;
}

.ui-snip-btn--primary {
  color: #04120f;
  background: var(--accent);
}

.ui-snip-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.ui-snip-field:last-child {
  margin-bottom: 0;
}

.ui-snip-field__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
}

.ui-snip-field__select,
.ui-snip-field__input {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}

.ui-snip-field__hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ui-snip-fee {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 169, 157, 0.3);
  background: rgba(0, 169, 157, 0.08);
}

.ui-snip-fee__title {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.ui-snip-fee__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ui-snip-fee__row strong {
  color: var(--text-soft);
  font-weight: 700;
}

.ui-snip-fee__row strong.is-fee {
  color: var(--danger);
}

.ui-snip-fee__row--net {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: var(--text-soft);
}

.ui-snip-fee__row--net strong {
  color: var(--success);
  font-size: 1rem;
}

.ui-snip-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.ui-snip-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 180, 50, 0.35);
  background: rgba(255, 180, 50, 0.08);
}

.ui-snip-pending__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: #f5c542;
}

.ui-snip-pending__text {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.withdraw-guide__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
}

@media (max-width: 520px) {
  .guide-step {
    grid-template-columns: 32px 1fr;
    gap: 10px 12px;
    padding: 14px;
  }

  .guide-step__num {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .ui-snip-balance__amt {
    font-size: 1.3rem;
  }
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.admin-card--flag {
  border-color: rgba(241, 100, 75, 0.55);
  background: rgba(241, 100, 75, 0.06);
}

.admin-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.admin-card p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-card__meta {
  margin-top: 10px !important;
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

.admin-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.btn-admin {
  min-width: 0;
  width: 100%;
  height: 42px;
  font-size: 0.72rem;
}

.admin-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--danger);
}

.admin-ok {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--success);
}

@media (max-width: 700px) {
  .admin-card {
    grid-template-columns: 1fr;
  }
}

.invite-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-link-input {
  flex: 1;
  min-width: 0;
  height: 42px !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0;
  color: var(--accent-hover) !important;
}

.invite-link-input:focus {
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .invite-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .invite-link-row .btn-copy {
    width: 100%;
  }
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-form .btn-primary {
  margin-top: 4px;
}

.tp-input--locked,
.tp-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  color: var(--text-muted);
}

.field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tx-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tx-row__type {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.tx-row__note,
.tx-row__when {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-row__amount.is-in {
  color: var(--success);
}

.tx-row__amount.is-out {
  color: var(--danger);
}

/* Modal */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--surface-solid, #111827);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal__dialog h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.modal__copy {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal__actions .btn-primary--inline {
  min-width: 120px;
}

/* ——— Member Guidelines popup ——— */

.guidelines-modal__dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background:
    radial-gradient(ellipse 90% 50% at 10% 0%, rgba(0, 169, 157, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(38, 121, 206, 0.1), transparent 50%),
    #0c0f14;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.guidelines-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.guidelines-modal__eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.guidelines-modal__head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.guidelines-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.guidelines-modal__close:hover {
  border-color: rgba(0, 169, 157, 0.5);
  color: #fff;
  background: rgba(0, 169, 157, 0.12);
}

.guidelines-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 18px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 169, 157, 0.45) transparent;
}

.guidelines-block {
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guidelines-block:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.guidelines-block--alert {
  margin: 4px 0 8px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(241, 100, 75, 0.45);
  background: rgba(241, 100, 75, 0.1);
  border-bottom: 1px solid rgba(241, 100, 75, 0.45);
}

.guidelines-block--alert .guidelines-block__title {
  color: #ffb4a6;
}

.guidelines-block__icon--alert {
  background: linear-gradient(135deg, #c44a36, #f1644b);
  box-shadow: 0 4px 12px rgba(241, 100, 75, 0.35);
}

.guidelines-block--alert p {
  color: rgba(255, 220, 210, 0.9);
}

.guidelines-block--alert p strong {
  color: #fff;
}

.guidelines-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.guidelines-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
}

.guidelines-block p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.guidelines-block p strong {
  color: var(--text-soft);
  font-weight: 600;
}

.guidelines-block__foot {
  margin-top: 10px !important;
  font-size: 0.82rem !important;
  color: var(--text-dim) !important;
}

.guidelines-block__foot a {
  color: var(--accent-hover);
}

.guidelines-pillars {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guidelines-pillars li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 169, 157, 0.22);
  background: rgba(0, 169, 157, 0.08);
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.guidelines-pillars li::before {
  content: "→";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-hover);
  font-weight: 700;
}

.guidelines-steps {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.guidelines-steps li {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.guidelines-steps li strong {
  color: var(--text-soft);
}

.guidelines-steps code {
  font-family: var(--font-display);
  font-size: 0.82em;
  color: var(--accent-hover);
  word-break: break-all;
}

.guidelines-snip {
  margin-top: 4px;
}

.guidelines-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
}

body.guidelines-open,
body.messages-open {
  overflow: hidden;
}

/* ——— Home messages icon + panel ——— */

.msg-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 169, 157, 0.4);
  background: rgba(0, 169, 157, 0.1);
  color: var(--accent-hover);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  vertical-align: middle;
}

.msg-icon-btn:hover {
  background: rgba(0, 169, 157, 0.2);
  border-color: var(--accent-hover);
  color: #fff;
}

.msg-icon-btn__glyph {
  display: flex;
  line-height: 0;
}

.msg-icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #f1644b;
  box-shadow: 0 2px 8px rgba(241, 100, 75, 0.5);
}

.messages-modal__dialog {
  width: min(480px, 100%);
  max-height: min(86vh, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(47, 143, 255, 0.4);
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(47, 143, 255, 0.12), transparent 50%),
    #0c0f14;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.messages-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.messages-modal__eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eb0ff;
}

.messages-modal__head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.messages-modal__note {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.messages-modal__note a {
  color: var(--accent-hover);
}

.messages-modal__feed {
  flex: 1;
  min-height: 180px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 143, 255, 0.4) transparent;
}

.home-msg {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.home-msg.is-unread {
  border-color: rgba(47, 143, 255, 0.45);
  background: rgba(47, 143, 255, 0.1);
}

.home-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.home-msg__from {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: #8fd4ff;
}

.home-msg__dot {
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04120f;
  background: var(--accent-hover);
}

.home-msg__time {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.home-msg__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.messages-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* ——— Fixed bottom navigation (mobile + APK) ——— */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.92) 0%, rgba(0, 0, 0, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.bottom-nav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 720px;
  gap: 0;
}

.bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
}

.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 2px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-ui);
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__link:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.bottom-nav__link.is-active {
  color: var(--accent-hover);
  background: rgba(0, 169, 157, 0.12);
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}

.bottom-nav__icon svg {
  display: block;
}

.bottom-nav__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

/* Leave room so page content is not hidden under the bar */
body.has-bottom-nav {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

body.has-bottom-nav .page {
  padding-bottom: 12px;
}

body.has-bottom-nav .footer--landing,
body.has-bottom-nav .footer {
  margin-bottom: 8px;
}

/* Slightly larger labels on wider phones / tablets */
@media (min-width: 420px) {
  .bottom-nav__label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .bottom-nav__link {
    min-height: 56px;
    gap: 4px;
  }
}

/* Top bar is tools-only (balance, messages) — sections + sign-out live in bottom-nav / Profile */
.topnav--tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

/* ——— Profile page ——— */

.page--profile {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0, 169, 157, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.55);
}

.profile-main {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 8px clamp(14px, 3vw, 22px) 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background:
    linear-gradient(145deg, rgba(0, 169, 157, 0.12), rgba(38, 121, 206, 0.08)),
    rgba(10, 12, 16, 0.9);
}

.profile-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #04120f;
  background: linear-gradient(135deg, #00c4b6, #2f8fff);
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.35);
}

.profile-hero__text {
  min-width: 0;
}

.profile-hero__text .eyebrow {
  margin: 0 0 4px;
}

.profile-hero__text h1 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
  line-height: 1.2;
  word-break: break-word;
}

.profile-hero__handle {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.profile-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.profile-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.profile-dl {
  margin: 0;
}

.profile-dl__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-dl__row:first-child {
  padding-top: 0;
}

.profile-dl dt {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
}

.profile-dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  word-break: break-word;
}

.profile-dl code {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-hover);
  letter-spacing: 0.06em;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stat {
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  border: 1px solid rgba(47, 143, 255, 0.3);
  background: rgba(8, 16, 32, 0.85);
}

.profile-stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.profile-stat__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.profile-link:hover {
  border-color: rgba(0, 169, 157, 0.45);
  color: var(--accent-hover);
  text-decoration: none;
}

.profile-signout {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(241, 100, 75, 0.35);
  background: rgba(241, 100, 75, 0.08);
  text-align: center;
}

.profile-signout__btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.85rem;
}

.profile-signout .field-hint {
  margin: 10px 0 0;
  text-align: center;
}

body.has-bottom-nav .topbar {
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (max-width: 640px) {
  body.has-bottom-nav .topnav--tools .nav-user {
    display: none;
  }

  body.has-bottom-nav .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ——— Admin chat tab ——— */

.admin-chat-panel {
  margin-top: 8px;
}

.admin-chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-chat-form__input {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
  padding: 12px 14px;
}

.admin-chat-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-chat-feed {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
}

.admin-chat-bubble {
  align-self: stretch;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px 12px 4px 12px;
  border: 1px solid rgba(0, 169, 157, 0.3);
  background: linear-gradient(
    135deg,
    rgba(0, 169, 157, 0.16),
    rgba(38, 121, 206, 0.1)
  );
}

.admin-chat-bubble__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 6px;
}

.admin-chat-bubble__from {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.admin-chat-bubble__time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.admin-chat-bubble__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-soft);
  word-break: break-word;
}

@media (max-width: 520px) {
  .guidelines-modal__dialog {
    max-height: 92vh;
    border-radius: 12px;
  }

  .guidelines-modal__head,
  .guidelines-modal__scroll,
  .guidelines-modal__foot {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wallet-balance-card__top {
    flex-direction: column;
  }

  .wallet-actions {
    flex-direction: column;
  }

  .wallet-actions .btn-primary--inline,
  .wallet-actions .btn-ghost,
  .wallet-actions .btn-action {
    width: 100%;
  }
}

/* ========== Product detail page ========== */

.product-page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 4vw, 48px) 64px;
}

.product-page__back {
  margin: 0 0 20px;
}

.product-page__back a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
}

.product-page__back a:hover {
  color: var(--accent);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.product-detail__media {
  position: relative;
  border: 1px solid var(--border);
  background: #0c0c0c;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-detail__desc {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.product-detail__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.product-detail__price-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-detail__price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.product-specs {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 16px;
}

.product-spec {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.product-spec:last-child {
  border-bottom: none;
}

.product-spec__label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.product-spec__value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-detail__note {
  margin: 0 0 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.product-detail__actions .btn-primary--inline {
  min-width: 180px;
}

.product-detail__actions .btn-primary:disabled,
.product-detail__actions .btn-primary.is-owned {
  opacity: 0.7;
  cursor: not-allowed;
  filter: none;
  background: var(--text-dim);
}

.product-missing {
  text-align: center;
  padding: 64px 20px;
}

.product-missing h1 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.product-missing p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-spec {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-spec__value {
    text-align: left;
  }
}

/* ========== Lockup trackers ========== */

.lockup-section {
  margin-bottom: 16px;
}

.lockup-home {
  padding-bottom: 24px !important;
}

/* Lockups on the left, stacked just above the earn chart */
.lockup-earn-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) 32px;
  box-sizing: border-box;
}

.lockup-earn-stack {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin-right: auto;
  margin-left: 0;
}

.lockup-home--stack {
  width: 100%;
  padding: 0 !important;
  margin: 0;
}

.lockup-home--stack .section-head--left {
  text-align: left;
  margin-bottom: 16px;
}

.lockup-home--stack .section-head--left .section-head__copy {
  margin-left: 0;
  margin-right: 0;
  max-width: 48ch;
}

.lockup-home--stack #lockup-status {
  max-width: 100%;
  margin: 0 0 12px;
}

.lockup-earn-stack .price-table-wrap {
  margin-top: 0;
  width: 100%;
}

.lockup-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.section-head--left {
  text-align: left;
}

.section-head--left h2 {
  text-align: left;
}

.lockup-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 18px 18px;
}

.lockup-card.is-active {
  border-color: rgba(0, 169, 157, 0.4);
}

.lockup-card.is-matured {
  border-color: rgba(250, 171, 60, 0.45);
}

.lockup-card.is-paid {
  border-color: rgba(158, 204, 79, 0.4);
}

.lockup-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lockup-card__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.lockup-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.lockup-card__status {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  border: 1px solid rgba(0, 169, 157, 0.35);
  padding: 5px 8px;
  white-space: nowrap;
}

.lockup-card.is-matured .lockup-card__status {
  color: #faab3c;
  border-color: rgba(250, 171, 60, 0.4);
}

.lockup-card.is-paid .lockup-card__status {
  color: var(--success);
  border-color: rgba(158, 204, 79, 0.4);
}

.lockup-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
}

.lockup-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hover));
  transition: width 0.4s linear;
}

.lockup-card.is-paid .lockup-bar__fill {
  background: var(--success);
}

.lockup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.lockup-stat {
  min-width: 0;
}

.lockup-stat__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.lockup-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-lockup {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.product-lockup h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.product-lockup__hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .lockup-stats {
    grid-template-columns: 1fr 1fr;
  }

  .lockup-card__head {
    flex-direction: column;
  }
}

/* ========== Home page compact (~2 scrolls) ========== */

.page--home-compact .landing-hero--compact {
  padding: 16px clamp(16px, 3vw, 32px) 8px;
  text-align: center;
}

.page--home-compact .landing-hero--compact .landing-hero__inner {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page--home-compact .hero-compact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.page--home-compact .hero-compact-text {
  text-align: center;
  width: 100%;
}

.page--home-compact .hero-compact-text .eyebrow {
  margin-bottom: 4px;
}

.page--home-compact .landing-hero--compact h1 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.15;
  text-align: center;
}

.page--home-compact .landing-hero__lede {
  margin: 0 auto;
  font-size: 0.88rem;
  max-width: 40ch;
  text-align: center;
}

.page--home-compact .hero-stats--inline {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.page--home-compact .hero-stats--inline li {
  min-width: 72px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.page--home-compact .hero-stats--inline .hero-stats__value {
  font-size: 1.05rem;
}

.page--home-compact .hero-stats--inline .hero-stats__label {
  font-size: 0.62rem;
  margin-top: 2px;
}

/* How it works anchor target (under sticky topbar) */
.how-it-works {
  scroll-margin-top: 88px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.how-it-works__label {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.how-it-works:target,
.how-it-works.is-flash {
  border-color: rgba(0, 169, 157, 0.55);
  background: rgba(0, 169, 157, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.18);
}

#products {
  scroll-margin-top: 88px;
}

/* Inline earn steps under hero */
.page--home-compact .earn-steps--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.page--home-compact .earn-steps--inline .earn-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
}

.page--home-compact .earn-steps--inline .earn-step__icon {
  display: none;
}

.page--home-compact .earn-steps--inline .earn-step__num {
  margin: 0;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
}

.page--home-compact .earn-steps--inline .earn-step__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.page--home-compact .earn-steps--inline .earn-step__text {
  display: none;
}

.page--home-compact .earn-steps--inline .earn-step__arrow {
  display: flex;
  font-size: 0.95rem;
  padding: 0;
  opacity: 0.65;
}

/* Lockups + chart side by side */
.page--home-compact .lockup-earn-section {
  padding: 8px clamp(16px, 3vw, 32px) 12px;
}

.page--home-compact .lockup-earn-stack--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 16px;
  max-width: 1120px;
  width: 100%;
  align-items: start;
}

.page--home-compact .lockup-home--stack .section-head--compact {
  margin-bottom: 8px;
}

.page--home-compact .section-head--compact {
  margin-bottom: 12px;
  text-align: left;
}

.page--home-compact .section-head--compact h2 {
  margin: 0;
  font-size: 1.15rem;
}

.page--home-compact .section-head--compact .eyebrow {
  margin-bottom: 2px;
}

.page--home-compact .lockup-list {
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.page--home-compact .lockup-card {
  padding: 10px 12px 12px;
}

.page--home-compact .lockup-card__head {
  margin-bottom: 8px;
}

.page--home-compact .lockup-card__title {
  font-size: 0.95rem;
}

.page--home-compact .lockup-stats {
  gap: 6px 8px;
}

.page--home-compact .lockup-stat__value {
  font-size: 0.82rem;
}

.page--home-compact .price-table-title {
  padding: 10px 12px;
  font-size: 0.78rem;
}

.page--home-compact .price-table--compact th,
.page--home-compact .price-table--compact td {
  padding: 7px 12px;
  font-size: 0.82rem;
}

/* Products denser */
.page--home-compact .products--compact {
  padding: 4px clamp(16px, 3vw, 32px) 28px;
}

.page--home-compact .brand-block--compact {
  margin-bottom: 14px;
}

.page--home-compact .brand-block--compact .brand-block__head {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.page--home-compact .brand-block--compact .brand-block__head h3 {
  font-size: 0.95rem;
}

.page--home-compact .product-grid--compact {
  gap: 10px;
}

.page--home-compact .product-card__visual {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page--home-compact .product-card__body--compact {
  padding: 10px 12px 12px;
}

.page--home-compact .product-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.page--home-compact .product-card__foot {
  padding-top: 8px;
}

.page--home-compact .product-card__price {
  font-size: 1rem;
}

.page--home-compact .btn-buy {
  height: 32px;
  padding: 0 12px;
  font-size: 0.68rem;
}

.page--home-compact .product-card__earn-pill {
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 8px;
  font-size: 0.68rem;
  gap: 4px;
}

.page--home-compact .product-card__badge {
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  font-size: 0.6rem;
}

.page--home-compact .product-card__tag {
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  font-size: 0.58rem;
}

.page--home-compact .footer--compact {
  padding: 16px clamp(16px, 3vw, 32px) 24px;
  font-size: 0.82rem;
}

.page--home-compact .footer--compact p {
  margin: 0 0 4px;
}

@media (max-width: 900px) {
  .page--home-compact .lockup-earn-stack--split {
    grid-template-columns: 1fr;
  }

  .page--home-compact .lockup-list {
    max-height: 160px;
  }
}

@media (max-width: 640px) {
  .page--home-compact .hero-compact-row {
    flex-direction: column;
    align-items: center;
  }

  .page--home-compact .earn-steps--inline .earn-step__arrow {
    display: none;
  }
}

/* ========== Home dashboard (reference-inspired mobile shell) ========== */

.page--home-dash {
  --dash-card: #ffffff;
  --dash-label: #8fd4ff;
  --dash-label-text: #0b2a4a;
  --dash-blue: #2f8fff;
  --dash-msg-bg: #06101f;
  --dash-msg-border: rgba(47, 143, 255, 0.55);
  --dash-msg-link: #5eb0ff;
}

/*
 * Home column: always true-center in the viewport.
 * Side rails are fixed and must NOT push main off-center with asymmetric padding.
 */
body.home-page.page-private .page.page--home-dash,
body.home-page.page-private .page--landing.page--home-dash {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.home-page.page-private .page--home-dash > .topbar,
body.home-page.page-private .page--home-dash > .footer {
  width: 100%;
  box-sizing: border-box;
}

body.home-page.page-private main.home-dash,
body.home-page.page-private .page--home-dash main.home-dash,
.page--home-dash .home-dash {
  width: min(560px, calc(100% - 32px)) !important;
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 28px;
}

/* Override global private-page main rules that add uneven rail padding */
@media (min-width: 981px) {
  body.home-page.page-private .page--landing main.home-dash,
  body.home-page.page-private .page--home-dash main.home-dash {
    width: min(560px, calc(100% - 32px)) !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (min-width: 1280px) {
  body.home-page.page-private .page--landing main,
  body.home-page.page-private .page--landing main.home-dash,
  body.home-page.page-private .page--home-dash main.home-dash {
    width: min(560px, calc(100% - 32px)) !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Campus hero banner — full width of the centered column */
.dash-hero {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-hero__frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1525;
  aspect-ratio: 16 / 9;
  max-height: 240px;
}

.dash-hero__frame--beach {
  background: #1a3a4a;
  border-color: rgba(100, 200, 255, 0.2);
  box-shadow:
    0 12px 36px rgba(0, 40, 60, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dash-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dash-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Slow Ken Burns pan/zoom — chill beach “animation” */
.dash-hero__img--anim {
  width: 112%;
  height: 112%;
  max-width: none;
  margin: 0;
  position: absolute;
  top: -6%;
  left: -6%;
  object-fit: cover;
  will-change: transform;
  animation: dash-hero-kenburns 22s ease-in-out infinite alternate;
  transform-origin: 40% 55%;
}

@keyframes dash-hero-kenburns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-2.5%, -1.5%, 0);
  }
  100% {
    transform: scale(1.12) translate3d(1.5%, -3%, 0);
  }
}

/* Soft sunlight shimmer */
.dash-hero__shimmer {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 240, 180, 0.12) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 240, 180, 0.1) 55%,
    transparent 70%
  );
  animation: dash-hero-shimmer 7s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes dash-hero-shimmer {
  0%,
  100% {
    transform: translateX(-18%) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(18%) rotate(2deg);
    opacity: 0.75;
  }
}

/* Subtle wave-light band along the lower third */
.dash-hero__waves {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 30% 100%,
      rgba(80, 200, 255, 0.22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 70% 50% at 70% 100%,
      rgba(40, 160, 220, 0.18),
      transparent 65%
    );
  animation: dash-hero-waves 5.5s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes dash-hero-waves {
  0% {
    transform: translateY(6%) scaleX(1);
    opacity: 0.55;
  }
  100% {
    transform: translateY(0) scaleX(1.04);
    opacity: 0.9;
  }
}

/* Soft sun pulse top-right */
.dash-hero__sun {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 48%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 230, 140, 0.45) 0%,
    rgba(255, 180, 80, 0.12) 40%,
    transparent 70%
  );
  animation: dash-hero-sun 6s ease-in-out infinite alternate;
}

@keyframes dash-hero-sun {
  0% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero__img--anim,
  .dash-hero__shimmer,
  .dash-hero__waves,
  .dash-hero__sun {
    animation: none !important;
  }

  .dash-hero__img--anim {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
  }
}

.dash-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  background: linear-gradient(
    to top,
    rgba(0, 20, 35, 0.72) 0%,
    rgba(0, 30, 40, 0.32) 50%,
    rgba(0, 20, 30, 0.22) 100%
  );
  text-align: center;
}

.dash-hero__overlay .eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #8fd4ff;
  text-align: center;
  width: 100%;
}

.dash-hero__overlay h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
  text-align: center;
  width: 100%;
}

.dash-hero__lede {
  margin: 0 auto !important;
  max-width: 34ch !important;
  text-align: center !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.dash-hero__caption {
  margin: 12px auto 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dash-blue);
}

/* Catalog mini stats under banner */
.page--home-dash .dash-catalog-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  list-style: none;
}

.page--home-dash .dash-catalog-stats li {
  min-width: 72px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.page--home-dash .dash-catalog-stats .hero-stats__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.page--home-dash .dash-catalog-stats .hero-stats__label {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Metric cards — white face + cyan label bar */
.dash-metrics {
  margin: 0;
}

/* 6-col grid: top 4 cards span 3 cols (2×2), bottom 3 span 2 cols each */
.dash-metrics__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.dash-metrics__grid > .dash-metric:nth-child(1),
.dash-metrics__grid > .dash-metric:nth-child(2),
.dash-metrics__grid > .dash-metric:nth-child(3),
.dash-metrics__grid > .dash-metric:nth-child(4) {
  grid-column: span 3;
}

.dash-metrics__grid > .dash-metric--sm:nth-child(5),
.dash-metrics__grid > .dash-metric--sm:nth-child(6),
.dash-metrics__grid > .dash-metric--sm:nth-child(7) {
  grid-column: span 2;
}

.dash-metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dash-card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 143, 255, 0.22);
  color: inherit;
}

.dash-metric__value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.1;
}

.dash-metric__label {
  display: block;
  padding: 7px 8px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dash-label-text);
  background: linear-gradient(180deg, #b8e6ff 0%, #8fd4ff 100%);
}

/* Bottom row: 3 smaller cards */
.dash-metric--sm {
  min-height: 64px;
}

.dash-metric--sm .dash-metric__value {
  font-size: 1.05rem;
  padding: 10px 6px 6px;
}

.dash-metric--sm .dash-metric__label {
  font-size: 0.66rem;
  padding: 6px 4px;
}

/* Message board — dark cyber panel */
.dash-messages {
  position: relative;
  border-radius: 12px;
  border: 1.5px solid var(--dash-msg-border);
  background:
    radial-gradient(circle at 12% 20%, rgba(47, 143, 255, 0.12), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(0, 169, 157, 0.08), transparent 45%),
    var(--dash-msg-bg);
  box-shadow:
    0 0 0 1px rgba(47, 143, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(47, 143, 255, 0.06);
  overflow: hidden;
}

.dash-messages::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(
    circle,
    rgba(47, 143, 255, 0.55) 1px,
    transparent 1.5px
  );
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 18%,
    #000 100%
  );
}

.dash-messages__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(47, 143, 255, 0.2);
}

.dash-messages__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.dash-messages__more {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dash-msg-link);
}

.dash-messages__more:hover {
  color: #9ed0ff;
}

.dash-messages__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 143, 255, 0.45) transparent;
}

.dash-messages__item {
  margin: 0 0 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(47, 143, 255, 0.08);
}

.dash-messages__item a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dash-msg-link);
  text-decoration: none;
}

.dash-messages__item a:hover {
  color: #a8d4ff;
  background: rgba(47, 143, 255, 0.08);
}

.dash-messages__item--alert a {
  color: #7ec8ff;
  font-weight: 600;
}

.dash-messages__icon {
  margin-right: 4px;
}

/* How-it-works + CTAs under dashboard */
.page--home-dash .how-it-works {
  margin: 0;
  width: 100%;
}

.page--home-dash .home-servers-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 4px 0 0;
  margin: 0;
}

.page--home-dash .home-servers-cta .btn-primary {
  margin: 0;
}

/* Dashboard sections span the full centered column */
.page--home-dash .dash-hero,
.page--home-dash .dash-catalog-stats,
.page--home-dash .dash-metrics,
.page--home-dash .dash-messages,
.page--home-dash .how-it-works,
.page--home-dash .home-servers-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .dash-hero__frame {
    max-height: 180px;
    border-radius: 8px;
  }

  .dash-metric__value {
    font-size: 1.05rem;
  }

  .dash-messages__list {
    max-height: 180px;
  }
}

/* ========== Servers page — vertical product list ========== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Servers hub — glowing catalog cards (reference-inspired) ========== */

.page--servers-hub {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(30, 90, 180, 0.14), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(0, 169, 157, 0.06), transparent 40%),
    #02060e;
}

.page--servers-hub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(
    circle,
    rgba(47, 120, 220, 0.45) 1px,
    transparent 1.5px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    #000 20%,
    transparent 75%
  );
}

.page--servers-hub > * {
  position: relative;
  z-index: 1;
}

.servers-page__main,
.servers-hub {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 22px) 48px;
  box-sizing: border-box;
}

.servers-hub__head {
  text-align: center;
  margin: 4px 0 18px;
}

.servers-hub__head .eyebrow {
  margin-bottom: 6px;
  color: #5eb0ff;
}

.servers-hub__head h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
}

.servers-hub__lede {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.servers-hub__lede strong {
  color: #8fd4ff;
  font-weight: 600;
}

.servers-hub__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

/* Card shell */
.srv-card.product-row,
.product-row.srv-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(47, 143, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(8, 18, 36, 0.95) 0%, rgba(4, 10, 22, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(47, 143, 255, 0.12),
    0 10px 28px rgba(0, 20, 50, 0.55),
    inset 0 1px 0 rgba(120, 180, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.srv-card:hover {
  border-color: rgba(100, 190, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(100, 190, 255, 0.25),
    0 0 24px rgba(47, 143, 255, 0.28),
    0 14px 32px rgba(0, 20, 50, 0.6);
  transform: translateY(-2px);
}

.srv-card--featured {
  border-color: rgba(0, 200, 180, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 169, 157, 0.15),
    0 10px 28px rgba(0, 40, 40, 0.45),
    0 0 20px rgba(0, 169, 157, 0.12);
}

.srv-card--featured:hover {
  border-color: rgba(0, 220, 200, 0.85);
  box-shadow:
    0 0 28px rgba(0, 169, 157, 0.3),
    0 14px 32px rgba(0, 20, 50, 0.55);
}

.srv-card.is-owned {
  opacity: 0.72;
  border-color: rgba(158, 204, 79, 0.45);
}

.srv-card.is-owned::after {
  content: "Owned";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1400;
  background: #9ecc4f;
}

.srv-card.product-card--link {
  position: relative;
}

/* Media */
.srv-card__media {
  position: relative;
  flex: 0 0 42%;
  max-width: 180px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 60%, rgba(40, 100, 180, 0.25), transparent 70%),
    #050a14;
  overflow: hidden;
}

.srv-card__img,
.product-row__img.srv-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px 8px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.srv-card__tier {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, #7ec8ff, #2f8fff);
  box-shadow: 0 4px 12px rgba(47, 143, 255, 0.4);
}

.srv-card__tier--hot {
  background: linear-gradient(135deg, #ffe08a, #f5a623);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.45);
}

.srv-card__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04120f;
  background: var(--accent-hover);
}

/* Body / stats */
.srv-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px 12px 12px;
}

.srv-card__title,
.srv-card .product-card__title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #6eb8ff;
  line-height: 1.25;
}

.srv-card__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.srv-card__stats li {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.35;
  color: #7ec8ff;
}

.srv-card__k {
  color: rgba(126, 200, 255, 0.75);
  font-weight: 500;
}

.srv-card__v {
  font-weight: 600;
  color: #b8e0ff;
}

.srv-card__v--income {
  color: #5dffc8;
  font-weight: 700;
}

.srv-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 143, 255, 0.18);
}

.srv-card__price,
.srv-card .product-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.srv-card__cta,
.srv-card .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04120f;
  background: linear-gradient(135deg, #00c4b6, #2f8fff);
  border: none;
  pointer-events: none;
}

.srv-card.is-owned .srv-card__cta,
.srv-card.is-owned .btn-buy {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.home-servers-cta {
  display: flex;
  justify-content: center;
  padding: 8px clamp(16px, 3vw, 32px) 36px;
}

@media (max-width: 420px) {
  .srv-card.product-row,
  .product-row.srv-card {
    flex-direction: column;
  }

  .srv-card__media {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 140px;
    aspect-ratio: 16 / 10;
  }

  .srv-card__body {
    padding: 12px 14px 14px;
  }
}

/* ——— Forgot-password recovery chat ——— */

.recovery-modal__dialog {
  width: min(460px, 100%);
  max-height: min(88vh, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background:
    radial-gradient(ellipse 90% 50% at 10% 0%, rgba(0, 169, 157, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(38, 121, 206, 0.1), transparent 50%),
    #0c0f14;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.recovery-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  flex-shrink: 0;
}

.recovery-modal__eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.recovery-modal__head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--text);
}

.recovery-modal__note {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex-shrink: 0;
}

.recovery-modal__feed {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 169, 157, 0.45) transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.recovery-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.recovery-bubble--system,
.recovery-bubble--admin {
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}

.recovery-bubble--admin {
  border-color: rgba(158, 204, 79, 0.4);
  background: linear-gradient(135deg, rgba(158, 204, 79, 0.16), rgba(158, 204, 79, 0.06));
}

.recovery-bubble--user {
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
  border-color: rgba(0, 169, 157, 0.35);
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.18), rgba(38, 121, 206, 0.1));
}

.recovery-bubble__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-soft);
  word-break: break-word;
  white-space: pre-line;
}

.recovery-bubble__meta {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.recovery-modal__reset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  flex-shrink: 0;
}

.recovery-modal__reset[hidden] {
  display: none;
}

.recovery-modal__reset .field {
  margin: 0;
}

.recovery-modal__reset label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.recovery-modal__reset .btn-primary {
  margin-top: 2px;
}

.recovery-modal__status {
  margin: 10px 18px 0;
}

.recovery-modal__composer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px 18px;
  flex-shrink: 0;
}

.recovery-modal__composer .tp-input {
  flex: 1;
}

.recovery-modal__composer .tp-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.recovery-modal__composer .btn-primary--inline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .recovery-modal__dialog {
    max-height: 92vh;
    border-radius: 12px;
  }
}

