/* account.americabitcoinatm.com — brand: American Blue #040766, Red #ED122E, Mint #38E3A5, Gray #D9DAE5 */
:root {
  --blue: #040766;
  --blue-dark: #020438;
  --red: #ED122E;
  --red-dark: #c40e25;
  --mint: #38E3A5;
  --gray: #D9DAE5;
  --ink: #1d1f3a;
  --muted: #555874;
  --surface: #ffffff;
  --page: #f4f5fa;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Rethink Sans', Inter, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--blue); }
.nowrap { white-space: nowrap; }
h1, h2 { margin: 0; line-height: 1.15; }

.dev-banner {
  background: #ffd84d; color: #3a2e00; text-align: center;
  font-size: 13px; font-weight: 700; padding: 6px 12px; letter-spacing: .02em;
}

/* ---------------------------------------------------------------- sign-in */
body.auth { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); min-height: 100vh; }
.auth-shell {
  max-width: 1080px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center;
  min-height: calc(100vh - 0px);
}
.auth-hero { color: #fff; position: relative; }
.auth-hero::before {
  content: ''; position: absolute; left: -24px; top: -36px; width: 140px; height: 8px;
  background: var(--red); transform: skewX(-24deg);
}
.auth-logo { width: 220px; height: auto; display: block; margin-bottom: 40px; }
.auth-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 28px; max-width: 13ch; }
.hero-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; max-width: 460px; }
.hero-points li { display: flex; gap: 14px; font-size: 17px; color: rgba(255,255,255,.88); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); margin-top: 8px; }
.dot-soon { background: transparent; border: 2px solid rgba(255,255,255,.55); }
.hero-note { font-size: 14px; color: rgba(255,255,255,.7); max-width: 440px; border-left: 3px solid var(--red); padding-left: 12px; }

.auth-card-wrap { width: 100%; }
.auth-card {
  background: var(--surface); border-radius: var(--radius); padding: 36px 36px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.card-logo { display: none; width: 170px; height: auto; margin: 0 auto 22px; }
.auth-card h2 { font-size: 24px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.lede strong { color: var(--ink); white-space: nowrap; }

label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #b9bbd0; border-radius: 10px; background: #fff;
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4,7,102,.15); }
.phone-field { display: flex; align-items: stretch; }
.phone-prefix {
  display: flex; align-items: center; padding: 0 14px; font-size: 17px; font-weight: 700;
  background: var(--page); border: 1.5px solid #b9bbd0; border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted);
}
.phone-field input { border-radius: 0 10px 10px 0; }
.code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }
.hint, .fine { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.fine { margin-top: 18px; }

.check { display: flex; gap: 10px; font-weight: 400; font-size: 14px; align-items: flex-start; margin-top: 20px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

.btn {
  display: inline-block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 17px; border-radius: 10px; padding: 14px 18px; border: 0;
  margin-top: 22px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); width: auto; margin-top: 14px; font-size: 15px; padding: 10px 16px; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); width: auto; margin: 0; font-size: 15px; padding: 8px 16px; }
.btn-ghost:hover { border-color: #fff; }
.btn-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.code-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; align-items: center; }
.code-actions form { margin: 0; }

.alert { border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 0 0 16px; }
.alert-error { background: #fdecef; color: #8f0a1c; border: 1px solid #f6c3cb; }
.alert-info { background: #e9fbf4; color: #0d5c40; border: 1px solid #b8f0da; }
.alert-dev { background: #fff6d6; color: #5a4600; border: 1px dashed #d8b84a; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li {
  counter-increment: s; font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--page);
}
.steps li::before { content: counter(s); display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: #c9cbdc; color: #fff; margin-right: 6px; font-size: 11px; }
.steps li.current { color: var(--blue); background: #e6e7f4; }
.steps li.current::before { background: var(--blue); }
.steps li.done { color: #0d5c40; background: #e9fbf4; }
.steps li.done::before { content: '✓'; background: #1fb47e; }

.help-line, .legal-line { text-align: center; color: rgba(255,255,255,.8); font-size: 14px; margin: 16px 0 0; }
.legal-line { margin-top: 6px; font-size: 13px; }
.help-line a, .legal-line a { color: #fff; }

/* ---------------------------------------------------------------- dashboard */
.topbar {
  background: var(--blue); display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
}
.topbar-logo { height: 38px; width: auto; }
.topbar form { margin: 0; }
.greeting { background: var(--blue); color: #fff; padding: 18px 0 70px; position: relative; overflow: hidden; }
.greeting::after { content: ''; position: absolute; right: -40px; bottom: 26px; width: 260px; height: 10px; background: var(--red); transform: skewX(-24deg); }
.greeting h1 { font-size: 34px; font-weight: 800; }
.greeting p { margin: 6px 0 0; color: rgba(255,255,255,.78); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: -46px; position: relative; padding-bottom: 32px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(4,7,102,.08); }
.card-wide { grid-column: 1 / -1; }
.card h2 { font-size: 19px; font-weight: 800; color: var(--blue); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.count { font-weight: 700; color: var(--muted); font-size: 14px; }
.progress { height: 8px; border-radius: 999px; background: var(--gray); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--blue); }
.progress-0-of-4 { width: 0; } .progress-1-of-4 { width: 25%; } .progress-2-of-4 { width: 50%; }
.progress-3-of-4 { width: 75%; } .progress-4-of-4 { width: 100%; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c9cbdc; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.checklist li.done .mark { background: #1fb47e; border-color: #1fb47e; }
.checklist strong { font-size: 15.5px; }
.checklist li.todo strong { color: var(--muted); }
.checklist p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.badge { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6e7f4; color: var(--blue); vertical-align: 2px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 14px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; word-break: break-all; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #ecedf4; font-size: 14.5px; flex-wrap: wrap; }
.activity li:first-child { border-top: 0; }
.act-label { font-weight: 700; }
.act-label.warn { color: #a30d22; }
.act-meta { color: var(--muted); }
.app-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 36px; }

/* ---------------------------------------------------------------- verify */
.greeting-short { padding-bottom: 64px; }
.greeting-notice { display: inline-block; margin-top: 14px !important; background: rgba(56,227,165,.16); border: 1px solid rgba(56,227,165,.5); color: #fff !important; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; }
.step-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.verify-card { margin-top: -40px; position: relative; max-width: 720px; margin-bottom: 32px; }
.verify-card .lede { margin-top: 8px; }
.verify-card h2 { font-size: 22px; }
.plain-list { margin: 0 0 4px; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.btn-inline { width: auto; padding: 13px 26px; }
.sumsub-box { min-height: 520px; margin: 8px 0 12px; border-radius: 10px; overflow: hidden; }
.verify-status { font-weight: 700; color: var(--blue); margin: 4px 0 0; }

/* ---------------------------------------------------------------- phone widths */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; padding: 24px 16px 40px; gap: 24px; min-height: 0; }
  .auth-hero { order: 2; }
  .auth-hero::before, .auth-logo { display: none; }
  .auth-hero h1 { font-size: 24px; margin-bottom: 16px; max-width: none; }
  .card-logo { display: block; }
  .auth-card { padding: 28px 20px 24px; }
  .grid { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; }
  .topbar-logo { height: 30px; }
  .container { padding: 0 16px; }
  .greeting h1 { font-size: 28px; }
}
