﻿:root {
  --bg: #050608;
  --card: #0f1218;
  --line: #262b34;
  --text: #e7ebf2;
  --muted: #9aa4b2;
  --accent: #e14b36;
  --accent-2: #ff9f43;
  --success: #38d26f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 15% 15%, rgba(225, 75, 54, 0.07), transparent 60%),
    radial-gradient(700px 400px at 85% 100%, rgba(255, 159, 67, 0.07), transparent 60%),
    var(--bg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
}

.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.brand span { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b0e13;
}
.lang {
  border: 0;
  color: var(--text);
  background: transparent;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lang.active {
  background: var(--accent);
  color: #101010;
}

.page {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 12px;
}

.card {
  width: min(620px, 92vw);
  background: linear-gradient(180deg, #11151d, #0d1117);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.screen { display: none; }
.screen.active { display: block; animation: fade .2s ease-out; }

h1, h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.2vw, 32px);
}
h2 { font-size: clamp(22px, 3.8vw, 29px); }
.muted {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 17px);
  line-height: 1.42;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  background: #090c11;
  color: var(--text);
  border: 1px solid #353c49;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 75, 54, 0.14);
}
textarea { resize: vertical; min-height: 132px; }

.token-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0d12;
}
.kv span { color: var(--muted); font-size: 13px; }
.kv strong { color: #ff6a54; font-size: 16px; letter-spacing: 0.2px; }

.steps {
  margin: 10px 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}
.steps li { margin: 8px 0; }

.btn-primary, .btn-secondary, .btn-ghost {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  margin-top: 10px;
  color: #191410;
  background: linear-gradient(180deg, #ef5d46, #d94935);
  box-shadow: 0 9px 18px rgba(217, 73, 53, 0.24);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  color: #171717;
  background: linear-gradient(180deg, #f4ac4d, #e48835);
  margin-left: 8px;
}

.btn-ghost {
  color: #d2d8e2;
  background: #121721;
  border: 1px solid #2d3644;
  padding: 8px 10px;
  font-size: 13px;
}
.btn-ghost:hover { background: #171d29; }

.feedback {
  min-height: 20px;
  margin-top: 8px;
  color: #ffb4a9;
  white-space: pre-line;
  font-size: 13px;
}
.feedback.ok { color: var(--success); }

.spinner-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.spinner {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 5px solid #222933;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(225, 75, 54, 0.22);
}

.info-box {
  margin-top: 13px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(225, 75, 54, 0.55);
  background: rgba(225, 75, 54, 0.08);
  font-size: 14px;
}
.info-box ul { margin: 7px 0 0; padding-left: 18px; }
.info-box li { margin: 4px 0; }

.success-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 42px;
  font-weight: 900;
  color: #0f2615;
  background: linear-gradient(180deg, #73e598, #38d26f);
  margin-bottom: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .topbar { padding: 12px; }
  .brand { font-size: 20px; }
  .card { padding: 14px; border-radius: 14px; }
  .btn-primary, .btn-secondary { font-size: 14px; }
}
