:root {
  color: #182230;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
}

button:hover {
  background: #185abc;
}

input {
  border: 1px solid #c9d5e7;
  border-radius: 8px;
  color: #182230;
  font-weight: 700;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

input[type="radio"] {
  accent-color: #1f6feb;
  min-height: auto;
  width: auto;
}

label {
  color: #4b5565;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
p {
  margin: 0;
}

.authPage {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: 24px;
}

.authPanel {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgb(24 34 48 / 10%);
  max-width: 420px;
  padding: 32px;
  width: 100%;
}

.authPanel h1 {
  font-size: 24px;
  margin: 8px 0 24px;
}

.stack {
  display: grid;
  gap: 18px;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d9e2ef;
  display: flex;
  justify-content: space-between;
  padding: 22px 32px;
}

.topbar h1 {
  font-size: 20px;
}

.topbarActions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.shell {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 980px;
  padding: 28px;
}

.guideShell {
  grid-template-columns: 1fr;
  max-width: 1080px;
}

.accountPanel,
.paymentPanel,
.guideCard {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 24px;
}

.accountPanel {
  display: grid;
  gap: 10px;
}

.accountPanel span {
  color: #697586;
  font-weight: 800;
}

.accountPanel strong {
  font-size: 30px;
}

.highlight {
  background: #edf7f2;
  border-color: #b7e3ca;
}

.paymentPanel {
  display: grid;
  gap: 22px;
  grid-column: 1 / -1;
}

.paymentPanel h2 {
  font-size: 24px;
  margin-top: 6px;
}

.sectionTitle {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.sectionTitle h2 {
  font-size: 18px;
}

.sectionTitle p:not(.eyebrow) {
  color: #526173;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  max-width: 860px;
}

.infoGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.infoGrid div,
.fieldGuide div {
  background: #f7f9fc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 14px;
}

.infoGrid dt,
.fieldGuide dt {
  color: #697586;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.infoGrid dd,
.fieldGuide dd {
  color: #182230;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.fieldGuide {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 0;
}

.fieldGuide.twoColumn {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fieldGuide code {
  background: #eef3f8;
  border-radius: 5px;
  color: #1f4f8f;
  padding: 1px 5px;
}

.noticeBox {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.noticeBox strong {
  font-size: 14px;
}

.noticeBox p {
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.noticeBox code {
  color: #c2410c;
  font-weight: 900;
}

.noticeBox.neutral {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
  margin-bottom: 0;
  margin-top: 14px;
}

.noticeBox.neutral p,
.noticeBox.neutral code {
  color: #1d4ed8;
}

.noticeBox.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.noticeBox.danger p,
.noticeBox.danger code {
  color: #be123c;
}

.copyLine {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.copyButton {
  background: #edf1f7;
  color: #25313f;
  min-height: 36px;
  padding: 0 12px;
}

.copyButton:hover {
  background: #dfe7f2;
}

pre {
  background: #111827;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  overflow: auto;
  padding: 18px;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.paymentForm {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
}

.paymentModes {
  background: #f7f9fc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 6px;
}

.modeOption {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex: 1;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.modeOption:has(input:checked) {
  background: #fff;
  border: 1px solid #bdd2f6;
  color: #1f6feb;
  box-shadow: 0 1px 3px rgb(24 34 48 / 8%);
}

.amountControl {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
}

.amountControl input {
  border-radius: 8px 0 0 8px;
}

.amountControl span {
  align-items: center;
  background: #eef2f8;
  border: 1px solid #c9d5e7;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  display: flex;
  font-weight: 900;
  min-height: 48px;
  padding: 0 16px;
}

.eyebrow {
  color: #1f6feb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.errorText {
  color: #c0362c;
  font-size: 14px;
  font-weight: 800;
  min-height: 20px;
}

.ghostButton {
  background: #edf1f7;
  color: #25313f;
}

.ghostButton:hover {
  background: #dfe7f2;
}

.muted {
  color: #697586;
  font-weight: 700;
  min-height: 24px;
}

@media (max-width: 720px) {
  .topbar,
  .paymentForm {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    gap: 16px;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .topbarActions,
  .infoGrid,
  .fieldGuide {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbarActions {
    display: grid;
  }
}
