:root {
  --navy: #0d235b;
  --navy-2: #14307a;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6ebf3;
  --text: #0d235b;
  --muted: #6b7a99;
  --soft: #f0f3f8;
  --info: #e7f0fd;
  --green: #1f9d55;
  --green-bg: #e8f8ef;
  --red: #e53935;
  --shadow: 0 6px 18px rgba(13, 35, 91, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 14px 36px;
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 4px 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a3a8f, var(--navy));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 35, 91, 0.25);
}

.secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.panel { animation: fadeIn 0.28s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.title {
  margin: 4px 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lbl {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.inp {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  box-shadow: var(--shadow);
}

.inp:focus {
  border-color: #9bb3e8;
  box-shadow: 0 0 0 3px rgba(13, 35, 91, 0.12);
}

.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  box-shadow: 0 10px 22px rgba(13, 35, 91, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-done { margin-top: 4px; text-transform: uppercase; }
.btn-check { display: inline-flex; }

.back-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.timer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.timer-clock { color: var(--red); display: inline-flex; }
.timer-mid { flex: 1; text-align: center; }
.timer-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.timer-value {
  margin-top: 2px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.amount-block { text-align: center; margin-bottom: 16px; }
.amount-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 8px;
}
.amount-box {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(13, 35, 91, 0.28);
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.info-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-ico {
  color: var(--navy);
  display: inline-flex;
  opacity: 0.85;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-val {
  flex: 1;
  min-width: 0;
  background: var(--soft);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  line-height: 1.35;
  word-break: break-word;
}

.info-val.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.copy-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 35, 91, 0.25);
}

.copy-btn.copied { background: var(--green); }

.hint-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--info);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 16px;
  color: var(--navy);
}

.hint-i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hint-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.status {
  margin: 0 0 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.status.ok {
  background: var(--green-bg);
  color: #146c3b;
}

.status.err {
  background: #fdecec;
  color: #b42318;
}
