* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --primary: #d12125;
  --primary-dark: #a2141b;
  --secondary: #145a29;
  --text: #1f2629;
  --muted: #5b6268;
  --border: rgba(20, 90, 41, 0.12);
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: radial-gradient(circle at top, #f0fbf4 0%, #f7f7f2 50%, #eef2f4 100%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand__mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #fff 30%, #d12125 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 3px solid #145a29;
}

.brand__title {
  line-height: 1.2;
}

.brand__title h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 0.95;
  position: relative;
  padding-bottom: 0.24em;
}

.brand__title h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 8px;
  background: var(--primary);
  border-radius: 999px;
}

.brand__title p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 58px rgba(14, 24, 32, 0.08);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.section-title {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.form-group {
  margin: 20px 0 18px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  color: var(--text);
  background: #fbfcfd;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

button.secondary {
  background: #145a29;
}

.token-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.token-display {
  min-width: 180px;
  padding: 12px 14px;
  border: 1px dashed rgba(20, 90, 41, 0.35);
  border-radius: 14px;
  background: #f5faf5;
  color: var(--secondary);
  font-weight: 700;
}

.message {
  margin: 18px 0 0;
  font-weight: 600;
  color: var(--muted);
}

.message.is-error {
  color: #a2161a;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a4b00;
  background: #fff4db;
  border: 1px solid #f1c777;
}

.badge-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7a161a;
  background: #ffe7e9;
  border: 1px solid #f39aa0;
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9a4f16;
  background: #fff0e0;
  border: 1px solid #f3c1a0;
}

.shortlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.shortlist-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.shortlist-header p {
  margin: 0;
  color: var(--muted);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

thead th {
  text-align: left;
  padding: 16px 14px;
  background: #f7faf7;
  color: var(--secondary);
  letter-spacing: 0.04em;
}

tbody tr {
  border-bottom: 1px solid rgba(20, 90, 41, 0.08);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 14px 14px;
  color: var(--text);
}

.section-row td {
  background: #eef6ed;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .card {
    padding: 20px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .shortlist-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
