/* ==========================================================================
   NetmarPlus PIN MARKET – "Sticker pop" theme
   White background, playful sticker graphics, chunky game-style controls.
   Product images and product cards are intentionally left unchanged.
   ========================================================================== */
:root {
  --pop-y: #ffd23f; --pop-p: #ff4f9e; --pop-m: #13c4b8; --pop-v: #8a3bff; --pop-o: #ff8a3d; --pop-b: #3d8bff;
  --ink: #1a0f4a;
  --wave-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V12C20 12 20 2 40 2s20 10 40 10 20-10 40-10v22z' fill='%231a0f4a'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 10'%3E%3Cpath d='M2 6c4-5 8-5 11 0s7 5 11 0 7-5 11 0 7 5 11 0' fill='none' stroke='%23ffd23f' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cg opacity='.3'%3E%3Crect x='18' y='30' width='12' height='5' rx='2.5' fill='%23ffd23f' transform='rotate(30 24 32)'/%3E%3Ccircle cx='120' cy='22' r='4' fill='%23ff4f9e'/%3E%3Cpath d='M180 60l4 9 9 4-9 4-4 9-4-9-9-4 9-4z' fill='%238a3bff'/%3E%3Crect x='70' y='110' width='12' height='5' rx='2.5' fill='%2313c4b8' transform='rotate(-25 76 112)'/%3E%3Ccircle cx='190' cy='160' r='5' fill='%23ffd23f'/%3E%3Cpath d='M30 170c4-5 8-5 11 0s7 5 11 0' fill='none' stroke='%23ff4f9e' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='140' cy='196' r='3.5' fill='%233d8bff'/%3E%3Cpath d='M110 150l3 6 6 3-6 3-3 6-3-6-6-3 6-3z' fill='%23ff8a3d'/%3E%3C/g%3E%3C/svg%3E");
}
body { background: #fff; }

/* ---------- Ticker: candy gradient with sparkles ---------- */
.ticker { background: linear-gradient(90deg, #6a2cff, #c42cff 35%, #ff4f9e 70%, #ff8a3d); }
.ticker span::after { width: 12px; height: 12px; background: var(--pop-y); transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0l2.6 7.4L20 10l-7.4 2.6L10 20l-2.6-7.4L0 10l7.4-2.6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0l2.6 7.4L20 10l-7.4 2.6L10 20l-2.6-7.4L0 10l7.4-2.6z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Section headings with stickers ---------- */
.shelf-head h2:has(.h-stk)::before, .faq h2:has(.h-stk)::before { display: none; }
.h-stk { flex: none; width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; vertical-align: middle;
  background: var(--stk, #fff4c7); transform: rotate(-8deg); box-shadow: 0 4px 0 var(--stk-d, #f1d36b);
  transition: transform .35s cubic-bezier(.3, 1.7, .5, 1); }
.h-stk svg { width: 30px; height: 30px; display: block; }
.shelf-head:hover .h-stk, .faq h2:hover .h-stk, .about h2:hover .h-stk { transform: rotate(8deg) scale(1.08); }
.shelf-head h2::after { content: ""; width: 44px; height: 10px; flex: none; background: var(--squiggle) center/contain no-repeat; margin-left: 2px; }
.shelf-head h2 .shelf-link { color: inherit; text-decoration: none; }
.h-stk[data-s="fire"]      { --stk: #ffe6dc; --stk-d: #ffbea6; }
.h-stk[data-s="controller"]{ --stk: #ece4ff; --stk-d: #cdbaff; }
.h-stk[data-s="giftcard"]  { --stk: #ffe4f1; --stk-d: #ffb5d6; }
.h-stk[data-s="gem"]       { --stk: #dcf8f3; --stk-d: #9de6d8; }
.h-stk[data-s="key"]       { --stk: #fff1d1; --stk-d: #ffd88a; }
.h-stk[data-s="crown"]     { --stk: #efe3ff; --stk-d: #cfb2ff; }
.h-stk[data-s="megaphone"] { --stk: #ffe4f1; --stk-d: #ffb5d6; }
.h-stk[data-s="question"]  { --stk: #ece4ff; --stk-d: #cdbaff; }
.h-stk[data-s="heart"]     { --stk: #ffe4f1; --stk-d: #ffb5d6; }
.h-stk[data-s="star"]      { --stk: #fff4c7; --stk-d: #f1d36b; }
.h-stk[data-s="sparkle"]   { --stk: #ece4ff; --stk-d: #cdbaff; }
.h-stk[data-s="dice"]      { --stk: #dcf8f3; --stk-d: #9de6d8; }
.h-stk[data-s="trophy"]    { --stk: #fff4c7; --stk-d: #f1d36b; }

/* ---------- Category tiles: candy stickers ---------- */
.cat { position: relative; overflow: hidden; border-radius: 22px; background: color-mix(in srgb, var(--cc) 8%, #fff);
  border: 2px solid color-mix(in srgb, var(--cc) 26%, #fff); box-shadow: 0 5px 0 color-mix(in srgb, var(--cc) 30%, #fff);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.cat::after { content: ""; position: absolute; right: -22px; top: -22px; width: 78px; height: 78px; border-radius: 50%;
  background: color-mix(in srgb, var(--cc) 14%, #fff); z-index: 0; }
.cat > * { position: relative; z-index: 1; }
.cat .ic { transform: rotate(-8deg); border-radius: 18px; box-shadow: 0 4px 0 color-mix(in srgb, var(--cc) 60%, #000); transition: transform .35s cubic-bezier(.3, 1.7, .5, 1); }
.cat:hover { transform: translateY(-4px); box-shadow: 0 9px 0 color-mix(in srgb, var(--cc) 30%, #fff); border-color: color-mix(in srgb, var(--cc) 45%, #fff); }
.cat:hover .ic { transform: rotate(7deg) scale(1.07); }
.cat:active { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--cc) 30%, #fff); }
.cat strong { color: var(--ink); }

/* ---------- USP strip: pastel dashed stickers ---------- */
.usp div { border-radius: 18px; background: var(--u-bg); border: 2px dashed var(--u-bd); }
.usp div:nth-child(1) { --u-bg: #fff8dc; --u-bd: #ffe17c; }
.usp div:nth-child(2) { --u-bg: #e5faf6; --u-bd: #a3e9dc; }
.usp div:nth-child(3) { --u-bg: #eaf2ff; --u-bd: #b5cdfb; }
.usp div:nth-child(4) { --u-bg: #ffeef6; --u-bd: #ffc0dc; }
.usp [data-icon] { animation: np-wob 5s ease-in-out infinite; }
.usp div:nth-child(2) [data-icon] { animation-delay: -1.2s; }
.usp div:nth-child(3) [data-icon] { animation-delay: -2.4s; }
.usp div:nth-child(4) [data-icon] { animation-delay: -3.6s; }
.price-note { border-radius: 14px; }

/* ---------- Platform chips: blob badges ---------- */
.plat-chip { border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 4px 0 #ece7fb; }
.plat-chip:hover { transform: translateY(-3px); border-color: var(--c2); box-shadow: 0 7px 0 color-mix(in srgb, var(--c2) 30%, #fff); }
.plat-badge { border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; transform: rotate(-6deg); box-shadow: 0 3px 0 color-mix(in srgb, var(--c1) 70%, #000); transition: transform .35s cubic-bezier(.3, 1.7, .5, 1); }
.plat-chip:hover .plat-badge { transform: rotate(8deg) scale(1.08); }

/* ---------- Controls ---------- */
.btn.ghost { box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 #ece7fb; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--violet), 0 4px 0 #dccfff; }
.btn.ghost:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--violet), 0 1px 0 #dccfff; }
.scroll-btn { border: 2px solid var(--line); box-shadow: 0 3px 0 #ece7fb; font-weight: 800; transition: transform .15s; }
.scroll-btn:hover { transform: translateY(-2px); background: #fff8dc; border-color: var(--pop-y); color: var(--ink); }
.scroll-btn:active { transform: translateY(2px); box-shadow: none; }
.signin-btn { box-shadow: 0 4px 0 #4a17c4, 0 10px 22px -10px rgba(106,44,255,.8); }
.signin-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #4a17c4; }

/* ---------- Floating decoration stickers (added by fun.js) ---------- */
.fun-host { position: relative; }
.fun-deco { position: absolute; width: var(--sz, 38px); height: var(--sz, 38px); pointer-events: none; z-index: 0;
  filter: drop-shadow(0 6px 8px rgba(26,15,74,.15)); animation: np-float 7s ease-in-out infinite; }
.fun-deco svg { width: 100%; height: 100%; display: block; }
.fun-host > :not(.fun-deco) { position: relative; z-index: 1; }

/* ---------- NetmarPlus card section ---------- */
.netplus { background: var(--confetti) 0 0/340px 340px, linear-gradient(180deg, #f7f2ff, #fff 85%); border-radius: 36px 36px 0 0; }
.netplus .steps li::marker, .netplus .steps .n { color: var(--violet); }

/* ---------- About ---------- */
.about-in { background: linear-gradient(135deg, #fff8dc, #fff3fa 60%, #effaff); border: 2px solid #fbeecc; position: relative; overflow: hidden; }
.about-facts li { border: 2px solid var(--line); box-shadow: 0 4px 0 var(--f-sh, #ece7fb); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.about-facts li:nth-child(1) { --f-sh: #a3e9dc; } .about-facts li:nth-child(2) { --f-sh: #ffd88a; } .about-facts li:nth-child(3) { --f-sh: #b5cdfb; }
.about-facts li:hover { transform: translateY(-3px) rotate(-.6deg); }

/* ---------- FAQ: bubbly cards ---------- */
.faq h2 { display: flex; align-items: center; gap: 12px; }
.faq details { border: 2px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #ece7fb; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--q, #8a3bff) 45%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--q, #8a3bff) 30%, #fff); }
.faq details:nth-of-type(5n+1) { --q: #8a3bff; } .faq details:nth-of-type(5n+2) { --q: #ff4f9e; } .faq details:nth-of-type(5n+3) { --q: #13c4b8; }
.faq details:nth-of-type(5n+4) { --q: #ff8a3d; } .faq details:nth-of-type(5n+5) { --q: #3d8bff; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--q) 14%, #fff); color: var(--q); font: 800 1.25rem/1 var(--font-body); transition: transform .3s cubic-bezier(.3, 1.7, .5, 1); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--q); color: #fff; }

/* ---------- News cards ---------- */
.ncard { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.ncard:hover { transform: translateY(-4px) rotate(-.4deg); }

/* ---------- Footer: wavy top + sparkles ---------- */
.footer { position: relative; margin-top: 64px; background: var(--night); }
.footer::after { content: ""; position: absolute; inset: 0; background: var(--confetti) 0 0/380px 380px; opacity: .45; pointer-events: none; }
.footer > :not(.fun-deco) { position: relative; z-index: 1; }
.footer > .fun-deco { z-index: 1; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: var(--wave-ink) 0 0/120px 24px repeat-x; }
.f-companies .n { border-radius: 50%; background: var(--pop-p); }

/* ---------- Category page header ---------- */
.cp-head { position: relative; overflow: hidden; }
.cp-head::after { content: ""; position: absolute; inset: 0; background: var(--confetti) 0 0/200px 200px; opacity: .6; pointer-events: none; mix-blend-mode: screen; }
.cp-sub { box-shadow: 0 3px 0 #ece7fb; }

/* ---------- Menu ---------- */
.menu-cats a .ic, .menu-cats a span:first-child { transition: transform .3s cubic-bezier(.3, 1.7, .5, 1); }
.menu-cats a:hover span:first-child { transform: rotate(-8deg) scale(1.06); }

@keyframes np-wob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-2px); } }
@keyframes np-float { 0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, -8deg) * -1)); } }

@media (max-width: 720px) {
  .h-stk { width: 36px; height: 36px; border-radius: 12px; } .h-stk svg { width: 24px; height: 24px; }
  .shelf-head h2::after { width: 32px; }
  .fun-deco { --sz: 28px !important; opacity: .85; }
  .fun-deco.hide-m { display: none; }
  .netplus { border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .usp [data-icon], .fun-deco { animation: none; }
  .cat, .cat .ic, .h-stk, .plat-badge, .ncard, .about-facts li, .faq summary::after { transition: none; }
}
@media (max-width: 1100px) { .faq > .fun-deco { display: none; } }

/* ---------- Footer pages: not shown on the home page ---------- */
.info-page:not(.on) { display: none !important; }
.info-page.on { padding-top: 18px; padding-bottom: 40px; min-height: 50vh; }
.info-page.on.netplus { margin-top: 0; border-radius: 0; }
.info-page.on.faq { margin-left: auto; margin-right: auto; }
.info-crumb { margin-bottom: 18px; }
.netplus .info-crumb { margin-bottom: 26px; }
