/* ==========================================================================
   Luna Space — Halloween design system
   Dark, warm-orange, violet, restrained green. Mobile-first for Telegram.
   ========================================================================== */

:root {
  --bg: #0b0911;
  --bg-deep: #07050b;
  --surface: #15101f;
  --surface-2: #1b1427;
  --surface-3: #241a33;
  --surface-glass: rgba(21, 16, 31, 0.78);

  --orange: #ff7518;
  --orange-soft: #ff9f43;
  --orange-deep: #d9560a;
  --violet: #8b5cf6;
  --violet-soft: #b69cff;
  --green: #b7f36b;
  --amber: #ffc46b;
  --danger: #ff6b6b;

  --text: #f5f1fa;
  --text-dim: #cfc7dd;
  --muted: #a9a1b5;
  --line: rgba(245, 241, 250, 0.09);
  --line-strong: rgba(245, 241, 250, 0.16);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px rgba(255, 117, 24, 0.28);
  --shadow-violet: 0 0 32px rgba(139, 92, 246, 0.22);

  --font: "Manrope", "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 44px;

  --app-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tg-bg: #0b0911;
  --tg-text: #f5f1fa;
  --tg-hint: #a9a1b5;
  --tg-button: #ff7518;
  --tg-button-text: #140b05;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: var(--app-height);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body.sheet-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(255, 117, 24, 0.35);
}

:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ------------------------------------------------------------------ ambient */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 15% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(255, 117, 24, 0.14), transparent 55%),
    radial-gradient(100% 80% at 50% 110%, rgba(139, 92, 246, 0.10), transparent 60%),
    var(--bg);
}

.ambient__moon {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff6e6 0%, #ffd9a6 38%, #ff9f43 70%, rgba(255, 117, 24, 0) 72%);
  opacity: 0.16;
  filter: blur(2px);
  animation: moon-breathe 9s ease-in-out infinite;
}

.ambient__fog {
  position: absolute;
  width: 120%;
  height: 220px;
  left: -10%;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.22;
}

.ambient__fog--one {
  bottom: 6%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.32), rgba(255, 117, 24, 0.18), transparent);
  animation: fog-drift 22s ease-in-out infinite alternate;
}

.ambient__fog--two {
  bottom: 24%;
  height: 160px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.18), transparent);
  animation: fog-drift 28s ease-in-out infinite alternate-reverse;
}

.ambient__stars {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255, 245, 225, 0.9), transparent 100%),
    radial-gradient(1.2px 1.2px at 76% 12%, rgba(255, 245, 225, 0.75), transparent 100%),
    radial-gradient(1.6px 1.6px at 48% 8%, rgba(255, 245, 225, 0.6), transparent 100%),
    radial-gradient(1px 1px at 88% 32%, rgba(255, 245, 225, 0.55), transparent 100%),
    radial-gradient(1.2px 1.2px at 28% 34%, rgba(255, 245, 225, 0.45), transparent 100%),
    radial-gradient(1px 1px at 63% 27%, rgba(255, 245, 225, 0.5), transparent 100%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes moon-breathe {
  0%, 100% { transform: scale(1); opacity: 0.14; }
  50% { transform: scale(1.04); opacity: 0.2; }
}

@keyframes fog-drift {
  from { transform: translateX(-6%) translateY(0); }
  to { transform: translateX(6%) translateY(-14px); }
}

@keyframes twinkle {
  from { opacity: 0.28; }
  to { opacity: 0.62; }
}

/* --------------------------------------------------------------------- boot */

.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__sigil {
  width: 84px;
  height: 84px;
  padding: 18px;
  border-radius: 26px;
  color: var(--orange);
  background: radial-gradient(circle at 50% 20%, rgba(255, 159, 67, 0.22), rgba(21, 16, 31, 0.9));
  border: 1px solid rgba(255, 117, 24, 0.24);
  box-shadow: var(--shadow-glow);
  animation: float 4s ease-in-out infinite;
}

.boot__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------- fatal */

.fatal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.fatal[hidden] {
  display: none;
}

.fatal__card {
  width: min(100%, 380px);
  padding: 28px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.fatal__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: var(--orange-soft);
  background: rgba(255, 117, 24, 0.12);
}

.fatal__card h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.fatal__card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------- app */

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: var(--app-height);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.app[hidden] {
  display: none;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(11, 9, 17, 0.94), rgba(11, 9, 17, 0.72));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 241, 250, 0.05);
}

.appbar__back {
  margin-left: -6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 6px;
  color: var(--orange);
  border-radius: 13px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 159, 67, 0.25), rgba(255, 117, 24, 0.06));
  border: 1px solid rgba(255, 117, 24, 0.2);
  box-shadow: 0 0 22px rgba(255, 117, 24, 0.16);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand__text small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.appbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(21, 16, 31, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pill--balance {
  border-color: rgba(255, 117, 24, 0.28);
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.15), rgba(21, 16, 31, 0.8));
}

.pill--balance .icon {
  width: 17px;
  height: 17px;
  color: var(--orange-soft);
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 16, 31, 0.7);
  color: var(--text);
}

.iconbtn:active {
  transform: scale(0.96);
}

.app.has-cartbar .view {
  padding-bottom: calc(188px + var(--safe-bottom));
}

.view {
  padding: 18px 16px calc(112px + var(--safe-bottom));
  outline: none;
}

.view--flush {
  padding-left: 0;
  padding-right: 0;
}

.screen {
  animation: fade-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 20px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 159, 67, 0.16);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255, 117, 24, 0.26), transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(139, 92, 246, 0.24), transparent 60%),
    linear-gradient(155deg, #1d1429 0%, #120d1c 52%, #0d0a14 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 117, 24, 0.18), transparent 65%);
  filter: blur(24px);
  z-index: -1;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__moon {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 94px;
  height: 94px;
  color: #ffd9a6;
  opacity: 0.88;
  filter: drop-shadow(0 0 26px rgba(255, 159, 67, 0.45));
  animation: float 7s ease-in-out infinite;
}

.hero__bats {
  position: absolute;
  top: 38px;
  left: 18px;
  width: 120px;
  color: rgba(245, 241, 250, 0.45);
  animation: float 9s ease-in-out infinite reverse;
}

.hero__pumpkin {
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  color: var(--orange);
  opacity: 0.5;
  filter: drop-shadow(0 8px 24px rgba(255, 117, 24, 0.28));
  transform: rotate(-8deg);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 88%;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 159, 67, 0.25);
  background: rgba(255, 117, 24, 0.09);
  color: var(--orange-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
}

.hero__eyebrow .icon {
  width: 14px;
  height: 14px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 84%;
  margin: 16px 0 8px;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-soft);
  text-shadow: 0 0 28px rgba(255, 117, 24, 0.35);
}

.hero__lead {
  position: relative;
  z-index: 1;
  max-width: 78%;
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.hero__stat {
  padding: 11px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 241, 250, 0.07);
  background: rgba(9, 7, 14, 0.95);
  backdrop-filter: blur(8px);
}

.hero__stat b {
  display: block;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  color: #180d03;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  box-shadow: 0 10px 26px rgba(255, 117, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 12px 32px rgba(255, 117, 24, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--violet {
  color: #f5f1fa;
  background: linear-gradient(135deg, #9b6bff, var(--violet));
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.25);
}

.btn--ghost {
  background: rgba(245, 241, 250, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--soft {
  background: rgba(255, 117, 24, 0.1);
  border-color: rgba(255, 117, 24, 0.26);
  color: var(--orange-soft);
}

.btn--danger {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.28);
  color: #ff9b9b;
}

.btn--success {
  background: rgba(183, 243, 107, 0.12);
  border-color: rgba(183, 243, 107, 0.3);
  color: var(--green);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 12px;
}

.btn--xs {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}

.btn--icon {
  width: var(--tap);
  padding: 0;
}

/* ----------------------------------------------------------------- sections */

.section {
  margin-top: 26px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section__sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--orange-soft);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.section__link .icon {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------------------------- chips */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(21, 16, 31, 0.7);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.chip .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.chip.is-active {
  border-color: rgba(255, 117, 24, 0.4);
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.18), rgba(255, 117, 24, 0.05));
  color: var(--orange-soft);
}

.chip.is-active .icon {
  color: var(--orange-soft);
}

/* -------------------------------------------------------------------- grid */

.grid {
  display: grid;
  gap: 12px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 360px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------- product */

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 117, 24, 0.09), transparent 55%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product:active {
  transform: translateY(1px) scale(0.995);
}

.product:hover {
  border-color: rgba(255, 159, 67, 0.22);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.product--wide {
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 15px;
}

.product__orb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--orange-soft);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 214, 153, 0.35), rgba(255, 117, 24, 0.1) 55%, transparent 70%),
    rgba(255, 117, 24, 0.08);
  border: 1px solid rgba(255, 159, 67, 0.22);
  box-shadow: inset 0 0 18px rgba(255, 117, 24, 0.12);
  flex: 0 0 auto;
}

.product__orb--violet {
  color: var(--violet-soft);
  background:
    radial-gradient(circle at 35% 25%, rgba(214, 198, 255, 0.3), rgba(139, 92, 246, 0.12) 55%, transparent 70%),
    rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.24);
}

.product__orb--green {
  color: var(--green);
  background: rgba(183, 243, 107, 0.08);
  border-color: rgba(183, 243, 107, 0.2);
}

.product__orb .icon {
  width: 24px;
  height: 24px;
}

.product__body {
  min-width: 0;
  flex: 1;
}

.product__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.product__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: var(--orange-soft);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product__price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.product__old {
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
  margin-left: 0;
}

.product__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.product__add {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 13px;
  color: #1b0d02;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  box-shadow: 0 8px 18px rgba(255, 117, 24, 0.28);
  flex: 0 0 auto;
  align-self: end;
}

.product__add:active {
  transform: scale(0.94);
}

.product__add .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

/* ------------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--hot {
  color: #ffd0a3;
  border-color: rgba(255, 117, 24, 0.32);
  background: rgba(255, 117, 24, 0.14);
}

.badge--violet {
  color: #d8caff;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.14);
}

.badge--green {
  color: var(--green);
  border-color: rgba(183, 243, 107, 0.3);
  background: rgba(183, 243, 107, 0.1);
}

.badge--muted {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(245, 241, 250, 0.04);
}

.badge--danger {
  color: #ffadad;
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.1);
}

.badge--amber {
  color: var(--amber);
  border-color: rgba(255, 196, 107, 0.28);
  background: rgba(255, 196, 107, 0.1);
}

/* -------------------------------------------------------------------- cards */

.card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card + .card {
  margin-top: 12px;
}

.card--accent {
  border-color: rgba(255, 159, 67, 0.2);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 117, 24, 0.14), transparent 55%),
    linear-gradient(160deg, #211628, var(--surface));
}

.card--violet {
  border-color: rgba(139, 92, 246, 0.24);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(160deg, #1b1528, var(--surface));
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card__title {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}

.card__hint {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(9, 7, 14, 0.32);
}

.stat__label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat__label .icon {
  width: 13px;
  height: 13px;
}

.stat__value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* --------------------------------------------------------------------- rows */

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.row:last-child {
  border-bottom: 0;
}

.row__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(245, 241, 250, 0.05);
  color: var(--text-dim);
  flex: 0 0 auto;
}

.row__icon .icon {
  width: 19px;
  height: 19px;
}

.row__body {
  min-width: 0;
  flex: 1;
}

.row__title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__value {
  font-size: 13.5px;
  font-weight: 750;
  white-space: nowrap;
}

.row__chev {
  color: var(--muted);
  width: 16px;
  height: 16px;
}

button.row {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  text-align: left;
}

/* ------------------------------------------------------------------- fields */

.field {
  display: block;
  margin-top: 12px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
}

.input,
.textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(9, 7, 14, 0.5);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #756d84;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(255, 159, 67, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 117, 24, 0.12);
}

.input[inputmode="decimal"] {
  letter-spacing: 0.01em;
}

.field__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.field__error {
  margin-top: 6px;
  color: #ff9b9b;
  font-size: 11.5px;
}

/* ----------------------------------------------------------------- quantity */

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(9, 7, 14, 0.4);
  padding: 3px;
}

.qty button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
}

.qty button:active {
  background: rgba(245, 241, 250, 0.08);
}

.qty span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

/* ---------------------------------------------------------------- list item */

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item__thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 117, 24, 0.08);
  color: var(--orange-soft);
  flex: 0 0 auto;
}

.list-item__thumb .icon {
  width: 21px;
  height: 21px;
}

.list-item__body {
  min-width: 0;
  flex: 1;
}

.list-item__title {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item__sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.list-item__price {
  font-size: 13.5px;
  font-weight: 750;
  white-space: nowrap;
}

.list-item__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.list-item__remove:active {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
}

/* --------------------------------------------------------------- cart line */

.cart-line {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 30px 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__body {
  min-width: 0;
}

.cart-line__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cart-line__sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.cart-line__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.cart-line__price {
  color: var(--orange-soft);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-line__remove {
  position: absolute;
  top: 12px;
  right: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.cart-line__remove:active {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
}

/* -------------------------------------------------------------------- tabs */

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-md);
  background: rgba(9, 7, 14, 0.42);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  flex: 1;
  min-width: max-content;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.tabs__tab.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.2), rgba(255, 117, 24, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 159, 67, 0.22);
}

/* ------------------------------------------------------------------ notice */

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(245, 241, 250, 0.035);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.45;
}

.notice .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--muted);
}

.notice--warning {
  border-color: rgba(255, 196, 107, 0.26);
  background: rgba(255, 196, 107, 0.07);
}

.notice--warning .icon {
  color: var(--amber);
}

.notice--danger {
  border-color: rgba(255, 107, 107, 0.26);
  background: rgba(255, 107, 107, 0.07);
}

.notice--danger .icon {
  color: #ff9b9b;
}

.notice--success {
  border-color: rgba(183, 243, 107, 0.24);
  background: rgba(183, 243, 107, 0.06);
}

.notice--success .icon {
  color: var(--green);
}

.notice b {
  color: var(--text);
}

/* -------------------------------------------------------------------- empty */

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 20px;
  text-align: center;
}

.empty__orb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(245, 241, 250, 0.04);
  border: 1px solid var(--line);
}

.empty__orb .icon {
  width: 28px;
  height: 28px;
}

.empty h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.empty p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------- skeleton */

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(245, 241, 250, 0.045);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  animation: shimmer 1.35s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.skeleton--card {
  height: 132px;
}

.skeleton--row {
  height: 74px;
}

.skeleton--hero {
  height: 280px;
  border-radius: var(--radius-xl);
}

/* ----------------------------------------------------------------- progress */

.progress {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(245, 241, 250, 0.08);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 0 12px rgba(255, 117, 24, 0.4);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ profile */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 92, 246, 0.18);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}

.avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.28), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero__body {
  min-width: 0;
  flex: 1;
}

.profile-hero__name {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__rank {
  margin-top: 8px;
}

/* ------------------------------------------------------------- referral link */

.copyline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 159, 67, 0.3);
  background: rgba(255, 117, 24, 0.05);
}

.copyline code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--orange-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

.copyline button {
  flex: 0 0 auto;
}

.copyline--wrap {
  align-items: flex-start;
}

.copyline--wrap code {
  overflow: visible;
  text-overflow: clip;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-size: 12.5px;
}

/* --------------------------------------------------------------- order card */

.order-card {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.order-card:active {
  transform: scale(0.995);
}

.order-card + .order-card {
  margin-top: 10px;
}

.order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card__type {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.order-card__chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}

.order-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 117, 24, 0.08);
  color: var(--orange-soft);
  flex: 0 0 auto;
}

.order-card__icon .icon {
  width: 18px;
  height: 18px;
}

.order-card__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card__date {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.order-card__price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------- timeline */

.timeline {
  position: relative;
  margin: 4px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 16px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px var(--surface);
}

.timeline li.is-done::before {
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--surface), 0 0 12px rgba(255, 117, 24, 0.5);
}

.timeline li.is-current::before {
  background: var(--amber);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.timeline__title {
  font-size: 13px;
  font-weight: 650;
}

.timeline__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 0 rgba(255, 196, 107, 0.4); }
  50% { box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px rgba(255, 196, 107, 0); }
}

/* ------------------------------------------------------------------ success */

.success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 0 8px;
  text-align: center;
}

.success__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #1c1003;
  background: radial-gradient(circle at 35% 30%, #ffe2b8, var(--orange-soft) 45%, var(--orange) 75%);
  box-shadow: 0 0 44px rgba(255, 117, 24, 0.45);
  animation: check-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success__orb::before,
.success__orb::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 159, 67, 0.28);
  animation: ring 2.4s ease-out infinite;
}

.success__orb::after {
  inset: -28px;
  animation-delay: 0.5s;
}

.success__orb .icon {
  width: 46px;
  height: 46px;
  stroke-width: 2.2;
}

.success h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.success p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes check-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* -------------------------------------------------------------------- sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: center;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 7, 0.68);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease both;
}

.sheet__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: 20px 18px calc(22px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, #1c1428, #120e1b);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  animation: sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sheet__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(245, 241, 250, 0.18);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sheet__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  left: 50%;
  top: calc(72px + var(--safe-top));
  z-index: 95;
  display: grid;
  gap: 8px;
  width: min(calc(100% - 32px), 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(24, 18, 34, 0.96);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  animation: toast-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast.is-out {
  animation: toast-out 0.2s ease both;
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--orange-soft);
  flex: 0 0 auto;
}

.toast--success .icon { color: var(--green); }
.toast--error .icon { color: #ff9b9b; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ------------------------------------------------------------------ tabbar */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 7px 6px calc(7px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(11, 9, 17, 0.72), rgba(11, 9, 17, 0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245, 241, 250, 0.06);
}

.tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color 0.16s ease, background 0.16s ease;
}

.tab .icon {
  width: 21px;
  height: 21px;
}

.tab.is-active {
  color: var(--orange-soft);
}

.tab.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 10px rgba(255, 117, 24, 0.7);
}

.tab__cart-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.tab__badge {
  position: absolute;
  top: -6px;
  right: -11px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #1b0d02;
  font-size: 9px;
  font-weight: 800;
}

.tab__badge[hidden] {
  display: none;
}

/* ----------------------------------------------------------------- cartbar */

.cartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + var(--safe-bottom));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 9px 9px 9px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 159, 67, 0.28);
  background: linear-gradient(135deg, rgba(38, 25, 45, 0.97), rgba(20, 14, 28, 0.97));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 117, 24, 0.12);
  backdrop-filter: blur(14px);
  animation: fade-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cartbar[hidden] {
  display: none;
}

.cartbar__info {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
}

.cartbar__count {
  font-size: 16px;
  font-weight: 800;
}

.cartbar__label {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.cartbar__total {
  margin-left: auto;
  color: var(--orange-soft);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cartbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- misc */

.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 10.5px; }
.strong { font-weight: 750; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions > .btn {
  flex: 1;
}

.stack {
  display: grid;
  gap: 10px;
}

.stack--tight {
  gap: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.amount-btn {
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(9, 7, 14, 0.4);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.amount-btn.is-active {
  border-color: rgba(255, 159, 67, 0.4);
  background: rgba(255, 117, 24, 0.12);
  color: var(--orange-soft);
}

.paymethod {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(9, 7, 14, 0.32);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.paymethod.is-active {
  border-color: rgba(255, 159, 67, 0.4);
  background: rgba(255, 117, 24, 0.08);
}

.paymethod__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(245, 241, 250, 0.05);
  color: var(--text-dim);
  flex: 0 0 auto;
}

.paymethod__icon .icon {
  width: 20px;
  height: 20px;
}

.paymethod__body {
  min-width: 0;
  flex: 1;
}

.paymethod__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.paymethod__sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.paymethod__check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: transparent;
  flex: 0 0 auto;
}

.paymethod.is-active .paymethod__check {
  border-color: var(--orange);
  background: var(--orange);
  color: #1b0d02;
}

.paymethod__check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.receipt {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: rgba(9, 7, 14, 0.32);
}

.receipt__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.receipt__line b {
  color: var(--text);
}

.receipt__total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  color: var(--orange-soft);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(245, 241, 250, 0.18);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 359px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .appbar { padding-left: 12px; padding-right: 12px; }
  .chips {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .grid--2 { grid-template-columns: 1fr; }
  .hero { padding: 20px 16px 18px; }
  .hero__lead { max-width: 100%; }
  .hero__moon { width: 74px; height: 74px; right: 10px; }
  .hero__bats { width: 92px; opacity: 0.7; }
  .hero__pumpkin { width: 104px; height: 104px; right: -28px; bottom: -30px; opacity: 0.5; }
  .hero__stats { gap: 6px; }
  .hero__stat { padding: 9px 8px; }
  .tabbar { padding-left: 2px; padding-right: 2px; }
  .tab { font-size: 9px; }
}

@media (min-width: 560px) {
  .view {
    padding-left: 22px;
    padding-right: 22px;
  }
  .grid--2 {
    gap: 14px;
  }
  .hero {
    padding: 32px 26px 26px;
  }
  .hero__pumpkin {
    width: 170px;
    height: 170px;
    right: -20px;
    bottom: -24px;
    opacity: 0.55;
  }
}

/* ============================================================== visual polish */

.hero h1,
.section__title,
.success h2 {
  text-wrap: balance;
}

/* Ambient: додаткові повільні кольорові орби */
.ambient::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(36% 30% at 24% 26%, rgba(255, 117, 24, 0.17), transparent 70%),
    radial-gradient(40% 34% at 78% 18%, rgba(139, 92, 246, 0.19), transparent 72%),
    radial-gradient(38% 32% at 62% 88%, rgba(255, 159, 67, 0.11), transparent 70%);
  animation: ambient-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambient-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

/* App bar: тонка світна лінія знизу */
.appbar {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.appbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.3), rgba(139, 92, 246, 0.24), transparent);
  pointer-events: none;
}

/* Hero: легкий перелив і живший градієнт заголовка */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.05) 50%, transparent 66%);
  background-size: 260% 100%;
  animation: hero-sheen 11s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-sheen {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

.hero h1 em {
  color: var(--orange-soft);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em {
    color: transparent;
    background: linear-gradient(100deg, #ffd7a8 0%, #ff9f43 26%, #ff7518 50%, #ffd7a8 76%, #ff9f43 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 18px rgba(255, 117, 24, 0.26));
  }
}

@keyframes text-shimmer {
  to { background-position: 220% center; }
}

/* Картки-посилання */
a.card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Рядки-кнопки */
button.row {
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.row__chev {
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Чипи */
.chip {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Кнопки: м’який підйом і світний блик */
.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary::after,
.btn--violet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.32) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

/* Поля введення */
.input:focus,
.textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 117, 24, 0.1), 0 0 22px rgba(255, 117, 24, 0.08);
}

/* Нижня навігація */
.tabbar {
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.34);
}

.tab {
  transition: color 0.2s ease, background 0.25s ease, transform 0.2s ease;
}

.tab.is-active {
  background: radial-gradient(70% 100% at 50% 0%, rgba(255, 117, 24, 0.13), transparent 78%);
}

.tab.is-active .icon {
  filter: drop-shadow(0 0 8px rgba(255, 117, 24, 0.55));
}

.cartbar {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46), 0 0 28px rgba(255, 117, 24, 0.08);
}

/* ----------------------------------------------------------------- продукт */

.product {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.product > * {
  position: relative;
  z-index: 1;
}

/* Світний блик, який проходить по картці при наведенні */
.product::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -75%;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 223, 186, 0.05) 35%,
    rgba(255, 223, 186, 0.2) 48%,
    rgba(255, 255, 255, 0.1) 52%,
    transparent 72%
  );
  transform: skewX(-14deg) translateX(0);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.75s ease;
  pointer-events: none;
  z-index: 0;
}

/* Внутрішня золота рамка */
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 130, 0);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.product__orb {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.product__orb .icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

/* Іскри навколо орба */
.product__orb::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% -2%, rgba(255, 224, 176, 0.95) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 100% 42%, rgba(255, 190, 120, 0.9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 12% 70%, rgba(182, 156, 255, 0.9) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 72% 96%, rgba(255, 224, 176, 0.8) 0 1.1px, transparent 1.9px);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: -1;
}

.product__price,
.product__title {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product__add {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(14deg); }
}

/* Ефекти лише для пристроїв із курсором */
@media (hover: hover) and (pointer: fine) {
  .product:hover,
  .product:focus-within {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(255, 159, 67, 0.44);
    background:
      radial-gradient(120% 100% at 100% 0%, rgba(255, 117, 24, 0.17), transparent 58%),
      linear-gradient(165deg, #21182c, var(--surface));
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 159, 67, 0.08),
      0 0 36px rgba(255, 117, 24, 0.16);
  }

  .product:hover::before,
  .product:focus-within::before {
    opacity: 1;
    transform: skewX(-14deg) translateX(330%);
  }

  .product:hover::after,
  .product:focus-within::after {
    box-shadow: inset 0 0 0 1px rgba(255, 190, 130, 0.2);
  }

  .product:hover .product__orb,
  .product:focus-within .product__orb {
    transform: scale(1.08) rotate(-4deg);
    border-color: rgba(255, 159, 67, 0.55);
    box-shadow: 0 0 26px rgba(255, 117, 24, 0.35), inset 0 0 22px rgba(255, 117, 24, 0.2);
  }

  .product:hover .product__orb .icon,
  .product:focus-within .product__orb .icon {
    transform: rotate(12deg) scale(1.12);
    filter: drop-shadow(0 0 7px rgba(255, 190, 130, 0.8));
  }

  .product:hover .product__orb::after,
  .product:focus-within .product__orb::after {
    opacity: 1;
    transform: scale(1);
    animation: sparkle-pulse 1.6s ease-in-out infinite;
  }

  .product:hover .product__price,
  .product:focus-within .product__price {
    color: #ffd4a6;
    text-shadow: 0 0 18px rgba(255, 117, 24, 0.4);
  }

  .product:hover .product__add,
  .product:focus-within .product__add {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 24px rgba(255, 117, 24, 0.55), 0 10px 22px rgba(255, 117, 24, 0.3);
  }

  .product--stars:hover,
  .product--stars:focus-within {
    border-color: rgba(255, 159, 67, 0.55);
    box-shadow:
      0 26px 52px rgba(0, 0, 0, 0.44),
      0 0 0 1px rgba(255, 159, 67, 0.12),
      0 0 42px rgba(255, 117, 24, 0.24);
  }

  .product--premium:hover,
  .product--premium:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    background:
      radial-gradient(120% 100% at 100% 0%, rgba(139, 92, 246, 0.2), transparent 58%),
      linear-gradient(165deg, #21182e, var(--surface));
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(139, 92, 246, 0.1),
      0 0 34px rgba(139, 92, 246, 0.22);
  }

  .product--premium:hover .product__orb,
  .product--premium:focus-within .product__orb {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.4), inset 0 0 22px rgba(139, 92, 246, 0.2);
  }

  .product--premium:hover .product__add,
  .product--premium:focus-within .product__add {
    background: linear-gradient(135deg, #b69cff, var(--violet));
    color: #fff;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
  }

  a.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 159, 67, 0.3);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 117, 24, 0.08);
  }

  button.row:hover {
    background: rgba(255, 117, 24, 0.05);
    transform: translateX(2px);
  }

  button.row:hover .row__chev {
    color: var(--orange-soft);
    transform: translateX(2px);
  }

  .chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 159, 67, 0.32);
    background: rgba(255, 117, 24, 0.07);
    color: var(--text);
  }

  .chip.is-active:hover {
    color: var(--orange-soft);
    background: linear-gradient(135deg, rgba(255, 117, 24, 0.22), rgba(255, 117, 24, 0.07));
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:active {
    transform: translateY(1px) scale(0.98);
  }

  .btn--primary:hover::after,
  .btn--violet:hover::after {
    transform: translateX(130%);
  }

  .tab:hover {
    color: var(--text);
    background: rgba(255, 117, 24, 0.06);
    transform: translateY(-1px);
  }

  .amount-btn:hover,
  .paymethod:hover {
    border-color: rgba(255, 159, 67, 0.3);
    background: rgba(255, 117, 24, 0.06);
  }
}

/* На тачскріні — виразний відгук на дотик */
@media (hover: none) {
  .product--stars:active {
    transform: scale(0.985);
    border-color: rgba(255, 159, 67, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.12), 0 0 28px rgba(255, 117, 24, 0.2);
  }

  .product--stars:active .product__orb {
    animation: none;
    transform: scale(1.06);
    box-shadow: 0 0 24px rgba(255, 117, 24, 0.35);
  }

  .product--stars:active .product__orb::after {
    opacity: 1;
    transform: scale(1);
  }
}

/* Акцент під заголовками секцій */
.section__title {
  position: relative;
  padding-bottom: 6px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  box-shadow: 0 0 10px rgba(255, 117, 24, 0.5);
}

/* Легке світіння бренду та бейджів */
.brand__mark {
  animation: mark-glow 6s ease-in-out infinite;
}

@keyframes mark-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 117, 24, 0.14); }
  50% { box-shadow: 0 0 28px rgba(255, 117, 24, 0.28); }
}

.badge--hot {
  box-shadow: 0 0 14px rgba(255, 117, 24, 0.12);
}

/* Статистика в hero */
.hero__stat {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

/* Чек і повідомлення */
.receipt {
  transition: border-color 0.25s ease, background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 67, 0.24);
    background: rgba(16, 12, 24, 0.96);
  }

  button.row:hover .row__icon {
    color: var(--orange-soft);
    background: rgba(255, 117, 24, 0.1);
  }
}

/* Продуктивність прокрутки на мобільних */
@media (hover: none), (max-width: 600px) {
  .ambient::before,
  .ambient__moon,
  .ambient__fog,
  .ambient__stars,
  .hero::before,
  .brand__mark {
    animation: none !important;
  }

  .ambient__fog {
    filter: blur(24px);
    opacity: 0.16;
  }

  .appbar {
    background: linear-gradient(180deg, rgba(11, 9, 17, 0.99), rgba(11, 9, 17, 0.94));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tabbar {
    background: rgba(11, 9, 17, 0.99);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------------------------------------------------- mobile touch polish */

button,
a,
.chip,
.tab,
.product,
.amount-btn,
.paymethod {
  touch-action: manipulation;
}

.input,
.textarea {
  scroll-margin-block: 90px;
}

@media (max-width: 380px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero__lead {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .input,
  .textarea {
    font-size: 16px;
  }

  .product__add {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .btn--sm,
  .btn--xs {
    min-height: 44px;
  }

  .iconbtn {
    width: 44px;
    height: 44px;
  }

  .chip {
    min-height: 44px;
  }

  .tab {
    min-height: 48px;
    font-size: 10.5px;
  }

  .badge {
    font-size: 10.5px;
  }

  .product__meta,
  .row__sub {
    font-size: 12.5px;
  }

  .section__sub,
  .field__hint {
    font-size: 13px;
  }
}

@media (hover: none) {
  .product:active {
    transform: scale(0.985);
    border-color: rgba(255, 159, 67, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.1), 0 10px 26px rgba(0, 0, 0, 0.3);
  }

  .product__add:active {
    transform: scale(0.92);
    box-shadow: 0 0 22px rgba(255, 117, 24, 0.5);
  }

  a.card:active,
  button.row:active {
    transform: scale(0.99);
  }

  .chip:active,
  .tab:active {
    transform: scale(0.97);
  }

  .btn:active {
    transform: scale(0.97);
  }
}

/* Bottom sheet: swipe-down + зручніша зона захвату */
.sheet__panel {
  overscroll-behavior: contain;
  touch-action: pan-y;
  transition: transform 0.2s ease;
}

.sheet__panel.is-dragging {
  transition: none;
}

.sheet__handle {
  position: relative;
  width: 46px;
}

.sheet__handle::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
}

.sheet__head {
  touch-action: none;
}

@supports (height: 100dvh) {
  .sheet__panel {
    max-height: min(90dvh, 780px);
  }
}

/* --------------------------------------------------- mobile animations */

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .screen {
    animation: mobile-screen-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero__eyebrow,
  .hero h1,
  .hero__lead,
  .hero__actions,
  .hero__stats {
    animation: mobile-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero__eyebrow { animation-delay: 0.04s; }
  .hero h1 { animation-delay: 0.1s; }
  .hero__lead { animation-delay: 0.18s; }
  .hero__actions { animation-delay: 0.26s; }
  .hero__stats { animation-delay: 0.34s; }

  .screen > .section {
    animation: mobile-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .screen > .section:nth-of-type(1) { animation-delay: 0.06s; }
  .screen > .section:nth-of-type(2) { animation-delay: 0.12s; }
  .screen > .section:nth-of-type(3) { animation-delay: 0.18s; }
  .screen > .section:nth-of-type(4) { animation-delay: 0.24s; }
  .screen > .section:nth-of-type(5) { animation-delay: 0.3s; }
  .screen > .section:nth-of-type(6) { animation-delay: 0.36s; }

  .grid > .product {
    animation: mobile-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .grid > .product:nth-child(1) { animation-delay: 0.08s; }
  .grid > .product:nth-child(2) { animation-delay: 0.14s; }
  .grid > .product:nth-child(3) { animation-delay: 0.2s; }
  .grid > .product:nth-child(4) { animation-delay: 0.26s; }
  .grid > .product:nth-child(5) { animation-delay: 0.32s; }
  .grid > .product:nth-child(6) { animation-delay: 0.38s; }
  .grid > .product:nth-child(7) { animation-delay: 0.44s; }
  .grid > .product:nth-child(8) { animation-delay: 0.5s; }

  /* Легке «дихання» зірок — тільки transform, без перефарбовування. */
  .product--stars .product__orb {
    animation: orb-breathe 5.4s ease-in-out infinite;
  }

  .product--stars:nth-child(2n) .product__orb {
    animation-delay: -1.7s;
  }

  /* Одноразовий блик по картці під час появи. */
  .product--stars::before {
    animation: card-shine 1.1s 0.5s ease-out 1 both;
  }

  .grid > .product:nth-child(2)::before { animation-delay: 0.65s; }
  .grid > .product:nth-child(3)::before { animation-delay: 0.8s; }
  .grid > .product:nth-child(4)::before { animation-delay: 0.95s; }

  .timeline li {
    animation: timeline-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .timeline li:nth-child(1) { animation-delay: 0.05s; }
  .timeline li:nth-child(2) { animation-delay: 0.12s; }
  .timeline li:nth-child(3) { animation-delay: 0.19s; }
  .timeline li:nth-child(4) { animation-delay: 0.26s; }
  .timeline li:nth-child(5) { animation-delay: 0.33s; }

  .stats .stat {
    animation: mobile-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  }

  .stats .stat:nth-child(1) { animation-delay: 0.05s; }
  .stats .stat:nth-child(2) { animation-delay: 0.1s; }
  .stats .stat:nth-child(3) { animation-delay: 0.15s; }
  .stats .stat:nth-child(4) { animation-delay: 0.2s; }

  .tab.is-active .icon {
    animation: tab-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cartbar {
    animation: cartbar-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .hero__actions .btn--primary::after {
    animation: cta-shine 1.2s 0.8s ease-out 1 both;
  }

  .tab__badge {
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes cta-shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

@keyframes badge-pop {
  from { opacity: 0.4; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes mobile-screen-in {
  from { opacity: 0; transform: translateY(14px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobile-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes orb-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.025); }
}

@keyframes card-shine {
  0% { opacity: 0; transform: skewX(-14deg) translateX(-120%); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: skewX(-14deg) translateX(240%); }
}

@keyframes timeline-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tab-pop {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes cartbar-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ambient__fog,
  .ambient__moon,
  .ambient__stars {
    animation: none !important;
  }
}
