/* AI Tools Vault 1.9.0 — Build your own bundle (vault-mix.js). Theme tokens from vault.css (#aitv-root). */

/* ===================== Deals tab card ===================== */
#aitv-root .av-mixslot:empty { display: none; }
#aitv-root .av-mixslot { margin: 0 0 26px; }
#aitv-root .avm-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 26px; align-items: center;
  padding: 24px 30px 24px 22px; border-radius: 22px; border: 3px solid var(--ink); background: linear-gradient(120deg, var(--yellow, #ffd60a) 0%, #ffe86b 45%, #ffb35c 100%);
  color: #1c1917; box-shadow: 7px 7px 0 var(--ink);
}
#aitv-root .avm-in { animation: avm-zoom .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes avm-zoom { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
/* 1.9.1: the decoration layer sits behind the content (it used to take the first grid cell = empty left half). */
#aitv-root .avm-card-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
#aitv-root .avm-card-fx span { position: absolute; border: 3px solid rgba(28,25,23,.18); border-radius: 50%; pointer-events: none; animation: avm-float 7s ease-in-out infinite; }
#aitv-root .avm-card-fx span:nth-child(1) { width: 120px; height: 120px; right: 24%; top: -78px; }
#aitv-root .avm-card-fx span:nth-child(2) { width: 70px; height: 70px; right: 2%; bottom: -44px; animation-delay: -2s; border-radius: 16px; transform: rotate(20deg); }
#aitv-root .avm-card-fx span:nth-child(3) { display: none; }
@keyframes avm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
#aitv-root .avm-card-tx { position: relative; z-index: 1; min-width: 0; }
/* art column: a fanned stack of 3 picked-tool cards, ticked one after the other */
#aitv-root .avm-art { position: relative; z-index: 1; width: 196px; max-width: 100%; height: 168px; justify-self: center; display: grid; place-items: center; }
#aitv-root .avm-stack { position: relative; width: 190px; height: 150px; }
#aitv-root .avm-tc {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 112px; margin: -56px 0 0 -44px; border-radius: 14px; border: 3px solid #1c1917; background: #fff;
  box-shadow: 4px 4px 0 #1c1917; overflow: hidden; display: grid; place-items: center; transform: translateX(calc((var(--k) - 1) * 46px)) rotate(calc((var(--k) - 1) * 9deg));
  z-index: calc(3 - var(--k)); animation: avm-lift 6s ease-in-out infinite; animation-delay: calc(var(--k) * .6s);
}
#aitv-root .avm-tc:nth-child(2) { z-index: 3; }
#aitv-root .avm-tc img { width: 100%; height: 100%; object-fit: cover; display: block; }
#aitv-root .avm-tc em { font-style: normal; font-size: 40px; }
#aitv-root .avm-tick { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #1c1917; background: #ffd60a; color: #1c1917; display: grid; place-items: center; font-size: 12px; scale: 1; animation: avm-tick 6s ease-in-out infinite; animation-delay: calc(var(--k) * .6s); }
#aitv-root .avm-tick b { font-weight: 900; }
#aitv-root .avm-badge { position: absolute; right: 0; bottom: 4px; z-index: 4; padding: 5px 11px; border-radius: 999px; border: 3px solid #1c1917; background: var(--sale, #e0282e); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 3px 3px 0 #1c1917; rotate: -8deg; }
@keyframes avm-lift { 0%, 34%, 100% { translate: 0 0; } 12% { translate: 0 -10px; } }
@keyframes avm-tick { 0%, 6% { scale: 0; } 13% { scale: 1.3; } 18%, 86% { scale: 1; } 94%, 100% { scale: 0; } }
#aitv-root .avm-kick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #1c1917; color: #ffd60a; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
#aitv-root .avm-card h2 { margin: 10px 0 4px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #1c1917; }
#aitv-root .avm-card p { margin: 0 0 14px; font-size: 15px; color: #3a3330; max-width: 56ch; }
#aitv-root .avm-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#aitv-root .avm-steps li { display: grid; grid-template-columns: auto auto; column-gap: 4px; align-items: baseline; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.75); border: 2px solid #1c1917; font-size: 12px; line-height: 1.2; }
#aitv-root .avm-steps li b { font-size: 16px; font-weight: 800; }
#aitv-root .avm-steps li em { grid-column: 1 / -1; font-style: normal; font-weight: 800; color: var(--sale, #e0282e); font-size: 14px; }
#aitv-root .avm-steps li.is-on { background: #1c1917; color: #fff; }
#aitv-root .avm-steps li.is-on em { color: #ffd60a; }
#aitv-root .avm-card-go { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; text-align: center; }
#aitv-root .avm-start { font-size: 16px; padding: 14px 22px; border: 3px solid #1c1917 !important; box-shadow: 4px 4px 0 #1c1917; }
#aitv-root .avm-start:hover { transform: translate(-1px, -2px); box-shadow: 6px 6px 0 #1c1917; }
#aitv-root .avm-card-go small { font-size: 12px; font-weight: 600; color: #3a3330; max-width: 220px; }

/* ===================== picker mode on the cards ===================== */
#aitv-root.avm-on .av-card { position: relative; }
#aitv-root .avm-pick {
  position: absolute; top: 10px; left: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 12px 5px 6px;
  border-radius: 999px; border: 2px solid #1c1917; background: #fff; color: #1c1917; font: 700 13px/1 inherit; font-family: inherit; cursor: pointer;
  box-shadow: 3px 3px 0 #1c1917; transition: transform .15s var(--ease, ease), box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
#aitv-root .avm-pick:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #1c1917; }
#aitv-root .avm-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#aitv-root .avm-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #1c1917; display: grid; place-items: center; background: #fff; }
#aitv-root .avm-box i { font-size: 13px; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s cubic-bezier(.2,1.6,.4,1); }
#aitv-root .avm-pick[aria-pressed="true"] { background: var(--yellow, #ffd60a); }
#aitv-root .avm-pick[aria-pressed="true"] .avm-box { background: #1c1917; color: #ffd60a; }
#aitv-root .avm-pick[aria-pressed="true"] .avm-box i { opacity: 1; transform: none; }
#aitv-root .av-card.avm-sel { outline: 4px solid var(--yellow, #ffd60a); outline-offset: 0; box-shadow: 0 0 0 7px #1c1917, var(--sh-2, 0 10px 30px rgba(0,0,0,.12)); }
#aitv-root .av-card.avm-no { opacity: .55; filter: saturate(.6); }
#aitv-root.avm-on #av-pbar, #aitv-root.avm-on .av-pbar { display: none !important; }
#aitv-root.avm-on #av-main { padding-bottom: calc(var(--avm-h, 96px) + 30px); }

/* ===================== sticky bottom bar ===================== */
#aitv-root .avm-bar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 99952; width: min(1040px, calc(100vw - 24px)); transform: translateX(-50%);
  border-radius: 20px; border: 3px solid #1c1917; background: var(--surface, #fff); color: var(--ink); box-shadow: 6px 6px 0 #1c1917, 0 24px 60px rgba(0,0,0,.25);
  animation: avm-up .45s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes avm-up { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
#aitv-root .avm-bar-in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 18px; align-items: center; padding: 12px 14px 12px 18px; }
#aitv-root .avm-b-l { display: grid; gap: 4px; min-width: 0; }
#aitv-root .avm-n { font-size: 14px; font-weight: 600; }
#aitv-root .avm-n b { font-size: 22px; font-weight: 800; }
#aitv-root .avm-ladder { display: flex; gap: 4px; }
#aitv-root .avm-ladder i { flex: 1; max-width: 48px; height: 7px; border-radius: 99px; background: var(--line-2, #d2dae6); transition: background .3s; }
#aitv-root .avm-ladder i.is-on { background: linear-gradient(90deg, var(--accent), var(--yellow, #ffd60a)); }
#aitv-root .avm-nudge { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aitv-root .avm-nudge.is-hot { color: var(--accent-d, #e5480f); animation: avm-nudge 2.6s ease-in-out infinite; }
@keyframes avm-nudge { 0%, 80%, 100% { transform: none; } 86% { transform: translateX(4px); } 92% { transform: translateX(-2px); } }
#aitv-root .avm-b-m { display: grid; justify-items: end; line-height: 1.15; }
#aitv-root .avm-b-m s { color: var(--muted); font-size: 13px; }
#aitv-root .avm-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#aitv-root .avm-save { font-size: 12.5px; font-weight: 700; color: #0f7a4f; background: #dcfbe9; border-radius: 999px; padding: 1px 8px; }
#aitv-root .avm-save.is-muted { color: var(--muted); background: var(--soft); }
#aitv-root .avm-b-r { display: flex; align-items: center; gap: 8px; }
#aitv-root .avm-go { min-height: 48px; padding: 0 20px; font-size: 15px; border: 2px solid #1c1917 !important; }
#aitv-root .avm-go[disabled] { opacity: .45; cursor: not-allowed; }
#aitv-root .avm-x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--soft); color: var(--ink); cursor: pointer; font-size: 17px; }
#aitv-root .avm-x:hover { border-color: var(--ink); }
body.avm-mixing .vg-tz { bottom: calc(var(--avm-h, 96px) + 162px) !important; }
/* 2.3.1: the Store Guide button rides above the raised rocket while the bundle bar is open */
body.avm-mixing .vg-fab { bottom: calc(var(--avm-h, 96px) + 96px) !important; }
body.avm-mixing #aitv-root .av-rocket, body.avm-mixing #aitv-root .av-floatwrap, body.avm-mixing #aitv-root .avl-slide, body.avm-mixing .avp-float, body.avm-mixing #aitv-root .av-rf-pop { bottom: calc(var(--avm-h, 96px) + 30px) !important; }

/* ===================== checkout modal (1.9.1: ONE scroll container = the modal itself) ===================== */
#aitv-root .av-modal.avm-modal {
  display: block; width: min(520px, 100%); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); scrollbar-width: thin;
}
#aitv-root .avm-mh { position: sticky; top: 0; z-index: 3; padding: 16px 66px 14px 22px; background: var(--surface); border-bottom: 2px solid var(--ink); }
#aitv-root .avm-mh h3 { margin: 8px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
#aitv-root .avm-mh .av-mx { top: 14px; right: 14px; border: 2px solid var(--ink); background: var(--surface); }
#aitv-root .avm-co { display: grid; gap: 14px; padding: 16px 22px 22px; }
#aitv-root .avm-load { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 18px 0; }
#aitv-root .avm-bill { border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
#aitv-root .avm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#aitv-root .avm-list li { display: flex; align-items: center; gap: 10px; padding: 7px; border: 2px solid var(--line); border-radius: 14px; background: var(--soft); animation: avm-zoom .35s both; }
#aitv-root .avm-list.is-compact { gap: 0; padding: 4px 14px; }
#aitv-root .avm-list.is-compact li { padding: 7px 0; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; background: none; }
#aitv-root .avm-list.is-compact li:last-child { border-bottom: 0; }
#aitv-root .avm-list li[hidden] { display: none; }
#aitv-root .avm-th { flex: 0 0 44px; width: 44px; height: 54px; border-radius: 9px; overflow: hidden; border: 2px solid var(--ink); background: var(--surface); display: grid; place-items: center; font-size: 22px; }
#aitv-root .avm-list.is-compact .avm-th { flex-basis: 32px; width: 32px; height: 40px; border-radius: 7px; font-size: 17px; }
#aitv-root .avm-th img { width: 100%; height: 100%; object-fit: cover; }
#aitv-root .avm-li-n { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aitv-root .avm-li-p { display: flex; align-items: baseline; gap: 6px; font-size: 14px; white-space: nowrap; }
#aitv-root .avm-li-p s { color: var(--muted); font-size: 12.5px; }
#aitv-root .avm-more { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border: 0; border-top: 1px dashed var(--line-2); background: var(--soft); color: var(--ink); font: 700 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
#aitv-root .avm-more:hover { background: var(--line); }
#aitv-root .avm-more:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
#aitv-root .avm-more i { transition: transform .2s; }
#aitv-root .avm-more.is-open i { transform: rotate(180deg); }
#aitv-root .avm-sum { display: grid; gap: 4px; padding: 12px 14px 14px; border-top: 2px solid var(--ink); background: var(--soft); }
#aitv-root .avm-sline { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
#aitv-root .avm-sline s { color: var(--muted); }
#aitv-root .avm-saved { font-weight: 700; color: #0f7a4f; background: #dcfbe9; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
#aitv-root .avm-sline.is-code { font-size: 13px; color: var(--muted); }
#aitv-root .avm-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; font-size: 15px; font-weight: 700; }
#aitv-root .avm-tot b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
#aitv-root .avm-consent { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 2px solid var(--line-2); cursor: pointer; font-size: 13.5px; line-height: 1.45; }
#aitv-root .avm-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#aitv-root .avm-cbox { flex: 0 0 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--surface); }
#aitv-root .avm-cbox i { opacity: 0; font-size: 12px; }
#aitv-root .avm-consent.is-on { border-color: var(--ink); background: var(--soft); }
#aitv-root .avm-consent.is-on .avm-cbox { background: var(--ink); color: var(--yellow, #ffd60a); }
#aitv-root .avm-consent.is-on .avm-cbox i { opacity: 1; }
#aitv-root .avm-consent:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
#aitv-root .avm-pp { min-height: 56px; }
#aitv-root .avm-pp.is-locked { display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 13.5px; padding: 14px; text-align: center; }
#aitv-root .avm-fine { margin: 0; font-size: 12px; color: var(--muted); }
#aitv-root .avm-big { width: 100%; min-height: 52px; font-size: 16px; }
#aitv-root .avm-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
#aitv-root .avm-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
#aitv-root .avm-msg.is-err { background: var(--sale-soft, #fdecec); color: var(--sale-ink, #8f1b1f); }
#aitv-root .avm-msg.is-info { background: var(--soft); color: var(--ink); }
#aitv-root #avm-note:empty, #aitv-root #avm-sumbox:empty { display: none; }
#aitv-root .avm-codeform { display: flex; gap: 8px; }
#aitv-root .avm-in { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; text-transform: uppercase; }
#aitv-root .avm-done { display: grid; gap: 12px; text-align: center; justify-items: center; }
#aitv-root .avm-done .avm-list { width: 100%; text-align: left; }
#aitv-root .avm-done-mark { font-size: 56px; color: #19b37d; animation: avm-zoom .5s cubic-bezier(.2,1.6,.4,1) both; }
#aitv-root .avm-done h3 { margin: 0; font-size: 24px; font-weight: 800; }

/* ===================== mid widths ===================== */
@media (min-width: 761px) and (max-width: 1080px) {
  #aitv-root .avm-card { grid-template-columns: 160px minmax(0, 1fr); }
  #aitv-root .avm-stack { transform: scale(.82); }
  #aitv-root .avm-card-go { grid-column: 2; justify-items: start; text-align: left; }
}

/* ===================== phones ===================== */
@media (max-width: 760px) {
  #aitv-root .avm-card { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px 20px; box-shadow: 5px 5px 0 var(--ink); }
  #aitv-root .avm-art { height: 124px; }
  #aitv-root .avm-stack { transform: scale(.76); }
  #aitv-root .avm-badge { right: 4px; bottom: 6px; font-size: 15px; }
  #aitv-root .av-modal.avm-modal { width: 100% !important; max-height: 92vh; max-height: 92dvh; border-width: 3px 0 0; border-radius: 22px 22px 0 0; box-shadow: none; }
  #aitv-root .avm-mh { padding: 14px 58px 12px 16px; }
  #aitv-root .avm-mh h3 { font-size: 19px; }
  #aitv-root .avm-mh .av-mx { top: 11px; right: 11px; }
  #aitv-root .avm-co { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  #aitv-root .avm-tot b { font-size: 28px; }
  #aitv-root .avm-card-go { justify-items: stretch; }
  #aitv-root .avm-start { width: 100%; }
  #aitv-root .avm-bar { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 16px); border-radius: 16px; box-shadow: 4px 4px 0 #1c1917, 0 18px 40px rgba(0,0,0,.25); }
  #aitv-root .avm-bar-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'l m' 'r r'; gap: 8px 10px; padding: 10px 10px 10px 12px; }
  #aitv-root .avm-b-l { grid-area: l; }
  #aitv-root .avm-b-m { grid-area: m; }
  #aitv-root .avm-b-r { grid-area: r; }
  #aitv-root .avm-go { flex: 1; }
  #aitv-root .avm-nudge { white-space: normal; font-size: 12.5px; }
  #aitv-root .avm-price { font-size: 22px; }
  #aitv-root .avm-pick { top: 8px; left: 8px; min-height: 36px; font-size: 12px; }
}

/* ===================== reduced motion ===================== */
#aitv-root.av-rm .avm-tc, #aitv-root.av-rm .avm-tick, #aitv-root.av-rm .avm-in, #aitv-root.av-rm .avm-card-fx span, #aitv-root.av-rm .avm-bar, #aitv-root.av-rm .avm-nudge.is-hot, #aitv-root.av-rm .avm-list li, #aitv-root.av-rm .avm-done-mark { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  #aitv-root .avm-tc, #aitv-root .avm-tick, #aitv-root .avm-in, #aitv-root .avm-card-fx span, #aitv-root .avm-bar, #aitv-root .avm-nudge.is-hot, #aitv-root .avm-list li, #aitv-root .avm-done-mark { animation: none !important; }
  #aitv-root .avm-pick, #aitv-root .avm-box i, #aitv-root .avm-ladder i { transition: none; }
}

/* ===================== 1.9.2: the same card on the store home page (option mix.home) ===================== */
#aitv-root .avm-home { padding-top: 6px; padding-bottom: var(--sec, 40px); }
#aitv-root .avm-home .avm-card { margin: 0; }
@media (max-width: 760px) { #aitv-root .avm-home { padding-top: 2px; } }