/* InfiniWorld VIP "Infini+" (14/11). 20/11 (owner: "improve Infini+'s icon and page, a quality call to action"): the
   page as a call to action (vip.js viewVip): a poster-like hero that stays dark in both themes, the perks in a grid,
   a free-vs-Infini+ table, the FAQ and a closing call; also the banner's ∞+ badge (app.js vipBanner), the chat's
   Infini+ names and the plan's own aurora card back and profile background (server/shop.py back_vip, banner_vip). */

/* ------------------------------------------------------------------ the page */
.vip-page { --vp-ink: #7a3fd0; display: grid; gap: 18px; width: 100%; max-width: 940px; margin: 0 auto; padding-bottom: 28px; }
html:not(.light) .vip-page { --vp-ink: #c9a6ff; }
.vip-mark { display: block; overflow: visible; }

/* the hero: deep violet sky, an aurora, twinkling stars, the emblem, the wordmark, the price and the button */
.vp-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 30px 18px 22px; border-radius: 28px; color: #fff;
  background: radial-gradient(90% 60% at 50% 0%, rgba(124, 77, 255, .55), transparent 70%),
    radial-gradient(70% 50% at 100% 100%, rgba(255, 79, 163, .45), transparent 70%),
    radial-gradient(60% 50% at 0% 90%, rgba(61, 214, 255, .28), transparent 70%),
    linear-gradient(170deg, #160a42 0%, #2a0f6e 45%, #4a1590 100%);
  box-shadow: 0 0 0 2px rgba(255, 214, 102, .55), 0 18px 40px rgba(60, 20, 140, .35); }
.vp-aura { position: absolute; z-index: -1; left: -30%; right: -30%; top: -40%; height: 90%; pointer-events: none; opacity: .75; filter: blur(26px);
  background: conic-gradient(from 180deg at 50% 60%, transparent 0deg, rgba(61, 214, 255, .55) 60deg, rgba(164, 112, 255, .5) 120deg,
    rgba(255, 79, 163, .55) 180deg, rgba(255, 176, 46, .35) 230deg, transparent 300deg);
  animation: vp-aura 14s ease-in-out infinite alternate; }
@keyframes vp-aura { from { transform: translateX(-6%) rotate(-4deg); } to { transform: translateX(6%) rotate(4deg); } }
.vp-star { position: absolute; z-index: -1; left: var(--x); top: var(--y); font-size: 11px; color: #fff3c4; text-shadow: 0 0 8px #ffd23d;
  animation: rf-twinkle 2.4s ease-in-out var(--d) infinite; pointer-events: none; }
/* 20/11 (owner: "make it more like the logo's, use three.js"): the emblem is the app icon with a gold "+"; vip3d.js
   draws the whole hero (its sky, aurora, stars, sparkles) and the emblem in 3D where .vp-emblem sits (.is-3d) */
.vp-emblem { position: relative; display: grid; place-items: center; width: 140px; height: 140px; margin: -4px 0 -2px;
  animation: vp-float 4.5s ease-in-out infinite; }
.vp-emblem .vip-mark { width: 100%; height: 100%; filter: drop-shadow(0 10px 16px rgba(20, 6, 60, .5)) drop-shadow(0 0 18px rgba(255, 120, 200, .35)); }
.vp-3d { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.vp-hero.is-3d { background: #160a42; }
.vp-hero.is-3d .vp-aura, .vp-hero.is-3d .vp-star { display: none; }
.vp-hero.is-3d .vp-emblem { animation: none; }
.vp-hero.is-3d .vp-emblem .vip-mark { visibility: hidden; }
@keyframes vp-float { 50% { transform: translateY(-5px); } }
.vp-kicker { font: 800 11px/1.2 Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffe9a8; }
.vp-word { margin: -2px 0 0; font: 700 clamp(50px, 14vw, 72px)/1 Fredoka, sans-serif; letter-spacing: .005em;
  background: linear-gradient(180deg, #ffffff 0%, #f1eaff 65%, #d9ccff 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 #1d0a52) drop-shadow(0 4px 0 rgba(20, 6, 60, .55)); }
.vp-word em { font-style: normal; background: linear-gradient(180deg, #fff6c2, #ffd23d 55%, #ff9d2e); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.vp-lead { margin: 2px 0 4px; max-width: 34ch; font: 700 15px/1.45 Nunito, sans-serif; color: #f3eeff; }
.vp-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 2px 0 2px; }
.vp-price b { font: 700 38px/1 Fredoka, sans-serif; color: #fff; text-shadow: 0 2px 0 rgba(20, 6, 60, .5); }
.vp-price span { font: 800 15px Nunito, sans-serif; color: #e3d8ff; }
.vp-on { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: #fff; color: #5a2ab0;
  font: 800 14px Nunito, sans-serif; box-shadow: 0 4px 14px rgba(20, 6, 60, .3); }
.vp-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: min(100%, 340px); min-height: 52px; margin-top: 6px; padding: 12px 22px; border: 0; border-radius: 99px; cursor: pointer; text-decoration: none;
  font: 700 19px/1.1 Fredoka, sans-serif; color: #4a1500; -webkit-text-fill-color: #4a1500;
  background: linear-gradient(180deg, #fff4c0, #ffcf4a 55%, #ffad2e); box-shadow: 0 5px 0 #c06a0c, 0 0 26px rgba(255, 210, 61, .55); }
.vp-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 46%, transparent 60%);
  transform: translateX(-120%); animation: vb-sweep 3.4s ease-in-out infinite; pointer-events: none; }
.vp-cta:hover { filter: brightness(1.05); }
.vp-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #c06a0c, 0 0 20px rgba(255, 210, 61, .5); }
.vp-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vp-cta.done, .vp-cta:disabled { cursor: default; color: #fff; -webkit-text-fill-color: #fff; background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); filter: none; transform: none; }
.vp-cta.done::after, .vp-cta:disabled::after { display: none; }
.vp-cta.alt { font-size: 17px; }
.vp-note { max-width: 40ch; font: 700 12.5px/1.45 Nunito, sans-serif; color: #d9ccff; }

/* the sections */
.vp-sec { display: grid; gap: 10px; }
.vp-sec h2 { margin: 4px 2px 0; font: 700 22px/1.2 Fredoka, sans-serif; color: var(--text); }

/* the perks: a grid of tiles, each with its own colour */
.vp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vp-perk { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 12px 13px; border-radius: 20px; background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--vc) 28%, var(--line)); box-shadow: 0 6px 16px color-mix(in srgb, var(--vc) 12%, transparent); }
.vp-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 3px; border-radius: 14px; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--vc) 70%, #fff), var(--vc)); box-shadow: 0 5px 12px color-mix(in srgb, var(--vc) 40%, transparent); }
.vp-ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vp-perk b { font: 700 16px/1.2 Fredoka, sans-serif; color: var(--text); }
.vp-perk small { font: 700 12.5px/1.4 Nunito, sans-serif; color: var(--muted); }
.vp-new { position: absolute; top: 12px; right: 10px; padding: 2px 8px; border-radius: 99px; font: 800 10px/1.4 Nunito, sans-serif; font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #ff8a3d, #ff4fa3); }

/* free or Infini+ */
.vp-tablebox { overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.vp-table { width: 100%; border-collapse: collapse; font: 700 13.5px/1.3 Nunito, sans-serif; color: var(--text); }
.vp-table th, .vp-table td { padding: 10px 10px; text-align: center; border-top: 1px solid var(--line); border-bottom: 0; }
.vp-table thead th { border-top: 0; padding: 12px 10px; font: 800 12px/1.2 Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vp-table tbody th { text-align: left; font: 700 13.5px/1.3 Nunito, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.vp-table td { width: 26%; color: var(--muted); }
.vp-table .vp-plus { color: var(--vp-ink); background: color-mix(in srgb, #a470ff 9%, transparent); }
.vp-table thead .vp-plus { color: #fff; background: linear-gradient(135deg, #5a22c8, #b8318a); letter-spacing: .02em; text-transform: none; font: 700 15px/1 Fredoka, sans-serif; }
.vp-table thead .vp-plus svg { width: 17px; height: 17px; margin-right: 4px; vertical-align: -3px; fill: none; stroke: #ffd23d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vp-table td.vp-plus b { font: 700 16px/1 Fredoka, sans-serif; color: var(--vp-ink); }
.vp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 900;
  background: linear-gradient(135deg, #a470ff, #ff4fa3); }
.vp-no { color: var(--muted); opacity: .7; }
.vp-table tr.vp-same td { color: var(--good); font-weight: 800; background: color-mix(in srgb, var(--good) 8%, transparent); }

/* questions */
.vp-faq { display: grid; gap: 8px; }
.vp-faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.vp-faq summary { position: relative; list-style: none; cursor: pointer; padding: 13px 40px 13px 14px; font: 700 15px/1.3 Fredoka, sans-serif; color: var(--text); }
.vp-faq summary::-webkit-details-marker { display: none; }
.vp-faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--vp-ink);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; }
.vp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.vp-faq p { margin: 0; padding: 0 14px 14px; font: 700 13.5px/1.5 Nunito, sans-serif; color: var(--muted); }

/* the closing call */
.vp-final { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; padding: 16px;
  border-radius: 24px; color: #fff; background: linear-gradient(120deg, #2a0f6e 0%, #6a1fd0 40%, #d6337f 80%, #ffb02e 130%);
  box-shadow: 0 0 0 2px rgba(255, 214, 102, .6), 0 12px 28px rgba(122, 40, 200, .3); }
.vp-fmark { position: relative; display: grid; place-items: center; width: 62px; height: 62px; }
.vp-fmark .vip-mark { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(20, 6, 60, .45)); }
.vp-ftext { display: grid; gap: 2px; min-width: 0; }
.vp-ftext b { font: 700 28px/1 Fredoka, sans-serif; color: #fff; text-shadow: 0 2px 0 rgba(60, 10, 90, .45); }
.vp-ftext b em { font-style: normal; color: #ffd23d; }
.vp-ftext span { font: 800 13px/1.35 Nunito, sans-serif; color: #ffe9f6; }
.vp-final .vp-cta { grid-column: 1 / -1; justify-self: stretch; width: 100%; margin-top: 0; }
.vp-shop { justify-self: center; padding: 6px 12px; font: 800 13.5px Nunito, sans-serif; color: var(--vp-ink); text-decoration: none; }

@media (min-width: 640px) {
  .vp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vp-hero { padding: 40px 28px 28px; }
  .vp-final { grid-template-columns: auto 1fr auto; padding: 18px 22px; }
  .vp-final .vp-cta { grid-column: auto; width: auto; min-width: 230px; }
  .vp-table th, .vp-table td { padding: 12px 16px; }
}
@media (min-width: 640px) and (max-width: 900px) { .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .vp-grid { grid-template-columns: minmax(0, 1fr); } .vp-table td { width: 24%; } }

/* ------------------------------------------------------------------ the banner's badge: the ∞+ emblem (app.js vipBanner) */
/* 20/11: the badge is the emblem itself (the app icon with a gold "+"), on a soft glow; no dashed ring */
.vip-banner .vb-badge { border-radius: 24%; background: none; box-shadow: none; }
.vip-banner .vb-badge::before { content: ""; position: absolute; inset: -20%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 150, 215, .7), rgba(164, 112, 255, .32) 55%, transparent);
  animation: vm-glow 2.8s ease-in-out infinite alternate; }
@keyframes vm-glow { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.vip-banner .vb-ring { display: none; }
.vip-banner .vb-badge .vip-mark, #side .vip-banner.side .vb-badge .vip-mark { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(20, 6, 60, .5));
  animation: vm-bob 6s ease-in-out infinite; }
@keyframes vm-bob { 0%, 70%, 100% { transform: rotate(0) scale(1); } 80% { transform: rotate(-8deg) scale(1.08); } 90% { transform: rotate(5deg) scale(1.03); } }
/* the 3D badge (vip3d.js badge): a canvas a little bigger than the badge, so the spin and the "+" have room */
.v3-cv { position: absolute; inset: -16%; width: 132%; height: 132%; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(20, 6, 60, .45)); }
.v3 > .vip-mark { visibility: hidden; }

/* ------------------------------------------------------------------ the chat: an Infini+ name (server config.CHAT_VIP_MARK) */
.vip-tag { display: inline-grid; place-items: center; width: 20px; height: 15px; margin-left: 5px; vertical-align: -2px; border-radius: 99px; font-style: normal;
  background: linear-gradient(90deg, #ff8a3d, #ff4fa3 50%, #a470ff); box-shadow: 0 1px 3px rgba(120, 30, 90, .3); }
.vip-tag svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#chat.wa .msg.msg-vip .wa-av { border: 2px solid transparent;
  background: linear-gradient(hsl(var(--h) 52% 48%), hsl(var(--h) 52% 48%)) padding-box, conic-gradient(from 200deg, #ff8a3d, #ff4fa3, #a470ff, #3dd6ff, #ff8a3d) border-box; }
html #chat.wa .msg.msg-vip .wa-name { width: fit-content; background: linear-gradient(90deg, #d4247f, #7a3fd0 55%, #1b8fc4); -webkit-background-clip: text;
  background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html:not(.light) #chat.wa .msg.msg-vip .wa-name { background: linear-gradient(90deg, #ff8ac4, #c9a6ff 55%, #7fe3ff); -webkit-background-clip: text; background-clip: text; }
#chat.wa .msg.msg-vip .msg-b:not(.bare) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #a470ff 50%, transparent), 0 1px .5px rgba(11, 20, 26, .14); }

/* ------------------------------------------------------------------ the plan's own looks (shop.py back_vip, banner_vip) */
/* the aurora card back: deep violet, a sweep of aurora light, a pattern of little ∞ and a gold glow on the lens */
html[data-cback="infiniplus"] .card.back:not([data-cb]), .card.back[data-cb="infiniplus"] {
  background: linear-gradient(115deg, transparent 30%, rgba(61, 214, 255, .4) 44%, rgba(255, 79, 163, .35) 54%, transparent 68%) 0 0 / 250% 100%,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cpath d='M13 8C6 8 3 12 3 16s3 8 10 8c8 0 14-16 22-16 7 0 10 4 10 8s-3 8-10 8C27 24 21 8 13 8z' fill='none' stroke='%23fff' stroke-opacity='.13' stroke-width='2.2'/%3E%3C/svg%3E") 0 0 / 34% auto,
    radial-gradient(90% 55% at 50% 0%, rgba(61, 214, 255, .45), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(255, 79, 163, .55), transparent 70%),
    linear-gradient(165deg, #1d0a52, #4a1fa8 50%, #8a2bb8);
  animation: cbaurora 4.2s linear infinite; }
@keyframes cbaurora { from { background-position: 130% 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -130% 0, 0 0, 0 0, 0 0, 0 0; } }
html[data-cback="infiniplus"] .card.back:not([data-cb]) .back-mark, .card.back[data-cb="infiniplus"] .back-mark { --cbg: rgba(255, 210, 61, .9); }
html[data-cback="infiniplus"] .card.back:not([data-cb]) .back-hint { color: #6a2fd0; }
/* the aurora profile background */
html body :is(.pcard, .lk-b).bn-infiniplus {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .2) 45%, transparent 60%) 0 0 / 250% 100%,
    radial-gradient(70% 90% at 88% 0%, rgba(61, 214, 255, .55), transparent 62%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 79, 163, .6), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M13 4C6 4 3 8 3 12s3 8 10 8c8 0 14-16 22-16 7 0 10 4 10 8s-3 8-10 8C27 20 21 4 13 4z' fill='none' stroke='%23ffd23d' stroke-opacity='.2' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 28px,
    linear-gradient(160deg, #1d0a52, #4a1fa8 55%, #8a2bb8);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 61, .75);
  animation: bnaurora 6s linear infinite; }
@keyframes bnaurora { from { background-position: 130% 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -130% 0, 0 0, 0 0, 0 0, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .vp-aura, .vp-star, .vp-emblem, .vp-cta::after, .vip-banner .vb-badge::before, .vip-banner .vb-badge .vip-mark { animation: none; }
  html[data-cback="infiniplus"] .card.back:not([data-cb]), .card.back[data-cb="infiniplus"], html body :is(.pcard, .lk-b).bn-infiniplus { animation: none; }
}

/* 21/11 (owner): the comparison row shows the Scancard's % as the fight shows it */
.vp-pct { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 99px; color: #fff;
  background: linear-gradient(90deg, #ff8a3d, #ff4fa3 55%, #3dd6ff); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 12px rgba(255, 79, 163, .5); }
.vp-pct b { font: 700 16px/1 Fredoka, sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.vp-pct .scard-ic { width: 12px; height: 16px; }
