﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --p1: #a7b3f2;
  --p2: #d6d9f8;
  --p3: #c5cbff;
  --p4: #b8c6f7;
  --p5: #bbc4ed;
  --accent-indigo: #5d6bd8;
  --accent-indigo-strong: #4353c4;
  --accent-sky: #4e8fe8;
  --accent-rose: #d66ba9;
  --accent-mint: #2f9d67;
  --y1: #fff1b8;
  --y2: #fff4cc;
  --y3: #f2e6c9;
  --y4: #f8e7b5;
  --y5: #e8d9a8;
  --n1: #ffffff;
  --n2: #f7f8ff;
  --n3: #1f2430;
  --n4: #6b7280;
  --n5: #e5e7eb;
  --success-soft: #e6f6ee;
  --success-text: #18804f;
  --danger-soft: #fde8e8;
  --danger-text: #b42318;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f7f8ff;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--n3);
  background-color: var(--n2);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(238, 240, 255, 0.62) 0%, rgba(244, 246, 255, 0.42) 30%, rgba(247, 248, 255, 0.24) 66%),
    radial-gradient(circle at 88% 2%, rgba(255, 247, 220, 0.28) 0%, rgba(255, 247, 220, 0) 32%),
    linear-gradient(180deg, #f7f8ff 0%, #fcfdff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, center top, center top;
  background-size: auto, auto, auto;
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
}
body.buyer-ui {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-x: none;
  isolation: isolate;
}
body.buyer-ui main.container {
  flex: 1 0 auto;
  width: 100%;
}
body.buyer-ui footer.footer {
  flex-shrink: 0;
}
body.page-leave main.container {
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 110ms ease, transform 110ms ease;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.35;
}
body::before {
  background: #d7d9ff;
  right: -80px;
  top: 18%;
}
body::after {
  background: #fff1b8;
  left: -80px;
  bottom: 8%;
}

@media (max-width: 920px) {
  body {
    background-size: auto, auto, 700px auto;
    background-attachment: scroll, scroll, scroll;
  }
}
body.perf-lite {
  background-attachment: scroll, scroll, scroll;
}
body.perf-lite::before,
body.perf-lite::after {
  filter: blur(24px);
  opacity: 0.22;
}
body.perf-lite .navbar::before,
body.perf-lite .navbar::after,
body.perf-lite .nav-inner::before,
body.perf-lite .nav-inner::after,
body.perf-lite .hero::before,
body.perf-lite .brand-logo,
body.perf-lite .brand-text,
body.perf-lite .featured-title,
body.perf-lite .featured-title::before,
body.perf-lite .featured-title::after,
body.perf-lite a.card[href^="/buyer/products.html?category="],
body.perf-lite #best-grid .card,
body.perf-lite #trending-grid .card,
body.perf-lite #recommended-grid .card {
  animation: none !important;
}
body.perf-lite .featured-title {
  box-shadow: 0 8px 16px rgba(167, 179, 242, 0.22);
}
body.buyer-ui.perf-lite {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(238, 240, 255, 0.44) 0%, rgba(244, 246, 255, 0.22) 34%, rgba(247, 248, 255, 0.12) 68%),
    linear-gradient(180deg, #f7f8ff 0%, #fbfcff 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: auto, auto;
  background-attachment: scroll, scroll;
}
body.buyer-ui.perf-lite::before,
body.buyer-ui.perf-lite::after {
  opacity: 0.14;
  filter: blur(18px);
}
body.buyer-ui.perf-lite .navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.buyer-ui.perf-lite .navbar::before,
body.buyer-ui.perf-lite .navbar::after,
body.buyer-ui.perf-lite .nav-inner::before,
body.buyer-ui.perf-lite .nav-inner::after {
  display: none;
}
body.buyer-ui.perf-lite .footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 255, 0.98) 100%);
  box-shadow: none;
}
body.buyer-ui.perf-lite .footer-brand-logo {
  filter: none;
}
body.buyer-ui.perf-lite .product-card,
body.buyer-ui.perf-lite .cart-feedback-panel,
body.buyer-ui.perf-lite .footer-social a {
  box-shadow: none;
}
body.buyer-ui.perf-lite .product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 252, 254, 0.98) 100%);
}
body.buyer-ui.perf-lite .product-card .shop-image,
body.buyer-ui.perf-lite .product-card:hover .shop-image,
body.buyer-ui.perf-lite .product-card:focus-within .shop-image {
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  body.page-leave main.container {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

a { color: inherit; text-decoration: none; }
.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-indigo);
  border-bottom: 1px solid rgba(67, 83, 196, 0.44);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.action-link:hover {
  color: #2f43a5;
  border-bottom-color: rgba(47, 67, 165, 0.8);
  background-color: rgba(197, 203, 255, 0.2);
}

.product-card .row {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.product-card .row .action-link {
  flex: 0 0 auto;
}
.product-card .row .add-btn {
  margin-left: auto;
}
.container { max-width: 1120px; margin: 0 auto; padding: 16px; }

.navbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 198, 247, 0.5);
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  isolation: isolate;
}
.navbar::before,
.navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.navbar::before {
  background-image:
    radial-gradient(circle at 12% 45%, rgba(198, 206, 255, 0.42) 0 8px, transparent 9px),
    radial-gradient(circle at 26% 35%, rgba(248, 231, 181, 0.4) 0 6px, transparent 7px),
    radial-gradient(circle at 44% 58%, rgba(217, 186, 236, 0.34) 0 7px, transparent 8px),
    radial-gradient(circle at 63% 30%, rgba(197, 203, 255, 0.36) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 52%, rgba(255, 216, 235, 0.36) 0 8px, transparent 9px),
    radial-gradient(circle at 92% 32%, rgba(184, 198, 247, 0.32) 0 6px, transparent 7px);
  background-size: 340px 110px;
  opacity: 0.72;
  animation: floralDrift 18s linear infinite, floralGlowPulse 5.2s ease-in-out infinite;
}
.navbar::after {
  background-image:
    linear-gradient(104deg, rgba(255, 255, 255, 0) 0%, rgba(214, 217, 248, 0.42) 22%, rgba(255, 241, 184, 0.3) 48%, rgba(197, 203, 255, 0.38) 72%, rgba(255, 255, 255, 0) 100%),
    repeating-linear-gradient(-8deg, rgba(190, 200, 247, 0.18) 0 2px, rgba(255, 255, 255, 0) 2px 14px);
  background-size: 240% 100%, 160% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.8;
  animation: navWaveFlow 11s ease-in-out infinite;
}
.nav-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  position: relative;
  z-index: 1;
}
.nav-inner::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 40%;
  height: 44%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.52;
  background-repeat: repeat-x;
  background-size: 640px 64px;
  background-position: 0 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 64'%3E%3Cpath d='M0 46 C40 22 80 22 120 46 C160 70 200 70 240 46 C280 22 320 22 360 46 C400 70 440 70 480 46 C520 22 560 22 600 46 C613 54 626 58 640 58 L640 64 L0 64 Z' fill='%23c8d2ff' fill-opacity='0.42'/%3E%3C/svg%3E");
  animation: navWaveDrift 12s linear infinite;
}
.nav-inner::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 48%;
  height: 40%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-repeat: repeat-x;
  background-size: 700px 56px;
  background-position: 0 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 56'%3E%3Cpath d='M0 38 C44 16 88 16 132 38 C176 60 220 60 264 38 C308 16 352 16 396 38 C440 60 484 60 528 38 C572 16 616 16 660 38 C673 44 686 48 700 48 L700 56 L0 56 Z' fill='%23f7e8b7' fill-opacity='0.34'/%3E%3C/svg%3E");
  animation: navWaveDriftReverse 14s linear infinite;
}
.nav-inner > * {
  position: relative;
  z-index: 1;
}
.brand {
  min-width: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 56px;
  padding-inline-start: calc(92px + clamp(12px, 1.8vw, 18px));
  position: relative;
}
.brand-logo {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 10px 18px rgba(27, 34, 74, 0.24))
    drop-shadow(0 4px 10px rgba(173, 137, 255, 0.26));
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  margin-bottom: 0;
  animation: none;
}
.brand-text {
  font-family: "Playfair Display", "Manrope", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.45px;
  color: #6f7fcb;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 14px rgba(56, 68, 126, 0.24),
    0 3px 7px rgba(173, 137, 255, 0.22);
  filter: none;
  line-height: 1;
  white-space: nowrap;
  transform-origin: center bottom;
  animation: none;
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
[data-admin-required="true"] .nav-inner {
  flex-wrap: wrap;
  row-gap: 10px;
}
[data-admin-required="true"] .nav-links {
  flex: 1 1 640px;
  min-width: 0;
}
.admin-nav-utilities {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
.nav-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid #ced6ff;
  background: #eef1ff;
  color: #4b578f;
}
.nav-mode-badge.mode-online {
  border-color: #f3c6de;
  background: #ffe9f3;
  color: #8a3f6c;
}
.nav-link {
  position: relative;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3647;
  transition: color 180ms ease, background 180ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.nav-link.active,
.nav-link:hover {
  background: linear-gradient(135deg, #e3e8ff 0%, #d7defe 100%);
  color: #1f2e5e;
}
.nav-link.active::after,
.nav-link:hover::after {
  background: var(--accent-indigo);
}
.nav-link [data-cart-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(93, 107, 216, 0.12);
  color: #3246a7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.nav-link.cart-link-attention {
  background: linear-gradient(135deg, #eef2ff 0%, #dfe6ff 100%);
  color: #21367f;
}
.nav-link.cart-link-attention [data-cart-count] {
  background: #5d6bd8;
  color: #fff;
  box-shadow: 0 10px 18px rgba(93, 107, 216, 0.3);
}
.nav-link [data-cart-count].cart-count-bump {
  animation: cartCountBump 720ms ease;
}
.admin-nav-utilities .nav-mode-badge {
  min-height: 34px;
  padding: 4px 11px;
  background: linear-gradient(135deg, #f3f5ff 0%, #e9eeff 100%);
  border-color: rgba(174, 189, 248, 0.78);
  box-shadow: 0 8px 16px rgba(111, 128, 214, 0.12);
}
.admin-nav-utilities .nav-link {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(184, 198, 247, 0.72);
  background: linear-gradient(135deg, rgba(245, 247, 255, 0.96) 0%, rgba(233, 238, 255, 0.96) 100%);
  box-shadow: 0 8px 16px rgba(111, 128, 214, 0.12);
}
.admin-nav-utilities .nav-link::after {
  content: none;
}
.admin-nav-utilities .nav-link:hover {
  border-color: rgba(132, 154, 242, 0.88);
  background: linear-gradient(135deg, #edf1ff 0%, #dde5ff 100%);
}
.nav-utility-link {
  color: #29479f;
}
.nav-link-button {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  line-height: 1.2;
}
.nav-link-button:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}
.nav-link-button:active {
  transform: none;
}
.admin-nav-utilities .nav-link-button {
  min-height: 34px;
  box-shadow: 0 8px 16px rgba(111, 128, 214, 0.12);
}
.nav-link-logout {
  color: #8b2442;
  border-color: rgba(240, 180, 199, 0.9) !important;
  background: linear-gradient(135deg, #fff2f6 0%, #ffe6ee 100%) !important;
}
.nav-link-logout:hover {
  background: linear-gradient(135deg, #ffe9f0 0%, #ffdbe5 100%) !important;
  color: #7a1734;
  border-color: rgba(229, 148, 176, 0.92) !important;
}
.nav-link-logout:hover::after {
  background: #d6517f;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #afbcf6;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--n1);
  color: var(--n3);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7f93ef;
  box-shadow: 0 0 0 3px rgba(127, 147, 239, 0.22);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #7d8ff0 0%, #6074e4 100%);
  color: var(--n1);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(96, 116, 228, 0.32);
  filter: saturate(1.05);
}
button:active { transform: translateY(0) scale(0.98); }
.btn-soft {
  background: linear-gradient(135deg, #eef1ff 0%, #e1e6ff 100%);
  color: #344a9b;
  border: 1px solid rgba(154, 171, 247, 0.56);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.icon-btn-edit {
  color: #3f56af;
}
.admin-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.admin-row-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-toggle-btn {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.action-toggle-btn.action-deactivate {
  border: 1px solid #e5963d;
  background: linear-gradient(135deg, #fff3e2 0%, #ffe8cb 100%);
  color: #9a5710;
  box-shadow: 0 6px 14px rgba(229, 150, 61, 0.2);
}
.action-toggle-btn.action-deactivate:hover {
  box-shadow: 0 8px 16px rgba(229, 150, 61, 0.24);
  filter: saturate(1.04);
}
.action-toggle-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-warn {
  background: linear-gradient(135deg, #f8e7b5 0%, #f1dc9c 100%);
  color: #3d3420;
}

.category-admin-card {
  display: grid;
  gap: 12px;
}
.category-admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 198, 247, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.category-admin-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.category-admin-name {
  font-weight: 700;
}
.category-admin-slug {
  color: #667085;
  font-size: 12px;
}
.category-admin-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.category-admin-count {
  font-size: 12px;
  color: #475467;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(253, 253, 255, 0.94) 100%);
  border: 1px solid rgba(158, 176, 246, 0.52);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(112, 129, 229, 0.18);
  transition: box-shadow 220ms ease, border-color 180ms ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #8ea0f6, #f8e7b5);
}
.card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(115deg, rgba(197, 203, 255, 0), rgba(197, 203, 255, 0.75), rgba(255, 241, 184, 0), rgba(197, 203, 255, 0)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  background-size: 230% 100%;
  background-position: 120% 0;
  transition: opacity 180ms ease;
}
.card:hover {
  box-shadow: 0 16px 30px rgba(112, 129, 229, 0.24);
  border-color: rgba(125, 143, 240, 0.78);
}
.card:hover::after {
  opacity: 1;
  animation: insetSweep 900ms ease forwards;
}
@media (hover: none), (pointer: coarse) {
  .card:hover {
    box-shadow: 0 10px 20px rgba(107, 123, 195, 0.08);
    border-color: rgba(212, 220, 248, 0.86);
  }
  .card:hover::after {
    opacity: 0;
    animation: none;
  }
  .product-card .like-btn:hover,
  .like-btn:hover,
  .action-link:hover,
  .footer-social a:hover,
  .footer-list a:hover {
    transform: none;
    filter: none;
    background-color: inherit;
    border-bottom-color: currentColor;
  }
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 13px;
}
#products-grid .card,
#best-grid .card,
#trending-grid .card,
#recommended-grid .card {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 252, 254, 0.95) 100%) !important;
  padding: 8px;
  border-radius: 18px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  height: 100%;
  min-height: 268px;
}
.product-card-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .shop-image {
  width: 124px;
  height: 124px;
  margin: 0 auto;
  display: block;
  border: 1px solid rgba(184, 198, 247, 0.4);
  box-shadow: 0 6px 14px rgba(167, 179, 242, 0.12);
  object-fit: cover;
  object-position: 50% 50% !important;
  aspect-ratio: 1 / 1;
  transform: none;
  transition: none;
}
.product-card .shop-image.loaded {
  transform: none;
}
.product-card:hover .shop-image,
.product-card:focus-within .shop-image {
  transform: none;
  border-color: rgba(184, 198, 247, 0.4);
  box-shadow: 0 6px 14px rgba(167, 179, 242, 0.12);
  filter: none;
}
.product-card-body {
  display: grid;
  grid-template-rows: auto minmax(34px, auto) auto;
  gap: 6px;
  min-height: 98px;
  align-content: start;
}
.product-card h4 {
  margin: 0;
  line-height: 1.24;
  font-size: 14px;
  min-height: 0;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  min-height: 30px;
}
.price-group {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 2px;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.price-now {
  color: #1a2555;
  font-size: 17px;
  letter-spacing: 0.1px;
  flex: 0 1 auto;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-old {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 11px;
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price-row .detail-link {
  margin-left: 0;
  font-size: 11px;
  min-height: 26px;
  border-bottom: none;
  border-radius: 9px;
  padding: 0 10px;
  background: linear-gradient(135deg, rgba(173, 188, 251, 0.42) 0%, rgba(194, 205, 252, 0.46) 100%);
  color: #2f45a8;
  flex: 0 0 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
}
.product-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0;
}
.product-card .product-social-inline {
  justify-content: flex-start;
}
.product-card .rating-chip {
  padding: 2px 6px;
  border: none;
  background: rgba(255, 196, 45, 0.32);
  color: #704c00;
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
  border-radius: 999px;
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(184, 198, 247, 0.62);
  background: rgba(255, 255, 255, 0.78);
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}
.product-card .like-btn {
  padding: 2px 6px;
  border: none;
  background: rgba(132, 150, 184, 0.2);
  color: #39465f;
  box-shadow: none;
  border-radius: 999px;
}
.product-card .like-btn .heart {
  font-size: 13px;
}
.product-card .like-btn .like-pct {
  font-size: 10px;
}
.product-card .like-btn.active {
  border: none;
  background: rgba(248, 113, 113, 0.18);
  color: #c01048;
}
.product-card .like-btn:hover {
  transform: scale(1.04);
}
.product-card .like-btn.is-soft { background: rgba(148, 163, 184, 0.14); color: #475467; }
.product-card .like-btn.is-mid { background: rgba(59, 130, 246, 0.2); color: #1d4ed8; }
.product-card .like-btn.is-strong { background: rgba(34, 197, 94, 0.22); color: #0f7a33; }
.product-card .like-pct::after {
  content: "%";
  margin-left: 1px;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(184, 198, 247, 0.62);
  background: rgba(255, 255, 255, 0.82);
  color: #475467;
  font-weight: 700;
  min-height: 0;
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.like-btn .heart {
  line-height: 1;
  font-size: 14px;
  transform-origin: center;
}
.like-btn:hover { transform: translateY(-1px); }
.like-btn.active {
  border-color: #f9b6c8;
  background: #fff1f5;
  color: #c01048;
}
.like-btn.pop .heart {
  animation: heartPop 220ms ease-out;
}
.like-btn.pop::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(240, 108, 148, 0.45);
  animation: likeBurst 240ms ease-out;
  pointer-events: none;
}
.like-btn.is-loading {
  color: #667085;
  border-color: rgba(184, 198, 247, 0.55);
}
.like-btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(184, 198, 247, 0.34) 45%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%);
  animation: feedbackShimmer 760ms linear infinite;
}
.like-btn.is-loading .heart,
.like-btn.is-loading .like-pct {
  opacity: 0.72;
}
.detail-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.like-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475467;
}
.rating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.rate-btn {
  min-height: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  background: #fff;
  border: 1px solid rgba(184, 198, 247, 0.62);
  color: #475467;
}
.rate-btn.active {
  border-color: #f8ddb0;
  background: #fff8e8;
  color: #8a6130;
}
@keyframes heartPop {
  0% { transform: scale(0.84); }
  55% { transform: scale(1.26); }
  100% { transform: scale(1); }
}
@keyframes likeBurst {
  0% { transform: scale(0.62); opacity: 0.58; }
  100% { transform: scale(1.08); opacity: 0; }
}
@keyframes feedbackShimmer {
  to { transform: translateX(140%); }
}

/* Product detail gallery */
.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}
.product-detail-page .product-detail-main {
  display: grid;
  gap: 12px;
}
.product-detail-media {
  display: grid;
  gap: 10px;
}
.detail-main-image {
  width: 100%;
  max-width: 360px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(184, 198, 247, 0.58);
  box-shadow: 0 10px 22px rgba(167, 179, 242, 0.16);
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.thumb-btn {
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(184, 198, 247, 0.5);
  overflow: hidden;
  background: #fff;
  min-height: 0;
  box-shadow: 0 4px 10px rgba(31, 36, 48, 0.08);
}
.thumb-btn .shop-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  transform: none;
}
.thumb-btn.active {
  border-color: rgba(167, 179, 242, 0.95);
  box-shadow: 0 0 0 2px rgba(167, 179, 242, 0.22), 0 6px 14px rgba(31, 36, 48, 0.12);
}
.product-detail-content .price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.pdp-header-block {
  display: grid;
  gap: 6px;
}
.pdp-header-block h2 {
  margin: 0;
}
.pdp-meta-lines {
  display: grid;
  gap: 3px;
}
.pdp-meta-lines p {
  margin: 0;
}
.pdp-summary-block,
.pdp-copy-block,
.pdp-purchase-block {
  border: 1px solid rgba(199, 209, 244, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
}
.pdp-summary-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-top: 8px;
}
.pdp-copy-block {
  margin-top: 10px;
  padding: 12px;
}
.pdp-copy-block p {
  margin: 0;
  line-height: 1.65;
}
.pdp-purchase-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-top: 10px;
}
.pdp-purchase-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pdp-helper-note {
  margin: 0;
  color: #6a7694;
  font-size: 12px;
  line-height: 1.45;
}
.pdp-inline-total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: #5c698b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pdp-inline-total strong {
  color: #22305d;
  font-size: 16px;
}
.pdp-action-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-action-bar .qty-stepper {
  margin: 0;
  min-height: 42px;
}
.old-price {
  text-decoration: line-through;
  color: #667085;
  font-size: 14px;
}
.discount-chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffe9d6;
  border: 1px solid #ffd1a7;
  color: #9a4a0a;
}
.stock-line {
  margin: 0 0 10px;
  font-weight: 700;
}
.stock-line.is-in { color: #1f7a41; }
.stock-line.is-low { color: #99670a; }
.stock-line.is-out { color: #b42318; }
.qty-label {
  display: block;
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #5e6a93;
}
.qty-stepper {
  display: inline-grid;
  grid-template-columns: 40px minmax(64px, 78px) 40px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 2px 0 12px;
  border-radius: 999px;
  border: 1px solid #cfd7fb;
  background: #f5f7ff;
  max-width: fit-content;
}
.qty-btn {
  min-width: 40px;
  width: 40px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #445ac8;
  background: #ffffff;
  border: 1px solid #d4dcff;
  box-shadow: none;
}
.qty-btn:hover {
  background: #eef2ff;
  border-color: #b9c7ff;
}
.qty-btn:focus-visible {
  outline: none;
  border-color: #7f93ef;
  box-shadow: 0 0 0 2px rgba(127, 147, 239, 0.18);
}
.qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f3f4f8;
}
.qty-input {
  width: 100%;
  min-width: 64px;
  height: 34px;
  min-height: 34px;
  text-align: center;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid #d7defc;
  background: #ffffff;
  font-size: 16px;
  font-weight: 800;
  color: #29365f;
}
.qty-input:focus {
  border-color: #88a0ff;
  box-shadow: 0 0 0 2px rgba(136, 160, 255, 0.2);
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #b8c7ff;
  background: linear-gradient(135deg, #f6f8ff 0%, #e9efff 100%);
  color: #4460cf;
  filter: none;
  font-size: 0;
  line-height: 0;
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(88, 110, 219, 0.16);
}
.add-cart-btn-wide {
  width: auto;
  min-width: 164px;
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.add-cart-btn-wide span {
  display: inline-block;
}
.add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(88, 110, 219, 0.22);
}
.add-cart-btn.is-added {
  border-color: #68b38a;
  background: linear-gradient(135deg, #effcf4 0%, #ddf7e7 100%);
  color: #177245;
  box-shadow: 0 12px 20px rgba(29, 122, 65, 0.22);
}
.add-cart-btn:disabled {
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(88, 110, 219, 0.1);
  filter: none;
  cursor: not-allowed;
}
.add-cart-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.pdp-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pdp-badge { font-size: 11px; }
.badge-sold_out { background: #fee4e2; border-color: #fecdc9; color: #b42318; }
.badge-prescription_required { background: #fff4ed; border-color: #ffdcc2; color: #9a3412; }
.badge-clearance { background: #fff6d6; border-color: #ffe59c; color: #7a5805; }
.badge-on_sale { background: #e7f0ff; border-color: #cbdcff; color: #1d4ed8; }
.badge-new { background: #ecfdf3; border-color: #b7ebca; color: #027a48; }
.detail-info-hub {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
}
.info-hub-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.info-hub-title-row h3 {
  margin: 0;
}
.info-hub-title-sub {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}
.info-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.info-hub-card {
  border: 1px solid rgba(184, 198, 247, 0.52);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.info-hub-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.info-hub-card h5 {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #4c5e98;
}
.compact-accordion details {
  border: 1px solid rgba(184, 198, 247, 0.55);
  border-radius: 10px;
  padding: 7px 9px;
  margin-top: 6px;
}
.compact-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.compact-accordion ul {
  margin: 8px 0 0 16px;
}
.compact-bullet-list {
  margin: 8px 0 0 16px;
  display: grid;
  gap: 4px;
}
.expiry-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.expiry-pill.is-ok {
  background: #ecfdf3;
  border-color: #b7ebca;
  color: #027a48;
}
.expiry-pill.is-near {
  background: #fff6d6;
  border-color: #ffe59c;
  color: #7a5805;
}
.expiry-pill.is-expired {
  background: #fee4e2;
  border-color: #fecdc9;
  color: #b42318;
}
.warning-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #f8ddb0;
  color: #7a5805;
  font-weight: 600;
}
.cart-page .cart-main {
  display: grid;
  gap: 12px;
}
.cart-page .cart-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(181, 192, 244, 0.68);
  background: linear-gradient(135deg, rgba(241, 244, 255, 0.98) 0%, rgba(255, 248, 239, 0.96) 100%);
  color: #566283;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}
.cart-list-panel {
  display: grid;
  gap: 10px;
}
.cart-section-head {
  display: grid;
  gap: 2px;
}
.cart-section-head h3,
.cart-summary-head h3 {
  margin: 0;
  color: #24314f;
}
.cart-section-head p,
.cart-summary-head p {
  margin: 0;
}
.cart-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}
.cart-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-media .shop-image {
  width: 96px;
  height: 96px;
  margin: 0;
  border: 1px solid rgba(184, 198, 247, 0.42);
  box-shadow: 0 6px 14px rgba(167, 179, 242, 0.12);
}
.cart-item-main {
  display: grid;
  gap: 10px;
}
.cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cart-item-copy {
  display: grid;
  gap: 4px;
}
.cart-item-name {
  color: #253251;
  font-size: 15px;
  line-height: 1.4;
}
.cart-item-price {
  color: #314381;
  font-weight: 800;
}
.cart-item-stock {
  font-size: 12px;
}
.cart-item-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.cart-qty-field {
  display: grid;
  gap: 5px;
}
.cart-qty-field span,
.cart-line-total span {
  color: #60708f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.cart-qty-input {
  min-width: 86px;
  max-width: 96px;
  border-radius: 12px;
  height: 40px;
}
.cart-line-total {
  display: grid;
  gap: 5px;
  justify-items: end;
}
.cart-line-total strong {
  color: #1f2c58;
  font-size: 16px;
}
.cart-remove-btn {
  min-height: 36px;
  padding-inline: 14px;
}
.cart-summary-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
}
.cart-summary-lines {
  display: grid;
  gap: 10px;
}
.cart-summary-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #55627f;
}
.cart-summary-lines strong {
  color: #273454;
}
.cart-summary-lines .grand-total {
  padding-top: 10px;
  border-top: 1px solid rgba(220, 226, 247, 0.9);
  font-size: 16px;
  font-weight: 800;
}
.cart-summary-lines .grand-total strong {
  font-size: 21px;
}
.cart-summary-actions {
  display: grid;
  gap: 8px;
}
.cart-checkout-link {
  display: block;
}
.cart-checkout-link button,
.cart-continue-link {
  width: 100%;
}
.cart-checkout-link.is-disabled {
  pointer-events: none;
  opacity: 0.58;
}
.cart-continue-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}
.cart-empty-card {
  padding: 28px 18px;
}
.cart-empty-card a {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

/* Buyer home cards: animated gradient flow for Categories + Featured/New cards */
body.buyer-ui a.card[href^="/buyer/products.html?category="],
body.buyer-ui #best-grid .card,
body.buyer-ui #trending-grid .card,
body.buyer-ui #recommended-grid .card {
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(214, 217, 248, 0.58) 26%,
      rgba(255, 241, 184, 0.45) 50%,
      rgba(197, 203, 255, 0.56) 74%,
      rgba(255, 255, 255, 0.9) 100%
    );
  background-size: 240% 100%;
  animation: buyerCardGradientSweep 6.4s ease-in-out infinite;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: #f7e39a;
  color: #5b470d;
  border: 1px solid #dec267;
}
.badge-category { margin-top: 8px; }
.badge-fashion { background: #efe2ff; border-color: #dac4ff; color: #5c3f8c; }
.badge-cosmetics { background: #ffdfee; border-color: #f6c4df; color: #8a3f6c; }
.badge-groceries { background: #e6f6dc; border-color: #cfeab9; color: #2f6841; }
.badge-medical { background: #e2f0ff; border-color: #c3dbff; color: #245a8f; }
.badge-baby { background: #fff1d9; border-color: #f4ddb1; color: #8a6130; }

.section-title {
  display: block;
  width: 100%;
  margin: 14px 0 10px;
  padding: 0 2px 8px;
  border: 0;
  border-bottom: 1px solid rgba(184, 198, 247, 0.78);
  background: transparent;
  box-shadow: none;
}
.featured-title {
  position: relative;
  display: block;
  align-items: center;
  gap: 0;
  overflow: visible;
  padding-right: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: #2a3243;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.featured-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: clamp(160px, 24vw, 260px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 179, 242, 0.95) 0%, rgba(197, 203, 255, 0.82) 65%, rgba(248, 231, 181, 0.92) 100%);
  pointer-events: none;
  animation: none;
}
.featured-title::after {
  content: none;
}
.category-toggle-btn {
  border-color: rgba(154, 171, 247, 0.62);
}
.nav-category-toggle {
  min-width: 32px;
  width: 32px;
  height: 32px;
  margin: 0 2px;
  flex: 0 0 auto;
  align-self: center;
}
.category-toggle-btn::before {
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.category-sidebar {
  position: fixed;
  top: 86px;
  left: 14px;
  width: min(320px, calc(100vw - 28px));
  z-index: 55;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(154, 171, 247, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.97) 100%);
  box-shadow: 0 14px 30px rgba(73, 95, 196, 0.24);
  transform: translateX(calc(-100% - 22px));
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 220ms ease;
}
body.category-sidebar-open .category-sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.category-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.category-sidebar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2a3243;
}
.category-close-btn::before {
  width: 14px;
  height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6l-12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6l-12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.category-sidebar-list {
  display: grid;
  gap: 2px;
}
.category-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px 8px 24px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}
.category-sidebar-link::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #9aacfb;
}
.category-sidebar-link:hover {
  background: rgba(227, 234, 255, 0.7);
}
.category-sidebar-link .chip-title {
  font-size: 14px;
  font-weight: 700;
  color: #34406a;
}
.category-sidebar-link .chip-meta {
  display: none;
}
.category-sidebar-link.chip-fashion::before { background: #a984df; }
.category-sidebar-link.chip-cosmetics::before { background: #d975a9; }
.category-sidebar-link.chip-groceries::before { background: #60a979; }
.category-sidebar-link.chip-medical::before { background: #5a8fd4; }
.category-sidebar-link.chip-baby::before { background: #d8a75e; }
.category-sidebar-link.chip-fashion,
.category-sidebar-link.chip-cosmetics,
.category-sidebar-link.chip-groceries,
.category-sidebar-link.chip-medical,
.category-sidebar-link.chip-baby {
  background: transparent;
  border-color: transparent;
}
.category-sidebar-all {
  margin-top: 10px;
}
.category-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(32, 40, 76, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
body.category-sidebar-open .category-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.category-panel {
  padding: 12px 14px 14px;
  gap: 12px;
}
.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.category-panel-title {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: #2a3243;
  letter-spacing: 0.15px;
}
.category-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.category-chip {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(141, 162, 245, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 248, 255, 0.96) 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.category-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(118deg, rgba(197, 203, 255, 0.26), rgba(255, 241, 184, 0.2), rgba(197, 203, 255, 0.2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.category-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(103, 124, 230, 0.24);
}
.chip-title {
  font-size: 14px;
  font-weight: 700;
  color: #2b3346;
  line-height: 1.2;
}
.chip-meta {
  font-size: 12px;
  color: #6b7489;
  line-height: 1.25;
}
.chip-fashion { border-color: rgba(183, 157, 223, 0.52); background: linear-gradient(145deg, rgba(245, 236, 255, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-cosmetics { border-color: rgba(231, 164, 201, 0.52); background: linear-gradient(145deg, rgba(255, 238, 246, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-groceries { border-color: rgba(162, 205, 167, 0.58); background: linear-gradient(145deg, rgba(237, 250, 232, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-medical { border-color: rgba(157, 186, 227, 0.58); background: linear-gradient(145deg, rgba(236, 244, 255, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-baby { border-color: rgba(230, 193, 140, 0.58); background: linear-gradient(145deg, rgba(255, 246, 225, 0.95), rgba(255, 255, 255, 0.96)); }
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, rgba(228, 233, 255, 0.96) 0%, rgba(214, 223, 255, 0.95) 32%, rgba(242, 236, 223, 0.92) 68%, rgba(248, 250, 255, 0.96) 100%);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(170, 186, 236, 0.78);
  box-shadow: 0 12px 26px rgba(106, 127, 230, 0.1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 24%, rgba(255, 241, 184, 0.2) 0%, rgba(255, 241, 184, 0) 42%);
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 241, 184, 0.42) 0%, rgba(255, 241, 184, 0) 72%);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.home-page .hero {
  display: grid;
  gap: 10px;
  padding: 26px 24px 22px;
}
.home-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: start;
}
.home-hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}
.home-page .hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #223051;
}
.home-page .hero .muted {
  max-width: 54ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64718e;
}
.home-page #global-search {
  max-width: 520px;
  min-height: 44px;
  border-color: rgba(166, 180, 242, 0.76);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(104, 120, 190, 0.08);
}
.home-hero-mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.home-hero-mark img {
  display: block;
  width: min(100%, 220px);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(93, 111, 189, 0.18));
  opacity: 0.96;
}
.home-hero-mark .hero-mark-primary {
  width: min(100%, 220px);
  max-height: 180px;
}
.home-hero-art {
  display: none;
}
.home-hero-art-logo {
  display: block;
  width: min(100%, 340px);
  max-height: 280px;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(93, 111, 189, 0.22));
  opacity: 0.98;
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(192, 204, 247, 0.72);
  background: rgba(250, 252, 255, 0.72);
  color: #58668a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.42px;
  text-transform: uppercase;
}
.home-page main.container > .section-title.featured-title {
  margin-top: 14px;
  margin-bottom: 8px;
}
.home-usp-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-snap-type: x mandatory;
}
.home-usp-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 182px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 211, 245, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 255, 0.95) 100%);
  box-shadow: 0 10px 22px rgba(115, 129, 198, 0.07);
  scroll-snap-align: start;
}
.home-usp-card strong {
  color: #2b3657;
  font-size: 12px;
}
.home-usp-card span {
  color: #6e7a96;
  font-size: 11px;
  line-height: 1.35;
}
.home-order-flow,
.home-support-banner {
  margin-top: 16px;
}
.home-order-accordion {
  border: 1px solid rgba(197, 208, 244, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 12px 26px rgba(110, 125, 194, 0.08);
  overflow: hidden;
}
.home-order-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.home-order-summary::-webkit-details-marker {
  display: none;
}
.home-order-summary:focus-visible {
  outline: 2px solid rgba(124, 144, 236, 0.82);
  outline-offset: -2px;
}
.home-order-summary-copy {
  display: grid;
  gap: 4px;
}
.home-order-summary-title {
  color: #2a3453;
  font-size: 18px;
  line-height: 1.25;
}
.home-order-summary-sub {
  color: #6c7896;
  font-size: 12px;
  line-height: 1.45;
}
.home-order-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(171, 187, 246, 0.9);
  background: linear-gradient(180deg, rgba(236, 241, 255, 0.95) 0%, rgba(225, 233, 255, 0.95) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
}
.home-order-summary-icon::before {
  content: "+";
  color: #3f549f;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.home-order-accordion[open] .home-order-summary-icon {
  transform: rotate(45deg);
  background: linear-gradient(180deg, rgba(222, 232, 255, 0.96) 0%, rgba(213, 224, 255, 0.96) 100%);
}
.home-order-accordion.is-collapsing .home-order-summary-icon {
  transform: none;
  background: linear-gradient(180deg, rgba(236, 241, 255, 0.95) 0%, rgba(225, 233, 255, 0.95) 100%);
}
.home-order-panel {
  padding: 0 12px 12px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.home-order-panel .home-order-grid {
  margin-top: 2px;
}
.home-order-accordion[open] .home-order-panel {
  opacity: 1;
  transform: translateY(0);
}
.home-order-accordion.is-collapsing .home-order-panel {
  opacity: 0;
  transform: translateY(-2px);
}
.home-need-section {
  margin-top: 12px;
}
.home-section-copy {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
.home-section-copy .section-title {
  margin-bottom: 0;
}
.home-section-copy p {
  margin: 0;
}
.home-need-grid {
  display: flex;
  align-items: stretch;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-snap-type: x mandatory;
}
.home-need-card {
  display: grid;
  gap: 4px;
  min-height: 0;
  min-width: 170px;
  padding: 11px 12px;
  border: 1px solid rgba(195, 206, 245, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
  box-shadow: 0 12px 24px rgba(110, 125, 194, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  scroll-snap-align: start;
}
.home-need-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(110, 125, 194, 0.12);
}
.home-need-card strong {
  color: #2b3657;
  font-size: 13px;
}
.home-need-card span {
  color: #6c7896;
  font-size: 11px;
  line-height: 1.35;
  max-width: 21ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.need-fashion { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 241, 255, 0.97) 100%); }
.need-cosmetics { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 241, 247, 0.97) 100%); }
.need-groceries { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 251, 241, 0.97) 100%); }
.need-medical { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 255, 0.97) 100%); }
.need-baby { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 236, 0.97) 100%); }
.home-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-order-step {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(202, 212, 244, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(110, 125, 194, 0.07);
}
.step-no {
  color: #7380a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34px;
}
.home-order-step strong {
  color: #2b3657;
}
.home-order-step p {
  margin: 0;
  color: #6e7a96;
  font-size: 12px;
  line-height: 1.55;
}
.home-support-banner {
  background:
    radial-gradient(circle at right top, rgba(255, 236, 218, 0.52) 0%, rgba(255, 236, 218, 0) 32%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.98) 0%, rgba(255, 251, 245, 0.98) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(197, 208, 244, 0.86);
  box-shadow: 0 14px 28px rgba(108, 123, 191, 0.08);
}
.home-support-kicker {
  margin: 0 0 5px;
  color: #6a7896;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}
.home-support-banner h3 {
  margin: 0 0 6px;
  color: #2a3453;
  font-size: 20px;
}
.home-support-title {
  font-size: 18px;
}
.home-support-banner p {
  margin: 0;
}
.home-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.home-support-actions a {
  text-decoration: none;
}
.home-support-actions .btn-soft,
.home-support-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    align-items: center;
    padding-right: 24px;
    min-height: 0;
  }

  .home-hero-copy {
    max-width: none;
  }

  .home-hero-title-row {
    display: block;
    width: 100%;
  }

  .home-page .hero h1 {
    max-width: none;
    white-space: nowrap;
  }

  .home-hero-mark {
    display: none;
  }

  .home-hero-art {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    pointer-events: none;
  }
}
.home-support-actions .btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 171, 247, 0.56);
  background: linear-gradient(135deg, #eef1ff 0%, #e1e6ff 100%);
  color: #344a9b;
}
.home-support-actions .btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(96, 116, 228, 0.18);
  filter: saturate(1.03);
}
.home-page #recommended-meta {
  margin-top: -2px;
  margin-bottom: 12px;
  max-width: 70ch;
  color: #687694;
  font-size: 13px;
  line-height: 1.6;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
.table-wrap {
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(146, 166, 245, 0.5);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(106, 127, 230, 0.15);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--n1);
}
th {
  background: linear-gradient(180deg, #dde4ff 0%, #cfd8ff 100%);
  color: #223474;
  text-align: left;
  padding: 11px 10px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--n5);
  padding: 10px;
  vertical-align: top;
}
tr:nth-child(even) td { background: #fbfcff; }
tr:hover td { background: #f4f7ff; }

.footer {
  margin-top: 44px;
  border-top: 1px solid rgba(184, 198, 247, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 255, 0.96) 52%, rgba(255, 247, 220, 0.58) 100%);
  box-shadow: 0 -10px 30px rgba(167, 179, 242, 0.12);
}
.footer-shell {
  padding-top: 24px;
  padding-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(140px, 1fr));
  gap: 18px;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(74, 87, 146, 0.2));
}
.footer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2a3243;
}
.footer-text {
  margin: 4px 0 0;
  font-size: 13px;
  color: #626d82;
  max-width: 340px;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #576176;
}
.footer-list a {
  color: inherit;
  transition: color 160ms ease, text-decoration-color 160ms ease;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.footer-list a:hover {
  color: #3e4f93;
  text-decoration-color: rgba(62, 79, 147, 0.5);
}
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chip {
  border: 1px solid rgba(132, 148, 212, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: #49557a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(172, 184, 229, 0.55);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.footer-meta {
  display: grid;
  gap: 4px;
}
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #677088;
}
.footer-credit {
  margin: 0;
  font-size: 11px;
  color: #8a93a8;
  letter-spacing: 0.08px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  font-size: 12px;
  font-weight: 700;
  color: #4a588c;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(146, 160, 216, 0.35);
  background: rgba(255, 255, 255, 0.76);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(108, 126, 194, 0.55);
}
.muted { color: var(--n4); }
.alert-success {
  background: linear-gradient(135deg, var(--p2) 0%, #e3e6ff 100%);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #c9d1ff;
}
.alert-warning {
  background: linear-gradient(135deg, var(--y4) 0%, #fbecc2 100%);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--y5);
}
.hidden { display: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
.status-pending { background: #fff2c6; color: #6f5409; border-color: #e9d38a; }
.status-paid { background: #ddf7e9; color: #0f6e42; border-color: #addfbe; }
.status-shipped { background: #dde9ff; color: #204f98; border-color: #adc6ff; }
.status-completed { background: #d9f5e7; color: #0b6a3c; border-color: #9fdabc; }
.status-cancelled { background: #fde1e1; color: #972626; border-color: #efb4b4; }

.pay-unpaid { background: #fff0cc; color: #7a5b10; border-color: #e8c983; }
.pay-paid { background: #def7ea; color: #126f45; border-color: #b1e2c4; }
.pay-refunded { background: #eee8ff; color: #4e4190; border-color: #cfc0ff; }

.fallback-logo {
  object-fit: contain !important;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--n5);
}

.shop-image {
  background: #fff url("/img/CARE.svg") center / 62% no-repeat;
  opacity: 0;
  transform: scale(0.992);
  filter: blur(2px);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}
.shop-image.is-loading {
  animation: none;
}
.shop-image.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  animation: none;
  background-image: none;
}

@keyframes imagePulse {
  0% { filter: blur(6px) brightness(0.97); }
  50% { filter: blur(4px) brightness(1); }
  100% { filter: blur(6px) brightness(0.97); }
}

@media (max-width: 768px) {
  body.buyer-ui {
    background-image:
      radial-gradient(circle at 12% 8%, rgba(238, 240, 255, 0.44) 0%, rgba(244, 246, 255, 0.22) 34%, rgba(247, 248, 255, 0.12) 68%),
      linear-gradient(180deg, #f7f8ff 0%, #fbfcff 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: auto, auto;
    background-attachment: scroll, scroll;
  }
  body.buyer-ui::before,
  body.buyer-ui::after {
    opacity: 0.14;
    filter: blur(18px);
  }
  body.buyer-ui .navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.buyer-ui .navbar::before,
  body.buyer-ui .navbar::after,
  body.buyer-ui .nav-inner::before,
  body.buyer-ui .nav-inner::after {
    display: none;
  }
  body.buyer-ui .footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 255, 0.98) 100%);
    box-shadow: none;
  }
  body.buyer-ui .footer-brand-logo {
    filter: none;
  }
  .pdp-summary-block,
  .pdp-copy-block,
  .pdp-purchase-block {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
  }
  .detail-info-hub {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
  }
  .cart-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 255, 0.97) 100%);
  }
  .home-support-banner {
    background:
      radial-gradient(circle at right top, rgba(255, 236, 218, 0.52) 0%, rgba(255, 236, 218, 0) 32%),
      linear-gradient(135deg, rgba(246, 249, 255, 0.98) 0%, rgba(255, 251, 245, 0.98) 100%);
  }
}

@keyframes insetSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -10% 0; }
}

@keyframes floralDrift {
  0% { background-position: 0 0; }
  100% { background-position: 340px 0; }
}

@keyframes floralGlowPulse {
  0% {
    opacity: 0.42;
    filter: saturate(0.92) brightness(0.96);
  }
  50% {
    opacity: 0.82;
    filter: saturate(1.08) brightness(1.08);
  }
  100% {
    opacity: 0.5;
    filter: saturate(0.95) brightness(0.98);
  }
}

@keyframes navWaveFlow {
  0% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 100% 50%, 55% 50%; }
  100% { background-position: 0% 50%, 100% 50%; }
}

@keyframes navWaveDrift {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: 640px 100%;
  }
}

@keyframes navWaveDriftReverse {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: -700px 100%;
  }
}

@keyframes heroGradientSweep {
  0% {
    background-position: 0% 50%;
    opacity: 0.56;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.96;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.58;
  }
}

@keyframes buyerCardGradientSweep {
  0% { background-position: 0% 50%, right -48px bottom -44px; }
  50% { background-position: 100% 50%, right -48px bottom -44px; }
  100% { background-position: 0% 50%, right -48px bottom -44px; }
}
@keyframes featuredTitleFlow {
  0% {
    background-position: 0% 50%;
    opacity: 0.62;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.64;
  }
}
@keyframes featuredTitleBgFlow {
  0% { background-position: 0% 50%, right -34px center; }
  50% { background-position: 100% 50%, right -34px center; }
  100% { background-position: 0% 50%, right -34px center; }
}

@keyframes featuredTitleGlow {
  0% {
    box-shadow: 0 10px 22px rgba(167, 179, 242, 0.32);
    border-color: rgba(167, 179, 242, 0.72);
  }
  50% {
    box-shadow: 0 14px 34px rgba(167, 179, 242, 0.5);
    border-color: rgba(255, 241, 184, 0.86);
  }
  100% {
    box-shadow: 0 10px 22px rgba(167, 179, 242, 0.34);
    border-color: rgba(167, 179, 242, 0.72);
  }
}

@keyframes featuredTitleSpark {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.68;
  }
  50% {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
  }
}

@keyframes brandFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes brandFloatZoom {
  0% { transform: scale(1.35) translateY(0); }
  50% { transform: scale(1.35) translateY(-4px); }
  100% { transform: scale(1.35) translateY(0); }
}

@keyframes brandGlow {
  0% { text-shadow: 0 0 0 rgba(167, 179, 242, 0); }
  50% { text-shadow: 0 6px 16px rgba(167, 179, 242, 0.42); }
  100% { text-shadow: 0 0 0 rgba(167, 179, 242, 0); }
}

@keyframes brandGradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@media (max-width: 760px) {
  .nav-inner { flex-direction: column; align-items: stretch; }
  body[data-admin-required="true"] .nav-inner {
    justify-content: flex-start;
    align-content: flex-start;
    height: auto;
    min-height: 0;
  }
  body[data-admin-required="true"] .nav-links,
  body[data-admin-required="true"] .admin-nav-utilities {
    flex: 0 0 auto;
    min-height: 0;
  }
  .brand-link {
    gap: 10px;
    min-height: 48px;
    padding-inline-start: 0;
  }
  .brand-logo {
    width: 74px;
    height: 74px;
    position: static;
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
  }
  .brand-text { font-size: 19px; }
  .hero { padding: 22px; }
}

/* Micro-interaction layer */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.16);
  transform: translateY(6px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  font-weight: 600;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-info { background: #eef1ff; border-color: #cfd7ff; color: #36458a; }
.toast-success { background: #e8f7ef; border-color: #bde9cf; color: #136b3f; }
.toast-warn { background: #fff5dc; border-color: #f0deac; color: #7c6422; }
.toast-error { background: #feeceb; border-color: #f4c7c5; color: #a02626; }
.cart-feedback-root {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 121;
  pointer-events: none;
}
.cart-feedback-panel {
  width: min(360px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(176, 195, 255, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%),
    radial-gradient(circle at top right, rgba(232, 240, 255, 0.8) 0%, rgba(232, 240, 255, 0) 48%);
  box-shadow: 0 18px 34px rgba(71, 87, 153, 0.2);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: auto;
  position: relative;
}
.cart-feedback-root.show .cart-feedback-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.cart-feedback-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(230, 236, 255, 0.88);
  color: #53618d;
  box-shadow: none;
}
.cart-feedback-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #5d6bd8;
}
.cart-feedback-title {
  margin: 0;
  padding-right: 28px;
  font-size: 20px;
  line-height: 1.15;
}
.cart-feedback-copy {
  margin: 6px 0 0;
  font-weight: 700;
  color: #24314e;
}
.cart-feedback-meta {
  margin: 8px 0 0;
  display: grid;
  gap: 2px;
  color: #5d6887;
  font-size: 12px;
}
.cart-feedback-meta strong {
  color: #177245;
  font-size: 13px;
}
.cart-feedback-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cart-feedback-actions > * {
  flex: 1 1 0;
}
.cart-feedback-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7d8ff0 0%, #6074e4 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(96, 116, 228, 0.24);
}
.cart-feedback-dismiss {
  min-height: 38px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 14px;
}
.checkout-form { display: grid; gap: 10px; }
.field-label { display: inline-block; margin: 0 0 5px; font-weight: 700; }
.field-hint { color: var(--n4); font-size: 12px; }
.auth-shell {
  max-width: 620px;
  margin: 28px auto 10px;
}
.auth-card {
  padding: 20px;
}
.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.auth-form .form-group {
  display: grid;
  gap: 6px;
}
.auth-submit {
  justify-self: start;
  min-width: 130px;
}
.auth-register {
  margin: 10px 0 0;
}
.auth-hint,
.auth-msg {
  margin: 4px 0 0;
}
.auth-env-toggle {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}
.auth-env-row {
  align-items: center;
}
.auth-env-row select {
  max-width: 180px;
}
#app-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}
.product-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.product-form .form-group {
  display: grid;
  gap: 6px;
}
.product-form textarea {
  min-height: 82px;
  resize: vertical;
}
.product-image-preview {
  width: 180px;
  height: 180px;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dde2fb;
  box-shadow: 0 8px 16px rgba(31, 36, 48, 0.08);
  display: block;
}
.product-form .product-image-preview {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
}
.product-image-preview.hidden {
  display: none !important;
}
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
}
.product-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.product-image-preview-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dde2fb;
  box-shadow: 0 6px 14px rgba(31, 36, 48, 0.1);
}
.product-preview-actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 198, 247, 0.7);
}
.preview-btn {
  min-height: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1;
  background: linear-gradient(135deg, #e2e7ff 0%, #d6dcff 100%);
  color: #2f3a67;
}
.preview-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.preview-btn-danger {
  background: linear-gradient(135deg, #ffdede 0%, #ffcfcf 100%);
  color: #8a2f2f;
}
.product-preview-grid.hidden {
  display: none !important;
}
.form-row-three {
  display: grid;
  gap: 12px;
  align-items: end;
  grid-template-columns: 1fr 1fr 1fr;
}
.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  font-weight: 700;
}
.check-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.product-save-btn {
  justify-self: start;
}
.field-valid {
  border-color: #9ad7b8 !important;
  box-shadow: 0 0 0 3px rgba(154, 215, 184, 0.2) !important;
}
.field-invalid {
  border-color: #ef9a9a !important;
  box-shadow: 0 0 0 3px rgba(239, 154, 154, 0.2) !important;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-contact-card {
  display: grid;
  gap: 10px;
}
.payment-contact-box {
  border: 1px solid rgba(184, 198, 247, 0.72);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #f7f9ff 0%, #edf2ff 100%);
  color: #2d3b67;
  line-height: 1.5;
}
.pay-option {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--p4);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.pay-option input { width: auto; margin: 0; }
.pay-option.active {
  border-color: var(--p1);
  background: linear-gradient(135deg, #edf0ff 0%, #f8f9ff 100%);
  box-shadow: 0 8px 18px rgba(167, 179, 242, 0.22);
}

.checkout-summary h3 { margin-top: 0; }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--n5);
}
.summary-line.total {
  border-bottom: 0;
  padding-top: 12px;
  font-size: 18px;
}

button.is-loading {
  opacity: 0.85;
  cursor: progress;
}

.metric-card {
  display: grid;
  gap: 4px;
}
.metric-card h3 { margin: 0; font-size: 30px; }
.metric-card p { margin: 0; }
.metric-info { border-color: rgba(168, 183, 255, 0.65); }
.metric-pending { border-color: rgba(248, 231, 181, 0.9); background: linear-gradient(180deg, #fffef8 0%, #fff9e8 100%); }
.metric-warn { border-color: rgba(232, 217, 168, 0.9); background: linear-gradient(180deg, #fffdf4 0%, #fff5da 100%); }
.metric-good { border-color: rgba(176, 227, 202, 0.9); background: linear-gradient(180deg, #f7fffb 0%, #ecfbf3 100%); }

.skeleton-card {
  min-height: 106px;
  background: linear-gradient(90deg, #f0f3ff 20%, #e7ebff 45%, #f0f3ff 70%);
  background-size: 220% 100%;
  animation: skeletonMove 1.2s linear infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #f0f3ff 20%, #e7ebff 45%, #f0f3ff 70%);
  background-size: 220% 100%;
  animation: skeletonMove 1.2s linear infinite;
}
.skeleton-line.short { width: 60%; }
.plain-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

@keyframes skeletonMove {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 920px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .auth-shell { margin-top: 16px; }
  .auth-card { padding: 16px; }
  .auth-submit { width: 100%; justify-self: stretch; }
  .form-row-three { grid-template-columns: 1fr; }
  .product-image-preview { width: 150px; height: 150px; }
  .product-preview-grid {
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card {
    background-size: auto, 140px auto;
    background-position: center, right -28px bottom -26px;
  }
  .hero {
    background-size: auto, 220px auto;
    background-position: center, right -56px bottom -56px;
  }
  .section-title {
    padding-bottom: 7px;
  }
  .featured-title {
    animation: none;
    will-change: auto;
  }
  .featured-title::before {
    width: clamp(130px, 26vw, 200px);
    height: 3px;
    animation: none;
  }
  .featured-title::after {
    content: none;
  }
  .table-wrap {
    background-size: auto, 170px auto;
    background-position: center, right -38px bottom -42px;
  }
  .product-card {
    background-size: auto, 140% auto !important;
    background-position: center, center !important;
  }
  .product-card .shop-image {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .detail-info-hub {
    padding: 10px;
  }
  .info-hub-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .info-hub-card {
    padding: 9px;
  }
  .detail-main-image {
    max-width: 100%;
  }
}

.results-meta {
  margin: 12px 2px 14px;
  font-weight: 600;
}
.products-page .products-main {
  display: grid;
  gap: 10px;
}
.products-page .products-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(181, 192, 244, 0.68);
  background: linear-gradient(135deg, rgba(241, 244, 255, 0.98) 0%, rgba(255, 248, 239, 0.96) 100%);
  color: #566283;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}
.products-page .products-filter-card {
  border: 1px solid rgba(205, 214, 244, 0.86);
  background:
    radial-gradient(circle at top left, rgba(230, 236, 255, 0.9) 0%, rgba(230, 236, 255, 0) 26%),
    radial-gradient(circle at bottom right, rgba(255, 236, 218, 0.62) 0%, rgba(255, 236, 218, 0) 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.97) 56%, rgba(255, 250, 244, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(109, 124, 194, 0.07);
}
.products-page .products-filter-card {
  padding: 12px;
}
.products-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 0.8fr)) auto;
  gap: 8px;
  align-items: end;
}
.filter-field {
  display: grid;
  gap: 5px;
}
.filter-field-search {
  grid-column: span 1;
}
.filter-field-price input::-webkit-outer-spin-button,
.filter-field-price input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-field-price input[type=number] {
  -moz-appearance: textfield;
}
.filter-label {
  color: #61708e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}
.products-page .filter-field input,
.products-page .filter-field select {
  min-height: 39px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.products-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.products-filter-actions button {
  min-height: 39px;
  padding-inline: 14px;
}
.products-filter-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(221, 228, 248, 0.88);
}
.products-summary-block {
  display: grid;
  gap: 3px;
}
.products-page .results-meta {
  margin: 0;
  color: #33415f;
  font-size: 13px;
}
.products-summary-line {
  margin: 0;
  color: #73809f;
  font-size: 11.5px;
  line-height: 1.4;
}
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.active-filter-chips.is-empty {
  display: none;
}
.active-filter-chip,
.active-filter-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(190, 201, 242, 0.84);
  background: rgba(247, 249, 255, 0.96);
  color: #4b5c92;
  font-size: 11px;
  font-weight: 700;
}
.active-filter-chip {
  cursor: pointer;
}
.active-filter-chip.clear-all {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(227, 193, 153, 0.92);
  color: #9c6420;
}
.active-filter-chip .chip-x {
  font-size: 14px;
  line-height: 1;
  opacity: 0.66;
}
.products-empty-hint {
  padding: 11px 13px;
  border: 1px dashed rgba(201, 211, 245, 0.92);
  background: rgba(250, 252, 255, 0.86);
  color: #687692;
  text-align: center;
}
.products-empty-hint p {
  margin: 0;
  font-size: 12.5px;
}
.empty-state {
  text-align: center;
  padding: 22px;
}
.empty-state h3 {
  margin: 0 0 8px;
}
.ghost-card {
  pointer-events: none;
}
.ghost-card::after,
.ghost-card::before {
  display: none;
}

#orders-list {
  display: grid;
  gap: 12px;
}
.order-item-card {
  padding: 14px;
}
.order-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto auto;
  align-items: center;
  gap: 10px;
}
.order-number {
  font-size: 15px;
}
.order-created {
  font-size: 12px;
}
.order-total {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
}
.order-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.order-toggle-btn {
  min-height: 34px;
  min-width: 34px;
  height: 34px;
  width: 34px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3e8ff 0%, #d7defe 100%);
  color: #3a4f9d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(167, 179, 242, 0.25);
}
.order-toggle-btn svg {
  transition: transform 260ms ease;
}
.order-item-card.is-open .order-toggle-btn svg {
  transform: rotate(180deg);
}
.order-detail-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 260ms ease;
}
.order-detail-panel {
  margin-top: 12px;
  border-top: 1px dashed rgba(184, 198, 247, 0.66);
  padding-top: 12px;
}
.order-detail-content {
  display: grid;
  gap: 10px;
}
.order-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 13px;
}
.order-item-lines {
  display: grid;
  gap: 6px;
}
.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 198, 247, 0.44);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fafbff;
}
.order-line .line-name {
  font-weight: 600;
}
.order-line .line-qty {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}
.order-line .line-total {
  font-weight: 700;
  white-space: nowrap;
}
.order-amounts {
  display: grid;
  gap: 6px;
  border-top: 1px dashed rgba(184, 198, 247, 0.66);
  padding-top: 10px;
}
.order-amounts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-amounts .grand {
  font-size: 16px;
}

/* Admin orders inline expand/collapse */
.admin-order-toggle {
  min-height: 34px;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3e8ff 0%, #d7defe 100%);
  color: #3a4f9d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(167, 179, 242, 0.25);
}
.admin-order-toggle svg {
  transition: transform 260ms ease;
}
.admin-order-row.is-open .admin-order-toggle svg {
  transform: rotate(180deg);
}
.admin-order-detail-row td {
  padding-top: 0;
}
.admin-order-detail-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 260ms ease;
}
.admin-order-detail-panel {
  margin-top: 4px;
  border-top: 1px dashed rgba(184, 198, 247, 0.66);
  padding-top: 12px;
}
.admin-order-detail-content {
  display: grid;
  gap: 10px;
}
.admin-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 13px;
}
.admin-order-lines {
  display: grid;
  gap: 6px;
}
.admin-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 198, 247, 0.44);
  border-radius: 10px;
  padding: 7px 9px;
  background: #fafbff;
}
.admin-order-line .name {
  font-weight: 600;
}
.admin-order-line .qty {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}
.admin-order-line .total {
  font-weight: 700;
  white-space: nowrap;
}
.admin-order-amounts {
  display: grid;
  gap: 6px;
  border-top: 1px dashed rgba(184, 198, 247, 0.66);
  padding-top: 10px;
}
.admin-order-amounts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-order-amounts .grand {
  font-size: 16px;
}

/* Dashboard charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.chart-card {
  min-height: 260px;
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chart-head h4 {
  margin: 0;
}

.bar-chart {
  display: grid;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 8px;
}
.bar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  color: #454d5d;
}
.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf0ff;
  overflow: hidden;
  border: 1px solid #d8dfff;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.bar-fill.grow {
  width: var(--bar-target, 0%);
}
.bar-value {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #555f71;
}
.bar-pending { background: linear-gradient(90deg, #f8e7b5, #f3d886); }
.bar-paid { background: linear-gradient(90deg, #b7e8ce, #8fdcb1); }
.bar-shipped { background: linear-gradient(90deg, #c5d7ff, #9ebcf9); }
.bar-completed { background: linear-gradient(90deg, #9ce1c2, #70ceaa); }
.bar-cancelled { background: linear-gradient(90deg, #f6c0c0, #ef9a9a); }

.donut-wrap {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
}
.donut-chart {
  --cod: 0;
  --online: 0;
  width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(
    #b7a4ff 0 calc(var(--cod) * 1%),
    #7ba5ff calc(var(--cod) * 1%) calc((var(--cod) + var(--online)) * 1%),
    #eef1ff 0 100%
  );
  display: grid;
  place-items: center;
  animation: donutPop 700ms ease;
  box-shadow: inset 0 0 0 1px rgba(184, 198, 247, 0.6);
}
.donut-center {
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 16px rgba(31, 36, 48, 0.08);
}
.donut-center strong {
  font-size: 24px;
  line-height: 1;
}
.donut-center span {
  font-size: 12px;
  color: #6b7280;
}

.chart-legend {
  width: 100%;
  display: grid;
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9ff;
  border: 1px solid #dde2fb;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}
.legend-item strong { margin-left: auto; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.dot.cod { background: #b7a4ff; }
.dot.online { background: #7ba5ff; }

.chart-tooltip {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  background: rgba(31, 36, 48, 0.92);
  color: #fff;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes donutPop {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 980px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

#sales-kpis {
  margin-bottom: 10px;
}
.kpi-priority-board {
  display: grid;
  gap: 8px;
}
.kpi-priority-row {
  border: 1px solid rgba(184, 198, 247, 0.58);
  border-radius: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.66);
}
.kpi-row-head {
  margin: 0 0 7px;
  padding: 0 2px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed rgba(190, 201, 245, 0.72);
}
.kpi-row-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi-critical .kpi-row-head {
  color: #9f4f10;
}
.kpi-warning .kpi-row-head {
  color: #7b6190;
}
.kpi-healthy .kpi-row-head {
  color: #19744b;
}
.small-table-wrap {
  overflow: auto;
  border-radius: 10px;
}
.card-inner-list {
  display: grid;
  gap: 8px;
}

.dashboard-controls {
  align-items: center;
}
.range-date {
  max-width: 165px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.page-head-main {
  display: grid;
  gap: 4px;
}
.page-title {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 700;
  color: #2a3243;
}
.page-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #70788a;
  flex-wrap: wrap;
}
.page-crumbs .sep {
  opacity: 0.5;
}
.smart-back-btn {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0;
  line-height: 0;
}
.smart-back-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 5.5L9 12l6.5 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 5.5L9 12l6.5 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.smart-back-btn.category-toggle-btn::before {
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h11M4 18h8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='12' r='2' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h11M4 18h8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='12' r='2' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
}
.smart-back-btn.nav-category-toggle:hover {
  transform: translateY(-1px);
}
.smart-back-btn.category-close-btn::before {
  width: 14px;
  height: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6l-12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6l-12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.toolbar-row {
  margin-bottom: 10px;
  align-items: center;
  gap: 10px;
}
.toolbar-title {
  margin: 0;
}
.toolbar-field-sm {
  max-width: 170px;
}
.toolbar-btn-sm {
  max-width: 150px;
  width: 100%;
}
.toolbar-btn-md {
  max-width: 180px;
  width: 100%;
}
.tight-top-title {
  margin-top: 0;
}

.historical-orders-page {
  background:
    radial-gradient(circle at top left, rgba(229, 236, 255, 0.72) 0%, rgba(229, 236, 255, 0) 28%),
    radial-gradient(circle at bottom right, rgba(255, 235, 216, 0.48) 0%, rgba(255, 235, 216, 0) 26%),
    linear-gradient(180deg, #f8faff 0%, #fdfcff 100%);
}
.historical-orders-page .page-head {
  padding: 14px 16px;
  border: 1px solid rgba(196, 206, 242, 0.8);
  background:
    linear-gradient(135deg, rgba(249, 251, 255, 0.96) 0%, rgba(241, 245, 255, 0.96) 58%, rgba(255, 249, 243, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(102, 117, 190, 0.1);
}
.historical-orders-page .page-head-main {
  gap: 6px;
}
.historical-orders-page .historical-mode-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(140, 154, 220, 0.42);
  background: linear-gradient(135deg, rgba(234, 240, 255, 0.98) 0%, rgba(246, 236, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #516096;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}
.historical-orders-page .page-title {
  color: #2f3d74;
  letter-spacing: 0.2px;
}
.historical-orders-page .page-crumbs {
  color: #76809c;
}
.historical-orders-page .page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.historical-orders-page .archive-hero-strip {
  margin: 12px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 212, 246, 0.86);
  background:
    linear-gradient(90deg, rgba(244, 247, 255, 0.98) 0%, rgba(255, 250, 244, 0.98) 100%);
  box-shadow: inset 3px 0 0 #8a95d8;
}
.historical-orders-page .archive-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.historical-orders-page .archive-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(199, 209, 244, 0.9);
  background: rgba(255, 255, 255, 0.76);
  color: #5d6888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12px;
}
.historical-orders-page .archive-hero-strip p {
  margin: 4px 0 0;
  color: #606c88;
  font-size: 13px;
}
.historical-orders-page .archive-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: #516096;
}
.historical-orders-page .archive-hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(180deg, #7d8dde 0%, #5f72ce 100%);
  box-shadow: 0 0 0 4px rgba(125, 141, 222, 0.14);
}
.historical-orders-page .toolbar-row {
  padding: 10px 12px;
  border: 1px solid rgba(212, 220, 248, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 249, 255, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(107, 123, 195, 0.06);
}
.historical-orders-page .toolbar-row select,
.historical-orders-page .toolbar-row input {
  border-color: rgba(188, 200, 240, 0.96);
  background: rgba(252, 253, 255, 0.98);
}
.historical-orders-page .toolbar-row .btn-soft {
  background: linear-gradient(135deg, #eef2ff 0%, #dde5ff 100%);
  border-color: rgba(150, 167, 241, 0.66);
}
.historical-orders-page .results-meta {
  margin-top: 8px;
  padding-left: 2px;
  color: #6e7995;
  font-weight: 600;
}
.historical-orders-page .table-wrap {
  border: 1px solid rgba(211, 219, 247, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(100, 116, 184, 0.08);
  position: relative;
}
.historical-orders-page .table-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #8492da 0%, #a399e8 48%, #e4b784 100%);
}
.historical-orders-page thead tr {
  background:
    linear-gradient(90deg, rgba(236, 241, 255, 0.98) 0%, rgba(246, 239, 255, 0.98) 52%, rgba(255, 246, 237, 0.98) 100%);
}
.historical-orders-page tbody td {
  border-bottom-color: rgba(227, 232, 247, 0.9);
}
.historical-orders-page .admin-order-row:hover td {
  background: rgba(242, 246, 255, 0.78);
}
.historical-orders-page .admin-order-detail-panel {
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(255, 252, 247, 0.98) 100%);
  border: 1px solid rgba(221, 227, 248, 0.9);
}
.historical-orders-page .admin-order-toggle {
  background: linear-gradient(135deg, #ebeefe 0%, #dde3ff 100%);
  color: #4658a8;
  box-shadow: 0 6px 14px rgba(141, 154, 216, 0.18);
}
.historical-orders-page .status-badge.pay-unpaid {
  border-color: rgba(209, 186, 142, 0.72);
  background: rgba(255, 245, 227, 0.95);
  color: #9b661f;
}
.historical-orders-page .status-badge.pay-paid {
  border-color: rgba(160, 195, 251, 0.72);
  background: rgba(236, 244, 255, 0.95);
  color: #3860ae;
}
.historical-orders-page .archive-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 5px 10px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}
.historical-orders-page .archive-source-badge.archive {
  border-color: rgba(149, 162, 225, 0.72);
  background: linear-gradient(135deg, rgba(236, 241, 255, 0.98) 0%, rgba(244, 237, 255, 0.98) 100%);
  color: #52619c;
}
.historical-orders-page .archive-source-badge.live {
  border-color: rgba(153, 205, 185, 0.82);
  background: linear-gradient(135deg, rgba(229, 248, 239, 0.98) 0%, rgba(239, 252, 246, 0.98) 100%);
  color: #277055;
}

.admin-harmony-page {
  background:
    radial-gradient(circle at top left, rgba(229, 236, 255, 0.62) 0%, rgba(229, 236, 255, 0) 28%),
    radial-gradient(circle at bottom right, rgba(255, 235, 216, 0.34) 0%, rgba(255, 235, 216, 0) 24%),
    linear-gradient(180deg, #f8faff 0%, #fcfdff 100%);
}
.admin-harmony-page .page-head {
  padding: 14px 16px;
  border: 1px solid rgba(196, 206, 242, 0.8);
  background:
    linear-gradient(135deg, rgba(249, 251, 255, 0.96) 0%, rgba(241, 245, 255, 0.96) 58%, rgba(255, 249, 243, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(102, 117, 190, 0.08);
}
.admin-harmony-page .page-head-main {
  gap: 6px;
}
.admin-harmony-page .page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-harmony-page .page-title {
  color: #2f3d74;
  letter-spacing: 0.2px;
}
.admin-harmony-page .page-crumbs {
  color: #76809c;
}
.admin-mode-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(140, 154, 220, 0.42);
  background: linear-gradient(135deg, rgba(234, 240, 255, 0.98) 0%, rgba(246, 236, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #516096;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}
.admin-intro-strip {
  margin: 12px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 212, 246, 0.86);
  background:
    linear-gradient(90deg, rgba(244, 247, 255, 0.98) 0%, rgba(255, 250, 244, 0.98) 100%);
  box-shadow: inset 3px 0 0 #8a95d8;
}
.admin-intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: #516096;
}
.admin-intro-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(180deg, #7d8dde 0%, #5f72ce 100%);
  box-shadow: 0 0 0 4px rgba(125, 141, 222, 0.14);
}
.admin-intro-strip p {
  margin: 4px 0 0;
  color: #606c88;
  font-size: 13px;
}
.admin-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(199, 209, 244, 0.9);
  background: rgba(255, 255, 255, 0.76);
  color: #5d6888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12px;
}
.admin-filter-card {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 220, 248, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 255, 0.95) 100%);
  box-shadow: 0 10px 20px rgba(107, 123, 195, 0.06);
}
.admin-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #324165;
  letter-spacing: 0.12px;
}
.admin-section-copy {
  margin: 4px 0 0;
  color: #66738f;
  font-size: 13px;
  line-height: 1.45;
}
.admin-harmony-page .toolbar-row {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.admin-harmony-page .toolbar-row select,
.admin-harmony-page .toolbar-row input {
  border-color: rgba(188, 200, 240, 0.96);
  background: rgba(252, 253, 255, 0.98);
}
.admin-harmony-page .results-meta {
  margin: 8px 0 0;
  color: #6e7995;
  font-weight: 600;
}
.admin-pager {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-pager .muted {
  margin: 0;
}
.admin-inline-form {
  display: grid;
  gap: 10px;
}
.admin-inline-link {
  display: flex;
  flex: 1 1 0;
}
.admin-inline-link > button {
  width: 100%;
}
.admin-content-card {
  border: 1px solid rgba(211, 219, 247, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(100, 116, 184, 0.08);
  position: relative;
}
.admin-content-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #8492da 0%, #a399e8 48%, #e4b784 100%);
}
.admin-harmony-page thead tr {
  background:
    linear-gradient(90deg, rgba(236, 241, 255, 0.98) 0%, rgba(246, 239, 255, 0.98) 52%, rgba(255, 246, 237, 0.98) 100%);
}
.admin-harmony-page tbody td {
  border-bottom-color: rgba(227, 232, 247, 0.9);
}
.admin-harmony-page .table-wrap {
  position: relative;
}
.admin-harmony-page .check-field {
  min-height: 42px;
}
.finance-closing-card {
  margin-bottom: 10px;
  padding: 14px 16px;
}
.finance-closing-head {
  margin-bottom: 12px;
}
.finance-closing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finance-closing-form-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.finance-closing-form-row + .finance-closing-form-row {
  margin-top: 10px;
}
.finance-closing-input,
.finance-closing-note {
  width: 100%;
  max-width: 100%;
}
.finance-closing-check {
  justify-content: center;
  white-space: nowrap;
}
.finance-closing-extra {
  margin-top: 12px;
  border: 1px solid rgba(212, 220, 248, 0.86);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}
.finance-closing-extra-body {
  padding-top: 0;
}
.finance-closing-form-row-files {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.finance-closing-note {
  resize: vertical;
  min-height: 92px;
}
.finance-closing-meta {
  margin-top: 12px;
}
.finance-closing-history {
  margin-top: 10px;
}
.finance-closing-history-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finance-closing-history-card {
  border: 1px solid rgba(211, 220, 245, 0.9);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(100, 116, 184, 0.08);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.finance-closing-history-topline,
.finance-closing-history-meta,
.finance-closing-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.finance-closing-history-card h4 {
  margin: 0;
  font-size: 15px;
  color: #324165;
}
.finance-closing-range,
.finance-closing-files,
.finance-closing-note-copy,
.finance-closing-history-empty {
  margin: 0;
  color: #67748f;
  font-size: 12.5px;
  line-height: 1.55;
}
.finance-closing-history-meta {
  color: #5f6b86;
  font-size: 11.5px;
  font-weight: 600;
}
.finance-closing-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(172, 186, 235, 0.85);
  background: rgba(236, 242, 255, 0.94);
  color: #48608f;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.finance-closing-chip.subtle {
  border-color: rgba(213, 219, 240, 0.95);
  background: rgba(247, 249, 255, 0.96);
  color: #5f6a83;
  text-transform: none;
  letter-spacing: 0.1px;
}
.product-lifecycle-panel {
  gap: 12px;
}
.product-lifecycle-policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-lifecycle-preview-grid {
  gap: 12px;
}
.product-lifecycle-danger-card {
  border-color: rgba(231, 204, 187, 0.92);
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.product-lifecycle-danger-card .chart-head h4 {
  color: #7a4c21;
}

/* Dashboard Pro Pack: compact + high-density layout */
.dashboard-main {
  gap: 10px;
}
.dashboard-main .card,
.dashboard-main .chart-card,
.dashboard-main .small-table-wrap,
.dashboard-main .metric-card,
.dashboard-main .legend-item {
  border-radius: 0;
}
.dashboard-main .smart-back-btn,
.dashboard-main .toolbar-btn-sm,
.dashboard-main .toolbar-btn-md,
.dashboard-main .toolbar-field-sm,
.dashboard-main .range-date {
  border-radius: 0;
}
.dashboard-main .section-title {
  margin: 2px 0 4px;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.dashboard-main .dashboard-filter-card {
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 251, 255, 0.96) 100%),
    repeating-linear-gradient(0deg, rgba(226, 232, 255, 0.12) 0 1px, rgba(255, 255, 255, 0) 1px 24px);
}
.dashboard-main .dashboard-tab-shell {
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 255, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(226, 232, 255, 0.12) 0 1px, rgba(255, 255, 255, 0) 1px 18px);
}
.dashboard-main .dashboard-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-main .dashboard-tab-btn {
  border: 1px solid rgba(177, 193, 247, 0.7);
  background: rgba(244, 248, 255, 0.88);
  color: #445170;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.dashboard-main .dashboard-tab-btn:hover {
  border-color: rgba(142, 165, 245, 0.9);
  background: rgba(236, 244, 255, 0.95);
}
.dashboard-main .dashboard-tab-btn.is-active {
  color: #1f2f59;
  border-color: rgba(121, 145, 240, 0.95);
  background:
    linear-gradient(92deg, rgba(232, 241, 255, 0.98) 0%, rgba(245, 241, 255, 0.98) 100%);
  box-shadow: 0 4px 10px rgba(99, 117, 208, 0.2);
}
.dashboard-main .dashboard-tab-hint {
  margin: 6px 1px 0;
  font-size: 11px;
  letter-spacing: 0.12px;
}
.dashboard-main .dashboard-tab-panel {
  display: grid;
  gap: 10px;
  animation: dashboardPanelReveal 180ms ease-out;
}
.dashboard-main .dashboard-tab-panel[hidden] {
  display: none;
}
.dashboard-main .dashboard-maintenance-panel {
  margin-top: 0;
  padding: 10px 12px;
  border-top: 0;
}
.dashboard-main .results-meta {
  margin: 4px 2px 8px;
  font-size: 12px;
}
.dashboard-main .toolbar-row {
  margin-bottom: 4px;
  gap: 8px;
}
.dashboard-main .dashboard-actions-row {
  align-items: center;
  gap: 8px;
}
.dashboard-main .dashboard-maintenance-row {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(213, 222, 252, 0.72);
}
.dashboard-main .maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dashboard-main .maintenance-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #5d6681;
}
.dashboard-main .maintenance-meta {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #65708b;
}
.dashboard-main .purge-panel {
  display: grid;
  gap: 8px;
}
.dashboard-main .purge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-main .purge-verify-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #5d6681;
}
.dashboard-main .purge-verify-input {
  width: 100%;
  max-width: 100%;
}
.dashboard-main .purge-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.dashboard-main .product-lifecycle-policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-main .product-lifecycle-preview-grid {
  gap: 10px;
}
.dashboard-main .product-lifecycle-panel .maintenance-meta {
  margin: 0;
}
.dashboard-main .purge-summary-card {
  border: 1px solid rgba(184, 198, 247, 0.52);
  background: rgba(246, 249, 255, 0.82);
  padding: 8px 9px;
  display: grid;
  gap: 2px;
}
.dashboard-main .purge-summary-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: #5f6984;
}
.dashboard-main .purge-summary-card strong {
  font-size: 15px;
  line-height: 1.2;
  color: #2c3650;
}
.dashboard-main .purge-preview-wrap {
  border: 1px solid rgba(205, 215, 247, 0.72);
  overflow: auto;
}
.dashboard-main .purge-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.dashboard-main .purge-preview-table th,
.dashboard-main .purge-preview-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(221, 228, 248, 0.8);
  text-align: left;
  font-size: 11.5px;
  color: #3c4562;
}
.dashboard-main .purge-preview-table th {
  font-size: 10.5px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  color: #616b88;
  background: linear-gradient(90deg, rgba(241, 245, 255, 0.95) 0%, rgba(249, 244, 255, 0.95) 100%);
}
.dashboard-main .purge-eligibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28px;
  border: 1px solid transparent;
}
.dashboard-main .purge-eligibility.eligible {
  color: #1f6f4a;
  border-color: rgba(121, 196, 158, 0.72);
  background: rgba(231, 250, 240, 0.92);
}
.dashboard-main .purge-run-log {
  border-top: 1px dashed rgba(196, 207, 245, 0.8);
  padding-top: 7px;
}
.dashboard-main .dashboard-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(184, 198, 247, 0.52);
  background: rgba(243, 246, 255, 0.74);
  color: #46506a;
  font-size: 12px;
  font-weight: 700;
}
.dashboard-main .dashboard-check input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--accent-indigo);
}

.dashboard-main #summary-cards,
.dashboard-main #funnel-rates,
.dashboard-main #risk-cards,
.dashboard-main #customer-insights {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-main #risk-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-main .kpi-row-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-main .metric-card {
  min-height: 82px;
  padding: 10px 12px;
  gap: 3px;
  box-shadow: 0 8px 20px rgba(112, 129, 229, 0.17);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 248, 255, 0.9) 36%, rgba(238, 242, 255, 0.88) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 12px);
  isolation: isolate;
  overflow: hidden;
}
.dashboard-main .metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.34) 43%, rgba(255, 255, 255, 0.07) 58%, rgba(255, 255, 255, 0) 76%);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.dashboard-main .metric-card::before {
  height: 3px;
}
.dashboard-main .metric-title {
  margin: 0;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.42px;
  color: #5d6681;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dashboard-main .metric-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.dashboard-main .metric-compare {
  flex: 0 0 auto;
  justify-self: end;
  align-self: start;
  min-height: 18px;
  max-width: 100%;
  padding: 1px 5px;
  border: 1px solid rgba(184, 198, 247, 0.6);
  background: rgba(248, 250, 255, 0.92);
  color: #5a6480;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.dashboard-main .metric-compare-up {
  color: #19744b;
  border-color: rgba(168, 221, 194, 0.9);
  background: rgba(236, 250, 243, 0.95);
}
.dashboard-main .metric-compare-down {
  color: #aa5b1a;
  border-color: rgba(238, 203, 169, 0.9);
  background: rgba(255, 243, 226, 0.96);
}
.dashboard-main .metric-compare-flat {
  color: #59627a;
}
.dashboard-main .metric-value {
  margin: 0;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.1;
  font-weight: 800;
  color: #222b3d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.1px;
}
.dashboard-main .metric-card.has-help {
  overflow: visible;
  grid-template-rows: auto minmax(0, 1fr) auto;
  z-index: 2;
}
.dashboard-main .metric-card.help-open {
  z-index: 12;
}
.dashboard-main .metric-help-wrap {
  position: relative;
  display: grid;
  width: 100%;
  justify-items: end;
  gap: 8px;
  justify-self: end;
  align-self: end;
  margin-top: 6px;
  z-index: 3;
}
.dashboard-main .metric-help-btn {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(203, 141, 31, 0.42);
  background: linear-gradient(180deg, rgba(255, 250, 231, 0.98) 0%, rgba(255, 239, 191, 0.98) 100%);
  color: #8b5a00;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(187, 144, 62, 0.18);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.dashboard-main .metric-help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(187, 144, 62, 0.22);
}
.dashboard-main .metric-help-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 176, 78, 0.22);
}
.metric-help-flyout {
  position: fixed;
  left: -9999px;
  top: -9999px;
  z-index: 9999;
  width: min(250px, calc(100vw - 40px));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(198, 208, 243, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 255, 0.99) 100%);
  color: #32405e;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 16px 30px rgba(88, 101, 152, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.metric-help-flyout.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.metric-help-flyout p {
  margin: 0;
}
.dashboard-main .skeleton-card {
  min-height: 82px;
}

.dashboard-main .metric-default {
  border-color: rgba(168, 183, 255, 0.56);
}
.dashboard-main .metric-info {
  border-color: rgba(146, 171, 255, 0.62);
  background:
    linear-gradient(165deg, rgba(248, 251, 255, 0.94) 0%, rgba(238, 245, 255, 0.9) 42%, rgba(231, 239, 255, 0.88) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 12px);
}
.dashboard-main .metric-pending {
  border-color: rgba(239, 221, 163, 0.86);
  background:
    linear-gradient(165deg, rgba(255, 253, 244, 0.95) 0%, rgba(255, 248, 224, 0.9) 42%, rgba(255, 243, 206, 0.88) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 12px);
}
.dashboard-main .metric-warn {
  border-color: rgba(234, 199, 156, 0.86);
  background:
    linear-gradient(165deg, rgba(255, 250, 241, 0.95) 0%, rgba(255, 241, 219, 0.9) 42%, rgba(255, 231, 199, 0.88) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 12px);
}
.dashboard-main .metric-good {
  border-color: rgba(172, 221, 197, 0.9);
  background:
    linear-gradient(165deg, rgba(248, 255, 251, 0.95) 0%, rgba(236, 250, 243, 0.9) 42%, rgba(226, 245, 236, 0.88) 100%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    repeating-linear-gradient(-26deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 12px);
}

.dashboard-main .dashboard-charts {
  gap: 10px;
  margin-bottom: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.dashboard-main .chart-card {
  min-height: 220px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 253, 255, 0.95) 100%),
    repeating-linear-gradient(0deg, rgba(226, 232, 255, 0.12) 0 1px, rgba(255, 255, 255, 0) 1px 26px);
}
.dashboard-main .chart-head {
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(213, 222, 252, 0.8);
}
.dashboard-main .chart-head h4 {
  font-size: 15px;
  letter-spacing: 0.2px;
}
.dashboard-main .chart-head .muted {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.dashboard-main .bar-chart {
  gap: 7px;
}
.dashboard-main .bar-row {
  grid-template-columns: 98px 1fr auto;
  gap: 7px;
}
.dashboard-main .bar-label,
.dashboard-main .bar-value {
  font-size: 11px;
}
.dashboard-main .bar-track {
  height: 10px;
  border-radius: 4px;
}
.dashboard-main .bar-fill {
  border-radius: 3px;
}

.dashboard-main .donut-wrap {
  gap: 7px;
}
.dashboard-main .donut-chart {
  width: 142px;
}
.dashboard-main .donut-center strong {
  font-size: 20px;
}
.dashboard-main .donut-center span {
  font-size: 11px;
}
.dashboard-main .legend-item {
  font-size: 12px;
  padding: 6px 9px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.dashboard-main .small-table-wrap {
  border: 1px solid #e3e8ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}
.dashboard-main .small-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.dashboard-main .small-table-wrap th,
.dashboard-main .small-table-wrap td {
  padding: 8px 9px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.dashboard-main .small-table-wrap th {
  font-size: 11.5px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: #59607a;
  background: #f6f8ff;
  position: sticky;
  top: 0;
}
.dashboard-main .small-table-wrap tr + tr td {
  border-top: 1px solid #edf0ff;
}
.dashboard-main .small-table-wrap tbody tr:hover td {
  background: rgba(236, 241, 255, 0.4);
}

.dashboard-main .card-inner-list {
  gap: 6px;
}
.dashboard-main .card-inner-list li,
.dashboard-main .card-inner-list p {
  font-size: 12.5px;
  margin: 0;
}
.dashboard-main .chart-tooltip {
  font-size: 11px;
  padding: 5px 8px;
}

@media (max-width: 1260px) {
  .dashboard-main #summary-cards,
  .dashboard-main .kpi-row-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-main #funnel-rates,
  .dashboard-main #risk-cards,
  .dashboard-main #customer-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .dashboard-main .dashboard-charts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .dashboard-main .dashboard-tab-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main .dashboard-tab-btn {
    width: 100%;
    font-size: 11px;
    padding: 8px 10px;
  }
  .dashboard-main #summary-cards,
  .dashboard-main .kpi-row-grid,
  .dashboard-main #funnel-rates,
  .dashboard-main #risk-cards,
  .dashboard-main #customer-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main .dashboard-actions-row {
    align-items: stretch;
  }
  .dashboard-main .dashboard-maintenance-row {
    align-items: stretch;
  }
  .dashboard-main .maintenance-actions {
    width: 100%;
  }
  .dashboard-main .maintenance-meta {
    width: 100%;
  }
  .dashboard-main .purge-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-main .purge-actions {
    width: 100%;
  }
  .dashboard-main .metric-card {
    min-height: 74px;
    padding: 8px 10px;
  }
  .dashboard-main .metric-value {
    font-size: clamp(16px, 5vw, 20px);
  }
}
@media (max-width: 460px) {
  .dashboard-main .dashboard-tab-strip {
    grid-template-columns: 1fr;
  }
  .dashboard-main #summary-cards,
  .dashboard-main .kpi-row-grid,
  .dashboard-main #funnel-rates,
  .dashboard-main #risk-cards,
  .dashboard-main #customer-insights {
    grid-template-columns: 1fr;
  }
  .dashboard-main .metric-topline {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .dashboard-main .metric-compare {
    justify-self: start;
  }
  .metric-help-flyout {
    width: min(220px, calc(100vw - 32px));
    font-size: 11.5px;
  }
}

/* Dashboard Structural Cleanup */
.dashboard-main {
  --dash-ink: #233246;
  --dash-text: #314257;
  --dash-muted: #6b7a8d;
  --dash-border: rgba(210, 220, 232, 0.96);
  --dash-surface: #f7f9fc;
  --dash-surface-strong: #ffffff;
  --dash-accent: #476c8d;
  --dash-accent-soft: #e9f0f5;
  --dash-info: #3e7087;
  --dash-info-soft: #edf5f8;
  --dash-pending: #9b6a2e;
  --dash-pending-soft: #fbf4ea;
  --dash-warn: #9d5446;
  --dash-warn-soft: #f9efed;
  --dash-good: #2f7a68;
  --dash-good-soft: #edf7f3;
  gap: 16px;
}
.dashboard-main .card,
.dashboard-main .chart-card,
.dashboard-main .small-table-wrap,
.dashboard-main .metric-card,
.dashboard-main .legend-item {
  border-radius: 12px;
}
.dashboard-main .chart-card,
.dashboard-main .dashboard-overview-shell,
.dashboard-main .dashboard-kpi-board,
.dashboard-main .dashboard-maintenance-hero,
.dashboard-main .dashboard-tab-shell {
  border: 1px solid var(--dash-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(72, 90, 120, 0.08);
}
.dashboard-main .dashboard-tab-shell {
  padding: 12px;
}
.dashboard-main .metric-card,
.dashboard-main .legend-item,
.dashboard-main .dashboard-check,
.dashboard-main .small-table-wrap {
  border-radius: 10px;
}
.dashboard-overview-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(251, 252, 253, 0.99) 0%, rgba(244, 248, 250, 0.98) 58%, rgba(250, 247, 242, 0.98) 100%);
}
.dashboard-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.dashboard-overview-copy {
  display: grid;
  gap: 6px;
  max-width: 760px;
}
.dashboard-overview-kicker,
.dashboard-block-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(198, 211, 224, 0.96);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dash-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}
.dashboard-overview-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dash-ink);
}
.dashboard-overview-sub {
  margin: 0;
  max-width: 62ch;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: 1.55;
}
.dashboard-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.dashboard-overview-quick {
  display: grid;
  grid-template-columns: minmax(180px, 220px) repeat(2, minmax(160px, 200px)) auto;
  align-items: center;
  gap: 10px;
}
.dashboard-overview-quick .dashboard-check {
  min-height: 42px;
  justify-content: center;
}
.dashboard-filter-drawer {
  border: 1px dashed rgba(198, 211, 224, 0.98);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}
.dashboard-filter-summary {
  cursor: pointer;
  padding: 12px 14px;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18px;
  color: var(--dash-text);
}
.dashboard-filter-summary::-webkit-details-marker {
  display: none;
}
.dashboard-filter-summary::after {
  content: "+";
  float: right;
  color: var(--dash-accent);
  font-size: 18px;
  line-height: 1;
}
.dashboard-filter-drawer[open] .dashboard-filter-summary::after {
  content: "-";
}
.dashboard-filter-drawer-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
.dashboard-collapsible {
  padding: 0 !important;
  overflow: hidden;
}
.dashboard-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
}
.dashboard-collapsible-summary::-webkit-details-marker {
  display: none;
}
.dashboard-collapsible-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dashboard-collapsible-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--dash-ink);
  letter-spacing: 0.02em;
}
.dashboard-collapsible-meta {
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-collapsible-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(199, 211, 223, 0.96);
  background: #f8fafb;
  position: relative;
}
.dashboard-collapsible-icon::before,
.dashboard-collapsible-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--dash-accent);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}
.dashboard-collapsible-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.dashboard-collapsible[open] .dashboard-collapsible-icon::after {
  opacity: 0;
}
.dashboard-collapsible[open] .dashboard-collapsible-summary {
  border-bottom: 1px solid rgba(220, 226, 233, 0.98);
  background: rgba(247, 249, 252, 0.9);
}
.dashboard-collapsible-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}
.dashboard-collapsible-group > .dashboard-collapsible-body {
  padding-top: 12px;
}
.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-utility-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dashboard-range-meta {
  margin: 0;
  padding-top: 2px;
  color: var(--dash-muted);
  line-height: 1.5;
}
.dashboard-main .dashboard-tab-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-main .dashboard-tab-btn {
  border-radius: 999px;
  padding: 9px 14px;
  border-color: rgba(200, 212, 223, 0.96);
  background: rgba(248, 250, 252, 0.98);
  color: #516276;
}
.dashboard-main .dashboard-tab-btn.is-active {
  border-color: rgba(168, 186, 202, 0.98);
  background: linear-gradient(135deg, #edf4f7 0%, #e5eef3 100%);
  color: var(--dash-ink);
  box-shadow: 0 6px 16px rgba(80, 102, 128, 0.12);
}
.dashboard-main .dashboard-tab-hint {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dash-muted);
}
.dashboard-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-block-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--dash-ink);
}
.dashboard-block-head .muted {
  margin: 0;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dash-muted);
}
.dashboard-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.dashboard-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 16px;
  align-items: start;
}
.dashboard-ops-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dashboard-ops-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  align-self: start;
}
.dashboard-primary-main {
  display: grid;
  gap: 12px;
}
.dashboard-main #summary-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-attention-card {
  display: grid;
  gap: 10px;
  align-self: stretch;
}
.dashboard-urgent-queue-card {
  display: grid;
  gap: 12px;
}
.dashboard-urgent-meta {
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-urgent-list {
  display: grid;
  gap: 10px;
}
.dashboard-urgent-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 222, 230, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 10px 18px rgba(82, 96, 118, 0.06);
}
.dashboard-urgent-item.tone-pending {
  border-color: rgba(232, 216, 191, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(251, 244, 234, 0.98) 100%);
}
.dashboard-urgent-item.tone-warn {
  border-color: rgba(228, 202, 197, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 239, 237, 0.98) 100%);
}
.dashboard-urgent-item.is-skeleton {
  min-height: 92px;
}
.dashboard-urgent-item h4 {
  margin: 0;
  font-size: 15px;
  color: var(--dash-ink);
}
.dashboard-urgent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dashboard-urgent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  border: 1px solid rgba(214, 222, 230, 0.98);
  background: #f5f7fa;
  color: #607285;
}
.dashboard-urgent-badge.tone-pending {
  border-color: rgba(232, 216, 191, 0.98);
  background: #fbf1df;
  color: #8b6731;
}
.dashboard-urgent-badge.tone-warn {
  border-color: rgba(228, 202, 197, 0.98);
  background: #f8e5e1;
  color: #9b5448;
}
.dashboard-urgent-badge.tone-good {
  border-color: rgba(193, 222, 214, 0.98);
  background: #e9f5f0;
  color: #3d7a63;
}
.dashboard-urgent-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-info);
  border-bottom: 1px solid rgba(95, 129, 143, 0.4);
}
.dashboard-urgent-count {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--dash-ink);
}
.dashboard-urgent-detail,
.dashboard-urgent-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-urgent-detail {
  color: #4a5b6e;
}
.dashboard-urgent-note {
  color: var(--dash-muted);
}
.dashboard-urgent-empty {
  text-align: left;
}
.dashboard-alert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.dashboard-kpi-board {
  padding: 14px;
}
.dashboard-health-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-health-lane .kpi-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}
.dashboard-health-lane {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(218, 225, 233, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}
.dashboard-health-lane .metric-card,
.dashboard-attention-card .metric-card {
  min-height: 108px;
}
.dashboard-lane-head {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
  color: var(--dash-muted);
}
.dashboard-story-grid {
  display: grid;
  gap: 16px;
}
.dashboard-story-grid-primary {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
#dashboard-panel-ops .dashboard-story-grid-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-story-grid-tertiary {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
}
#dashboard-panel-analytics .dashboard-story-grid-secondary,
#dashboard-panel-maintenance .dashboard-story-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-maintenance-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.dashboard-restore-card {
  padding: 14px;
}
.dashboard-restore-grid {
  max-width: 720px;
}
.dashboard-main .metric-card,
.dashboard-main .metric-default,
.dashboard-main .metric-info,
.dashboard-main .metric-pending,
.dashboard-main .metric-warn,
.dashboard-main .metric-good {
  border: 1px solid rgba(214, 222, 230, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 252, 0.99) 100%);
  box-shadow: 0 10px 18px rgba(82, 96, 118, 0.06);
}
.dashboard-main .metric-card::after {
  display: none;
}
.dashboard-main .metric-card::before {
  height: 3px;
}
.dashboard-main .metric-title {
  margin: 0;
  min-width: 0;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.28px;
  color: var(--dash-muted);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.dashboard-main .metric-topline {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
}
.dashboard-main .metric-value {
  font-size: clamp(17px, 1.45vw, 22px);
  color: var(--dash-ink);
  text-shadow: none;
}
.dashboard-main .metric-compare {
  min-height: 20px;
  padding: 2px 6px;
  border-color: rgba(210, 219, 228, 0.98);
  background: #f8fafb;
  color: #66778a;
  font-size: 9.5px;
  justify-self: start;
}
.dashboard-main .metric-compare-up {
  color: var(--dash-good);
  border-color: rgba(183, 216, 206, 0.98);
  background: var(--dash-good-soft);
}
.dashboard-main .metric-compare-down {
  color: var(--dash-warn);
  border-color: rgba(226, 194, 187, 0.98);
  background: var(--dash-warn-soft);
}
.dashboard-main .metric-default::before {
  background: #93a4b5;
}
.dashboard-main .metric-info {
  border-color: rgba(191, 214, 223, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(237, 245, 248, 0.96) 100%);
}
.dashboard-main .metric-info::before {
  background: var(--dash-info);
}
.dashboard-main .metric-pending {
  border-color: rgba(232, 216, 191, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(251, 244, 234, 0.98) 100%);
}
.dashboard-main .metric-pending::before {
  background: var(--dash-pending);
}
.dashboard-main .metric-warn {
  border-color: rgba(228, 202, 197, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 239, 237, 0.98) 100%);
}
.dashboard-main .metric-warn::before {
  background: var(--dash-warn);
}
.dashboard-main .metric-good {
  border-color: rgba(193, 222, 214, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(237, 247, 243, 0.98) 100%);
}
.dashboard-main .metric-good::before {
  background: var(--dash-good);
}
.dashboard-main .chart-card {
  min-height: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
}
.dashboard-main .chart-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom-color: rgba(220, 226, 233, 0.98);
}
.dashboard-main .chart-head h4 {
  font-size: 14px;
  color: var(--dash-ink);
}
.dashboard-main .chart-head .muted {
  font-size: 11px;
  color: var(--dash-muted);
}
.dashboard-main .small-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(219, 226, 233, 0.98);
  background: rgba(255, 255, 255, 0.92);
}
.dashboard-main .small-table-wrap table {
  min-width: 100%;
}
.dashboard-main .small-table-wrap th {
  background: #f3f6f8;
  color: #67788a;
}
.dashboard-main .small-table-wrap tbody tr:hover td {
  background: rgba(233, 239, 243, 0.56);
}
.dashboard-main .legend-item {
  border-color: rgba(214, 222, 230, 0.98);
  background: #f8fafb;
  color: var(--dash-text);
}
.dashboard-main .bar-track {
  background: #eef2f4;
}
.dashboard-main .bar-label,
.dashboard-main .bar-value {
  color: var(--dash-text);
}
.dashboard-main .bar-pending { background: linear-gradient(90deg, #d6b07a 0%, #b8853f 100%); }
.dashboard-main .bar-paid { background: linear-gradient(90deg, #79a9b8 0%, #4f8597 100%); }
.dashboard-main .bar-shipped { background: linear-gradient(90deg, #9db3c7 0%, #748da4 100%); }
.dashboard-main .bar-completed { background: linear-gradient(90deg, #78b39f 0%, #3e866f 100%); }
.dashboard-main .bar-cancelled { background: linear-gradient(90deg, #d19a8e 0%, #b96b59 100%); }
.dashboard-main .donut-chart {
  background:
    conic-gradient(
      #7894a8 0 calc(var(--cod) * 1%),
      #4f8597 calc(var(--cod) * 1%) calc((var(--cod) + var(--online)) * 1%),
      #eef2f4 0 100%
    );
  box-shadow: inset 0 0 0 1px rgba(214, 222, 230, 0.96);
}
.dashboard-main .donut-center {
  background: #fff;
}
.dashboard-main .dot.cod { background: #7894a8; }
.dashboard-main .dot.online { background: #4f8597; }
.dashboard-main #funnel-rates,
.dashboard-main #customer-insights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-main #risk-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .dashboard-overview-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-ops-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-ops-sidebar {
    position: static;
  }
  .dashboard-primary-grid,
  .dashboard-story-grid-primary {
    grid-template-columns: 1fr;
  }
  #dashboard-panel-ops .dashboard-story-grid-secondary,
  .dashboard-story-grid-tertiary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .dashboard-filter-grid,
  .dashboard-health-stack,
  #dashboard-panel-analytics .dashboard-story-grid-secondary,
  #dashboard-panel-maintenance .dashboard-story-grid-secondary {
    grid-template-columns: 1fr;
  }
  .dashboard-main #risk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .dashboard-overview-head,
  .dashboard-block-head {
    flex-direction: column;
  }
  .dashboard-primary-actions,
  .dashboard-utility-grid,
  .dashboard-main .maintenance-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .dashboard-overview-quick,
  #dashboard-panel-ops .dashboard-story-grid-secondary,
  .dashboard-story-grid-tertiary,
  .dashboard-main #summary-cards,
  .dashboard-main #funnel-rates,
  .dashboard-main #risk-cards,
  .dashboard-main #customer-insights {
    grid-template-columns: 1fr;
  }
  .dashboard-overview-shell,
  .dashboard-kpi-board,
  .dashboard-maintenance-hero,
  .dashboard-main .chart-card {
    padding: 13px;
  }
  .dashboard-collapsible-summary,
  .dashboard-collapsible-body {
    padding-left: 13px;
    padding-right: 13px;
  }
}

@keyframes dashboardPanelReveal {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global Fine-Tuning Pack: spacing, alignment, typography consistency */
body {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 8px;
  line-height: 1.28;
  letter-spacing: 0.1px;
  color: #242b3a;
}
h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 650; }
h4 { font-size: clamp(16px, 1.5vw, 20px); font-weight: 650; }

p { margin: 0 0 10px; color: #333b4b; }
.muted { color: #6b7280; }
.brand-text { font-weight: 700; }
.nav-link { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand-text {
    animation: none !important;
  }
  .featured-title::before,
  .featured-title::after {
    animation: none !important;
  }
  .featured-title {
    animation: none !important;
  }
}

main.container {
  display: grid;
  gap: 14px;
}
main.container > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

form {
  display: grid;
  gap: 12px;
}
form .row {
  margin: 0;
}

label,
.field-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #2e3647;
}

input,
select,
textarea {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
}
textarea {
  min-height: 96px;
}

button {
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 600;
}

.card,
.table-wrap,
.chart-card {
  border-radius: 16px;
}
.card {
  padding: 16px;
}
.card h3,
.card h4 {
  margin: 4px 0 8px;
}
.card p {
  margin: 0 0 10px;
}
.card .row {
  align-items: center;
  gap: 10px;
}

.badge,
.status-badge,
.bar-label,
.bar-value,
.legend-item,
.check-field span {
  font-weight: 600;
}

th {
  font-weight: 600;
}

@media (max-width: 920px) {
  main.container {
    gap: 12px;
  }
  .card {
    padding: 14px;
  }
  .toolbar-btn-sm,
  .toolbar-btn-md,
  .toolbar-field-sm {
    max-width: 100%;
  }
  .page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .smart-back-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-self: flex-end;
  }
  .category-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .category-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .category-chip-grid {
    grid-template-columns: 1fr;
  }
  .category-chip {
    min-height: 76px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-shell {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .footer-brand-logo {
    width: 72px;
    height: 72px;
  }
}

/* App Intro Splash (3s) */
body.splash-active {
  overflow: hidden;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.92) 46%, rgba(247, 248, 255, 0.96) 100%),
    #f8f9ff;
  opacity: 1;
  transition: opacity 420ms ease;
}

.app-splash-logo {
  width: min(340px, 56vw);
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: introLogoIn 1.2s ease forwards;
}

.app-splash.is-exit {
  opacity: 0;
  pointer-events: none;
}

@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-splash-logo {
    width: min(260px, 68vw);
  }
  .cart-feedback-root {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cart-feedback-panel {
    width: 100%;
    padding: 13px 13px 12px;
    border-radius: 16px;
  }
  .cart-feedback-title {
    font-size: 18px;
  }
  .cart-feedback-actions {
    flex-direction: column;
  }
}

@keyframes cartCountBump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18);
  }
  70% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}











