/* ---------- Tokens ---------- */
:root {
  --bg: #fbf6ff;
  --surface: #ffffff;
  --surface-2: #f3ecff;
  --ink: #372b52;
  --ink-soft: #71638f;
  --pink: #ff6fa5;
  --pink-deep: #e84f8a;
  --yellow: #ffc93c;
  --mint: #2fb6a1;
  --mint-soft: #dff6f0;
  --violet: #8c6fff;
  --violet-soft: #ece6ff;
  --orange: #ff8f4d;
  --orange-soft: #ffe9db;
  --sky: #2f9fe0;
  --sky-soft: #dff1fc;
  --shadow: 0 12px 24px -12px rgba(55, 43, 82, 0.28);
  --shadow-sm: 0 4px 10px -4px rgba(55, 43, 82, 0.22);
  --radius-card: 26px;
  --ease-squish: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201a33;
    --surface: #2b2344;
    --surface-2: #362a52;
    --ink: #f4eeff;
    --ink-soft: #c3b6e6;
    --mint-soft: #1e3f3a;
    --violet-soft: #3a2f5c;
    --orange-soft: #4a3324;
    --sky-soft: #1e3548;
    --shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-inline: max(16px, env(safe-area-inset-left));
}

h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; text-wrap: balance; margin: 0; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin-inline: auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  flex-shrink: 0;
}

.crate-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--violet);
  color: var(--violet);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-squish);
}
.crate-btn:hover { transform: translateY(-2px) scale(1.03); }
.crate-btn:active { transform: scale(0.94, 1.06); }

.crate-count {
  background: var(--pink);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  padding-inline: 4px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-block: 44px 28px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--pink-deep);
  background: color-mix(in srgb, var(--pink) 16%, var(--surface));
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  color: var(--ink);
}
.hero h1 span { color: var(--pink-deep); }

.hero p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-block: 16px 22px;
}

.hero-stats {
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
}
.hero-stat b {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.4rem;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 0.82rem; color: var(--ink-soft); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--pink) 70%, transparent);
  transition: transform 0.18s var(--ease-squish), box-shadow 0.18s;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary:active { transform: scale(0.95, 1.05); }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
}
.hero-stage .blob-wrap { transform: scale(1.9); }
.hero-stage-shadow {
  position: absolute;
  bottom: 18px;
  width: 140px;
  height: 22px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 50%;
  filter: blur(2px);
}

/* ---------- Category pills ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 4px 26px;
}
.pill {
  border: 2px solid transparent;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-squish), color 0.15s, border-color 0.15s;
}
.pill:hover { transform: translateY(-1px); }
.pill[aria-pressed="true"] {
  color: var(--cat-color, var(--pink-deep));
  border-color: var(--cat-color, var(--pink));
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-stage {
  background: var(--stage-color, var(--surface-2));
  height: 148px;
  display: grid;
  place-items: center;
  position: relative;
}

.stock-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.stock-flag--out {
  background: color-mix(in srgb, var(--ink) 75%, transparent);
  color: #fff;
}
.stock-flag--low {
  background: var(--yellow);
  color: #5a3d00;
}

.add-btn:disabled {
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  cursor: not-allowed;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cat-color);
  background: var(--cat-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.card h3 { font-size: 1.12rem; color: var(--ink); }

.card-blurb {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}

.squish-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.squish-meter .pips { display: flex; gap: 3px; }
.squish-meter .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}
.squish-meter .pip.on { background: var(--pink); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.price {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.add-btn {
  background: var(--violet);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.16s var(--ease-squish), background 0.16s;
}
.add-btn:hover { background: var(--pink-deep); }
.add-btn:active { transform: scale(0.9, 1.1); }
.add-btn.added { background: var(--mint); }

/* ---------- Blob illustration ---------- */
.blob-wrap {
  position: relative;
  width: 92px;
  height: 78px;
}
@media (prefers-reduced-motion: no-preference) {
  .blob-wrap { animation: bob 3.4s ease-in-out infinite; }
  .card:nth-child(3n) .blob-wrap { animation-delay: -0.6s; }
  .card:nth-child(3n+1) .blob-wrap { animation-delay: -1.8s; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

.blob {
  position: absolute;
  inset: 0;
  background: var(--body, var(--pink));
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,0.06);
}

.eye {
  position: absolute;
  top: 34%;
  width: 8px;
  height: 10px;
  background: #372b52;
  border-radius: 50%;
}
.eye::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 2.5px; height: 2.5px;
  background: #fff;
  border-radius: 50%;
}
.eye-l { left: 30%; }
.eye-r { right: 30%; }

.cheek {
  position: absolute;
  top: 48%;
  width: 14px;
  height: 8px;
  background: var(--cheek, #ff9ec4);
  opacity: 0.65;
  border-radius: 50%;
}
.cheek-l { left: 12%; }
.cheek-r { right: 12%; }

.mouth {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 7px;
  border-radius: 0 0 14px 14px;
  background: #372b52;
  opacity: 0.75;
}

/* -- feature modifiers -- */
.feature { position: absolute; background: var(--feature, var(--yellow)); }

.feature-ears-round { width: 0; height: 0; }
.feature-ears-round::before, .feature-ears-round::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background: var(--feature, var(--yellow));
  border-radius: 50%;
  top: -14px;
}
.feature-ears-round::before { left: 2px; }
.feature-ears-round::after { right: 2px; }

.feature-ears-pointy { width: 0; height: 0; }
.feature-ears-pointy::before, .feature-ears-pointy::after {
  content: "";
  position: absolute;
  width: 18px; height: 20px;
  background: var(--feature, var(--orange));
  top: -13px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.feature-ears-pointy::before { left: 6px; rotate: -12deg; }
.feature-ears-pointy::after { right: 6px; rotate: 12deg; }

.feature-horn {
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 26px;
  background: linear-gradient(180deg, var(--feature, var(--yellow)), color-mix(in srgb, var(--feature, var(--yellow)) 60%, #fff));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.feature-sparkle-trail { background: none; }
.feature-sparkle-trail::before, .feature-sparkle-trail::after {
  content: "\2726";
  position: absolute;
  color: var(--feature, var(--yellow));
  font-size: 12px;
  line-height: 1;
}
.feature-sparkle-trail::before { top: -6px; left: -10px; }
.feature-sparkle-trail::after { bottom: 6px; right: -12px; font-size: 9px; }

.feature-sprinkles { background: none; }
.feature-sprinkles::before, .feature-sprinkles::after {
  content: "";
  position: absolute;
  width: 10px; height: 3px;
  border-radius: 2px;
  top: 14px;
}
.feature-sprinkles::before { left: 22px; background: var(--mint); rotate: 25deg; }
.feature-sprinkles::after { right: 20px; background: var(--sky); rotate: -20deg; }

.feature-boba-pearls { background: none; }
.feature-boba-pearls::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 18px;
  width: 56px;
  height: 8px;
  background: var(--feature, #5b3a29);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--surface-2, transparent);
  opacity: 0.9;
}
.feature-boba-pearls::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 40%;
  width: 5px;
  height: 20px;
  background: var(--ink-soft);
  rotate: 10deg;
}

.feature-swirl-cone { background: none; }
.feature-swirl-cone::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 26px solid var(--feature, var(--orange));
}
.feature-swirl-cone::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 16px;
  background: var(--body, var(--pink));
  border-radius: 50% 50% 40% 40%;
}

.feature-claws { background: none; }
.feature-claws::before, .feature-claws::after {
  content: "";
  position: absolute;
  top: 30%;
  width: 16px;
  height: 12px;
  background: var(--feature, var(--orange));
  border-radius: 50% 50% 50% 10%;
}
.feature-claws::before { left: -14px; }
.feature-claws::after { right: -14px; transform: scaleX(-1); }

.feature-tail-fluff { background: none; }
.feature-tail-fluff::before {
  content: "";
  position: absolute;
  bottom: 6px;
  right: -16px;
  width: 26px;
  height: 22px;
  background: var(--feature, var(--orange));
  border-radius: 60% 40% 50% 50%;
  z-index: -1;
}

/* ---------- Crate drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 38, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100vw);
  background: var(--bg);
  box-shadow: -18px 0 40px rgba(20,14,38,0.25);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-squish);
  z-index: 51;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.drawer-head h2 { font-size: 1.3rem; }

.icon-btn {
  background: var(--surface-2);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-crate {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 60px;
  padding-inline: 20px;
}
.empty-crate .blob-wrap { margin-inline: auto; margin-bottom: 16px; }

.line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.line-item .blob-wrap { width: 48px; height: 40px; flex-shrink: 0; }
.line-info { flex: 1; min-width: 0; }
.line-info h4 { font-size: 0.92rem; margin: 0 0 2px; }
.line-info .price { font-size: 0.88rem; }

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}
.stepper span { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

.remove-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
}

/* ---------- Delivery address ---------- */
.address-block {
  padding: 16px 20px 4px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.address-block h3 {
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.address-search {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.address-search input {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
}
.address-search button {
  background: var(--violet);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0 16px;
  border-radius: 12px;
  white-space: nowrap;
}
.address-suggestions {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.address-suggestions li button {
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--ink);
}
.address-suggestions li button:hover { background: var(--violet-soft); }

.address-map {
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--surface-2);
}
.address-hint {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.address-hint.picked { color: var(--mint); font-weight: 700; }
.address-hint--warn {
  color: var(--pink-deep);
  font-weight: 800;
  animation: warn-pulse 0.4s ease-in-out 2;
}
@keyframes warn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.drawer-foot {
  padding: 18px 20px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.subtotal-row .amount { font-family: "Baloo 2", sans-serif; font-variant-numeric: tabular-nums; }

.checkout-btn {
  width: 100%;
  background: var(--pink);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: 999px;
  transition: transform 0.16s var(--ease-squish);
}
.checkout-btn:hover { transform: translateY(-2px); }
.checkout-btn:disabled { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.checkout-btn--needs-address { background: color-mix(in srgb, var(--violet) 55%, var(--surface-2)); }

.confirm-view { text-align: center; padding: 40px 24px; }
.confirm-view .blob-wrap { margin-inline: auto; transform: scale(1.6); margin-bottom: 26px; }
.confirm-view h2 { margin-bottom: 8px; }
.confirm-view p { color: var(--ink-soft); margin-bottom: 24px; }
.order-num {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding-block: 30px 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 28px 12px; }
  .hero-stage { height: 190px; order: -1; }
  .hero-stage .blob-wrap { transform: scale(1.4); }
  .hero-stats { flex-wrap: wrap; row-gap: 10px; }
}

/* ================= Admin ================= */
.admin-body { max-width: 880px; margin-inline: auto; padding-block: 40px 60px; }

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-header h1 { font-size: 1.6rem; }
.admin-back { font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.admin-back:hover { color: var(--pink-deep); }

.gate {
  max-width: 340px;
  margin: 15vh auto 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  text-align: center;
}
.gate h1 { font-size: 1.3rem; margin-bottom: 6px; }
.gate p { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 18px; }
.gate input {
  width: 100%;
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 12px;
}
.gate .error { color: var(--pink-deep); font-size: 0.82rem; min-height: 1.2em; margin-bottom: 4px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat-tile {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.stat-tile .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 700; }
.stat-tile .value { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-tile.profit .value { color: var(--mint); }
.stat-tile.profit .value.negative { color: var(--pink-deep); }

.admin-section { margin-bottom: 36px; }
.admin-section h2 { font-size: 1.05rem; margin-bottom: 4px; }
.admin-section .hint { color: var(--ink-soft); font-size: 0.82rem; margin: 0 0 14px; }

.admin-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .profit-pos { color: var(--mint); font-weight: 700; }
.admin-table .profit-neg { color: var(--pink-deep); font-weight: 700; }

.admin-table input[type="number"] {
  width: 76px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: var(--bg);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.admin-table .save-btn {
  background: var(--violet);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 999px;
}
.admin-table .save-btn:hover { background: var(--pink-deep); }
.admin-table .row-status { font-size: 0.76rem; color: var(--mint); margin-left: 8px; }

.payments-note {
  background: var(--violet-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink);
}
.payments-note code {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.82em;
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}
