:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #5b6678;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 25%),
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.82), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #f3f5f8 60%, #eef2f7 100%);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.7), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(191, 219, 254, 0.46), transparent 20%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #64748b;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.subhead {
  max-width: 720px;
  margin: 10px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  flex-shrink: 0;
}

.ghost-link,
.button-link,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

button,
.button-link,
.ghost-link {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
}

.secondary,
.ghost-link,
.button-link {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

.button-link {
  text-align: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: #475569;
  font-size: 13px;
}

.form,
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.redeem-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid var(--line);
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--line);
}

.tab {
  min-height: 38px;
  padding: 0 18px;
  background: transparent;
  color: #64748b;
}

.tab.active {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.hidden {
  display: none;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #475569;
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 0 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.message {
  min-height: 26px;
  margin-top: 12px;
  color: #334155;
  line-height: 1.6;
}

.hint {
  margin-top: 16px;
  line-height: 1.7;
  color: #64748b;
  font-size: 14px;
}

.kv-list {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 12px 14px;
  margin: 0;
}

.kv-list dt {
  color: #64748b;
}

.kv-list dd {
  margin: 0;
  word-break: break-all;
  color: var(--text);
}

.config-box {
  margin: 0;
  padding: 20px;
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--line);
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }
}
