/* GLOBAL RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #f5f5f5;
}

/* Center the app */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  position: relative;
}

/* 🌐 WEB3 BACKGROUNDS — FIXED & ALWAYS VISIBLE */

/* subtle grid layer */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -3;
  pointer-events: none;
}

/* top neon glow */
.bg-top {
  position: fixed;
  top: -10%;
  width: 100%;
  height: 50vh;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.55), rgba(0,0,0,0));
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

/* bottom neon glow */
.bg-bottom {
  position: fixed;
  bottom: -10%;
  width: 100%;
  height: 50vh;
  background: radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.55), rgba(0,0,0,0));
  filter: blur(110px);
  z-index: -2;
  pointer-events: none;
}

/* APPLICATION CONTAINER */
.app {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 10;                       /* 👈 форма теперь выше фонов */
}

/* HEADER */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.lang-label {
  opacity: 0.85;
}

#langSelect {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  padding: 5px 10px;
  font-size: 0.82rem;
  outline: none;
}

/* CARD */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(18px);
}

/* PROGRESS BAR */
#progressBar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  overflow: hidden;
}

#progressFill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #facc15, #f97316);
  transition: width 0.28s ease-out;
}

/* STEP CONTENT */
#stepContent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Titles */
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.step-subtitle {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.45;
}

/* OPTIONS STYLE */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, border-color 0.1s;
}

.btn-option span.emoji {
  font-size: 1.25rem;
}

.btn-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
}

.btn-option.selected {
  border-color: #22c55e;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.95));
}

/* PRIMARY BUTTON */
.btn-primary {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 13px 16px;
  font-size: 1.0rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #22c55e, #facc15, #f97316);
  color: #020617;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.45);
  margin-top: 6px;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* SECONDARY */
.btn-secondary {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 12px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: #e5e7eb;
  margin-top: 6px;
}

/* INPUT FIELDS */
.inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
}

.input-field::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

/* SUMMARY */
.summary-block {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* FOOTER */
.app-footer {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 6px;
}

/* MOBILE */
@media (max-width: 480px) {
  body {
    padding: 12px 6px;
  }
  .card {
    padding: 20px 16px 16px;
  }
  .logo {
    font-size: 1.05rem;
  }
}
