.simple-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.simple-header h1 {
  margin: 0;
  font-size: 22px;
}

.simple-header .language-menu {
  justify-self: end;
}

.form-page-title {
  margin: 28px 0 24px;
}

.form-page-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.form-page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: #666666;
  font-size: 13px;
}

.stack-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f7f7;
  color: var(--text);
  padding: 0 14px;
}

.auth-inline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.secondary-inline-button {
  min-width: 112px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  font-weight: 700;
}

.secondary-inline-button:disabled {
  opacity: 0.6;
}

.form-select-trigger {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f7f7;
  padding: 0 14px;
}

.form-select-trigger b {
  font-weight: 700;
}

.form-amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #f7f7f7;
}

.form-card code {
  display: block;
  padding: 13px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--green);
  overflow-wrap: anywhere;
}

.wide-button {
  width: 100%;
  margin-top: 10px;
}

.auth-support-row {
  margin: 12px 0 0;
  text-align: center;
}

.auth-support-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(36, 124, 255, 0.22);
  border-radius: 999px;
  background: rgba(36, 124, 255, 0.07);
  color: #247cff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(36, 124, 255, 0.1);
}

.auth-support-row i {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.auth-switch {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.form-status {
  margin-top: 14px;
  color: var(--green);
  font-size: 13px;
  text-align: center;
}

.form-status[data-type="error"] {
  color: #e84d5b;
}

.form-status[data-type="success"] {
  color: var(--green);
}

/* 2026 UI refresh */
.form-page-title {
  margin: 30px 0 26px;
}

.form-page-title h2 {
  color: #0f172a;
  font-size: 32px;
  line-height: 1.08;
}

.form-page-title p,
.stack-form label,
.auth-switch {
  color: var(--muted);
}

.stack-form {
  gap: 17px;
}

.stack-form input,
.form-select-trigger,
.secondary-inline-button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.stack-form input:focus,
.form-select-trigger:focus-visible {
  border-color: rgba(15, 143, 111, 0.48);
  box-shadow: 0 0 0 4px rgba(15, 143, 111, 0.1);
}

.form-card {
  border-radius: 18px;
}

.form-card code {
  border: 1px solid var(--line);
  color: var(--green);
}

.simple-header .language-trigger {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

/* Tech blue refinement */
.form-page-title h2 {
  color: #102033;
}

.stack-form input:focus,
.form-select-trigger:focus-visible {
  border-color: rgba(36, 124, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(36, 124, 255, 0.1);
}

.form-card code,
.form-status,
.form-status[data-type="success"] {
  color: #247cff;
}

.deposit-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.deposit-address-row code {
  min-width: 0;
}

.deposit-address-row .secondary-inline-button {
  min-width: 78px;
  min-height: auto;
  box-shadow: none;
}

/* Oh bits auth and finance forms */
body[data-auth-page] .phone-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 64px 0 34px;
  text-align: center;
}

.auth-brand img {
  width: 72px;
  height: 72px;
}

.auth-brand strong {
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.auth-brand span {
  color: var(--muted);
  font-size: 16px;
}

body[data-auth-page] .form-page-title {
  display: none;
}

body[data-auth-page] .stack-form {
  gap: 18px;
  padding: 26px 20px;
  border: 1px solid rgba(247, 167, 7, 0.36);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.96), rgba(10, 15, 21, 0.96));
  box-shadow: var(--shadow);
}

body[data-auth-page] .auth-field {
  position: relative;
  display: block;
}

body[data-auth-page] .auth-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body[data-auth-page] .auth-field > i,
body[data-auth-page] .auth-field > svg {
  position: absolute;
  left: 18px;
  top: 50px;
  z-index: 2;
  width: 24px;
  height: 24px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.stack-form label {
  color: var(--muted);
}

.stack-form input,
.form-select-trigger {
  min-height: 58px;
  border-color: #303741;
  border-radius: 14px;
  background: #0a0f15;
  color: var(--text);
}

body[data-auth-page] .auth-field > input {
  padding-left: 58px;
  font-size: 17px;
}

.stack-form input:focus,
.form-select-trigger:focus-visible {
  border-color: rgba(247, 167, 7, 0.7);
  box-shadow: 0 0 0 4px rgba(247, 167, 7, 0.12);
}

body[data-auth-page] .wide-button {
  min-height: 58px;
  border-radius: 12px;
  font-size: 18px;
}

.auth-switch {
  color: var(--muted);
}

.auth-support-row a {
  border-color: rgba(247, 167, 7, 0.25);
  background: rgba(247, 167, 7, 0.08);
  color: var(--brand);
}

.form-card {
  border-color: #303741;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.form-card label,
.form-page-title p,
.field-hint {
  color: var(--muted);
}

.form-page-title h2 {
  color: var(--text);
}

.form-card code {
  border-color: #303741;
  background: #0a0f15;
  color: var(--text);
}

.deposit-address-row .secondary-inline-button {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.deposit-address-row .secondary-inline-button:disabled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  color: var(--muted);
  opacity: 0.72;
}

.deposit-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  min-height: 180px;
  margin: 12px auto 4px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--text) 92%, var(--card));
}

#depositQrImage {
  display: block;
  width: 136px;
  height: 136px;
  border-radius: 10px;
  background: var(--text);
  object-fit: contain;
}

.deposit-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--text);
  border-radius: 10px;
  background: var(--card-soft);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--black) 42%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.deposit-qr-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body[data-page="assets"] .stack-form .wide-button {
  min-height: 58px;
  border-radius: 12px;
  font-size: 17px;
}

/* Oh bits withdraw mockup */
.withdraw-form {
  gap: 12px;
}

.selector-card,
.withdraw-address-card,
.withdraw-amount-card,
.withdraw-summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(247, 167, 7, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: var(--shadow-soft);
}

.selector-card > span,
.withdraw-address-card > span,
.withdraw-amount-card > span {
  color: var(--muted);
  font-size: 16px;
}

.selector-card .form-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) 22px;
  justify-content: start;
  gap: 12px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.selector-card b {
  color: var(--text);
  font-size: 24px;
}

.selector-card small {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
}

.selector-card small[hidden] {
  display: none;
}

.selector-card .form-select-trigger svg {
  justify-self: end;
}

.withdraw-address-row,
.form-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
}

.withdraw-address-row input,
.withdraw-amount-card input {
  min-height: 54px;
  border: 1px solid #303741;
  border-radius: 10px;
  background: #0a0f15;
  color: var(--text);
  padding: 0 14px;
  font-size: 17px;
}

.address-book-button {
  display: grid;
  place-items: center;
  border: 1px solid #303741;
  border-radius: 10px;
  background: #0a0f15;
  color: var(--muted);
}

.withdraw-amount-card .form-amount-row {
  grid-template-columns: minmax(0, 1fr) auto 62px;
  align-items: center;
  border: 1px solid #303741;
  border-radius: 10px;
  background: #0a0f15;
  padding: 0 10px 0 14px;
}

.withdraw-amount-card .form-amount-row input {
  border: 0;
  background: transparent;
  padding: 0;
}

.withdraw-amount-card .form-amount-row b {
  color: var(--muted);
  font-size: 17px;
}

.withdraw-amount-card .max-chip {
  border: 1px solid rgba(247, 167, 7, 0.55);
  background: transparent;
  color: var(--brand);
}

.withdraw-summary-card {
  gap: 0;
}

.withdraw-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid #252b33;
}

.withdraw-summary-card div:last-child {
  border-bottom: 0;
}

.withdraw-summary-card strong {
  color: var(--text);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.secure-note i {
  color: var(--brand);
}

body[data-auth-page="register"] .auth-support-row {
  display: none;
}

body[data-auth-page="forgot"] .simple-header .language-menu,
body[data-auth-page="register"] .simple-header .language-menu {
  visibility: hidden;
}

body[data-auth-page="register"] .simple-header {
  display: none;
}

body[data-auth-page="forgot"] .auth-brand,
body[data-auth-page="register"] .auth-brand {
  margin-top: 56px;
}

body[data-auth-page="forgot"] .auth-brand img,
body[data-auth-page="register"] .auth-brand img {
  width: 86px;
  height: 86px;
}

body[data-auth-page="forgot"] .auth-brand strong,
body[data-auth-page="register"] .auth-brand strong {
  font-size: 38px;
}

.inline-field {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: center;
  border: 1px solid #303741;
  border-radius: 14px;
  background: #0a0f15;
  padding: 0 8px 0 0;
}

.inline-field > i,
.auth-inline-row > i {
  justify-self: center;
  color: var(--muted);
}

.inline-field input {
  min-height: 58px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.inline-field .outline-pill,
.auth-inline-row .secondary-inline-button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffbe1a, #f7a707);
  color: #080b10;
}

.auth-inline-row {
  grid-template-columns: 46px minmax(0, 1fr) 112px;
  align-items: center;
  border: 1px solid #303741;
  border-radius: 14px;
  background: #0a0f15;
  padding-right: 8px;
}

.auth-inline-row input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.forgot-support {
  margin-top: 28px;
}

.forgot-support a {
  border: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  font-size: 16px;
}

body[data-auth-page="forgot"] .secure-note,
body[data-auth-page="register"] .secure-note {
  margin-top: auto;
  padding-top: 34px;
  padding-bottom: 16px;
}

/* Unified Oh bits Auth design system */
body[data-auth-page] .auth-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
  background: transparent;
}

.auth-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.auth-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.auth-nav-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  color: var(--text);
  text-decoration: none;
}

.auth-nav-button svg {
  width: 22px;
  height: 22px;
}

.auth-language-menu {
  position: relative;
}

.auth-language-menu .language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  color: var(--text);
  box-shadow: none;
}

.auth-language-menu .language-trigger span {
  max-width: 74px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-language-menu .language-trigger svg {
  width: 15px;
  height: 15px;
}

.auth-language-menu .language-options {
  right: 0;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.auth-language-menu .language-options button {
  color: var(--text);
  background: transparent;
}

.auth-brand-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 34px 0 20px;
  text-align: center;
}

.auth-brand-block img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.auth-brand-block strong {
  color: var(--text);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.auth-brand-block span {
  max-width: 300px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-form-card {
  display: grid;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 28%),
    linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: var(--shadow);
}

.auth-input {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

body[data-auth-page] .auth-input > span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  color: var(--muted);
}

.auth-input > i,
.auth-input > svg {
  position: absolute;
  left: 16px;
  bottom: 15px;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: var(--muted);
  pointer-events: none;
}

.auth-input input,
.auth-code-row {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 56%, var(--card-soft));
  color: var(--text);
  box-shadow: none;
}

.auth-input input {
  padding: 0 48px;
  font-size: 16px;
  font-weight: 800;
}

.auth-input input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.auth-input input:focus {
  border-color: color-mix(in srgb, var(--brand) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
  outline: 0;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.auth-password-toggle svg {
  width: 22px;
  height: 22px;
}

.auth-code-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 0;
}

.auth-code-row > i,
.auth-code-row > svg {
  justify-self: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.auth-code-row input {
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.auth-send-code-button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--bg);
  font-size: 13px;
  font-weight: 900;
}

.auth-send-code-button:disabled {
  opacity: 0.62;
}

.auth-inline-link {
  margin-top: -4px;
  text-align: right;
}

.auth-inline-link a,
.auth-secondary-links a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.auth-primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
}

.auth-status {
  margin: 12px 0 0;
}

.auth-secondary-links {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.auth-secondary-links span {
  margin-right: 6px;
}

.auth-support-link {
  margin: 18px 0 0;
  text-align: center;
}

.auth-support-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

.auth-support-link svg {
  width: 17px;
  height: 17px;
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: auto 0 0;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.auth-security-note svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
  flex: 0 0 auto;
}

@media (max-width: 380px) {
  body[data-auth-page] .auth-page {
    padding-inline: 14px;
  }

  .auth-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .auth-brand-block {
    margin-top: 28px;
  }

  .auth-form-card {
    padding: 20px 16px;
  }

  .auth-code-row {
    grid-template-columns: 38px minmax(0, 1fr) 84px;
  }

  .auth-send-code-button {
    font-size: 12px;
  }
}
