:root {
  --bg: #07131a;
  --panel: #0f222c;
  --panel-soft: #14323f;
  --text: #ebf3f1;
  --muted: #a8c1c6;
  --line: rgba(235, 243, 241, 0.12);
  --accent: #e0a92e;
  --accent-strong: #f2c14d;
  --surface: #f5f3ee;
  --surface-text: #14242b;
  --success: #6ec28a;
  --danger: #ff8b73;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(224, 169, 46, 0.32);
  outline-offset: 2px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 19, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.section-inner,
.footer-inner,
.page-hero-inner,
.product-detail-inner,
.admin-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--accent-strong);
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  font-weight: 700;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button {
  background: var(--accent);
  color: #1f1810;
}

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

.button-secondary {
  background: transparent;
  border-color: rgba(224, 169, 46, 0.5);
  color: var(--text);
}

.button-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.section-inner > .button,
.section-inner > .button-secondary,
.section-inner > .button-ghost {
  margin-top: 0.5rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.26), rgba(7, 19, 26, 0.94)),
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.84rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.97;
}

.hero p,
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.section {
  padding: 5.25rem 0;
}

.section.light {
  background: var(--surface);
  color: var(--surface-text);
}

.section.light .section-copy p,
.section.light .metric p,
.section.light .card p,
.section.light .product-card p,
.section.light .contact-panel p,
.section.light .detail-copy p {
  color: rgba(20, 36, 43, 0.75);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.section-head h2,
.section-copy h2,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
}

.section-head p,
.section-copy p,
.metric p,
.card p,
.product-card p,
.contact-panel p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-2,
.metric-grid,
.product-grid,
.admin-grid,
.contact-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

.card,
.metric,
.product-card,
.contact-panel,
.admin-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 34, 44, 0.88);
  padding: 1.25rem;
  min-width: 0;
}

.light .card,
.light .metric,
.light .product-card,
.light .contact-panel,
.light .admin-panel,
.light .detail-panel {
  background: #ffffff;
  border-color: rgba(20, 36, 43, 0.1);
}

.card h3,
.metric h3,
.product-card h3,
.contact-panel h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.3rem;
  overflow-wrap: anywhere;
}

.metric strong {
  display: block;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  line-height: 0.95;
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card {
  display: grid;
  gap: 1rem;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #10232b;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-category {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.44), rgba(7, 19, 26, 0.94)),
    url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.product-detail {
  padding: 4rem 0 5rem;
}

.product-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1.2rem;
}

.detail-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f222c;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin-bottom: 0.4rem;
}

.detail-back-link {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.detail-back-link a {
  color: var(--muted);
}

.detail-back-link a:hover {
  color: var(--text);
}

.detail-copy .product-category {
  display: inline-block;
  margin-bottom: 0.7rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.spec-list strong {
  color: var(--accent-strong);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.detail-empty {
  grid-column: 1 / -1;
  max-width: 720px;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

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

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(7, 19, 26, 0.42);
  color: inherit;
  padding: 0.85rem 0.9rem;
  min-height: 48px;
}

.light input,
.light textarea,
.light select,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  background: #f7faf9;
  color: #14242b;
  border-color: rgba(20, 36, 43, 0.14);
}

textarea {
  min-height: 154px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.admin-page {
  background:
    radial-gradient(circle at top left, rgba(224, 169, 46, 0.14), transparent 28%),
    linear-gradient(180deg, #eef3f1 0%, #e7edeb 100%);
  color: #14242b;
}

.admin-shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.admin-masthead {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #122129 0%, #183440 100%);
  color: #f2f7f5;
  box-shadow: 0 18px 48px rgba(11, 25, 31, 0.14);
}

.admin-masthead h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-masthead p {
  margin: 0.5rem 0 0;
  max-width: 56ch;
  color: rgba(242, 247, 245, 0.76);
}

.admin-masthead .section-kicker {
  color: #f2c14d;
}

.admin-masthead-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeae5;
  font-weight: 700;
}

.admin-status-pill.is-success {
  background: rgba(110, 194, 138, 0.16);
  border-color: rgba(110, 194, 138, 0.28);
  color: #d9f7e2;
}

.admin-status-pill.is-error {
  background: rgba(255, 139, 115, 0.16);
  border-color: rgba(255, 139, 115, 0.28);
  color: #ffe0d8;
}

.admin-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.admin-sidebar-panel,
.admin-surface {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 36, 43, 0.08);
  box-shadow: 0 10px 30px rgba(16, 28, 33, 0.06);
}

.admin-sidebar-panel {
  padding: 1rem;
}

.admin-sidebar-brand strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.2rem;
}

.admin-sidebar-brand p,
.admin-token-panel p {
  margin: 0.55rem 0 0;
  color: rgba(20, 36, 43, 0.72);
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.admin-sidebar-nav a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 7px;
  color: #183440;
  font-weight: 700;
  background: #f7faf9;
  border: 1px solid rgba(20, 36, 43, 0.08);
}

.admin-sidebar-nav a:hover {
  background: #eef5f2;
}

.admin-sidebar-stats {
  display: grid;
  gap: 0.85rem;
}

.admin-sidebar-stats article {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(20, 36, 43, 0.08);
}

.admin-sidebar-stats article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-sidebar-stats strong {
  display: block;
  margin-top: 0.25rem;
}

.admin-main {
  display: grid;
  gap: 1.25rem;
}

.admin-panel {
  background: #fff;
  border-color: rgba(20, 36, 43, 0.12);
  padding: 1.35rem;
}

.admin-surface {
  padding: 1.35rem;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.admin-panel h2,
.admin-panel h3 {
  margin-top: 0;
}

.admin-subhead {
  margin: 2rem 0 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: rgba(20, 36, 43, 0.68);
  letter-spacing: 0;
}

.admin-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border-radius: 7px;
  border: 1px solid rgba(20, 36, 43, 0.12);
  background: #f7faf9;
  color: #14242b;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.admin-chip small {
  color: rgba(20, 36, 43, 0.62);
}

.admin-chip.is-active {
  background: #14242b;
  color: #fff;
  border-color: #14242b;
}

.admin-chip.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-search {
  max-width: 460px;
}

.content-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(20, 36, 43, 0.1);
  border-radius: 8px;
  background: #fcfdfd;
}

.content-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.content-section-head h3 {
  margin: 0 0 0.2rem;
}

.content-section-head p {
  margin: 0;
  color: rgba(20, 36, 43, 0.7);
}

.content-section-head small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(20, 36, 43, 0.58);
}

.content-section-meta {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  color: rgba(20, 36, 43, 0.62);
  font-size: 0.92rem;
}

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

.content-section.is-collapsed .content-editor-grid {
  display: none;
}

.content-editor {
  display: grid;
  gap: 1rem;
}

.content-item,
.submission-item,
.product-row {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 36, 43, 0.1);
  background: #f8fbfa;
}

.content-item {
  gap: 0.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.content-item small,
.submission-item small,
.product-row small {
  display: block;
  color: rgba(20, 36, 43, 0.68);
  margin-bottom: 0.35rem;
}

.content-item-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #14242b;
}

.content-item-key {
  display: block;
  font-size: 0.82rem;
  color: rgba(20, 36, 43, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.admin-field-hint {
  display: block;
  color: rgba(20, 36, 43, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-card-admin {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 36, 43, 0.1);
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f6 100%);
}

.product-card-admin p,
.submission-item p {
  margin: 0;
}

.product-card-admin.is-editing {
  border-color: rgba(224, 169, 46, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(224, 169, 46, 0.35),
    0 8px 22px rgba(224, 169, 46, 0.12);
}

.product-card-admin-head,
.submission-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.product-card-admin-head h3 {
  margin: 0.2rem 0 0;
}

.product-card-admin-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(20, 36, 43, 0.68);
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.muted {
  color: rgba(20, 36, 43, 0.72);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(224, 169, 46, 0.18);
  color: #8f5a00;
  font-size: 0.84rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-inner,
  .section-head,
  .product-detail-inner,
  .admin-app,
  .contact-grid,
  .grid-2,
  .grid-3,
  .metric-grid,
  .product-grid,
  .content-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 5rem;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .footer-inner,
  .admin-masthead,
  .admin-panel-head,
  .product-card-admin-head,
  .submission-head,
  .product-row,
  .product-meta,
  .field-grid,
  .admin-masthead-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 15;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(7, 19, 26, 0.98);
    box-shadow: var(--shadow);
    justify-content: flex-start;
    gap: 0.3rem;
    width: 100%;
  }

  .topbar-inner {
    align-items: flex-start;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    position: relative;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    overflow-wrap: anywhere;
  }

  .nav.is-open {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero h1,
  .page-hero h1,
  .section-head h2,
  .section-copy h2,
  .detail-copy h1,
  .admin-head h1 {
    word-break: break-word;
  }
}

/* Admin refresh */
.admin-page {
  --admin-bg: #eef3f1;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f6f9f8;
  --admin-line: #d8e3df;
  --admin-line-strong: #bfd0ca;
  --admin-text: #11252d;
  --admin-muted: #5d6f74;
  --admin-accent: #d9a328;
  --admin-accent-soft: rgba(217, 163, 40, 0.12);
  --admin-strong: #132f3a;
  --admin-shadow: 0 22px 50px rgba(13, 29, 35, 0.08);
  background:
    radial-gradient(circle at top left, rgba(217, 163, 40, 0.12), transparent 24%),
    linear-gradient(180deg, #f4f7f6 0%, #e9efed 100%);
  color: var(--admin-text);
}

.admin-shell {
  width: min(1460px, calc(100% - 2rem));
  padding: 1.25rem 0 3rem;
}

.admin-page a,
.admin-page button,
.admin-page input,
.admin-page select,
.admin-page textarea {
  font: inherit;
}

.admin-page .button,
.admin-page .button-ghost,
.admin-page .button-secondary {
  min-height: 46px;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-page .button {
  background: var(--admin-strong);
  border-color: var(--admin-strong);
  color: #fff;
  box-shadow: 0 14px 28px rgba(19, 47, 58, 0.18);
}

.admin-page .button:hover {
  background: #0d2731;
  border-color: #0d2731;
  transform: translateY(-1px);
}

.admin-page .button-ghost,
.admin-page .button-secondary {
  background: #fff;
  border-color: var(--admin-line);
  color: var(--admin-strong);
}

.admin-page .button-ghost:hover,
.admin-page .button-secondary:hover {
  background: #f4f8f7;
  border-color: var(--admin-line-strong);
  transform: translateY(-1px);
}

.admin-page button:focus-visible,
.admin-page a:focus-visible,
.admin-page input:focus-visible,
.admin-page select:focus-visible,
.admin-page textarea:focus-visible {
  outline: 3px solid rgba(217, 163, 40, 0.22);
  outline-offset: 2px;
}

.admin-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.6rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 44%),
    linear-gradient(140deg, #0f1f27 0%, #163541 100%);
  color: #f6fbf9;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 56px rgba(9, 21, 26, 0.18);
}

.admin-masthead-copy {
  display: grid;
  gap: 1.1rem;
}

.admin-masthead h1 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.04;
}

.admin-masthead p {
  margin: 0;
  max-width: 64ch;
  color: rgba(246, 251, 249, 0.8);
}

.admin-masthead .section-kicker {
  color: #f0c55a;
}

.admin-masthead-actions {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.8rem;
}

.admin-save-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e6f2ee;
  font-weight: 700;
  text-align: center;
}

.admin-save-indicator.is-dirty {
  background: rgba(217, 163, 40, 0.18);
  border-color: rgba(217, 163, 40, 0.34);
  color: #ffe7a8;
}

.admin-save-indicator.is-saving {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fcfb;
}

.admin-save-indicator.is-saved {
  background: rgba(91, 180, 123, 0.16);
  border-color: rgba(91, 180, 123, 0.24);
  color: #dcf7e4;
}

.admin-masthead-actions .button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6fbf9;
}

.admin-masthead-actions .button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-status-pill {
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6f2ee;
  font-weight: 700;
}

.admin-status-pill.is-success {
  background: rgba(91, 180, 123, 0.16);
  border-color: rgba(91, 180, 123, 0.24);
  color: #dcf7e4;
}

.admin-status-pill.is-error {
  background: rgba(239, 119, 86, 0.16);
  border-color: rgba(239, 119, 86, 0.28);
  color: #ffe1d8;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-overview-card {
  display: grid;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-overview-card small {
  color: rgba(246, 251, 249, 0.66);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.admin-overview-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.admin-overview-card span {
  color: rgba(246, 251, 249, 0.72);
  font-size: 0.93rem;
}

.admin-app {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.25rem;
}

.admin-sidebar {
  gap: 1rem;
}

.admin-sidebar-panel,
.admin-surface {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 37, 45, 0.08);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(10px);
}

.admin-sidebar-panel {
  padding: 1.1rem;
}

.admin-sidebar-title {
  color: var(--admin-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-sidebar-brand strong {
  margin-top: 0.4rem;
  font-size: 1.28rem;
}

.admin-sidebar-brand p,
.admin-token-panel p,
.admin-sidebar-stats p {
  margin: 0.55rem 0 0;
  color: var(--admin-muted);
}

.admin-sidebar-nav {
  gap: 0.7rem;
}

.admin-sidebar-nav a {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 0.95rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfd 0%, #f3f7f5 100%);
  border: 1px solid var(--admin-line);
  color: var(--admin-strong);
  text-decoration: none;
}

.admin-sidebar-nav a span {
  font-weight: 800;
}

.admin-sidebar-nav a small {
  color: var(--admin-muted);
}

.admin-sidebar-nav a:hover {
  border-color: var(--admin-line-strong);
  background: #f8fbfa;
}

.admin-sidebar-nav a.is-active {
  background: linear-gradient(180deg, rgba(217, 163, 40, 0.14) 0%, rgba(217, 163, 40, 0.06) 100%);
  border-color: rgba(217, 163, 40, 0.42);
  box-shadow: inset 0 0 0 1px rgba(217, 163, 40, 0.14);
}

.admin-sidebar-stats article {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(17, 37, 45, 0.08);
}

.admin-sidebar-stats strong {
  margin-top: 0.35rem;
  font-size: 1rem;
}

.admin-token-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.admin-main {
  gap: 1.25rem;
}

.admin-surface,
.admin-panel {
  padding: 1.35rem;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.admin-section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.6rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--admin-accent-soft);
  color: #8b6200;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-panel h2,
.admin-panel h3 {
  margin-top: 0;
}

.admin-toolbar {
  gap: 1rem;
}

.admin-chip-row {
  gap: 0.65rem;
}

.admin-chip {
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-strong);
  box-shadow: none;
}

.admin-chip.is-active {
  background: var(--admin-strong);
  border-color: var(--admin-strong);
  color: #fff;
}

.admin-search {
  max-width: 480px;
}

.admin-search span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-page label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-page input:not([type="checkbox"]):not([type="file"]),
.admin-page select,
.admin-page textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-text);
  resize: vertical;
}

.admin-page textarea {
  min-height: 132px;
}

.admin-page input::placeholder,
.admin-page textarea::placeholder {
  color: #76898e;
}

.content-editor {
  gap: 1rem;
}

.content-section {
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.content-section-head {
  padding: 0;
}

.content-section-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.content-section-head p,
.content-section-head small,
.content-section-meta {
  color: var(--admin-muted);
}

.content-section-meta {
  font-weight: 700;
}

.content-editor-grid {
  gap: 1rem;
}

.content-item,
.submission-item,
.product-row,
.product-card-admin {
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.admin-empty-state {
  display: grid;
  gap: 0.4rem;
  padding: 1.05rem;
  border-radius: 8px;
  border: 1px dashed var(--admin-line-strong);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9f8 100%);
}

.admin-empty-state strong {
  font-size: 1rem;
  color: var(--admin-strong);
}

.admin-empty-state p {
  margin: 0;
  color: var(--admin-muted);
}

.content-item {
  padding: 1rem;
  box-shadow: none;
}

.content-item-label {
  line-height: 1.2;
}

.content-item-key {
  color: #7e9095;
}

.admin-field-hint,
.muted,
.product-card-admin-meta,
.submission-item small,
.product-row small {
  color: var(--admin-muted);
}

.admin-form-grid {
  display: grid;
  gap: 1rem;
}

.admin-form-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.admin-form-card-head {
  display: grid;
  gap: 0.3rem;
}

.admin-form-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-form-card-head p {
  margin: 0;
  color: var(--admin-muted);
}

.field-grid {
  gap: 1rem;
}

.field-grid-compact {
  align-items: end;
}

.admin-checkbox-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  background: #fff;
}

.admin-checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-routing-form {
  margin-bottom: 1rem;
}

.product-card-admin {
  gap: 0.8rem;
  padding: 1rem;
}

.product-card-admin.is-editing {
  border-color: rgba(217, 163, 40, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(217, 163, 40, 0.32),
    0 16px 30px rgba(217, 163, 40, 0.12);
}

.product-card-admin-head h3,
.submission-head strong {
  overflow-wrap: anywhere;
}

.product-card-admin-meta {
  gap: 0.85rem;
}

.admin-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #f2f7f5;
  border: 1px solid var(--admin-line);
  color: var(--admin-strong);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.row-actions {
  gap: 0.65rem;
}

.submission-item,
.product-row {
  padding: 1rem;
}

.submission-item {
  display: grid;
  gap: 0.8rem;
}

.submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.submission-message {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--admin-line);
  color: var(--admin-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pill {
  background: rgba(217, 163, 40, 0.18);
  color: #875d00;
}

@media (max-width: 1220px) {
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .admin-masthead-actions {
    justify-items: start;
  }

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

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    width: min(100%, calc(100% - 1rem));
    padding-top: 0.5rem;
  }

  .admin-masthead {
    padding: 1.15rem;
  }

  .admin-masthead h1 {
    font-size: 2rem;
  }

  .admin-overview-grid,
  .content-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-submit-row,
  .row-actions {
    align-items: stretch;
  }

  .admin-page .button,
  .admin-page .button-ghost,
  .admin-page .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .detail-actions .button,
  .detail-actions .button-ghost,
  .hero-actions .button,
  .hero-actions .button-secondary,
  .hero-actions .button-ghost {
    width: 100%;
  }
}

/* Standardized typography and public layout */
:root {
  --font-body: 1rem;
  --font-small: 0.92rem;
  --font-label: 1rem;
  --font-nav: 0.98rem;
  --font-card-title: clamp(1.35rem, 1.18rem + 0.45vw, 1.6rem);
  --font-section-title: clamp(2.1rem, 1.75rem + 1vw, 3.1rem);
  --font-page-title: clamp(2.7rem, 2.15rem + 1.8vw, 4.2rem);
  --font-hero-copy: 1.08rem;
  --font-metric-value: clamp(1.6rem, 1.35rem + 0.7vw, 2.1rem);
  --line-body: 1.65;
  --line-heading: 1.08;
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.8rem;
  --space-4: 1rem;
  --space-5: 1.35rem;
  --space-6: 1.9rem;
}

body,
input,
textarea,
select,
button {
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.nav a,
.button,
.button-secondary,
.button-ghost {
  font-size: var(--font-nav);
  line-height: 1.2;
}

.eyebrow,
.section-kicker,
.content-item-key,
.admin-section-badge,
.pill,
.product-card-admin-meta,
.content-section-head small,
.admin-subhead,
.admin-meta-pill {
  font-size: 0.82rem;
  line-height: 1.35;
}

.eyebrow,
.section-kicker,
.admin-section-badge {
  display: block;
  margin-bottom: var(--space-2);
}

.hero h1,
.page-hero h1,
.section-head h2,
.section-copy h2,
.detail-copy h1,
.admin-masthead h1,
.admin-panel h2 {
  line-height: var(--line-heading);
  letter-spacing: -0.02em;
}

.hero h1,
.page-hero h1,
.section-head h2,
.section-copy h2,
.detail-copy h1,
.admin-masthead h1,
.admin-panel h2,
.card h3,
.metric h3,
.product-card h3,
.contact-panel h3,
.product-card-admin-head h3,
.content-section-head h3,
.admin-form-card-head h3,
.admin-panel h3 {
  margin: 0;
}

.hero h1,
.page-hero h1 {
  font-size: var(--font-page-title);
}

.section-head h2,
.section-copy h2,
.detail-copy h1,
.admin-panel h2 {
  font-size: var(--font-section-title);
}

.hero p,
.page-hero p,
.section-head p,
.section-copy p,
.metric p,
.card p,
.product-card p,
.contact-panel p,
.detail-copy p,
.muted,
.content-section-head p,
.admin-sidebar-brand p,
.admin-token-panel p,
.product-card-admin p,
.submission-item p,
.submission-message {
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.hero p,
.page-hero p {
  font-size: var(--font-hero-copy);
}

.hero-copy > p,
.page-hero-inner > p,
.section-head > p,
.section-copy > p,
.contact-panel > p,
.admin-form-card-head p {
  margin-top: var(--space-3);
}

.card h3,
.metric h3,
.product-card h3,
.contact-panel h3,
.product-card-admin-head h3,
.content-section-head h3,
.admin-form-card-head h3,
.admin-panel h3 {
  font-size: var(--font-card-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.metric strong {
  font-size: var(--font-metric-value);
  line-height: 1;
}

.metric strong,
.product-category,
.detail-back-link,
.content-item-key {
  margin-bottom: var(--space-2);
}

label,
.content-item-label {
  font-size: var(--font-label);
  line-height: 1.4;
}

input,
textarea,
select,
input::placeholder,
textarea::placeholder {
  font-size: var(--font-body);
}

.footer-inner,
.product-meta,
.product-card-admin-head,
.admin-panel-head {
  align-items: flex-start;
}

.section-head {
  row-gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-actions,
.detail-actions,
.row-actions,
.admin-submit-row {
  gap: var(--space-3);
}

.contact-form,
.field-grid,
.content-editor,
.admin-main {
  gap: 1rem;
}

.contact-panel,
.card,
.metric,
.product-card,
.detail-panel,
.admin-panel,
.content-item,
.product-card-admin,
.submission-item {
  min-width: 0;
}

.card,
.metric,
.product-card,
.contact-panel,
.detail-panel,
.admin-panel,
.product-card-admin {
  padding: var(--space-5);
}

.card h3,
.metric h3,
.product-card h3,
.contact-panel h3,
.product-card-admin-head h3,
.admin-form-card-head h3 {
  margin-bottom: var(--space-2);
}

.contact-panel > p:last-of-type,
.card p:last-child,
.metric p:last-child,
.product-card p:last-child,
.detail-copy p:last-child {
  margin-bottom: 0;
}

.content-section,
.content-item,
.submission-message {
  padding: var(--space-4);
}

.contact-grid,
.grid-2,
.grid-3,
.metric-grid,
.product-grid {
  gap: var(--space-4);
}

.empty-state {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 34, 44, 0.88);
}

.empty-state strong {
  font-size: var(--font-card-title);
  line-height: 1.2;
}

.empty-state p {
  margin: 0;
}

.section.light .empty-state,
.admin-page .empty-state {
  background: #ffffff;
  border-color: rgba(20, 36, 43, 0.1);
  color: inherit;
}

.contact-grid > :only-child {
  max-width: 760px;
}

label > input,
label > textarea,
label > select {
  margin-top: var(--space-1);
}

.form-status {
  margin-top: var(--space-1);
}

.detail-back-link,
.product-category,
.brand,
.nav a,
.admin-status-pill,
.form-status {
  line-height: 1.35;
}

@media (max-width: 720px) {
  :root {
    --font-page-title: clamp(2.2rem, 1.95rem + 1.3vw, 2.8rem);
    --font-section-title: clamp(1.8rem, 1.65rem + 0.9vw, 2.3rem);
    --font-card-title: 1.25rem;
    --space-5: 1.15rem;
    --space-6: 1.5rem;
  }
}
