:root {
  --bg: #0d1320;
  --panel: rgba(17, 26, 41, 0.88);
  --line: rgba(147, 173, 202, 0.16);
  --text: #edf4ff;
  --muted: #9fb4cd;
  --accent: #63e3b3;
  --accent-2: #ffbf69;
  --shadow: 0 24px 60px rgba(3, 9, 18, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 227, 179, 0.14), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255, 191, 105, 0.14), transparent 32%),
    linear-gradient(160deg, #0a101a 0%, var(--bg) 46%, #0b1220 100%);
}

/* ===== USER MODE ===== */

.user-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 24px 20px;
  text-align: center;
}

.user-brand {
  margin-bottom: 40px;
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.user-card {
  max-width: 400px;
  width: 100%;
}

.user-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

.user-message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-btn {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 18px 24px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.user-btn:active {
  transform: scale(0.97);
}

.user-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.user-btn[hidden] {
  display: none !important;
}

.user-btn-primary {
  background: linear-gradient(135deg, #63e3b3, #28b5a2);
  color: #08221f;
}

.user-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ===== END USER MODE ===== */

code {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  padding: 24px 0 32px;
}

.eyebrow,
.panel-label {
  display: inline-flex;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.panel h2,
.panel h3 {
  margin: 10px 0 12px;
  line-height: 1.05;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.hero-copy,
.panel-copy {
  max-width: 68ch;
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

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

.panel-primary {
  background: linear-gradient(180deg, rgba(22, 34, 54, 0.96), rgba(14, 21, 35, 0.96));
}

.panel-muted {
  margin-top: 24px;
  background: rgba(15, 22, 35, 0.88);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(99, 227, 179, 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.decision-code {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.cta-row,
.small-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.link {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button[hidden] {
  display: none !important;
}

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

.button-primary {
  background: linear-gradient(135deg, #63e3b3, #28b5a2);
  color: #08221f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.noscript {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 128, 0.28);
  background: rgba(255, 138, 128, 0.12);
  color: #ffe5e2;
}

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

  .panel-header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 100%);
    padding-top: 20px;
  }

  .panel {
    border-radius: 22px;
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}
