.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);
}

#depositQrImage {
  background: #e6e8ec !important;
}

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,
.withdraw-warning-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 .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);
}

.withdraw-warning-card {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(255, 77, 87, 0.62);
  background: linear-gradient(135deg, rgba(255, 77, 87, 0.16), rgba(10, 15, 21, 0.98));
}

.withdraw-warning-card i {
  width: 42px;
  height: 42px;
  color: var(--red);
}

.withdraw-warning-card strong {
  color: var(--red);
  font-size: 16px;
}

.withdraw-warning-card p {
  margin: 8px 0 0;
  color: #d4d7dd;
  line-height: 1.45;
}

.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;
}
