/* ============================================================================
   VYS PRODUCTION — AWWWARDS / CSSDA MULTI-THEME ENGINE (15 INTERACTIVE THEMES)
   ============================================================================ */

:root {
  --font-display: 'Syne', 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, .24);
  --shadow-hover: 0 20px 44px rgba(0, 0, 0, .34);
  --border-w: 1px;
  --backdrop-blur: 14px;
  --bg-gif-opacity: 0.24;
  --bg-veil: rgba(9, 8, 15, 0.72);
  --btn-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 30%, transparent);
  --card-transform-hover: translateY(-4px);
}

/* ---------- Ambient Animated GIF + Canvas Backdrop ---------- */
.vys-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  opacity: var(--bg-gif-opacity);
  pointer-events: none;
  transition: opacity .55s ease, filter .55s ease;
  filter: saturate(1.12) blur(1.5px);
  transform: scale(1.03);
}
.vys-canvas-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}
.vys-bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-veil);
  pointer-events: none;
  transition: background .45s ease;
}

/* Smooth theme crossfade */
html.vys-theme-switching body {
  transition: background-color .35s ease, color .35s ease;
}

/* Typography & Awwwards Polish */
h1, h2, h3, .brand span, .hero-editorial-title {
  font-family: var(--font-display);
}
body {
  background-image: none !important;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

/* ============================================================================
   15 DISTINCT INTERACTIVE THEMES
   ============================================================================ */

/* 1. Editorial Noir (Production Portugal inspired dark studio) */
html[data-vtheme="editorial-noir"] {
  --primary: #7c3aed; --accent: #f59e0b; --bg: #08070d; --card: rgba(20, 18, 34, .88);
  --card2: rgba(28, 25, 48, .85); --text: #f6f4ff; --muted: #a19bb8;
  --line: rgba(255,255,255,.10); --soft: rgba(124,58,237,.18); --radius: 16px;
  --bg-veil: radial-gradient(circle at 15% 10%, rgba(124,58,237,.16), rgba(8,7,13,.86) 62%);
  --bg-gif-opacity: .32;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

/* 2. Minimalist Studio (Garcy Studio inspired architectural gallery) */
html[data-vtheme="minimalist-studio"] {
  --primary: #111111; --accent: #4f46e5; --bg: #f6f5f2; --card: rgba(255,255,255,.92);
  --card2: #efeee9; --text: #111111; --muted: #66645e;
  --line: rgba(17,17,17,.10); --soft: rgba(17,17,17,.07); --radius: 12px;
  --bg-veil: linear-gradient(180deg, rgba(246,245,242,.74), rgba(246,245,242,.88));
  --bg-gif-opacity: .34;
  --shadow-card: 0 8px 28px rgba(17,17,17,.06);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* 3. Neo-Brutalism (Bold ink borders, offset hard shadows, electric pop) */
html[data-vtheme="neo-brutalism"] {
  --primary: #2563eb; --accent: #facc15; --bg: #fff8db; --card: #ffffff;
  --card2: #fef08a; --text: #111111; --muted: #3f3f46;
  --line: #111111; --soft: #dbeafe; --radius: 4px; --border-w: 2.5px;
  --bg-veil: rgba(255, 248, 219, .78);
  --bg-gif-opacity: .24;
  --shadow-card: 5px 5px 0 #111111;
  --shadow-hover: 8px 8px 0 #111111;
  --btn-shadow: 4px 4px 0 #111111;
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
}
html[data-vtheme="neo-brutalism"] .card,
html[data-vtheme="neo-brutalism"] .pcard,
html[data-vtheme="neo-brutalism"] .cat,
html[data-vtheme="neo-brutalism"] .btn,
html[data-vtheme="neo-brutalism"] .iconbtn,
html[data-vtheme="neo-brutalism"] .chip {
  border: 2.5px solid #111111 !important;
  box-shadow: 4px 4px 0 #111111 !important;
}
html[data-vtheme="neo-brutalism"] .pcard:hover,
html[data-vtheme="neo-brutalism"] .cat:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: 7px 7px 0 #111111 !important;
}
html[data-vtheme="neo-brutalism"] .price { color: #b45309; }

/* 4. Soft Neumorphism (Extruded tactile depth) */
html[data-vtheme="soft-neumorphism"] {
  --primary: #4f46e5; --accent: #0ea5e9; --bg: #e2e8f0; --card: #e7ecf3;
  --card2: #dfe6f0; --text: #1e293b; --muted: #64748b;
  --line: rgba(255,255,255,.7); --soft: rgba(79,70,229,.12); --radius: 22px;
  --bg-veil: rgba(226, 232, 240, .82);
  --bg-gif-opacity: .28;
  --shadow-card: 8px 8px 18px rgba(148,163,184,.45), -8px -8px 18px rgba(255,255,255,.85);
  --shadow-hover: 12px 12px 24px rgba(148,163,184,.55), -10px -10px 22px rgba(255,255,255,.95);
  --font-display: 'Plus Jakarta Sans', sans-serif;
}
html[data-vtheme="soft-neumorphism"] .card,
html[data-vtheme="soft-neumorphism"] .pcard,
html[data-vtheme="soft-neumorphism"] .cat,
html[data-vtheme="soft-neumorphism"] .iconbtn {
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow-card);
}

/* 5. Cyberpunk 2099 (Neon magenta + cyan grid & scanlines) */
html[data-vtheme="cyberpunk-neon"] {
  --primary: #ec4899; --accent: #22d3ee; --bg: #070312; --card: rgba(18, 9, 38, .88);
  --card2: rgba(28, 12, 56, .88); --text: #f0f9ff; --muted: #a78bfa;
  --line: rgba(34, 211, 238, .28); --soft: rgba(236, 72, 153, .2); --radius: 6px;
  --bg-veil: radial-gradient(circle at 50% 0%, rgba(236,72,153,.14), rgba(7,3,18,.82) 65%);
  --bg-gif-opacity: .42;
  --shadow-card: 0 0 24px rgba(236,72,153,.16);
  --font-display: 'Space Grotesk', 'JetBrains Mono', monospace;
}
html[data-vtheme="cyberpunk-neon"] .card,
html[data-vtheme="cyberpunk-neon"] .pcard {
  box-shadow: 0 0 18px rgba(34,211,238,.12), inset 0 0 0 1px rgba(236,72,153,.22);
}
html[data-vtheme="cyberpunk-neon"] .price { color: #22d3ee; text-shadow: 0 0 10px rgba(34,211,238,.5); }
html[data-vtheme="cyberpunk-neon"] .btn:not(.ghost) {
  background: linear-gradient(95deg, #ec4899, #8b5cf6, #06b6d4);
  box-shadow: 0 0 20px rgba(236,72,153,.4);
}

/* 6. Glassmorphism Aurora (Frosted panes over northern lights) */
html[data-vtheme="glass-aurora"] {
  --primary: #10b981; --accent: #38bdf8; --bg: #051120; --card: rgba(15, 32, 54, .54);
  --card2: rgba(22, 48, 76, .52); --text: #ecfeff; --muted: #93c5fd;
  --line: rgba(186, 230, 253, .22); --soft: rgba(16, 185, 129, .18); --radius: 20px;
  --bg-veil: rgba(5, 17, 32, .52);
  --bg-gif-opacity: .56;
  --shadow-card: 0 16px 40px rgba(0,0,0,.35);
}
html[data-vtheme="glass-aurora"] .card,
html[data-vtheme="glass-aurora"] .pcard,
html[data-vtheme="glass-aurora"] .cat,
html[data-vtheme="glass-aurora"] .top {
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* 7. Swiss Typographic (Razor-sharp grid & crimson) */
html[data-vtheme="swiss-grid"] {
  --primary: #dc2626; --accent: #111111; --bg: #f5f5f3; --card: #ffffff;
  --card2: #ecece8; --text: #111111; --muted: #525252;
  --line: rgba(17,17,17,.18); --soft: rgba(220,38,38,.12); --radius: 0px;
  --bg-veil: rgba(245, 245, 243, .76);
  --bg-gif-opacity: .30;
  --shadow-card: none;
  --font-display: 'Space Grotesk', Helvetica, Arial, sans-serif;
}
html[data-vtheme="swiss-grid"] .price { color: #dc2626; }
html[data-vtheme="swiss-grid"] .btn { border-radius: 0 !important; text-transform: uppercase; letter-spacing: .06em; }

/* 8. Luxury Obsidian Gold (Editorial serif + champagne gold) */
html[data-vtheme="luxury-gold"] {
  --primary: #d4af37; --accent: #fde047; --bg: #0a0907; --card: rgba(20, 18, 13, .90);
  --card2: rgba(32, 27, 18, .90); --text: #faf5e8; --muted: #b6a682;
  --line: rgba(212, 175, 55, .24); --soft: rgba(212, 175, 55, .14); --radius: 10px;
  --bg-veil: rgba(10, 9, 7, .72);
  --bg-gif-opacity: .42;
  --font-display: 'Playfair Display', Georgia, serif;
}
html[data-vtheme="luxury-gold"] .btn:not(.ghost) {
  background: linear-gradient(135deg, #d4af37, #b5891f);
  color: #120e05;
}

/* 9. Retro Vaporwave (80s synthwave sunset) */
html[data-vtheme="retro-vaporwave"] {
  --primary: #d946ef; --accent: #fb923c; --bg: #160a30; --card: rgba(34, 15, 68, .82);
  --card2: rgba(52, 22, 98, .78); --text: #fdf4ff; --muted: #f0abfc;
  --line: rgba(251, 146, 60, .3); --soft: rgba(217, 70, 239, .22); --radius: 14px;
  --bg-veil: linear-gradient(180deg, rgba(22,10,48,.58), rgba(22,10,48,.82));
  --bg-gif-opacity: .46;
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
}

/* 10. Organic Botanical (Warm sage & terracotta) */
html[data-vtheme="organic-botanical"] {
  --primary: #2f6f4e; --accent: #c2724e; --bg: #f4f1ea; --card: rgba(255, 253, 248, .90);
  --card2: #eae4d6; --text: #1f2e24; --muted: #5c6e61;
  --line: rgba(47, 111, 78, .16); --soft: rgba(47, 111, 78, .12); --radius: 18px;
  --bg-veil: rgba(244, 241, 234, .74);
  --bg-gif-opacity: .34;
  --shadow-card: 0 10px 30px rgba(47,111,78,.08);
  --font-display: 'Playfair Display', 'Plus Jakarta Sans', serif;
}

/* 11. Bento Pastel Pop (Playful rounded Tokyo bento) */
html[data-vtheme="bento-pastel"] {
  --primary: #9333ea; --accent: #ec4899; --bg: #fef9ff; --card: rgba(255, 255, 255, .90);
  --card2: #f5ecff; --text: #2e1065; --muted: #7e639e;
  --line: rgba(147, 51, 234, .16); --soft: rgba(236, 72, 153, .14); --radius: 24px;
  --bg-veil: rgba(254, 249, 255, .64);
  --bg-gif-opacity: .45;
  --shadow-card: 0 12px 28px rgba(147,51,234,.10);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* 12. Monochrome Ink (High-fashion black & alabaster) */
html[data-vtheme="monochrome-ink"] {
  --primary: #ffffff; --accent: #d4d4d4; --bg: #080808; --card: rgba(20, 20, 20, .90);
  --card2: #1b1b1b; --text: #fafafa; --muted: #9a9a9a;
  --line: rgba(255, 255, 255, .14); --soft: rgba(255, 255, 255, .10); --radius: 8px;
  --bg-veil: rgba(8, 8, 8, .72);
  --bg-gif-opacity: .34;
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
}
html[data-vtheme="monochrome-ink"] .btn:not(.ghost):not(.danger) {
  background: #ffffff; color: #080808;
}

/* 13. Kinetic Acid Lime (Gianluca Boccia inspired creative dev) */
html[data-vtheme="acid-kinetic"] {
  --primary: #a3e635; --accent: #bef264; --bg: #0b0d0a; --card: rgba(19, 24, 16, .88);
  --card2: rgba(28, 36, 22, .9); --text: #f7fee7; --muted: #9ab377;
  --line: rgba(163, 230, 53, .22); --soft: rgba(163, 230, 53, .15); --radius: 14px;
  --bg-veil: rgba(11, 13, 10, .74);
  --bg-gif-opacity: .36;
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
}
html[data-vtheme="acid-kinetic"] .btn:not(.ghost):not(.danger) {
  background: #a3e635; color: #0b0d0a; font-weight: 800;
}

/* 14. Bauhaus Geometric (Trammat inspired modernist primaries) */
html[data-vtheme="bauhaus-pop"] {
  --primary: #1d4ed8; --accent: #dc2626; --bg: #f8f4e8; --card: #fffdf7;
  --card2: #f3ead3; --text: #141416; --muted: #57534e;
  --line: #141416; --soft: rgba(234, 179, 8, .25); --radius: 8px;
  --bg-veil: rgba(248, 244, 232, .74);
  --bg-gif-opacity: .30;
  --shadow-card: 4px 4px 0 #1d4ed8;
  --font-display: 'Space Grotesk', 'Syne', sans-serif;
}
html[data-vtheme="bauhaus-pop"] .pcard,
html[data-vtheme="bauhaus-pop"] .card {
  border: 2px solid #141416;
  box-shadow: 4px 4px 0 #eab308;
}

/* 15. Oceanic Biolume (Deep sea glowing teal & coral) */
html[data-vtheme="oceanic-bio"] {
  --primary: #14b8a6; --accent: #fb7185; --bg: #030b18; --card: rgba(7, 24, 46, .84);
  --card2: rgba(12, 36, 66, .84); --text: #ecfeff; --muted: #7dd3fc;
  --line: rgba(45, 212, 191, .22); --soft: rgba(20, 184, 166, .18); --radius: 18px;
  --bg-veil: rgba(3, 11, 24, .64);
  --bg-gif-opacity: .44;
  --shadow-card: 0 14px 36px rgba(2, 132, 199, .18);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Light theme status readability fixes for all light themes */
html[data-theme-mode="light"] .st-unpaid,
html[data-theme-mode="light"] .st-pending { color: #b45309; }
html[data-theme-mode="light"] .st-paid,
html[data-theme-mode="light"] .st-processing { color: #1d4ed8; }
html[data-theme-mode="light"] .st-success { color: #15803d; }
html[data-theme-mode="light"] .st-failed,
html[data-theme-mode="light"] .st-expired,
html[data-theme-mode="light"] .st-cancelled { color: #b91c1c; }
html[data-theme-mode="light"] .st-refunded { color: #7e22ce; }
html[data-theme-mode="light"] .btn.danger { color: #b91c1c; }
html[data-theme-mode="light"] .tag.tag-ok { background: rgba(22,163,74,.16); color: #15803d; }
html[data-theme-mode="light"] .tag.tag-warn { background: rgba(217,119,6,.16); color: #b45309; }
html[data-theme-mode="light"] .toast { background: #141418; color: #fff; }

/* ============================================================================
   UPGRADED HEADER, HERO, MARQUEE & SCROLL CHOREOGRAPHY
   ============================================================================ */
.top {
  background: color-mix(in srgb, var(--bg) 76%, transparent) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.top .wrap { gap: 8px; }
.vys-hdr-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.iconbtn { position: relative; transition: transform .18s cubic-bezier(.22,1,.36,1), border-color .18s, background .18s; }
.iconbtn:hover { transform: translateY(-2px); border-color: var(--primary); }
.vys-badge-cnt {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #111;
  font-size: 10px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.vys-badge-cnt.empty { display: none; }

/* Awwwards Editorial Hero */
.vys-editorial-hero {
  margin-top: 18px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, var(--card)), color-mix(in srgb, var(--accent) 12%, var(--card)));
  padding: clamp(20px, 3.8vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.vys-editorial-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 240px at 90% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%);
  pointer-events: none;
}
.vys-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.vys-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--soft); color: var(--text); border: 1px solid var(--line);
}
.vys-kicker .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.22); animation: vysPulse 2s infinite; }
@keyframes vysPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }
.hero-editorial-title {
  margin: 14px 0 8px;
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
  position: relative; z-index: 1;
}
.vys-hero-sub { max-width: 620px; color: var(--muted); font-size: clamp(13.5px, 1.8vw, 16px); margin: 0 0 18px; position: relative; z-index: 1; }
.vys-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.vys-hero-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); position: relative; z-index: 1;
}
.vys-hero-metrics > div { background: color-mix(in srgb, var(--card2) 70%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.vys-hero-metrics b { display: block; font-size: clamp(15px, 2vw, 20px); font-family: var(--font-display); }
.vys-hero-metrics small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 680px) { .vys-hero-metrics { grid-template-columns: repeat(2, 1fr); } }

/* Kinetic Marquee Strip */
.vys-marquee {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 0;
  white-space: nowrap;
}
.vys-marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: vysMarquee 26s linear infinite;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.vys-marquee:hover .vys-marquee-track { animation-play-state: paused; }
.vys-marquee-track span b { color: var(--accent); margin-right: 6px; }
@keyframes vysMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Scroll reveal animation */
.vys-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.vys-reveal.vys-in { opacity: 1; transform: translateY(0); }

/* ============================================================================
   PRODUCT CARD INTERACTIONS (CART, LIKE, SHARE, RATING)
   ============================================================================ */
.pcard {
  box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .25s;
}
.pcard:hover {
  transform: var(--card-transform-hover);
  box-shadow: var(--shadow-hover);
}
.pcard-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 60%, transparent);
}
.pcard-act-btn {
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.pcard-act-btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.pcard-act-btn.liked { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .5); color: #ef4444; }
.pcard-act-btn.cart-add { flex: 1; background: var(--soft); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); }
.pcard-act-btn.cart-add:hover { background: var(--primary); color: #fff; }
.pcard-rating-pill {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(10, 10, 16, .72); color: #fbbf24; backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 3px;
}

/* Product Detail Action Bar */
.pd-interact-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.pd-interact-bar .btn { flex: 1 1 0; min-width: 0; height: 42px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-interact-bar .btn.liked { background: rgba(239,68,68,.18); border-color: #ef4444; color: #ef4444; }

/* Reviews Section on Product Detail */
.rev-stars-picker { display: inline-flex; gap: 6px; margin: 6px 0; }
.rev-star-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card2); font-size: 20px; cursor: pointer; color: var(--muted);
  transition: transform .12s, color .12s, border-color .12s;
}
.rev-star-btn.on { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.14); transform: scale(1.06); }
.rev-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); margin-bottom: 10px; }
.rev-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.rev-stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; }

/* ============================================================================
   MODALS & DRAWERS (THEME STUDIO, CART, SHARE COPYWRITING, MINI-GAMES)
   ============================================================================ */
.vys-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 6, 14, .68); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: vysFadeIn .2s ease;
}
.vys-overlay.drawer { justify-content: flex-end; padding: 0; }
@keyframes vysFadeIn { from { opacity: 0; } to { opacity: 1; } }
.vys-modal {
  width: min(760px, 100%); max-height: 90vh;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: hidden;
  animation: vysSlideUp .24s cubic-bezier(.22,1,.36,1);
}
.vys-overlay.drawer .vys-modal {
  width: min(440px, 100%); height: 100vh; max-height: 100vh;
  border-radius: 0; border-left: 1px solid var(--line);
  animation: vysSlideLeft .24s cubic-bezier(.22,1,.36,1);
}
@keyframes vysSlideUp { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes vysSlideLeft { from { opacity: 0; transform: translateX(36px); } }
.vys-mh {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card2) 70%, transparent);
}
.vys-mh h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.vys-mx {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
}
.vys-mb { padding: 16px 18px; overflow-y: auto; flex: 1; }
.vys-mf { padding: 14px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card2) 60%, transparent); }

/* Theme Studio Cards */
.vys-theme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; margin-top: 12px;
}
@media (max-width: 480px) { .vys-theme-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; } }
.vys-tcard {
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--card2);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s; position: relative;
}
.vys-tcard:hover { transform: translateY(-3px); border-color: var(--primary); }
.vys-tcard.active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent); }
.vys-tprev { height: 74px; position: relative; overflow: hidden; }
.vys-tprev img { width: 100%; height: 100%; object-fit: cover; }
.vys-tfav {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 13px; backdrop-filter: blur(6px);
}
.vys-tfav.on { background: #f59e0b; color: #111; }
.vys-tbody { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vys-tbody b { font-size: 13px; line-height: 1.25; }
.vys-tbody small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.vys-tfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.vys-tpin {
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
}
.vys-tpin.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Share Copywriting Modal */
.vys-share-hero {
  display: flex; gap: 14px; align-items: center; padding: 12px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card2); margin-bottom: 14px;
}
.vys-share-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: 0 0 72px; background: var(--card); }
.vys-share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vys-tpl-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: var(--card2); margin-bottom: 10px;
}
.vys-tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.vys-tpl-text {
  white-space: pre-wrap; font-size: 13px; line-height: 1.5;
  background: var(--card); border: 1px dashed var(--line); border-radius: 9px; padding: 10px;
}

/* Cart Items */
.vys-cart-item {
  display: flex; gap: 10px; align-items: center; padding: 10px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card2); margin-bottom: 10px;
}
.vys-cart-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 52px; }
.vys-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Floating Mini-Game Launcher (Bottom Left) */
.vys-arcade-fab {
  position: fixed; left: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.35); backdrop-filter: blur(12px);
  transition: transform .18s, border-color .18s;
}
.vys-arcade-fab:hover { transform: translateY(-2px) scale(1.03); border-color: var(--accent); }

/* Mini-Games UI */
.vys-ttt-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 280px; margin: 14px auto;
}
.vys-ttt-cell {
  aspect-ratio: 1/1; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card2); font-family: var(--font-display); font-size: 34px; font-weight: 900;
  display: grid; place-items: center; cursor: pointer; transition: transform .12s, border-color .15s, background .15s;
}
.vys-ttt-cell:hover { border-color: var(--primary); transform: scale(1.03); }
.vys-ttt-cell.x { color: var(--primary); }
.vys-ttt-cell.o { color: var(--accent); }
.vys-ttt-cell.win { background: color-mix(in srgb, var(--ok) 22%, var(--card2)); border-color: var(--ok); }

/* Mobile-First Synchronized Bottom Navigation */
.vys-mnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr); gap: 4px;
}
.vys-mnav button, .vys-mnav a {
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 5px 2px; border-radius: 10px; font-size: 10.5px; font-weight: 700; cursor: pointer; position: relative;
}
.vys-mnav .ic { font-size: 18px; line-height: 1.1; }
.vys-mnav .on { color: var(--primary); background: var(--soft); }

@media (max-width: 768px) {
  .vys-mnav { display: grid; }
  .vys-arcade-fab { display: none; }
  .cs { bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; right: 12px; }
  .music-btn { bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important; right: 12px; }
  footer { padding-bottom: 112px !important; }
  .top .wrap {
    height: auto !important; min-height: 58px; padding-top: 8px; padding-bottom: 9px;
    display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  }
  .top .wrap .brand { flex: 1 1 auto; }
  .top .wrap .brand span { display: inline !important; font-size: 15px; }
  .top .wrap .search { order: 3; flex: 1 0 100%; max-width: none !important; margin: 0 !important; }
  .top .wrap #acctBtn { display: none; }
  .vys-hdr-actions .hide-mob { display: none; }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  .vys-marquee-track, .vys-kicker .pulse-dot { animation: none !important; }
  .vys-reveal { opacity: 1 !important; transform: none !important; }
}
