/* Login modal, account menu, cart drawer, toasts, navbar badges and the cart page.
   Behaviour: scripts/store.js */

:root {
  --avn-acc: var(--cl-accent-rgb, 163, 191, 240);
  --avn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --avn-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --avn-line: rgba(255, 255, 255, 0.08);
  --avn-card: rgba(16, 16, 20, 0.86);
  --avn-font-display: "Clash Display", var(--font-body, system-ui, sans-serif);
}

/* ================= shared bits ================= */
.avn-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--avn-line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.35s var(--avn-ease);
}
.avn-x svg { width: 16px; height: 16px; }
.avn-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

.avn-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--avn-ease), filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.35s ease, opacity 0.2s ease;
}
.avn-btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.35s var(--avn-ease); }
.avn-btn--block { width: 100%; }
.avn-btn--lg { padding: 15px 22px; font-size: 15.5px; border-radius: 15px; }
.avn-btn--primary {
  color: var(--text-on-accent, #0b0b0d);
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--avn-acc)) 80%, #fff 20%), rgb(var(--avn-acc)) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px -14px rgba(var(--avn-acc), 0.9);
}
.avn-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--avn-ease);
  pointer-events: none;
}
.avn-btn--primary:hover { color: var(--text-on-accent, #0b0b0d); transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 38px -14px rgba(var(--avn-acc), 1); }
.avn-btn--primary:hover::after { transform: translateX(120%); }
.avn-btn--primary:hover svg:not(.avn-spin) { transform: translateX(3px); }
.avn-btn--primary:active { transform: translateY(0) scale(0.985); }
.avn-btn--ghost { color: #e6e8ef; border-color: var(--avn-line); background: rgba(255, 255, 255, 0.035); }
.avn-btn--ghost:hover { color: #fff; border-color: rgba(var(--avn-acc), 0.4); background: rgba(var(--avn-acc), 0.08); }
.avn-btn:focus-visible, .avn-x:focus-visible { outline: 2px solid rgba(var(--avn-acc), 0.8); outline-offset: 2px; }
.avn-btn .avn-spin { display: none; }
.avn-btn.is-busy { pointer-events: none; }
.avn-btn.is-busy .avn-spin { display: block; animation: avn-rot 0.8s linear infinite; }
.avn-btn.is-busy svg:not(.avn-spin) { display: none; }
.avn-btn.is-busy .avn-btn__txt { opacity: 0.75; }
.avn-btn:disabled:not(.is-busy) { opacity: 0.5; cursor: not-allowed; transform: none; }
@keyframes avn-rot { to { transform: rotate(360deg); } }

.avn-err {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  opacity: 0;
  transition: max-height 0.3s var(--avn-ease), opacity 0.25s ease, margin 0.3s var(--avn-ease);
}
.avn-err.is-on { max-height: 80px; margin: -2px 0 12px; opacity: 1; }
.avn-shake { animation: avn-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes avn-shake { 15%, 55% { transform: translateX(-6px); } 35%, 75% { transform: translateX(6px); } 90% { transform: translateX(-2px); } }
.avn-tick { animation: avn-tick 0.45s var(--avn-spring); }
@keyframes avn-tick { 0% { transform: translateY(5px); opacity: 0.2; } 100% { transform: none; opacity: 1; } }

.avn-av {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-family: var(--avn-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #0b0b0d;
  background: linear-gradient(145deg, #fff, rgb(var(--avn-acc)) 70%);
  box-shadow: 0 0 0 2px rgba(var(--avn-acc), 0.25), 0 4px 12px -4px rgba(var(--avn-acc), 0.9);
}
.avn-av--md { width: 40px; height: 40px; font-size: 17px; }
.avn-av--lg { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 4px rgba(var(--avn-acc), 0.18), 0 14px 30px -10px rgba(var(--avn-acc), 0.9); }

.avn-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #a9abb6; }
.avn-sum b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ================= navbar buttons ================= */
[data-avn-login].is-authed { gap: 8px; }
[data-avn-login].is-authed > svg { display: none !important; }
.nav-item.user { position: relative; }
a[data-avn-cart] { position: relative; overflow: visible !important; }
a[data-avn-cart] .count { display: none !important; }
.avn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #0b0b0d;
  background: rgb(var(--avn-acc));
  box-shadow: 0 0 0 2px #0e0e12, 0 4px 14px -2px rgba(var(--avn-acc), 0.9);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--avn-spring), opacity 0.2s ease;
}
.avn-badge.is-on { transform: scale(1); opacity: 1; }
.avn-badge.is-bump { animation: avn-bump 0.6s var(--avn-spring); }
@keyframes avn-bump { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 100% { transform: scale(1); } }
.avn-cart-hit { animation: avn-hit 0.6s var(--avn-ease); }
@keyframes avn-hit { 0% { box-shadow: 0 0 0 0 rgba(var(--avn-acc), 0.6); } 100% { box-shadow: 0 0 0 14px rgba(var(--avn-acc), 0); } }

/* signed in = one extra nav link (Dashboard); keep the bar from crowding on mid widths */
[data-avn-dash][hidden] { display: none !important; }
/* store.js adds .avn-nav-tight only when the bar would actually overlap (the 4:3 stretch
   makes the real layout width differ from what media queries see) */
html.avn-nav-tight .luxe-nav .nav-center { gap: 0; }
html.avn-nav-tight .luxe-nav .nav-center .nav-link { padding: 8px 10px; font-size: .9rem; }
html.avn-nav-tight .luxe-nav .navbar-brand .brand-name { display: none; }
html.avn-nav-tight .luxe-nav [data-avn-login].is-authed > span:not(.avn-av) { display: none; }
html.avn-nav-tight .luxe-nav [data-avn-login].is-authed { padding-left: 8px; padding-right: 8px; }

/* ================= account menu (desktop) ================= */
.avn-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1100;
  width: 270px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--avn-card);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
          backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.3);
  transform-origin: 90% 0;
  transform: translateY(-6px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s var(--avn-ease), opacity 0.2s ease;
  text-align: left;
}
.avn-menu.is-open { transform: none; opacity: 1; }
.avn-menu__head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--avn-line); }
.avn-acc__who { display: flex; flex-direction: column; min-width: 0; }
.avn-acc__who b { overflow: hidden; font-size: 14px; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.avn-acc__who small { font-size: 12px; color: #8f919d; }
.avn-links { display: flex; flex-direction: column; gap: 2px; }
.avn-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #d9dbe3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.avn-links a svg { width: 18px; height: 18px; color: rgba(var(--avn-acc), 0.9); flex: none; }
.avn-links a span { flex: 1; }
.avn-links a em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; color: #0b0b0d; background: rgb(var(--avn-acc)); }
.avn-links a em:empty { display: none; }
.avn-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.avn-menu__out {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 0;
  border-top: 1px solid var(--avn-line);
  border-radius: 0 0 11px 11px;
  background: none;
  color: #f0a3a3;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.avn-menu__out svg { width: 18px; height: 18px; }
.avn-menu__out:hover { color: #fecaca; background: rgba(248, 113, 113, 0.08); }

/* ================= login modal ================= */
.avn-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.avn-modal[hidden] { display: none; }
.avn-modal__scrim {
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(var(--avn-acc), 0.08), transparent 70%), rgba(5, 5, 8, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.avn-modal.is-open .avn-modal__scrim { opacity: 1; }
.avn-modal__card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 440px;
  padding: 18px 30px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.94), rgba(13, 13, 17, 0.96));
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  overflow: clip;
  color: #fff;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.55s var(--avn-ease), opacity 0.35s ease, filter 0.45s ease;
}
.avn-modal.is-open .avn-modal__card { transform: none; opacity: 1; filter: none; }
/* animated border sheen */
.avn-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--avn-a, 0deg), transparent 0 70%, rgba(var(--avn-acc), 0.8) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: avn-orbit 6s linear infinite;
  pointer-events: none;
}
@property --avn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes avn-orbit { to { --avn-a: 360deg; } }
.avn-modal__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  z-index: -1;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--avn-acc), 0.35), transparent 65%);
  filter: blur(30px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: avn-breathe 6s ease-in-out infinite;
}
@keyframes avn-breathe { 50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); } }
.avn-modal__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 45% at 50% 0%, #000, transparent);
          mask-image: radial-gradient(70% 45% at 50% 0%, #000, transparent);
  pointer-events: none;
}
.avn-modal__top { display: flex; align-items: center; justify-content: space-between; margin: 0 -12px 6px 0; min-height: 36px; }
.avn-progress { display: flex; gap: 6px; }
.avn-progress i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.avn-progress i::after { content: ""; position: absolute; inset: 0; background: rgb(var(--avn-acc)); box-shadow: 0 0 10px rgba(var(--avn-acc), 0.9); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--avn-ease); }
.avn-progress[data-step="1"] i:nth-child(-n+1)::after,
.avn-progress[data-step="2"] i:nth-child(-n+2)::after,
.avn-progress[data-step="3"] i::after { transform: scaleX(1); }
.avn-progress[data-step="0"] { visibility: hidden; }

.avn-panes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); transition: height 0.45s var(--avn-ease); }
.avn-instant .avn-panes, .avn-instant .avn-pane { transition: none !important; }
.avn-pane {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(40px);
  filter: blur(4px);
  transition: transform 0.5s var(--avn-ease), opacity 0.3s ease, filter 0.4s ease, visibility 0s linear 0.5s;
}
.avn-pane.is-before { transform: translateX(-40px); }
.avn-pane.is-active { visibility: visible; opacity: 1; transform: none; filter: none; transition: transform 0.5s var(--avn-ease), opacity 0.35s ease 0.08s, filter 0.4s ease 0.05s, visibility 0s; }
.avn-pane--center { text-align: center; padding: 10px 0 6px; }

.avn-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--avn-acc), 0.22), rgba(var(--avn-acc), 0.05));
  border: 1px solid rgba(var(--avn-acc), 0.35);
  box-shadow: 0 16px 34px -14px rgba(var(--avn-acc), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.avn-mark img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(var(--avn-acc), 0.6)); }
.avn-h { margin: 0 0 8px; font-family: var(--avn-font-display); font-size: 27px; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.avn-lead { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: #a3a6b3; }
.avn-lead b { color: rgb(var(--avn-acc)); font-weight: 700; overflow-wrap: anywhere; }
.avn-form { margin: 0; }

.avn-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}
.avn-field > svg { position: absolute; left: 16px; top: 50%; z-index: 1; width: 19px; height: 19px; color: rgba(255, 255, 255, 0.4); transform: translateY(-50%); transition: color 0.2s ease; pointer-events: none; }
.avn-field input {
  width: 100%;
  height: 58px;
  padding: 20px 16px 6px 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.avn-field span {
  position: absolute;
  left: 47px;
  top: 50%;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
  transform-origin: 0 50%;
  transition: transform 0.25s var(--avn-ease), color 0.2s ease;
  pointer-events: none;
}
.avn-field input:focus + span,
.avn-field input:not(:placeholder-shown) + span { transform: translateY(-122%) scale(0.76); color: rgba(var(--avn-acc), 0.95); }
.avn-field input:focus { border-color: rgba(var(--avn-acc), 0.6); background: rgba(var(--avn-acc), 0.05); box-shadow: 0 0 0 4px rgba(var(--avn-acc), 0.13); }
.avn-field:focus-within > svg { color: rgb(var(--avn-acc)); }
.avn-field.is-invalid input { border-color: rgba(248, 113, 113, 0.7); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }
.avn-field.is-invalid > svg, .avn-field.is-invalid span { color: #fca5a5; }

.avn-perks { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--avn-line); list-style: none; }
.avn-perks li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #b9bbc6; }
.avn-perks svg { width: 30px; height: 30px; flex: none; padding: 7px; border-radius: 10px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.1); }
.avn-fine { margin: 18px 0 0; font-size: 12px; color: #7d7f8b; }
.avn-fine a { color: #b9c9ef; text-decoration: none; }
.avn-fine a:hover { color: #fff; text-decoration: underline; }

.avn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 16px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--avn-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #b7bac6;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.avn-back svg { width: 15px; height: 15px; transition: transform 0.3s var(--avn-ease); }
.avn-back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.avn-back:hover svg { transform: translateX(-3px); }

.avn-otp { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.avn-otp__cell {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 62px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--avn-font-display);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  caret-color: rgb(var(--avn-acc));
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, transform 0.35s var(--avn-spring);
}
.avn-otp__cell:focus { border-color: rgba(var(--avn-acc), 0.7); background: rgba(var(--avn-acc), 0.06); box-shadow: 0 0 0 4px rgba(var(--avn-acc), 0.14); transform: translateY(-2px); }
.avn-otp__cell.is-filled { border-color: rgba(var(--avn-acc), 0.4); background: rgba(var(--avn-acc), 0.08); animation: avn-pop 0.35s var(--avn-spring); }
@keyframes avn-pop { 0% { transform: scale(0.88); } 100% { transform: scale(1); } }
.avn-otp__dash { width: 10px; height: 2px; flex: none; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.avn-otp.is-invalid .avn-otp__cell { border-color: rgba(248, 113, 113, 0.65); }
.avn-otp.is-ok .avn-otp__cell { border-color: rgba(74, 222, 128, 0.7); background: rgba(74, 222, 128, 0.1); box-shadow: 0 0 18px -6px rgba(74, 222, 128, 0.8); transition-delay: calc(var(--i, 0) * 40ms); }

.avn-demo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(245, 180, 84, 0.35);
  background: rgba(245, 180, 84, 0.06);
  font-size: 12.5px;
  line-height: 1.5;
  color: #e9dcc6;
}
.avn-demo > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #f5c07a; }
.avn-demo b { color: #f5c07a; }
.avn-demo code { padding: 1px 6px; border-radius: 6px; font: 700 13px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 0.12em; color: #fff; background: rgba(255, 255, 255, 0.08); }
.avn-demo__fill {
  flex: none;
  align-self: center;
  padding: 7px 11px;
  border: 1px solid rgba(245, 180, 84, 0.4);
  border-radius: 10px;
  background: rgba(245, 180, 84, 0.12);
  color: #f8d39c;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.avn-demo__fill:hover { color: #fff; background: rgba(245, 180, 84, 0.22); }
.avn-flash { animation: avn-flash 0.9s ease; }
@keyframes avn-flash { 0% { box-shadow: 0 0 0 0 rgba(245, 180, 84, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(245, 180, 84, 0); } }

.avn-resend { margin: 16px 0 0; font-size: 13px; text-align: center; color: #8f919d; }
.avn-resend button { padding: 0; border: 0; background: none; color: rgb(var(--avn-acc)); font: inherit; font-weight: 700; cursor: pointer; }
.avn-resend button:hover:not(:disabled) { text-decoration: underline; }
.avn-resend button:disabled { color: #8f919d; cursor: default; }
.avn-resend span { font-variant-numeric: tabular-nums; }

.avn-success { display: grid; place-items: center; width: 92px; height: 92px; margin: 6px auto 20px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, 0.2), transparent 70%); }
.avn-success svg { width: 76px; height: 76px; fill: none; stroke: #4ade80; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.6)); }
.avn-success circle { stroke-dasharray: 145; stroke-dashoffset: 145; }
.avn-success path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.avn-pane.is-active .avn-success circle { animation: avn-draw 0.6s var(--avn-ease) 0.15s forwards; }
.avn-pane.is-active .avn-success path { animation: avn-draw 0.4s var(--avn-ease) 0.6s forwards; }
.avn-pane.is-active .avn-success { animation: avn-pop 0.6s var(--avn-spring) 0.1s both; }
@keyframes avn-draw { to { stroke-dashoffset: 0; } }

.avn-acc { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 22px; text-align: center; }
.avn-acc .avn-acc__who { align-items: center; max-width: 100%; }
.avn-acc .avn-acc__who b { font-size: 17px; }
.avn-pane[data-pane="account"] .avn-links { margin-bottom: 16px; padding: 6px; border-radius: 16px; border: 1px solid var(--avn-line); background: rgba(255, 255, 255, 0.025); }
.avn-pane[data-pane="account"] .avn-btn--ghost { color: #f0a3a3; }
.avn-pane[data-pane="account"] .avn-btn--ghost:hover { color: #fecaca; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

/* ================= cart drawer ================= */
.avn-cart { position: fixed; inset: 0; z-index: 1990; }
.avn-cart[hidden] { display: none; }
.avn-cart__scrim { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.45s ease; }
.avn-cart.is-open .avn-cart__scrim { opacity: 1; }
.avn-cart__panel {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100% - 20px));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 40% at 100% 0%, rgba(var(--avn-acc), 0.12), transparent 60%),
    linear-gradient(180deg, rgba(22, 22, 28, 0.96), rgba(12, 12, 16, 0.98));
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.9);
  color: #fff;
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.55s var(--avn-ease);
}
.avn-cart.is-open .avn-cart__panel { transform: none; }
.avn-cart__head { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px 20px; border-bottom: 1px solid var(--avn-line); }
.avn-cart__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.12); border: 1px solid rgba(var(--avn-acc), 0.25); }
.avn-cart__icon svg { width: 19px; height: 19px; }
.avn-cart__head h2 { margin: 0; font-family: var(--avn-font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.avn-pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #c9d6f5; background: rgba(var(--avn-acc), 0.12); }
.avn-cart__head .avn-x { margin-left: auto; }
.avn-cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.avn-cart.is-empty .avn-cart__body { display: grid; place-items: center; }
.avn-cart__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 18px 18px; border-top: 1px solid var(--avn-line); background: rgba(0, 0, 0, 0.2); }
.avn-cart__foot[hidden] { display: none; }
.avn-cart__foot .avn-sum { font-size: 15px; }
.avn-cart__foot .avn-sum b { font-family: var(--avn-font-display); font-size: 22px; }
.avn-cart__note { display: flex; align-items: center; gap: 7px; margin: -4px 0 2px; font-size: 12.5px; color: #8f919d; }
.avn-cart__note svg { width: 14px; height: 14px; color: #f5c07a; }
.avn-cart__foot .avn-err.is-on { margin: 0; }
.avn-cart.is-open .avn-item { animation: avn-item-in 0.6s var(--avn-ease) both; animation-delay: calc(0.12s + var(--k, 0) * 60ms); }

.avn-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; text-align: center; color: #9a9ca8; font-size: 14px; }
.avn-empty[hidden] { display: none; }
.avn-empty b { font-family: var(--avn-font-display); font-size: 20px; color: #fff; }
.avn-empty .avn-btn { margin-top: 12px; }
.avn-empty__art { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 26px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.08); border: 1px dashed rgba(var(--avn-acc), 0.35); animation: avn-float 4s ease-in-out infinite; }
.avn-empty__art svg { width: 38px; height: 38px; }
@keyframes avn-float { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* ================= cart line items (drawer + page) ================= */
.avn-list { display: flex; flex-direction: column; }
.avn-item { overflow: hidden; transition: height 0.34s var(--avn-ease), opacity 0.25s ease; }
.avn-item__in { display: flex; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--avn-line); }
.avn-item:last-child .avn-item__in { border-bottom: 0; }
.avn-item.is-new { animation: avn-item-in 0.6s var(--avn-ease) both; }
.avn-item.is-removing { opacity: 0; }
.avn-item.is-removing .avn-item__in { transform: translateX(30px); transition: transform 0.34s var(--avn-ease); }
@keyframes avn-item-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.avn-item__img {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--avn-line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
}
.avn-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--avn-ease); }
.avn-item__img svg { width: 26px; height: 26px; }
.avn-item:hover .avn-item__img img { transform: scale(1.06); }
.avn-item__main { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.avn-item__top { display: flex; align-items: flex-start; gap: 10px; }
.avn-item__txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.avn-item__name { overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.avn-item__name:hover { color: rgb(var(--avn-acc)); }
.avn-item__variant { align-self: flex-start; max-width: 100%; overflow: hidden; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: #c7cbd8; background: rgba(255, 255, 255, 0.06); text-overflow: ellipsis; white-space: nowrap; }
.avn-item__low { font-size: 12px; font-weight: 600; color: #f5c07a; }
.avn-item__warn { font-size: 12px; font-weight: 600; color: #fca5a5; }
.avn-item.is-soldout .avn-item__img { filter: grayscale(1); opacity: 0.6; }
.avn-item__rm {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.avn-item__rm svg { width: 17px; height: 17px; }
.avn-item__rm:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.1); }
.avn-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.avn-qty { display: inline-flex; align-items: center; padding: 3px; border-radius: 12px; border: 1px solid var(--avn-line); background: rgba(255, 255, 255, 0.035); }
.avn-qty[data-off] { opacity: 0.4; pointer-events: none; }
.avn-qty button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d9dbe3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--avn-spring);
}
.avn-qty button svg { width: 14px; height: 14px; }
.avn-qty button:hover:not(:disabled) { color: #0b0b0d; background: rgb(var(--avn-acc)); }
.avn-qty button:active:not(:disabled) { transform: scale(0.88); }
.avn-qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.avn-qty input { width: 36px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; outline: none; }
.avn-qty:focus-within { border-color: rgba(var(--avn-acc), 0.5); }
.avn-item__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.avn-item__price b { display: inline-block; font-size: 15.5px; font-variant-numeric: tabular-nums; color: #fff; }
.avn-item__price small { font-size: 11.5px; color: #8f919d; }
.avn-item__price small:empty { display: none; }

/* ================= toasts ================= */
.avn-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 1995; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.avn-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 36px));
  padding: 11px 12px 13px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 23, 0.92);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.3);
  color: #fff;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s var(--avn-spring), opacity 0.3s ease;
}
.avn-toast.is-in { opacity: 1; transform: none; }
.avn-toast.is-out { opacity: 0; transform: translateX(40px); transition: transform 0.35s var(--avn-ease), opacity 0.3s ease; }
.avn-toast__img { width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--avn-line); }
.avn-toast__img img { width: 100%; height: 100%; object-fit: cover; }
.avn-toast__ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.12); }
.avn-toast__ic svg { width: 20px; height: 20px; }
.avn-toast__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.avn-toast__txt b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.avn-toast__txt b i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #0b0b0d; background: #4ade80; }
.avn-toast__txt b i svg { width: 11px; height: 11px; }
.avn-toast__txt small { overflow: hidden; font-size: 12.5px; color: #a3a6b3; text-overflow: ellipsis; white-space: nowrap; }
.avn-toast__btn { flex: none; padding: 8px 12px; border: 0; border-radius: 11px; background: rgb(var(--avn-acc)); color: #0b0b0d; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.25s var(--avn-ease), filter 0.2s ease; }
.avn-toast__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.avn-toast__x { display: grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, 0.45); cursor: pointer; }
.avn-toast__x svg { width: 14px; height: 14px; }
.avn-toast__x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.avn-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(var(--avn-acc), 0.8); transform-origin: 0 50%; animation: avn-toast-bar 4.8s linear forwards; }
.avn-toast:hover .avn-toast__bar { animation-play-state: paused; }
@keyframes avn-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ================= cart page ================= */
.cpg { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(100px, 11vw, 140px) 16px 70px; color: #fff; }
.cpg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 38px); animation: avn-item-in 0.8s var(--avn-ease) both; }
.cpg-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #d9dbe3; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--avn-line); }
.cpg-kicker svg { width: 15px; height: 15px; color: rgb(var(--avn-acc)); }
.cpg-title { margin: 0 0 8px; font-family: var(--avn-font-display); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.cpg-title span { background: linear-gradient(100deg, rgb(var(--avn-acc)), #fff 50%, rgb(var(--avn-acc))); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: avn-sheen 6s ease-in-out infinite; }
@keyframes avn-sheen { 50% { background-position: 100% 0; } }
.cpg-sub { margin: 0; font-size: 15.5px; color: #a3a6b3; }
.cpg-steps { display: flex; align-items: center; gap: 0; margin: 0; padding: 6px; list-style: none; border-radius: 16px; border: 1px solid var(--avn-line); background: rgba(255, 255, 255, 0.03); }
.cpg-steps li { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; font-size: 13px; font-weight: 600; color: #8f919d; }
.cpg-steps li + li::before { content: ""; position: absolute; left: -6px; width: 12px; height: 1px; background: rgba(255, 255, 255, 0.15); }
.cpg-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 800; color: #a3a6b3; background: rgba(255, 255, 255, 0.06); }
.cpg-steps li.is-active { color: #fff; }
.cpg-steps li.is-active i { color: #0b0b0d; background: rgb(var(--avn-acc)); box-shadow: 0 0 16px -2px rgba(var(--avn-acc), 0.9); }

.cpg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cpg-layout[hidden] { display: none; }
.cpg-main { padding: 8px 20px 18px; border-radius: 24px; border: 1px solid var(--avn-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); animation: avn-item-in 0.8s var(--avn-ease) 0.08s both; }
.cpg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 12px; border-bottom: 1px solid var(--avn-line); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8f919d; }
.cpg-clear { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: #8f919d; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.cpg-clear svg { width: 15px; height: 15px; }
.cpg-clear:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.08); }
.cpg-clear.is-confirm { color: #fecaca; border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.12); }
.avn-list--big .avn-item__in { gap: 18px; padding: 18px 4px; }
.avn-list--big .avn-item__img { width: 96px; height: 96px; border-radius: 18px; }
.avn-list--big .avn-item__name { font-size: 17px; }
.avn-list--big .avn-item__price b { font-size: 18px; }
.cpg-continue { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 4px 0; font-size: 14px; font-weight: 600; color: #b7bac6; text-decoration: none; }
.cpg-continue svg { width: 16px; height: 16px; transition: transform 0.3s var(--avn-ease); }
.cpg-continue:hover { color: #fff; }
.cpg-continue:hover svg { transform: translateX(-3px); }

.cpg-summary {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(120% 50% at 100% 0%, rgba(var(--avn-acc), 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 60px -40px rgba(var(--avn-acc), 0.7);
  animation: avn-item-in 0.8s var(--avn-ease) 0.16s both;
}
.cpg-summary h2 { margin: 0 0 4px; font-family: var(--avn-font-display); font-size: 21px; font-weight: 700; }
.cpg-free { display: inline-flex; align-items: center; gap: 5px; color: #86efac !important; font-size: 14px !important; }
.cpg-free svg { width: 14px; height: 14px; }
.cpg-total { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.14); font-size: 15px; font-weight: 600; color: #d9dbe3; }
.cpg-total b { display: inline-block; font-family: var(--avn-font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.cpg-acct { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 15px; border: 1px solid var(--avn-line); background: rgba(255, 255, 255, 0.03); }
.cpg-acct__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.1); }
.cpg-acct__ic svg { width: 19px; height: 19px; }
.cpg-acct__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cpg-acct__txt small { font-size: 12px; color: #8f919d; }
.cpg-acct__txt b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cpg-acct__btn { flex: none; padding: 8px 12px; border: 1px solid rgba(var(--avn-acc), 0.4); border-radius: 11px; background: rgba(var(--avn-acc), 0.12); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease; }
.cpg-acct__btn:hover { background: rgba(var(--avn-acc), 0.22); }
.cpg-summary .avn-err.is-on { margin: 0; }
.cpg-trust { display: grid; gap: 12px; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--avn-line); list-style: none; }
.cpg-trust li { display: flex; gap: 11px; font-size: 12.5px; line-height: 1.45; color: #9a9ca8; }
.cpg-trust svg { width: 32px; height: 32px; flex: none; padding: 7px; border-radius: 10px; color: rgb(var(--avn-acc)); background: rgba(var(--avn-acc), 0.08); }
.cpg-trust b { display: block; font-size: 13.5px; color: #e6e8ef; }
.cpg-trust a { color: #b9c9ef; }
.cpg-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.cpg-pay span { padding: 5px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #b7bac6; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--avn-line); }

.cpg-empty { display: flex; flex-direction: column; align-items: center; padding: clamp(30px, 6vw, 60px) 16px; border-radius: 28px; border: 1px solid var(--avn-line); background: radial-gradient(60% 80% at 50% 0%, rgba(var(--avn-acc), 0.1), transparent 70%), rgba(255, 255, 255, 0.02); text-align: center; animation: avn-item-in 0.8s var(--avn-ease) both; }
.cpg-empty[hidden] { display: none; }
.cpg-empty__art { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 22px; color: rgb(var(--avn-acc)); }
.cpg-empty__art svg { position: relative; width: 50px; height: 50px; animation: avn-float 4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(var(--avn-acc), 0.6)); }
.cpg-empty__art span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--avn-acc), 0.3); animation: avn-ring 3s ease-out infinite; }
.cpg-empty__art span + span { animation-delay: 1.5s; }
@keyframes avn-ring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.cpg-empty h2 { margin: 0 0 8px; font-family: var(--avn-font-display); font-size: clamp(24px, 3vw, 32px); }
.cpg-empty p { max-width: 42ch; margin: 0 0 22px; color: #a3a6b3; }

.cpg-recs { margin-top: clamp(40px, 6vw, 60px); }
.cpg-recs[hidden] { display: none; }
.cpg-recs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cpg-recs__head h2 { margin: 0; font-family: var(--avn-font-display); font-size: clamp(20px, 2.4vw, 26px); }
.cpg-recs__head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgb(var(--avn-acc)); text-decoration: none; }
.cpg-recs__head a svg { width: 15px; height: 15px; transition: transform 0.3s var(--avn-ease); }
.cpg-recs__head a:hover svg { transform: translateX(3px); }
.cpg-recs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cpg-rec {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--avn-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  animation: avn-item-in 0.7s var(--avn-ease) both;
  animation-delay: calc(0.2s + var(--k, 0) * 70ms);
  transition: transform 0.45s var(--avn-ease), border-color 0.3s ease, box-shadow 0.45s ease;
}
.cpg-rec:hover { transform: translateY(-4px); border-color: rgba(var(--avn-acc), 0.3); box-shadow: 0 26px 50px -32px rgba(var(--avn-acc), 0.7); }
.cpg-rec__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cpg-rec__img { aspect-ratio: 16 / 10; overflow: hidden; }
.cpg-rec__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--avn-ease); }
.cpg-rec:hover .cpg-rec__img img { transform: scale(1.06); }
.cpg-rec__body { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 14px; }
.cpg-rec__body > b { font-size: 15px; }
.cpg-rec__meta { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12px; color: #8f919d; }
.cpg-rec__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cpg-rec__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: #a3a6b3; }
.cpg-rec__foot b { color: #fff; }
.cpg-rec__add { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid rgba(var(--avn-acc), 0.35); border-radius: 10px; background: rgba(var(--avn-acc), 0.1); color: #fff; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--avn-spring); }
.cpg-rec__add svg { width: 13px; height: 13px; }
.cpg-rec__add:hover { color: #0b0b0d; background: rgb(var(--avn-acc)); }
.cpg-rec__add:active { transform: scale(0.94); }

/* ================= responsive ================= */
@media (max-width: 991.98px) {
  .cpg-layout { grid-template-columns: minmax(0, 1fr); }
  .cpg-summary { position: static; }
  .cpg-recs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .avn-modal { padding: 10px; align-items: end; }
  .avn-modal__card { padding: 14px 20px 24px; border-radius: 24px; }
  .avn-h { font-size: 24px; }
  .avn-otp { gap: 6px; }
  .avn-otp__cell { height: 54px; font-size: 22px; border-radius: 12px; }
  .avn-otp__dash { width: 6px; }
  .avn-demo { display: grid; grid-template-columns: auto 1fr; }
  .avn-demo__fill { grid-column: 2; justify-self: start; }
  .avn-cart__panel { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 88%; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .avn-toasts { right: 10px; left: 10px; bottom: 10px; align-items: stretch; }
  .avn-toast { width: auto; gap: 10px; padding: 9px 9px 11px; }
  .avn-toast__img { width: 40px; height: 40px; border-radius: 10px; }
  .avn-toast__x { display: none; }
  .avn-toast__txt b { font-size: 13px; white-space: nowrap; }
  .avn-toast__btn { padding: 7px 10px; font-size: 12px; }
  .avn-cart__head { gap: 9px; padding: 14px 14px 12px 16px; }
  .avn-cart__icon { display: none; }
  .avn-cart__head h2 { font-size: 19px; white-space: nowrap; }
  .avn-pill { white-space: nowrap; }
  .avn-cart__body { padding: 8px 12px; }
  .avn-item__in { gap: 11px; padding: 11px 2px; }
  .avn-item__img { width: 56px; height: 56px; border-radius: 12px; }
  .avn-item__row { gap: 6px; }
  .avn-qty button { width: 26px; height: 26px; }
  .avn-qty input { width: 26px; font-size: 13.5px; }
  .avn-item__price b { font-size: 14px; }
  .avn-item__rm { width: 28px; height: 28px; margin: -2px -2px 0 0; }
  .avn-cart__foot { padding: 14px 14px 16px; }
  .avn-menu { width: 250px; }
  .cpg-head { align-items: flex-start; }
  .cpg-steps li { padding: 6px 6px 6px 4px; font-size: 12px; white-space: nowrap; }
  .cpg-steps li:not(.is-active) span { display: none; }
  .cpg-steps { justify-content: flex-start; gap: 14px; width: auto; }
  .cpg-steps li + li::before { left: -11px; }
  .cpg-main { padding: 4px 12px 14px; }
  .avn-list--big .avn-item__in { gap: 12px; padding: 14px 0; }
  .avn-list--big .avn-item__img { width: 60px; height: 60px; border-radius: 13px; }
  .avn-list--big .avn-item__name { font-size: 15.5px; }
  .avn-list--big .avn-item__price b { font-size: 15px; }
  .avn-item__row { flex-wrap: wrap; }
  .avn-item__price { margin-left: auto; }
  .cpg-recs__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cpg-acct__ic { display: none; }
  .cpg-acct__txt b { white-space: normal; }
  .cpg-recs__head a { white-space: nowrap; }
  .cpg-summary { padding: 18px; }
  .cpg-total b { font-size: 28px; }
  .cpg-rec__foot { flex-direction: column; align-items: flex-start; }
}
