/* AI Tools Vault — Partners & Ads (1.7). Store view + private applicant page.
   Built on the store theme tokens (vault.css: --surface, --ink, --line, --accent…), so all 4 themes work. */

/* ---------- page ---------- */
#aitv-root .avp { padding-bottom: 84px; --avp-acc: var(--accent); }
#aitv-root .avp-sec { margin-top: 46px; opacity: 0; animation: av-rise .55s cubic-bezier(.2,.9,.3,1) forwards; --avp-acc: var(--accent); }
#aitv-root .avp-sec[style*="--avp-acc"] .avp-sh h2 i { color: var(--avp-acc); }
#aitv-root .avp-sh { margin-bottom: 18px; }
#aitv-root .avp-sh h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
#aitv-root .avp-sh h2 i { color: var(--avp-acc); font-size: .8em; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--avp-acc) 14%, transparent); }
#aitv-root .avp-sh p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 70ch; }

/* hero */
#aitv-root .avp-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 54px 0 6px; margin-top: 0; opacity: 1; animation: none; }
#aitv-root .avp-hero-in { opacity: 0; animation: av-rise .6s cubic-bezier(.2,.9,.3,1) forwards; }
#aitv-root .avp-hero h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; color: var(--ink); max-width: 18ch; }
#aitv-root .avp-lead { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
#aitv-root .avp-hero-cd { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: var(--sale-soft); color: var(--sale-ink); border: 1px solid var(--sale-line); font-weight: 600; font-size: 14px; }
#aitv-root .avp-hero-cd b { font-variant-numeric: tabular-nums; }
#aitv-root .avp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#aitv-root .avp-hero-art { position: relative; width: 230px; height: 190px; flex-shrink: 0; }
#aitv-root .avp-hero-art span { position: absolute; inset: 0; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); }
#aitv-root .avp-hero-art span:nth-child(1) { transform: rotate(-9deg) translate(-26px, 8px); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); animation: avp-float 7s ease-in-out infinite; }
#aitv-root .avp-hero-art span:nth-child(2) { transform: rotate(7deg) translate(24px, -6px); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); animation: avp-float 8s ease-in-out -2s infinite; }
#aitv-root .avp-hero-art span:nth-child(3) { background: linear-gradient(145deg, var(--accent), #ff8a4c); border-color: transparent; transform: scale(.82); }
#aitv-root .avp-hero-art i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,.18); }
@keyframes avp-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* FTC-style disclosure: always visible, calm */
#aitv-root .avp-disc { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 11px 15px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; max-width: 780px; }
#aitv-root .avp-disc i { color: var(--brand); margin-top: 3px; }
#aitv-root .avp-top { padding-top: 28px; }

/* ---------- cards ---------- */
#aitv-root .avp-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#aitv-root .avp-grid.c1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
#aitv-root .avp-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#aitv-root .avp-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#aitv-root .avp-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
#aitv-root .avp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
#aitv-root .avp-card.is-feat { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--sh-1); }
#aitv-root .avp-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg-2), var(--soft)); overflow: hidden; flex-shrink: 0; }
#aitv-root .avp-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
#aitv-root .avp-card:hover .avp-media img { transform: scale(1.04); }
#aitv-root .avp-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); letter-spacing: -.04em; }
#aitv-root .avp-badge, #aitv-root .avp-spons { position: absolute; top: 12px; z-index: 1; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; line-height: 1.2; }
#aitv-root .avp-badge { left: 12px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,90,31,.32); }
#aitv-root .avp-spons { right: 12px; background: rgba(15,23,42,.72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#aitv-root .avp-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px 20px; flex: 1 1 auto; min-width: 0; }
#aitv-root .avp-body h3 { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
#aitv-root .avp-notes { color: var(--muted); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
#aitv-root .avp-grid .avp-notes, #aitv-root .avp-car .avp-notes { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
#aitv-root .avp-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--sale-soft); border: 1px solid var(--sale-line); color: var(--sale-ink); font-size: 13.5px; font-weight: 600; }
#aitv-root .avp-deal i { color: var(--sale); }
#aitv-root .avp-cd { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
#aitv-root .avp-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
#aitv-root .avp-go { min-height: 42px; }
#aitv-root .avp-go i { font-size: .8em; opacity: .85; }
#aitv-root .avp-aff { font-size: 12px; color: var(--faint); display: inline-flex; gap: 6px; align-items: center; }

/* split: 1 big + compact list (large screens) */
#aitv-root .avp-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#aitv-root .avp-split + .avp-grid { margin-top: 22px; }
#aitv-root .avp-split-a .avp-card { height: 100%; }
#aitv-root .avp-split-a .avp-body h3 { font-size: 22px; }
#aitv-root .avp-split-b { display: flex; flex-direction: column; gap: 14px; }
#aitv-root .avp-split-b .avp-card { flex-direction: row; }
#aitv-root .avp-split-b .avp-media { width: 38%; aspect-ratio: auto; min-height: 132px; }
#aitv-root .avp-split-b .avp-body { padding: 14px 16px; gap: 6px; }
#aitv-root .avp-split-b .avp-body h3 { font-size: 16px; }
#aitv-root .avp-split-b .avp-notes { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#aitv-root .avp-split-b .avp-go { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
#aitv-root .avp-split-b .avp-aff { display: none; }

/* carousel */
#aitv-root .avp-car { position: relative; }
#aitv-root .avp-car-t { display: grid; grid-auto-flow: column; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; overscroll-behavior-x: contain; grid-auto-columns: calc((100% - 40px) / 3); }
#aitv-root .avp-car-t::-webkit-scrollbar { display: none; }
#aitv-root .avp-car-t.c1 { grid-auto-columns: 100%; }
#aitv-root .avp-car-t.c2 { grid-auto-columns: calc((100% - 20px) / 2); }
#aitv-root .avp-car-t.c4 { grid-auto-columns: calc((100% - 60px) / 4); }
#aitv-root .avp-car-t > * { scroll-snap-align: start; }
#aitv-root .avp-car-b { position: absolute; top: 34%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); cursor: pointer; display: grid; place-items: center; transition: opacity .2s, transform .2s; }
#aitv-root .avp-car-b:hover { transform: scale(1.06); }
#aitv-root .avp-car-b.is-prev { left: -14px; }
#aitv-root .avp-car-b.is-next { right: -14px; }
#aitv-root .avp-car-b[disabled] { opacity: 0; pointer-events: none; }
#aitv-root .avp-car.is-static .avp-car-b { display: none; }

/* "your store could be here" */
#aitv-root .avp-spot { border-style: dashed; border-width: 1.5px; background: var(--soft); box-shadow: none; justify-content: center; min-height: 260px; }
#aitv-root .avp-spot:hover { transform: none; box-shadow: none; border-color: var(--accent-line); }
#aitv-root .avp-spot-in { padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#aitv-root .avp-spot-i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--accent); background: var(--accent-soft); }
#aitv-root .avp-spot h3 { font-size: 17px; font-weight: 700; }
#aitv-root .avp-spot p { color: var(--muted); font-size: 14px; max-width: 26ch; }

/* call to action panel */
#aitv-root .avp-cta-in {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center;
  padding: 36px 40px; border-radius: 26px; background: linear-gradient(135deg, #0f172a, #1e2a4a); color: #fff; box-shadow: var(--sh-2); border: 1px solid rgba(255,255,255,.08);
}
#aitv-root .avp-cta-in::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--avp-acc) 55%, transparent), transparent 68%); pointer-events: none; }
#aitv-root .avp-cta-t { position: relative; display: flex; gap: 18px; align-items: flex-start; }
#aitv-root .avp-cta-i { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--avp-acc); box-shadow: 0 10px 26px color-mix(in srgb, var(--avp-acc) 45%, transparent); transform: rotate(-6deg); }
#aitv-root .avp-cta h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: inherit; }
#aitv-root .avp-cta p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; opacity: .82; }
#aitv-root .avp-cta-a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#aitv-root .avp-cta-a .av-orange { background: var(--avp-acc); border-color: var(--avp-acc); }
#aitv-root .avp-from { font-size: 14px; opacity: .85; }
#aitv-root .avp-from b { font-weight: 700; }
#aitv-root .avp-steps { list-style: none; display: grid; gap: 8px; margin-top: 4px; font-size: 14px; opacity: .9; }
#aitv-root .avp-steps li { display: flex; gap: 10px; align-items: center; }
#aitv-root .avp-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.14); }

/* text block */
#aitv-root .avp-text { max-width: 780px; }
#aitv-root .avp-text h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
#aitv-root .avp-prose { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
#aitv-root .avp-prose p + p { margin-top: 12px; }

/* empty + loading */
#aitv-root .avp-empty-page { text-align: center; padding: 90px 16px 40px; color: var(--muted); }
#aitv-root .avp-empty-page i { font-size: 40px; color: var(--accent); margin-bottom: 14px; }
#aitv-root .avp-empty-page h2 { font-size: 24px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
#aitv-root .avp-skel-h { height: 120px; margin: 54px 0 30px; border-radius: 20px; max-width: 640px; }
#aitv-root .avp-skel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
#aitv-root .avp-skel-grid i { height: 300px; border-radius: var(--r); }
#aitv-root .avp-skel-h, #aitv-root .avp-skel-grid i { background: linear-gradient(90deg, var(--bg-2), var(--soft), var(--bg-2)); background-size: 200% 100%; animation: avp-shine 1.4s linear infinite; }
@keyframes avp-shine { to { background-position: -200% 0; } }

/* floating "Get featured" */
#aitv-root .avp-float {
  position: fixed; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px 11px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 14px/1.2 'Poppins', system-ui, sans-serif; box-shadow: 0 12px 30px rgba(255,90,31,.35), 0 2px 6px rgba(0,0,0,.12);
  animation: avp-pop .6s cubic-bezier(.2,1.4,.4,1) .8s both; transition: transform .2s, box-shadow .2s;
}
#aitv-root .avp-float i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 13px; }
#aitv-root .avp-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255,90,31,.42); }
#aitv-root .avp-float.is-bottom-left { left: 22px; }
#aitv-root .avp-float.is-bottom-right { right: 86px; }
#aitv-root .avp-float.is-bottom-center { left: 50%; transform: translateX(-50%); animation-name: avp-pop-c; }
#aitv-root .avp-float.is-bottom-center:hover { transform: translate(-50%, -2px); }
@keyframes avp-pop { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes avp-pop-c { from { opacity: 0; transform: translate(-50%, 30px) scale(.8); } to { opacity: 1; transform: translateX(-50%); } }

/* application modal */
#aitv-root .avp-apply-m .av-mbody { padding-top: 18px; }
#aitv-root .avp-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
#aitv-root .avp-apply textarea.av-input, #aitv-root .avp-lf textarea.av-input { resize: vertical; min-height: 64px; font-size: 15px; }
#aitv-root .avp-samples { display: grid; gap: 8px; }
#aitv-root .avp-addlink { font-size: 13.5px; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
#aitv-root .avp-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); }
#aitv-root .avp-opt { font-style: normal; font-weight: 400; color: var(--faint); }
#aitv-root .avp-ferr { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--sale); font-weight: 500; }
#aitv-root .avp-f.is-bad .av-input, #aitv-root [data-f].is-bad .av-input { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-soft); }
#aitv-root .avp-f.is-bad.av-consent { border-color: var(--sale); background: var(--sale-soft); }
#aitv-root .avp-apply .av-consent { flex-wrap: wrap; }
#aitv-root .avp-apply .av-consent .avp-ferr { flex-basis: 100%; margin: 0; }
#aitv-root .avp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#aitv-root .avp-done p { white-space: pre-line; }

/* ---------- responsive (store) ---------- */
@media (max-width: 1023px) {
  #aitv-root .avp-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #aitv-root .avp-split-b { display: contents; }
  #aitv-root .avp-split-b .avp-card { flex-direction: column; }
  #aitv-root .avp-split-b .avp-media { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
  #aitv-root .avp-split-b .avp-body { padding: 18px 20px 20px; }
  #aitv-root .avp-grid.c3, #aitv-root .avp-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #aitv-root .avp-car-t, #aitv-root .avp-car-t.c3, #aitv-root .avp-car-t.c4 { grid-auto-columns: calc((100% - 20px) / 2); }
  #aitv-root .avp-cta-in { grid-template-columns: 1fr; padding: 30px 28px; }
  #aitv-root .avp-hero-art { width: 170px; height: 140px; }
  #aitv-root .avp-hero-art i { font-size: 46px; }
}
@media (max-width: 700px) {
  #aitv-root .avp-hero { grid-template-columns: 1fr; padding-top: 36px; }
  #aitv-root .avp-hero-art { display: none; }
  #aitv-root .avp-hero-cta .av-btn { flex: 1 1 auto; }
  #aitv-root .avp-sec { margin-top: 36px; }
  #aitv-root .avp-grid, #aitv-root .avp-grid.c2, #aitv-root .avp-grid.c3, #aitv-root .avp-grid.c4, #aitv-root .avp-split { grid-template-columns: minmax(0, 1fr); }
  #aitv-root .avp-car-t, #aitv-root .avp-car-t.c1, #aitv-root .avp-car-t.c2, #aitv-root .avp-car-t.c3, #aitv-root .avp-car-t.c4 { grid-auto-columns: 84%; gap: 14px; }
  #aitv-root .avp-car-b { display: none; }
  #aitv-root .avp-sh h2 { font-size: 21px; }
  #aitv-root .avp-sh h2 i { width: 32px; height: 32px; }
  #aitv-root .avp-cta-in { padding: 24px 20px; border-radius: 22px; gap: 22px; }
  #aitv-root .avp-cta-t { flex-direction: column; gap: 14px; }
  #aitv-root .avp-cta-a .av-btn { width: 100%; white-space: normal; }
  #aitv-root .avp-row2 { grid-template-columns: 1fr; }
  #aitv-root .avp-float { bottom: 16px; padding: 9px 14px 9px 10px; }
  /* Phones: the corners belong to the customize button and the rocket — centre the pill. */
  #aitv-root .avp-float.is-bottom-left, #aitv-root .avp-float.is-bottom-right { left: 50%; right: auto; transform: translateX(-50%); animation-name: avp-pop-c; }
  #aitv-root .avp-float.is-bottom-left:hover, #aitv-root .avp-float.is-bottom-right:hover { transform: translate(-50%, -2px); }
  #aitv-root .avp-skel-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #aitv-root .avp-sec, #aitv-root .avp-hero-in, #aitv-root .avp-float { animation: none; opacity: 1; }
  #aitv-root .avp-hero-art span { animation: none; }
  #aitv-root .avp-card:hover, #aitv-root .avp-card:hover .avp-media img { transform: none; }
}

/* =====================================================================
   Private applicant page (/partner/pay/<token>/)
   ===================================================================== */
body.avp-paybody { margin: 0; }
#aitv-root.avp-payroot { min-height: 100vh; }
#aitv-root .avp-pay { position: relative; z-index: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 30px 20px 64px; }
#aitv-root .avp-pay-load { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 60vh; color: var(--muted); font-weight: 500; }
#aitv-root .avp-pay-load .av-spin { color: var(--accent); width: 22px; height: 22px; }
#aitv-root .avp-phead { padding: 18px 0 8px; animation: av-rise .5s cubic-bezier(.2,.9,.3,1) both; }
#aitv-root .avp-phead .av-kicker { margin-bottom: 14px; }
#aitv-root .avp-phead h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
#aitv-root .avp-phead p { margin-top: 8px; color: var(--muted); font-size: 16px; }
#aitv-root .avp-phead p b { color: var(--ink); }
#aitv-root .avp-muted { color: var(--muted); font-size: 14px; }

#aitv-root .avp-psteps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 18px; counter-reset: s; }
#aitv-root .avp-psteps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; min-width: 0; }
#aitv-root .avp-psteps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aitv-root .avp-psteps b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--bg-2); color: var(--ink-2); }
#aitv-root .avp-psteps li.is-done { color: var(--ok-ink); border-color: var(--ok-line); background: var(--ok-soft); }
#aitv-root .avp-psteps li.is-done b { background: var(--ok); color: #fff; }
#aitv-root .avp-psteps li.is-on { color: var(--ink); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
#aitv-root .avp-psteps li.is-on b { background: var(--accent); color: #fff; }

#aitv-root .avp-pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); padding: 24px 26px; margin-top: 18px; animation: av-rise .5s cubic-bezier(.2,.9,.3,1) both; }
#aitv-root .avp-ph2 { margin-bottom: 16px; }
#aitv-root .avp-ph2 h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
#aitv-root .avp-ph2 h2 i { color: var(--accent); }
#aitv-root .avp-ph2 p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

#aitv-root .avp-status { display: flex; gap: 18px; align-items: flex-start; }
#aitv-root .avp-st-i { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--warn-soft); color: var(--gold); }
#aitv-root .avp-status.is-live .avp-st-i { background: var(--ok-soft); color: var(--ok); }
#aitv-root .avp-status.is-act .avp-st-i { background: var(--accent-soft); color: var(--accent); }
#aitv-root .avp-status.is-bad .avp-st-i { background: var(--sale-soft); color: var(--sale); }
#aitv-root .avp-status.is-live { border-color: var(--ok-line); }
#aitv-root .avp-status h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
#aitv-root .avp-status p { color: var(--muted); margin-top: 4px; font-size: 15px; }
#aitv-root .avp-until { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2) !important; }
#aitv-root .avp-until i { color: var(--brand); }
#aitv-root .avp-cancel { font-size: 13.5px; color: var(--sale-ink); }

#aitv-root .avp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
#aitv-root .avp-plan {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 16px 16px; text-align: left; cursor: pointer;
  background: var(--soft); color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; font: inherit;
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease), background-color .15s;
}
#aitv-root .avp-plan:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--sh-1); }
#aitv-root .avp-plan.is-on { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft), var(--sh-1); }
#aitv-root .avp-plan-n { font-size: 15px; font-weight: 700; }
#aitv-root .avp-plan-p { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
#aitv-root .avp-plan-p small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
#aitv-root .avp-plan-note { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
#aitv-root .avp-plan-tag { position: absolute; top: -10px; left: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; }
#aitv-root .avp-plan-tag.is-save { background: var(--ok); }
#aitv-root .avp-plan-r { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: transparent; transition: background-color .15s, border-color .15s; }
#aitv-root .avp-plan.is-on .avp-plan-r { background: var(--accent); border-color: var(--accent); color: #fff; }
#aitv-root .avp-buy { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); animation: av-rise .35s ease both; }
#aitv-root .avp-ppbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 420px; min-height: 52px; border: 0; border-radius: 26px; cursor: pointer;
  background: #ffc439; color: #111; font: 600 16px/1 'Poppins', system-ui, sans-serif; box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: filter .15s, transform .15s;
}
#aitv-root .avp-ppbtn b { font: italic 800 20px/1 Verdana, 'Segoe UI', sans-serif; color: #003087; letter-spacing: -.02em; }
#aitv-root .avp-ppbtn b i { font-style: italic; color: #003087; }
#aitv-root .avp-ppbtn b { color: #009cde; }
#aitv-root .avp-ppbtn:hover { filter: brightness(.96); transform: translateY(-1px); }
#aitv-root .avp-ppbtn[disabled], #aitv-root .avp-ppbtn.is-busy { opacity: .6; pointer-events: none; }

#aitv-root .avp-lgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px; align-items: start; }
#aitv-root .avp-lprev { position: sticky; top: 18px; }
#aitv-root .avp-lprev-l { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
#aitv-root .avp-prevcard .avp-card:hover { transform: none; }
#aitv-root .avp-count { font-style: normal; font-weight: 400; color: var(--faint); float: right; font-size: 12px; }
#aitv-root .avp-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--soft); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s; }
#aitv-root .avp-drop i { font-size: 22px; color: var(--accent); }
#aitv-root .avp-drop b { font-size: 14.5px; overflow-wrap: anywhere; }
#aitv-root .avp-drop small { font-size: 12.5px; color: var(--faint); }
#aitv-root .avp-drop:hover, #aitv-root .avp-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
#aitv-root .avp-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#aitv-root .avp-review { background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink); }
#aitv-root .avp-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--warn-soft); color: var(--ink-2); border: 1px solid var(--warn-line); }
#aitv-root .avp-pill.is-live { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok-line); }
#aitv-root .avp-pill.is-bad { background: var(--sale-soft); color: var(--sale-ink); border-color: var(--sale-line); }
#aitv-root .avp-pays { display: grid; gap: 2px; }
#aitv-root .avp-payrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
#aitv-root .avp-payrow:last-child { border-bottom: 0; }
#aitv-root .avp-payrow small { display: block; color: var(--faint); font-size: 12.5px; }
#aitv-root .avp-payrow .avp-pill { margin: 0; }
#aitv-root .avp-amt { font-variant-numeric: tabular-nums; }
#aitv-root .avp-pfoot { margin-top: 30px; text-align: center; font-size: 13.5px; color: var(--muted); }
#aitv-root .avp-pfoot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#aitv-root .avp-dead { max-width: 520px; margin: 12vh auto 0; text-align: center; padding: 36px 28px; }
#aitv-root .avp-dead h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
#aitv-root .avp-dead p { color: var(--muted); margin-bottom: 14px; }
#aitv-root .avp-dead a:not(.av-btn) { color: var(--ink); font-weight: 600; }
#aitv-root .avp-dead-i { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; font-size: 26px; background: var(--sale-soft); color: var(--sale); }
#aitv-root .avp-ptoast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9999; max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border-radius: 14px;
  background: var(--inv); color: var(--on-inv); box-shadow: var(--sh-3); font-weight: 500; font-size: 14.5px;
  transform: translate(-50%, 140px); opacity: 0; transition: transform .45s cubic-bezier(.2,1.3,.4,1), opacity .25s; pointer-events: none;
}
#aitv-root .avp-ptoast.show { transform: translate(-50%, 0); opacity: 1; }
#aitv-root .avp-ptoast.is-err { background: #a81d22; color: #fff; }
#aitv-root .avp-ptoast.is-ok { background: #0b6f58; color: #fff; }

@media (max-width: 820px) {
  #aitv-root .avp-lgrid { grid-template-columns: 1fr; }
  #aitv-root .avp-lprev { position: static; order: -1; }
  #aitv-root .avp-psteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #aitv-root .avp-pay { padding: 18px 16px 48px; }
  #aitv-root .avp-pcard { padding: 20px 18px; border-radius: 18px; }
  #aitv-root .avp-status { flex-direction: column; gap: 12px; }
  #aitv-root .avp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #aitv-root .avp-plan { padding: 16px 12px 12px; }
  #aitv-root .avp-plan-p { font-size: 20px; }
  #aitv-root .avp-psteps li { padding: 8px 10px; font-size: 12.5px; }
  #aitv-root .avp-payrow { grid-template-columns: minmax(0, 1fr) auto; }
  #aitv-root .avp-payrow .avp-pill { grid-row: 2; grid-column: 1; justify-self: start; }
}
