/*! ESecureBroker — welcome / login (piloto gate, ADR-006 temporary) */
:root {
  --ink: #141b30;
  --ink-2: #1c2544;
  --brass: #cd9a34;
  --brass-deep: #8c651e;
  --brass-soft: #e0ae54;
  --paper: #fbfaf6;
  --muted: rgba(223, 226, 238, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth-body {
  min-height: 100vh;
  font-family: var(--font-ui);
  color: #e8eaf2;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.auth-body.auth-env-dev .auth-stage {
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 82%, rgba(15, 118, 110, 0.55), transparent 50%),
    linear-gradient(165deg, #042f2e 0%, #0b3d3a 42%, #0f766e 100%);
}
body.auth-body.auth-env-dev::before {
  content: "ENTORNO DEV · no es producción";
  display: block;
  background: #14b8a6;
  color: #042f2e;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  position: relative;
  z-index: 20;
}
body.auth-body.auth-env-dev .auth-wordmark span {
  color: #5eead4;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(205, 154, 52, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 82%, rgba(28, 37, 68, 0.9), transparent 50%),
    linear-gradient(165deg, #0f1424 0%, var(--ink) 42%, #1a2240 100%);
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
  animation: auth-grid-drift 28s linear infinite;
}

@keyframes auth-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -24px, 0); }
}

.auth-stage::after {
  content: "";
  position: absolute;
  width: 42vmin;
  height: 42vmin;
  right: -8vmin;
  top: -10vmin;
  border-radius: 50%;
  border: 1px solid rgba(205, 154, 52, 0.22);
  box-shadow: 0 0 0 28px rgba(205, 154, 52, 0.04);
  animation: auth-ring 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auth-ring {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-3%, 4%) scale(1.06); opacity: 1; }
}

.auth-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 44rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  animation: auth-rise 0.7s ease-out both;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.auth-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f5f9;
}

.auth-wordmark span {
  color: var(--brass-soft);
}

.auth-support {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  animation: auth-rise 0.7s ease-out 0.12s both;
}

.auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(205, 154, 52, 0.45);
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-deep) 100%);
  color: #1a1408;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: auth-rise 0.7s ease-out 0.22s both;
}

.auth-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.auth-cta:focus-visible {
  outline: 2px solid var(--brass-soft);
  outline-offset: 3px;
}

.auth-foot {
  position: relative;
  z-index: 1;
  padding: 1rem clamp(1.5rem, 5vw, 3.5rem) 1.35rem;
  font-size: 0.75rem;
  color: rgba(223, 226, 238, 0.38);
  border-top: 1px solid var(--line);
}

/* Login form — only interactive surface */
.auth-login-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  width: min(100%, 26rem);
  margin: 0 auto;
}

.auth-login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
  animation: auth-rise 0.65s ease-out both;
}

.auth-login-brand img {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}

.auth-login-brand .auth-wordmark {
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  display: block;
}

.auth-login-brand p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: auth-rise 0.65s ease-out 0.1s both;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(223, 226, 238, 0.72);
}

.auth-form input {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #f4f5f9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-form input:focus {
  border-color: rgba(205, 154, 52, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.auth-form button {
  margin-top: 0.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(205, 154, 52, 0.45);
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-deep) 100%);
  color: #1a1408;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.auth-form button:hover { filter: brightness(1.04); }
.auth-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

/* Org picker — logos de correduría */
.auth-org-form { gap: 0.75rem; }
.auth-org-btn {
  display: flex !important;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left !important;
  margin-top: 0 !important;
  padding: 0.75rem 0.95rem !important;
}
.auth-org-logo {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 20, 8, 0.12);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.auth-org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.auth-org-initials {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1408;
}
.auth-org-meta {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.auth-org-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.auth-org-stats {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.78;
  line-height: 1.3;
}

.auth-error {
  margin: 0 0 0.25rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(168, 64, 47, 0.45);
  background: rgba(168, 64, 47, 0.18);
  color: #f3c9c2;
  font-size: 0.88rem;
  animation: auth-rise 0.4s ease-out both;
}

.auth-back {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  animation: auth-rise 0.65s ease-out 0.18s both;
}

.auth-back:hover { color: var(--brass-soft); }

/* Registro / checkout (tema oscuro, sin depender de landing) */
.auth-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.auth-brand-link .auth-wordmark {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
}
.auth-register-wrap .auth-login-brand {
  margin-bottom: 1.25rem;
}
.auth-register-wrap .auth-login-brand img {
  margin-bottom: 0;
}
.auth-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 560;
  color: #f4f5f9;
  text-align: center;
  animation: auth-rise 0.65s ease-out 0.05s both;
}
.auth-lead {
  margin: 0 0 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  animation: auth-rise 0.65s ease-out 0.08s both;
}
.auth-plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(205, 154, 52, 0.4);
  color: var(--brass-soft);
  font-size: 0.82rem;
  font-weight: 600;
  box-sizing: border-box;
  animation: auth-rise 0.65s ease-out 0.1s both;
}
.auth-form input::placeholder {
  color: rgba(223, 226, 238, 0.35);
  font-weight: 400;
}
.auth-alt {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.auth-alt a {
  color: var(--brass-soft);
  text-decoration: none;
  font-weight: 500;
}
.auth-alt a:hover { text-decoration: underline; }
.auth-checkout-box {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  animation: auth-rise 0.65s ease-out 0.1s both;
}
.auth-checkout-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f4f5f9;
  margin-bottom: 0.25rem;
}
.auth-checkout-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.auth-checkout-price {
  margin: 0.55rem 0 0;
  color: var(--brass-soft);
  font-size: 1.55rem;
  font-weight: 650;
}
.auth-checkout-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(223, 226, 238, 0.42);
}
.auth-note code {
  color: var(--brass-soft);
  font-size: 0.78rem;
}
.auth-plan-switch {
  margin: 1.25rem 0 0.5rem;
}
.auth-plan-switch > .auth-note {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.auth-plan-switch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.auth-plan-switch-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #e8eaf2;
  text-decoration: none;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
}
.auth-plan-switch-list a:hover {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--brass-soft);
}
.auth-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 0.85rem;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 50%, var(--brass-soft) 50%) calc(100% - 1.15rem) calc(50% - 0.2rem) / 0.45rem 0.45rem no-repeat,
    linear-gradient(135deg, var(--brass-soft) 50%, transparent 50%) calc(100% - 0.8rem) calc(50% - 0.2rem) / 0.45rem 0.45rem no-repeat,
    rgba(255, 255, 255, 0.04);
  color: #f4f5f9;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
}
.auth-select:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.auth-select option {
  color: #111;
  background: #fff;
}
.auth-pay-methods {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.auth-pay-methods legend {
  padding: 0 0.35rem;
  color: rgba(223, 226, 238, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-pay-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.45rem 0;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  color: #e8eaf2;
}
.auth-pay-option strong {
  display: block;
  font-size: 0.95rem;
}
.auth-pay-option small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.auth-pay-option.is-selected {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.08);
}
.auth-pay-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.auth-pay-option input {
  margin-top: 0.2rem;
}

/* —— Checkout pago (estilo SaaS: ancho + tiles + resumen sticky) —— */
body.auth-checkout-page .pay-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(1rem, 4vw, 3rem) 2.5rem;
}
body.auth-checkout-page .pay-shell-wide {
  max-width: none;
}
.pay-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  justify-self: start;
}
.pay-brand .auth-wordmark {
  font-size: 1.35rem;
}
.pay-steps {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(223, 226, 238, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
}
.pay-steps .is-current {
  color: var(--brass-soft);
}
.pay-top-meta {
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.pay-main h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 560;
  color: #f4f5f9;
}
.pay-main-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 52ch;
}
.pay-main-lead strong { color: #eef0f6; }
.pay-section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(223, 226, 238, 0.55);
}
.pay-inline-plan {
  max-width: 28rem;
}
.pay-inline-plan label {
  display: block;
  margin: 0 0 0.35rem;
  color: rgba(223, 226, 238, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.pay-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
  margin: 0;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-tile-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass-soft);
}
.pay-tile-name {
  color: #f0f2f8;
  font-size: 0.9rem;
  font-weight: 650;
}
.pay-tile-status {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pay-tile-status.is-ok { color: #86efac; }
.pay-tile.is-selected,
.pay-tile.is-available.is-selected {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.2);
}
.pay-tile:not(.is-available) {
  opacity: 0.7;
}
.pay-detail {
  margin-top: 1.1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.45);
}
.pay-detail h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #f4f5f9;
}
.pay-detail-hint {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.pay-detail-row label {
  display: block;
  margin: 0 0 0.35rem;
  color: rgba(223, 226, 238, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-detail-row input[type="text"] {
  width: 100%;
  max-width: 28rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f5f9;
  font: inherit;
  font-size: 1rem;
}
.pay-detail-row input[type="text"]:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.pay-bank-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.pay-bank-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.pay-bank-list dt {
  margin: 0;
  color: rgba(223, 226, 238, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pay-bank-list dd {
  margin: 0;
  color: #f0f2f8;
  font-size: 0.95rem;
}
.pay-bank-list .mono {
  letter-spacing: 0.04em;
  font-weight: 650;
}
.pay-aside-bank {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.pay-aside-bank .mono {
  color: #e8eaf2;
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0.2rem 0;
}
.pay-req {
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.35rem;
}
.pay-file {
  width: 100%;
  max-width: 28rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background: rgba(255, 255, 255, 0.03);
  color: #f4f5f9;
  font: inherit;
  font-size: 0.9rem;
}
.pay-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.22);
  color: #f4f5f9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.pay-file-name {
  margin: 0.5rem 0 0;
  color: #86efac;
  font-size: 0.82rem;
}
.pay-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.pay-secondary {
  color: var(--brass-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.pay-secondary:hover { text-decoration: underline; }
.pay-aside {
  position: sticky;
  top: 1rem;
}
.pay-aside-card {
  padding: 1.25rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(205, 154, 52, 0.1), transparent 45%),
    rgba(8, 12, 24, 0.65);
}
.pay-kicker {
  margin: 0 0 0.4rem;
  color: var(--brass-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pay-aside-card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 560;
  color: #f4f5f9;
}
.pay-org {
  margin: 0 0 0.35rem;
  color: #e8eaf2;
  font-size: 0.95rem;
  font-weight: 600;
}
.pay-aside-tag {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.pay-totals {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.pay-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0;
  font-size: 0.92rem;
}
.pay-totals dt {
  margin: 0;
  color: var(--muted);
}
.pay-totals dd {
  margin: 0;
  color: #e8eaf2;
  font-weight: 600;
}
.pay-totals .is-discount dd { color: #86efac; }
.pay-totals .is-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.pay-totals .is-total dd {
  color: var(--brass-soft);
  font-size: 1.35rem;
}
.pay-summary-note {
  margin: 0.95rem 0 0;
  color: rgba(223, 226, 238, 0.45);
  font-size: 0.78rem;
  line-height: 1.45;
}
.pay-form label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: rgba(223, 226, 238, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-form input[type="text"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f5f9;
  font: inherit;
  font-size: 1rem;
}
.pay-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.pay-method-card {
  margin: 0.85rem 0;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.pay-method-card.is-active {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
}
.pay-method-card.is-disabled {
  opacity: 0.42;
}
.pay-method-title {
  margin: 0;
  font-weight: 650;
  color: #f0f2f8;
}
.pay-method-hint {
  margin: 0.25rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.pay-methods {
  margin: 1rem 0 0.5rem;
  padding: 0;
  border: 0;
}
.pay-methods legend {
  margin: 0 0 0.65rem;
  padding: 0;
  color: rgba(223, 226, 238, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pay-method-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 0.55rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.pay-method-option.is-selected,
.pay-method-option.is-available.is-selected {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
}
.pay-method-option:not(.is-available) {
  opacity: 0.72;
}
.pay-method-option input {
  margin-top: 0.2rem;
}
.pay-method-body strong {
  display: block;
  color: #f0f2f8;
  font-size: 0.95rem;
}
.pay-method-body small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.pay-method-badge {
  align-self: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pay-method-badge.is-ok {
  border-color: rgba(134, 239, 172, 0.35);
  color: #86efac;
}
.pay-promo-fields {
  margin-top: 0.75rem;
}
.pay-promo-fields.is-hidden,
.pay-unavailable.is-hidden,
#pay-discount-row.is-hidden {
  display: none !important;
}
.pay-unavailable {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 0.88rem;
  line-height: 1.4;
}
.pay-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.pay-detail.is-hidden,
#pay-discount-row.is-hidden {
  display: none !important;
}
.pay-submit {
  min-width: 12rem;
  margin-top: 0;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #1a1408;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}
.pay-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}
@media (max-width: 960px) {
  .pay-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .pay-top-meta { justify-self: start; }
  .pay-layout {
    grid-template-columns: 1fr;
  }
  .pay-aside {
    position: static;
    order: -1;
  }
  .pay-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .pay-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.pay-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #1a1408;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}
.pay-submit:hover {
  filter: brightness(1.05);
}
.pay-panel .auth-back {
  display: inline-block;
  margin-top: 1.15rem;
}
@media (max-width: 900px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .pay-summary { order: 1; }
  .pay-panel { order: 2; }
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .auth-frame { padding-top: 3rem; }
  .auth-brand { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
}
