:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d7e1ea;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --green: #047857;
  --green-dark: #065f46;
  --sky: #0284c7;
  --amber: #b45309;
  --red: #dc2626;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfe 0%, #f3f6f9 48%, #f8fafc 100%);
  background-size: 26px 26px, 26px 26px, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

i[data-lucide] {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 225, 234, 0.88);
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(14px);
}

.app-main {
  min-height: calc(100vh - 132px);
}

.app-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark,
.tier-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7ead1;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--green);
}

.brand-mark {
  animation: softFloat 3.8s ease-in-out infinite;
}

.nav-link {
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: #475569;
}

.nav-link:hover,
.nav-link-active {
  background: #0f172a;
  color: white;
}

.hero-section {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(4, 120, 87, 0.04)),
    #ffffff;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(2.55rem, 5vw, 5.35rem);
  line-height: 1.02;
  font-weight: 900;
  color: var(--ink);
}

.hero-copy p {
  margin-top: 1.35rem;
  max-width: 620px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.85;
}

.eyebrow,
.heading-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  padding: 0.38rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.refresh-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #0f172a;
  color: white;
  padding: 0.52rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.refresh-button:hover {
  background: #1e293b;
}

.refresh-button.is-loading i {
  animation: spin 0.9s linear infinite;
}

.workspace-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #0b1220;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
  animation: panelFloat 5.5s ease-in-out infinite;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  background: #080d18;
  padding: 1rem 0;
}

.workspace-dot {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(187, 247, 208, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

.workspace-sidebar span {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.workspace-sidebar span.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.4);
}

.workspace-main {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.workspace-topbar,
.workspace-section,
.workspace-score-card,
.workspace-status-card,
.workspace-grid > div {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 850;
}

.workspace-topbar strong {
  border: 1px solid rgba(134, 239, 172, 0.34);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  padding: 0.22rem 0.55rem;
}

.workspace-hero-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1rem;
}

.workspace-score-card,
.workspace-status-card {
  min-height: 138px;
  padding: 1rem;
}

.workspace-score-card p,
.workspace-status-card p,
.workspace-section-head span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-score-card strong {
  display: block;
  color: #ffffff;
  font-size: 4.5rem;
  line-height: 0.95;
  font-weight: 900;
}

.workspace-score-card span,
.workspace-status-card span {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 750;
}

.mini-progress {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  margin: 1.5rem 0 1rem;
}

.mini-progress i {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #f59e0b);
  animation: progressBreath 2.2s ease-in-out infinite;
}

.workspace-section {
  padding: 1rem;
}

.workspace-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.workspace-section-head b {
  color: #7dd3fc;
  font-size: 0.78rem;
}

.workspace-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.7rem;
}

.workspace-row span,
.workspace-grid span,
.workspace-grid em {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

.workspace-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workspace-grid > div {
  display: grid;
  gap: 0.75rem;
  min-height: 112px;
  padding: 1rem;
}

.workspace-grid em {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
}

.workspace-grid span.short {
  width: 66%;
}

.product-visual {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
  overflow: hidden;
  animation: panelFloat 5.5s ease-in-out infinite;
}

.visual-toolbar {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.85rem;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.visual-toolbar span:first-child {
  background: #f59e0b;
}

.visual-toolbar span:nth-child(2) {
  background: #10b981;
}

.visual-toolbar span:nth-child(3) {
  background: #38bdf8;
}

.visual-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
}

.visual-score p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.visual-score strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 900;
}

.score-ring {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border: 12px solid #bbf7d0;
  border-right-color: #38bdf8;
  border-bottom-color: #fbbf24;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 900;
  animation: scorePulse 2.8s ease-in-out infinite;
}

.visual-grid {
  display: grid;
  gap: 0.85rem;
  padding: 0 1.35rem 1.35rem;
}

.visual-block {
  min-height: 94px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.9rem;
}

.visual-block.tall {
  min-height: 128px;
}

.visual-block span {
  display: block;
  margin-bottom: 0.75rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

.visual-block b,
.visual-block em {
  display: block;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #cbd5e1;
  overflow: hidden;
  position: relative;
}

.visual-block b::after,
.visual-block em::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}

.visual-block b:nth-child(2),
.visual-block em:nth-child(2) {
  width: 84%;
  background: #86efac;
}

.visual-block b:nth-child(3),
.visual-block em:nth-child(3) {
  width: 68%;
  background: #7dd3fc;
}

.visual-block b:nth-child(4) {
  width: 52%;
  background: #fde68a;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading p,
.page-heading p,
.status-kicker {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
}

.section-heading h2,
.page-heading h1 {
  margin-top: 0.3rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 900;
}

.console-banner,
.report-console,
.admin-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 15%, rgba(34, 197, 94, 0.26), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.25), transparent 30%),
    #0b1220;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  color: white;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.console-kicker,
.report-console-main span,
.admin-console span {
  display: inline-flex;
  color: #7dd3fc;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.console-banner h2,
.report-console h2,
.admin-console h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.1;
  font-weight: 900;
}

.console-banner p,
.report-console p,
.admin-console p {
  margin-top: 0.45rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 0.65rem;
  min-width: 360px;
}

.console-stats span,
.report-console-actions a,
.admin-console-link {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 0.78rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.console-stats strong {
  display: block;
  color: white;
  font-size: 1.15rem;
  font-weight: 950;
}

.report-console-actions {
  display: flex;
  gap: 0.65rem;
}

.report-console-actions a {
  display: inline-flex;
  min-width: 98px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.admin-console-link {
  max-width: 430px;
  word-break: break-all;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tier-card,
.side-panel,
.form-panel,
.status-panel,
.admin-metric,
.admin-form,
.report-preview,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.tier-card {
  min-height: 210px;
  padding: 1.2rem;
}

.tier-card-featured {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.9), rgba(255, 255, 255, 0.9));
}

.tier-card h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.tier-card p {
  margin-top: 0.7rem;
  color: #475569;
  line-height: 1.75;
}

.redeem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.form-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

label > span {
  color: var(--red);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.78rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.14);
}

input[type="file"] {
  background: #f8fafc;
}

.file-field {
  border: 1px dashed #7dd3fc;
  border-radius: 8px;
  background: #f0f9ff;
  padding: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.2);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.btn-primary.is-loading i {
  animation: spin 0.9s linear infinite;
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink);
}

.btn-secondary:hover {
  background: #f8fafc;
}

.btn-danger {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.btn-danger:hover {
  background: #ffe4e6;
}

.side-panel {
  padding: 1.15rem;
}

.side-panel-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.side-panel-header > i {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--sky);
  padding: 0.65rem;
}

.side-panel-header h2 {
  font-size: 1.1rem;
  font-weight: 900;
}

.side-panel-header p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.delivery-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.delivery-list div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #334155;
  font-weight: 750;
}

.delivery-list i {
  color: var(--green);
}

.alert-error,
.alert-success {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font-weight: 750;
}

.alert-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.alert-success {
  margin-bottom: 1rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-panel {
  padding: 1.25rem;
}

.status-console {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 28px;
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 15%, rgba(34, 197, 94, 0.24), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.22), transparent 30%),
    #0b1220;
  color: white;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.status-orbit {
  --progress: 28deg;
  display: grid;
  width: 154px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(#22c55e var(--progress), rgba(148, 163, 184, 0.22) 0),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.status-orbit-inner {
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: inherit;
  background: #0b1220;
}

.status-orbit-inner strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.status-orbit-inner span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-console-copy h2 {
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
  font-weight: 950;
}

.status-console-copy p {
  margin-top: 0.7rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.status-console-topline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 1.5s infinite;
}

.status-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.status-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.status-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-title {
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
}

.status-pulse {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.34);
  animation: pulse 1.5s infinite;
}

.status-pulse-done {
  background: var(--sky);
  animation: none;
}

.status-pulse-failed {
  background: var(--red);
  animation: none;
}

.progress-meter {
  margin-top: 1.15rem;
}

.progress-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 850;
}

.progress-meter-head strong {
  color: var(--green-dark);
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-fill {
  position: relative;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #047857, #0ea5e9, #f59e0b);
  transition: width 0.65s ease;
}

.progress-fill::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  animation: shimmer 1.6s linear infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 16px rgba(4, 120, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(4, 120, 87, 0);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes scorePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(4, 120, 87, 0);
  }
}

@keyframes progressBreath {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.45) brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  counter-reset: progressStep;
}

.progress-grid li {
  counter-increment: progressStep;
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.8rem;
  color: #334155;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.progress-grid li::before {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  content: counter(progressStep);
  font-size: 0.76rem;
  font-weight: 950;
}

.progress-grid i {
  color: var(--green);
}

.progress-grid li.is-active {
  border-color: #38bdf8;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
  transform: translateY(-2px);
}

.progress-grid li.is-active::before {
  background: #0284c7;
  color: white;
}

.progress-grid li.is-done {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  color: #166534;
}

.progress-grid li.is-done::before {
  background: #16a34a;
  color: white;
  content: "✓";
}

.progress-grid li.is-done i {
  color: #16a34a;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-pill,
.table-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-card {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.download-card:hover {
  border-color: #86efac;
  transform: translateY(-2px);
}

.download-card i {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--green);
  padding: 0.7rem;
}

.download-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.download-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 650;
}

.report-lock-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(240, 253, 244, 0.92));
  padding: 0.95rem 1rem;
  margin: 1rem 0;
}

.report-lock-banner i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0f172a;
  color: #bbf7d0;
  padding: 0.65rem;
}

.report-lock-banner strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.report-lock-banner span {
  display: block;
  margin-top: 0.18rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
}

.report-preview {
  padding: 1.35rem;
  line-height: 1.85;
  overflow-x: auto;
}

.report-preview h1 {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
}

.report-preview h2 {
  margin-top: 1.45rem;
  margin-bottom: 0.55rem;
  color: var(--green-dark);
  font-size: 1.16rem;
  font-weight: 900;
}

.report-preview h3 {
  margin-top: 1rem;
  font-weight: 900;
}

.report-preview ul,
.report-preview ol {
  padding-left: 1.25rem;
}

.report-preview ul {
  list-style: disc;
}

.report-preview ol {
  list-style: decimal;
}

.report-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0;
  font-size: 0.9rem;
}

.report-preview th,
.report-preview td {
  border: 1px solid var(--line);
  padding: 0.58rem;
  vertical-align: top;
}

.report-preview th {
  background: #f8fafc;
  color: #334155;
}

.admin-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.admin-metric {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.admin-metric p {
  color: var(--green);
  font-weight: 850;
}

.admin-metric strong {
  word-break: break-all;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr auto auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-weight: 750;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.check-row span {
  color: #334155;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.data-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 900;
}

.delivery-textarea {
  min-height: 154px;
  width: 100%;
  resize: vertical;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.58;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.empty-state > i {
  width: 56px;
  height: 56px;
  color: var(--sky);
}

.empty-state h1 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.empty-state p {
  margin-top: 0.6rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .redeem-layout,
  .admin-top-grid {
    grid-template-columns: 1fr;
  }

  .workspace-preview {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 460px;
  }

  .console-banner,
  .report-console,
  .admin-console,
  .status-console {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-console {
    display: flex;
  }

  .console-stats {
    min-width: 0;
    width: 100%;
  }

  .admin-console-link {
    max-width: none;
    width: 100%;
  }

  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-grid,
  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .download-grid,
  .tier-grid,
  .progress-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .visual-score strong {
    font-size: 3.4rem;
  }

  .score-ring {
    width: 92px;
  }

  .workspace-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .workspace-sidebar {
    display: none;
  }

  .workspace-hero-row,
  .workspace-grid,
  .console-stats {
    grid-template-columns: 1fr;
  }

  .workspace-score-card strong {
    font-size: 3.4rem;
  }

  .report-console-actions {
    width: 100%;
  }

  .status-orbit {
    width: 132px;
  }

  .status-orbit-inner {
    width: 100px;
  }

  .report-console-actions a {
    flex: 1;
  }

  .report-lock-banner {
    align-items: flex-start;
  }

  .nav-link {
    padding: 0.48rem 0.58rem;
  }
}
