/* =====================================================================
   PROTIDEFX AUTH + SIGN-UP PAGES  (docs/SIGNUP.md)
   Login, password reset and the multi-step sign-up share this layout.

   Colors: ONLY the shared tokens from assets/custom/theme/tokens.css
   (--pfx-primary = admin base color, the general palette, and the
   neutral surface/text/border tokens). No hex values in this file, so
   recoloring the site never needs a change here.
   ===================================================================== */

.pfx-auth {
  --pfx-auth-radius: 18px;
  --pfx-auth-radius-sm: 11px;
  --pfx-auth-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --pfx-auth-heading: 'Manrope', 'DM Sans', system-ui, Arial, sans-serif;
  --pfx-primary-hover: var(--base-h, 216) var(--base-s, 100%) calc(var(--base-l, 50%) - 8%);

  display: grid;
  grid-template-columns: minmax(340px, 35%) minmax(0, 1fr);
  min-height: 100vh;
  background: hsl(var(--pfx-canvas));
  color: hsl(var(--pfx-text));
  font-family: var(--pfx-auth-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.pfx-auth *,
.pfx-auth *::before,
.pfx-auth *::after { box-sizing: border-box; }
.pfx-auth a { color: hsl(var(--pfx-primary)); }
.pfx-auth .pfx-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------
   1. Sidebar (always the dark brand panel, in both modes)
   --------------------------------------------------------------------- */
.pfx-auth__side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px clamp(28px, 3.4vw, 56px) 28px;
  color: hsl(var(--pfx-on-brand));
  background:
    radial-gradient(circle at 0% 95%, hsl(var(--pfx-primary) / 0.22), transparent 45%),
    radial-gradient(circle at 95% 4%, hsl(var(--pfx-primary) / 0.14), transparent 42%),
    hsl(var(--pfx-brand-dark));
}
.pfx-auth__orbit {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -405px;
  top: 20%;
  border: 1px solid hsl(var(--pfx-on-brand) / 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.pfx-auth__orbit::before,
.pfx-auth__orbit::after {
  content: '';
  position: absolute;
  border: 1px solid hsl(var(--pfx-on-brand) / 0.06);
  border-radius: 50%;
}
.pfx-auth__orbit::before { inset: 46px; }
.pfx-auth__orbit::after { inset: 105px; }

.pfx-auth__brand { display: inline-block; width: max-content; }
.pfx-auth__brand img { display: block; width: 190px; max-width: 100%; height: auto; }

.pfx-auth__side-body { width: 100%; max-width: 390px; margin: auto 0; padding: 28px 0 22px; }

.pfx-auth__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 700 10px/1.45 var(--pfx-auth-font);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: hsl(var(--pfx-on-brand) / 0.65);
}
.pfx-auth__eyebrow::before {
  content: '';
  flex: 0 0 20px;
  height: 2px;
  border-radius: 10px;
  background: hsl(var(--pfx-primary));
}
.pfx-auth__side h1 {
  margin: 0 0 14px;
  max-width: 380px;
  font: 800 clamp(30px, 2.9vw, 42px)/1.15 var(--pfx-auth-heading);
  letter-spacing: -1.5px;
  color: hsl(var(--pfx-on-brand));
  text-wrap: balance;
}
.pfx-auth__side h1 span { color: hsl(var(--pfx-primary)); filter: brightness(1.35); }
.pfx-auth__side-copy {
  margin: 0 0 30px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--pfx-on-brand) / 0.7);
}
.pfx-auth__side-label {
  margin: 0 0 12px;
  font: 800 10px/1.2 var(--pfx-auth-font);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: hsl(var(--pfx-on-brand) / 0.5);
}
.pfx-auth__side-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  font-size: 11px;
  color: hsl(var(--pfx-on-brand) / 0.6);
}
.pfx-dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--pfx-primary)); flex: none; }

/* Step list */
.pfx-steps { position: relative; display: flex; flex-direction: column; max-width: 365px; margin: 0; padding: 0; list-style: none; }
.pfx-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 16px;
  width: 1px;
  background: hsl(var(--pfx-on-brand) / 0.14);
}
.pfx-step { position: relative; display: flex; align-items: center; gap: 15px; min-height: 52px; padding: 8px 0; }
.pfx-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 33px;
  border-radius: 11px;
  border: 1px solid hsl(var(--pfx-on-brand) / 0.16);
  background: hsl(var(--pfx-brand-dark));
  color: hsl(var(--pfx-on-brand) / 0.6);
  font-size: 11px;
  font-weight: 800;
}
.pfx-step__dot .pfx-icon { width: 16px; height: 16px; }
.pfx-step strong { font-size: 13px; font-weight: 600; color: hsl(var(--pfx-on-brand) / 0.6); }
.pfx-step.is-current .pfx-step__dot {
  border-color: transparent;
  background: hsl(var(--pfx-primary));
  color: hsl(var(--pfx-on-brand));
  box-shadow: 0 6px 16px hsl(var(--pfx-primary) / 0.35);
}
.pfx-step.is-current strong { color: hsl(var(--pfx-on-brand)); font-weight: 800; }
.pfx-step.is-done .pfx-step__dot { border-color: transparent; background: hsl(var(--pfx-success)); color: hsl(var(--pfx-on-brand)); }
.pfx-step.is-done strong { color: hsl(var(--pfx-on-brand) / 0.85); }

/* Market preview (login / password pages) */
.pfx-market { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.pfx-glass {
  border: 1px solid hsl(var(--pfx-on-brand) / 0.1);
  border-radius: 20px;
  background: hsl(var(--pfx-on-brand) / 0.05);
  backdrop-filter: blur(12px);
}
.pfx-market__main { padding: 18px 18px 14px; }
.pfx-market__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font: 700 10px/1.2 var(--pfx-auth-font);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: hsl(var(--pfx-on-brand) / 0.6);
}
.pfx-market__live { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--pfx-success)); box-shadow: 0 0 0 5px hsl(var(--pfx-success) / 0.18); }
.pfx-market__pair { font-size: 12px; font-weight: 700; color: hsl(var(--pfx-on-brand) / 0.7); }
.pfx-market__price { font: 800 28px/1.1 var(--pfx-auth-heading); letter-spacing: -1px; color: hsl(var(--pfx-on-brand)); }
.pfx-market__chart { display: block; width: 100%; height: 72px; margin-top: 8px; color: hsl(var(--pfx-primary)); }
.pfx-market__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pfx-market__stat { padding: 14px 16px; }
.pfx-market__stat strong { display: block; margin-top: 6px; font: 800 17px/1.1 var(--pfx-auth-heading); color: hsl(var(--pfx-on-brand)); }
.pfx-change { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: hsl(var(--pfx-success)); filter: brightness(1.25); }
.pfx-change.is-down { color: hsl(var(--pfx-danger)); }
.pfx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pfx-chips span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid hsl(var(--pfx-on-brand) / 0.12);
  background: hsl(var(--pfx-on-brand) / 0.05);
  color: hsl(var(--pfx-on-brand) / 0.85);
  font-size: 11px;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   2. Workspace
   --------------------------------------------------------------------- */
.pfx-auth__main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; padding: 0 clamp(18px, 3.5vw, 72px); }
.pfx-auth__top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  border-bottom: 1px solid hsl(var(--pfx-border));
  background: hsl(var(--pfx-canvas) / 0.85);
  backdrop-filter: blur(12px);
}
.pfx-auth__mobile-brand { display: none; }
.pfx-auth__mobile-brand img { display: block; width: 140px; height: auto; }
.pfx-auth__top-title { font-size: 12px; color: hsl(var(--pfx-text-muted)); }
.pfx-auth__top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; color: hsl(var(--pfx-text-muted)); }
.pfx-auth__top-actions .pfx-link { font-weight: 800; text-decoration: none; }
.pfx-auth__top-actions .pfx-link:hover { text-decoration: underline; }
/* Vendor language dropdown + theme switch, recolored for the light top bar */
.pfx-auth__top .theme-switch-wrapper { margin-left: 0; order: 0; }
.pfx-auth__top .theme-switch { margin: 0; }
.pfx-auth__top .slider { background-color: hsl(var(--pfx-control)); }
.pfx-auth__top .slider i,
.pfx-auth__top .theme-switch .slider i::before { color: hsl(var(--pfx-text-strong)) !important; }
.pfx-auth__top .custom--dropdown__selected,
.pfx-auth__top .custom--dropdown__selected .text { color: hsl(var(--pfx-text-strong)); }

.pfx-auth__inner { width: 100%; max-width: 840px; margin: 0 auto; flex: 1; padding: 48px 0 42px; animation: pfx-fadein 0.28s ease both; }
.pfx-auth__inner--narrow { max-width: 480px; padding-top: min(8vh, 72px); }
@keyframes pfx-fadein { from { opacity: 0.55; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pfx-auth__foot {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid hsl(var(--pfx-border));
  font-size: 11px;
  color: hsl(var(--pfx-text-muted));
}
.pfx-auth__foot a { color: hsl(var(--pfx-text-muted)); margin-left: 12px; text-decoration: none; }
.pfx-auth__foot a:hover { color: hsl(var(--pfx-primary)); }

/* Progress */
.pfx-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: hsl(var(--pfx-text-muted)); }
.pfx-progress { display: flex; gap: 8px; margin: 0 0 40px; }
.pfx-progress span { flex: 1; height: 6px; border-radius: 99px; background: hsl(var(--pfx-surface-2)); }
.pfx-progress span.is-done { background: hsl(var(--pfx-success)); }
.pfx-progress span.is-current { background: hsl(var(--pfx-primary)); }

/* Headings */
.pfx-title {
  margin: 0 0 10px;
  font: 800 clamp(25px, 2.5vw, 34px)/1.25 var(--pfx-auth-heading);
  letter-spacing: -1px;
  color: hsl(var(--pfx-text-strong));
}
.pfx-lead { max-width: 680px; margin: 0 0 28px; font-size: 14px; line-height: 1.75; color: hsl(var(--pfx-text-muted)); }
.pfx-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: hsl(var(--pfx-text-strong));
}
.pfx-section-title:first-of-type { margin-top: 0; }
.pfx-section-title .pfx-icon { color: hsl(var(--pfx-primary)); }
.pfx-optional { font-weight: 500; color: hsl(var(--pfx-text-muted)); }

/* Card */
.pfx-card {
  border: 1px solid hsl(var(--pfx-border));
  border-radius: var(--pfx-auth-radius);
  background: hsl(var(--pfx-surface));
  box-shadow: var(--pfx-shadow);
  padding: clamp(22px, 3vw, 36px);
}
.pfx-card--hero { padding: 40px 40px 32px; }
.pfx-center { text-align: center; }
.pfx-icon-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: hsl(var(--pfx-primary) / 0.1);
  color: hsl(var(--pfx-primary));
}
.pfx-icon-badge .pfx-icon { width: 26px; height: 26px; }
.pfx-icon-badge--success { width: 80px; height: 80px; border-radius: 24px; background: hsl(var(--pfx-success) / 0.12); color: hsl(var(--pfx-success)); }
.pfx-icon-badge--success .pfx-icon { width: 38px; height: 38px; }
.pfx-auth-title { margin: 0 0 6px; font: 800 27px/1.3 var(--pfx-auth-heading); letter-spacing: -0.8px; color: hsl(var(--pfx-text-strong)); }
.pfx-auth-sub { margin: 0 0 26px; font-size: 13px; color: hsl(var(--pfx-text-muted)); }

/* ---------------------------------------------------------------------
   3. Forms (our classes + the vendor ones used by captcha / KYC form)
   --------------------------------------------------------------------- */
.pfx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 19px; }
.pfx-grid--1 { grid-template-columns: 1fr; }
.pfx-full { grid-column: 1 / -1; }
.pfx-field { min-width: 0; }

.pfx-auth .pfx-label,
.pfx-auth .form-label,
.pfx-auth .form--label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: hsl(var(--pfx-text-strong));
}
.pfx-auth .form--label.required::after,
.pfx-auth .form-label.required::after { content: ' *'; color: hsl(var(--pfx-danger)); }

.pfx-auth .pfx-input,
.pfx-auth .form--control,
.pfx-auth .form-control,
.pfx-auth .form-select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid hsl(var(--pfx-border));
  border-radius: 10px;
  background-color: hsl(var(--pfx-input));
  color: hsl(var(--pfx-text-strong));
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pfx-auth textarea.form--control,
.pfx-auth textarea.form-control { height: auto; min-height: 110px; padding: 12px 14px; }
.pfx-auth input[type="file"].form--control,
.pfx-auth input[type="file"].form-control { height: auto; padding: 10px 12px; line-height: 1.6; }
.pfx-auth input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: hsl(var(--pfx-inverse-bg));
  color: hsl(var(--pfx-inverse-text));
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.pfx-auth .pfx-input::placeholder,
.pfx-auth .form--control::placeholder { color: hsl(var(--pfx-text-muted)); }
.pfx-auth .pfx-input:focus,
.pfx-auth .form--control:focus,
.pfx-auth .form-control:focus,
.pfx-auth .form-select:focus,
.pfx-auth .pfx-group:focus-within {
  border-color: hsl(var(--pfx-primary));
  box-shadow: 0 0 0 3px hsl(var(--pfx-primary) / 0.12);
}
.pfx-auth select.pfx-input,
.pfx-auth select.form--control,
.pfx-auth .form-select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, hsl(var(--pfx-text-muted)) 50%), linear-gradient(135deg, hsl(var(--pfx-text-muted)) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.pfx-auth .form-group { margin-bottom: 17px; }
.pfx-auth pre { margin: 6px 0 0; font: inherit; font-size: 11px; white-space: normal; color: hsl(var(--pfx-text-muted)) !important; }

/* Input with a select in front (phone) */
.pfx-group {
  display: flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid hsl(var(--pfx-border));
  border-radius: 10px;
  background: hsl(var(--pfx-input));
  overflow: hidden;
}
.pfx-auth .pfx-group .pfx-input { height: 46px; border: 0; border-radius: 0; box-shadow: none; }
.pfx-auth .pfx-group select.pfx-input { flex: 0 0 auto; width: 132px; border-right: 1px solid hsl(var(--pfx-border)); font-size: 12px; }
.pfx-auth .pfx-group input.pfx-input { flex: 1; }
.pfx-group__prefix { display: flex; align-items: center; padding: 0 0 0 12px; font-size: 13px; font-weight: 700; color: hsl(var(--pfx-text-muted)); }

/* Input with a button inside (show password) */
.pfx-with-action { position: relative; }
.pfx-auth .pfx-with-action .pfx-input { padding-right: 70px; }
.pfx-with-action__btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: hsl(var(--pfx-primary));
  font-size: 12px;
  font-weight: 800;
}

.pfx-hint { margin: 6px 0 0; font-size: 11px; color: hsl(var(--pfx-text-muted)); }
.pfx-hint.is-error,
.pfx-auth .invalid-feedback { color: hsl(var(--pfx-danger)); }

/* Checkbox */
.pfx-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.55; color: hsl(var(--pfx-text)); cursor: pointer; }
.pfx-check input {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  border: 1.5px solid hsl(var(--pfx-border));
  border-radius: 5px;
  background: hsl(var(--pfx-input));
  cursor: pointer;
}
.pfx-check input:checked { border-color: hsl(var(--pfx-primary)); background: hsl(var(--pfx-primary)); }
.pfx-check input:checked::after { content: '✓'; font: 800 11px/1 Arial, sans-serif; color: hsl(var(--pfx-on-brand)); }
.pfx-check strong { color: hsl(var(--pfx-text-strong)); }
.pfx-check a { text-decoration: underline; text-underline-offset: 2px; }
.pfx-check-stack { display: grid; gap: 13px; }

/* Buttons */
.pfx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid hsl(var(--pfx-primary));
  border-radius: var(--pfx-auth-radius-sm);
  background: hsl(var(--pfx-primary));
  color: hsl(var(--pfx-on-brand)) !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px hsl(var(--pfx-primary) / 0.22);
  transition: background 0.18s, transform 0.18s;
}
.pfx-btn:hover { background: hsl(var(--pfx-primary-hover)); border-color: hsl(var(--pfx-primary-hover)); transform: translateY(-1px); }
.pfx-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.pfx-btn--block { width: 100%; }
.pfx-btn--ghost {
  border-color: hsl(var(--pfx-border));
  background: hsl(var(--pfx-surface));
  color: hsl(var(--pfx-text-strong)) !important;
  box-shadow: none;
}
.pfx-btn--ghost:hover { background: hsl(var(--pfx-surface-2)); border-color: hsl(var(--pfx-border)); }
.pfx-btn .pfx-icon { width: 17px; height: 17px; }
.pfx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.pfx-actions .pfx-push { margin-left: auto; }
.pfx-actions .pfx-btn:not(.pfx-btn--ghost) { min-width: 180px; }
.pfx-linkbtn { padding: 0; border: 0; background: none; color: hsl(var(--pfx-primary)); font-size: 12px; font-weight: 700; text-decoration: none; }
.pfx-linkbtn:hover { text-decoration: underline; }

.pfx-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pfx-auth-bottom { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-size: 12px; color: hsl(var(--pfx-text-muted)); }
.pfx-auth-bottom a { font-weight: 800; text-decoration: none; }

/* Notices */
.pfx-note {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid hsl(var(--pfx-primary) / 0.2);
  border-radius: var(--pfx-auth-radius-sm);
  background: hsl(var(--pfx-primary) / 0.06);
  color: hsl(var(--pfx-text));
  font-size: 12px;
  line-height: 1.65;
}
.pfx-note .pfx-icon { margin-top: 1px; color: hsl(var(--pfx-primary)); }
.pfx-note strong { color: hsl(var(--pfx-text-strong)); }
.pfx-note--warning { border-color: hsl(var(--pfx-warning) / 0.35); background: hsl(var(--pfx-warning) / 0.08); }
.pfx-note--warning .pfx-icon { color: hsl(var(--pfx-warning)); }
.pfx-note--success { border-color: hsl(var(--pfx-success) / 0.3); background: hsl(var(--pfx-success) / 0.08); }
.pfx-note--success .pfx-icon { color: hsl(var(--pfx-success)); }

/* Social login (vendor partial) */
.pfx-social { margin-bottom: 20px; }
.pfx-auth .pfx-social .continue-google .btn {
  height: 46px;
  border: 1px solid hsl(var(--pfx-border));
  border-radius: 10px;
  background: hsl(var(--pfx-surface));
}
.pfx-auth .pfx-social .other-option { margin-top: 18px; text-align: center; font-size: 11px; color: hsl(var(--pfx-text-muted)); }
.pfx-auth .pfx-social .other-option__text { background: hsl(var(--pfx-surface)); color: hsl(var(--pfx-text-muted)); }

/* Verification code boxes (vendor partial) */
.pfx-auth .verification-code input { background: transparent; }
.pfx-auth .verification-code .boxes span { border-color: hsl(var(--pfx-border)); color: hsl(var(--pfx-text-strong)); background: hsl(var(--pfx-input)); }

/* ---------------------------------------------------------------------
   4. Deposit step
   --------------------------------------------------------------------- */
.pfx-methods { display: flex; gap: 10px; overflow-x: auto; padding: 3px 3px 12px; margin: 0 -3px; scrollbar-width: thin; }
.pfx-method { position: relative; flex: none; }
.pfx-method input { position: absolute; opacity: 0; pointer-events: none; }
.pfx-method label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  height: 92px;
  padding: 10px 14px;
  border: 1px solid hsl(var(--pfx-border));
  border-radius: 12px;
  background: hsl(var(--pfx-surface));
  color: hsl(var(--pfx-text));
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.pfx-auth .pfx-method__icon { width: 24px; height: 24px; color: hsl(var(--pfx-primary)); }
.pfx-method label small { font-size: 10px; font-weight: 700; color: hsl(var(--pfx-text-muted)); }
.pfx-method label:hover { border-color: hsl(var(--pfx-primary) / 0.5); }
.pfx-method input:checked + label { border-color: hsl(var(--pfx-primary)); background: hsl(var(--pfx-primary) / 0.06); box-shadow: inset 0 0 0 1px hsl(var(--pfx-primary)); }
.pfx-method input:focus-visible + label { outline: 3px solid hsl(var(--pfx-primary) / 0.35); outline-offset: 2px; }

.pfx-deposit { border: 1px solid hsl(var(--pfx-border)); border-radius: 16px; padding: 24px; background: hsl(var(--pfx-surface)); }
.pfx-deposit__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pfx-deposit__heading { margin: 0 0 16px; font: 800 16px/1.4 var(--pfx-auth-heading); color: hsl(var(--pfx-text-strong)); }
.pfx-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 10px; }
.pfx-presets button {
  padding: 8px 4px;
  border: 1px solid hsl(var(--pfx-border));
  border-radius: 9px;
  background: hsl(var(--pfx-surface));
  color: hsl(var(--pfx-text));
  font-size: 12px;
  font-weight: 800;
}
.pfx-presets button:hover,
.pfx-presets button.is-active { border-color: hsl(var(--pfx-primary)); background: hsl(var(--pfx-primary) / 0.08); color: hsl(var(--pfx-primary)); }
.pfx-summary { margin: 0; padding: 0; list-style: none; border: 1px solid hsl(var(--pfx-border)); border-radius: 12px; }
.pfx-summary li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 13px; }
.pfx-summary li + li { border-top: 1px solid hsl(var(--pfx-border-soft)); }
.pfx-summary span:first-child { color: hsl(var(--pfx-text-muted)); }
.pfx-summary strong { color: hsl(var(--pfx-text-strong)); }
.pfx-divider { margin: 20px 0; border: 0; border-top: 1px solid hsl(var(--pfx-border)); opacity: 1; }
.pfx-empty { padding: 34px 20px; text-align: center; color: hsl(var(--pfx-text-muted)); }

/* ---------------------------------------------------------------------
   5. Complete step
   --------------------------------------------------------------------- */
.pfx-success { padding: 44px clamp(24px, 5vw, 64px); text-align: center; }
.pfx-success p { max-width: 430px; margin: 12px auto 24px; line-height: 1.8; color: hsl(var(--pfx-text-muted)); }
.pfx-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 28px; }
.pfx-checklist span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 9px;
  background: hsl(var(--pfx-surface-2));
  font-size: 11px;
  font-weight: 800;
  color: hsl(var(--pfx-text));
}
.pfx-checklist .pfx-icon { width: 14px; height: 14px; color: hsl(var(--pfx-success)); }
.pfx-checklist .is-pending .pfx-icon { color: hsl(var(--pfx-warning)); }

/* ---------------------------------------------------------------------
   6. Responsive
   --------------------------------------------------------------------- */
@media (max-height: 770px) and (min-width: 901px) {
  .pfx-auth__side { padding-top: 24px; padding-bottom: 18px; }
  .pfx-auth__side-body { padding: 16px 0 12px; }
  .pfx-auth__side h1 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 8px; }
  .pfx-auth__side-copy { margin-bottom: 18px; }
  .pfx-step { min-height: 44px; padding: 5px 0; }
  .pfx-market { gap: 9px; }
}
@media (max-width: 1100px) {
  .pfx-auth { grid-template-columns: minmax(300px, 33%) minmax(0, 1fr); }
  .pfx-auth__side { padding: 30px 24px 22px; }
  .pfx-auth__main { padding: 0 28px; }
  .pfx-card--hero { padding: 30px 28px; }
}
@media (max-width: 900px) {
  .pfx-auth { display: block; }
  .pfx-auth__side { display: none; }
  .pfx-auth__mobile-brand { display: block; }
  .pfx-auth__top-title { display: none; }
  .pfx-auth__top { min-height: 70px; }
  .pfx-auth__inner { padding-top: 32px; }
}
@media (max-width: 600px) {
  .pfx-auth__main { padding: 0 16px; }
  .pfx-auth__top-actions .pfx-hide-sm { display: none; }
  .pfx-card { padding: 22px 18px; border-radius: 16px; }
  .pfx-card--hero { padding: 26px 20px; }
  .pfx-grid { grid-template-columns: 1fr; gap: 15px; }
  .pfx-progress { margin-bottom: 28px; }
  .pfx-deposit { padding: 16px; }
  .pfx-deposit__layout { grid-template-columns: 1fr; gap: 18px; }
  .pfx-actions .pfx-btn { flex: 1; min-width: 140px; }
  .pfx-actions .pfx-push { margin-left: 0; }
  .pfx-checklist { grid-template-columns: 1fr; }
  .pfx-auth__foot { flex-direction: column; }
  .pfx-auth__foot a { margin: 0 12px 0 0; }
}

/* login: back link + risk warning (Capplace-style, 2026-11-19) */
.pfx-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: hsl(var(--pfx-text-muted)); text-decoration: none; }
.pfx-back:hover { color: hsl(var(--pfx-text-strong)); }
.pfx-back .pfx-icon { transform: rotate(180deg); width: 14px; height: 14px; }
.pfx-risk { margin: 18px 0 0; font-size: 11.5px; line-height: 1.55; color: hsl(var(--pfx-text-muted)); text-align: center; }
.pfx-risk b { color: hsl(var(--pfx-text)); }
