﻿@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: #BFCDF0;
  --p2: #E9EDF7;
  --p3: #E0E7F3;
  --p4: #CBD9F0;
  --p5: #C6D2E9;
  --accent-indigo: #6386CE;
  --accent-indigo-strong: #4B70BE;
  --accent-sky: #6B98D9;
  --accent-rose: #7D93CA;
  --accent-mint: #435FA1;
  --y1: #DDE4F2;
  --y2: #E7ECF7;
  --y3: #DCE4F1;
  --y4: #C9D8F0;
  --y5: #B9CCE9;
  --n1: #FFFFFF;
  --n2: #F7F9FA;
  --n3: #1F2C30;
  --n4: #5F7291;
  --n5: #E9EEF0;
  --success-soft: #F0F4F5;
  --success-text: #315A8A;
  --danger-soft: #F5F8F9;
  --danger-text: #4667A1;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #F7F9FA;
}
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(247, 249, 250, 0.62) 0%, rgba(247, 249, 250, 0.42) 30%, rgba(247, 249, 250, 0.24) 66%),
    radial-gradient(circle at 88% 2%, rgba(239, 243, 245, 0.28) 0%, rgba(239, 243, 245, 0) 32%),
    linear-gradient(180deg, #F7F9FA 0%, #F7F9FA 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: #ECEFF3;
  right: -80px;
  top: 18%;
}
body::after {
  background: #D9E3E7;
  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(184, 214, 225, 0.22);
}
body.buyer-ui.perf-lite {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(247, 249, 250, 0.44) 0%, rgba(247, 249, 250, 0.22) 34%, rgba(247, 249, 250, 0.12) 68%),
    linear-gradient(180deg, #F7F9FA 0%, #F7F9FA 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(247, 249, 250, 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(247, 249, 250, 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(91, 150, 172, 0.44);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.action-link:hover {
  color: #4267BA;
  border-bottom-color: rgba(66, 103, 186, 0.8);
  background-color: rgba(224, 231, 243, 0.24);
}

.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(199, 223, 232, 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:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(221, 230, 250, 0.52) 22%,
      rgba(191, 205, 240, 0.34) 50%,
      rgba(255, 255, 255, 0) 78%
    );
  background-size: 220% 100%;
  opacity: 0.92;
}
.navbar::after {
  background:
    radial-gradient(circle at 14% 45%, rgba(201, 216, 240, 0.36) 0 9px, transparent 10px),
    radial-gradient(circle at 39% 36%, rgba(226, 235, 248, 0.38) 0 7px, transparent 8px),
    radial-gradient(circle at 65% 48%, rgba(201, 216, 240, 0.31) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 34%, rgba(226, 235, 248, 0.3) 0 7px, transparent 8px);
  opacity: 0.74;
}
.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: none;
}
.nav-inner::after {
  content: none;
}
.nav-inner > * {
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand-link {
  --brand-logo-box: 64px;
  display: grid;
  grid-template-columns: var(--brand-logo-box) minmax(0, auto);
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  min-height: var(--brand-logo-box);
  padding-inline-start: 0;
  position: static;
}
.brand-logo {
  width: var(--brand-logo-box);
  height: var(--brand-logo-box);
  flex: 0 0 auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  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(35, 58, 66, 0.24))
    drop-shadow(0 4px 10px rgba(172, 207, 220, 0.26));
  position: static;
  transform: none;
  margin: 0;
  animation: zynemLogoBreathe 4.8s ease-in-out infinite;
}
.brand-text {
  font-family: "Playfair Display", "Manrope", serif;
  display: block;
  min-height: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.25px;
  color: #6D88C2;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 14px rgba(66, 103, 116, 0.24),
    0 3px 7px rgba(172, 207, 220, 0.22);
  filter: none;
  line-height: 1.06;
  white-space: nowrap;
  transform: none;
  transform-origin: center;
  animation: zynemTitleGlow 5.2s ease-in-out infinite;
}
body.buyer-ui .brand-link {
  --brand-logo-box: 58px;
  --brand-logo-focus-x: 34%;
  --brand-logo-focus-y: 34%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--brand-logo-box);
}
body.buyer-ui .brand-logo {
  width: var(--brand-logo-box);
  height: var(--brand-logo-box);
  border-radius: 0;
  object-fit: cover;
  object-position: var(--brand-logo-focus-x) var(--brand-logo-focus-y);
  background: transparent;
  border: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.94))
    drop-shadow(0 10px 18px rgba(41, 66, 125, 0.2))
    drop-shadow(0 4px 10px rgba(165, 193, 236, 0.28));
}
body.buyer-ui .brand-text {
  display: inline-flex;
  align-items: center;
  min-height: var(--brand-logo-box);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #5F7FC1;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 14px rgba(71, 103, 170, 0.2);
  line-height: 1.02;
}
body.buyer-ui .navbar::before { animation: zynemNavSweep 9.5s ease-in-out infinite; }
body.buyer-ui .navbar::after { animation: zynemNavDots 12s linear infinite; }
.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 #E7EAEF;
  background: #F7F9FA;
  color: #527A88;
}
.nav-mode-badge.mode-online {
  border-color: #DAE4E8;
  background: #F7F9FA;
  color: #497180;
}
.nav-link {
  position: relative;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #2F4147;
  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, #EEF2FB 0%, #E4EBF9 100%);
  color: #28437E;
}
.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(99, 134, 206, 0.14);
  color: #4267BA;
  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, #EEF3FC 0%, #E6ECFA 100%);
  color: #3658A5;
}
.nav-link.cart-link-attention [data-cart-count] {
  background: #6386CE;
  color: #FFFFFF;
  box-shadow: 0 10px 18px rgba(99, 134, 206, 0.34);
}
.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, #F7F9FA 0%, #F7F9FA 100%);
  border-color: rgba(193, 219, 229, 0.78);
  box-shadow: 0 8px 16px rgba(131, 177, 194, 0.12);
}
.admin-nav-utilities .nav-link {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 223, 232, 0.72);
  background: linear-gradient(135deg, rgba(247, 249, 250, 0.96) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 8px 16px rgba(131, 177, 194, 0.12);
}
.admin-nav-utilities .nav-link::after {
  content: none;
}
.admin-nav-utilities .nav-link:hover {
  border-color: rgba(160, 200, 214, 0.88);
  background: linear-gradient(135deg, #F7F9FA 0%, #F0F4F5 100%);
}
.nav-utility-link {
  color: #417487;
}
.nav-order-alert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-order-alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6DA5BA;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.nav-order-alert-link.has-alert {
  border-color: rgba(165, 200, 212, 0.9) !important;
  background: linear-gradient(135deg, #F7F9FA 0%, #F6F8F9 100%) !important;
  color: #396676;
}
.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(131, 177, 194, 0.12);
}
.nav-link-logout {
  color: #396676;
  border-color: rgba(193, 218, 227, 0.9) !important;
  background: linear-gradient(135deg, #F7F9FA 0%, #F5F8F9 100%) !important;
}
.nav-link-logout:hover {
  background: linear-gradient(135deg, #F7F9FA 0%, #EFF3F4 100%) !important;
  color: #2D5564;
  border-color: rgba(165, 200, 212, 0.92) !important;
}
.nav-link-logout:hover::after {
  background: #6DA5BA;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #C1DBE4;
  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: #9AC5D4;
  box-shadow: 0 0 0 3px rgba(154, 197, 212, 0.22);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #7E9FDE 0%, #6386CE 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(99, 134, 206, 0.34);
  filter: saturate(1.05);
}
button:active { transform: translateY(0) scale(0.98); }
.btn-soft {
  background: linear-gradient(135deg, #F8FAFE 0%, #EFF3FC 100%);
  color: #4466A9;
  border: 1px solid rgba(190, 205, 237, 0.65);
}
.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: #52889C;
}
.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 #64A6BE;
  background: linear-gradient(135deg, #F3F6F7 0%, #E5ECEE 100%);
  color: #326578;
  box-shadow: 0 6px 14px rgba(100, 166, 190, 0.2);
}
.action-toggle-btn.action-deactivate:hover {
  box-shadow: 0 8px 16px rgba(100, 166, 190, 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, #C6DEE7 0%, #B0D1DD 100%);
  color: #23343A;
}

.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(199, 223, 232, 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: #60808B;
  font-size: 12px;
}
.category-admin-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.category-admin-count {
  font-size: 12px;
  color: #455F69;
  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(247, 249, 250, 0.94) 100%);
  border: 1px solid rgba(180, 212, 224, 0.52);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(138, 186, 203, 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, #A9CDDB, #C6DEE7);
}
.card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(115deg, rgba(225, 229, 236, 0), rgba(225, 229, 236, 0.75), rgba(217, 227, 231, 0), rgba(225, 229, 236, 0)) border-box;
  -webkit-mask: linear-gradient(#FFFFFF 0 0) padding-box, linear-gradient(#FFFFFF 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#FFFFFF 0 0) padding-box, linear-gradient(#FFFFFF 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(138, 186, 203, 0.24);
  border-color: rgba(153, 196, 212, 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(121, 165, 181, 0.08);
    border-color: rgba(230, 237, 239, 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(247, 249, 250, 0.95) 100%) !important;
  padding: 8px;
  border-radius: 10px;
  border-color: rgba(150, 177, 208, 0.58);
  box-shadow: 0 12px 26px rgba(18, 30, 53, 0.24);
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  height: 100%;
  min-height: 268px;
  transition: box-shadow 220ms ease, border-color 180ms ease;
}
.product-card:hover,
.product-card:focus-within {
  border-color: rgba(126, 154, 193, 0.78);
  box-shadow: 0 16px 34px rgba(12, 22, 44, 0.34);
}
.product-card::after {
  display: none;
}
.product-card::before {
  height: 2px;
  opacity: 0.78;
}
.product-card.is-pricing-paused {
  background: linear-gradient(180deg, rgba(247, 249, 250, 0.92) 0%, rgba(247, 249, 250, 0.94) 100%) !important;
  border-color: rgba(179, 189, 205, 0.78);
}
.product-card.is-pricing-paused .shop-image {
  filter: grayscale(0.45) saturate(0.72);
}
.product-card-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-pricing-overlay {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(31, 44, 48, 0.74);
  color: #F7F9FA;
  border: 1px solid rgba(234, 237, 241, 0.35);
  backdrop-filter: blur(2px);
}
.product-pricing-overlay strong {
  font-size: 12px;
  line-height: 1.2;
}
.product-pricing-overlay span {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(247, 249, 250, 0.88);
}
.product-card .shop-image {
  width: 124px;
  height: 124px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(199, 223, 232, 0.4);
  box-shadow: 0 6px 14px rgba(184, 214, 225, 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(199, 223, 232, 0.4);
  box-shadow: 0 6px 14px rgba(184, 214, 225, 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;
  line-clamp: 2;
  -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: #25404A;
  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: #94AEB7;
  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(195, 220, 229, 0.42) 0%, rgba(221, 230, 234, 0.46) 100%);
  color: #477D90;
  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-pricing-note {
  margin: 0;
  font-size: 11px;
  color: #597985;
  line-height: 1.35;
}
.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(107, 170, 193, 0.32);
  color: #26414A;
  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(199, 223, 232, 0.62);
  background: rgba(255, 255, 255, 0.78);
  color: #455F69;
  font-size: 12px;
  font-weight: 700;
}
.product-card .like-btn {
  padding: 2px 6px;
  border: none;
  background: rgba(135, 169, 181, 0.2);
  color: #3B545D;
  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(150, 195, 211, 0.18);
  color: #3E7C92;
}
.product-card .like-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-card .like-btn:hover {
  transform: scale(1.04);
}
.product-card .like-btn.is-soft { background: rgba(147, 175, 185, 0.14); color: #455F69; }
.product-card .like-btn.is-mid { background: rgba(111, 172, 194, 0.2); color: #4992AC; }
.product-card .like-btn.is-strong { background: rgba(70, 137, 161, 0.22); color: #295160; }
.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(199, 223, 232, 0.62);
  background: rgba(255, 255, 255, 0.82);
  color: #455F69;
  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: #C7DFE8;
  background: #F7F9FA;
  color: #3E7C92;
}
.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(141, 189, 207, 0.45);
  animation: likeBurst 240ms ease-out;
  pointer-events: none;
}
.like-btn.is-loading {
  color: #60808B;
  border-color: rgba(199, 223, 232, 0.55);
}
.like-btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(199, 223, 232, 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: #455F69;
}
.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: #FFFFFF;
  border: 1px solid rgba(199, 223, 232, 0.62);
  color: #455F69;
}
.rate-btn.active {
  border-color: #C3DCE5;
  background: #F7F9F9;
  color: #406A7A;
}
@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(199, 223, 232, 0.58);
  box-shadow: 0 10px 22px rgba(184, 214, 225, 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(199, 223, 232, 0.5);
  overflow: hidden;
  background: #FFFFFF;
  min-height: 0;
  box-shadow: 0 4px 10px rgba(31, 44, 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(184, 214, 225, 0.95);
  box-shadow: 0 0 0 2px rgba(184, 214, 225, 0.22), 0 6px 14px rgba(31, 44, 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-pricing-banner {
  display: grid;
  gap: 3px;
  margin-top: 2px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #B9D6E1;
  background: linear-gradient(135deg, #F7F9F9 0%, #EFF3F5 100%);
  color: #2E5B6B;
}
.pdp-pricing-banner strong {
  font-size: 13px;
}
.pdp-pricing-banner span {
  font-size: 12px;
  line-height: 1.45;
}
.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(220, 225, 232, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 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-block.is-pricing-paused {
  border-color: #A9CAD6;
  background: linear-gradient(180deg, rgba(247, 249, 250, 0.96) 0%, rgba(245, 248, 249, 0.98) 100%);
}
.pdp-purchase-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pdp-helper-note {
  margin: 0;
  color: #668B98;
  font-size: 12px;
  line-height: 1.45;
}
.pdp-inline-total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: #5B7F8C;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pdp-inline-total strong {
  color: #2C4953;
  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: #60808B;
  font-size: 14px;
}
.discount-chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ECF1F2;
  border: 1px solid #C1DBE5;
  color: #316273;
}
.stock-line {
  margin: 0 0 10px;
  font-weight: 700;
}
.stock-line.is-in { color: #325967; }
.stock-line.is-low { color: #316172; }
.stock-line.is-out { color: #3D798F; }
.qty-label {
  display: block;
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #5E8593;
}
.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 #E5ECEE;
  background: #F7F9FA;
  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: #5E99AE;
  background: #FFFFFF;
  border: 1px solid #EBF0F2;
  box-shadow: none;
}
.qty-btn:hover {
  background: #F7F9FA;
  border-color: #DAE4E7;
}
.qty-btn:focus-visible {
  outline: none;
  border-color: #9AC5D4;
  box-shadow: 0 0 0 2px rgba(154, 197, 212, 0.18);
}
.qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F7F9FA;
}
.qty-input {
  width: 100%;
  min-width: 64px;
  height: 34px;
  min-height: 34px;
  text-align: center;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid #EBF0F2;
  background: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  color: #314D57;
}
.qty-input:focus {
  border-color: #ABCFDC;
  box-shadow: 0 0 0 2px rgba(171, 207, 220, 0.2);
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  appearance: textfield;
  -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 #D9E3E7;
  background: linear-gradient(135deg, #F7F9FA 0%, #F7F9FA 100%);
  color: #609DB3;
  filter: none;
  font-size: 0;
  line-height: 0;
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(116, 171, 191, 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(116, 171, 191, 0.22);
}
.add-cart-btn.is-added {
  border-color: #709BAB;
  background: linear-gradient(135deg, #F7F9FA 0%, #EBF0F2 100%);
  color: #2A515F;
  box-shadow: 0 12px 20px rgba(48, 88, 103, 0.22);
}
.add-cart-btn:disabled {
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(116, 171, 191, 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: #F3F6F7; border-color: #E3EAED; color: #3D798F; }
.badge-pricing_in_progress { background: #F0F4F5; border-color: #B9D6E1; color: #2E5B6B; }
.badge-prescription_required { background: #F7F9FA; border-color: #DFE8EB; color: #336679; }
.badge-clearance { background: #ECF1F2; border-color: #BAD7E1; color: #264B59; }
.badge-on_sale { background: #F6F7F9; border-color: #E5ECEE; color: #4992AC; }
.badge-new { background: #F7F9FA; border-color: #C1D8E1; color: #254A57; }
.detail-info-hub {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 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: #60808B;
  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(199, 223, 232, 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: #55808F;
}
.compact-accordion details {
  border: 1px solid rgba(199, 223, 232, 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: #F7F9FA;
  border-color: #C1D8E1;
  color: #254A57;
}
.expiry-pill.is-near {
  background: #ECF1F2;
  border-color: #BAD7E1;
  color: #264B59;
}
.expiry-pill.is-expired {
  background: #F3F6F7;
  border-color: #E3EAED;
  color: #3D798F;
}
.warning-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F7F9F9;
  border: 1px solid #C3DCE5;
  color: #264B59;
  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(195, 220, 230, 0.68);
  background: linear-gradient(135deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.96) 100%);
  color: #567783;
  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: #2A4149;
}
.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(199, 223, 232, 0.42);
  box-shadow: 0 6px 14px rgba(184, 214, 225, 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: #2B434B;
  font-size: 15px;
  line-height: 1.4;
}
.cart-item-price {
  color: #3E6674;
  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: #5F8390;
  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: #29444E;
  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(247, 249, 250, 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: #547480;
}
.cart-summary-lines strong {
  color: #2D454E;
}
.cart-summary-lines .grand-total {
  padding-top: 10px;
  border-top: 1px solid rgba(235, 240, 242, 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(231, 238, 240, 0.58) 26%,
      rgba(217, 227, 231, 0.45) 50%,
      rgba(225, 229, 236, 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: #B2D3DF;
  color: #233C45;
  border: 1px solid #80B3C5;
}
.badge-category { margin-top: 8px; }
.badge-fashion { background: #F3F6F7; border-color: #E1E9EC; color: #497382; }
.badge-cosmetics { background: #F1F5F6; border-color: #DBE5E8; color: #497180; }
.badge-groceries { background: #EAEFF1; border-color: #C3D8E0; color: #375560; }
.badge-medical { background: #F3F6F7; border-color: #E0E4EB; color: #3A6879; }
.badge-baby { background: #EEF2F3; border-color: #C1DBE4; color: #406A7A; }

.section-title {
  display: block;
  width: 100%;
  margin: 14px 0 10px;
  padding: 0 2px 8px;
  border: 0;
  border-bottom: 1px solid rgba(199, 223, 232, 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: #2A3C43;
  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(184, 214, 225, 0.95) 0%, rgba(225, 229, 236, 0.82) 65%, rgba(198, 222, 231, 0.92) 100%);
  pointer-events: none;
  animation: none;
}
.featured-title::after {
  content: none;
}
.category-toggle-btn {
  border-color: rgba(178, 211, 223, 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(178, 211, 223, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 249, 250, 0.97) 100%);
  box-shadow: 0 14px 30px rgba(96, 153, 173, 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: #2A3C43;
}
.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: #B5D4E0;
}
.category-sidebar-link:hover {
  background: rgba(244, 245, 247, 0.7);
}
.category-sidebar-link .chip-title {
  font-size: 14px;
  font-weight: 700;
  color: #3A5964;
}
.category-sidebar-link .chip-meta {
  display: none;
}
.category-sidebar-link.chip-fashion::before { background: #97BECC; }
.category-sidebar-link.chip-cosmetics::before { background: #89B5C5; }
.category-sidebar-link.chip-groceries::before { background: #6792A2; }
.category-sidebar-link.chip-medical::before { background: #73A8BB; }
.category-sidebar-link.chip-baby::before { background: #77ACBF; }
.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(39, 61, 69, 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: #2A3C43;
  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(168, 205, 218, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 249, 250, 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(225, 229, 236, 0.26), rgba(217, 227, 231, 0.2), rgba(225, 229, 236, 0.2)) border-box;
  -webkit-mask: linear-gradient(#FFFFFF 0 0) padding-box, linear-gradient(#FFFFFF 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#FFFFFF 0 0) padding-box, linear-gradient(#FFFFFF 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.category-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(131, 183, 202, 0.24);
}
.chip-title {
  font-size: 14px;
  font-weight: 700;
  color: #2C3F45;
  line-height: 1.2;
}
.chip-meta {
  font-size: 12px;
  color: #638591;
  line-height: 1.25;
}
.chip-fashion { border-color: rgba(169, 200, 211, 0.52); background: linear-gradient(145deg, rgba(247, 249, 250, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-cosmetics { border-color: rgba(178, 207, 217, 0.52); background: linear-gradient(145deg, rgba(247, 249, 250, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-groceries { border-color: rgba(166, 192, 201, 0.58); background: linear-gradient(145deg, rgba(244, 246, 247, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-medical { border-color: rgba(171, 202, 213, 0.58); background: linear-gradient(145deg, rgba(247, 249, 250, 0.95), rgba(255, 255, 255, 0.96)); }
.chip-baby { border-color: rgba(159, 197, 211, 0.58); background: linear-gradient(145deg, rgba(243, 246, 247, 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(241, 245, 252, 0.97) 0%, rgba(232, 239, 250, 0.95) 32%, rgba(226, 235, 248, 0.92) 68%, rgba(247, 249, 253, 0.96) 100%);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(186, 203, 236, 0.82);
  box-shadow: 0 12px 26px rgba(99, 134, 206, 0.14);
}
.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(201, 216, 240, 0.24) 0%, rgba(201, 216, 240, 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(191, 205, 240, 0.42) 0%, rgba(191, 205, 240, 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: #29414A;
}
.home-page .hero .muted {
  max-width: 54ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #618491;
}
.home-page #global-search {
  max-width: 520px;
  min-height: 44px;
  border-color: rgba(183, 214, 225, 0.76);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(117, 161, 177, 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(108, 156, 174, 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(108, 156, 174, 0.22));
  opacity: 0.98;
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(217, 227, 231, 0.72);
  background: rgba(247, 249, 250, 0.72);
  color: #587D8A;
  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(221, 230, 234, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 0.95) 100%);
  box-shadow: 0 10px 22px rgba(128, 170, 185, 0.07);
  scroll-snap-align: start;
}
.home-usp-card strong {
  color: #304952;
  font-size: 12px;
}
.home-usp-card span {
  color: #6A8D9A;
  font-size: 11px;
  line-height: 1.35;
}
.home-order-flow,
.home-support-banner {
  margin-top: 16px;
}
.home-order-accordion {
  border: 1px solid rgba(218, 228, 232, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 12px 26px rgba(123, 166, 181, 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(150, 194, 210, 0.82);
  outline-offset: -2px;
}
.home-order-summary-copy {
  display: grid;
  gap: 4px;
}
.home-order-summary-title {
  color: #2F464E;
  font-size: 18px;
  line-height: 1.25;
}
.home-order-summary-sub {
  color: #688D9A;
  font-size: 12px;
  line-height: 1.45;
}
.home-order-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(189, 217, 228, 0.9);
  background: linear-gradient(180deg, rgba(247, 249, 250, 0.95) 0%, rgba(243, 246, 247, 0.95) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 180ms ease;
}
.home-order-summary-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #4E7E90;
  transform: translate3d(-50%, -50%, 0) rotate(0deg);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 180ms ease;
}
.home-order-summary-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: #4E7E90;
  transform: translate3d(-50%, -50%, 0) rotate(0deg);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 180ms ease;
}
.home-order-accordion[open] .home-order-summary-icon {
  background: linear-gradient(180deg, rgba(241, 243, 245, 0.96) 0%, rgba(235, 238, 242, 0.96) 100%);
}
.home-order-accordion[open] .home-order-summary-icon::before {
  transform: translate3d(-50%, -50%, 0) rotate(45deg);
}
.home-order-accordion[open] .home-order-summary-icon::after {
  transform: translate3d(-50%, -50%, 0) rotate(-45deg);
}
.home-order-accordion.is-collapsing .home-order-summary-icon {
  background: linear-gradient(180deg, rgba(247, 249, 250, 0.95) 0%, rgba(243, 246, 247, 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(218, 228, 231, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 0.95) 100%);
  box-shadow: 0 12px 24px rgba(123, 166, 181, 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(123, 166, 181, 0.12);
}
.home-need-card strong {
  color: #304952;
  font-size: 13px;
}
.home-need-card span {
  color: #688D9A;
  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, 249, 250, 0.97) 100%); }
.need-cosmetics { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.97) 100%); }
.need-groceries { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.97) 100%); }
.need-medical { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.97) 100%); }
.need-baby { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 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(221, 230, 234, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(123, 166, 181, 0.07);
}
.step-no {
  color: #7195A2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34px;
}
.home-order-step strong {
  color: #304952;
}
.home-order-step p {
  margin: 0;
  color: #6A8D9A;
  font-size: 12px;
  line-height: 1.55;
}
.home-support-banner {
  background:
    radial-gradient(circle at right top, rgba(238, 242, 244, 0.52) 0%, rgba(238, 242, 244, 0) 32%),
    linear-gradient(135deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(218, 228, 232, 0.86);
  box-shadow: 0 14px 28px rgba(120, 163, 179, 0.08);
}
.home-support-kicker {
  margin: 0 0 5px;
  color: #678C99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}
.home-support-banner h3 {
  margin: 0 0 6px;
  color: #2F464E;
  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(190, 205, 237, 0.65);
  background: linear-gradient(135deg, #F8FAFE 0%, #EFF3FC 100%);
  color: #4466A9;
}
.home-support-actions .btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(99, 134, 206, 0.2);
  filter: saturate(1.03);
}

/* Myanmar copy readability tuning (home sections) */
.mm-copy,
.mm-copy p,
.mm-copy span,
.mm-copy strong,
.mm-copy h3 {
  font-family: "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", "Padauk", "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-spacing: 0.02em;
}
.mm-copy .home-order-summary-title {
  line-height: 1.62;
  margin-bottom: 1px;
}
.mm-copy .home-order-summary-sub {
  line-height: 1.82;
  font-size: 13px;
}
.mm-copy .home-order-step strong {
  line-height: 1.64;
}
.mm-copy .home-order-step p {
  line-height: 1.9;
}
.mm-copy .home-support-kicker {
  line-height: 1.5;
}
.mm-copy .home-support-title {
  line-height: 1.68;
}
.mm-copy .home-support-banner p {
  line-height: 1.88;
}
.home-page #recommended-meta {
  margin-top: -2px;
  margin-bottom: 12px;
  max-width: 70ch;
  color: #658A97;
  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(171, 207, 220, 0.5);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(99, 134, 206, 0.16);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--n1);
}
th {
  background: linear-gradient(180deg, #F0F4F5 0%, #E7EEF0 100%);
  color: #325764;
  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: #F7F9FA; }
tr:hover td { background: #F7F9FA; }

.footer {
  margin-top: 44px;
  border-top: 1px solid rgba(199, 223, 232, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.96) 52%, rgba(239, 243, 245, 0.58) 100%);
  box-shadow: 0 -10px 30px rgba(184, 214, 225, 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(82, 123, 138, 0.2));
}
.footer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2A3C43;
}
.footer-text {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5D7C87;
  max-width: 340px;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #53707A;
}
.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: #4B7686;
  text-decoration-color: rgba(75, 118, 134, 0.5);
}
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-chip {
  border: 1px solid rgba(146, 184, 198, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: #4B6C78;
  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(183, 209, 218, 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: #61828E;
}
.footer-credit {
  margin: 0;
  font-size: 11px;
  color: #86A2AC;
  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: #507786;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(158, 192, 204, 0.35);
  background: rgba(255, 255, 255, 0.76);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(121, 165, 181, 0.55);
}
.muted { color: var(--n4); }
.alert-success {
  background: linear-gradient(135deg, var(--p2) 0%, #EFF4FD 100%);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #E4EBED;
}
.alert-warning {
  background: linear-gradient(135deg, var(--y4) 0%, #DDE6E9 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: #E2E9EC; color: #234755; border-color: #9FC6D4; }
.status-paid { background: #EBF0F2; color: #264B58; border-color: #B5CED7; }
.status-shipped { background: #F0F4F5; color: #3A6C7E; border-color: #C5DEE7; }
.status-completed { background: #E7EEF0; color: #234552; border-color: #A9C6D0; }
.status-cancelled { background: #F1F5F6; color: #3D6E80; border-color: #C1D9E2; }

.pay-unpaid { background: #E6EDEF; color: #295261; border-color: #99C3D2; }
.pay-paid { background: #ECF1F2; color: #274D5A; border-color: #B9D1DA; }
.pay-refunded { background: #F7F8F9; color: #4C7685; border-color: #DEE7EA; }

.fallback-logo {
  object-fit: contain !important;
  background: #FFFFFF;
  padding: 6px;
  border: 1px solid var(--n5);
}

.shop-image {
  background: #FFFFFF url("/img/zynemlogo.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(247, 249, 250, 0.44) 0%, rgba(247, 249, 250, 0.22) 34%, rgba(247, 249, 250, 0.12) 68%),
      linear-gradient(180deg, #F7F9FA 0%, #F7F9FA 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(247, 249, 250, 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(247, 249, 250, 0.97) 100%);
  }
  .detail-info-hub {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 0.97) 100%);
  }
  .cart-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 250, 0.97) 100%);
  }
  .home-support-banner {
    background:
      radial-gradient(circle at right top, rgba(238, 242, 244, 0.52) 0%, rgba(238, 242, 244, 0) 32%),
      linear-gradient(135deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 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(184, 214, 225, 0.32);
    border-color: rgba(184, 214, 225, 0.72);
  }
  50% {
    box-shadow: 0 14px 34px rgba(184, 214, 225, 0.5);
    border-color: rgba(217, 227, 231, 0.86);
  }
  100% {
    box-shadow: 0 10px 22px rgba(184, 214, 225, 0.34);
    border-color: rgba(184, 214, 225, 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(184, 214, 225, 0); }
  50% { text-shadow: 0 6px 16px rgba(184, 214, 225, 0.42); }
  100% { text-shadow: 0 0 0 rgba(184, 214, 225, 0); }
}

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

@keyframes zynemNavSweep {
  0% { background-position: 0% 50%; opacity: 0.82; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.82; }
}

@keyframes zynemNavDots {
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(-10px); opacity: 0.82; }
  100% { transform: translateX(0); opacity: 0.6; }
}

@keyframes zynemLogoBreathe {
  0% {
    opacity: 0.94;
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92))
      drop-shadow(0 10px 18px rgba(35, 58, 66, 0.24))
      drop-shadow(0 4px 10px rgba(172, 207, 220, 0.26));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95))
      drop-shadow(0 13px 22px rgba(54, 82, 138, 0.24))
      drop-shadow(0 5px 13px rgba(190, 205, 237, 0.35));
  }
  100% {
    opacity: 0.94;
    filter:
      drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92))
      drop-shadow(0 10px 18px rgba(35, 58, 66, 0.24))
      drop-shadow(0 4px 10px rgba(172, 207, 220, 0.26));
  }
}

@keyframes zynemTitleGlow {
  0%, 100% {
    opacity: 0.96;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85),
      0 8px 14px rgba(66, 103, 116, 0.24),
      0 3px 7px rgba(172, 207, 220, 0.22);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 10px 18px rgba(74, 102, 166, 0.26),
      0 4px 10px rgba(191, 205, 240, 0.32);
  }
}

@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 {
    --brand-logo-box: 56px;
    column-gap: 10px;
    min-height: var(--brand-logo-box);
    padding-inline-start: 0;
  }
  .brand-logo {
    width: var(--brand-logo-box);
    height: var(--brand-logo-box);
    position: static;
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
  }
  .brand-text { min-height: 0; font-size: 21px; line-height: 1.06; transform: none; }
  body.buyer-ui .brand-link {
    --brand-logo-box: 50px;
    gap: 8px;
    min-height: var(--brand-logo-box);
  }
  body.buyer-ui .brand-logo {
    width: var(--brand-logo-box);
    height: var(--brand-logo-box);
  }
  body.buyer-ui .brand-text {
    min-height: var(--brand-logo-box);
    font-size: 19px;
    letter-spacing: 0.32px;
    line-height: 1.02;
  }
  .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, 44, 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: #F7F9FA; border-color: #E7EEF0; color: #436D7D; }
.toast-success { background: #F2F5F6; border-color: #C5DAE1; color: #264B58; }
.toast-warn { background: #EFF3F5; border-color: #BBD7E1; color: #345C6A; }
.toast-error { background: #F7F9FA; border-color: #DAE4E8; color: #3F7487; }
.cart-feedback-root {
  position: fixed;
  inset: 0;
  z-index: 121;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  visibility: hidden;
}
.cart-feedback-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(12, 16, 22, 0.58);
  opacity: 0;
  transition: opacity 90ms linear;
  box-shadow: none;
  transform: translateZ(0);
}
.cart-feedback-backdrop:hover,
.cart-feedback-backdrop:active {
  transform: none;
  filter: none;
  box-shadow: none;
}
.cart-feedback-panel {
  width: min(420px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid #E7EEF0;
  background: #FFFFFF;
  box-shadow: 0 8px 18px rgba(31, 44, 48, 0.14);
  transform: translate3d(0, 6px, 0);
  opacity: 0;
  transition: transform 90ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 90ms linear;
  position: relative;
  z-index: 1;
  pointer-events: none;
  backface-visibility: hidden;
}
.cart-feedback-root.show {
  pointer-events: auto;
  visibility: visible;
}
.cart-feedback-root.show .cart-feedback-backdrop {
  opacity: 1;
}
.cart-feedback-root.show .cart-feedback-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}
.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: #F7F9FA;
  color: #567C8A;
  box-shadow: none;
}
.cart-feedback-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6386CE;
}
.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: #294049;
}
.cart-feedback-meta {
  margin: 8px 0 0;
  display: grid;
  gap: 2px;
  color: #5B7D89;
  font-size: 12px;
}
.cart-feedback-meta strong {
  color: #2A515F;
  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, #7E9FDE 0%, #6386CE 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(99, 134, 206, 0.28);
}
.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 #EEF2F3;
  box-shadow: 0 8px 16px rgba(31, 44, 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 #EEF2F3;
  box-shadow: 0 6px 14px rgba(31, 44, 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(190, 205, 237, 0.72);
}
.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, #F3F6FE 0%, #E9EFFB 100%);
  color: #4267BA;
}
.preview-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.preview-btn-danger {
  background: linear-gradient(135deg, #F1F4F5 0%, #E7EEF0 100%);
  color: #3F6A7A;
}
.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: #A4C2CD !important;
  box-shadow: 0 0 0 3px rgba(164, 194, 205, 0.2) !important;
}
.field-invalid {
  border-color: #ADCFDC !important;
  box-shadow: 0 0 0 3px rgba(173, 207, 220, 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(199, 223, 232, 0.72);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #F7F9FA 0%, #F7F9FA 100%);
  color: #36545E;
  line-height: 1.5;
}
.pay-option {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--p4);
  background: #FFFFFF;
  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, #F7F9FA 0%, #F7F9FA 100%);
  box-shadow: 0 8px 18px rgba(184, 214, 225, 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(194, 220, 229, 0.65); }
.metric-pending { border-color: rgba(198, 222, 231, 0.9); background: linear-gradient(180deg, #F7F9FA 0%, #F7F9F9 100%); }
.metric-warn { border-color: rgba(181, 209, 219, 0.9); background: linear-gradient(180deg, #F7F9FA 0%, #EEF2F4 100%); }
.metric-good { border-color: rgba(185, 209, 218, 0.9); background: linear-gradient(180deg, #F7F9FA 0%, #F7F9F9 100%); }

.skeleton-card {
  min-height: 106px;
  background: linear-gradient(90deg, #F7F9FA 20%, #F6F7F9 45%, #F7F9FA 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, #F7F9FA 20%, #F6F7F9 45%, #F7F9FA 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(195, 220, 230, 0.68);
  background: linear-gradient(135deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.96) 100%);
  color: #567783;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}
.products-page .products-filter-card {
  border: 1px solid rgba(223, 232, 235, 0.86);
  background:
    radial-gradient(circle at top left, rgba(245, 247, 249, 0.9) 0%, rgba(245, 247, 249, 0) 26%),
    radial-gradient(circle at bottom right, rgba(238, 242, 244, 0.62) 0%, rgba(238, 242, 244, 0) 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.97) 56%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 12px 24px rgba(122, 165, 181, 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 {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.filter-field-price input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.filter-label {
  color: #5F8390;
  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(236, 238, 242, 0.88);
}
.products-summary-block {
  display: grid;
  gap: 3px;
}
.products-page .results-meta {
  margin: 0;
  color: #37515B;
  font-size: 13px;
}
.products-summary-line {
  margin: 0;
  color: #7194A1;
  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(201, 223, 231, 0.84);
  background: rgba(247, 249, 250, 0.96);
  color: #527C8B;
  font-size: 11px;
  font-weight: 700;
}
.active-filter-chip {
  cursor: pointer;
}
.active-filter-chip.clear-all {
  background: rgba(247, 249, 250, 0.98);
  border-color: rgba(168, 200, 212, 0.92);
  color: #3B6F81;
}
.active-filter-chip .chip-x {
  font-size: 14px;
  line-height: 1;
  opacity: 0.66;
}
.products-empty-hint {
  padding: 11px 13px;
  border: 1px dashed rgba(221, 230, 234, 0.92);
  background: rgba(247, 249, 250, 0.86);
  color: #648996;
  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: #213035;
  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, #F1F5FD 0%, #E7EDFA 100%);
  color: #4A66A6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(153, 177, 226, 0.28);
}
.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(199, 223, 232, 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(199, 223, 232, 0.44);
  border-radius: 10px;
  padding: 7px 9px;
  background: #F7F9FA;
}
.order-line .line-name {
  font-weight: 600;
}
.order-line .line-qty {
  color: #60808B;
  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(199, 223, 232, 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, #F1F5FD 0%, #E7EDFA 100%);
  color: #4A66A6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(153, 177, 226, 0.28);
}
.admin-order-toggle svg {
  transition: transform 260ms ease;
}
.admin-order-row.is-open .admin-order-toggle svg {
  transform: rotate(180deg);
}
.admin-order-row.is-unseen td {
  background: #F2F5F6;
}
.admin-order-row.is-unseen td:first-child {
  box-shadow: inset 4px 0 0 #62A1B8;
}
.admin-order-row.is-unseen:hover td {
  background: #E3EAED;
}
.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(199, 223, 232, 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(199, 223, 232, 0.44);
  border-radius: 10px;
  padding: 7px 9px;
  background: #F7F9FA;
}
.admin-order-line .name {
  font-weight: 600;
}
.admin-order-line .qty {
  color: #60808B;
  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(199, 223, 232, 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: #415861;
}
.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #F7F9FA;
  overflow: hidden;
  border: 1px solid #EDEFF3;
}
.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: #506C76;
}
.bar-pending { background: linear-gradient(90deg, #C6DEE7, #A1C9D8); }
.bar-paid { background: linear-gradient(90deg, #C0D7DF, #9DC1CE); }
.bar-shipped { background: linear-gradient(90deg, #E1E5EC, #B7D5E0); }
.bar-completed { background: linear-gradient(90deg, #A9C8D4, #81ADBD); }
.bar-cancelled { background: linear-gradient(90deg, #CDE2E9, #ADCFDC); }

.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(
    #BFDAE4 0 calc(var(--cod) * 1%),
    #A2C9D8 calc(var(--cod) * 1%) calc((var(--cod) + var(--online)) * 1%),
    #F7F9FA 0 100%
  );
  display: grid;
  place-items: center;
  animation: donutPop 700ms ease;
  box-shadow: inset 0 0 0 1px rgba(199, 223, 232, 0.6);
}
.donut-center {
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 16px rgba(31, 44, 48, 0.08);
}
.donut-center strong {
  font-size: 24px;
  line-height: 1;
}
.donut-center span {
  font-size: 12px;
  color: #617F8A;
}

.chart-legend {
  width: 100%;
  display: grid;
  gap: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F7F9FA;
  border: 1px solid #EEF2F3;
  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: #BFDAE4; }
.dot.online { background: #A2C9D8; }

.chart-tooltip {
  position: fixed;
  z-index: 150;
  pointer-events: none;
  background: rgba(31, 44, 48, 0.92);
  color: #FFFFFF;
  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(199, 223, 232, 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(203, 224, 232, 0.72);
}
.kpi-row-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi-critical .kpi-row-head {
  color: #34687B;
}
.kpi-warning .kpi-row-head {
  color: #5F8492;
}
.kpi-healthy .kpi-row-head {
  color: #2C5361;
}
.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: #2A3C43;
}
.page-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #678793;
  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(245, 246, 248, 0.72) 0%, rgba(245, 246, 248, 0) 28%),
    radial-gradient(circle at bottom right, rgba(237, 242, 243, 0.48) 0%, rgba(237, 242, 243, 0) 26%),
    linear-gradient(180deg, #F7F9FA 0%, #F7F9FA 100%);
}
.historical-orders-page .page-head {
  padding: 14px 16px;
  border: 1px solid rgba(206, 225, 232, 0.8);
  background:
    linear-gradient(135deg, rgba(247, 249, 250, 0.96) 0%, rgba(247, 249, 250, 0.96) 58%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(115, 160, 177, 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(155, 191, 205, 0.42);
  background: linear-gradient(135deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #578190;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}
.historical-orders-page .page-title {
  color: #3A5D69;
  letter-spacing: 0.2px;
}
.historical-orders-page .page-crumbs {
  color: #7294A0;
}
.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(223, 232, 235, 0.86);
  background:
    linear-gradient(90deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  box-shadow: inset 3px 0 0 #98BDCA;
}
.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(220, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.76);
  color: #5B7D8A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12px;
}
.historical-orders-page .archive-hero-strip p {
  margin: 4px 0 0;
  color: #5D7F8B;
  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: #578190;
}
.historical-orders-page .archive-hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(180deg, #91BBCA 0%, #74A6B9 100%);
  box-shadow: 0 0 0 4px rgba(145, 187, 202, 0.14);
}
.historical-orders-page .toolbar-row {
  padding: 10px 12px;
  border: 1px solid rgba(230, 237, 239, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 249, 250, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(121, 165, 181, 0.06);
}
.historical-orders-page .toolbar-row select,
.historical-orders-page .toolbar-row input {
  border-color: rgba(199, 221, 229, 0.96);
  background: rgba(247, 249, 250, 0.98);
}
.historical-orders-page .toolbar-row .btn-soft {
  background: linear-gradient(135deg, #F7F9FA 0%, #F0F4F5 100%);
  border-color: rgba(171, 207, 220, 0.66);
}
.historical-orders-page .results-meta {
  margin-top: 8px;
  padding-left: 2px;
  color: #698D9A;
  font-weight: 600;
}
.historical-orders-page .table-wrap {
  border: 1px solid rgba(229, 236, 238, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(112, 156, 172, 0.08);
  position: relative;
}
.historical-orders-page .table-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #94BBCA 0%, #AACBD7 48%, #99C1CF 100%);
}
.historical-orders-page thead tr {
  background:
    linear-gradient(90deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 52%, rgba(247, 249, 250, 0.98) 100%);
}
.historical-orders-page tbody td {
  border-bottom-color: rgba(239, 243, 244, 0.9);
}
.historical-orders-page .admin-order-row:hover td {
  background: rgba(247, 249, 250, 0.78);
}
.historical-orders-page .admin-order-detail-panel {
  background:
    linear-gradient(180deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  border: 1px solid rgba(236, 238, 242, 0.9);
}
.historical-orders-page .admin-order-toggle {
  background: linear-gradient(135deg, #F7F8FA 0%, #F0F4F5 100%);
  color: #558799;
  box-shadow: 0 6px 14px rgba(155, 190, 202, 0.18);
}
.historical-orders-page .status-badge.pay-unpaid {
  border-color: rgba(153, 186, 198, 0.72);
  background: rgba(244, 246, 247, 0.95);
  color: #3A6D80;
}
.historical-orders-page .status-badge.pay-paid {
  border-color: rgba(186, 215, 225, 0.72);
  background: rgba(247, 249, 250, 0.95);
  color: #4E8498;
}
.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(164, 198, 210, 0.72);
  background: linear-gradient(135deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  color: #598595;
}
.historical-orders-page .archive-source-badge.live {
  border-color: rgba(159, 188, 199, 0.82);
  background: linear-gradient(135deg, rgba(241, 244, 245, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  color: #345763;
}

.admin-harmony-page {
  background:
    radial-gradient(circle at top left, rgba(245, 246, 248, 0.62) 0%, rgba(245, 246, 248, 0) 28%),
    radial-gradient(circle at bottom right, rgba(237, 242, 243, 0.34) 0%, rgba(237, 242, 243, 0) 24%),
    linear-gradient(180deg, #F7F9FA 0%, #F7F9FA 100%);
}
.admin-harmony-page .page-head {
  padding: 14px 16px;
  border: 1px solid rgba(206, 225, 232, 0.8);
  background:
    linear-gradient(135deg, rgba(247, 249, 250, 0.96) 0%, rgba(247, 249, 250, 0.96) 58%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 16px 34px rgba(115, 160, 177, 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: #3A5D69;
  letter-spacing: 0.2px;
}
.admin-harmony-page .page-crumbs {
  color: #7294A0;
}
.admin-mode-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(155, 191, 205, 0.42);
  background: linear-gradient(135deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #578190;
  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(223, 232, 235, 0.86);
  background:
    linear-gradient(90deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  box-shadow: inset 3px 0 0 #98BDCA;
}
.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: #578190;
}
.admin-intro-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: linear-gradient(180deg, #91BBCA 0%, #74A6B9 100%);
  box-shadow: 0 0 0 4px rgba(145, 187, 202, 0.14);
}
.admin-intro-strip p {
  margin: 4px 0 0;
  color: #5D7F8B;
  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(220, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.76);
  color: #5B7D8A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12px;
}
.admin-filter-card {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 237, 239, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 249, 250, 0.95) 100%);
  box-shadow: 0 10px 20px rgba(121, 165, 181, 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: #38555F;
  letter-spacing: 0.12px;
}
.admin-section-copy {
  margin: 4px 0 0;
  color: #628693;
  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(199, 221, 229, 0.96);
  background: rgba(247, 249, 250, 0.98);
}
.admin-harmony-page .results-meta {
  margin: 8px 0 0;
  color: #698D9A;
  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(229, 236, 238, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 0.96) 100%);
  box-shadow: 0 18px 38px rgba(112, 156, 172, 0.08);
  position: relative;
}
.admin-content-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #94BBCA 0%, #AACBD7 48%, #99C1CF 100%);
}
.admin-harmony-page thead tr {
  background:
    linear-gradient(90deg, rgba(247, 249, 250, 0.98) 0%, rgba(247, 249, 250, 0.98) 52%, rgba(247, 249, 250, 0.98) 100%);
}
.admin-harmony-page tbody td {
  border-bottom-color: rgba(239, 243, 244, 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(230, 237, 239, 0.86);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(247, 249, 250, 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(228, 235, 237, 0.9);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  box-shadow: 0 12px 24px rgba(112, 156, 172, 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: #38555F;
}
.finance-closing-range,
.finance-closing-files,
.finance-closing-note-copy,
.finance-closing-history-empty {
  margin: 0;
  color: #638693;
  font-size: 12.5px;
  line-height: 1.55;
}
.finance-closing-history-meta {
  color: #5C7D89;
  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(185, 212, 222, 0.85);
  background: rgba(247, 249, 250, 0.94);
  color: #507887;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.finance-closing-chip.subtle {
  border-color: rgba(226, 230, 236, 0.95);
  background: rgba(247, 249, 250, 0.96);
  color: #5B7B87;
  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(195, 216, 223, 0.92);
  background: linear-gradient(180deg, rgba(247, 249, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.product-lifecycle-danger-card .chart-head h4 {
  color: #335A68;
}

/* 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(247, 249, 250, 0.96) 100%),
    repeating-linear-gradient(0deg, rgba(243, 246, 247, 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(247, 249, 250, 0.96) 100%),
    repeating-linear-gradient(90deg, rgba(243, 246, 247, 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(195, 220, 229, 0.7);
  background: rgba(247, 249, 250, 0.88);
  color: #45646F;
  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(169, 205, 218, 0.9);
  background: rgba(247, 249, 250, 0.95);
}
.dashboard-main .dashboard-tab-btn.is-active {
  color: #29454F;
  border-color: rgba(150, 195, 211, 0.95);
  background:
    linear-gradient(92deg, rgba(247, 248, 249, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  box-shadow: 0 4px 10px rgba(120, 169, 187, 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(233, 239, 241, 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: #597985;
}
.dashboard-main .maintenance-meta {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #608390;
}
.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: #597985;
}
.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(199, 223, 232, 0.52);
  background: rgba(247, 249, 250, 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: #5B7C88;
}
.dashboard-main .purge-summary-card strong {
  font-size: 15px;
  line-height: 1.2;
  color: #2F454D;
}
.dashboard-main .purge-preview-wrap {
  border: 1px solid rgba(225, 229, 236, 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(236, 238, 242, 0.8);
  text-align: left;
  font-size: 11.5px;
  color: #3D5761;
}
.dashboard-main .purge-preview-table th {
  font-size: 10.5px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  color: #5E7F8B;
  background: linear-gradient(90deg, rgba(247, 249, 250, 0.95) 0%, rgba(247, 249, 250, 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: #2F525F;
  border-color: rgba(132, 171, 185, 0.72);
  background: rgba(243, 246, 247, 0.92);
}
.dashboard-main .purge-run-log {
  border-top: 1px dashed rgba(218, 228, 232, 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(199, 223, 232, 0.52);
  background: rgba(247, 249, 250, 0.74);
  color: #45616B;
  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(138, 186, 203, 0.17);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 249, 250, 0.9) 36%, rgba(247, 249, 250, 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: #597985;
  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(199, 223, 232, 0.6);
  background: rgba(247, 249, 250, 0.92);
  color: #577783;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.dashboard-main .metric-compare-up {
  color: #2C5361;
  border-color: rgba(177, 203, 212, 0.9);
  background: rgba(246, 248, 249, 0.95);
}
.dashboard-main .metric-compare-down {
  color: #3B7489;
  border-color: rgba(184, 213, 223, 0.9);
  background: rgba(243, 246, 247, 0.96);
}
.dashboard-main .metric-compare-flat {
  color: #55737E;
}
.dashboard-main .metric-value {
  margin: 0;
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.1;
  font-weight: 800;
  color: #24353B;
  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(70, 139, 164, 0.42);
  background: linear-gradient(180deg, rgba(246, 248, 249, 0.98) 0%, rgba(221, 230, 234, 0.98) 100%);
  color: #2A5361;
  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(85, 143, 164, 0.18);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.dashboard-main .metric-help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(85, 143, 164, 0.22);
}
.dashboard-main .metric-help-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 168, 190, 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(218, 228, 232, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 250, 0.99) 100%);
  color: #36505A;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 16px 30px rgba(92, 133, 148, 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(194, 220, 229, 0.56);
}
.dashboard-main .metric-info {
  border-color: rgba(178, 211, 223, 0.62);
  background:
    linear-gradient(165deg, rgba(247, 249, 250, 0.94) 0%, rgba(247, 249, 250, 0.9) 42%, rgba(246, 247, 249, 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(180, 211, 222, 0.86);
  background:
    linear-gradient(165deg, rgba(247, 249, 250, 0.95) 0%, rgba(242, 245, 246, 0.9) 42%, rgba(231, 237, 239, 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(173, 205, 217, 0.86);
  background:
    linear-gradient(165deg, rgba(247, 249, 250, 0.95) 0%, rgba(239, 243, 244, 0.9) 42%, rgba(226, 234, 237, 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(179, 205, 214, 0.9);
  background:
    linear-gradient(165deg, rgba(247, 249, 250, 0.95) 0%, rgba(246, 248, 249, 0.9) 42%, rgba(237, 242, 243, 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(247, 249, 250, 0.95) 100%),
    repeating-linear-gradient(0deg, rgba(243, 246, 247, 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(233, 239, 241, 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 #E8EDFA;
  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: #55737E;
  background: #F7F9FA;
  position: sticky;
  top: 0;
}
.dashboard-main .small-table-wrap tr + tr td {
  border-top: 1px solid #F7F9FA;
}
.dashboard-main .small-table-wrap tbody tr:hover td {
  background: rgba(247, 249, 250, 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: #273B42;
  --dash-text: #344C54;
  --dash-muted: #658793;
  --dash-border: rgba(219, 229, 232, 0.96);
  --dash-surface: #F7F9FA;
  --dash-surface-strong: #FFFFFF;
  --dash-accent: #4F7785;
  --dash-accent-soft: #F1F5F6;
  --dash-info: #486F7D;
  --dash-info-soft: #F5F7F9;
  --dash-pending: #437486;
  --dash-pending-soft: #F5F8F9;
  --dash-warn: #528091;
  --dash-warn-soft: #F6F8F9;
  --dash-good: #3B606E;
  --dash-good-soft: #F5F7F8;
  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, 250, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(74, 106, 118, 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(247, 249, 250, 0.99) 0%, rgba(247, 249, 250, 0.98) 58%, rgba(247, 249, 250, 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(201, 216, 221, 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(201, 216, 221, 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(201, 216, 221, 0.96);
  background: #F7F9FA;
  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(226, 230, 236, 0.98);
  background: rgba(247, 249, 250, 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(201, 216, 222, 0.96);
  background: rgba(247, 249, 250, 0.98);
  color: #4F6D78;
}
.dashboard-main .dashboard-tab-btn.is-active {
  border-color: rgba(169, 192, 201, 0.98);
  background: linear-gradient(135deg, #F5F6F8 0%, #EEF2F3 100%);
  color: var(--dash-ink);
  box-shadow: 0 6px 16px rgba(81, 115, 127, 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(220, 229, 233, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
  box-shadow: 0 10px 18px rgba(80, 109, 120, 0.06);
}
.dashboard-urgent-item.tone-pending {
  border-color: rgba(198, 218, 225, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 249, 0.98) 100%);
}
.dashboard-urgent-item.tone-warn {
  border-color: rgba(201, 218, 224, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 248, 249, 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(220, 229, 233, 0.98);
  background: #F7F9FA;
  color: #5C7D89;
}
.dashboard-urgent-badge.tone-pending {
  border-color: rgba(198, 218, 225, 0.98);
  background: #EFF3F4;
  color: #416C7B;
}
.dashboard-urgent-badge.tone-warn {
  border-color: rgba(201, 218, 224, 0.98);
  background: #EEF2F4;
  color: #538090;
}
.dashboard-urgent-badge.tone-good {
  border-color: rgba(196, 213, 219, 0.98);
  background: #F1F5F6;
  color: #446773;
}
.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(94, 131, 144, 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: #49586F;
}
.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(225, 233, 236, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 250, 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(220, 229, 233, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 249, 250, 0.99) 100%);
  box-shadow: 0 10px 18px rgba(80, 109, 120, 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(211, 223, 227, 0.98);
  background: #F7F9FA;
  color: #61838F;
  font-size: 9.5px;
  justify-self: start;
}
.dashboard-main .metric-compare-up {
  color: var(--dash-good);
  border-color: rgba(186, 206, 213, 0.98);
  background: var(--dash-good-soft);
}
.dashboard-main .metric-compare-down {
  color: var(--dash-warn);
  border-color: rgba(193, 213, 220, 0.98);
  background: var(--dash-warn-soft);
}
.dashboard-main .metric-default::before {
  background: #91ADB7;
}
.dashboard-main .metric-info {
  border-color: rgba(194, 213, 220, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 247, 249, 0.96) 100%);
}
.dashboard-main .metric-info::before {
  background: var(--dash-info);
}
.dashboard-main .metric-pending {
  border-color: rgba(198, 218, 225, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 249, 0.98) 100%);
}
.dashboard-main .metric-pending::before {
  background: var(--dash-pending);
}
.dashboard-main .metric-warn {
  border-color: rgba(201, 218, 224, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 248, 249, 0.98) 100%);
}
.dashboard-main .metric-warn::before {
  background: var(--dash-warn);
}
.dashboard-main .metric-good {
  border-color: rgba(196, 213, 219, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 247, 248, 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(247, 249, 250, 0.99) 100%);
}
.dashboard-main .chart-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom-color: rgba(226, 230, 236, 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(225, 229, 236, 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: #F7F9FA;
  color: #62838F;
}
.dashboard-main .small-table-wrap tbody tr:hover td {
  background: rgba(240, 244, 245, 0.56);
}
.dashboard-main .legend-item {
  border-color: rgba(220, 229, 233, 0.98);
  background: #F7F9FA;
  color: var(--dash-text);
}
.dashboard-main .bar-track {
  background: #EEF2FC;
}
.dashboard-main .bar-label,
.dashboard-main .bar-value {
  color: var(--dash-text);
}
.dashboard-main .bar-pending { background: linear-gradient(90deg, #8CB5C4 0%, #558EA2 100%); }
.dashboard-main .bar-paid { background: linear-gradient(90deg, #7FA4B2 0%, #568090 100%); }
.dashboard-main .bar-shipped { background: linear-gradient(90deg, #A0BBC4 0%, #7497A4 100%); }
.dashboard-main .bar-completed { background: linear-gradient(90deg, #7DA1AE 0%, #486E7C 100%); }
.dashboard-main .bar-cancelled { background: linear-gradient(90deg, #99BAC6 0%, #6799AB 100%); }
.dashboard-main .donut-chart {
  background:
    conic-gradient(
      #789BA8 0 calc(var(--cod) * 1%),
      #568090 calc(var(--cod) * 1%) calc((var(--cod) + var(--online)) * 1%),
      #EEF2FC 0 100%
    );
  box-shadow: inset 0 0 0 1px rgba(220, 229, 233, 0.96);
}
.dashboard-main .donut-center {
  background: #FFFFFF;
}
.dashboard-main .dot.cod { background: #789BA8; }
.dashboard-main .dot.online { background: #568090; }
.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: #24343A;
}
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: #32454C; }
.muted { color: #617F8A; }
.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: #2E4047;
}

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, 249, 250, 0.96) 100%),
    #F7F9FA;
  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 {
    padding: 12px;
  }
  .cart-feedback-panel {
    width: 100%;
    padding: 13px 13px calc(12px + env(safe-area-inset-bottom, 0px));
    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);
  }
}

/* ZYNEM Angular Corner System */
body {
  --zynem-corner-panel: 10px;
  --zynem-corner-control: 8px;
  --zynem-corner-chip: 7px;
}

.navbar,
.hero,
.card,
.product-card,
.auth-card,
.table-wrap,
.chart-card,
.products-filter-card,
.category-sidebar,
.info-hub-card,
.cart-item-card,
.cart-summary-card,
.order-item-card,
.home-usp-card,
.home-need-card,
.home-order-step,
.home-support-banner,
.home-order-accordion,
.pdp-summary-block,
.pdp-copy-block,
.pdp-purchase-block,
.detail-main-image,
.thumb-btn,
.cart-feedback-panel,
.toast {
  border-radius: var(--zynem-corner-panel) !important;
}

input,
select,
textarea,
button,
.btn-soft,
.nav-link,
.action-link,
.add-btn,
.category-sidebar-link,
.order-toggle-btn,
.smart-back-btn,
.toolbar-btn-sm,
.toolbar-btn-md,
.toolbar-btn-lg {
  border-radius: var(--zynem-corner-control) !important;
}

[class*="chip"],
[class*="badge"],
[class*="kicker"],
.like-btn,
.rating-chip,
.status-pill,
.qty-stepper,
.qty-btn,
.qty-input {
  border-radius: var(--zynem-corner-chip) !important;
}

.product-card-media,
.product-card .shop-image,
.cart-item-media .shop-image,
.thumb-btn .shop-image {
  border-radius: 7px !important;
}

/* Product detail scroll performance tuning */
body.product-detail-page {
  background-attachment: scroll, scroll, scroll;
}
body.product-detail-page::before,
body.product-detail-page::after {
  filter: blur(20px);
  opacity: 0.18;
}
body.product-detail-page .navbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.product-detail-page .navbar::before,
body.product-detail-page .navbar::after,
body.product-detail-page .brand-logo,
body.product-detail-page .brand-text {
  animation: none !important;
}
body.product-detail-page .navbar::before,
body.product-detail-page .navbar::after {
  opacity: 0.24;
}
body.product-detail-page .detail-main-image {
  box-shadow: 0 6px 14px rgba(38, 52, 80, 0.12);
}
body.product-detail-page .thumb-btn {
  box-shadow: 0 2px 8px rgba(31, 44, 48, 0.07);
}
body.product-detail-page .pdp-summary-block,
body.product-detail-page .pdp-copy-block,
body.product-detail-page .pdp-purchase-block,
body.product-detail-page .detail-info-hub {
  box-shadow: none;
}
body.product-detail-page #also-grid .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 250px;
}
@media (max-width: 1024px) {
  body.product-detail-page .pdp-purchase-block {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
  }
}






