/* ============================================================
   Zest UI — Component Styles
   Import tokens.css before this file.
   ============================================================ */

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

/* ── Utility: screen reader only ────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ============================================================
   BUTTON
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-wide);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
  user-select: none;
  white-space: nowrap;
  outline: none;
  position: relative;
}

/* Sizes */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
}
.btn-md {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}
.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
}
.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--font-size-2xl);
}

/* Variants */
.btn-primary {
  background: var(--color-lime);
  color: var(--color-ink);
  box-shadow: var(--shadow-sticker);
}
.btn-primary:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-sticker-lg);
}
.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-paper);
  color: var(--foreground);
  box-shadow: var(--shadow-sticker);
}
.btn-secondary:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-sticker-lg);
}
.btn-secondary:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-pink {
  background: var(--color-pink);
  color: var(--color-ink);
  box-shadow: var(--shadow-sticker);
}
.btn-pink:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-sticker-lg);
}
.btn-pink:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-purple {
  background: var(--color-purple);
  color: var(--color-paper);
  box-shadow: var(--shadow-sticker);
}
.btn-purple:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: var(--shadow-sticker-lg);
}
.btn-purple:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-ink {
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: none;
}
.btn-ink:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Pill shape variant */
.btn-pill {
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}

/* Ghost / outline */
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--muted);
}

/* Disabled state */
.btn:disabled,
.btn[data-state="disabled"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* Focus ring */
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Loading spinner inside btn */
.btn-loading {
  pointer-events: none;
}
.btn-spinner {
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-slow 0.6s linear infinite;
  display: inline-block;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-body);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sticker-sm);
  white-space: nowrap;
  user-select: none;
}

.badge-lime   { background: var(--color-lime);   color: var(--color-ink); }
.badge-pink   { background: var(--color-pink);   color: var(--color-ink); }
.badge-purple { background: var(--color-purple); color: var(--color-paper); }
.badge-yellow { background: var(--color-yellow); color: var(--color-ink); }
.badge-cyan   { background: var(--color-cyan);   color: var(--color-ink); }
.badge-orange { background: var(--color-orange); color: var(--color-ink); }
.badge-paper  { background: var(--color-paper);  color: var(--color-ink); }
.badge-ink    { background: var(--color-ink);    color: var(--color-paper); }
.badge-red    { background: var(--color-red);    color: #ffffff; }

/* Rotated badge (signature tilted style) */
.badge-tilted { transform: rotate(-2deg); }
.badge-tilted-r { transform: rotate(2deg); }

/* Larger tag label */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-body);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sticker-sm);
}

/* ============================================================
   CARD
   ============================================================ */

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sticker);
  overflow: hidden;
  transition: transform var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sticker-lg);
}

.card-body { padding: var(--space-6); }
.card-header { padding: var(--space-6) var(--space-6) 0; }
.card-footer { padding: 0 var(--space-6) var(--space-6); }

/* Tilted cards */
.card-tilt-l { transform: rotate(-1deg); }
.card-tilt-r { transform: rotate(1deg);  }
.card-tilt-l:hover { transform: rotate(-1deg) translateY(-4px); }
.card-tilt-r:hover { transform: rotate(1deg)  translateY(-4px); }

/* Coloured cards */
.card-lime   { background: var(--color-lime);   color: var(--color-ink); border-color: var(--color-ink); }
.card-pink   { background: var(--color-pink);   color: var(--color-ink); border-color: var(--color-ink); }
.card-purple { background: var(--color-purple); color: var(--color-paper); border-color: var(--color-ink); }
.card-cyan   { background: var(--color-cyan);   color: var(--color-ink); border-color: var(--color-ink); }
.card-yellow { background: var(--color-yellow); color: var(--color-ink); border-color: var(--color-ink); }
.card-orange { background: var(--color-orange); color: var(--color-ink); border-color: var(--color-ink); }
.card-ink    { background: var(--color-ink);    color: var(--color-paper); border-color: var(--color-paper); }

/* Pack card — large aspect ratio card (exercise packs) */
.pack-card {
  display: block;
  border: var(--border-width-lg) solid var(--border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-sticker-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
  text-decoration: none;
  color: inherit;
}
.pack-card:hover {
  transform: translateY(-4px);
}
.pack-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pack-card-count {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  opacity: 0.65;
}
.pack-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}
.pack-card-desc {
  font-size: var(--font-size-sm);
  opacity: 0.75;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--border);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--foreground);
}

.nav-logo-icon {
  width: 22px; height: 22px;
}

.nav-logo:hover .nav-logo-icon {
  animation: spin-slow 1s linear infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  color: var(--foreground);
  transition: transform var(--duration-normal) ease,
              color var(--duration-normal) ease;
}

.nav-link:hover {
  transform: rotate(-2deg);
  color: var(--color-purple);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  transition: transform var(--duration-normal) ease,
              opacity var(--duration-normal) ease;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   INPUT / FORM ELEMENTS
   ============================================================ */

.input {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--foreground);
  background: var(--background);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sticker-sm);
  outline: none;
  transition: box-shadow var(--duration-normal) ease,
              transform var(--duration-normal) ease;
}

.input::placeholder { color: var(--muted-foreground); }

.input:focus {
  box-shadow: var(--shadow-sticker), 0 0 0 3px var(--ring);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Textarea */
.textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Select */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Form label */
.label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
  color: var(--foreground);
}

/* Form group */
.form-group { display: flex; flex-direction: column; gap: var(--space-1); }

/* Checkbox / Radio */
.checkbox, .radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
}
.checkbox input, .radio input {
  width: 1.1rem; height: 1.1rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm);
  accent-color: var(--color-lime);
  cursor: pointer;
}
.radio input { border-radius: 50%; }

/* ============================================================
   MODAL / DIALOG
   ============================================================ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fade-in var(--duration-normal) ease;
}

.modal {
  background: var(--background);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sticker-lg);
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  animation: fade-in var(--duration-slow) var(--ease-default);
}

.modal-header {
  padding: var(--space-6) var(--space-6) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}

.modal-close {
  background: none;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--foreground);
  flex-shrink: 0;
  box-shadow: var(--shadow-sticker-sm);
  transition: transform var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}
.modal-close:hover {
  transform: rotate(90deg);
  box-shadow: none;
}

.modal-body {
  padding: var(--space-4) var(--space-6);
  color: var(--muted-foreground);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.modal-footer {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ============================================================
   TOAST / NOTIFICATION
   ============================================================ */

.toast-region {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-ink);
  color: var(--color-paper);
  border: var(--border-width) solid var(--color-paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sticker);
  min-width: 18rem;
  max-width: 24rem;
  pointer-events: auto;
  animation: notif-pop 0.5s ease forwards;
}

.toast-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.toast-content { flex: 1; }
.toast-title {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  margin-bottom: 2px;
}
.toast-desc {
  font-size: var(--font-size-xs);
  opacity: 0.75;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: var(--font-size-base);
  opacity: 0.6;
  padding: 0;
  flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

/* Toast colour variants */
.toast-success { background: var(--color-lime); color: var(--color-ink); border-color: var(--color-ink); }
.toast-error   { background: var(--color-red);  color: #fff;             border-color: var(--color-ink); }
.toast-purple  { background: var(--color-purple); color: var(--color-paper); border-color: var(--color-ink); }

/* ============================================================
   FEATURE / STAT BLOCK
   ============================================================ */

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-icon {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sticker-sm);
  font-size: var(--font-size-lg);
  background: var(--muted);
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}

.feature-desc {
  font-size: var(--font-size-sm);
  color: var(--muted-foreground);
  line-height: var(--line-height-relaxed);
}

/* Horizontal feature row */
.feature-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

/* Stat / number highlight */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
}
.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted-foreground);
  margin-top: var(--space-1);
}

/* ============================================================
   AVATAR
   ============================================================ */

.avatar {
  width: 2.5rem; height: 2.5rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
}
.avatar-sm { width: 2rem;   height: 2rem;   }
.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: var(--font-size-lg); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-group {
  display: flex;
}
.avatar-group .avatar {
  margin-left: -0.75rem;
  box-shadow: var(--shadow-sticker-sm);
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ============================================================
   TESTIMONIAL CARD
   ============================================================ */

.testimonial {
  background: var(--card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}
.testimonial-handle {
  font-size: var(--font-size-xs);
  color: var(--muted-foreground);
}

.star-rating {
  display: flex;
  gap: 2px;
  font-size: var(--font-size-sm);
  color: var(--color-yellow);
}

/* ============================================================
   SECTION / LAYOUT PATTERNS
   ============================================================ */

/* Full-bleed coloured section */
.section-band {
  padding: var(--space-24) var(--space-6);
  border-top: 3px solid var(--color-ink);
  border-bottom: 3px solid var(--color-ink);
}

.section-band-lime   { background: var(--color-lime);   color: var(--color-ink); }
.section-band-cyan   { background: var(--color-cyan);   color: var(--color-ink); }
.section-band-pink   { background: var(--color-pink);   color: var(--color-ink); }
.section-band-purple { background: var(--color-purple); color: var(--color-paper); }
.section-band-yellow { background: var(--color-yellow); color: var(--color-ink); }
.section-band-ink    { background: var(--color-ink);    color: var(--color-paper); }

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

/* Section eyebrow label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

/* Section heading */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.section-subheading {
  font-size: var(--font-size-lg);
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.divider {
  height: 3px;
  background: var(--border);
  border: none;
  margin: 0;
}

.divider-thin {
  height: 1px;
  background: var(--border);
  opacity: 0.15;
}

/* ============================================================
   TOOLTIP
   ============================================================ */

.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--font-size-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  z-index: 10;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-ink);
}

.tooltip-wrapper:hover .tooltip { opacity: 1; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-track {
  height: 0.5rem;
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-lime);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) ease;
}

.progress-fill-pink   { background: var(--color-pink); }
.progress-fill-purple { background: var(--color-purple); }
.progress-fill-cyan   { background: var(--color-cyan); }

/* ============================================================
   CAROUSEL DOTS
   ============================================================ */

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.carousel-dot {
  height: 0.75rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-full);
  background: var(--color-paper);
  cursor: pointer;
  transition: width var(--duration-normal) ease,
              background var(--duration-normal) ease;
  width: 0.75rem;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-ink);
  width: 2rem;
}

/* ============================================================
   PILL NAV / TABS
   ============================================================ */

.pill-nav {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--muted);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  width: fit-content;
}

.pill-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  transition: background var(--duration-normal) ease,
              color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.pill-tab.active,
.pill-tab[aria-selected="true"] {
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: var(--shadow-sticker-sm);
}

/* ============================================================
   FLOATING LABEL / NOTIFICATION CHIP
   ============================================================ */

.notif-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--background);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sticker);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  animation: notif-pop 3s ease infinite;
}

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-lime);
  border: 2px solid var(--color-ink);
  flex-shrink: 0;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--muted) 25%,
    color-mix(in srgb, var(--muted) 60%, var(--background)) 50%,
    var(--muted) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text  { height: 1em; border-radius: var(--radius-full); }
.skeleton-block { height: 8rem; border-radius: var(--radius); }
.skeleton-circle { border-radius: 50%; }

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */

[data-theme="dark"] .btn-secondary {
  /* In dark mode paper is dark — use a visible light surface instead */
  background: color-mix(in srgb, var(--color-ink) 90%, white);
  color: var(--foreground);
}

[data-theme="dark"] .input {
  background: var(--card);
  color: var(--foreground);
}

[data-theme="dark"] .input::placeholder {
  color: var(--muted-foreground);
}

[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5f4ef' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .badge-paper {
  background: var(--muted);
  color: var(--foreground);
}

[data-theme="dark"] .kit-nav {
  background: var(--background);
}

[data-theme="dark"] .kit-header {
  background: var(--background);
}
