:root {
  --bg: #0b0f1a;
  --card: #141a2b;
  --card-2: #1b2236;
  --accent: #7c5cff;
  --accent-2: #2dd4bf;
  --text: #e7ecf5;
  --muted: #8a93ab;
  --border: #26304a;
  --danger: #ff6b6b;
  --success: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1a2140 0%, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.5;
}

.hero {
  max-width: 760px;
  margin: 48px auto 24px;
  text-align: center;
  padding: 0 20px;
}
.hero__badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--accent-2);
  background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(45, 212, 191, .35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 40px;
  margin: 8px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); }
.hero__warning {
  margin-top: 20px;
  text-align: left;
  background: rgba(255, 107, 107, .08);
  border: 1px solid rgba(255, 107, 107, .3);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #ffd9d9;
}
.hero__warning strong { color: var(--danger); }

.steps {
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}
.card__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  font-weight: 800;
  color: rgba(124, 92, 255, .25);
}
.card h2 { margin: 0 0 6px; font-size: 20px; }
.card__hint { color: var(--muted); font-size: 13px; margin: 6px 0; }

.drop {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  transition: .15s;
}
.drop:hover, .drop--active {
  border-color: var(--accent);
  background: rgba(124, 92, 255, .08);
}
.drop__icon { font-size: 26px; color: var(--accent); }
.drop__lock { color: var(--accent-2); font-size: 12px; }
.drop small { font-size: 12px; }

.input {
  width: 100%;
  background: #0e1322;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 4px;
  resize: vertical;
}
.input:focus { outline: none; border-color: var(--accent); }

.field { display: block; margin: 12px 0; }
.field > span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}
.field > span em { font-style: normal; opacity: .7; }

.char-count { font-size: 12px; color: var(--muted); margin: 4px 0; }

.original-info { margin-top: 14px; }
.original-info span { font-size: 13px; color: var(--muted); }
.original-info .input { margin-top: 4px; background: #0e1322; }

.status-inline {
  font-size: 13px;
  margin: 8px 0;
  min-height: 1px;
  opacity: 0;
  transition: .15s;
}
.status-inline.show { opacity: 1; }
.status-inline.success { color: var(--success); }
.status-inline.error { color: var(--danger); }

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.field--check input { margin-top: 3px; }

.btn--ghost { background: transparent; border-style: dashed; }

.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.badge--pending { background: rgba(255, 196, 0, .12); color: #ffce4d; border: 1px solid rgba(255, 196, 0, .35); }
.badge--paid { background: rgba(52, 211, 153, .14); color: var(--success); border: 1px solid rgba(52, 211, 153, .4); }

.pay-id {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.qr-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--success);
  color: #042;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.btn {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: #0e1322;
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.btn:hover { border-color: var(--accent); }
.btn--primary {
  background: linear-gradient(90deg, var(--accent), #5b7cff);
  border: none;
  color: #fff;
}
.actions { display: flex; gap: 10px; margin-top: 10px; }

.preview {
  background: #0e1322;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  text-align: center;
}
.preview--empty .qr { display: none; }
.qr-img { max-width: 200px; height: auto; background: #fff; padding: 8px; border-radius: 8px; }
.preview__empty-msg { color: var(--muted); font-size: 13px; }
.preview:not(.preview--empty) .preview__empty-msg { display: none; }

.info {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.info li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 4px 0; }
.info b { color: var(--accent-2); }

.status {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  opacity: 0;
  transition: .2s;
  pointer-events: none;
}
.status:not(:empty) { opacity: 1; }
.status--error { border-color: var(--danger); color: #ffd9d9; }
.status--success { border-color: var(--success); color: #d6ffe9; }
