:root {
  --color-brand: #e82c2a;
  --color-brand-hover: #c92624;
  --color-ink: #212529;
  --color-canvas: #ffffff;
  --color-surface: #f2f2f2;
  --color-cream: #faf9f6;
  --color-carbon: #121212;
  --color-brand-08: rgba(232, 44, 42, 0.08);
  --color-brand-12: rgba(232, 44, 42, 0.12);
  --color-brand-20: rgba(232, 44, 42, 0.2);
  --color-ink-60: rgba(33, 37, 41, 0.6);
  --color-ink-40: rgba(33, 37, 41, 0.4);
  --color-ink-16: rgba(33, 37, 41, 0.16);
  /* Liquid Glass — Apple visionOS / iOS refined material tokens */
  --glass-card-bg: rgba(255, 255, 255, 0.28);
  --glass-card-border: rgba(255, 255, 255, 0.45);
  --glass-card-edge: rgba(33, 37, 41, 0.05);
  --glass-well-bg: rgba(255, 255, 255, 0.32);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --glass-blur: 28px;
  --glass-blur-well: 12px;
  --glass-line: 1px solid var(--glass-card-border);
  --glass-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 28%, transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.26) 100%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    0 0 0 1px var(--glass-card-edge),
    0 12px 30px -4px rgba(33, 37, 41, 0.08),
    0 4px 12px -2px rgba(33, 37, 41, 0.04);
  --glass-shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 24px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(33, 37, 41, 0.06),
    0 18px 36px -4px rgba(33, 37, 41, 0.12),
    0 6px 16px -2px rgba(33, 37, 41, 0.05);
  --glass-inset-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.22) 100%);
  --glass-inset-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 1px 4px rgba(33, 37, 41, 0.04);
  --font-sans: Inter, "General Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, sans-serif;
  --content: 1280px;
  --content-max: 1280px;
  --marketing-max: 1440px;
  --shadow-hard: 4px 4px 0 var(--color-ink);
  --shadow-hard-sm: 2px 2px 0 var(--color-ink);
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --radius-nav: 12px;
  --radius-input: 12px;
  --radius-small: 16px;
  --radius-product: 32px;
  --radius-feature: 64px;
  --radius-pill: 999px;
  --border-ui: 2px solid var(--color-ink);
  --border-strong: 3px solid var(--color-ink);
  --line: 2px solid var(--color-ink);
  --line-strong: 3px solid var(--color-ink);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background-color: #faede4;
  background-image:
    radial-gradient(ellipse 75% 60% at 5% 10%, rgba(255, 140, 160, 0.52) 0%, transparent 62%),
    radial-gradient(ellipse 70% 55% at 95% 12%, rgba(160, 140, 255, 0.5) 0%, transparent 62%),
    radial-gradient(ellipse 80% 65% at 10% 60%, rgba(255, 195, 85, 0.45) 0%, transparent 62%),
    radial-gradient(ellipse 75% 60% at 92% 70%, rgba(85, 225, 205, 0.45) 0%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 50% 95%, rgba(255, 120, 170, 0.4) 0%, transparent 60%),
    linear-gradient(155deg, #fff0e8 0%, #fae4ff 25%, #e2ecff 55%, #fef0be 80%, #fcdfe6 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 100vw 100vh, 100vw 100vh, 100vw 100vh, 100vw 100vh, 100vw 100vh, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  background: var(--color-canvas);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 700;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--content), calc(100vw - 64px));
  max-width: calc(100vw - 32px);
  min-width: 0;
  margin-inline: auto;
}

.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 10px 0 4px;
  background: transparent;
  pointer-events: none;
  transition: padding 0.2s ease;
}

.site-header-sticky .nav-shell {
  pointer-events: auto;
}

.rail-container {
  margin-top: 4px;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  min-height: 60px;
  margin-top: 0;
  padding: 8px 10px 8px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-nav);
  box-shadow: var(--shadow-hard-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo img {
  height: 34px;
  width: auto;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: default;
  user-select: none;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(232, 44, 42, 0.2);
  animation: pulse-dot-glow 2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes pulse-dot-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 44, 42, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(232, 44, 42, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 44, 42, 0); }
}

@media (max-width: 999px) {
  .nav-badge { display: none; }
}

.nav-links { display: flex; gap: 4px; margin-left: 8px; }

.nav-links a,
.text-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--color-ink);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-links a[aria-current="page"] { background: var(--color-brand); color: var(--color-canvas); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 34vw);
  min-width: 0;
  margin-left: auto;
  min-height: 48px;
  padding: 0 14px;
  background: var(--color-canvas);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-input);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.search .icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0;
  font-size: 16px;
}

.search input::placeholder { color: var(--color-ink-60); }
.search input:focus { outline: none; }

.search:focus-within,
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

.btn-primary:focus-visible,
.chip.is-active:focus-visible { outline-color: var(--color-ink); }

:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

.icon { width: 20px; height: 20px; display: block; flex: none; }
.chip .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.on-inverse .icon,
.tile-carbon .icon,
.btn-primary .icon { filter: invert(1); }
.btn-inverse .icon { filter: none; }

.icon-button, .menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-link { display: inline-flex; }
.mobile-panel { display: none; }

.rail-wrap { margin: 8px 0 6px; min-width: 0; max-width: 100%; }

.rail {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}

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

.chip, .btn, .qty {
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease-out, background 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  flex: none;
}

.chip.is-active, .qty.is-active {
  background: var(--color-brand);
  color: var(--color-canvas);
}

.chip.is-active .icon, .qty.is-active .icon { filter: invert(1); }

main { padding: 8px 0 48px; }

/* Hero band — nền Gradient đậm đà, tươi sáng, ấm áp */
.band-lime,
.band {
  background-color: #ffece1;
  background-image:
    radial-gradient(ellipse 75% 65% at 5% 15%, rgba(255, 115, 140, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 70% 65% at 95% 10%, rgba(135, 145, 255, 0.58) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 90% 90%, rgba(255, 205, 75, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 65% 60% at 10% 90%, rgba(90, 230, 195, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #ffe2d6 0%, #f1d5ff 35%, #dce8ff 70%, #feeea6 100%);
  border-block: 2.5px solid var(--color-ink);
  margin-top: 8px;
  padding: 40px 0 32px;
  position: relative;
  overflow: visible;
  min-height: calc(100vh - 154px);
  min-height: calc(100dvh - 154px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.band::before,
.band-lime::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 65% at 50% 50%, rgba(255, 255, 255, 0.32) 0%, transparent 80%);
  pointer-events: none;
}
.band > *, .band-lime > * { position: relative; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  isolation: isolate;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  padding: 3px 10px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 8px;
}

.bento { position: relative; z-index: 1; }

/* Text sits fully above mascot — explicit stacking + lift */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .actions,
.hero-copy .hero-catalog-wrap,
.hero-copy .fine {
  position: relative;
  z-index: 1;
}

.lede {
  max-width: 360px;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 6px 20px rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
  .lede { max-width: 400px; }
}

.hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1, .display {
  margin: 0;
  max-width: 100%;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-title-top,
.hero-title-bot {
  display: block;
  white-space: nowrap;
}

.hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3.5px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
  margin-top: 10px;
}

/* mascot watermark — ảnh đã tách BG, không cần khung trắng */
.mascot-frame,
.mascot { display: none !important; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-primary { background: var(--color-brand); color: var(--color-canvas); box-shadow: var(--shadow-hard-sm); }
.btn-inverse { background: var(--color-canvas); color: var(--color-ink); box-shadow: var(--shadow-hard-sm); }
.btn-primary:hover { background: var(--color-brand-hover); }

.fine { margin: 10px 0 0; font-size: 13px; color: var(--color-ink-60); }

.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "feature small-a"
    "feature small-b";
  gap: 12px;
  align-items: stretch;
}

.bento .feature { grid-area: feature; }
.bento .small-a { grid-area: small-a; }
.bento .small-b { grid-area: small-b; }

.bento .small-a .well,
.bento .small-b .well { height: 94px; }

.bento .card {
  padding: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0.45) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow:
    0 10px 24px -4px rgba(33, 37, 41, 0.07),
    0 2px 6px rgba(33, 37, 41, 0.03),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 18px rgba(255, 255, 255, 0.22);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.22s ease;
  cursor: pointer;
}

.bento .card .card-title {
  transition: color 0.18s ease;
}

.bento .card .eyebrow {
  transition: color 0.18s ease;
}

.bento .card .price {
  transition: transform 0.18s ease;
}

.bento .feature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Feature logo — standalone outside card well, centered, larger for ChatGPT */
.feature-logo {
  display: block;
  width: 98px;
  height: 98px;
  object-fit: contain;
  align-self: center;
  margin: 18px 0 16px;
  filter: drop-shadow(0 2px 8px rgba(33, 37, 41, 0.08));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.bento .feature .well,
.bento .feature .well img { display: none !important; }

.feature-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--color-ink-60);
  line-height: 1.45;
  margin: 0;
}

.feature-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0 8px;
}

.feature-perk {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-brand-08);
  border: 1px solid var(--color-brand-12);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--color-ink-16);
}

.feature-action-row .price {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--color-ink);
}

.feature-action-row .btn,
.bento .feature .btn.btn-primary {
  margin-top: 0 !important;
  width: auto !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  background: var(--color-brand) !important;
  color: #ffffff !important;
  border: 2px solid var(--color-ink) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 2px 2px 0 var(--color-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.bento .feature:hover .feature-action-row .btn,
.bento .feature .btn.btn-primary:hover {
  background: var(--color-brand-hover) !important;
  color: #ffffff !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 3px 3px 0 var(--color-ink) !important;
}

/* Bento small cards (Canva, Netflix) — logos outside well */
.bento-small-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.small-card-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  align-self: flex-start;
  margin: 0 0 10px;
  filter: drop-shadow(0 2px 6px rgba(33, 37, 41, 0.08));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.bento-small-card .well,
.bento-small-card .well img { display: none !important; }

.small-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  margin-top: 4px;
}

.bento-small-card .card-title {
  min-height: unset !important;
  max-height: unset !important;
  margin: 1px 0 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.small-card-perks {
  display: flex;
  gap: 4px;
  margin: 4px 0;
}

.small-card-perks .feature-perk {
  font-size: 11px;
  padding: 2px 7px;
  white-space: nowrap;
}

.small-card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--color-ink-16);
}

.small-card-action-row .price {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--color-ink);
}

.bento-mini-btn {
  margin-top: 0 !important;
  width: auto !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  background: var(--color-surface) !important;
  color: var(--color-ink) !important;
  border: 1.5px solid var(--color-ink) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 1.5px 1.5px 0 var(--color-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.bento-small-card:hover .bento-mini-btn {
  background: var(--color-brand) !important;
  color: #ffffff !important;
  transform: translate(-1px, -1px) !important;
  box-shadow: 2.5px 2.5px 0 var(--color-ink) !important;
}

/* Hero Catalog Wrap & Perched Mascot */
.hero-catalog-wrap {
  position: relative;
  width: 100%;
  margin-top: 52px;
}

.catalog-mascot {
  position: absolute;
  right: 20px;
  bottom: calc(100% - 20px);
  width: 295px;
  max-width: 320px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(33, 37, 41, 0.18));
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: mascot-bob 4s ease-in-out infinite;
}

.hero-catalog-wrap:hover .catalog-mascot {
  transform: translateY(-6px) scale(1.03);
}

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

@media (max-width: 1100px) {
  .catalog-mascot {
    width: min(250px, 32vw);
    bottom: calc(100% - 17px);
    right: 16px;
  }
}

@media (max-width: 699px) {
  .hero-catalog-wrap {
    margin-top: 56px;
  }
  .catalog-mascot {
    width: 140px;
    right: 14px;
    bottom: calc(100% - 10px);
  }
}

/* Hero Catalog banner card (moved to left under actions) */
.hero-catalog-card,
.bento-catalog-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 94px;
  margin: 0 0 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e82c2a 0%, #c41e1c 55%, #9e1412 100%);
  border: 2.5px solid var(--color-ink);
  border-radius: 24px;
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-catalog-card::before,
.bento-catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.65;
  pointer-events: none;
}

.hero-catalog-card:hover,
.bento-catalog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.bento-catalog-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.bento-catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.bento-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  box-shadow: 0 0 6px #ffffff;
}

.bento-catalog-title {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.bento-catalog-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.bento-catalog-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.bento-catalog-stack {
  display: flex;
  align-items: center;
}

.stack-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-ink);
  object-fit: contain;
  padding: 5px;
  margin-left: -10px;
  box-shadow: 1px 1px 0 var(--color-ink);
  transition: transform 0.15s ease;
}

.stack-avatar:first-child {
  margin-left: 0;
}

.bento-catalog-card:hover .stack-avatar {
  transform: translateY(-2px);
}

.stack-more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  box-shadow: 1px 1px 0 var(--color-ink);
}

.bento-catalog-cta {
  background: #ffffff !important;
  color: var(--color-ink) !important;
  border: 2px solid var(--color-ink) !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 0 16px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 2px 2px 0 var(--color-ink) !important;
  border-radius: var(--radius-pill) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.bento-catalog-card:hover .bento-catalog-cta {
  background: #fdf2d0 !important;
  transform: scale(1.03) !important;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  text-decoration: none;
  background: var(--color-surface);
  border: 2px solid var(--color-ink);
  border-radius: 32px;
  box-shadow: var(--shadow-hard-sm);
}

.tile-red { background: var(--color-brand); color: var(--color-canvas); }
.tile-red .eyebrow { background: transparent; color: var(--color-canvas); border-color: var(--color-canvas); }
.tile-carbon { background: var(--color-carbon); color: var(--color-canvas); }
.tile-white { background: var(--color-canvas); }

.tile strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

.section { margin-top: 80px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head a { color: var(--color-brand); font-weight: 800; }

.rule { border: 0; border-top: 2px solid var(--color-brand); margin: 8px 0 16px; }

h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-trust {
  margin-top: 40px;
  margin-bottom: 8px;
}

.trust, .grid, .feature-grid { display: grid; gap: 16px; }

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

.trust article,
.trust-card {
  border: var(--glass-line);
  border-radius: 20px;
  padding: 20px 22px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.trust article:hover,
.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-shadow-lift);
}

.panel,
.empty {
  background: linear-gradient(145deg, #ffffff 0%, #fffdf9 45%, #faf5ef 100%);
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-hard-sm);
}

details {
  background: linear-gradient(140deg, #ffffff 0%, #fdfbf7 50%, #f5efe6 100%);
  border: 2.5px solid var(--color-ink);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 4px 4px 0 var(--color-ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 200ms ease;
}

details[open] {
  background: linear-gradient(140deg, #ffffff 0%, #fff9ec 45%, #fde8cc 100%);
  box-shadow: 5px 5px 0 var(--color-ink);
}

.trust h3,
.trust-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.trust .icon,
.trust-card .icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* ── AI Marquee — 2-row continuous horizontal, frosted glass & rails ── */
.marquee-section {
  width: 100%;
  max-width: 100vw;
  margin: 36px 0 44px;
  padding: 0;
}
.marquee-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(33, 37, 41, 0.15);
  border-bottom: 1px solid rgba(33, 37, 41, 0.15);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(246, 240, 255, 0.45) 50%, rgba(255, 244, 250, 0.55) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 16px 0;
}
.marquee-edge {
  display: none;
}
.marquee-row {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 6%,
    rgba(0, 0, 0, 0.22) 14%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.88) 30%,
    #000 38%,
    #000 62%,
    rgba(0, 0, 0, 0.88) 70%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.22) 86%,
    rgba(0, 0, 0, 0.05) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 6%,
    rgba(0, 0, 0, 0.22) 14%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.88) 30%,
    #000 38%,
    #000 62%,
    rgba(0, 0, 0, 0.88) 70%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.22) 86%,
    rgba(0, 0, 0, 0.05) 94%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-left 36s linear infinite;
}
.marquee-track--reverse {
  animation-name: marquee-right;
  animation-duration: 40s;
  animation-delay: -10s;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  flex: none;
  padding: 0 18px 0 7px;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  box-shadow: 1.5px 1.5px 0 var(--color-ink);
  text-decoration: none;
  color: var(--color-ink);
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.marquee-pill:hover {
  transform: translateY(-2px);
  box-shadow: 2.5px 2.5px 0 var(--color-ink);
  background: linear-gradient(135deg, #ffffff 0%, #fee2e2 100%);
}
.marquee-pill__logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(33, 37, 41, 0.2);
  object-fit: contain;
  padding: 4px;
  display: block;
}
.marquee-pill__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-pill:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
@media (max-width: 699px) {
  .marquee-container { border-radius: 0; padding: 10px 0; }
  .marquee-pill { height: 42px; padding-right: 14px; }
  .marquee-pill__logo { width: 30px; height: 30px; }
  .marquee-pill__label { font-size: 13px; }
  .marquee-group { gap: 10px; padding-right: 10px; }
  .marquee-track { animation-duration: 26s; }
  .marquee-track--reverse { animation-duration: 28s; }
  .marquee-row {
    padding: 5px 0;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.1) 6%,
      rgba(0, 0, 0, 0.45) 15%,
      rgba(0, 0, 0, 0.85) 24%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.85) 76%,
      rgba(0, 0, 0, 0.45) 85%,
      rgba(0, 0, 0, 0.1) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.1) 6%,
      rgba(0, 0, 0, 0.45) 15%,
      rgba(0, 0, 0, 0.85) 24%,
      #000 32%,
      #000 68%,
      rgba(0, 0, 0, 0.85) 76%,
      rgba(0, 0, 0, 0.45) 85%,
      rgba(0, 0, 0, 0.1) 94%,
      transparent 100%
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .marquee-track--reverse { animation: none !important; transform: none !important; }
}

.trust p.meta,
.trust-card p.meta {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #495057;
  font-weight: 500;
}

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

/* ── Liquid Glass cards (iOS 26) ──
   Vỏ kính .card + giếng .well.
   Topbar, menu và card khác dùng cùng token --glass-* ở cuối file. */
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.26) 100%
  );
  border: 1px solid var(--glass-card-border);
  border-radius: 28px;
  text-decoration: none;
  overflow: hidden;
  transform: translateZ(0);
  contain: paint;
  backdrop-filter: blur(var(--glass-blur)) saturate(190%) contrast(102%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%) contrast(102%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.12),
    0 0 0 1px var(--glass-card-edge),
    0 12px 30px -4px rgba(33, 37, 41, 0.08),
    0 4px 12px -2px rgba(33, 37, 41, 0.04);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

/* Specular: Lớp ánh sáng phủ tự nhiên từ trên xuống (Apple ambient light) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  transition: opacity 220ms ease;
}

/* Bỏ viền sau trùng lặp */
.card::after {
  display: none;
}

/* Nội dung nằm trên lớp kính, trên specular (1) */
.card > * {
  position: relative;
  z-index: 2;
}

.well {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 156px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.18) 100%
  );
  backdrop-filter: blur(var(--glass-blur-well)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur-well)) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.65),
    inset 0 -1px 1px rgba(0, 0, 0, 0.02),
    0 2px 8px rgba(33, 37, 41, 0.03);
  transition: background 200ms ease, border-color 200ms ease;
}

.well img {
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 78px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(33, 37, 41, 0.09));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card .eyebrow {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--color-ink-60);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 16px;
  min-height: 16px;
}

.card-title {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-height: 48px;
  max-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 18px;
  min-height: 18px;
  color: var(--color-ink-60);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.card .price {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 26px;
  min-height: 26px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card .card-title {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.price { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.meta { margin: 0; font-size: 14px; color: var(--color-ink-60); }

.card .btn {
  margin-top: 14px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--color-canvas);
  width: 100%;
}

.card:hover .btn { background: var(--color-brand); color: var(--color-canvas); }

.feature-grid { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; }

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 24px;
  border: 2px solid var(--color-ink);
  border-radius: 32px;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Full-cover feature cards — ảnh tràn viền, text đè với overlay mờ */
.feature-copy.feature-cover-card {
  padding: 0;
  min-height: 320px;
  border-width: 2.5px;
  justify-content: flex-end;
}

.feature-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 420ms cubic-bezier(0.2, 0, 0, 1);
}

.feature-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 38%, rgba(12,12,12,0.42) 62%, rgba(12,12,12,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.feature-cover-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 320px;
  padding: 22px 22px 20px;
  box-sizing: border-box;
}

/* Text on cover — luôn trắng để nổi trên overlay tối, có shadow nhẹ */
.feature-cover-card .eyebrow {
  background: rgba(255,255,255,0.92);
  color: var(--color-brand);
  border-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
}
.feature-cover-card h2,
.feature-cover-card .feature-cover-body h2 {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45), 0 2px 20px rgba(0,0,0,0.35);
  margin: 0;
}
.feature-cover-card .feature-cover-body p {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  margin: 0;
}

.feature-copy.feature-cover-card:hover .feature-cover {
  transform: scale(1.04);
}

/* Fallback: card không có ảnh vẫn như cũ */
.feature-copy.has-image {
  justify-content: space-between;
  gap: 18px;
}

.feature-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--color-ink);
  background: var(--color-surface);
  flex-shrink: 0;
  box-sizing: border-box;
}

.feature-copy.tile-carbon .feature-media {
  border-color: rgba(255, 255, 255, 0.2);
  background: #181818;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 260ms cubic-bezier(0.2, 0, 0, 1);
}

.feature-media-working img {
  object-position: center 38%;
}

.feature-media-enjoy img {
  object-position: center 56%;
}

.feature-copy:hover .feature-media img {
  transform: scale(1.04);
}

.feature-copy-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
}

.feature-copy.tile-white {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #ddd6fe 75%, #c7d2fe 100%);
  border: 2.5px solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}

.feature-copy.tile {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 35%, #fed7aa 70%, #fdba74 100%);
  border: 2.5px solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}

.feature-copy.tile-carbon {
  background: linear-gradient(135deg, #181926 0%, #1e1b4b 45%, #2e1065 80%, #3b0764 100%);
  color: var(--color-canvas);
  border: 2.5px solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}
.feature-copy.tile-carbon h2,
.feature-copy.tile-carbon p { color: var(--color-canvas); }
.feature-copy.tile-carbon .eyebrow {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}
.feature-copy p:last-child { margin: 0; font-size: 16px; }
.feature-copy h2 { font-size: clamp(32px, 3vw, 48px); margin: 8px 0 12px; }

.promo {
  margin-top: 72px;
  background: linear-gradient(135deg, #e82c2a 0%, #ff4b4b 35%, #d62020 70%, #991010 100%);
  color: var(--color-canvas);
  border-block: 2.5px solid var(--color-ink);
  padding: 64px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 200, 100, 0.28) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  pointer-events: none;
}

.promo h2 { color: var(--color-canvas); max-width: 16ch; margin: 0 0 20px; font-size: clamp(40px, 5vw, 72px); position: relative; z-index: 1; }
.promo .eyebrow { color: var(--color-canvas); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.15); position: relative; z-index: 1; }
.promo .btn { position: relative; z-index: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }

.filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

select, .qty-input {
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--color-ink);
  border-radius: 12px;
  background: var(--color-canvas);
  font-weight: 700;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.product {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 16px;
}

.product-media {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-ink-60);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.15s ease;
  width: fit-content;
}
.back-link:hover {
  color: var(--color-brand);
  transform: translateX(-3px);
}

.product .well {
  width: 100%;
  height: 160px;
  border-radius: 28px;
  border: 2.5px solid var(--color-ink);
  background: linear-gradient(135deg, #ffffff 0%, #f6f0ff 40%, #eef4ff 75%, #fff9eb 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hard);
}

.product .well img {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.product-desc {
  padding: 16px;
  background: var(--color-canvas);
  border: 2px solid var(--color-ink);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink);
  box-shadow: var(--shadow-hard-sm);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-canvas);
  border: 2px solid var(--color-ink);
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink);
  box-shadow: 2px 2px 0 var(--color-ink);
}
.perk-item .icon {
  width: 16px;
  height: 16px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.purchase-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  border: 2.5px solid var(--color-ink);
  border-radius: 24px;
  box-shadow: 4px 4px 0px var(--color-ink);
}

.selected-package-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
}
.selected-package-badge .badge-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-60);
}
.selected-package-badge .badge-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.35;
}

.purchase-qty-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.purchase-qty-section .meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink-60);
}

.purchase-price-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px dashed var(--color-ink-16);
}
.purchase-price-section .meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink-60);
}
.purchase-price-section .price {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-brand);
  margin: 0;
  line-height: 1.2;
}

.purchase-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.purchase-action-row .buy-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 16px;
  border: 2px solid var(--color-ink);
  background: var(--color-brand);
  color: var(--color-canvas);
  box-shadow: 3px 3px 0 var(--color-ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.purchase-action-row .buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--color-ink);
}

.purchase-action-row .buy-btn:disabled {
  background: var(--color-ink-30);
  border-color: var(--color-ink-30);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.info-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-tooltip-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-ink);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--color-ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.info-tooltip-trigger:hover,
.info-tooltip-wrap.is-open .info-tooltip-trigger {
  background: var(--color-brand);
  color: #ffffff;
  transform: translateY(-1px);
}

.info-tooltip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 270px;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0px var(--color-ink);
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-ink);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.info-tooltip-content p {
  margin: 0;
  font-weight: 600;
}

.info-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border: 6px solid transparent;
  border-top-color: var(--color-ink);
}

@media (hover: hover) {
  .info-tooltip-wrap:hover .info-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.info-tooltip-wrap.is-open .info-tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.product-perks-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--color-ink-16);
}

.variant-desc-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--color-canvas);
  border: 1.5px solid var(--color-ink);
  border-radius: 16px;
}
.variant-desc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-ink);
}
.variant-desc-header .icon {
  width: 15px;
  height: 15px;
  color: var(--color-brand);
}
.variant-desc-content {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-ink-80);
  white-space: pre-wrap;
  word-break: break-word;
}

.rich-link {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  word-break: break-all;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(232, 44, 42, 0.08);
  transition: color 0.15s ease, background 0.15s ease;
}
.rich-link:hover {
  background: var(--color-brand);
  color: #ffffff;
  text-decoration: none;
}

.variant-instructions {
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--color-canvas);
  font-size: 13px;
}
.variant-instructions summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--color-ink);
}
.instructions-content {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.buy {
  position: static;
  display: grid;
  gap: 16px;
  padding: 32px;
  background: linear-gradient(145deg, #ffffff 0%, #fffdfa 40%, #fbf5ee 100%);
  border: var(--line-strong);
  border-radius: 36px;
  box-shadow: var(--shadow-hard);
}

.buy h1 { font-size: clamp(32px, 3vw, 48px); }

.buy-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.buy-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}
.buy-trust .icon { width: 14px; height: 14px; }

.variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.qty-row { display: flex; flex-wrap: wrap; gap: 8px; }

.variant {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 104px;
  padding: 14px 16px;
  border: 2px solid var(--color-ink);
  border-radius: 18px;
  background: var(--color-canvas);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.variant:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard-sm);
}

.variant-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-ink);
  min-height: 36px;
  padding-right: 24px;
}

.variant-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-ink);
  margin-top: 6px;
}

.variant-stock {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-60);
  margin-top: 2px;
}

.variant.is-active {
  background: #ffffff;
  border: 2.5px solid var(--color-ink);
  box-shadow: 4px 4px 0px var(--color-ink);
  transform: translateY(-2px);
  z-index: 2;
}

.variant.is-active::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: #ffffff;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 1px 1px 0px var(--color-ink);
}

.variant.is-active .variant-price {
  color: var(--color-brand);
  font-size: 17px;
  font-weight: 900;
}

.variant.is-active .variant-stock {
  color: #0f766e;
  font-weight: 700;
}

.qty { min-width: 44px; min-height: 44px; padding: 0 12px; }

.qty-input { width: 88px; text-align: center; }

.low { color: var(--color-brand); font-weight: 700; }
.muted { color: var(--color-ink-60); }

.variant.is-out-of-stock {
  background: rgba(0, 0, 0, 0.03);
  border: 1.5px dashed var(--color-ink-30);
  color: var(--color-ink-40);
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none !important;
  transform: none !important;
}
.variant.is-out-of-stock .variant-title {
  color: var(--color-ink-60);
  text-decoration: line-through;
  text-decoration-color: var(--color-ink-30);
}
.variant.is-out-of-stock .variant-price {
  color: var(--color-ink-40);
}
.variant.is-out-of-stock .variant-stock {
  color: var(--color-brand);
  font-weight: 700;
}
.meta.is-out-of-stock { color: var(--color-brand); font-weight: 800; }

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 14px;
}

.skeleton {
  height: 180px;
  background: var(--color-surface);
  border: 2px solid var(--color-ink-16);
  border-radius: 32px;
}

/* Shimmer variant used while loading */
.skeleton.shimmer {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-canvas) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 0.9s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .catalog-mascot, .auth-mascot, .auth-orbit img { animation: none !important; }
  .auth-panel { animation: none; }
}

/* Crisp transitions for interactive elements (spec §28: 120–180ms) */
.card, .tile, .feature-copy, .trust article, .trust-card {
  transition: transform 180ms ease-out, border-color 160ms ease-out, background 160ms ease-out, box-shadow 180ms ease-out;
}

.btn, .chip, .variant, .qty {
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

/* View Transitions fallback fade */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 140ms;
}

details + details { margin-top: 12px; }

summary { cursor: pointer; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

details p { margin: 12px 0 0; color: var(--color-ink); }

.footer {
  margin-top: 0;
  position: relative;
  background: linear-gradient(180deg, #1b1928 0%, #111019 45%, #08080c 100%);
  color: var(--color-canvas);
  padding: 48px 0 32px;
  border-top: 3px solid var(--color-ink);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e82c2a 0%, #ff6b6b 25%, #fbbf24 50%, #38bdf8 75%, #a855f7 100%);
  pointer-events: none;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 420px);
  gap: 20px;
  align-items: stretch;
  margin: 12px auto 32px;
}
.auth-poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  padding: 32px 32px 120px;
  border: 3px solid var(--color-ink);
  border-radius: 36px;
  background-color: #d2e823;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 12%, #c9b6ff 0 42px, transparent 43px),
    radial-gradient(circle at 78% 78%, #ff8fab 0 70px, transparent 71px),
    linear-gradient(160deg, #e7f56a 0%, #d2e823 42%, #b6f25c 100%);
  box-shadow: 6px 6px 0 var(--color-ink);
}
.auth-poster h1 {
  max-width: 7ch;
  margin: 10px 0 12px;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.auth-poster .lede { max-width: 28ch; font-size: 17px; }
.auth-mascot {
  position: absolute;
  right: 8px;
  bottom: -8px;
  width: min(280px, 48%);
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: mascot-bob 4s ease-in-out infinite;
}
.auth-orbit {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 1;
}
.auth-orbit img {
  width: 56px;
  height: 56px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--color-ink);
  animation: auth-float 3.4s ease-in-out infinite;
}
.auth-orbit img:nth-child(2) { animation-delay: 0.35s; }
.auth-orbit img:nth-child(3) { animation-delay: 0.7s; }
.auth-orbit img:nth-child(4) { animation-delay: 1.05s; }
.auth-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
  padding: 22px;
  background: var(--color-canvas);
  border: 3px solid var(--color-ink);
  border-radius: 36px;
  box-shadow: 6px 6px 0 var(--color-ink);
}
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}
.auth-switch button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-switch button[aria-pressed="true"] {
  background: #d2e823;
  box-shadow: inset 0 0 0 2px var(--color-ink);
}
.auth-panel { display: grid; gap: 10px; animation: auth-in 180ms ease-out; }
.auth-panel[hidden] { display: none; }
.auth-field { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.auth-field input {
  min-height: 46px;
  border: 2px solid var(--color-ink);
  border-radius: 14px;
  padding: 0 12px;
  background: var(--color-canvas);
  font: inherit;
  font-weight: 500;
}
.auth-panel .btn { width: 100%; }
.auth-kicker { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.delivery-text { white-space: pre-wrap; margin: 8px 0 0; padding: 12px; border-radius: 14px; background: var(--color-canvas); font: inherit; }
.admin-page { display: grid; gap: 16px; }
.admin-metrics { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .admin-metrics { grid-template-columns: 1fr; }
}
.admin-list { display: grid; gap: 12px; }
.admin-order, .admin-user { display: grid; gap: 6px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-actions input { min-height: 42px; border: 2px solid var(--color-ink); border-radius: 14px; padding: 0 12px; background: var(--color-canvas); font: inherit; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.auth-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-telegram { width: 100%; }
@keyframes auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip-row .chip { margin: 0; }
.account-page { padding-top: 12px; }
.account-page h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.activity {
  margin-top: 8px;
  padding: 12px;
  border-radius: 28px;
}
.activity-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--glass-inset-shadow);
}
.activity-tab {
  min-width: 0;
  min-height: 44px;
  padding: 8px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--color-ink-60);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.activity-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(33, 37, 41, 0.05),
    0 8px 16px -10px rgba(33, 37, 41, 0.28);
}
.activity-tab:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.activity-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-ink-40);
}
.activity-tab[aria-selected="true"] .activity-count { color: var(--color-brand); }
.activity-stage { padding: 8px 6px 4px; }
.activity-pane-body { display: grid; gap: 12px; }
.activity-note,
.activity-empty-note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--color-ink-60);
}
.activity-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 16px 28px;
  text-align: center;
}
.activity-empty::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) center / 16px 2px no-repeat,
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--glass-inset-shadow);
}
.activity-empty-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.activity-empty-note { max-width: 36ch; }
.activity .order-list { margin: 0; }
.activity .ledger li { background: rgba(255, 255, 255, 0.55); }
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  margin: 8px 0 28px;
}
.panel {
  min-width: 0;
  background: var(--color-canvas);
  border: 2px solid var(--color-ink);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow-hard-sm);
}
.panel h1 { font-size: clamp(32px, 4vw, 48px); }
.panel .chip { margin: 12px 0 16px; }
.panel .chip-row .chip { margin: 0; }
.balance {
  margin: 8px 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.ledger { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label amount" "time amount";
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  background: var(--color-canvas);
}
.ledger li span { grid-area: label; font-weight: 800; }
.ledger li time { grid-area: time; color: var(--color-ink-60); font-size: 13px; }
.ledger li strong { grid-area: amount; font-size: 18px; }
.ledger .is-debit { color: var(--color-brand); }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.stat {
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--color-ink);
  border-radius: 20px;
  background: var(--color-canvas);
  box-shadow: 3px 3px 0 var(--color-ink);
}
.stat.is-balance { background: #d2e823; }
.stat span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.order-list { display: grid; gap: 10px; margin: 8px 0 16px; }
.order-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--color-ink);
  border-radius: 20px;
  background: var(--color-canvas);
}
.order-logo {
  width: 72px;
  height: 54px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 12px;
}
.order-logo-empty { display: block; }
.order-name { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
a.order-name:hover { text-decoration: underline; }
.order-card .meta { margin: 0 0 8px; }
.order-card time { display: block; margin-top: 8px; color: var(--color-ink-60); font-size: 13px; }
.order-card > strong { font-size: 18px; letter-spacing: -0.03em; }
.order-bot { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 800; }
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: #fff3bf;
  font-size: 12px;
  font-weight: 800;
}
.status-chip.is-done { background: #d2e823; }
.status-chip.is-stop { background: #ffd0d0; }
.nav-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.nav-balance .icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-balance[aria-current="page"] { background: var(--color-brand); color: var(--color-canvas); }
.nav-balance[aria-current="page"] .icon { filter: invert(1); }
.pay-actions { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pay-actions .buy-btn { flex: 1 1 140px; }
.purchase-action-row .buy-qr {
  background: var(--color-canvas);
  color: var(--color-ink);
}
.checkout-box { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.pay-qr {
  width: min(260px, 100%);
  height: auto;
  border: 2px solid var(--color-ink);
  border-radius: 16px;
  background: var(--color-canvas);
}
.topup { margin-top: 16px; }
.amount-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.amount-entry { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-entry input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 44px;
  border: 2px solid var(--color-ink);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}
.fine a { color: var(--color-brand); font-weight: 800; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.footer a { color: var(--color-brand); font-weight: 800; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer img { height: 36px; width: auto; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(255, 255, 255, 0.25),
      inset 0 0 24px rgba(255, 255, 255, 0.2),
      0 0 0 1px rgba(33, 37, 41, 0.06),
      0 18px 36px -4px rgba(33, 37, 41, 0.12),
      0 6px 16px -2px rgba(33, 37, 41, 0.05);
  }
  .tile:hover {
    transform: translateY(-4px) translateX(-2px);
    border-color: var(--color-ink);
    box-shadow:
      inset 1.5px 1.5px 2px 0px rgba(255, 255, 255, 1),
      inset -1px -1px 2px 0px rgba(0, 0, 0, 0.06),
      inset 0 0 24px 2px rgba(255, 255, 255, 0.5),
      6px 6px 0 var(--color-ink);
  }
  .card:hover::before {
    opacity: 1;
  }
  .card:hover .well {
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(255, 255, 255, 0.24) 100%
    );
    border-color: rgba(255, 255, 255, 0.52);
  }
  .card:hover .well img {
    transform: scale(1.06);
  }
  .feature-copy:hover, .trust article:hover, .trust-card:hover { transform: translateY(-2px) translateX(-1px); box-shadow: 4px 4px 0 var(--color-ink); }
  .btn:hover { transform: translateY(-1px) translateX(-1px); box-shadow: 3px 3px 0 var(--color-ink); }
  .btn:active, .variant:active, .qty:active, .chip:active { transform: translateY(1px); box-shadow: none; }

  /* Topbar & Header Hover States */
  .logo:hover {
    transform: scale(1.05);
  }
  .logo:hover img {
    filter: drop-shadow(0 3px 10px rgba(232, 44, 42, 0.22));
  }
  .logo:active {
    transform: scale(0.97);
  }

  .nav-badge:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 2px 2px 0 var(--color-ink);
  }
  .nav-badge:hover .pulse-dot {
    transform: scale(1.25);
    box-shadow: 0 0 0 3px rgba(232, 44, 42, 0.35);
  }

  .nav-links a:hover:not([aria-current="page"]) {
    background: rgba(232, 44, 42, 0.08);
    color: var(--color-brand);
    transform: translateY(-1px);
  }
  .nav-links a[aria-current="page"]:hover {
    background: #d42220;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 44, 42, 0.3);
  }
  .nav-links a:active {
    transform: translateY(1px);
  }

  .search:hover:not(:focus-within) {
    border-color: var(--color-ink);
    box-shadow: 2.5px 2.5px 0 var(--color-ink);
    transform: translateY(-1px);
    background: #ffffff;
  }
  .search:hover .icon {
    transform: scale(1.12);
  }

  .nav-balance:hover:not([aria-current="page"]) {
    transform: translateY(-2px) translateX(-1px);
    box-shadow: 3px 3px 0 var(--color-ink);
    background: #ffffff;
    color: var(--color-brand);
  }
  .nav-balance:hover:not([aria-current="page"]) .icon {
    transform: scale(1.15);
  }
  .nav-balance[aria-current="page"]:hover {
    transform: translateY(-2px) translateX(-1px);
    box-shadow: 3px 3px 0 var(--color-ink);
    background: #d42220;
  }
  .nav-balance[aria-current="page"]:hover .icon {
    transform: scale(1.15);
  }
  .nav-balance:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0 var(--color-ink);
  }

  .menu-button:hover {
    transform: translateY(-1px) translateX(-1px);
    box-shadow: 3px 3px 0 var(--color-ink);
    background: var(--color-surface);
  }

  /* Sub items: Category Filter Chips */
  .chip:hover:not(.is-active) {
    transform: translateY(-2px) translateX(-1px);
    box-shadow: 3px 3px 0 var(--color-ink);
    background: #ffffff;
    color: var(--color-brand);
    border-color: var(--color-ink);
  }
  .chip:hover:not(.is-active) .icon {
    transform: scale(1.18) rotate(-6deg);
  }
  .chip.is-active:hover {
    transform: translateY(-2px) translateX(-1px);
    box-shadow: 3px 3px 0 var(--color-ink);
    background: #d42220;
  }
  .chip.is-active:hover .icon {
    transform: scale(1.18) rotate(-6deg);
  }

  /* Bento Hero 3 Cards Container & Elements Hover */
  .bento .card:hover {
    transform: translateY(-6px);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(255, 255, 255, 0.92) 100%
    ) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow:
      0 24px 44px -8px rgba(33, 37, 41, 0.18),
      0 10px 20px -3px rgba(33, 37, 41, 0.08),
      0 0 0 1.5px rgba(255, 255, 255, 0.95),
      inset 0 2px 0 rgba(255, 255, 255, 1),
      inset 0 0 24px rgba(255, 255, 255, 0.7) !important;
  }

  .bento .card:hover::before {
    opacity: 1;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.15) 35%,
      transparent 70%
    );
  }

  .bento .card:hover .card-title {
    color: var(--color-brand);
  }

  .bento .card:hover .eyebrow {
    color: var(--color-brand);
  }

  .bento .card:hover .feature-perk {
    background: #ffffff;
    border-color: rgba(232, 44, 42, 0.32);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }

  .bento .feature:hover .feature-logo {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.15));
  }

  .bento-small-card:hover .small-card-logo {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
  }

  .bento .card:hover .price {
    transform: scale(1.03);
    transform-origin: left center;
  }

  .bento .feature:hover .feature-action-row .btn,
  .bento .feature .btn.btn-primary:hover {
    background: #d42220 !important;
    color: #ffffff !important;
    transform: translate(-1.5px, -1.5px) !important;
    box-shadow: 3.5px 3.5px 0 var(--color-ink) !important;
  }

  .bento-small-card:hover .bento-mini-btn {
    background: var(--color-brand) !important;
    color: #ffffff !important;
    transform: translate(-1.5px, -1.5px) !important;
    box-shadow: 3px 3px 0 var(--color-ink) !important;
  }

  .bento .card:active {
    transform: translateY(-2px);
    box-shadow:
      0 10px 20px -4px rgba(33, 37, 41, 0.12),
      0 3px 8px -2px rgba(33, 37, 41, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
}

@media (max-width: 1199px) {
  .wrap { width: min(var(--content), calc(100vw - 48px)); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  .account-grid, .auth-stage { grid-template-columns: minmax(0, 1fr); }
  .activity-tab { font-size: 13px; padding: 8px 4px; }
  .stat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel h1, .panel .meta { overflow-wrap: anywhere; }
  .order-card { grid-template-columns: 56px minmax(0, 1fr); }
  .order-card > strong { grid-column: 2; }
  .auth-poster { min-height: 320px; padding-bottom: 108px; }
  .auth-poster h1 { font-size: 52px; }
  .auth-mascot { width: 148px; }
  .hero, .product, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .product > *, .bento > * { min-width: 0; }
  .product-media { position: static; max-height: none; overflow-y: visible; }
  .buy { position: static; }
  .nav-links, .account-desktop { display: none; }
  .logo { order: 1; }
  .menu-button { display: inline-flex; margin-left: auto; order: 2; }
  .search-desktop { order: 3; flex: 1 1 100%; width: auto; max-width: 100%; min-width: 0; margin-left: 0; }
  .nav-shell { flex-wrap: wrap; }
  .nav-shell.is-open .mobile-panel {
    display: grid;
    gap: 12px;
    flex-basis: 100%;
    order: 4;
    padding: 8px 8px 12px;
  }
  .nav-shell.is-open .mobile-panel .search { display: none; }
  .nav-shell.is-open .mobile-panel a {
    font-weight: 800;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    transition: background 0.15s ease, color 0.15s ease;
  }
  .nav-shell.is-open .mobile-panel a:hover {
    background: rgba(232, 44, 42, 0.08);
    color: var(--color-brand);
  }
  .bento { grid-template-columns: 1fr; grid-template-areas: "feature" "small-a" "small-b"; }
  .band-lime, .band { padding: 36px 0 32px; min-height: auto; }
}

@media (max-width: 699px) {
  .wrap { width: min(var(--content), calc(100vw - 32px)); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .variants { grid-template-columns: 1fr; }
  .card, .tile, .feature-copy { border-radius: 24px; }
  .feature-copy { padding: 20px; }
  .feature-media { border-radius: 18px; aspect-ratio: 16 / 10; max-height: 180px; }
  .card::after { border-radius: 24px; }
  /* Mobile: giảm blur để nhẹ GPU */
  .card { backdrop-filter: blur(16px) saturate(170%) contrast(104%); -webkit-backdrop-filter: blur(16px) saturate(170%) contrast(104%); }
  .well { backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
  .card .well { height: 130px; }
  .well img { max-width: 72px; max-height: 60px; }
  .card-title { font-size: 16px; min-height: 40px; max-height: 40px; }
  .section { margin-top: 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  /* hero-headline/mascot-frame removed — watermark mode */
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-catalog-card,
  .bento-catalog-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
  }
  .bento-catalog-right {
    width: 100%;
    justify-content: space-between;
  }
  .promo { padding: 56px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1440px) {
  .grid.catalog-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Liquid glass cho chrome và mọi card ──
   Cùng chất liệu với card sản phẩm. Nút hành động giữ màu đặc.
   Mã QR giữ nền trắng để quét được. Poster đăng nhập và dải màu full-bleed giữ nguyên. */
.nav-shell,
.rail-wrap,
.panel,
.activity,
.empty,
.stat,
.order-card,
.ledger li,
.trust article,
.trust-card,
details,
details[open],
.auth-card,
.buy,
.purchase-panel,
.product-desc,
.hero-catalog-card,
.bento-catalog-card,
.skeleton,
.info-tooltip-content {
  background: var(--glass-bg);
  border: var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%) contrast(102%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%) contrast(102%);
}

.nav-shell,
.rail-wrap { border-radius: 22px; }

.stat.is-balance {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 72%),
    linear-gradient(145deg, rgba(210, 232, 35, 0.62) 0%, rgba(255, 255, 255, 0.28) 100%);
}

.search,
.nav-badge,
.menu-button,
.nav-balance:not([aria-current="page"]),
.chip:not(.is-active),
.qty:not(.is-active),
.auth-switch,
.auth-field input,
select,
.qty-input,
.amount-entry input,
.buy-trust span,
.notice,
.selected-package-badge,
.variant,
.variant-desc-box,
.variant-instructions,
.perk-item,
.marquee-pill,
.hero-copy .eyebrow,
.auth-poster .eyebrow,
.wrap > .eyebrow {
  background: var(--glass-inset-bg);
  border: var(--glass-line);
  box-shadow: var(--glass-inset-shadow);
}

.panel > .eyebrow,
.buy > .eyebrow,
.empty > .eyebrow {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: var(--color-ink-60);
}

.order-logo,
.marquee-pill__logo,
.stack-avatar,
.stack-more {
  background: rgba(255, 255, 255, 0.82);
  border: var(--glass-line);
  box-shadow: var(--glass-inset-shadow);
}

.feature-copy,
.feature-copy.tile,
.feature-copy.tile-white,
.feature-copy.tile-carbon,
.feature-copy.feature-cover-card {
  border: var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.product .well {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 2px 8px rgba(33, 37, 41, 0.04);
}

.hero-catalog-card,
.bento-catalog-card {
  color: var(--color-ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0.45) 100%
  );
}

.hero-catalog-card::before,
.bento-catalog-card::before { display: none; }

.bento-catalog-badge {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.7);
}

.bento-badge-dot {
  background: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(232, 44, 42, 0.18);
}

.bento-catalog-title { color: var(--color-ink); }
.bento-catalog-sub { color: var(--color-ink-60); }

.variant.is-active,
.variant.is-active:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--glass-shadow), 0 0 0 2px var(--color-brand);
  transform: translateY(-2px);
}

.variant.is-active::after {
  border-color: transparent;
  box-shadow: none;
}

.variant.is-out-of-stock,
.variant.is-out-of-stock:hover {
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed rgba(33, 37, 41, 0.28);
  box-shadow: none;
  transform: none;
}

.skeleton.shimmer {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 75%);
  background-size: 200% 100%;
  border: var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.status-chip {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.info-tooltip-content::after { border-top-color: rgba(255, 255, 255, 0.88); }

@media (max-width: 899px) {
  .nav-shell.is-open .mobile-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    margin-top: 4px;
  }
}

@media (max-width: 699px) {
  :root {
    --glass-blur: 16px;
    --glass-blur-well: 10px;
  }
}

@media (hover: hover) {
  .nav-badge:hover,
  .menu-button:hover,
  .search:hover:not(:focus-within),
  .nav-balance:hover:not([aria-current="page"]),
  .chip:hover:not(.is-active),
  .qty:hover:not(.is-active),
  .marquee-pill:hover {
    background: var(--glass-inset-bg);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--glass-shadow-lift);
  }

  .chip:hover:not(.is-active),
  .qty:hover:not(.is-active),
  .nav-balance:hover:not([aria-current="page"]) { color: var(--color-brand); }

  .search:hover:not(:focus-within) { transform: none; }

  .chip.is-active:hover,
  .qty.is-active:hover,
  .nav-balance[aria-current="page"]:hover {
    box-shadow: 0 8px 16px rgba(232, 44, 42, 0.25);
  }

  .hero-catalog-card:hover,
  .bento-catalog-card:hover,
  .trust article:hover,
  .trust-card:hover,
  .feature-copy:hover,
  .tile:hover,
  .order-card:hover,
  details:hover,
  .marquee-pill:hover {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--glass-shadow-lift);
    transform: translateY(-3px);
  }

  .variant:hover:not(:disabled):not(.is-out-of-stock):not(.is-active) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.36) 100%);
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow: var(--glass-shadow-lift);
    transform: translateY(-2px);
  }
}

/* Fallback: browser không hỗ trợ backdrop-filter → kính đục */
@supports not (backdrop-filter: blur(1px)) {
  .card,
  .nav-shell,
  .rail-wrap,
  .panel,
  .activity,
  .empty,
  .stat,
  .order-card,
  .ledger li,
  .trust article,
  .trust-card,
  details,
  .auth-card,
  .buy,
  .purchase-panel,
  .product-desc,
  .hero-catalog-card,
  .bento-catalog-card,
  .info-tooltip-content {
    background: rgba(255, 255, 255, 0.94) !important;
    background-image: none !important;
    border-color: var(--color-ink) !important;
    box-shadow: var(--shadow-hard-sm) !important;
  }
  .card::before { opacity: 0.32; }
  .card::after { display: none; }
  .well,
  .product .well {
    background: #ffffff !important;
    background-image: none !important;
    border-color: var(--color-ink) !important;
  }
}
