/* AI Tools Vault 1.3 shop layer: cart + Saved drawers, cart checkout, pages (p/<slug>), contact. Pairs with vault-shop.js.
   Colours come from the store theme variables on #aitv-root[data-theme] (--bg, --surface, --text, --muted, --border, --accent) with safe fallbacks. */
#aitv-root {
  /* vault.js 1.2/1.3 also names some of these --ink / --line / --soft / --accent-soft: chain them so every theme maps. */
  --avs-bg: var(--bg, #f5f7fb);
  --avs-surface: var(--surface, #ffffff);
  --avs-text: var(--text, var(--ink, #0f172a));
  --avs-muted: var(--muted, #64748b);
  --avs-border: var(--border, var(--line, #e3e8f0));
  --avs-accent: var(--accent, #ff5a1f);
  --avs-soft: #f1f4f9;
  --avs-soft: color-mix(in srgb, var(--avs-text) 5%, var(--avs-surface));
  --avs-acc-soft: #fff1ea;
  --avs-acc-soft: color-mix(in srgb, var(--avs-accent) 12%, var(--avs-surface));
  --avs-ok: #10b981;
  --avs-bad: #e11d48;
  --avs-radius: 16px;
  --avs-shadow: 0 24px 60px -18px rgba(15, 23, 42, .35), 0 2px 8px rgba(15, 23, 42, .08);
  --avs-spring: cubic-bezier(.22, 1.25, .36, 1);
}
html.avs-locked { overflow: hidden; }
#aitv-root .avs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header hooks (A renders the buttons; we add the count bubble + bounce) ---------- */
#aitv-root [data-slot="cart-count"], #aitv-root [data-slot="saved-count"] {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--avs-accent); color: #fff;
  font: 700 11px/18px Poppins, system-ui, sans-serif; text-align: center; display: inline-block; box-sizing: border-box;
}
#aitv-root [data-slot][hidden] { display: none !important; }
#aitv-root .avs-bump { animation: avs-bump .6s var(--avs-spring); }
@keyframes avs-bump { 0% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } 100% { transform: none; } }
#aitv-root [data-act="cart-add"][data-incart="1"] { position: relative; }
#aitv-root [data-act="cart-add"][data-incart="1"]::after {
  content: "\2713"; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--avs-ok); color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--avs-surface);
}

/* ---------- buttons, inputs ---------- */
#aitv-root .avs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font: 600 14px/1 Poppins, system-ui, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--avs-spring), background-color .18s, box-shadow .18s, border-color .18s, color .18s;
}
#aitv-root .avs-btn:hover { transform: translateY(-1px); }
#aitv-root .avs-btn:active { transform: translateY(1px) scale(.98); }
#aitv-root .avs-btn:focus-visible, #aitv-root .avs-link:focus-visible, #aitv-root .avs-iname:focus-visible, #aitv-root .avs-tab:focus-visible,
#aitv-root .avs-chip:focus-visible, #aitv-root .avs-x:focus-visible, #aitv-root .avs-prose a:focus-visible, #aitv-root .avs-pill:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--avs-accent) 55%, transparent); outline-offset: 2px;
}
#aitv-root .avs-primary { background: var(--avs-accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--avs-accent) 70%, transparent); }
#aitv-root .avs-primary:hover { box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--avs-accent) 80%, transparent); }
#aitv-root .avs-dark { background: var(--avs-text); color: var(--avs-surface); }
#aitv-root .avs-ghost { background: var(--avs-surface); color: var(--avs-text); border-color: var(--avs-border); }
#aitv-root .avs-ghost:hover { border-color: var(--avs-text); }
#aitv-root .avs-ghost.is-in { color: var(--avs-ok); border-color: color-mix(in srgb, var(--avs-ok) 45%, transparent); }
#aitv-root .avs-block { display: flex; width: 100%; }
#aitv-root .avs-big { min-height: 50px; font-size: 15px; border-radius: 14px; }
#aitv-root .avs-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
#aitv-root .avs-btn.is-busy { opacity: .6; pointer-events: none; }
#aitv-root .avs-link {
  background: none; border: 0; padding: 2px 0; color: var(--avs-muted); font: 500 12.5px/1.3 Poppins, system-ui, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; border-radius: 6px;
}
#aitv-root .avs-link:hover { color: var(--avs-text); }
#aitv-root .avs-link.is-danger:hover { color: var(--avs-bad); }
#aitv-root .avs-input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--avs-border);
  background: var(--avs-surface); color: var(--avs-text); font: 500 14px/1.4 Poppins, system-ui, sans-serif; transition: border-color .15s, box-shadow .15s;
}
#aitv-root .avs-input:focus { outline: 0; border-color: var(--avs-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--avs-accent) 18%, transparent); }
#aitv-root .avs-input.is-bad { border-color: var(--avs-bad); animation: avs-shake .4s; }
@keyframes avs-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#aitv-root .avs-msg {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; font: 500 13px/1.5 Poppins, system-ui, sans-serif;
  background: var(--avs-soft); color: var(--avs-text); border: 1px solid var(--avs-border); animation: avs-rise .35s var(--avs-spring);
}
#aitv-root .avs-msg > i { margin-top: 3px; }
#aitv-root .avs-msg > span { flex: 1; }
#aitv-root .avs-msg.is-err { background: color-mix(in srgb, var(--avs-bad) 9%, var(--avs-surface)); border-color: color-mix(in srgb, var(--avs-bad) 30%, transparent); }
#aitv-root .avs-msg.is-err > i { color: var(--avs-bad); }
#aitv-root .avs-msg.is-warn { background: color-mix(in srgb, #f59e0b 12%, var(--avs-surface)); border-color: color-mix(in srgb, #f59e0b 35%, transparent); }
#aitv-root .avs-msg.is-warn > i { color: #d97706; }
#aitv-root .avs-msg-x { background: none; border: 0; color: var(--avs-muted); cursor: pointer; padding: 2px 4px; }
#aitv-root .avs-fine { margin: 8px 0 0; color: var(--avs-muted); font: 400 11px/1.45 Poppins, system-ui, sans-serif; text-align: center; }
#aitv-root .avs-fine i { margin-right: 4px; }
@keyframes avs-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- drawer layer ---------- */
#aitv-root .avs-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
#aitv-root .avs-scrim {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .42); opacity: 0; transition: opacity .3s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#aitv-root .avs-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--avs-surface); color: var(--avs-text); box-shadow: var(--avs-shadow); border-radius: 22px 0 0 22px; overflow: hidden;
  transform: translateX(104%); transition: transform .5s var(--avs-spring); font-family: Poppins, system-ui, sans-serif; outline: 0;
}
#aitv-root .avs-layer.open { pointer-events: auto; }
#aitv-root .avs-layer.open .avs-scrim { opacity: 1; }
#aitv-root .avs-layer.open .avs-drawer { transform: none; }
#aitv-root .avs-dh { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--avs-border); }
#aitv-root .avs-dh-ic {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--avs-acc-soft); color: var(--avs-accent); font-size: 16px; flex: none;
}
#aitv-root .avs-dh h2 { flex: 1; margin: 0; font: 700 19px/1.2 Poppins, system-ui, sans-serif; color: var(--avs-text); letter-spacing: -.01em; }
#aitv-root .avs-dh-n { display: inline-block; min-width: 24px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: var(--avs-soft); color: var(--avs-muted); font-size: 13px; line-height: 24px; text-align: center; vertical-align: 2px; }
#aitv-root .avs-dh-n:empty { display: none; }
#aitv-root .avs-x {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--avs-border); background: var(--avs-surface); color: var(--avs-text);
  cursor: pointer; font-size: 16px; transition: transform .25s var(--avs-spring), background-color .2s; flex: none;
}
#aitv-root .avs-x:hover { transform: rotate(90deg); background: var(--avs-soft); }
#aitv-root .avs-db {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 26px 22px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
}
#aitv-root .avs-db.is-empty { display: flex; flex-direction: column; justify-content: center; }
#aitv-root .avs-df { border-top: 1px solid var(--avs-border); padding: 14px 18px 18px 22px; background: var(--avs-surface); box-shadow: 0 -12px 24px -20px rgba(15, 23, 42, .25); }
#aitv-root .avs-df[hidden] { display: none; }

/* items */
#aitv-root .avs-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#aitv-root .avs-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px;
  border: 1px solid var(--avs-border); background: var(--avs-surface); animation: avs-rise .35s var(--avs-spring) both;
  transition: opacity .22s, transform .22s;
}
#aitv-root .avs-item:nth-child(2) { animation-delay: .03s; } #aitv-root .avs-item:nth-child(3) { animation-delay: .06s; } #aitv-root .avs-item:nth-child(4) { animation-delay: .09s; }
#aitv-root .avs-item.is-out { opacity: 0; transform: translateX(40px) scale(.96); }
#aitv-root .avs-thumb {
  position: relative; width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: var(--avs-soft); display: grid; place-items: center; flex: none;
}
#aitv-root .avs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#aitv-root .avs-emo { font-size: 28px; }
#aitv-root .avs-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 23, 42, .78); color: #fff; font: 700 9px/1.6 Poppins, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
#aitv-root .avs-imain { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#aitv-root .avs-iname {
  background: none; border: 0; padding: 0; margin: 0; text-align: left; color: var(--avs-text); font: 600 14.5px/1.3 Poppins, system-ui, sans-serif; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; border-radius: 4px;
}
#aitv-root button.avs-iname:hover { color: var(--avs-accent); }
#aitv-root .avs-isub { color: var(--avs-muted); font: 400 12px/1.4 Poppins, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aitv-root .avs-isub em { font-style: normal; color: var(--avs-accent); font-weight: 600; }
#aitv-root .avs-iacts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
#aitv-root .avs-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; align-self: start; padding-top: 2px; }
#aitv-root .avs-isub .avs-price { flex-direction: row; gap: 6px; align-items: baseline; }
#aitv-root .avs-price b { font: 700 15px/1.2 Poppins, system-ui, sans-serif; color: var(--avs-text); }
#aitv-root .avs-price b.is-sale { color: var(--avs-accent); }
#aitv-root .avs-price s { font: 500 12px/1.2 Poppins, system-ui, sans-serif; color: var(--avs-muted); }
#aitv-root .avs-iend { align-self: center; }
#aitv-root .avs-own { color: var(--avs-ok); font-weight: 600; }
#aitv-root .avs-ok { color: var(--avs-ok); font-size: 20px; }

/* empty states */
#aitv-root .avs-empty { list-style: none; text-align: center; padding: 28px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: avs-rise .45s var(--avs-spring); }
#aitv-root .avs-empty h3, #aitv-root .avs-404 h1 { margin: 6px 0 0; font: 700 18px/1.3 Poppins, system-ui, sans-serif; color: var(--avs-text); }
#aitv-root .avs-empty p, #aitv-root .avs-404 p { margin: 0 0 8px; max-width: 300px; color: var(--avs-muted); font: 400 13.5px/1.6 Poppins, system-ui, sans-serif; }
#aitv-root .avs-empty-art {
  width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; font-size: 32px; color: var(--avs-accent);
  background: radial-gradient(circle at 30% 25%, var(--avs-surface), var(--avs-acc-soft)); box-shadow: inset 0 0 0 1px var(--avs-border);
  animation: avs-float 4s ease-in-out infinite;
}
@keyframes avs-float { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* upsell */
#aitv-root .avs-upsell {
  width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px dashed color-mix(in srgb, var(--avs-accent) 55%, transparent); background: var(--avs-acc-soft); color: var(--avs-text);
  font-family: Poppins, system-ui, sans-serif; transition: transform .2s var(--avs-spring);
}
#aitv-root .avs-upsell:hover { transform: translateY(-2px); }
#aitv-root .avs-upsell span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
#aitv-root .avs-upsell b { font-size: 14px; }
#aitv-root .avs-upsell small { color: var(--avs-muted); font-size: 12px; line-height: 1.4; }
#aitv-root .avs-up-ic { font-size: 24px; }
#aitv-root .avs-upsell > i { color: var(--avs-accent); }

/* coupon + summary */
#aitv-root .avs-codelink { color: var(--avs-text); font-weight: 600; font-size: 13px; }
#aitv-root .avs-codelink i { color: var(--avs-accent); }
#aitv-root .avs-codeform { display: flex; gap: 8px; animation: avs-rise .3s var(--avs-spring); }
#aitv-root .avs-codeform .avs-input { min-height: 42px; text-transform: uppercase; letter-spacing: .06em; }
#aitv-root .avs-codeform + .avs-msg, #aitv-root .avs-codelink + .avs-msg { margin: 8px 0 0; }
#aitv-root .avs-codeok {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font: 500 13px/1.3 Poppins, system-ui, sans-serif;
  background: color-mix(in srgb, var(--avs-ok) 12%, var(--avs-surface)); color: var(--avs-text); animation: avs-pop .45s var(--avs-spring);
}
#aitv-root .avs-codeok i { color: var(--avs-ok); }
#aitv-root .avs-codeok span { flex: 1; }
#aitv-root .avs-codeok em { font-style: normal; color: var(--avs-ok); font-weight: 700; margin-left: 4px; }
@keyframes avs-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
#aitv-root .avs-sum { margin: 12px 0 12px; display: grid; gap: 6px; }
#aitv-root .avs-srow { display: flex; justify-content: space-between; gap: 10px; color: var(--avs-muted); font: 500 13.5px/1.4 Poppins, system-ui, sans-serif; }
#aitv-root .avs-srow.is-save { color: var(--avs-ok); }
#aitv-root .avs-srow.is-save i { margin-right: 4px; }
#aitv-root .avs-srow.is-total { color: var(--avs-text); padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--avs-border); align-items: baseline; font-weight: 600; font-size: 15px; }
#aitv-root .avs-srow.is-total b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: inline-block; }

/* consent + PayPal */
#aitv-root .avs-consent {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--avs-border); background: var(--avs-soft);
  cursor: pointer; font: 500 12.5px/1.5 Poppins, system-ui, sans-serif; color: var(--avs-text); margin-bottom: 10px; transition: border-color .2s, background-color .2s;
}
#aitv-root .avs-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#aitv-root .avs-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--avs-muted); display: grid; place-items: center; color: transparent;
  background: var(--avs-surface); font-size: 12px; transition: all .2s var(--avs-spring);
}
#aitv-root .avs-consent input:checked + .avs-box { background: var(--avs-ok); border-color: var(--avs-ok); color: #fff; transform: scale(1.08); }
#aitv-root .avs-consent input:focus-visible + .avs-box { outline: 3px solid color-mix(in srgb, var(--avs-accent) 50%, transparent); outline-offset: 2px; }
#aitv-root .avs-consent:has(input:checked) { border-color: color-mix(in srgb, var(--avs-ok) 45%, transparent); background: color-mix(in srgb, var(--avs-ok) 7%, var(--avs-surface)); }
#aitv-root .avs-consent a { color: var(--avs-accent); font-weight: 600; }
#aitv-root .avs-consent.is-bad { border-color: var(--avs-bad); animation: avs-shake .45s; }
#aitv-root .avs-pp { min-height: 52px; position: relative; border-radius: 12px; transition: opacity .25s, filter .25s; }
#aitv-root .avs-pp.is-locked { cursor: not-allowed; }
#aitv-root .avs-pp-wait, #aitv-root .avs-pp-load {
  min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px dashed var(--avs-border);
  color: var(--avs-muted); font: 500 13px/1.3 Poppins, system-ui, sans-serif; text-align: center; padding: 6px 10px;
}
#aitv-root .avs-pp.is-locked > :not(.avs-pp-wait) { opacity: .35; filter: grayscale(1); pointer-events: none; }
#aitv-root .avs-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--avs-border); border-top-color: var(--avs-accent); animation: avs-spin .8s linear infinite; }
@keyframes avs-spin { to { transform: rotate(360deg); } }

/* success */
#aitv-root .avs-done { text-align: center; padding: 18px 4px 6px; animation: avs-rise .4s var(--avs-spring); }
#aitv-root .avs-done h3 { margin: 14px 0 4px; font: 800 22px/1.2 Poppins, system-ui, sans-serif; color: var(--avs-text); letter-spacing: -.01em; }
#aitv-root .avs-done > p { margin: 0 auto 16px; max-width: 320px; color: var(--avs-muted); font: 400 13.5px/1.6 Poppins, system-ui, sans-serif; }
#aitv-root .avs-done-mark { position: relative; width: 88px; height: 88px; margin: 6px auto 0; }
#aitv-root .avs-done-mark svg { width: 88px; height: 88px; display: block; }
#aitv-root .avs-done-mark circle { fill: color-mix(in srgb, var(--avs-ok) 14%, var(--avs-surface)); stroke: var(--avs-ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: avs-draw .7s ease-out forwards; }
#aitv-root .avs-done-mark path { fill: none; stroke: var(--avs-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: avs-draw .45s .55s ease-out forwards; }
@keyframes avs-draw { to { stroke-dashoffset: 0; } }
#aitv-root .avs-bit {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: avs-burst 1s .45s cubic-bezier(.15, .8, .3, 1) forwards;
}
@keyframes avs-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1) rotate(180deg); }
}
#aitv-root .avs-done-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
#aitv-root .avs-done-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--avs-border); }
#aitv-root .avs-done-list .avs-thumb { width: 44px; height: 44px; border-radius: 9px; }
#aitv-root .avs-done-list .avs-tag { display: none; }
#aitv-root .avs-done-list li > span:nth-child(2) { flex: 1; min-width: 0; font: 600 13.5px/1.3 Poppins, system-ui, sans-serif; display: flex; flex-direction: column; }
#aitv-root .avs-done-list small { color: var(--avs-muted); font-weight: 400; font-size: 12px; }
#aitv-root .avs-done-acts { display: grid; gap: 8px; }

/* Saved tabs */
#aitv-root .avs-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 14px 18px 0 22px; padding: 4px; border-radius: 14px; background: var(--avs-soft); }
#aitv-root .avs-tab {
  position: relative; z-index: 1; border: 0; background: none; min-height: 40px; border-radius: 10px; cursor: pointer; color: var(--avs-muted);
  font: 600 13.5px/1 Poppins, system-ui, sans-serif; display: flex; align-items: center; justify-content: center; gap: 7px; transition: color .2s;
}
#aitv-root .avs-tab[aria-selected="true"] { color: var(--avs-text); }
#aitv-root .avs-tn { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--avs-acc-soft); color: var(--avs-accent); font-size: 11px; line-height: 20px; }
#aitv-root .avs-tn:empty { display: none; }
#aitv-root .avs-tabbar {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--avs-surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1); transition: transform .45s var(--avs-spring);
}
#aitv-root .avs-drawer[data-tab="favorites"] .avs-tabbar { transform: translateX(100%); }
#aitv-root .avs-drawer.is-saved .avs-dh-ic { color: #e11d48; background: color-mix(in srgb, #e11d48 12%, var(--avs-surface)); }

/* ---------- pages ---------- */
#aitv-root .avs-page { max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; box-sizing: border-box; color: var(--avs-text); font-family: Poppins, system-ui, sans-serif; }
#aitv-root .avs-page.avs-in .avs-phead, #aitv-root .avs-page.avs-in .avs-pgrid, #aitv-root .avs-page.avs-in .avs-pmore { animation: avs-rise .5s var(--avs-spring) both; }
#aitv-root .avs-page.avs-in .avs-pgrid { animation-delay: .06s; }
#aitv-root .avs-page.avs-in .avs-pmore { animation-delay: .12s; }
#aitv-root .avs-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--avs-muted); margin: 0 auto 18px; max-width: 720px; }
#aitv-root .has-toc .avs-crumbs, #aitv-root .has-toc .avs-phead { max-width: none; }
#aitv-root .avs-crumbs a { color: var(--avs-muted); text-decoration: none; font-weight: 500; }
#aitv-root .avs-crumbs a:hover { color: var(--avs-accent); }
#aitv-root .avs-crumbs i { font-size: 9px; opacity: .6; }
#aitv-root .avs-phead { display: flex; align-items: flex-start; gap: 18px; max-width: 720px; margin: 0 auto 26px; padding-bottom: 22px; border-bottom: 1px solid var(--avs-border); }
#aitv-root .avs-picon {
  flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 22px; color: var(--avs-accent);
  background: linear-gradient(140deg, var(--avs-acc-soft), var(--avs-surface)); box-shadow: inset 0 0 0 1px var(--avs-border);
}
#aitv-root .avs-kicker { margin: 0 0 4px; font: 700 12px/1 Poppins, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--avs-accent); }
#aitv-root .avs-phead h1 { margin: 0; font: 800 clamp(28px, 4.2vw, 40px)/1.12 Poppins, system-ui, sans-serif; letter-spacing: -.025em; color: var(--avs-text); }
#aitv-root .avs-updated { margin: 10px 0 0; color: var(--avs-muted); font-size: 13px; }
#aitv-root .avs-updated i { margin-right: 5px; }
#aitv-root .avs-tplnote {
  max-width: 720px; margin: -8px auto 22px; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, #f59e0b 14%, var(--avs-surface)); color: var(--avs-text); border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
}
#aitv-root .avs-tplnote i { color: #d97706; margin-right: 6px; }
#aitv-root .avs-pgrid { display: block; }
#aitv-root .has-toc .avs-pgrid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 48px; justify-content: center; align-items: start; }
#aitv-root .has-toc .avs-tplnote { max-width: none; }
#aitv-root .avs-toc { position: sticky; top: 96px; font-size: 13.5px; }
#aitv-root .avs-toc summary {
  list-style: none; cursor: pointer; font: 700 12px/1 Poppins, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--avs-muted);
  padding: 4px 0 12px; display: flex; justify-content: space-between; align-items: center;
}
#aitv-root .avs-toc summary::-webkit-details-marker { display: none; }
#aitv-root .avs-toc summary i { display: none; transition: transform .25s; }
#aitv-root .avs-toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; border-left: 2px solid var(--avs-border); counter-reset: toc; }
#aitv-root .avs-toc li { counter-increment: toc; }
#aitv-root .avs-toc a {
  display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--avs-muted); text-decoration: none; line-height: 1.4;
  transition: color .15s, border-color .15s, padding .2s;
}
#aitv-root .avs-toc a::before { content: counter(toc) ". "; opacity: .55; }
#aitv-root .avs-toc a:hover { color: var(--avs-text); border-left-color: var(--avs-accent); padding-left: 18px; }
#aitv-root .avs-prose { max-width: 720px; margin: 0 auto; font: 400 16.5px/1.78 Poppins, system-ui, sans-serif; color: var(--avs-text); overflow-wrap: anywhere; }
#aitv-root .avs-prose > :first-child { margin-top: 0; }
#aitv-root .avs-prose h2 { margin: 2.1em 0 .6em; font: 700 24px/1.3 Poppins, system-ui, sans-serif; letter-spacing: -.015em; color: var(--avs-text); scroll-margin-top: 100px; }
#aitv-root .avs-prose h3 { margin: 1.7em 0 .45em; font: 700 18.5px/1.35 Poppins, system-ui, sans-serif; color: var(--avs-text); scroll-margin-top: 100px; }
#aitv-root .avs-prose p { margin: 0 0 1.1em; color: color-mix(in srgb, var(--avs-text) 86%, var(--avs-muted)); }
#aitv-root .avs-prose ul, #aitv-root .avs-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
#aitv-root .avs-prose li { margin: .35em 0; padding-left: .2em; }
#aitv-root .avs-prose ul li::marker { color: var(--avs-accent); }
#aitv-root .avs-prose ol li::marker { color: var(--avs-accent); font-weight: 700; }
#aitv-root .avs-prose strong { font-weight: 700; color: var(--avs-text); }
#aitv-root .avs-prose a { color: var(--avs-accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--avs-accent) 40%, transparent); border-radius: 3px; }
#aitv-root .avs-prose a:hover { text-decoration-color: var(--avs-accent); }
#aitv-root .avs-ext { font-size: .62em; margin-left: 4px; vertical-align: .25em; opacity: .7; }
#aitv-root .avs-pmore { max-width: 720px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid var(--avs-border); }
#aitv-root .has-toc .avs-pmore { max-width: 998px; }
#aitv-root .avs-pmore h2 { margin: 0 0 14px; font: 700 13px/1 Poppins, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--avs-muted); }
#aitv-root .avs-pmore div { display: flex; flex-wrap: wrap; gap: 8px; }
#aitv-root .avs-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--avs-border); background: var(--avs-surface);
  color: var(--avs-text); text-decoration: none; font: 500 13.5px/1 Poppins, system-ui, sans-serif; transition: transform .2s var(--avs-spring), border-color .2s, color .2s;
}
#aitv-root .avs-pill i { color: var(--avs-accent); font-size: 12px; }
#aitv-root .avs-pill:hover { transform: translateY(-2px); border-color: var(--avs-accent); }
#aitv-root .avs-404 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 20px; }
/* skeleton */
#aitv-root .avs-page.is-loading { max-width: 760px; }
#aitv-root .avs-sk { height: 14px; border-radius: 8px; margin: 14px 0; background: linear-gradient(90deg, var(--avs-soft), var(--avs-border), var(--avs-soft)); background-size: 200% 100%; animation: avs-shim 1.3s linear infinite; }
#aitv-root .avs-sk-k { width: 90px; height: 12px; }
#aitv-root .avs-sk-h { width: 60%; height: 36px; margin-bottom: 30px; }
#aitv-root .avs-sk-s { width: 70%; }
@keyframes avs-shim { to { background-position: -200% 0; } }

/* ---------- contact ---------- */
#aitv-root .avs-contact { margin-top: 28px; display: grid; gap: 18px; }
#aitv-root .avs-ccard {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--avs-border);
  background: linear-gradient(135deg, var(--avs-acc-soft), var(--avs-surface) 70%);
}
#aitv-root .avs-cc-ic { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--avs-accent); color: #fff; font-size: 20px; box-shadow: 0 10px 22px -10px var(--avs-accent); }
#aitv-root .avs-ccard > div { flex: 1; min-width: 0; line-height: 1.4; }
#aitv-root .avs-ccard small { display: block; color: var(--avs-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#aitv-root .avs-prose .avs-cc-mail { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--avs-text); word-break: break-all; }
#aitv-root .avs-ccard p { margin: 4px 0 0; font-size: 13px; color: var(--avs-muted); }
#aitv-root .avs-ccard p i { margin-right: 4px; }
#aitv-root .avs-builder { padding: 22px; border-radius: 18px; border: 1px solid var(--avs-border); background: var(--avs-surface); box-shadow: 0 18px 40px -30px rgba(15, 23, 42, .35); }
#aitv-root .avs-prose .avs-builder h2 { margin: 0 0 4px; font-size: 21px; }
#aitv-root .avs-prose .avs-bintro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--avs-muted); }
#aitv-root .avs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#aitv-root .avs-chip {
  border: 1px solid var(--avs-border); background: var(--avs-soft); color: var(--avs-text); border-radius: 999px; padding: 8px 13px; cursor: pointer;
  font: 500 13px/1.3 Poppins, system-ui, sans-serif; text-align: left; transition: transform .2s var(--avs-spring), background-color .15s, border-color .15s, color .15s;
}
#aitv-root .avs-chip:hover { transform: translateY(-1px); border-color: var(--avs-accent); }
#aitv-root .avs-chip[aria-pressed="true"] { background: var(--avs-accent); border-color: var(--avs-accent); color: #fff; }
#aitv-root .avs-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#aitv-root .avs-field { display: block; margin-bottom: 12px; }
#aitv-root .avs-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--avs-text); line-height: 1.3; }
#aitv-root textarea.avs-input { resize: vertical; min-height: 104px; line-height: 1.55; }
#aitv-root select.avs-input { appearance: auto; }
#aitv-root .avs-cprev { padding: 14px; border-radius: 14px; background: var(--avs-soft); border: 1px dashed var(--avs-border); margin-bottom: 14px; }
#aitv-root .avs-cprev small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--avs-muted); }
#aitv-root .avs-csubj { margin: 6px 0 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
#aitv-root .avs-cprev pre { margin: 0 0 12px; max-height: 190px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 400 13px/1.6 Poppins, system-ui, sans-serif; color: var(--avs-text); }
#aitv-root .avs-cok { margin: 8px 0 0; min-height: 0; font-size: 13px; font-weight: 500; color: var(--avs-ok); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; line-height: 1.4; }
#aitv-root .avs-cok.show { opacity: 1; transform: none; }
#aitv-root .avs-cok.is-err { color: var(--avs-bad); }
#aitv-root .avs-send-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; color: var(--avs-muted); }
#aitv-root .avs-send-h small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#aitv-root .avs-send-h b { color: var(--avs-text); }
#aitv-root .avs-sendrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#aitv-root .avs-prose .avs-mail { text-decoration: none; font-weight: 600; color: var(--avs-text); padding: 0 10px; }
#aitv-root .avs-prose .avs-mail.avs-primary { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #aitv-root .has-toc .avs-pgrid { display: block; }
  #aitv-root .avs-toc { position: static; max-width: 720px; margin: 0 auto 26px; padding: 12px 16px; border: 1px solid var(--avs-border); border-radius: 14px; background: var(--avs-soft); }
  #aitv-root .avs-toc summary { padding: 4px 0; }
  #aitv-root .avs-toc details[open] summary { padding-bottom: 10px; }
  #aitv-root .avs-toc summary i { display: inline-block; }
  #aitv-root .avs-toc details[open] summary i { transform: rotate(180deg); }
  #aitv-root .has-toc .avs-crumbs, #aitv-root .has-toc .avs-phead, #aitv-root .has-toc .avs-pmore, #aitv-root .has-toc .avs-tplnote { max-width: 720px; }
  #aitv-root .avs-sendrow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  #aitv-root .avs-drawer { width: 100vw; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  /* Phones: one scroll for items + checkout so the list is never squeezed by the footer. */
  #aitv-root .avs-drawer.is-cart .avs-db { flex: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  #aitv-root .avs-drawer.is-cart .avs-db.is-empty { flex: 1; }
  #aitv-root .avs-drawer.is-cart .avs-df { margin-top: auto; box-shadow: none; }
  #aitv-root .avs-dh { position: sticky; top: 0; z-index: 2; background: var(--avs-surface); }
  #aitv-root .avs-dh { padding: 14px 14px 12px 16px; }
  #aitv-root .avs-db { padding: 14px 14px 16px 16px; }
  #aitv-root .avs-df { padding: 12px 14px 14px 16px; }
  #aitv-root .avs-tabs { margin: 12px 14px 0 16px; }
  #aitv-root .avs-item { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 8px; }
  #aitv-root .avs-thumb { width: 56px; height: 56px; }
  #aitv-root .avs-page { padding: 18px 16px 48px; }
  #aitv-root .avs-phead { gap: 14px; }
  #aitv-root .avs-picon { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
  #aitv-root .avs-prose { font-size: 15.5px; line-height: 1.72; }
  #aitv-root .avs-prose h2 { font-size: 21px; }
  #aitv-root .avs-frow { grid-template-columns: 1fr; gap: 0; }
  #aitv-root .avs-builder { padding: 16px; }
  #aitv-root .avs-ccard { flex-wrap: wrap; padding: 16px; }
  #aitv-root .avs-ccard .avs-btn { width: 100%; }
  #aitv-root .avs-ccard { gap: 12px; }
  #aitv-root .avs-cc-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
  #aitv-root .avs-prose .avs-cc-mail { font-size: 15px; word-break: normal; overflow-wrap: anywhere; }
}
@media (max-width: 340px) {
  #aitv-root .avs-sendrow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #aitv-root .avs-drawer, #aitv-root .avs-scrim, #aitv-root .avs-tabbar { transition: none; }
  #aitv-root .avs-item, #aitv-root .avs-empty, #aitv-root .avs-empty-art, #aitv-root .avs-msg, #aitv-root .avs-done, #aitv-root .avs-page.avs-in *,
  #aitv-root .avs-bump, #aitv-root .avs-codeok { animation: none !important; }
  #aitv-root .avs-done-mark circle, #aitv-root .avs-done-mark path { animation: none; stroke-dashoffset: 0; }
}
#aitv-root[data-reduce-motion="1"] .avs-drawer, #aitv-root[data-reduce-motion="1"] .avs-scrim { transition: none; }
