/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --gold:        #FFD700;
  --gold-dark:   #e6c200;
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1e1e1e;
  --border:      #2a2a2a;
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --error:       #ff4444;
  --success:     #00cc66;
  --radius:      12px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  min-height:  100vh;
  line-height: 1.6;
}

/* ── Layout ────────────────────────────────────────────── */
.container      { max-width: 420px; margin: 0 auto; padding: 24px 16px; }
.center-page    { display: flex; flex-direction: column; min-height: 100vh; justify-content: center; }

/* ── Logo ──────────────────────────────────────────────── */
.logo-block     { text-align: center; margin-bottom: 32px; }
.logo-icon      { font-size: 48px; display: block; margin-bottom: 8px; }
.logo-text      { font-size: 36px; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.tagline        { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ── Card ──────────────────────────────────────────────── */
.card {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       28px 24px;
  margin-bottom: 16px;
}
.card h2        { font-size: 18px; margin-bottom: 6px; }
.card-sub       { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* ── Form ──────────────────────────────────────────────── */
label {
  display:     block;
  font-size:   12px;
  color:       var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

input[type="text"] {
  width:         100%;
  background:    var(--surface-2);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  color:         var(--text);
  font-size:     16px;
  padding:       14px 16px;
  margin-bottom: 16px;
  outline:       none;
  transition:    border-color .2s;
}
input[type="text"]:focus { border-color: var(--gold); }
input::placeholder       { color: #444; }

/* ── Buttons ───────────────────────────────────────────── */
button {
  width:         100%;
  background:    var(--gold);
  color:         #000;
  border:        none;
  border-radius: var(--radius);
  font-size:     16px;
  font-weight:   700;
  padding:       15px;
  cursor:        pointer;
  transition:    background .2s, opacity .2s;
}
button:hover    { background: var(--gold-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color:      var(--text-muted);
  border:     1px solid var(--border);
  margin-top: 8px;
  font-weight: 400;
}
.btn-secondary:hover { background: var(--surface-2); }

/* ── Alert ─────────────────────────────────────────────── */
#alert { margin-bottom: 12px; }
.alert {
  border-radius: var(--radius);
  padding:       12px 16px;
  font-size:     13px;
}
.alert-error   { background: rgba(255,68,68,.1); color: var(--error);   border: 1px solid rgba(255,68,68,.2); }
.alert-success { background: rgba(0,204,102,.1); color: var(--success); border: 1px solid rgba(0,204,102,.2); }

/* ── Token Display ─────────────────────────────────────── */
.card#token-card { border-color: var(--gold); text-align: center; }
.token-label     { color: var(--text-muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.token-display   { font-size: 22px; font-weight: 800; color: var(--gold); letter-spacing: 3px; word-break: keep-all; white-space: nowrap; }
.divider         { height: 1px; background: var(--border); margin: 20px 0; }
.repay-note      { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }

/* ── Amount Selector ───────────────────────────────────── */
.amount-selector {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   10px;
  margin-bottom:         16px;
}

.amount-btn {
  background:    var(--surface-2);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  color:         var(--text);
  padding:       14px 8px;
  cursor:        pointer;
  display:       flex;
  flex-direction: column;
  align-items:   center;
  gap:           4px;
  transition:    border-color .2s, background .2s;
  width:         100%;
}

.amount-btn:hover {
  border-color: var(--gold);
  background:   var(--surface);
}

.amount-btn.selected {
  border-color: var(--gold);
  background:   rgba(255, 215, 0, 0.08);
}

.amount-value {
  font-size:   15px;
  font-weight: 700;
  color:       var(--gold);
}

.amount-repay {
  font-size: 10px;
  color:     var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────── */
.footer-note { text-align: center; color: #444; font-size: 12px; margin-top: 8px; }

/* ── Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }
