/* AI Tools Vault 1.9.0 — Questionnaire with a bonus (vault-ask.js). Theme tokens from vault.css (#aitv-root). */
html.avq-lock { overflow: hidden; }
#aitv-root .avq-pop { position: fixed; inset: 0; z-index: 99993; display: grid; place-items: center; padding: 18px; }
#aitv-root .avq-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); animation: avq-fade .25s ease both; }
@keyframes avq-fade { from { opacity: 0; } }
#aitv-root .avq-box {
  position: relative; width: min(540px, 100%); max-height: min(92vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 18px;
  border-radius: 24px; border: 3px solid var(--ink); background: var(--surface, #fff); color: var(--ink); box-shadow: 8px 8px 0 var(--ink), 0 30px 80px rgba(0,0,0,.3);
  animation: avq-zoom .45s cubic-bezier(.2,1.3,.4,1) both; outline: none;
}
@keyframes avq-zoom { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
#aitv-root .avq-pop.is-out .avq-box { animation: avq-outz .24s ease-in both; }
#aitv-root .avq-pop.is-out .avq-scrim { animation: avq-fade .24s ease-in reverse both; }
@keyframes avq-outz { to { opacity: 0; transform: translateY(20px) scale(.96); } }
#aitv-root .avq-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 17px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
#aitv-root .avq-x:hover, #aitv-root .avq-x:focus-visible { background: var(--yellow, #ffd60a); outline: none; }
#aitv-root .avq-tease { display: flex; align-items: center; gap: 10px; margin: 0 48px 14px 0; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--ink); background: var(--yellow, #ffd60a); color: #1c1917; font-size: 14px; line-height: 1.35; font-weight: 600; }
#aitv-root .avq-gift { font-size: 26px; animation: avq-gift 2.4s ease-in-out infinite; }
@keyframes avq-gift { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-14deg) scale(1.15); } 86% { transform: rotate(12deg) scale(1.15); } 94% { transform: rotate(-4deg); } }
#aitv-root .avq-prog { height: 8px; border-radius: 99px; background: var(--soft); border: 2px solid var(--ink); overflow: hidden; margin-bottom: 16px; }
#aitv-root .avq-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--yellow, #ffd60a)); transition: width .4s cubic-bezier(.2,1,.3,1); }
#aitv-root .avq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#aitv-root .avq-slide { animation: avq-slide .35s cubic-bezier(.2,1,.3,1) both; }
@keyframes avq-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
#aitv-root .avq-intro h2, #aitv-root .avq-thanks h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
#aitv-root .avq-intro p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
#aitv-root .avq-stepn { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#aitv-root .avq-l { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
#aitv-root .avq-req { color: var(--sale, #e0282e); }
#aitv-root .avq-opt { color: var(--muted); font-size: 13px; font-weight: 500; }
#aitv-root .avq-help { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
#aitv-root .avq-in { width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--soft); color: var(--ink); font: inherit; font-size: 16px; }
#aitv-root textarea.avq-in { min-height: 110px; resize: vertical; }
#aitv-root .avq-in:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
#aitv-root .avq-opts, #aitv-root .avq-yn { display: grid; gap: 8px; margin-top: 8px; }
#aitv-root .avq-yn { grid-template-columns: 1fr 1fr; }
#aitv-root .avq-o { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
#aitv-root .avq-o:hover { border-color: var(--ink); transform: translateY(-1px); }
#aitv-root .avq-o:focus-visible, #aitv-root .avq-star:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#aitv-root .avq-ob { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
#aitv-root .avq-o.is-multi .avq-ob { border-radius: 6px; }
#aitv-root .avq-ob i { font-size: 11px; opacity: 0; }
#aitv-root .avq-o[aria-checked="true"] { border-color: var(--ink); background: var(--yellow, #ffd60a); color: #1c1917; box-shadow: 3px 3px 0 var(--ink); }
#aitv-root .avq-o[aria-checked="true"] .avq-ob { background: #1c1917; color: #ffd60a; }
#aitv-root .avq-o[aria-checked="true"] .avq-ob i { opacity: 1; }
#aitv-root .avq-o.is-yn { justify-content: center; font-size: 17px; min-height: 56px; }
#aitv-root .avq-stars { display: flex; gap: 6px; margin-top: 8px; }
#aitv-root .avq-star { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); color: var(--line-2); font-size: 24px; cursor: pointer; transition: transform .15s cubic-bezier(.2,1.6,.4,1), color .15s; }
#aitv-root .avq-star.is-on { color: #f5a400; border-color: var(--ink); background: #fff7d6; }
#aitv-root .avq-star:hover { transform: scale(1.1) rotate(-6deg); }
#aitv-root .avq-err { margin: 8px 0 0; color: var(--sale-ink, #8f1b1f); font-size: 13.5px; font-weight: 700; }
#aitv-root .avq-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#aitv-root .avq-next { min-height: 50px; padding: 0 22px; font-size: 16px; border: 2px solid var(--ink) !important; box-shadow: 3px 3px 0 var(--ink); margin-left: auto; }
#aitv-root .avq-next:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
#aitv-root .avq-count { color: var(--muted); font-size: 13px; font-weight: 600; order: -1; }
#aitv-root .avq-pv { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
#aitv-root .avq-thanks { text-align: center; }
#aitv-root .avq-burst { font-size: 54px; animation: avq-pop .6s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes avq-pop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
#aitv-root .avq-bt { margin: 0 0 12px; color: var(--ink-2); }
#aitv-root .avq-b { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 8px 0; border-radius: 16px; border: 2px solid var(--ink); background: var(--soft); text-align: left; animation: avq-zoom .4s cubic-bezier(.2,1.3,.4,1) both; }
#aitv-root .avq-b > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
#aitv-root .avq-b b { font-size: 15px; overflow-wrap: anywhere; }
#aitv-root .avq-b small { color: var(--muted); font-size: 12.5px; }
#aitv-root .avq-bi { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow, #ffd60a); color: #1c1917; border: 2px solid var(--ink); font-size: 17px; }
#aitv-root .avq-b .av-btn { flex-shrink: 0; }
#aitv-root .avq-code { display: inline-block; justify-self: start; margin-top: 2px; padding: 4px 10px; border-radius: 8px; border: 2px dashed var(--ink); background: var(--surface); font-size: 18px; font-weight: 800; letter-spacing: .06em; }
#aitv-root .avq-b.is-text { display: block; background: var(--surface); }
#aitv-root .avq-rich { font-size: 14.5px; line-height: 1.6; }
#aitv-root .avq-rich p { margin: 0 0 8px; }
#aitv-root .avq-rich a { color: var(--accent-d, #e5480f); font-weight: 600; }
#aitv-root .avq-mail { margin-top: 10px; }
#aitv-root .avq-sent { color: #0f7a4f; font-weight: 700; font-size: 14px; }
#aitv-root .avq-fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
/* floating pill (bottom-right) */
#aitv-root .avq-pill {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 99956; max-width: calc(100vw - 32px); min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow, #ffd60a); color: #1c1917; font: 700 13.5px/1.2 inherit; font-family: inherit; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); animation: avq-pill .5s cubic-bezier(.2,1.4,.4,1) both, avq-wig 6s ease-in-out 2s infinite;
}
#aitv-root .avq-pill span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aitv-root .avq-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
#aitv-root .avq-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@keyframes avq-pill { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes avq-wig { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -4deg; } 94% { rotate: 3deg; } 97% { rotate: -1deg; } }
/* My bonuses (My Tools page) */
#aitv-root .avq-mine { margin-top: 18px; margin-bottom: 8px; padding: 18px; border-radius: 20px; border: 3px solid var(--ink); background: linear-gradient(120deg, #fff7d6, var(--surface)); box-shadow: 5px 5px 0 var(--ink); }
#aitv-root .avq-mine-h h2 { margin: 0; font-size: 20px; font-weight: 800; }
#aitv-root .avq-mine-h p { margin: 2px 0 8px; font-size: 13.5px; color: var(--muted); }
#aitv-root .avq-mine-c h3 { margin: 8px 0 0; font-size: 15px; }
/* phones: a bottom sheet */
@media (max-width: 600px) {
  #aitv-root .avq-pop { padding: 0; place-items: end stretch; }
  #aitv-root .avq-box { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-width: 3px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); animation-name: avq-sheet; }
  @keyframes avq-sheet { from { transform: translateY(100%); } to { transform: none; } }
  #aitv-root .avq-tease { font-size: 13px; }
  #aitv-root .avq-l { font-size: 17px; }
  #aitv-root .avq-star { width: 48px; height: 48px; }
  #aitv-root .avq-b { flex-wrap: wrap; }
  #aitv-root .avq-b .av-btn { width: 100%; }
  #aitv-root .avq-pill { right: 12px; }
}
#aitv-root.av-rm .avq-box, #aitv-root.av-rm .avq-scrim, #aitv-root.av-rm .avq-slide, #aitv-root.av-rm .avq-gift, #aitv-root.av-rm .avq-burst, #aitv-root.av-rm .avq-b, #aitv-root.av-rm .avq-pill { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  #aitv-root .avq-box, #aitv-root .avq-scrim, #aitv-root .avq-slide, #aitv-root .avq-gift, #aitv-root .avq-burst, #aitv-root .avq-b, #aitv-root .avq-pill { animation: none !important; }
  #aitv-root .avq-prog i, #aitv-root .avq-o, #aitv-root .avq-star { transition: none; }
}
