/* ─── Google Fonts ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─── Brand tokens ───────────────────────────────────────────────────────────── */
:root {
  --color-primary:        lab(53.9349% 64.7984 53.0177);
  --color-primary-dark:   lab(44.7247% 61.973 53.659);
  --color-primary-light:  lab(63.4549% 58.0486 44.0424);
  --color-dark:           lab(4.63555% -6.56293 -6.23735);
  --color-dark-2:         lab(8.65649% -10.3143 -7.37517);
  --color-surface:        lab(100% 0 0);
  --color-surface-2:      lab(96.5386% -.769168 -.740504);
  --color-text-base:      lab(4.63555% -6.56293 -6.23735);
  --color-text-muted:     lab(46.7009% -2.54178 -2.45482);
  --color-text-subtle:    lab(55.981% -2.54524 -2.45686);
  --color-amber:          lab(67.3872% 18.7132 63.1076);
  --color-amber-dark:     lab(55% 15 55);
  --color-border:         lab(89.5909% -1.28019 -1.2331);
  --color-border-strong:  lab(78% -1.1 -1.05);
  --color-on-dark:        lab(97.6986% -.769138 -.740528);
  --color-on-dark-muted:  lab(74% -1 -.95);
  --color-on-dark-subtle: lab(55% -1 -.95);
  --color-on-primary:     lab(100% 0 0);
  --color-label-accent:   lab(63.4549% 58.0486 44.0424);
  --color-surface-warm:   lab(98.5% .2 .3);
  --color-card-dark:      lab(11% -8 -6);
  --color-on-dark-faded:  lab(62% -1 -.95);
  --header-height:        5rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px lab(5% -6 -6 / 0.12), 0 1px 2px lab(5% -6 -6 / 0.07);
  --shadow-md:  0 4px 12px lab(5% -6 -6 / 0.10), 0 2px 4px lab(5% -6 -6 / 0.07);
  --shadow-lg:  0 10px 30px lab(5% -6 -6 / 0.13), 0 4px 8px lab(5% -6 -6 / 0.07);
  --shadow-xl:  0 20px 48px lab(5% -6 -6 / 0.15), 0 8px 16px lab(5% -6 -6 / 0.08);
  --shadow-primary: 0 4px 20px lab(53.9349% 64.7984 53.0177 / 0.38);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Easing */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   clamp(1.1rem, 5vw, 1.5rem);
  --text-xl:   clamp(1.25rem, 6vw, 2rem);
  --text-2xl:  clamp(1.5rem, 7vw, 2.75rem);
  --text-3xl:  clamp(2rem, 9vw, 4rem);
  --text-4xl:  clamp(2.5rem, 11vw, 5.5rem);

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-label:    0.06em;
  --tracking-wide:     0.10em;

  --font-display: 'DM Sans', 'Arial Narrow', sans-serif;
  --font-body:    'Poppins', Arial, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  background-color: var(--color-surface);
  color: var(--color-text-base);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-base);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
}
h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.05; }
h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-display); line-height: var(--leading-snug); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); font-weight: 600; }
p  { max-width: 68ch; line-height: var(--leading-relaxed); }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

.section-pad { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section-pad--lg { padding-block: clamp(3rem, 9vw, 6rem); }
.emp-panel .section-pad { padding-block: var(--space-6); }

/* ─── Section labels ─────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: oklch(from var(--color-primary) l c h / 0.1);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  color: var(--color-text-base);
  margin-bottom: var(--space-3);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.underline-bar {
  width: 3rem; height: 4px;
  background-color: var(--color-primary);
  border-radius: 50px;
  margin-block: var(--space-6);
}
.underline-bar--center { margin-inline: auto; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out),
              border-color 180ms var(--ease-out), transform 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
  min-height: 48px;
  background: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
  color: oklch(97% 0.005 25);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, oklch(38% 0.22 18) 100%);
  box-shadow: 0 6px 28px oklch(50% 0.26 18 / 0.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-primary); }
.btn-outline {
  background-color: transparent;
  color: oklch(97% 0.005 25);
  border-color: oklch(97% 0.005 25 / 0.6);
}
.btn-outline:hover {
  background-color: oklch(97% 0.005 25);
  color: var(--color-primary);
  border-color: oklch(97% 0.005 25);
}
.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: oklch(from var(--color-primary) l c h / 0.4);
}
.btn-ghost:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: oklch(97% 0.005 25);
  box-shadow: var(--shadow-primary);
}

/* ─── Grid helpers ───────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 767px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-dark);
  padding: 0.5rem clamp(var(--space-6), 4vw, var(--space-16));
}
@media (min-width: 1024px) { .topbar { display: flex; } }
.topbar a {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.8rem;
  color: oklch(78% 0.01 220); text-decoration: none;
  transition: color 150ms;
}
.topbar a:hover { color: white; }

.navbar {
  background-color: white;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 300ms, box-shadow 300ms;
}
.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 12px oklch(15% 0.02 250 / 0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(var(--space-6), 4vw, var(--space-16));
  transition: padding 300ms;
}
.navbar.scrolled .navbar-inner { padding-block: 0.875rem; }

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; opacity: 1; transition: opacity 150ms;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.75; }
.logo-bar {
  display: block; width: 6px; height: 1.75rem;
  background-color: var(--color-primary);
  border-radius: 1px; flex-shrink: 0;
}
.logo img { height: 2.25rem; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: var(--color-text-base); letter-spacing: -0.01em;
}
.logo-text span { color: var(--color-primary); }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  margin-inline: 2.5rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-subtle); text-decoration: none;
  transition: color 180ms; white-space: nowrap; letter-spacing: 0.01em;
  position: relative; padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); font-weight: 600; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: block; } }

/* Mobile hamburger */
.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-base);
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger svg { width: 22px; height: 22px; pointer-events: none; }

/* Mobile drawer */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; justify-content: flex-end;
}
.mobile-overlay.visible { display: flex; }
.mobile-backdrop {
  position: absolute; inset: 0;
  background-color: oklch(0% 0 0 / 0.55);
  opacity: 0; transition: opacity 350ms ease;
}
.mobile-overlay.open .mobile-backdrop { opacity: 1; }
.mobile-drawer {
  position: relative;
  width: min(85vw, 360px); height: 100%;
  background: white;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.32, 0, 0.15, 1);
  overflow-y: auto; overflow-x: hidden;
}
.mobile-overlay.open .mobile-drawer { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface-2); border: none; cursor: pointer;
  color: var(--color-text-base);
}
.drawer-nav { flex: 1; padding: 0.5rem 0; }
.drawer-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  color: var(--color-text-base); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 150ms, color 150ms;
}
.drawer-nav-link:hover, .drawer-nav-link.active {
  color: var(--color-primary); font-weight: 600;
  background: oklch(from var(--color-primary) l c h / 0.05);
}
.drawer-nav-link .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0; display: none;
}
.drawer-nav-link.active .dot { display: block; }
.drawer-cta { padding: 1.5rem; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.drawer-cta .btn { width: 100%; justify-content: center; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column;
  min-height: 100svh;
}
.hero-split { flex: 1; display: flex; min-height: 0; }

.hero-img-panel {
  display: none;
  flex: 0 0 50%;
  position: relative; overflow: hidden;
}
@media (min-width: 1024px) { .hero-img-panel { display: block; } }
.hero-img-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-img-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, oklch(17% 0.04 210 / 0.35) 0%, transparent 60%);
  z-index: 1;
}

.hero-text-panel {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  background-color: var(--color-dark);
  padding-top: clamp(6rem, 14vw, 14rem);
  padding-bottom: clamp(3rem, 10vw, 9rem);
  padding-inline: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg-mobile {
  display: block;
  position: absolute; inset: 0;
}
@media (min-width: 1024px) { .hero-bg-mobile { display: none; } }
.hero-bg-mobile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-bg-mobile::after {
  content: '';
  position: absolute; inset: 0;
  background: oklch(17% 0.04 210 / 0.92);
}

.hero-deco {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  border: 1px dashed oklch(100% 0 0 / 0.08);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--color-label-accent);
}
.hero-content { position: relative; z-index: 1; max-width: 520px; }
.hero-title { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--space-6); }
.hero-title-line { display: block; font-size: var(--text-3xl); }
.hero-title-line.accent { color: var(--color-primary); }
.hero-title-line.light  { color: var(--color-on-dark); }
.hero-body {
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 300;
  line-height: var(--leading-relaxed); color: var(--color-on-dark-muted);
  max-width: 52ch; margin-bottom: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(100% 0 0 / 0.15);
}
@media (max-width: 767px) { .hero-body { font-size: var(--text-sm); margin-bottom: var(--space-6); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Trust bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  background: linear-gradient(180deg, oklch(14% 0.04 210) 0%, var(--color-dark-2) 100%);
  padding-block: 1.125rem;
  border-top: 1px solid oklch(100% 0 0 / 0.06);
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-2) 0;
}
.trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--color-on-dark-muted);
  padding: var(--space-2) var(--space-6);
  transition: color 180ms;
}
.trust-item:not(:last-child) { border-right: 1px solid oklch(100% 0 0 / 0.1); }
.trust-item:hover { color: oklch(92% 0.005 220); }
.trust-item svg { color: var(--color-primary); flex-shrink: 0; width: 15px; height: 15px; }

/* ─── Process / How it works ─────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8) var(--space-6);
  position: relative;
}
.process-connector {
  display: none;
  position: absolute;
  height: 1px; top: 2.75rem; left: 0; right: 0;
  background: linear-gradient(to right, transparent 6%, var(--color-border) 15%, var(--color-border) 85%, transparent 94%);
  z-index: 1; pointer-events: none;
}
@media (min-width: 768px) { .process-connector { display: block; } }
.process-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 2;
  cursor: default;
}
.process-num {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-primary);
  margin-bottom: var(--space-4); position: relative; z-index: 2;
  transition: transform 200ms var(--ease-out), box-shadow 200ms;
}
.process-card:hover .process-num {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px oklch(50% 0.26 18 / 0.45);
}
.process-num span {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 800; color: white; line-height: 1; letter-spacing: -0.01em;
}
.process-body {
  width: 100%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out), border-color 220ms;
}
.process-card:hover .process-body {
  box-shadow: var(--shadow-lg);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
  transform: translateY(-4px);
}
.process-icon { color: var(--color-primary); margin-bottom: var(--space-3); }
.process-body h3 {
  font-family: var(--font-display); font-size: var(--text-md); font-weight: 700;
  letter-spacing: var(--tracking-heading); margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}
.process-body p {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400;
  line-height: var(--leading-relaxed); color: var(--color-text-muted);
  max-width: 28ch;
}

/* ─── Advantage cards ───────────────────────────────────────────────────────── */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.advantage-card {
  display: flex; align-items: flex-start; gap: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out), border-left-color 220ms;
}
.advantage-card:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-primary);
  transform: translateY(-3px);
}
.advantage-icon-wrap {
  flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  background: linear-gradient(135deg, oklch(from var(--color-primary) l c h / 0.12), oklch(from var(--color-primary) l c h / 0.06));
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
  display: flex; align-items: center; justify-content: center;
  margin: var(--space-6) 0 var(--space-6) var(--space-6);
  transition: background 220ms, transform 220ms var(--ease-out);
}
.advantage-card:hover .advantage-icon-wrap {
  background: linear-gradient(135deg, oklch(from var(--color-primary) l c h / 0.18), oklch(from var(--color-primary) l c h / 0.1));
  transform: scale(1.08);
}
.advantage-icon-wrap svg { color: var(--color-primary); }
.advantage-text { padding: var(--space-6) var(--space-6) var(--space-6) 0; flex: 1; }
.advantage-text h3 {
  font-family: var(--font-display); font-size: var(--text-md); font-weight: 700;
  margin-bottom: var(--space-2);
}
.advantage-text p {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-text-muted); line-height: var(--leading-relaxed);
}

/* ─── Use cases ─────────────────────────────────────────────────────────────── */
.use-cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6);
}
@media (max-width: 767px) { .use-cases-grid { grid-template-columns: 1fr; } }
.use-case-card {
  background: linear-gradient(145deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
  border: 1px solid oklch(100% 0 0 / 0.06);
  border-radius: var(--radius-lg); overflow: hidden;
  padding: var(--space-10) var(--space-8);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 220ms var(--ease-out), box-shadow 220ms, border-color 220ms;
}
.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}
.use-case-num {
  font-family: var(--font-display); font-size: 5rem; font-weight: 800;
  color: oklch(100% 0 0 / 0.04); line-height: 1;
  position: absolute; top: 0.5rem; right: 1.5rem;
  letter-spacing: -0.04em; pointer-events: none;
}
.use-case-icon { color: var(--color-primary); margin-bottom: var(--space-4); }
.use-case-card h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: var(--color-on-dark); margin-bottom: var(--space-3);
}
.use-case-card p {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 300;
  color: var(--color-on-dark-muted); line-height: var(--leading-relaxed);
}

/* ─── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative; overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  background-color: var(--color-primary);
}
.cta-banner-bg {
  position: absolute; inset: 0; z-index: 0;
}
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, oklch(17% 0.04 210 / 0.94) 0%, oklch(50% 0.26 18 / 0.86) 100%);
}
.cta-banner-content { position: relative; z-index: 1; text-align: center; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: var(--space-6);
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: oklch(92% 0.04 31);
}
.cta-eyebrow-line {
  display: inline-block; width: 2rem; height: 2px;
  background-color: oklch(92% 0.04 31); border-radius: 50px;
}
.cta-banner h2 {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800;
  letter-spacing: var(--tracking-display); line-height: var(--leading-tight);
  margin-bottom: var(--space-4); color: white;
}
.cta-banner p {
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 300;
  line-height: var(--leading-relaxed); color: oklch(92% 0.02 31);
  max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-10);
}
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-btn-white {
  background: white; color: var(--color-primary); border-color: white;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.2);
}
.cta-btn-white:hover {
  background: oklch(95% 0.01 25);
  border-color: oklch(95% 0.01 25);
  box-shadow: 0 6px 28px oklch(0% 0 0 / 0.25);
  transform: translateY(-2px);
}

/* ─── Contact ────────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: stretch; }
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: var(--space-1); }
.form-label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted);
}
.form-input {
  width: 100%; background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1rem; color: var(--color-text-base);
  font-family: var(--font-body); font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: border-color 180ms, box-shadow 180ms; outline: none;
}
.form-input::placeholder { color: var(--color-text-subtle); }
.form-input:hover { border-color: oklch(72% 0.01 220); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px oklch(from var(--color-primary) l c h / 0.12);
}
.form-input.error { border-color: oklch(55% 0.2 25); }
.form-input:focus.error { box-shadow: 0 0 0 4px oklch(35% 0.18 25 / 0.12); }
.form-error { font-size: var(--text-xs); color: oklch(48% 0.2 25); }
textarea.form-input { resize: vertical; min-height: 140px; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; box-shadow: var(--shadow-md); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }
.form-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-16) 0; text-align: center;
}
.form-success svg { color: var(--color-primary); margin-bottom: var(--space-4); }
.form-success h3 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  margin-bottom: var(--space-3);
}
.form-success p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 36ch; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; background-color: oklch(13% 0.04 210);
  color: oklch(70% 0.01 220); overflow: hidden;
}
.footer-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.08; }
.footer-body { position: relative; z-index: 1; padding-block: var(--space-20); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10) var(--space-12);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-heading {
  margin-bottom: var(--space-8);
}
.footer-col-heading h4 {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 700;
  color: white; margin-bottom: var(--space-3); letter-spacing: 0.01em;
}
.footer-col-heading-line { width: 2.5rem; height: 2px; background-color: var(--color-primary); }
.footer-tagline {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 300;
  line-height: var(--leading-relaxed); color: oklch(65% 0.01 220);
  margin-bottom: var(--space-8); max-width: 28ch;
}
.footer-logo { height: 2rem; width: auto; filter: invert(1); margin-bottom: var(--space-6); }
.footer-nav-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav-link {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400;
  color: oklch(72% 0.01 220); text-decoration: none;
  line-height: var(--leading-snug); min-height: 36px;
  transition: color 150ms;
}
.footer-nav-link:hover { color: white; }
.footer-nav-link .plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.25);
  font-size: 0.65rem; font-weight: 700; color: oklch(100% 0 0 / 0.5);
  flex-shrink: 0; line-height: 1;
}
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 1rem; padding-block: var(--space-3);
}
.footer-contact-icon {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background-color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.footer-contact-icon svg { color: white; }
.footer-contact-text {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: oklch(72% 0.01 220); line-height: var(--leading-relaxed);
  align-self: center;
}
.footer-bottom {
  position: relative; z-index: 1;
  border-top: 1px solid oklch(100% 0 0 / 0.07);
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding-block: var(--space-5); gap: var(--space-3);
  font-family: var(--font-body); font-size: var(--text-xs);
  color: oklch(45% 0.01 220);
}
.footer-meta { display: flex; gap: var(--space-6); }

/* ─── Page header / hero for inner pages ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, oklch(20% 0.05 210) 100%);
  padding-top: 8rem; padding-bottom: 4rem;
  padding-inline: clamp(2rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, oklch(50% 0.26 18 / 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, oklch(100% 0 0 / 0.08), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
@media (min-width: 1024px) { .page-hero { padding-top: 12.5rem; padding-bottom: 4.5rem; } }
.page-hero h1 { color: var(--color-on-dark); }
.page-hero h1 span { color: var(--color-primary); }
.page-hero p { color: var(--color-on-dark-muted); margin-top: var(--space-4); }

/* ─── Reservation wizard ────────────────────────────────────────────────────── */
.wizard-wrap {
  max-width: 860px; margin-inline: auto;
}
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--space-12);
}
.step-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  flex: 1; max-width: 160px;
}
.step-dot {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  color: var(--color-text-muted); background: white;
  transition: border-color 250ms, background 250ms, color 250ms;
  position: relative; z-index: 1;
}
.step-item.active .step-dot, .step-item.done .step-dot {
  border-color: var(--color-primary); background: var(--color-primary); color: white;
}
.step-label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500;
  color: var(--color-text-muted); text-align: center;
  transition: color 250ms;
}
.step-item.active .step-label, .step-item.done .step-label { color: var(--color-primary); font-weight: 600; }
.step-line {
  flex: 1; height: 2px; background: var(--color-border);
  margin-top: -1.4rem; transition: background 250ms;
}
.step-line.done { background: var(--color-primary); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step-title {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800;
  color: var(--color-text-base); margin-bottom: var(--space-2);
}
.wizard-step-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-8); }

.cage-tiles { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cage-tile {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 8px;
  border: 2px solid var(--color-border); background: white;
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800;
  color: var(--color-text-muted); cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.cage-tile:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cage-tile.selected { border-color: var(--color-primary); background: var(--color-primary); color: white; }

.wizard-actions { display: flex; gap: var(--space-4); margin-top: var(--space-8); justify-content: flex-end; }
@media (max-width: 639px) { .wizard-actions { flex-direction: column-reverse; } }

.summary-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.summary-table td { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.summary-table td:first-child { color: var(--color-text-muted); width: 40%; }
.summary-table td:last-child { font-weight: 600; }

/* ─── Configurator ─────────────────────────────────────────────────────────── */
.configurator-wrap {
  display: grid; grid-template-columns: 1fr 320px; gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .configurator-wrap { grid-template-columns: 1fr; } }

.cage-scene-scroll { padding-block: var(--space-2); }
.cage-scene {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--space-2);
  max-width: 500px;
  margin-inline: auto;
}
.cage-panel { flex: 0 0 140px; }

.cage-panel { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cage-panel-label {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted);
}
.cage-remaining {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500;
  color: var(--color-text-muted); text-align: center; line-height: 1.4;
}
.cage-remaining[data-state="full"]     { color: var(--color-text-subtle); }
.cage-remaining[data-state="overflow"] { color: var(--color-primary); font-weight: 700; }
.cage-remaining[data-state="free"]     { color: oklch(42% 0.12 155); }

.unplaced-warning {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: oklch(97% 0.06 60);
  border: 1px solid oklch(80% 0.14 60);
  border-radius: 6px;
  font-size: var(--text-sm);
  color: oklch(38% 0.14 45);
  line-height: 1.5;
}

/* The actual isometric cage */
.iso-scene {
  perspective: 600px;
  perspective-origin: 50% 30%;
}
.iso-world {
  transform: rotateX(35.264deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  position: relative;
  /* cage outer dimensions: 80×120×150cm → scale 1cm = 2px → 160×240×300px */
  width: 160px; height: 300px;
}

/* Each bar of the cage: absolutely positioned in 3D space */
.cage-bar {
  position: absolute;
  background-color: oklch(45% 0.01 220);
  border-radius: 1px;
}
/* Vertical bars */
.cage-bar-v {
  width: 3px; height: 300px;
  transform-style: preserve-3d;
}
/* Horizontal bars floor/ceiling */
.cage-bar-h-x {
  height: 3px;
  transform-style: preserve-3d;
}
.cage-bar-h-z {
  width: 3px;
  transform-style: preserve-3d;
}

/* Box inside cage */
.iso-box {
  position: absolute;
  transform-style: preserve-3d;
  transition: opacity 200ms, transform 200ms;
}
.iso-box-face {
  position: absolute;
  border: 1px solid oklch(0% 0 0 / 0.15);
}
.iso-box-face--top  { background-color: oklch(72% 0.14 75); }
.iso-box-face--front{ background-color: oklch(60% 0.12 75); }
.iso-box-face--right{ background-color: oklch(55% 0.10 75); }
.iso-box.overflow {
  opacity: 0.3;
  outline: 2px dashed var(--color-primary);
}

/* Controls panel */
.config-panel {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.config-panel-title {
  font-family: var(--font-display); font-size: var(--text-md); font-weight: 700;
  margin-bottom: var(--space-6);
}
.box-control {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.box-control:last-of-type { border-bottom: none; }
.box-control-info h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; margin-bottom: 2px; }
.box-control-info small { font-size: var(--text-xs); color: var(--color-text-muted); }
.box-stepper { display: flex; align-items: center; gap: var(--space-3); }
.box-stepper-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--color-border); background: white;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  color: var(--color-text-base);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.box-stepper-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.box-stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.box-count {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800;
  color: var(--color-text-base); min-width: 1.5rem; text-align: center;
}

.fill-bar-wrap { margin-top: var(--space-6); }
.fill-bar-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  margin-bottom: var(--space-2);
}
.fill-bar-track {
  height: 8px; background: var(--color-border); border-radius: 50px; overflow: hidden;
}
.fill-bar-fill {
  height: 100%; background: var(--color-primary); border-radius: 50px;
  transition: width 300ms ease-out, background 200ms;
  width: 0%;
}
.fill-bar-fill.overflow { background: #e53e3e; }
.fill-warning {
  display: none;
  margin-top: var(--space-4);
  background: oklch(72% 0.14 75 / 0.12);
  border: 1px solid var(--color-amber);
  border-radius: 6px; padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  color: oklch(40% 0.10 75); line-height: var(--leading-relaxed);
}
.fill-warning.visible { display: block; }

/* ─── Activity Log ──────────────────────────────────────────────────────────── */
.log-page { max-width: 760px; margin-inline: auto; }
.cage-tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.cage-tab {
  padding: 0.5rem 1.25rem; border-radius: 50px;
  border: 2px solid var(--color-border);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-text-muted); background: white; cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.cage-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cage-tab.active { border-color: var(--color-primary); background: var(--color-primary); color: white; }

.add-entry-form {
  background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-6); margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}
.add-entry-form h3 { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; margin-bottom: var(--space-4); }
.action-type-group { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.action-btn {
  padding: 0.5rem 1rem; border-radius: 50px; border: 2px solid var(--color-border);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; background: white; color: var(--color-text-muted);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.action-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.action-btn.selected { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.action-btn[data-action="incarcare"].selected   { border-color: oklch(55% 0.18 150); background: oklch(55% 0.18 150); }
.action-btn[data-action="modificare"].selected  { border-color: oklch(62% 0.21 31); background: oklch(62% 0.21 31); }
.action-btn[data-action="ridicare"].selected    { border-color: oklch(55% 0.20 250); background: oklch(55% 0.20 250); }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0.65rem; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline-entry { position: relative; margin-bottom: var(--space-6); }
.timeline-dot {
  position: absolute; left: -1.95rem; top: 0.3rem;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  border: 2px solid white; box-shadow: 0 0 0 2px var(--color-border);
}
.timeline-entry[data-action="incarcare"]  .timeline-dot { background: oklch(55% 0.18 150); box-shadow: 0 0 0 2px oklch(55% 0.18 150); }
.timeline-entry[data-action="modificare"] .timeline-dot { background: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); }
.timeline-entry[data-action="ridicare"]   .timeline-dot { background: oklch(55% 0.20 250); box-shadow: 0 0 0 2px oklch(55% 0.20 250); }
.timeline-card {
  background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 180ms var(--ease-out);
}
.timeline-entry:hover .timeline-card { box-shadow: var(--shadow-md); }
.timeline-meta {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2);
}
.action-badge {
  display: inline-block; padding: 0.2rem 0.75rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: white;
}
.action-badge.incarcare  { background: oklch(55% 0.18 150); }
.action-badge.modificare { background: var(--color-primary); }
.action-badge.ridicare   { background: oklch(55% 0.20 250); }
.timeline-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.timeline-note { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-base); line-height: var(--leading-relaxed); }
.timeline-delete {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); padding: 0.25rem;
  transition: color 150ms;
}
.timeline-delete:hover { color: #e53e3e; }
.timeline-empty {
  text-align: center; padding: var(--space-12) 0;
  color: var(--color-text-muted); font-style: italic;
}
.timeline-employee {
  font-size: var(--text-xs); color: oklch(42% 0.08 220);
  background: oklch(94% 0.02 220); border-radius: 50px;
  padding: 0.15rem 0.6rem;
}

/* ─── Status badges ──────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.status-upcoming { background: oklch(91% 0.06 230); color: oklch(38% 0.12 230); }
.status-active   { background: oklch(90% 0.10 150); color: oklch(34% 0.14 150); }
.status-past     { background: oklch(92% 0.01 220); color: oklch(48% 0.03 220); }

/* ─── Admin dashboard ────────────────────────────────────────────────────────── */
.admin-wrap { max-width: 860px; margin-inline: auto; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-5);
}
.admin-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.admin-filter-btn {
  padding: 0.45rem 1rem; border-radius: 50px; border: 1.5px solid var(--color-border);
  background: white; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; cursor: pointer; color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.admin-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.admin-filter-btn.active { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.admin-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 50px;
  font-size: 11px; font-weight: 700; padding: 0 4px;
  background: oklch(100% 0 0 / 0.25); color: inherit;
}
.admin-filter-btn:not(.active) .admin-filter-count { background: oklch(92% 0.01 220); color: var(--color-text-muted); }

.admin-res-card {
  background: white; border: 1px solid var(--color-border); border-radius: 8px;
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3);
  box-shadow: 0 1px 6px oklch(17% 0.04 210 / 0.05);
  transition: box-shadow 0.15s;
}
.admin-res-card:hover { box-shadow: 0 4px 16px oklch(17% 0.04 210 / 0.10); }
.admin-res-main { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.admin-res-info { display: flex; flex-direction: column; gap: 3px; }
.admin-res-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; flex-shrink: 0; }
.admin-profil-btn { font-size: var(--text-xs) !important; padding: var(--space-1) var(--space-3) !important; }

/* ─── Profile page ───────────────────────────────────────────────────────────── */
.page-hero--compact {
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-10);
}
.profile-hero-row,
.profil-hero-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
}
.profil-back-link {
  display: inline-block; margin-bottom: var(--space-4);
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; transition: color 0.15s;
}
.profil-back-link:hover { color: var(--color-primary); }
.profil-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.profil-config-col {
  background: white; border: 1px solid var(--color-border); border-radius: 10px;
  padding: var(--space-5); box-shadow: 0 2px 12px oklch(17% 0.04 210 / 0.06);
  position: sticky; top: calc(var(--header-height) + var(--space-6));
}
.profil-journal-col { min-width: 0; }
.profil-col-title { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; margin-bottom: var(--space-4); }
@media (max-width: 700px) {
  .profil-body { grid-template-columns: 1fr; }
  .profil-config-col { position: static; }
}

/* ─── Reservations panel ─────────────────────────────────────────────────────── */
.reservations-panel {
  background: white; border: 1px solid var(--color-border); border-radius: 10px;
  padding: var(--space-6); margin-bottom: var(--space-6);
  box-shadow: 0 2px 12px oklch(17% 0.04 210 / 0.06);
}
.reservations-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.reservations-header h3 {
  font-family: var(--font-display); font-size: var(--text-md);
  font-weight: 700; margin: 0;
}
.reservations-header .btn { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); }

.add-reservation-form {
  background: oklch(97.5% 0.005 220); border: 1px solid var(--color-border);
  border-radius: 8px; padding: var(--space-5); margin-bottom: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-4);
}

.reservation-list { display: flex; flex-direction: column; gap: var(--space-2); }

.reservation-card {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--color-border); border-radius: 8px;
  padding: var(--space-4) var(--space-5); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.reservation-card:hover { border-color: var(--color-primary); background: oklch(99% 0.01 45); }
.reservation-card.selected {
  border-color: var(--color-primary); background: oklch(98% 0.02 45);
  box-shadow: 0 0 0 3px oklch(70% 0.19 45 / 0.15);
}
.reservation-card-main {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
}
.reservation-card-info { display: flex; flex-direction: column; gap: 2px; }
.res-client-name { font-weight: 700; font-size: var(--text-sm); color: var(--color-text-heading); }
.res-meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.res-phone { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.res-delete-btn {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); padding: var(--space-1); border-radius: 4px;
  line-height: 1; transition: color 0.15s;
}
.res-delete-btn:hover { color: #e53e3e; }

/* Active reservation header (above cage tabs) */
.active-res-header {
  display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-4); padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.active-res-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-text-heading); }
.active-res-meta { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Entry count badge on cage tab */
.cage-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 50px;
  font-size: 10px; font-weight: 700; line-height: 1;
  background: oklch(90% 0.04 220); color: oklch(40% 0.06 220);
  margin-left: var(--space-2); padding: 0 4px;
}
.cage-tab.active .cage-tab-count {
  background: oklch(100% 0 0 / 0.25); color: white;
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-6  { margin-top: var(--space-6); }
.mx-auto { margin-inline: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.max-52ch { max-width: 52ch; }

/* ─── Step detail (cum-functioneaza) ────────────────────────────────────────── */
.step-detail-wrap {
  display: flex; flex-direction: column;
  gap: 0;
}
.step-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-2);
  align-items: start;
}
@media (max-width: 639px) {
  .step-detail { grid-template-columns: 60px 1fr; gap: var(--space-4); }
}
.step-detail-num-col {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.step-detail-connector {
  width: 2px; flex: 1; background: var(--color-border);
  min-height: 2.5rem; margin-top: 0.5rem; border-radius: 1px;
}
.step-detail-body {
  padding-top: 0.75rem; padding-bottom: var(--space-10);
}
.step-detail-body h3 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; margin-bottom: var(--space-3); color: var(--color-text-base);
}
.step-detail-body p {
  color: var(--color-text-muted); line-height: var(--leading-relaxed);
  max-width: 56ch;
}

/* Spec cards (cum-functioneaza dimensions section) */
.spec-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.spec-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.spec-card-label {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 800; margin-bottom: var(--space-3);
}
.spec-card-dim {
  font-family: var(--font-display); font-size: 3rem;
  font-weight: 800; color: var(--color-text-base);
  line-height: 1; margin-bottom: var(--space-4);
}
.spec-card-dim small { font-size: 1.5rem; color: var(--color-text-muted); }

/* ─── Cage showcase (home) ──────────────────────────────────────────────────── */
.cage-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.cage-showcase-img {
  position: relative;
  min-height: 320px;
}
.cage-showcase-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.cage-showcase-text {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.cage-showcase-bullets { display: flex; flex-direction: column; gap: var(--space-3); }
.cage-showcase-bullet {
  display: flex; align-items: center; gap: var(--space-3);
}
.cage-showcase-bullet-bar {
  width: 2px; height: 1.25rem;
  background: var(--color-primary); border-radius: 1px; flex-shrink: 0;
}
@media (max-width: 767px) {
  .cage-showcase { grid-template-columns: 1fr; }
  .cage-showcase-img { min-height: 260px; }
}

/* ─── Image placeholder ─────────────────────────────────────────────────────── */
.img-placeholder {
  background: oklch(22% 0.03 210);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  color: oklch(45% 0.01 220);
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.img-placeholder svg { opacity: 0.3; }

/* ─── Print styles (activity log) ─────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .add-entry-form,
  .cage-tabs, .log-export-btn, .timeline-delete,
  .btn, .wizard-actions { display: none !important; }
  body { padding-top: 0; }
  .page-hero { padding-top: 2rem; }
  .print-header { display: block !important; margin-bottom: 1rem; }
}
.print-header { display: none; }

/* ─── Nav auth link ──────────────────────────────────────────────────────────── */
.nav-auth { display: flex; align-items: center; margin-right: var(--space-3); }
.nav-auth-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-text-base); text-decoration: none;
  padding: 0.875rem 2rem;
  border: 2px solid var(--color-border-strong);
  border-radius: 50px;
  min-height: 48px;
  white-space: nowrap;
  transition: background 180ms var(--ease-out), border-color 180ms, color 180ms;
}
.nav-auth-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
@media (max-width: 767px) { .nav-auth { display: none; } }

/* ─── Auth page ──────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2);
  padding: var(--space-8) var(--space-4);
}
.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%; max-width: 460px;
  box-shadow: 0 4px 24px oklch(0% 0 0 / 0.06);
}
.auth-logo {
  display: block; margin-bottom: var(--space-8);
  text-decoration: none;
}
.auth-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.auth-tab {
  flex: 1; padding: var(--space-2) var(--space-4);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: var(--color-primary); color: var(--color-on-primary);
}
.auth-tab:not(.active):hover { background: var(--color-surface-2); }
.auth-submit { width: 100%; justify-content: center; margin-top: var(--space-2); }
.auth-error {
  background: oklch(95% 0.04 18); border: 1px solid oklch(85% 0.08 18);
  color: oklch(38% 0.16 18);
  padding: var(--space-3) var(--space-4);
  border-radius: 0.5rem;
  font-size: var(--text-sm); margin-bottom: var(--space-4);
}
.auth-hint {
  margin-top: var(--space-4); font-size: var(--text-xs);
  color: var(--color-text-muted); text-align: center;
}
.auth-hint code {
  background: var(--color-surface-2); padding: 1px 5px;
  border-radius: 3px; font-family: monospace;
}

/* ─── Profile page ───────────────────────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}

/* Info card */
.profile-info-col { position: sticky; top: calc(var(--header-height) + var(--space-6)); }
@media (max-width: 900px) { .profile-info-col { position: static; } }
.profile-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 2px 12px oklch(0% 0 0 / 0.05);
}
.profile-info-header {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-dark);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}
.profile-avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-display); font-size: var(--text-md); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-info-name {
  font-family: var(--font-display); font-size: var(--text-base);
  font-weight: 700; color: var(--color-on-dark);
}
.profile-info-since {
  font-size: var(--text-xs); color: var(--color-on-dark-muted);
  margin-top: 2px;
}
.profile-dl {
  padding: var(--space-5) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.profile-dl-row { display: flex; flex-direction: column; gap: var(--space-1); }
.profile-dl-row dt {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--color-text-subtle);
}
.profile-dl-row dd {
  font-size: var(--text-sm); color: var(--color-text-base);
  font-weight: 500; padding-left: var(--space-1);
}
.profile-edit-btn {
  display: flex; align-items: center; gap: var(--space-2);
  margin: var(--space-4) var(--space-6);
  font-size: var(--text-sm) !important;
}
.profile-edit-mode-inner { padding: var(--space-5) var(--space-6); }
#profile-edit-mode { padding: var(--space-5) var(--space-6); }
#profile-edit-mode .form-group { margin-bottom: var(--space-3); }
.profile-edit-error {
  background: oklch(95% 0.04 18); border: 1px solid oklch(85% 0.08 18);
  color: oklch(38% 0.16 18);
  padding: var(--space-3) var(--space-4); border-radius: 0.5rem;
  font-size: var(--text-sm); margin-bottom: var(--space-4);
}

/* Reservations column */
.profile-res-col { min-width: 0; }
.profile-section { margin-bottom: var(--space-12); }
.profile-section-title {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 700; color: var(--color-text-base);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}
.profile-res-list { display: flex; flex-direction: column; gap: var(--space-4); }
.profile-res-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.profile-res-card:hover { box-shadow: 0 4px 16px oklch(0% 0 0 / 0.07); }
.profile-res-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) var(--space-6);
  flex-wrap: wrap;
}
.profile-res-title {
  font-family: var(--font-display); font-size: var(--text-md);
  font-weight: 700; color: var(--color-text-base);
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.profile-res-dates, .profile-res-boxes, .profile-res-entries {
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.profile-res-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2);
  flex-shrink: 0;
}
.profile-view-btn {
  font-size: var(--text-xs) !important;
  padding: var(--space-2) var(--space-4) !important;
  display: flex; align-items: center; gap: var(--space-2);
}
.profile-cages {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  padding: var(--space-3) var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.profile-cage-chip {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
}
.profile-cage-label { font-weight: 600; color: var(--color-text-base); }
.profile-cage-fill { color: var(--color-text-muted); }

/* ─── Reservation card header ────────────────────────────────────────────────── */
.res-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--color-dark);
  border-radius: 0.75rem 0.75rem 0 0;
  gap: var(--space-4); flex-wrap: wrap;
}
.res-card-head-left { display: flex; flex-direction: column; gap: 2px; }
.res-card-head-title {
  font-family: var(--font-display); font-size: var(--text-md);
  font-weight: 800; color: white;
}
.res-card-head-dates { font-size: var(--text-sm); color: oklch(68% 0.02 220); }

/* ─── Per-cage panels (profile page) ────────────────────────────────────────── */
.res-cages-list { display: flex; flex-direction: column; }
.cage-item {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}
.cage-item:nth-child(even) { background: oklch(98.5% 0.005 220); }
.cage-row-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-3);
}
.cage-row-id { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 0; }
.cage-item-num {
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: 800; color: var(--color-text-base);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cage-item-num-desc {
  font-family: var(--font-body); font-weight: 400; font-style: italic;
  color: var(--color-text-muted); font-size: var(--text-xs);
}
.cage-desc-row {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.cage-desc-row > p { flex: 1; min-width: 0; margin: 0; }
.cage-item-desc-text {
  font-size: var(--text-sm); color: var(--color-text-base);
  line-height: var(--leading-relaxed);
}
.cage-item-desc-empty { font-size: var(--text-sm); color: var(--color-text-subtle); font-style: italic; }
.cage-edit-btn {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: var(--text-xs); color: var(--color-text-muted);
  padding: 2px 6px; border-radius: var(--radius-sm);
}
.cage-edit-btn:hover { background: var(--color-surface-2); color: var(--color-text-base); }
.cage-desc-textarea {
  width: 100%; min-height: 64px; resize: vertical;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3); font-family: var(--font-body);
  font-size: var(--text-sm); color: var(--color-text-base);
  background: var(--color-surface); transition: border-color 150ms;
}
.cage-desc-textarea:focus { outline: none; border-color: var(--color-primary); }
.cage-desc-edit-wrap {
  background: var(--color-surface-2); border-radius: var(--radius-sm);
  padding: var(--space-3); margin-top: var(--space-2);
}
.cage-row-meta {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--color-text-muted);
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
}
.cage-log-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-xs);
  color: var(--color-primary); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.cage-log-btn:hover { opacity: 0.7; }
.cage-action-form {
  background: var(--color-surface-2); border-radius: var(--radius-sm);
  padding: var(--space-4); margin-top: var(--space-3);
}
.cage-action-form-title {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.cage-log-entries {
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-top: var(--space-3);
}
.cage-log-entries[hidden] { display: none; }
.profile-empty {
  text-align: center; padding: var(--space-20) 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
  color: var(--color-text-muted);
}

/* ─── Workflow badges ────────────────────────────────────────────────────────── */
.wf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.wf-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wf-packing   { background: oklch(96% 0.015 220); color: oklch(38% 0.05 220); }
.wf-packing::before { background: oklch(55% 0.10 220); }
.wf-loading   { background: oklch(96% 0.08 75); color: oklch(42% 0.10 75); }
.wf-loading::before { background: oklch(62% 0.14 75); }
.wf-stored    { background: oklch(95% 0.08 145); color: oklch(36% 0.12 145); }
.wf-stored::before { background: oklch(52% 0.16 145); }
.wf-accessing { background: oklch(97% 0.07 18); color: oklch(40% 0.14 18); }
.wf-accessing::before { background: var(--color-primary); }

/* ─── Reservation strips ─────────────────────────────────────────────────────── */
.res-strip {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
  flex-wrap: wrap;
}
.res-strip-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-subtle); flex-shrink: 0; white-space: nowrap;
}
.res-strip-value {
  font-size: var(--text-sm); color: var(--color-text-base);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.res-strip-value small { color: var(--color-text-muted); }

.ship-badge {
  display: inline-flex; align-items: center;
  font-size: var(--text-xs); font-weight: 600;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.ship-pending { background: oklch(96% 0.08 75); color: oklch(42% 0.10 75); }
.ship-shipped { background: oklch(95% 0.08 145); color: oklch(36% 0.12 145); }

/* ─── Action strip ───────────────────────────────────────────────────────────── */
.res-action-strip {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
}
.res-action-strip .btn { font-size: var(--text-sm) !important; }

/* ─── Expandable sub-panel ───────────────────────────────────────────────────── */
.res-sub-panel {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: oklch(98.5% 0.002 220);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.res-sub-panel[hidden] { display: none; }
.res-sub-panel-title {
  font-size: var(--text-sm); font-weight: 700; color: var(--color-text-base);
}
.res-sub-row {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.res-sub-row label {
  font-size: var(--text-sm); color: var(--color-text-muted);
  min-width: 180px; flex-shrink: 0;
}

/* ─── Box steppers ───────────────────────────────────────────────────────────── */
.box-stepper { display: flex; align-items: center; gap: var(--space-2); }
.box-stepper-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface); cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--color-text-base);
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms, border-color 150ms, color 150ms;
  line-height: 1;
}
.box-stepper-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.box-stepper-val { min-width: 1.75rem; text-align: center; font-weight: 700; font-size: var(--text-sm); }

/* ─── Notes section ──────────────────────────────────────────────────────────── */
.res-notes-section { border-top: 1px solid var(--color-border); }
.res-notes-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: none; border: none; cursor: pointer; width: 100%;
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-base);
  text-align: left; font-family: var(--font-body);
}
.res-notes-toggle:hover { background: var(--color-surface-2); }
.res-notes-toggle svg { transition: transform 200ms; flex-shrink: 0; }
.res-notes-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.res-notes-body {
  padding: 0 var(--space-6) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.res-notes-body[hidden] { display: none; }
.res-note-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.res-note-date { font-size: var(--text-xs); color: var(--color-text-subtle); margin-bottom: 3px; }
.res-note-text { font-size: var(--text-sm); color: var(--color-text-base); line-height: var(--leading-normal); }
.res-notes-empty { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; }
.res-notes-add {
  display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-1);
}
.res-notes-add textarea {
  width: 100%; min-height: 72px; resize: vertical;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-text-base); background: var(--color-surface);
  transition: border-color 150ms;
}
.res-notes-add textarea:focus { outline: none; border-color: var(--color-primary); }
.res-notes-add .btn { align-self: flex-end; font-size: var(--text-xs) !important; }

/* ─── Cage fill visual ───────────────────────────────────────────────────────── */
@keyframes cage-slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slot-fill {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}
.cage-frame {
  background: oklch(19% 0.04 210);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  animation: cage-slide-in 200ms var(--ease-out);
}
.cage-frame-bar { height: 5px; background: oklch(32% 0.04 210); border-radius: 3px; }
.cage-layer-row { display: flex; gap: 6px; }
.cage-slot {
  flex: 1; border-radius: 6px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; gap: 4px;
}
.cage-slot-empty {
  background: oklch(93% 0.005 220);
  border: 2px dashed oklch(80% 0.007 220);
}
.cage-slot-small {
  background: oklch(87% 0.11 75);
  border: 2px solid oklch(68% 0.13 75);
  color: oklch(38% 0.10 75);
  animation: slot-fill 180ms var(--ease-out);
}
.cage-slot-large {
  background: oklch(78% 0.14 75);
  border: 2px solid oklch(60% 0.15 75);
  color: oklch(38% 0.10 75);
  animation: slot-fill 180ms var(--ease-out);
}
.cage-slot-overflow {
  background: oklch(97% 0.07 18);
  border: 2px dashed oklch(72% 0.14 18);
  color: oklch(40% 0.14 18);
  animation: slot-fill 180ms var(--ease-out);
}
.cage-nav-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: oklch(80% 0.007 220);
  transition: background 150ms, transform 150ms;
}
.cage-nav-dot-active { background: var(--color-primary); transform: scale(1.4); }

/* ─── Cage availability hint ─────────────────────────────────────────────────── */
.cage-availability-hint {
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-top: var(--space-2); margin-bottom: var(--space-6);
}

/* ─── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
