:root {
  --bg-1: #0F172A;
  --bg-2: #1E293B;
  --card: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --navy: #1B2A4A;
  --accent: #F7931A; /* BTC orange */
  --ok-ink: #067647; --ok-bg: #DCFAE6;
  --err-ink: #B42318; --err-bg: #FEE4E2;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #E2E8F0;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%) fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1100px; width: 100%; margin: 0 auto; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #0F172A; font-weight: 900; font-size: 15px;
}
.brand small { display: block; font-weight: 500; color: #94A3B8; font-size: 12px; letter-spacing: 0; }

.lang { display: inline-flex; border: 1px solid #334155; border-radius: 999px; overflow: hidden; }
.lang button {
  background: transparent; color: #94A3B8; border: 0; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 40px; }

.card {
  background: var(--card); color: var(--ink); width: 100%; max-width: 460px;
  border-radius: var(--radius); padding: 36px 32px; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.card.wide { max-width: 760px; text-align: left; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: #FFF4E5; color: #B45309; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: 28px; margin: 0 0 10px; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 26px; line-height: 1.55; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 22px 0 0; }

.tg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #2AABEE; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 15px 20px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(42,171,238,.8);
}
.tg-btn:hover { background: #229ED9; }
.steps { text-align: left; color: #334155; font-size: 14px; line-height: 1.6; margin: 18px 0 0; padding-left: 22px; }
.alt { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.alt summary { cursor: pointer; color: var(--muted); font-size: 13px; }
#tg-login { min-height: 48px; display: flex; justify-content: center; margin-top: 14px; }

.msg { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; text-align: left; display: none; }
.msg.show { display: block; }
.msg.err { background: var(--err-bg); color: var(--err-ink); }
.msg.info { background: #EEF2FF; color: #3730A3; }

.user { display: flex; align-items: center; gap: 10px; }
.user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #334155; }
.user span { color: #fff; font-weight: 600; font-size: 14px; }
.btn {
  background: transparent; color: #E2E8F0; border: 1px solid #334155; border-radius: 10px;
  padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.btn:hover { border-color: #64748B; }

.soon {
  margin-top: 8px; border: 1px dashed var(--line); border-radius: 14px; padding: 22px;
  background: #F8FAFC; color: var(--muted); line-height: 1.55;
}

footer { text-align: center; color: #64748B; font-size: 12px; padding: 0 16px 22px; line-height: 1.6; }
footer a { color: #94A3B8; }

.legal { text-align: left; }
.legal h2 { color: var(--navy); font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #334155; line-height: 1.6; font-size: 14.5px; }
.legal a { color: var(--navy); }

@media (max-width: 520px) {
  .card { padding: 28px 20px; }
  h1 { font-size: 24px; }
  .topbar { padding: 14px 16px; }
  .brand small { display: none; }
}
