/* ================================================================
   Home Kit — storefront styles
   ================================================================ */

:root {
  --cream: #fffdf5;
  --cream-deep: #fff5cc;
  --card: #ffffff;
  --ink: #132238;
  --ink-soft: #36455c;
  --muted: #6c7788;
  --line: #f0e3b6;
  --coral: #dc2626;
  --coral-soft: #fde2e2;
  --coral-deep: #003580;
  --maroon: #002b6b;
  --brand: #ffd000;
  --brand-deep: #e6aa00;
  --brand-navy: #002b6b;
  --brand-soft: #fff4bd;
  --gold: #ffd000;
  --green: #187941;
  --green-soft: #e6f5ec;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(130, 92, 0, .06);
  --shadow: 0 14px 32px rgba(130, 92, 0, .11);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  overflow-x: clip;
  max-width: 100%;
  background:
    radial-gradient(900px 420px at 88% -6%, rgba(255, 208, 0, .20), transparent 62%),
    radial-gradient(760px 420px at 4% 4%, rgba(0, 53, 128, .06), transparent 60%),
    var(--cream);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Top app bar
   ---------------------------------------------------------------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--brand-navy);
  background:
    radial-gradient(520px 200px at 88% -15%, rgba(255, 255, 255, .44), transparent 65%),
    radial-gradient(360px 180px at 8% 120%, rgba(255, 179, 0, .28), transparent 70%),
    linear-gradient(130deg, #ffe033 0%, #ffd000 54%, #f5b800 100%);
  border-bottom: 1px solid rgba(0, 43, 107, .12);
  border-radius: 0 0 22px 22px;
  padding: 12px 14px 15px;
  box-shadow: 0 12px 28px rgba(178, 126, 0, .22);
}

.appbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appbar__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.appbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}

.appbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  order: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(7, 36, 28, .22);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: inherit;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand-navy);
}

.brand__text small {
  font-size: 11px;
  color: #003b8e;
  font-weight: 600;
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.round-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 43, 107, .09);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px rgba(0, 43, 107, .16);
  transition: background .16s ease, transform .16s ease;
}

.round-btn:hover {
  background: rgba(0, 43, 107, .16);
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.round-btn .dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
}

.appbar__title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  order: 3;
  background: #fff;
  border-radius: 14px;
  padding: 4px 5px 4px 13px;
  border: 1px solid rgba(0, 43, 107, .14);
  box-shadow: 0 8px 20px rgba(145, 102, 0, .14);
}

.searchbar svg {
  width: 18px;
  height: 18px;
  color: #7c8da8;
  flex: 0 0 auto;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.searchbar input::placeholder {
  color: #8b98ae;
}

.searchbar__go {
  border: 0;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(130deg, #0046a6, #002b6b);
  transition: filter .15s ease;
}

.searchbar__go:hover {
  filter: brightness(1.08);
}

.topnav {
  display: none;
}

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px calc(148px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section__head h2 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.section__head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.section__link {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section__link svg {
  width: 14px;
  height: 14px;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.page-head p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ----------------------------------------------------------------
   Hero carousel
   ---------------------------------------------------------------- */

.hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-stage {
  position: relative;
}

.hero {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hero::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 178px;
  padding: 18px 16px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 30px rgba(0, 32, 82, .16);
}

.promo-slide::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -50px;
  top: -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, .26) 0%, rgba(255, 212, 0, 0) 70%);
  pointer-events: none;
}

.promo-slide--green {
  background: linear-gradient(125deg, #0b4f2f 0%, #157347 58%, #1e8e5a 100%);
}

.promo-slide--navy {
  background: linear-gradient(125deg, #001f4d 0%, #002b6b 55%, #124899 100%);
}

.promo-slide--amber {
  background: linear-gradient(125deg, #7c3806 0%, #b5540a 56%, #d97706 100%);
}

.promo-slide--plum {
  background: linear-gradient(125deg, #5a1230 0%, #831843 56%, #a62659 100%);
}

.promo-slide__body {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero__tag {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
  color: #ffe77a;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-slide__body h2 {
  font-size: 19px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.01em;
  color: #fff;
}

.promo-slide__sub {
  font-size: 11.5px;
  line-height: 1.38;
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffd000;
  color: #002b6b;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .20);
  transition: transform .15s ease, background .15s ease;
}

.promo-slide:hover .hero__cta {
  background: #ffe14d;
  transform: translateY(-1px);
}

.promo-slide__media {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 108px;
  height: 122px;
  border-radius: 18px;
  overflow: visible;
}

.promo-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.promo-slide:hover .promo-slide__media img {
  transform: scale(1.05) rotate(-1.5deg);
}

.promo-sticker {
  position: absolute;
  left: -10px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 10px;
  background: #ffd000;
  color: #002b6b;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  transform: rotate(-4deg);
  white-space: nowrap;
}

.hero-nav {
  display: none;
}

.hero__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.hero__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e5d28e;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero__dots span.is-active {
  width: 24px;
  background: #002b6b;
}

/* ----------------------------------------------------------------
   Trust strip
   ---------------------------------------------------------------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  margin-top: -8px;
}

.trust::-webkit-scrollbar {
  display: none;
}

.trust__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------
   Category tiles
   ---------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 11px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-tile__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 13px;
  overflow: hidden;
  background: var(--cream-deep);
}

.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.cat-tile:hover .cat-tile__media img {
  transform: scale(1.05);
}

.cat-tile > span:last-child {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  max-width: 100%;
}

/* ----------------------------------------------------------------
   Product cards
   ---------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 9px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pc-stage {
  position: relative;
}

.pc-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 28% 14%, color-mix(in srgb, var(--accent, #2f7d4f) 22%, #fff), #fff 72%);
}

.pc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 22% 18%, rgba(255, 255, 255, .6), transparent 62%);
  pointer-events: none;
}

.pc-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 13vw, 62px);
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(60, 25, 10, .18));
  transition: transform .25s ease;
}

.product-card:hover .pc-emoji {
  transform: translateY(-2px) scale(1.03);
}

.pc-add {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
}

.pc-add__form[hidden],
.pc-stepper[hidden] {
  display: none;
}

.pc-add__form {
  margin: 0;
}

.pc-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 86px;
  height: 31px;
  margin: 0;
  background: #ffd000;
  color: #002b6b;
  border: 1.6px solid #e0a800;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(178, 126, 0, .24);
  overflow: hidden;
}

.pc-stepper__btn {
  width: 28px;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #002b6b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}

.pc-stepper__btn:hover:not([disabled]) {
  background: rgba(0, 43, 107, .12);
}

.pc-stepper__btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.pc-stepper__qty {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 2px;
}

.add-btn {
  min-width: 74px;
  background: #fff9db;
  border: 1.6px solid #e0a800;
  color: #002b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 7px 12px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(178, 126, 0, .18);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.add-btn:hover {
  background: #ffd000;
  color: #002b6b;
}

.add-btn.is-added {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.add-btn[disabled] {
  opacity: .8;
  cursor: not-allowed;
  border-color: #b8a9a0;
  color: #8b7f77;
}

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pc-name {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.pc-unit {
  font-size: 11.5px;
  color: var(--muted);
}

.pc-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0;
}

.pc-variants--pdp {
  gap: 7px;
  margin: 4px 0;
}

.pc-variant {
  border: 1px solid var(--line);
  background: #faf6f2;
  color: var(--ink-soft);
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.pc-variants--pdp .pc-variant {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.pc-variant:hover:not([disabled]) {
  border-color: #e0a800;
  color: #002b6b;
}

.pc-variant.is-active {
  background: #fff3b8;
  border-color: #e0a800;
  color: #002b6b;
}

.pc-variant[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.pc-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.pc-price b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1px;
}

.pc-price s {
  font-size: 11.5px;
  color: #b1a49b;
}

.pc-save {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  padding: 3px 6px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   Category layout + rail
   ---------------------------------------------------------------- */

.category-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 12px 104px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}

.rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.15;
  color: var(--ink-soft);
  text-align: center;
  transition: color .15s ease;
}

.rail__media {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  font-size: 22px;
}

.rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail__item.is-active {
  color: var(--coral-deep);
}

.rail__item.is-active .rail__media {
  border-color: rgba(0, 70, 166, .55);
  box-shadow: 0 6px 16px rgba(0, 70, 166, .2);
}

.list-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px 6px;
}

.list-head h1 {
  font-size: 17px;
  font-weight: 750;
}

.list-head p {
  font-size: 11.5px;
  color: var(--muted);
}

.sortbar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
}

.sortbar::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.chip.is-active {
  background: #ffd000;
  border-color: #e0a800;
  color: #002b6b;
}

/* ----------------------------------------------------------------
   Product detail
   ---------------------------------------------------------------- */

.pdp {
  display: grid;
  gap: 18px;
}

.pdp__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(110% 90% at 28% 18%, color-mix(in srgb, var(--accent, #2f7d4f) 20%, #fff), #fff 72%);
}

.pdp__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 22% 16%, rgba(255, 255, 255, .55), transparent 62%);
  pointer-events: none;
}

.pdp__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(112px, 30vw, 168px);
  line-height: 1;
  filter: drop-shadow(0 18px 28px rgba(60, 25, 10, .18));
}

.pdp__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(28, 122, 61, .28);
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.pdp__info h1 {
  font-size: 23px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.pdp__unit {
  font-size: 13px;
  color: var(--muted);
}

.pdp__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.pdp__price b {
  font-size: 25px;
  font-weight: 800;
}

.pdp__price s {
  font-size: 14px;
  color: #b1a49b;
}

.pdp__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pdp__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.assurance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.assurance li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.assurance span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   Quantity stepper
   ---------------------------------------------------------------- */

.qty {
  display: inline-flex;
  align-items: center;
  width: max-content;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #fff;
  color: var(--coral-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.qty button:hover {
  background: var(--cream);
}

.qty input {
  width: 46px;
  height: 38px;
  border: 0;
  background: #fff;
  text-align: center;
  font-weight: 750;
  font-size: 14px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e6aa00;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #002b6b;
  background: linear-gradient(130deg, #ffe033, #ffbe00);
  box-shadow: 0 10px 22px rgba(204, 146, 0, .24);
  transition: filter .18s ease, transform .18s ease;
}

.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  filter: none;
  background: var(--cream-deep);
}

.btn--dark {
  background: #002b6b;
  border-color: #002b6b;
  color: #ffd400;
  box-shadow: 0 10px 22px rgba(0, 43, 107, .22);
}

.btn--emerald {
  background: linear-gradient(130deg, #ffe033, #ffbe00);
  border-color: #e6aa00;
  color: #002b6b;
  box-shadow: 0 10px 22px rgba(204, 146, 0, .24);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 12.5px;
  border-radius: 11px;
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--coral-deep);
  font-size: 11.5px;
  font-weight: 750;
}

.link-btn--muted {
  color: var(--muted);
}

/* ----------------------------------------------------------------
   Cards, cart, bill
   ---------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card__head h2 {
  font-size: 15px;
  font-weight: 750;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.cart-item__media {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 26px;
  background: radial-gradient(120% 100% at 28% 14%, color-mix(in srgb, var(--accent, #2f7d4f) 22%, #fff), #fff 72%);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-item__name {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.28;
}

.cart-item__meta {
  font-size: 11.5px;
  color: var(--muted);
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-item__price s {
  font-size: 11px;
  font-weight: 500;
  color: #b1a49b;
  margin-left: 4px;
}

.cart-item .qty {
  transform: scale(.92);
  transform-origin: right center;
}

.bill {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.bill__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
}

.bill__row--save {
  color: var(--green);
  font-weight: 750;
}

.bill__row--total {
  border-top: 1px dashed var(--line);
  margin-top: 3px;
  padding-top: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.bill__note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------------
   Sticky checkout bar + bottom nav
   ---------------------------------------------------------------- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 45;
  padding: 10px 14px;
  background: rgba(255, 253, 245, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(130, 92, 0, .08);
}

body:has(.sticky-bar) .main {
  padding-bottom: calc(210px + env(safe-area-inset-bottom));
}

.sticky-bar__in {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar__total {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-bar__total b {
  font-size: 17px;
  font-weight: 800;
}

.sticky-bar__total small {
  font-size: 11px;
  color: var(--muted);
}

.sticky-bar .btn {
  flex: 0 0 auto;
  padding: 12px 22px;
}

.site-credit {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
}

.site-credit a {
  color: #002b6b;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-credit a:hover {
  color: #001c47;
}

.site-credit__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
  text-align: center;
}

.site-credit__links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
}

.site-credit__links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-credit__make {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf7;
  color: var(--ink-soft);
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.site-credit__flag {
  display: inline-flex;
}

.site-credit__flag svg {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.site-credit--nav {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 4px 5px;
  font-size: 9.5px;
  opacity: 1;
}

.site-credit--page {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 39, 102, .08);
}

.bottom-nav__in {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 650;
  color: #a3968d;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.is-active {
  color: #002b6b;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #f5b800;
}

.nav-item .dot {
  position: absolute;
  top: 0;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ----------------------------------------------------------------
   Orders
   ---------------------------------------------------------------- */

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card__no {
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .02em;
}

.order-card__date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.order-card__items {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.order-card__foot b {
  font-size: 15px;
  font-weight: 800;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip--amber {
  background: #fdf0d8;
  color: #9d6608;
}

.chip--blue {
  background: #e6effc;
  color: #22558f;
}

.chip--purple {
  background: #efe8fb;
  color: #5b3a94;
}

.chip--green {
  background: var(--green-soft);
  color: var(--green);
}

.chip--red {
  background: #fbe4e2;
  color: #b52a22;
}

.chip--grey {
  background: #f0ebe7;
  color: #6d635c;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 2px;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--muted);
}

.timeline__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2e8e1;
  color: #a3968d;
  font-size: 12px;
  font-weight: 800;
}

.timeline__step.is-done {
  color: var(--ink);
}

.timeline__step.is-done .timeline__dot {
  background: var(--green);
  color: #fff;
}

.timeline__step.is-current .timeline__dot {
  background: #ffd000;
  color: #002b6b;
  box-shadow: 0 0 0 4px rgba(255, 208, 0, .26);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #95867c;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdfb;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #e0a800;
  box-shadow: 0 0 0 4px rgba(255, 208, 0, .20);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field small {
  font-size: 11px;
  color: var(--muted);
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: #d3483f;
}

.field--error > label {
  color: #b52a22;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

@media (max-width: 500px) {
  .form-row:has(.input-pass) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral-deep);
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.pay input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral-deep);
  flex: 0 0 auto;
}

.pay__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}

.pay__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.pay__text b {
  font-size: 13px;
}

.pay__text small {
  font-size: 11px;
  color: var(--muted);
}

.pay:has(input:checked) {
  border-color: #e0a800;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, .20);
}

.addr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.addr-card.is-selected {
  border-color: #e0a800;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, .20);
}

.addr-card__pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.addr-card__pick input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #002b6b;
  flex: 0 0 auto;
}

.addr-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.addr-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.addr-card__top small {
  font-size: 12px;
  color: var(--muted);
}

.addr-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3b8;
  border: 1px solid #e5c65c;
  color: #002b6b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.addr-card__line {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.addr-card__edit {
  flex: 0 0 auto;
  padding: 4px 6px;
}

.addr-editor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.addr-editor__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Auth
   ---------------------------------------------------------------- */

.auth {
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 16px calc(148px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth h1 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.auth .lede {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.auth__alt {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.auth__alt a {
  color: var(--coral-deep);
  font-weight: 750;
}

.hint {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hint b {
  color: var(--ink);
}

/* Split Auth Showcase (login.php) */
.auth-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px calc(148px + env(safe-area-inset-bottom));
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(18, 52, 40, .12);
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 22px;
  color: #002b6b;
  background:
    radial-gradient(360px 220px at 90% 8%, rgba(255, 255, 255, .45), transparent 65%),
    radial-gradient(280px 180px at 10% 100%, rgba(255, 179, 0, .30), transparent 65%),
    linear-gradient(145deg, #ffe033 0%, #ffd000 58%, #f5b800 100%);
}

.auth-aside__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-aside__logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: transparent;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
  display: grid;
  place-items: center;
  font-size: 22px;
  overflow: hidden;
  flex: 0 0 auto;
}

.auth-aside__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.auth-aside__brand strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.auth-aside__brand small {
  display: block;
  font-size: 11.5px;
  color: #003b8e;
  font-weight: 600;
}

.auth-aside__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-aside__eyebrow {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #002b6b;
  border: 1px solid #002b6b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ffd400;
}

.auth-aside__copy h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.auth-aside__copy p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #163768;
  font-weight: 500;
}

.auth-aside__perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-aside__perks li {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(0, 43, 107, .12);
  font-size: 12.5px;
  font-weight: 650;
  color: #002b6b;
}

.auth-aside__seller {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #002b6b;
  border: 1px solid #002b6b;
  color: #ffd400;
  font-size: 12.5px;
  font-weight: 700;
  transition: filter .15s ease;
}

.auth-aside__seller:hover {
  filter: brightness(1.15);
}

.auth-panel {
  padding: 20px;
  display: flex;
  align-items: center;
  background: #fff;
}

.auth__card--elevated {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 4px;
  box-shadow: none;
  gap: 16px;
}

.auth-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-panel__head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.auth-panel__head p {
  font-size: 12.5px;
  color: var(--muted);
}

.auth-panel__head a {
  color: var(--coral-deep);
  font-weight: 750;
}

.auth-panel .field input:focus {
  border-color: #e0a800;
  box-shadow: 0 0 0 4px rgba(255, 208, 0, .20);
}

.input-pass {
  position: relative;
  display: flex;
  align-items: center;
}

.input-pass input {
  padding-right: 64px;
}

.input-pass__toggle {
  position: absolute;
  right: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff4bd;
  color: #002b6b;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 750;
}

.input-pass__toggle:hover {
  background: #ffe885;
}

.demo-box {
  margin-top: 2px;
  padding: 13px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #f0df99;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.demo-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #002b6b;
}

.demo-box__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f3e8be;
}

.demo-row__ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff3b8;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.demo-row__info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.demo-row__info strong {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}

.demo-row__info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-row__info code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: #002b6b;
  background: #fff4bd;
  padding: 1px 5px;
  border-radius: 5px;
}

.demo-row__btn {
  flex: 0 0 auto;
  border: 1px solid #e5c65c;
  border-radius: 9px;
  background: #fff4bd;
  color: #002b6b;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
  transition: background .15s ease, color .15s ease;
}

.demo-row__btn:hover {
  background: #ffd000;
  border-color: #e0a800;
  color: #002b6b;
}

@media (min-width: 820px) {
  .auth-split {
    grid-template-columns: 1.02fr 1.08fr;
  }

  .auth-aside {
    padding: 34px 30px;
  }

  .auth-panel {
    padding: 32px 30px;
  }
}

/* ----------------------------------------------------------------
   Profile
   ---------------------------------------------------------------- */

[hidden] {
  display: none !important;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  color: #002b6b;
  background: linear-gradient(130deg, #ffe033, #ffd000 55%, #f5b800);
  box-shadow: var(--shadow);
}

.avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  background: #002b6b;
  color: #ffd400;
  box-shadow: 0 4px 12px rgba(0, 43, 107, .2);
}

.profile-head h1 {
  font-size: 18px;
  font-weight: 750;
}

.profile-head small {
  font-size: 12px;
  opacity: .9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.stat small {
  font-size: 10.5px;
  color: var(--muted);
}

.menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu a,
.menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}

.menu > :last-child {
  border-bottom: 0;
}

.menu .ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.menu .chev {
  margin-left: auto;
  color: #c3b4a9;
  font-size: 16px;
}

/* ----------------------------------------------------------------
   Flash + empty states
   ---------------------------------------------------------------- */

.flash-wrap {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: auto;
  max-width: min(350px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.flash {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  animation: slideDown .2s ease;
}

.flash--error {
  border-left-color: #d3483f;
}

.flash-wrap .flash {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 9px;
  background: #132238;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(10, 22, 42, .28);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.flash-wrap .flash > span:first-child {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  background: #1ea85c;
  color: #fff;
}

.flash-wrap .flash--error > span:first-child {
  background: #ffd000;
  color: #002b6b;
}

.flash button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #a3968d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.flash-wrap .flash button {
  margin-left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #d7e1f0;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.flash-wrap .flash button:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.empty__icon {
  font-size: 42px;
}

.empty h2 {
  font-size: 17px;
  font-weight: 750;
}

.empty p {
  max-width: 34ch;
  font-size: 13px;
  color: var(--muted);
}

/* ----------------------------------------------------------------
   Admin
   ---------------------------------------------------------------- */

.admin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.admin__side {
  display: none;
}

.admin__main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 14px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin__main > *,
.admin__main section {
  min-width: 0;
  max-width: 100%;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-top h1 {
  font-size: 20px;
  font-weight: 750;
}

.admin-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
}

.admin-nav::-webkit-scrollbar {
  display: none;
}

.admin-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
}

.admin-nav a.is-active {
  background: #ffd000;
  border-color: #e0a800;
  color: #002b6b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #94867d;
}

.stat-card b {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.stat-card small {
  font-size: 11px;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 11px 12px;
  text-align: left;
  background: #fffbeb;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7c6f52;
  white-space: nowrap;
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f6eed1;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cream);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 17px;
}

.table .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-preview {
  width: 150px;
  height: 150px;
  margin: 5px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}

.table .name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}

.table .muted {
  font-size: 11.5px;
  color: var(--muted);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-empty {
  padding: 26px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.select-inline {
  border: 1px solid var(--line);
  background: #fffdfb;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 12px;
}

.admin-nav--mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}

.admin-nav--mobile a {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-credit {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-credit a,
.admin-credit strong {
  color: #002b6b;
  font-weight: 750;
}

.admin-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------
   App Splash / Preloading Screen
   ---------------------------------------------------------------- */

.app-splash {
  display: none;
}

html.has-splash {
  overflow: hidden;
}

html.has-splash .app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 35%, #fff2a6 0%, #ffd000 52%, #f4b400 100%);
  color: #002b6b;
  overflow: hidden;
  transition: opacity .36s ease, transform .36s ease;
}

html.has-splash .app-splash.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.app-splash__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-splash__orbit span {
  position: absolute;
  font-size: clamp(24px, 5vw, 34px);
  opacity: .88;
  filter: drop-shadow(0 6px 10px rgba(0, 43, 107, .14));
  animation: splashFloat 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}

.app-splash__orbit span:nth-child(1) { top: 13%; left: 12%; }
.app-splash__orbit span:nth-child(2) { top: 16%; right: 13%; }
.app-splash__orbit span:nth-child(3) { top: 34%; left: 7%; }
.app-splash__orbit span:nth-child(4) { top: 36%; right: 8%; }
.app-splash__orbit span:nth-child(5) { bottom: 26%; left: 10%; }
.app-splash__orbit span:nth-child(6) { bottom: 24%; right: 11%; }
.app-splash__orbit span:nth-child(7) { bottom: 13%; left: 22%; }
.app-splash__orbit span:nth-child(8) { bottom: 14%; right: 20%; }

.app-splash__card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 310px;
  width: 100%;
  animation: splashEnter .42s cubic-bezier(.22, 1, .36, 1) both;
}

.app-splash__logo {
  width: 94px;
  height: 94px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid rgba(0, 43, 107, .10);
  box-shadow: 0 18px 40px rgba(0, 43, 107, .22), 0 0 0 8px rgba(255, 255, 255, .36);
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  font-size: 48px;
  animation: splashPulse 1.5s ease-in-out infinite;
}

.app-splash__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-splash__title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #002b6b;
  margin-top: 4px;
}

.app-splash__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #002b6b;
  color: #ffd400;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(0, 43, 107, .18);
}

.app-splash__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 20px;
}

.app-splash__strip span {
  display: inline-block;
  animation: splashBounce .9s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.1s);
}

.app-splash__bar {
  width: 170px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 43, 107, .16);
  overflow: hidden;
  margin-top: 4px;
}

.app-splash__bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #002b6b;
  transform-origin: left center;
  animation: splashLoad 2.8s cubic-bezier(.3, .8, .3, 1) forwards;
}

.app-splash__foot {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(0, 43, 107, .12);
  font-size: 12px;
  color: #002b6b;
  font-weight: 600;
}

.app-splash__foot strong {
  font-weight: 850;
}

@keyframes splashEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes splashFloat {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes splashBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes splashLoad {
  from {
    transform: scaleX(.08);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash__orbit span,
  .app-splash__logo,
  .app-splash__strip span,
  .app-splash__bar span,
  .app-splash__card {
    animation: none !important;
  }
}

@media (min-width: 900px) {
  .admin-nav--mobile {
    display: none;
  }
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__slide {
    flex: 0 0 64%;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pdp {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .auth {
    padding-top: 34px;
  }
}

@media (min-width: 900px) {
  .auth {
    padding: 34px 16px 64px;
  }

  .auth-page {
    padding: 36px 20px 64px;
  }

  .appbar {
    padding: 12px 20px 12px;
    border-radius: 0 0 18px 18px;
  }

  .appbar__bar {
    flex-wrap: nowrap;
    gap: 18px;
  }

  .appbar__left {
    flex: 0 1 auto;
  }

  .searchbar {
    flex: 1 1 auto;
    max-width: 480px;
    margin: 0 auto;
    order: 2;
  }

  .appbar__actions {
    order: 3;
  }

  .topnav {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 43, 107, .12);
  }

  .topnav a {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #002b6b;
    transition: background .15s ease, color .15s ease;
  }

  .topnav a:hover {
    background: rgba(0, 43, 107, .10);
    color: #002b6b;
  }

  .topnav a.is-active {
    background: #002b6b;
    color: #ffd400;
    box-shadow: 0 3px 10px rgba(0, 43, 107, .18);
  }

  .main {
    padding: 24px 20px 48px;
    gap: 32px;
  }

  .bottom-nav {
    display: none;
  }

  .site-credit--nav {
    display: none;
  }

  .site-credit--page {
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 24px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
  }

  .sticky-bar {
    bottom: 0;
    padding: 12px 20px;
  }

  body:has(.sticky-bar) .main {
    padding-bottom: 112px;
  }

  .promo-slide {
    flex: 0 0 calc(50% - 7px);
    min-height: 216px;
    padding: 22px;
  }

  .promo-slide__body h2 {
    font-size: 22px;
  }

  .promo-slide__sub {
    font-size: 12.5px;
  }

  .promo-slide__media {
    width: 146px;
    height: 158px;
  }

  .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 43, 107, .14);
    background: rgba(255, 255, 255, .92);
    color: #002b6b;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 32, 82, .20);
    transition: transform .15s ease, background .15s ease;
  }

  .hero-nav:hover {
    background: #ffd000;
    transform: translateY(-50%) scale(1.06);
  }

  .hero-nav svg {
    width: 18px;
    height: 18px;
  }

  .hero-nav--prev {
    left: 10px;
  }

  .hero-nav--next {
    right: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .cat-tile > span:last-child {
    font-size: 14px;
  }

  .pc-name {
    font-size: 14px;
  }

  .add-btn {
    min-width: 88px;
    padding: 8px 20px;
    font-size: 12px;
  }

  .pc-stepper {
    min-width: 96px;
    height: 35px;
  }

  .pc-stepper__btn {
    width: 31px;
  }

  .category-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 20px 48px;
  }

  .rail {
    position: sticky;
    top: 132px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    gap: 2px;
  }

  .rail__item {
    flex-direction: row;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    font-size: 12.5px;
    text-align: left;
  }

  .rail__item:hover {
    background: var(--cream);
  }

  .rail__item.is-active {
    background: #fff7cf;
  }

  .rail__media {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border-width: 0;
    box-shadow: none;
    font-size: 17px;
    flex: 0 0 auto;
  }

  .rail__item.is-active .rail__media {
    outline: 2px solid #e0a800;
    outline-offset: 1px;
  }

  .rail__item span:last-child {
    line-height: 1.2;
  }

  .admin {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .admin__side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100vh;
    padding: 18px 12px;
    background: #fff;
    border-right: 1px solid var(--line);
  }

  .admin__side .brandline {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 14px;
    font-size: 15px;
    font-weight: 800;
  }

  .admin__side .brandline span,
  .admin-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--cream);
    font-size: 15px;
  }

  .admin-brand-logo {
    object-fit: cover;
    padding: 0;
  }

  .admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .admin-nav a {
    flex: 0 0 auto;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
    border-color: transparent;
    background: transparent;
  }

  .admin-nav a:hover {
    background: var(--cream);
  }

  .admin__main {
    max-width: none;
    padding: 26px;
  }
}

/* ----------------------------------------------------------------
   Seller panel
   ---------------------------------------------------------------- */

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.nav-badge[hidden] {
  display: none;
}

.bell-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.bell-btn svg {
  width: 20px;
  height: 20px;
}

.bell-btn.is-ringing {
  color: var(--coral-deep);
  border-color: var(--coral-soft);
  animation: bellShake 1.8s ease-in-out infinite;
  transform-origin: 50% 4px;
}

@keyframes bellShake {
  0%, 64%, 100% { transform: rotate(0); }
  68% { transform: rotate(14deg); }
  72% { transform: rotate(-12deg); }
  76% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
  84% { transform: rotate(3deg); }
}

.bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}

.bell-badge[hidden] {
  display: none;
}

.ring-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff4ee, #ffffff);
  border: 1px solid var(--coral-soft);
  box-shadow: var(--shadow-sm);
}

.ring-banner[hidden] {
  display: none;
}

.ring-banner__pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral-deep);
  box-shadow: 0 0 0 0 rgba(207, 59, 54, .5);
  animation: ringPulse 1.8s infinite;
}

@keyframes ringPulse {
  70% { box-shadow: 0 0 0 12px rgba(207, 59, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 59, 54, 0); }
}

.ring-banner__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}

.ring-banner__text small {
  color: var(--muted);
  font-size: 11.5px;
}

.ring-banner .btn {
  margin-left: auto;
}

.live-order {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.live-order + .live-order {
  margin-top: 8px;
}

.live-order__media {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.live-order__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.live-order__body b {
  font-size: 13px;
}

.live-order__body small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-order .status-chip {
  margin-left: auto;
}

.seller-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.seller-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
}

.seller-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}

.seller-facts div:last-child {
  border: 0;
  padding: 0;
}

.seller-facts dt {
  color: var(--muted);
}

.seller-facts dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

.seller-pending {
  max-width: 640px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   Language switch + printable bill
   ---------------------------------------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 43, 107, .09);
  border: 1px solid rgba(0, 43, 107, .18);
  flex: 0 0 auto;
}

.lang-switch a {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  color: #002b6b;
}

.lang-switch a.is-active {
  background: #002b6b;
  color: #ffd400;
}

.print-page {
  max-width: 860px;
}

.bill-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bill-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.bill-sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.bill-sheet__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bill-sheet__brand > span {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cream);
  font-size: 22px;
  overflow: hidden;
}

.bill-sheet__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.bill-sheet__brand b {
  display: block;
  font-size: 17px;
}

.bill-sheet__brand small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.bill-sheet__meta {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.bill-sheet__meta h1 {
  font-size: 19px;
  letter-spacing: .12em;
  color: var(--ink);
  margin-bottom: 4px;
}

.bill-sheet__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.bill-sheet__parties h2 {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94867d;
  margin-bottom: 5px;
}

.bill-sheet__parties p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.bill-table-wrap {
  overflow-x: auto;
}

.bill-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.bill-table th {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94867d;
}

.bill-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f7eee6;
  vertical-align: top;
}

.bill-table .muted {
  color: var(--muted);
  font-size: 11px;
}

.bill-totals {
  width: min(320px, 100%);
  margin: 12px 0 0 auto;
  font-size: 12.5px;
}

.bill-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.bill-totals .is-total {
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 800;
}

.bill-sheet__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Pre-booking, referrals and wallet */
.prebook-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8cc 0%, #fffdf5 100%);
  border: 1px solid #f0da80;
}

.prebook-promo__lead {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.prebook-promo__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.prebook-promo__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff2b8;
  border: 1px solid #eed67a;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.prebook-promo__copy h2 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.01em;
}

.prebook-promo__copy .bill__note {
  font-size: 12px;
  line-height: 1.4;
}

.prebook-promo__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 12px;
}

@media (max-width: 560px) {
  .prebook-promo {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .prebook-promo__btn {
    width: 100%;
  }
}

.prebook-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8cc 0%, #fffdf5 100%);
  border: 1px solid #f0da80;
}

.prebook-strip__lead {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.prebook-strip__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff2b8;
  border: 1px solid #eed67a;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  flex: 0 0 auto;
}

.prebook-strip__copy {
  min-width: 0;
  flex: 1;
}

.prebook-strip__copy b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.prebook-strip__copy .bill__note {
  font-size: 11.5px;
  line-height: 1.35;
  margin-top: 2px;
}

.prebook-strip__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 10px;
}

.prebook-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #d9b56a;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #8a5a08;
  font-size: 13px;
  font-weight: 750;
}

.date-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding: 2px 0 4px;
  scrollbar-width: thin;
}

.date-chip {
  position: relative;
  flex: 0 0 auto;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 9px 12px;
  text-align: center;
  cursor: pointer;
}

.date-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.date-chip span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.date-chip small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.date-chip b {
  font-size: 13px;
}

.date-chip:has(input:checked),
.date-chip.is-active {
  border-color: #e0a800;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, .22);
}

.prebook-table {
  min-width: 0;
  width: 100%;
}

.prebook-table td,
.prebook-table th {
  vertical-align: middle;
}

@media (max-width: 560px) {
  .prebook-table {
    table-layout: fixed;
  }

  .prebook-table th,
  .prebook-table td {
    padding: 9px 6px;
    font-size: 12px;
  }

  .prebook-table td:first-child {
    overflow-wrap: anywhere;
  }

  .prebook-table th:nth-child(2),
  .prebook-table td:nth-child(2) {
    width: 64px;
    white-space: nowrap;
  }

  .prebook-table th:last-child,
  .prebook-table td:last-child {
    width: 66px;
    text-align: right;
  }

  .prebook-table .select-inline {
    width: 54px;
    padding: 6px 4px;
    text-align: center;
  }
}

.referral-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(125deg, #fff8f1, #ffffff);
  border-color: #f2ddc5;
}

.referral-code,
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.referral-code {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px dashed #d9b56a;
  border-radius: var(--radius-sm);
  background: #fffaf0;
}

.referral-code strong {
  flex: 1;
  font-size: 22px;
  letter-spacing: .12em;
  color: #8a5a08;
}

.copy-row {
  margin: 6px 0 12px;
}

.copy-row input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 11px 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.referral-list {
  display: flex;
  flex-direction: column;
}

.referral-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.referral-row:first-child {
  border-top: 0;
}

@media (max-width: 420px) {
  .prebook-strip {
    flex-wrap: wrap;
  }

  .prebook-strip__btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lang-switch a {
    padding: 5px 6px;
  }

  .bill-sheet {
    padding: 18px;
  }

  .bill-sheet__parties {
    grid-template-columns: 1fr;
  }

  .bill-sheet__meta {
    text-align: left;
  }
}

/* ----------------------------------------------------------------
   WhatsApp assistant
   ---------------------------------------------------------------- */

.wa-assist {
  position: fixed;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-assist__fab {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #37d978, #1faa54);
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 170, 84, .38);
  transition: transform .18s ease, box-shadow .18s ease;
}

.wa-assist__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(31, 170, 84, .42);
}

.wa-assist__glyph {
  display: block;
  width: 30px;
  height: 30px;
}

.wa-assist__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(55, 217, 120, .55);
  animation: wa-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-ring {
  0% { transform: scale(.92); opacity: .9; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { opacity: 0; }
}

.wa-assist.is-open .wa-assist__pulse {
  display: none;
}

body:has(.sticky-bar) .wa-assist {
  bottom: calc(158px + env(safe-area-inset-bottom));
}

.wa-assist__panel {
  width: min(330px, calc(100vw - 28px));
  max-height: min(74vh, 540px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(30, 60, 40, .22);
  animation: wa-pop .22s ease;
}

.wa-assist__panel[hidden] {
  display: none;
}

@keyframes wa-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.wa-assist__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(130deg, #2fbd6a, #14894a);
}

.wa-assist__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.wa-assist__avatar .wa-assist__glyph {
  width: 22px;
  height: 22px;
}

.wa-assist__who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.wa-assist__who b {
  font-size: 14px;
}

.wa-assist__who small {
  font-size: 10.5px;
  opacity: .9;
}

.wa-assist__close {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.wa-assist__log {
  flex: 1;
  min-height: 116px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #f6fbf7;
}

.wa-msg {
  max-width: 88%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
}

.wa-msg--bot {
  align-self: flex-start;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid #e3f0e6;
  border-bottom-left-radius: 5px;
}

.wa-msg--me {
  align-self: flex-end;
  color: #fff;
  background: #1faa54;
  border-bottom-right-radius: 5px;
}

.wa-assist__chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
  scrollbar-width: none;
}

.wa-assist__chips::-webkit-scrollbar {
  display: none;
}

.wa-assist__chips button {
  flex: 0 0 auto;
  border: 1px solid #d9ecdf;
  border-radius: 999px;
  background: #f3fbf5;
  color: #14603c;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.wa-assist__form {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}

.wa-assist__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  font-size: 12.5px;
  outline: none;
}

.wa-assist__form input:focus {
  border-color: #8fd6a8;
}

.wa-assist__form button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1faa54;
  color: #fff;
}

.wa-assist__form button svg {
  width: 18px;
  height: 18px;
}

.wa-assist__send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: #178f4c;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .wa-assist {
    right: 22px;
    bottom: 22px;
  }

  body:has(.sticky-bar) .wa-assist {
    bottom: 88px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff !important;
  }

  .appbar,
  .bottom-nav,
  .site-credit,
  .wa-assist,
  .flash-wrap,
  .bill-actions,
  .app-splash,
  .no-print {
    display: none !important;
  }

  .print-page {
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0;
  }

  .bill-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .bill-table-wrap {
    overflow: visible;
  }

  .bill-table {
    min-width: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ----------------------------------------------------------------
   Admin System Upgrade
   ---------------------------------------------------------------- */

.upgrade-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  border: 2px dashed #e2cf83;
  border-radius: 16px;
  background: #fffdf4;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.upgrade-drop:hover,
.upgrade-drop.is-drag {
  border-color: #002b6b;
  background: #fff8db;
}

.upgrade-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upgrade-drop__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff2b2;
  color: #002b6b;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.upgrade-drop__title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
}

.upgrade-drop__sub {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.upgrade-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.upgrade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.upgrade-files {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9;
  font-size: 12px;
}

.upgrade-files__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--line);
}

.upgrade-files__row:last-child {
  border-bottom: 0;
}

.upgrade-files__row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  word-break: break-all;
}

.upgrade-log {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #132238;
  color: #eef4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.upgrade-code {
  margin: 8px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fffdf4;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-x: auto;
}

/* ----------------------------------------------------------------
   Cart Header & Earning Program
   ---------------------------------------------------------------- */

.cart-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.cart-head__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-head__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-head__copy h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.cart-head__copy p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.cart-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eefaf3;
  border: 1px solid #ccebd8;
  color: #167943;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.cart-clear-btn {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid #f2cfcc;
  border-radius: 999px;
  background: #fff5f5;
  color: #b52a22;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.cart-clear-btn:hover {
  background: #ffe6e4;
  border-color: #e4a9a4;
}

.earn-banner {
  background: linear-gradient(135deg, #fffdf2 0%, #fff7d4 100%);
  border-color: #edd885;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.earn-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.earn-banner__lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.earn-banner__ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #002b6b;
  color: #ffd400;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.earn-banner__perk {
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #ebd78c;
  font-size: 12px;
  font-weight: 650;
  color: #002b6b;
}

.earn-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.earn-rule {
  padding: 12px;
  border-radius: 14px;
  background: #fffdf6;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.earn-rule__tag {
  font-size: 11px;
  font-weight: 800;
  color: #002b6b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.earn-rule strong {
  font-size: 13.5px;
  font-weight: 750;
}

.earn-rule p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.tx-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tx-row:first-child {
  padding-top: 0;
}

.tx-amt {
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}

.tx-amt--in {
  color: #167943;
}

.tx-amt--out {
  color: #b52a22;
}
