@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Gilroy';
  src: url('https://db.onlinewebfonts.com/t/1dc8ecd8056a5ea7aa7de1db42f0b7a7.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

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

:root {
  --blue: #2563FF;
  --blue-light: #4C8BFF;
  --blue-dark: #1A3FCC;
  --black: #09090B;
  --dark: #111118;
  --dark2: #18181F;
  --border: rgba(255,255,255,0.08);
  --text: #F4F4F6;
  --muted: #8B8B9A;
  --danger: #FF4444;
  --success: #22C55E;
  --card-bg: rgba(255,255,255,0.035);
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Full-page background image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('background.png') center center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-support {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #4781eb;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.nav-support:hover { color: #6b9ef5; background: var(--card-bg); text-decoration: none; }

/* Headset icon next to Support / Contact Support links */
.wltq-support-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

a.contact-support-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
a.contact-support-link:hover,
a.contact-support-link:focus {
  text-decoration: none;
}
a.contact-support-link .wltq-support-mark {
  width: 18px;
  height: 18px;
}

/* MAIN CONTENT */
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

/* CARD */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 580px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* STEP INDICATOR */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.step.active { color: var(--blue-light); }
.step.done { color: var(--success); }
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step.active .step-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 10px;
  min-width: 24px;
}

/* LOGO IN CARD */
.card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.card-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.card-logo-text {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.3px;
}

/* HEADINGS */
h1.page-title {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2.section-title {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: #fff;
  margin-bottom: 12px;
}

/* NOTICE BOX */
.notice {
  background: rgba(37,99,255,0.08);
  border: 1px solid rgba(37,99,255,0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: #C0CFFF;
  line-height: 1.7;
  margin-bottom: 28px;
}
.notice p + p { margin-top: 10px; }

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* CHECKBOXES */
.checkbox-group { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 20px; height: 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.04);
}
.checkbox-item.checked .checkbox-box {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-box svg { display: none; }
.checkbox-item.checked .checkbox-box svg { display: block; }
.checkbox-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  user-select: none;
}
.checkbox-label a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
.optional-tag {
  display: inline-block;
  font-size: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,255,0.35);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--card-bg); border-color: rgba(255,255,255,0.15); }

/* SPINNER inside button */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-text { opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

/* INPUT */
.input-group { margin-bottom: 20px; }
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.input-wrap { position: relative; }
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-field::placeholder { color: rgba(255,255,255,0.2); }
.input-field:focus {
  border-color: rgba(37,99,255,0.5);
  box-shadow: 0 0 0 3px rgba(37,99,255,0.1);
}
.input-field.error { border-color: var(--danger); }
.input-field.success { border-color: var(--success); }
.input-field.mono { font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: 0.3px; }

.input-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.input-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}
.input-error.show { display: block; }

/* WALLET CARDS */
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.wallet-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
}
.wallet-card:hover {
  border-color: rgba(37,99,255,0.4);
  background: rgba(37,99,255,0.06);
  transform: translateY(-1px);
}
.wallet-card.connecting {
  border-color: rgba(37,99,255,0.5);
  background: rgba(37,99,255,0.08);
}
.wallet-card.connected {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.06);
}
.wallet-card.unavailable {
  border-color: rgba(255,68,68,0.3);
  background: rgba(255,68,68,0.04);
  opacity: 0.7;
}
.wallet-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.wallet-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.wallet-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.wallet-card.connected .wallet-status { color: var(--success); }
.wallet-card.unavailable .wallet-status { color: var(--danger); }
.wallet-badge {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: none;
}
.wallet-card.connected .wallet-badge { display: block; }

/* TERMS LINK */
.terms-link {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.terms-link a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
.terms-link a.contact-support-link,
.terms-link a.contact-support-link:hover,
.terms-link a.contact-support-link:focus {
  text-decoration: none;
}

/* SUCCESS / WARNING BOX */
.alert-box {
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-box.warning {
  background: rgba(255,165,0,0.08);
  border: 1px solid rgba(255,165,0,0.25);
  color: #FFD580;
}
.alert-box.success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #86EFAC;
}
.alert-box.info {
  background: rgba(37,99,255,0.08);
  border: 1px solid rgba(37,99,255,0.2);
  color: #93B4FF;
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--blue-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-supports {
  margin-bottom: 22px;
}
.footer-supports-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-wallet-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-wallet-card {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.footer-legal {
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  /* Let background image read through the top bar */
  nav {
    padding: 12px 16px;
    background: rgba(9, 9, 11, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Show more of background.png (less crop on short viewports) */
  body::before {
    background-position: center 20%;
    background-size: cover;
  }

  main {
    padding: 88px 10px 44px;
  }

  /* Smaller, lighter card so the page background stays visible */
  .card {
    max-width: min(360px, calc(100vw - 20px));
    margin-inline: auto;
    padding: 18px 14px;
    border-radius: 14px;
    background: rgba(9, 9, 11, 0.38);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  h1.page-title { font-size: 20px; margin-bottom: 0.35em; }
  .wallet-grid { grid-template-columns: 1fr; }
  .steps { display: none; }

  .input-group { margin-bottom: 16px; }
  .btn { padding: 12px 18px; }
}

@media (max-width: 380px) {
  .card {
    max-width: calc(100vw - 16px);
    padding: 16px 12px;
    border-radius: 12px;
  }
  main { padding-left: 8px; padding-right: 8px; }
}
