:root {
  --bg: #fffef8;
  --bg-soft: #fff4bf;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(16, 16, 16, 0.12);
  --text: #111111;
  --muted: #555555;
  --accent: #f4c400;
  --accent-strong: #111111;
  --button: #111111;
  --button-text: #ffffff;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  font-family:
    "IBM Plex Sans",
    "Space Grotesk",
    "Inter",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(244, 196, 0, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(244, 196, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #fffef8 0%, #fff9de 100%);
  color: var(--text);
}

body {
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

a {
  color: #111111;
  text-decoration-color: rgba(244, 196, 0, 0.8);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.hero-card,
.panel,
.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 196, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.info-stack {
  display: grid;
  gap: 24px;
}

.panel,
.legal-card {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 28px;
  font-size: 1.1rem;
}

.hero-card h1 {
  max-width: 12ch;
}

.lede,
.muted {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, #f4c400 0%, #ffde59 100%);
  border-color: rgba(17, 17, 17, 0.14);
  color: #111111;
}

.legal-layout {
  display: grid;
  justify-items: center;
}

.legal-card {
  width: min(820px, 100%);
}

.legal-card ul {
  padding-left: 20px;
}

.callout {
  font-size: 1.1rem;
  font-weight: 700;
}

.store-badge-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #111111;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(17, 17, 17, 0.12);
}

.store-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-badge-icon svg {
  width: 100%;
  height: 100%;
}

.store-badge-copy {
  display: grid;
  line-height: 1;
  gap: 4px;
}

.store-badge-overline {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.store-badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-intro h1 {
  max-width: none;
}

.admin-login-card {
  width: min(560px, 100%);
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.admin-field input:focus {
  outline: 2px solid rgba(244, 196, 0, 0.45);
  outline-offset: 2px;
}

.admin-status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

.admin-status[data-state="error"] {
  color: #a94100;
}

.admin-console {
  display: grid;
  gap: 24px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

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

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

.admin-metric-card h3,
.admin-section-heading h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.admin-metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  padding-bottom: 10px;
}

.admin-metric-row dt {
  color: var(--muted);
}

.admin-metric-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-list-item span {
  color: var(--muted);
}

.admin-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-mini-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
}

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

  .hero-card {
    padding: 32px 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid,
  .admin-grid-secondary {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: stretch;
  }
}
