@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg-a: #f5f7fb;
  --bg-b: #edf1f6;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #5f6d80;
  --accent: #2f56c2;
  --accent-2: #258dce;
  --danger: #b42318;
  --success: #05603a;
  --border: #d9e2ec;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #e6ecf5 0%, transparent 34%),
    radial-gradient(circle at 100% 0%, #e9eef7 0%, transparent 30%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(760px, 92vw);
  margin: 4.3rem auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 2vw, 2rem);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

h1 {
  font-family: "Nexa", "Poppins", sans-serif;
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
}

p { margin: 0.35rem 0 0; color: var(--muted); }

.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 0;
  padding: 0.64rem 0.96rem;
  font: 600 0.91rem "Poppins", sans-serif;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #5965dd);
}

.btn-light {
  background: #f4f7fc;
  color: #2f475f;
  border: 1px solid #d6e0ea;
}

label {
  display: block;
  margin: 0.76rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  padding: 0.7rem 0.8rem;
  font: 500 0.92rem "Poppins", sans-serif;
}

input:focus {
  outline: none;
  border-color: #9eb4cf;
  box-shadow: 0 0 0 3px rgba(81, 109, 137, 0.16);
}

.error,
.flag,
.token {
  border-radius: 12px;
  padding: 0.74rem 0.87rem;
  margin-top: 0.88rem;
  font-size: 0.9rem;
}

.error {
  color: var(--danger);
  background: #fff3f2;
  border: 1px solid #ffd6d3;
}

.flag {
  color: var(--success);
  background: #ebfdf3;
  border: 1px solid #b8f5d1;
  font-weight: 600;
}

.token {
  color: #304d6b;
  background: #f3f7fc;
  border: 1px solid #d8e2ed;
  font-family: "Space Mono", monospace;
  font-size: 0.84rem;
}

.stat-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.stat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  display: flex;
  justify-content: space-between;
}

.stat span:last-child {
  font-family: "Space Mono", monospace;
  color: #304d6b;
}

@media (max-width: 640px) {
  .shell { margin: 2rem auto; }
}
