/* Molina Legacy — static HTML styles (mirrors React design tokens) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;

  /* Palette inspired by checkout / brand reference */
  --ink: #141414;
  --paper: #f5f2ea;
  --bg-soft: #f0f7f6;
  --muted: #707070;
  --line: #e3e0d8;
  --accent: #0b3b38;
  --forest: #0b3b38;
  --sage: #5f7a77;
  --gold: #a68a4f;
  --cream: #f5f2ea;
  --deep: #062624;
  --mint: #f0f7f6;
  --radius: 12px;
  --radius-sm: 10px;

  --main-header-height: calc(32px + 5rem);
  --admin-nav: #0b3b38;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}
img[loading="lazy"] {
  content-visibility: auto;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* —— Utilities —— */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: var(--forest);
  color: white;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius);
}
.btn-outline:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
  opacity: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  height: 3rem;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea {
  height: auto;
  min-height: 6rem;
  padding: 0.75rem 1rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
}

/* —— Top bar —— */
.topbar {
  height: 32px;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  user-select: none;
}
.topbar-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 5rem;
  white-space: nowrap;
  animation: topbar-scroll 36s linear infinite;
}
.topbar-track span {
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.85;
}
@keyframes topbar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Navbar —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.navbar {
  height: 5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s, border-color 0.5s;
}
.navbar.ghost {
  background: transparent;
  border-bottom-color: transparent;
}
.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .navbar-inner { padding: 0 2rem; }
}
.nav-links {
  display: none;
  flex: 1;
  align-items: center;
  gap: 2rem;
}
.nav-links.right { justify-content: flex-end; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }
.navbar.ghost .nav-links a,
.navbar.ghost .nav-icons button,
.navbar.ghost .nav-icons a {
  color: rgba(255, 255, 255, 0.9);
}
.navbar.ghost .nav-links a:hover,
.navbar.ghost .nav-icons button:hover {
  color: white;
  opacity: 1;
}
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-logo img {
  width: 120px;
  height: auto;
  transition: filter 0.5s;
}
.navbar.ghost .nav-logo img {
  filter: brightness(0) invert(1);
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-icons button,
.nav-icons a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.nav-hamburger { display: flex; }
.nav-mobile-icons { display: flex; }
.nav-desktop-icons { display: none; }
@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
  .nav-mobile-icons { display: none; }
  .nav-desktop-icons { display: flex; }
}

main.with-header {
  padding-top: var(--main-header-height);
}
main.home-main {
  padding-top: 0;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
}
.footer-brand img { width: 150px; }
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-grid {
  display: none;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-newsletter p {
  margin: 0 0 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-newsletter form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.footer-newsletter input {
  flex: 1;
  height: 2.75rem;
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
}
.footer-newsletter button {
  border: none;
  background: none;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.footer-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.footer-legal {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-legal p,
.footer-legal a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0;
}
.footer-legal a:hover { color: var(--ink); }
.footer-legal-links { display: flex; gap: 1.25rem; }

/* Subtle underline-on-hover (React link-underline) */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}
.link-underline:hover {
  background-size: 100% 1px;
}

/* —— Hero: exact viewport height, navbar overlays (no pull-up margin) —— */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--deep);
  margin: 0;
  padding: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.1)),
    linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  max-width: 48rem;
  padding: 0 1.5rem 3rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .hero-content { padding: 0 3.5rem 4rem; }
}
.hero-content .eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4em;
  font-weight: 300;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 100;
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: pre-line;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  background: var(--forest);
  color: white;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-radius: var(--radius);
  transition: opacity 0.2s, background 0.2s;
}
.hero-cta:hover { opacity: 0.92; }
.hero-cta-line {
  display: none;
}
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
}
.hero-progress > div {
  position: relative;
  height: 2px;
  flex: 1;
  background: rgba(255,255,255,0.15);
}
.hero-progress > div > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: white;
}
.hero-progress > div.active > span {
  width: 100%;
  transition: width 6s linear;
}

/* —— Profession strip (React ProfessionStrip) —— */
.profession-strip {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.profession-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.profession-strip-inner::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .profession-strip-inner {
    gap: 2.5rem;
    padding: 0.5rem 2rem;
  }
}
.profession-item {
  position: relative;
  flex-shrink: 0;
}
.profession-item > a {
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.profession-strip-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 0.5rem 0;
}

/* Dropdown menus */
.profession-dropdown {
  position: fixed;
  z-index: 200;
  transform: translateX(-50%);
  padding-top: 1px;
}
.submenu-panel {
  min-width: 11rem;
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.submenu-panel > ul {
  overflow: visible;
  padding: 0.375rem 0;
  margin: 0;
  list-style: none;
}
.submenu-panel li {
  position: relative;
  list-style: none;
}
.submenu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.submenu-panel a:hover,
.submenu-panel li:hover > a {
  background: var(--bg-soft);
  color: var(--ink);
}
.submenu-panel a.has-children {
  color: var(--ink);
}
.submenu-panel .chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}
.submenu-flyout {
  position: absolute;
  left: 100%;
  top: 0;
  padding-left: 0.25rem;
  z-index: 10;
  display: none;
}
.submenu-panel li:hover > .submenu-flyout {
  display: block;
}

/* —— Product grid —— */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2.5rem 0.75rem 1rem;
}
@media (min-width: 768px) {
  .section-header { padding: 2.5rem 1.5rem 1.25rem; }
}
.section-header h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}
.section-header a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section-header a:hover { color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0 0.75rem;
}
@media (min-width: 768px) {
  .product-grid { gap: 0.75rem; padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  display: block;
  group: true;
}
.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-soft);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-card-image img {
  transform: scale(1.03);
}
.product-card-meta {
  padding: 0.75rem 0.25rem 1rem;
}
.product-card-meta h3 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.product-card-meta p {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--muted);
}
.section-cta {
  text-align: center;
  padding: 1.5rem 0.75rem 2.5rem;
}

/* —— Page headers —— */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.page-header .breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.page-header .breadcrumb a:hover { color: var(--ink); }
.page-header h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
}
.page-header p {
  margin: 0.75rem 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 36rem;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.catalog-controls .field { min-width: 140px; }
.catalog-controls .field input,
.catalog-controls .field select { height: 2.5rem; }

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1.5rem 0;
}
@media (min-width: 768px) {
  .subcat-grid { grid-template-columns: repeat(4, 1fr); }
}
.subcat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background 0.2s;
}
.subcat-card:hover { background: var(--bg-soft); }

/* —— Auth cards —— */
.auth-page {
  display: flex;
  min-height: calc(100vh - var(--main-header-height));
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 4rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 8px 30px rgba(11, 59, 56, 0.06);
}
@media (min-width: 640px) {
  .auth-card { padding: 3rem 2.5rem; }
}
.auth-card header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.auth-card header h1 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 300;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-card .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  color: var(--muted);
}
.auth-card footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-card footer a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* —— Account —— */
.account-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
.account-shell > header h1 {
  font-size: 1.75rem;
  font-weight: 300;
}
.account-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.account-shell > header p {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--muted);
}
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.account-tabs a {
  padding: 0.875rem 1.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.account-tabs a.active,
.account-tabs a:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

/* —— Product detail —— */
.pdp {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.pdp-gallery-main {
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  overflow: hidden;
}
.pdp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pdp-thumbs button {
  width: 4.5rem;
  height: 5.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
}
.pdp-thumbs button.active { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .breadcrumb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pdp-info h1 {
  font-size: 1.75rem;
  font-weight: 300;
}
.pdp-price {
  margin: 1rem 0;
  font-size: 1.125rem;
}
.pdp-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.option-group { margin-top: 1.5rem; }
.option-group h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.option-chips button {
  min-width: 3rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  cursor: pointer;
}
.option-chips button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.qty-control button {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
}
.qty-control span {
  min-width: 2.25rem;
  width: 2.25rem;
  flex: 0 0 auto;
  text-align: center;
  font-size: 13px;
}
.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pdp-secondary {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.pdp-secondary button {
  background: none;
  border: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pdp-secondary button:hover { color: var(--ink); }

/* —— Checkout —— */
.checkout-layout {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
@media (min-width: 900px) {
  .checkout-layout { grid-template-columns: 1.4fr 1fr; }
}
.checkout-section {
  margin-bottom: 2rem;
}
.checkout-section h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.checkout-summary {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--mint);
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: calc(var(--main-header-height) + 1rem);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0.75rem;
  color: var(--muted);
}
.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: var(--bg-soft);
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info h3 { font-size: 13px; font-weight: 400; }
.cart-line-info p { margin: 0.25rem 0 0; font-size: 12px; color: var(--muted); }
.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.cart-line-remove {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-line-remove:hover { color: var(--ink); }

/* —— Order cards —— */
.order-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.order-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.badge.success { background: var(--mint); color: var(--forest); border-color: #c5ddd9; }
.badge.warn { background: #fdf3e2; color: #92400e; border-color: #f3dfb0; }
.badge.danger { background: #fbeceb; color: #9b2c2c; border-color: #f2cdca; }
.badge.info { background: #eef2fb; color: #33518f; border-color: #cdd9f2; }
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

/* —————————————————————————————————————————
   Admin — elegant back-office shell
————————————————————————————————————————— */
.admin-body {
  background: #f5f2ea;
  min-height: 100vh;
  font-feature-settings: "tnum";
}

/* Top bar */
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-nav-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-nav h1 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.admin-nav-sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.admin-nav-link:hover {
  background: var(--mint);
  border-color: #c5ddd9;
}
.admin-nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  align-items: stretch;
}
.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(185deg, #0d403d 0%, var(--deep) 100%);
  padding: 1.25rem 0.9rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}
@media (min-width: 1024px) {
  .admin-sidebar { display: flex; }
}
.admin-sidebar a,
.admin-sidebar .sidebar-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.admin-sidebar a svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.admin-sidebar a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.95);
}
.admin-sidebar a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.admin-sidebar a.active::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: #e7c98f;
}
.admin-sidebar .sidebar-label {
  margin-top: 1.1rem;
  margin-bottom: 0.15rem;
  padding: 0 0.75rem;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.32);
  cursor: default;
}
.admin-sidebar-footer {
  margin-top: auto;
  padding: 0.75rem;
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

/* Content area */
.admin-main {
  flex: 1;
  padding: 1.25rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .admin-main { padding: 2rem 2.25rem 3rem; }
}
.admin-main-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Page header */
.page-header-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.page-header-admin .eyebrow { margin-bottom: 0.4rem; }
.admin-page-title {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.admin-page-subtitle {
  margin: 0.4rem 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 40rem;
}
.page-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.stat-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
  overflow: hidden;
}
.stat-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--forest);
  margin-bottom: 0.9rem;
}
.stat-card p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: var(--font-heading);
}
.stat-card span.hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 11.5px;
  color: var(--sage);
}

/* Cards / sections */
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.admin-card-header h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th,
table.data td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  background: #faf8f2;
  white-space: nowrap;
}
table.data th:first-child { border-radius: 14px 0 0 0; }
table.data th:last-child { border-radius: 0 14px 0 0; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover { background: #fbfaf5; }
table.data tr:last-child td { border-bottom: none; }
table.data td strong {
  font-weight: 500;
  color: var(--ink);
}
table.data .cell-muted { color: var(--muted); font-size: 12px; }
table.data .cell-price { font-weight: 600; color: var(--ink); }

/* Row identity chip (avatar + name) */
.row-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.avatar-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.row-identity-text strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.row-identity-text span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Row action links */
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.row-actions a,
.row-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.row-actions a:hover {
  background: var(--mint);
  color: var(--forest);
}
.row-actions .danger:hover {
  background: #fbeceb;
  color: #9b2c2c;
}

/* Admin forms */
.admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* max-width: 720px; */
}
.admin-form h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 -0.35rem;
}
.admin-form .btn-primary {
  align-self: flex-start;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
}
.admin-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}
.admin-filter-field label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.admin-filter-field input,
.admin-filter-field select {
  height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  min-width: 180px;
}
.admin-filter-field input:focus,
.admin-filter-field select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 59, 56, 0.08);
}
.admin-filter-search {
  flex: 1 1 220px;
}
.admin-filter-search input {
  min-width: 220px;
  width: 100%;
}
.admin-filter-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  padding-bottom: 2px;
}
.field input.is-auto-slug,
.field input[readonly].is-auto-slug {
  background: #f5f2ea;
  color: var(--sage);
  cursor: default;
}

/* Empty state inside admin cards */
.admin-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-size: 13px;
}

/* —— Facture (paper document) —— */
.facture-body {
  background: #ebe6da;
  min-height: 100vh;
}
.facture-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.facture-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.facture-paper {
  background: #fff;
  color: var(--forest);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(20, 30, 20, 0.04),
    0 12px 40px rgba(20, 30, 20, 0.08);
  border: 1px solid rgba(11, 59, 56, 0.06);
}
@media (min-width: 768px) {
  .facture-page { padding: 2.5rem 1rem 4rem; }
  .facture-paper { padding: 3rem 3.25rem; }
}
.facture-paper-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(11, 59, 56, 0.1);
  margin-bottom: 2rem;
}
.facture-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.facture-paper-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0;
  color: var(--forest);
  text-align: right;
}
.facture-paper-header .meta {
  margin-top: 0.35rem;
  font-size: 13px;
  color: var(--sage);
  text-align: right;
}
.facture-paper-header .meta strong {
  display: block;
  color: var(--forest);
  font-weight: 600;
  font-size: 14px;
}
.facture-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .facture-meta { grid-template-columns: 1fr 1fr; }
}
.facture-meta h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.facture-meta p {
  margin: 0.15rem 0;
  font-size: 13.5px;
  line-height: 1.5;
}
table.facture-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0.5rem 0 1.5rem;
}
table.facture-items th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(11, 59, 56, 0.14);
}
table.facture-items td {
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(11, 59, 56, 0.07);
  vertical-align: top;
}
table.facture-items .num { text-align: center; }
table.facture-items .amt { text-align: right; white-space: nowrap; }
.facture-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 59, 56, 0.1);
}
.facture-totals .row {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 240px;
  font-size: 13px;
}
.facture-totals .row span:first-child { color: var(--sage); }
.facture-totals .grand {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 59, 56, 0.1);
  align-items: baseline;
}
.facture-totals .grand span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.facture-totals .grand span:last-child {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
}
@media print {
  .print-hide,
  .facture-toolbar { display: none !important; }
  .facture-body { background: white; }
  .facture-page { max-width: none; padding: 0; margin: 0; }
  .facture-paper {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}

/* Product image gallery (admin form) */
.product-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
}
.product-image-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3 / 4;
}
.product-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image-tile.is-principal {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(11, 59, 56, 0.2);
}
.product-image-tile .tile-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
}
.product-image-tile button.icon-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.25rem;
  min-height: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  line-height: 0;
}
.product-image-tile button.icon-btn svg {
  display: block;
}
.product-image-tile button.principal-btn.is-on {
  background: var(--forest);
  color: #fff;
}
.product-image-tile button.remove-btn:hover {
  background: #fbeceb;
  color: #9b2c2c;
}
.product-image-tile .principal-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  background: var(--forest);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.image-size-hint {
  margin: 0.35rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #faf8f2;
  font-size: 12.5px;
  color: var(--sage);
  line-height: 1.45;
}
.image-size-hint strong {
  color: var(--forest);
  font-weight: 600;
}

body.crop-open { overflow: hidden; }
.crop-modal[hidden] { display: none !important; }
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.crop-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 38, 36, 0.55);
}
.crop-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
}
.crop-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.crop-modal-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.crop-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.25rem;
}
.crop-stage-wrap {
  padding: 1rem;
  background: #111;
}
.crop-stage {
  position: relative;
  width: 100%;
  height: min(52vh, 420px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: #0a0a0a;
  border-radius: 8px;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.crop-frame {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  border-radius: 2px;
  pointer-events: none;
}
.crop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}
.crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  min-width: 160px;
}
.crop-zoom-label input {
  flex: 1;
  accent-color: var(--forest);
}
.crop-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-order-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .admin-order-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.product-options-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.product-options-header h3 {
  margin: 0;
}
.product-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-option-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f2;
}
@media (min-width: 700px) {
  .product-option-row {
    grid-template-columns: 1fr 1fr 7.5rem auto;
    align-items: center;
  }
}
.product-option-row input {
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}
.product-option-row input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(11, 59, 56, 0.08);
}
.product-option-row .option-remove {
  height: 2.4rem;
  padding: 0 0.85rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.product-option-row .option-remove:hover {
  background: #fbeceb;
  color: #9b2c2c;
}

/* —— Empty / 404 —— */
.empty-state,
.not-found {
  text-align: center;
  padding: 5rem 1rem;
}
.not-found h1 {
  font-size: 4rem;
  font-weight: 300;
}
.not-found p {
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.success-page {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.success-page h1 {
  margin: 0.75rem 0 1rem;
  font-size: 2rem;
  font-weight: 300;
}
.success-page .actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  cursor: pointer;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.radio-group label:has(input:checked) {
  border-color: var(--forest);
  background: var(--mint);
}
.radio-group input[type="radio"] {
  accent-color: var(--forest);
}

.form-grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
