:root {
  color-scheme: light;
  --page-bg: linear-gradient(180deg, #fff7ef 0%, #fffdf9 100%);
  --panel-bg: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(32, 24, 18, 0.08);
  --text-primary: #2b211a;
  --text-secondary: #6a564b;
  --accent: #e86a33;
  --accent-soft: rgba(232, 106, 51, 0.14);
  --button-dark: #2b211a;
  --button-light: #fff7ef;
  --shadow: 0 24px 60px rgba(108, 75, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
}

#app {
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.panel {
  width: min(100%, 480px);
  padding: 28px 24px;
  border-radius: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.panel h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.message,
.helper-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.share-code-card {
  border-radius: 20px;
  padding: 18px 20px;
  background: #fff9f4;
  border: 1px solid rgba(232, 106, 51, 0.16);
  display: grid;
  gap: 6px;
}

.share-code-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.share-code-value {
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: 0.14em;
  font-weight: 700;
}

.status-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}

.status-active {
  background: rgba(52, 168, 83, 0.12);
  color: #2f7d44;
}

.status-expired {
  background: rgba(212, 103, 28, 0.12);
  color: #ab4f12;
}

.status-revoked,
.status-invalid {
  background: rgba(178, 55, 55, 0.12);
  color: #9e2e2e;
}

.status-loading {
  background: rgba(58, 102, 196, 0.12);
  color: #365cb0;
}

.cta-group {
  display: grid;
  gap: 12px;
}

.button {
  min-height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--button-dark);
}

.button-secondary {
  color: var(--button-dark);
  background: var(--button-light);
  border: 1px solid rgba(43, 33, 26, 0.1);
}

@media (max-width: 520px) {
  .shell {
    padding: 24px 16px;
  }

  .panel {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .share-code-value {
    letter-spacing: 0.1em;
  }
}
