/* ==========================================================================
   NetmarPlus "Warm" design system (2026-11-24)
   Cream canvas, soft orange/amber light, white rounded cards with a warm
   shadow, gradient icon squares and dark pill tags. Loaded after calm.css on
   every public page; dark-mode counterparts are at the end of this file.
   ========================================================================== */
:root {
  --w-bg: #fff1e4;
  --w-bg2: #ffe3cc;
  --w-ink: #241c2b;
  --w-mute: #6a5e70;
  --w-line: #f0d3bd;
  --w-card: #ffffff;
  --w-red: #d9261c;
  --w-grad: linear-gradient(120deg, #d9261c, #f4511e 55%, #ffb524);
  --w-grad-sq: linear-gradient(135deg, #d9261c, #f4511e 60%, #ffb524);
  --w-shadow: 0 6px 24px rgba(140, 50, 10, .12);
  --w-shadow-hi: 0 14px 36px rgba(140, 50, 10, .2);
  --w-r: 22px;
}

/* ---------- canvas ---------- */
body { background: var(--w-bg); color: var(--w-ink); }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px);
}
body::before { width: 620px; height: 620px; right: -240px; top: -200px; background: #ff9f1a; opacity: .5; }
body::after { width: 520px; height: 520px; left: -260px; bottom: -220px; background: #f4511e; opacity: .26; }
.fun-deco { display: none !important; }               /* playful stickers replaced by soft light */
h1, h2, h3 { color: var(--w-ink); letter-spacing: -.015em; }

/* ---------- header ---------- */
.topbar {
  background: rgba(255, 241, 228, .9) !important; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--w-line) !important; box-shadow: none !important;
}
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--w-grad); }
.topbar::after { display: none !important; }
#searchForm input, .topbar input[type="search"] {
  background: #fff !important; border: 1.5px solid var(--w-line) !important; border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(80, 30, 10, .05); color: var(--w-ink);
}
#searchForm input:focus, .topbar input[type="search"]:focus { border-color: #f4511e !important; box-shadow: 0 0 0 4px rgba(244, 81, 30, .14) !important; outline: none; }
.hdr-region > button, .hdr-region .mr-btn { border-radius: 999px !important; }
.hdr-cats > button, .hdr-nav a { border-radius: 999px; }
.cat-panel, .mr-panel { border-radius: 20px !important; border: 1px solid var(--w-line) !important; box-shadow: var(--w-shadow-hi) !important; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px !important; font-weight: 700; }
.btn.primary, .btn.hb-buy {
  background: var(--w-grad) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 8px 20px rgba(217, 38, 28, .22) !important; transition: transform .15s, box-shadow .15s;
}
.btn.primary:hover, .btn.hb-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(217, 38, 28, .3) !important; }
.btn.primary:disabled { background: #e9dfd8 !important; color: #8a7f8f !important; box-shadow: none !important; transform: none; }
.btn.ghost { background: #fff !important; border: 1.5px solid var(--w-line) !important; color: var(--w-ink) !important; }
.btn.ghost:hover { border-color: #f4511e !important; color: var(--w-red) !important; }

/* ---------- showcase (top slider) ---------- */
.banners .showcase { border-radius: 28px !important; box-shadow: var(--w-shadow); }
.sc-slide {
  background:
    radial-gradient(520px 420px at 100% 0%, rgba(255, 159, 26, .6), transparent 70%),
    radial-gradient(420px 360px at 0% 100%, rgba(244, 81, 30, .28), transparent 70%),
    #ffe9d8 !important;
  color: var(--w-ink) !important;
}
.sc-slide::before, .sc-slide::after { display: none !important; }
.sc-slide .sc-name { color: var(--w-ink) !important; font-weight: 800; letter-spacing: -.02em; }
.sc-slide .sc-sum { color: var(--w-mute) !important; }
.sc-slide .sc-cat { background: var(--w-ink) !important; color: #fff !important; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.sc-slide .sc-art .tile, .sc-slide .ncover { border-radius: 20px !important; box-shadow: var(--w-shadow-hi); }
.showcase .sc-dots button, .showcase [class*="dot"] { background: #e7d6ca; }
.showcase .sc-dots button[aria-current="true"], .showcase .sc-dots .on { background: var(--w-red) !important; }

/* ---------- quick category cards under the slider ---------- */
.banners.has-sc .hb-cats { display: none !important; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; padding: 0; background: none; }
.hb-cats a {
  display: flex !important; align-items: center; gap: 16px; padding: 18px 20px !important; background: var(--w-card) !important;
  border: 0 !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow); color: var(--w-ink) !important; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hb-cats a:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-hi); }
.hb-cats .ic {
  flex: none; width: 56px !important; height: 56px !important; border-radius: 16px !important; background: var(--w-grad-sq) !important;
  color: #fff !important; display: flex !important; align-items: center; justify-content: center; box-shadow: none !important;
}
.hb-cats .ic svg { width: 28px; height: 28px; color: #fff; fill: none; stroke: currentColor; }
.hb-cats .hbc-t b { display: block; font-size: 18px; font-weight: 700; color: var(--w-ink); }
.hb-cats .hbc-t small { display: block; font-size: 14px; color: var(--w-mute); margin-top: 2px; }

/* ---------- shelves ---------- */
.shelf-head h2 { font-size: 28px !important; font-weight: 800 !important; display: flex; align-items: center; gap: 12px; }
.shelf-head h2::before { display: none !important; }
.shelf-head .h-stk {
  width: 42px !important; height: 42px !important; border-radius: 13px !important; background: var(--w-grad-sq) !important;
  display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; box-shadow: none !important; transform: none !important;
}
.shelf-head .h-stk svg { width: 22px; height: 22px; color: #fff; }
.shelf-head .shelf-link { color: var(--w-ink) !important; text-decoration: none; }
.shelf-head .shelf-link:hover { color: var(--w-red) !important; }
.shelf-tools .muted.small { background: #fff; border-radius: 999px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(80, 30, 10, .06); color: var(--w-mute) !important; font-weight: 600; }
.scroll-btn {
  width: 42px !important; height: 42px !important; border-radius: 50% !important; background: #fff !important; border: 0 !important;
  box-shadow: 0 3px 12px rgba(80, 30, 10, .1) !important; color: var(--w-ink) !important; font-size: 20px;
}
.scroll-btn:hover { background: var(--w-grad) !important; color: #fff !important; }

/* ---------- product cards ---------- */
.card {
  background: var(--w-card) !important; border: 0 !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow) !important;
  padding: 10px !important; transition: transform .18s, box-shadow .18s !important; overflow: hidden;
}
.card:hover, .card:focus-visible { transform: translateY(-4px) !important; box-shadow: var(--w-shadow-hi) !important; outline: none; }
.card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f4511e !important; }
.card .tile { border-radius: 16px !important; background: var(--w-bg2) !important; border: 0 !important; box-shadow: none !important; }
.card .tile:has(.pimg) { background: #fff !important; }
.card .card-body { padding: 12px 6px 4px !important; border: 0 !important; }
.card .card-body::before, .card .card-body::after { display: none !important; }
.card h3 { font-size: 16px !important; font-weight: 700 !important; color: var(--w-ink) !important; line-height: 1.3; }
.card .price-line { border-top: 1px dashed var(--w-line) !important; padding-top: 10px; margin-top: 10px; }
.card .price, .card .price-line b { color: var(--w-red) !important; font-weight: 800; }
.amt-count { background: var(--w-ink) !important; color: #fff !important; border-radius: 999px !important; font-weight: 700; box-shadow: none !important; }
.amt-chip { background: var(--w-bg2) !important; color: var(--w-ink) !important; border: 0 !important; border-radius: 999px !important; font-weight: 600; }
.amt-chip.more { background: var(--w-grad) !important; color: #fff !important; }
.pill { border-radius: 999px !important; }
.pill.soon { background: var(--w-ink) !important; color: #fff !important; font-weight: 700; }
.card.soldout { opacity: 1 !important; filter: none !important; }

/* ---------- platforms ---------- */
.plat-chip {
  background: var(--w-card) !important; border: 0 !important; border-radius: 18px !important; box-shadow: var(--w-shadow) !important;
  transition: transform .15s, box-shadow .15s; color: var(--w-ink) !important;
}
.plat-chip:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-hi) !important; }
.plat-badge { border-radius: 14px !important; box-shadow: none !important; }
.plat-chip strong { font-weight: 700; }

/* ---------- how it works & trust ---------- */
.trust-how {
  background:
    radial-gradient(460px 320px at 100% 0%, rgba(255, 159, 26, .42), transparent 70%),
    var(--w-card) !important;
  border: 0 !important; border-radius: 28px !important; box-shadow: var(--w-shadow) !important;
}
.trust-how h2 { font-size: 30px !important; font-weight: 800 !important; }
.how-steps li { background: var(--w-bg) !important; border: 0 !important; border-radius: var(--w-r) !important; box-shadow: none !important; }
.hs-n {
  width: 58px !important; height: 58px !important; border-radius: 16px !important; background: var(--w-grad-sq) !important;
  color: #fff !important; font-size: 26px !important; font-weight: 800 !important; display: inline-flex !important; align-items: center; justify-content: center; flex: none;
}
.trust-grid { border: 0 !important; gap: 14px !important; }
.tg-it { background: var(--w-card) !important; border: 0 !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow); padding: 22px !important; }
.tg-ic {
  width: 48px !important; height: 48px !important; border-radius: 14px !important; background: var(--w-grad-sq) !important; color: #fff !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
.tg-ic svg { color: #fff; stroke: #fff; }
.tg-it a { color: var(--w-red) !important; font-weight: 700; }

/* ---------- news & blog cards ---------- */
.pn-card, .ncard, .news-card, .blog-card {
  background: var(--w-card) !important; border: 0 !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow) !important;
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.pn-card:hover, .ncard:hover, .news-card:hover, .blog-card:hover { transform: translateY(-3px); box-shadow: var(--w-shadow-hi) !important; }
.ncover { border-radius: 0; }
.ncat { border-radius: 999px !important; font-weight: 700; }
.nread { color: var(--w-red) !important; font-weight: 700; }

/* ---------- dialogs ---------- */
dialog.dlg, .dealer-dlg { border-radius: 28px !important; border: 0 !important; box-shadow: 0 30px 80px rgba(36, 28, 43, .28) !important; background: var(--w-bg) !important; }
dialog.dlg::backdrop { background: rgba(36, 28, 43, .45); backdrop-filter: blur(4px); }
#famGrid .amt-card, .amt-card { background: var(--w-card) !important; border: 0 !important; border-radius: 18px !important; box-shadow: var(--w-shadow) !important; }
#famGrid .amt-card:hover, .amt-card:hover { box-shadow: var(--w-shadow-hi) !important; transform: translateY(-2px); }
.pd-details { background: var(--w-card); border-radius: var(--w-r); padding: 4px 20px 18px; box-shadow: var(--w-shadow); }

/* ---------- category page ---------- */
.cat-page .cat-hero, .cat-page header { background: transparent !important; }

/* ---------- footer (light & warm) ---------- */
footer.footer {
  position: relative; overflow: hidden; color: var(--w-ink) !important;
  background:
    radial-gradient(600px 380px at 100% 0%, rgba(255, 159, 26, .5), transparent 70%),
    radial-gradient(520px 360px at 0% 100%, rgba(244, 81, 30, .24), transparent 70%),
    var(--w-bg2) !important;
  border-top: 0 !important; margin-top: 56px;
}
footer.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--w-grad); }
footer.footer .f-logo img { content: url("netplus-pinmarket.svg"); }
footer.footer h3, footer.footer .f-col-h, footer.footer summary { color: var(--w-ink) !important; }
footer.footer a { color: #4a4152 !important; }
footer.footer a:hover { color: var(--w-red) !important; }
footer.footer .muted, footer.footer p { color: var(--w-mute) !important; }
footer.footer details { border-color: var(--w-line) !important; }
footer.footer .pay-badge { background: #fff !important; color: var(--w-ink) !important; border: 0 !important; border-radius: 999px !important; box-shadow: var(--w-shadow); }
footer.footer .tp-badge { box-shadow: var(--w-shadow) !important; border-radius: 14px; }
footer.footer .f-social .soc { background: var(--w-grad) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(217, 38, 28, .22); }
footer.footer .f-social .soc:hover { transform: translateY(-2px); filter: brightness(1.05); }
footer.footer .f-bottom { border-top: 1px solid var(--w-line) !important; color: var(--w-mute) !important; }
footer.footer .f-bottom span { color: var(--w-mute) !important; }
footer.footer [class*="f-own"], footer.footer .f-owners, footer.footer .f-company { color: var(--w-mute) !important; border-color: var(--w-line) !important; }
footer.footer b, footer.footer strong { color: var(--w-ink) !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .banners.has-sc .hb-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hb-cats a { padding: 14px !important; gap: 12px; }
  .hb-cats .ic { width: 46px !important; height: 46px !important; border-radius: 14px !important; }
  .hb-cats .ic svg { width: 24px; height: 24px; }
  .hb-cats .hbc-t b { font-size: 15px; }
  .hb-cats .hbc-t small { font-size: 12.5px; }
  .shelf-head h2 { font-size: 22px !important; gap: 10px; }
  .shelf-head .h-stk { width: 34px !important; height: 34px !important; border-radius: 11px !important; }
  .shelf-head .h-stk svg { width: 18px; height: 18px; }
  .scroll-btn { width: 36px !important; height: 36px !important; }
  .card { padding: 8px !important; border-radius: 18px !important; }
  .card .tile { border-radius: 13px !important; }
  .card h3 { font-size: 14.5px !important; }
  .trust-how { border-radius: 22px !important; }
  .trust-how h2 { font-size: 24px !important; }
  .hs-n { width: 46px !important; height: 46px !important; font-size: 21px !important; border-radius: 14px !important; }
  body::before { width: 380px; height: 380px; right: -170px; top: -120px; }
  body::after { width: 320px; height: 320px; left: -170px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .hb-cats a, .plat-chip, .pn-card, .btn.primary { transition: none !important; }
  .card:hover, .hb-cats a:hover, .plat-chip:hover, .pn-card:hover { transform: none !important; }
}

/* ==========================================================================
   Dark theme (chosen by the user in Account settings)
   ========================================================================== */
html[data-theme="dark"] {
  --w-bg: #17121c; --w-bg2: #211a28; --w-ink: #f5eef8; --w-mute: #b9afc2; --w-line: #33293d; --w-card: #221b29;
  --w-shadow: 0 6px 24px rgba(0, 0, 0, .35); --w-shadow-hi: 0 14px 36px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] body { background: var(--w-bg) !important; color: var(--w-ink); }
html[data-theme="dark"] body::before { opacity: .12; }
html[data-theme="dark"] body::after { opacity: .08; }
html[data-theme="dark"] .topbar { background: rgba(23, 18, 28, .86) !important; border-bottom-color: var(--w-line) !important; }
html[data-theme="dark"] #searchForm input, html[data-theme="dark"] .topbar input[type="search"] { background: var(--w-card) !important; border-color: var(--w-line) !important; color: var(--w-ink); }
html[data-theme="dark"] .sc-slide { background: radial-gradient(520px 420px at 100% 0%, rgba(255, 181, 36, .18), transparent 70%), #221b29 !important; }
html[data-theme="dark"] .sc-slide .sc-cat, html[data-theme="dark"] .pill.soon, html[data-theme="dark"] .amt-count { background: #f5eef8 !important; color: #17121c !important; }
html[data-theme="dark"] .hb-cats a, html[data-theme="dark"] .card, html[data-theme="dark"] .plat-chip, html[data-theme="dark"] .tg-it,
html[data-theme="dark"] .pn-card, html[data-theme="dark"] .ncard, html[data-theme="dark"] .amt-card, html[data-theme="dark"] .pd-details,
html[data-theme="dark"] .scroll-btn, html[data-theme="dark"] .shelf-tools .muted.small, html[data-theme="dark"] .btn.ghost { background: var(--w-card) !important; color: var(--w-ink) !important; }
html[data-theme="dark"] .card .tile { background: var(--w-bg2) !important; }
html[data-theme="dark"] .card .tile:has(.pimg) { background: #fff !important; }
html[data-theme="dark"] .trust-how { background: radial-gradient(460px 320px at 100% 0%, rgba(255, 181, 36, .14), transparent 70%), var(--w-card) !important; }
html[data-theme="dark"] .how-steps li { background: var(--w-bg2) !important; }
html[data-theme="dark"] .amt-chip { background: var(--w-bg2) !important; color: var(--w-ink) !important; }
html[data-theme="dark"] dialog.dlg, html[data-theme="dark"] .dealer-dlg { background: var(--w-bg) !important; }
html[data-theme="dark"] footer.footer { background: radial-gradient(600px 380px at 100% 0%, rgba(255, 181, 36, .14), transparent 70%), #120e16 !important; color: var(--w-ink) !important; }
html[data-theme="dark"] footer.footer .f-logo img { content: url("netplus-pinmarket-dark.svg"); }
html[data-theme="dark"] footer.footer a { color: #d6cddd !important; }
html[data-theme="dark"] footer.footer .pay-badge { background: var(--w-card) !important; color: var(--w-ink) !important; }
html[data-theme="dark"] .shelf-head .shelf-link, html[data-theme="dark"] .card h3, html[data-theme="dark"] .hb-cats .hbc-t b,
html[data-theme="dark"] .sc-slide .sc-name, html[data-theme="dark"] footer.footer h3, html[data-theme="dark"] footer.footer b { color: var(--w-ink) !important; }

/* footer legal menus on the light footer */
footer.footer .lg-group { border-bottom: 1px solid var(--w-line) !important; }
footer.footer .lg-group > summary { color: var(--w-ink) !important; }
footer.footer .lg-links a { color: #4a4152 !important; }
html[data-theme="dark"] footer.footer .lg-group > summary { color: var(--w-ink) !important; }

/* mobile: category cards stack icon above the text; shelf titles stay on one line */
@media (max-width: 640px) {
  .hb-cats a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px !important; }
  .hb-cats .hbc-t b { font-size: 15px; line-height: 1.25; }
  .shelf-head h2 { font-size: 20px !important; min-width: 0; flex: 1 1 auto; }
  .shelf-head .shelf-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .shelf-head { gap: 8px; }
  .shelf-tools .muted.small { display: none; }
}
html[data-theme="dark"] .amt-logo:has(.pimg) { background: #fff !important; }
html[data-theme="dark"] .npin, html[data-theme="dark"] .pinned { color: #241c2b !important; }

/* page headings (legal center, news, blog): warm band instead of the dark block */
.legal-head {
  background:
    radial-gradient(560px 360px at 100% 0%, rgba(255, 159, 26, .55), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(244, 81, 30, .24), transparent 70%),
    var(--w-bg2) !important;
  color: var(--w-ink) !important; border-bottom: 1px solid var(--w-line);
}
.legal-head h1, .legal-head p, .legal-head .crumbs, .legal-head .crumbs a { color: var(--w-ink) !important; }
.legal-head p:not(.crumbs) { color: var(--w-mute) !important; }
.legal-head .crumbs a:hover { color: var(--w-red) !important; }
.legal-meta span, .legal-meta > * { background: var(--w-ink) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important; }
.toc { background: var(--w-card) !important; border: 0 !important; border-radius: var(--w-r) !important; box-shadow: var(--w-shadow); }
.legal-body .doc .tbl, .legal-body .doc table { border-radius: 14px; overflow: hidden; }
html[data-theme="dark"] .legal-head { background: radial-gradient(560px 360px at 100% 0%, rgba(255, 181, 36, .16), transparent 70%), var(--w-bg2) !important; }
html[data-theme="dark"] .legal-meta span, html[data-theme="dark"] .legal-meta > * { background: #f5eef8 !important; color: #17121c !important; }
html[data-theme="dark"] .toc { background: var(--w-card) !important; }
/* footer legal menus: calm.css paints these links white for the old dark footer – keep them readable on the warm footer (2026-11-26) */
footer.footer details.lg-group { border-bottom-color: var(--w-line) !important; }
footer.footer details.lg-group > summary { color: var(--w-ink) !important; }
footer.footer details.lg-group .lg-links a { color: #4a4152 !important; }
footer.footer details.lg-group .lg-links a:hover, footer.footer details.lg-group .lg-links a:focus-visible { color: var(--w-red) !important; }
html[data-theme="dark"] footer.footer details.lg-group .lg-links a { color: #d6cddd !important; }
html[data-theme="dark"] footer.footer details.lg-group .lg-links a:hover { color: #fff !important; }
/* hero meta pills ("Global", platform) sat as pale text on the light warm hero */
.sc-info .pill { background: rgba(255, 255, 255, .78) !important; color: var(--w-ink) !important; }
/* hero slide: "Read more" was white on the light hero; in dark mode the news label was dark on dark (dark.css loads later, so these selectors are stronger) */
.showcase .sc-slide .sc-cta { color: var(--w-red) !important; }
html[data-theme="dark"] .showcase .sc-slide .sc-cta { color: #ffd27a !important; }
html[data-theme="dark"] .showcase .sc-slide .sc-cat { background: #f5eef8 !important; color: #17121c !important; }
