/* GWP Ativos — paleta da marca: #FFFFFF / #1557FF / #071B46, com tons derivados para o tema escuro. */
:root {
  --bg: #030C22;
  --navy: #071B46;
  --card: #081634;
  --card-2: #0A1A3C;
  --line: #1E3360;
  --line-2: #24407A;
  --brand: #1557FF;
  --brand-hi: #2F6DFF;
  --tint: #6E9BFF;
  --tint-2: #9DBBFF;
  --tint-3: #D8E4FF;
  --muted: #93A6CC;
  --soft: #B3C2E0;
  --text: #F3F6FF;
  --on: #22C55E;
  --header-h: 73px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 150px); -webkit-text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sprite { position: absolute; }
:focus-visible { outline: 2px solid var(--tint-2); outline-offset: 2px; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
.wa-svg { display: block; width: 100%; height: 100%; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }
.wrap { max-width: 1040px; margin: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: #030B20F5; border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.head { display: flex; align-items: center; gap: 10px; min-height: 72px; }
.brandlink { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 54px; height: 50px; display: grid; place-items: center; flex: none; border-radius: 13px; background: var(--bg); border: 1px solid #1B45A8; box-shadow: 0 0 18px #1557FF35; overflow: hidden; }
.logo img { width: 72%; height: auto; display: block; }
.brandtext { display: flex; flex-direction: column; min-width: 0; }
.brand { font: 800 15px/1.5 Sora, Inter, sans-serif; letter-spacing: 1px; white-space: nowrap; }
.brand span { color: var(--tint); }
.small { color: var(--muted); font-size: 11px; letter-spacing: 1px; margin-top: 3px; white-space: nowrap; }
.small b { color: var(--text); }
.dot { color: var(--tint); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs, .viewtoggle { display: flex; background: #0A1A3C; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 6px 8px; border-radius: 999px; min-width: 32px; }
.langs button[aria-pressed="true"], .viewtoggle button[aria-pressed="true"] { background: #123E9E; color: var(--tint-3); }
.lang-select { display: none; width: 62px; appearance: none; -webkit-appearance: none; background: #0A1A3C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E9BFF' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center; border: 1px solid var(--line-2); color: var(--tint-3); font-size: 12px; font-weight: 800; padding: 9px 22px 9px 11px; border-radius: 999px; }
.wa-round { width: 44px; height: 44px; display: block; border-radius: 50%; box-shadow: 0 6px 18px #00000059; flex: none; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: #0A1A3C; color: var(--tint-2); }

/* hero */
.hero { position: relative; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 0%, #0F3FA8, var(--bg) 72%); padding: 26px 12px 30px; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#6E9BFF55 1px, transparent 1.4px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(115deg, #000, transparent 32%, transparent 68%, #000); mask-image: linear-gradient(115deg, #000, transparent 32%, transparent 68%, #000); }
.hero > * { position: relative; }
.hero-logo { width: 161px; height: auto; display: block; margin: 0 auto 14px; filter: drop-shadow(0 6px 24px #1557FF66); }
.hero small { color: var(--tint-2); letter-spacing: 3px; font-weight: 800; font-size: 12px; }
.hero h1 { font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: clamp(34px, 7vw, 60px); margin: 8px 0 4px; letter-spacing: -1.2px; line-height: 1.05; }
.hero h1 .hl { color: var(--tint); }
.hero p { font-size: 11px; letter-spacing: 1.5px; color: var(--tint-2); margin: 8px 0 0; opacity: .85; }

/* links, serviços e categorias */
.links { padding-top: 20px; }
.linkcard, .service { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); margin-bottom: 11px; text-align: left; transition: border-color .15s; }
.linkcard:hover, .service:hover { border-color: var(--brand-hi); }
.ico { display: grid; place-items: center; background: #0F2A66; border: 1px solid #234FB0; color: var(--tint-2); border-radius: 12px; width: 44px; height: 44px; font-size: 18px; flex: none; }
.ico .ic { width: 22px; height: 22px; }
.ico.plain { background: none; border-color: transparent; padding: 5px; }
.link-text { flex: 1; min-width: 0; text-align: center; }
.linkcard b { font-size: 16px; }
.linkcard p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.arr { margin-left: auto; font-size: 24px; color: var(--muted); }
.sect { font-size: 12px; letter-spacing: 2px; color: var(--tint-2); font-weight: 800; margin: 22px 0 13px; }
.services { display: grid; grid-template-columns: 1fr; gap: 10px; }
.service { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.service .ico { width: 38px; height: 38px; }
.service-name { flex: 1; min-width: 0; text-align: center; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 23px; }
.cats .cat[data-kind="all"] { grid-column: 1 / -1; }
.cat { display: flex; align-items: center; text-align: left; gap: 11px; padding: 16px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); color: var(--soft); width: 100%; }
.cat.active { background: #0E2F7C; border-color: var(--brand-hi); color: var(--tint-3); box-shadow: inset 0 0 0 1px #2F6DFF44; }
.cat b { font-size: 14px; display: block; }
.cat small { display: block; font-size: 10px; letter-spacing: 1.4px; color: var(--muted); margin-top: 4px; }
.cat-icon { color: var(--tint); min-width: 27px; text-align: center; display: grid; place-items: center; }
.cat-icon img { width: 27px; height: auto; display: block; }
.brand-chip { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fff; box-shadow: 0 2px 10px #00000040; }
.cat-icon .brand-chip .ic { width: 20px; height: 20px; }
.count-kind { display: none; }
.wa-logo { width: 30px !important; height: 30px !important; }
.cat-wa { border-color: #25D36666; background: linear-gradient(150deg, #0B2B2A, var(--card-2) 70%); }
.cat-wa.active { border-color: #25D366; background: linear-gradient(150deg, #0E4A38, #0E2F7C); color: #fff; box-shadow: inset 0 0 0 1px #25D36655, 0 8px 26px #25D36622; }
.item-wa { border-color: #25D36655; background: linear-gradient(165deg, #0A2730, var(--card) 45%); }
.item-wa::before { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #25D366, var(--brand-hi)); }
.kind-intro { position: relative; overflow: hidden; margin-top: 12px; padding: 18px; border: 1px solid #25D36666; border-radius: 16px; background: linear-gradient(135deg, #0C3A32, #0B2460 62%); }
.kind-intro::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#ffffff1f 1px, transparent 1.4px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(100deg, transparent 60%, #000); mask-image: linear-gradient(100deg, transparent 60%, #000); }
.kind-intro h3 { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; font: 800 17px/1.3 Sora, Inter, sans-serif; }
.kind-intro ol { position: relative; z-index: 1; list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; }
.kind-intro li { counter-increment: passo; display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid #ffffff1f; border-radius: 12px; background: #030C2259; font-size: 13px; line-height: 1.4; color: var(--tint-3); }
.kind-intro li::before { content: counter(passo); flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 900; }
.cat-icon .ic { width: 26px; height: 26px; }

/* catálogo */
.catalog { border-top: 1px solid var(--line); padding: 0 0 60px; background: linear-gradient(130deg, #061536, #030A1E 65%); }
.toolbar { position: sticky; top: var(--header-h); z-index: 8; background: #061536F2; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 0; }
#kindSelect, #sort { width: 100%; appearance: none; -webkit-appearance: none; background: #0B2460 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E9BFF' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid #2559D0; color: var(--tint-3); padding: 12px 38px 12px 14px; border-radius: 14px; font-weight: 800; }
.tabs { display: flex; gap: 8px; margin: 10px 0; }
.tab { flex: 1; text-align: center; background: #0B1B3F; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 4px; font-weight: 800; color: var(--muted); font-size: 13px; }
.tab .n { color: #7288B5; font-weight: 700; margin-left: 2px; }
.tab.active { background: #123E9E; border-color: var(--brand-hi); color: var(--tint-3); }
.tab.active .n { color: var(--tint-2); }
.searchline { display: flex; gap: 9px; margin: 0; }
.search-wrap { flex: 1; min-width: 0; position: relative; display: block; }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7D93C0; display: flex; }
.search { width: 100%; min-width: 0; background: #0B1C42; border: 1px solid #2C4478; border-radius: 24px; padding: 13px 14px 13px 40px; color: #fff; }
.search::placeholder { color: #7D93C0; }
.filterbtn { position: relative; display: flex; align-items: center; gap: 7px; background: #0F2452; border: 1px solid #2F4E8F; padding: 0 16px; border-radius: 22px; color: #fff; font-weight: 800; }
.badge { background: var(--tint); color: var(--navy); border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.bar { border: 1px solid #2559D0; background: #0B2460; color: var(--tint-3); padding: 14px 16px; border-radius: 16px; font-weight: 800; font-size: 18px; margin: 18px 0 0; }
.bar small { font-size: 11px; letter-spacing: 2px; display: block; margin-top: 4px; font-weight: 800; color: var(--tint-2); }
.activechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.countline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 6px; }
.count { color: var(--soft); margin: 0; min-width: 0; }
.viewtoggle { display: inline-flex; flex: none; }
.viewtoggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 800; padding: 7px 12px; min-height: 34px; border-radius: 999px; }
.viewtoggle .ic { width: 15px; height: 15px; }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--tint-2); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.state { color: var(--soft); padding: 28px 0; text-align: center; }

.group { margin-top: 18px; }
.group-title { display: flex; justify-content: space-between; align-items: center; color: var(--tint); letter-spacing: 1.5px; font-weight: 900; font-size: 12px; margin: 22px 0 13px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; text-transform: uppercase; }
.group-count { background: #0F2A66; border: 1px solid #234FB0; color: var(--tint-2); border-radius: 999px; padding: 2px 10px; font-size: 11px; letter-spacing: 0; }
.board-head { display: flex; align-items: center; gap: 10px; }
.board-head .group-title { flex: 1; min-width: 0; }
.rail-nav { display: none; gap: 6px; flex: none; margin-top: 9px; }
.rail-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #2B4A8C; background: #0C1F4C; color: var(--tint-2); font-size: 20px; line-height: 1; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail > .item:only-child { flex-basis: min(100%, 300px); }
.rail { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; margin: 0 -16px; padding: 2px 16px 14px; scroll-padding-inline: 16px; }
.rail > .item { flex: 0 0 min(76%, 320px); scroll-snap-align: start; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
@media (hover: hover) and (pointer: fine) { .rail-nav { display: inline-flex; } }
@media (min-width: 900px) { .rail > .item { flex-basis: 300px; } }
@media (max-width: 720px) {
  .rail { --cardw: min(74vw, 330px); padding-inline: calc(50% + 16px - var(--cardw) / 2); scroll-padding-inline: 0; }
  .rail > .item { flex: 0 0 var(--cardw); scroll-snap-align: center; }
  .cards { grid-template-columns: 1fr; }
}

/* card do ativo */
.item { display: flex; flex-direction: column; position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.item.highlight { border-color: var(--tint); box-shadow: 0 0 0 2px #6E9BFF55, 0 10px 40px #1557FF33; }
.item-head { display: flow-root; min-height: 2.6em; }
.item-title { font-size: 17px; margin: 0; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.head-side { float: right; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0 0 6px 10px; }
.flags { display: flex; align-items: center; justify-content: center; line-height: 0; background: #0E2A66; border: 1px solid #1F4490; border-radius: 7px; padding: 3px 8px; }
.flag { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff2b; }
.available { background: #0E2A66; color: var(--tint-3); display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; padding: 4px 8px; font-size: 10px; letter-spacing: 1px; font-weight: 900; white-space: nowrap; border: 1px solid #1F4490; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 3px #22C55E2E, 0 0 8px #22C55EB3; flex: none; animation: on-pulse 2.4s ease-in-out infinite; }
@keyframes on-pulse { 50% { box-shadow: 0 0 0 5px #22C55E14, 0 0 12px #22C55EE6; } }
.facts { list-style: none; margin: 14px 0 0; padding: 0; color: var(--soft); line-height: 1.85; font-size: 14px; }
.facts strong { color: #F2F6FF; font-weight: 600; overflow-wrap: anywhere; }
.fe { display: inline-block; width: 1.6em; }
.facts { margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 11px; font-weight: 700; color: #4ADE80; border: 1px solid #1F6B3A; background: #0B2418; border-radius: 999px; padding: 3px 9px; }
.more { margin: 14px 0 0; color: var(--soft); line-height: 1.7; }
.more-btn { width: 100%; cursor: pointer; background: none; border: 1px solid #3C5A9E; padding: 11px 12px; border-radius: 10px; color: var(--tint-2); font-weight: 800; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.more-btn:hover { border-color: var(--tint); color: #fff; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--tint-3); }
.copytext { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2B4A8C; background: #0C1F4C; color: var(--tint-2); font-weight: 800; font-size: 13px; }
.copytext:hover, .icon-action:hover { border-color: var(--tint); color: #fff; }
.copytext .ic { width: 18px; height: 18px; }
.bottom { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { color: var(--tint); font-weight: 900; font-size: 20px; }
.price small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1px; margin-bottom: 4px; }
.actions { display: flex; gap: 8px; align-items: center; }
.icon-action { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #2B4A8C; background: #0C1F4C; color: var(--tint-2); }
.buy { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand-hi), var(--brand)); color: #fff; padding: 11px 14px; border-radius: 12px; font-weight: 800; font-size: 12px; letter-spacing: .3px; box-shadow: 0 6px 18px #1557FF44; }
.buy .wa-svg { width: 18px; height: 18px; flex: none; }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 18px 0 0; margin: 0; }

/* card mais enxuto no quadro */
.is-compact .group-title { margin: 16px 0 10px; }
.is-compact .item { padding: 14px 13px 13px; border-radius: 16px; }
.is-compact .item-title { font-size: 15px; }
.is-compact .available { padding: 3px 7px; font-size: 9px; gap: 5px; }
.is-compact .status-dot { width: 6px; height: 6px; }
.is-compact .head-side { gap: 4px; }
.is-compact .flags { padding: 3px 7px; }
.is-compact .flag { width: 15px; height: 10px; }
.is-compact .facts { margin-top: 10px; font-size: 13px; line-height: 1.65; }
.is-compact .tags { gap: 5px; }
.is-compact .tag { font-size: 10px; padding: 2px 8px; }
.is-board .tag:nth-child(n+4) { display: none; }
.is-compact .more { margin-top: 10px; }
.is-compact .more-btn { padding: 8px 10px; font-size: 13px; }
.is-compact .bottom { padding-top: 11px; margin-top: 11px; column-gap: 6px; row-gap: 10px; }
.is-compact .actions { display: contents; }
.is-compact .price { margin-right: auto; font-size: 18px; }
.is-compact .price small { font-size: 9px; margin-bottom: 2px; }
.is-compact .icon-action { width: 36px; height: 36px; border-radius: 10px; }
.is-compact .buy { flex: 1 0 100%; justify-content: center; padding: 11px 12px; }

.foot { text-align: center; padding: 26px 16px calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.foot a { color: var(--tint-2); }

/* filtros e modal */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2B4A8C; background: #0B1B3F; color: var(--tint-3); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.chip.on { background: #123E9E; border-color: var(--brand-hi); color: #fff; }
.chip-n { background: #152A5C; color: var(--tint-2); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.chip.on .chip-n { background: #0B2460; }
.chip.main { padding: 10px 16px; font-size: 14px; border-color: #3560BE; background: #0E2A66; }
.chip.main.on { background: var(--brand); border-color: var(--tint); }
.backdrop { position: fixed; inset: 0; z-index: 30; background: #01040ACC; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet, .modal { position: fixed; z-index: 31; background: #061330; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 -10px 50px #0008; }
.sheet { left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 22px 22px 0 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: 6px 20px 20px; -webkit-overflow-scrolling: touch; flex: 1; }
.sheet-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 800; margin: 20px 0 10px; }
.sheet-foot { display: flex; gap: 14px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.apply { flex: 1; border: 0; border-radius: 999px; padding: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--brand-hi), var(--brand)); box-shadow: 0 8px 24px #1557FF55; }
.sheet-main { margin-top: 16px; padding: 2px 14px 16px; border: 1px solid #234FB0; border-radius: 16px; background: linear-gradient(160deg, #0B2460, #071B46); }
.sheet-main .sheet-label { color: var(--tint-2); margin-top: 14px; }
.range { position: relative; height: 34px; margin: 4px 6px 0; }
.range::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: linear-gradient(90deg, #1E3360 var(--from, 0%), var(--brand) var(--from, 0%), var(--tint) var(--to, 100%), #1E3360 var(--to, 100%)); }
.range input[type='range'] { position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.range input[type='range']::-webkit-slider-runnable-track { background: none; height: 34px; }
.range input[type='range']::-moz-range-track { background: none; }
.range input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; background: var(--tint-3); border: 3px solid var(--brand); box-shadow: 0 0 0 4px #1557FF33; cursor: grab; }
.range input[type='range']::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--tint-3); border: 3px solid var(--brand); cursor: grab; }
.range-label { color: var(--tint); font-weight: 800; margin: 6px 0 0; font-size: 14px; }
.switch { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--tint-3); font-weight: 700; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: 86vh; border-radius: 20px; }
.modal-body { overflow: auto; overscroll-behavior: contain; padding: 6px 20px 10px; color: var(--muted); white-space: pre-wrap; }
.modal-actions { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.modal-actions .copytext { width: auto; margin: 0; }
.modal-body .desc { margin-top: 8px; }
.sheet-head h2 { line-height: 1.25; padding-right: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); z-index: 40; background: #0E2F7C; border: 1px solid var(--brand-hi); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; }
  .toolbar .wrap { display: grid; grid-template-columns: 280px 1fr; gap: 10px; align-items: center; }
  .toolbar .tabs { margin: 0; }
  .toolbar .searchline { grid-column: 1 / -1; }
}
@media (min-width: 600px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .cats .cat[data-kind="all"] { grid-column: auto; }
}
@media (max-width: 520px) {
  :root { --header-h: 59px; }
  html { scroll-padding-top: calc(var(--header-h) + 112px); }
  .header { background: #030B20; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toolbar { background: #061536; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 8px 0; }
  .brand { font-size: 13px; }
  .head-actions .langs { display: none; }
  .head-actions .lang-select { display: block; }
  .head { min-height: 58px; }
  .logo { width: 42px; height: 40px; border-radius: 11px; }
  .wa-round { width: 40px; height: 40px; }
  .lang-select { padding: 8px 20px 8px 10px; }
  .hero { padding: 20px 16px 22px; }
  .hero-logo { width: 108px; margin-bottom: 12px; }
  .hero h1 { font-size: 29px; margin: 0 0 4px; letter-spacing: -.8px; }
  .hero p { font-size: 10px; letter-spacing: 1px; margin-top: 6px; line-height: 1.5; }
  .links { padding-top: 14px; }
  .quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .linkcard { margin: 0; flex-direction: column; justify-content: center; padding: 12px 8px; gap: 6px; border-radius: 13px; min-height: 60px; }
  .link-text { flex: none; }
  .linkcard b { display: block; font-size: 13px; line-height: 1.25; }
  .linkcard p, .linkcard .arr { display: none; }
  .ico { width: 34px; height: 34px; border-radius: 10px; }
  .ico .ic { width: 18px; height: 18px; }
  .ico.plain { width: 32px; height: 32px; padding: 0; }
  .sect { font-size: 11px; margin: 18px 0 8px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .service { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; font-size: 11.5px; letter-spacing: .2px; line-height: 1.3; border-radius: 13px; }
  .service .ico { width: 32px; height: 32px; }
  .service .ico .ic { width: 18px; height: 18px; }
  .service .arr { display: none; }
  .service-name { flex: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
  .cats .cat[data-kind="all"] { grid-column: auto; }
  .cat { flex-direction: column; text-align: center; gap: 6px; padding: 10px 4px; border-radius: 13px; }
  .cat b { font-size: 12px; line-height: 1.2; }
  .cat small { font-size: 9px; letter-spacing: .6px; margin-top: 3px; }
  .cat-icon { min-width: 0; height: 30px; }
  .cat-icon img { width: 30px; }
  .cat-icon .ic { width: 26px; height: 26px; }
  .toolbar .wrap { display: flex; flex-direction: column; gap: 6px; }
  .kindbar, .bar { display: none; }
  .searchline { order: 1; }
  .tabs { order: 2; margin: 0; gap: 6px; }
  .tab { font-size: 12px; padding: 6px 2px; min-height: 34px; border-radius: 10px; }
  .search { padding: 9px 12px 9px 38px; font-size: 16px; }
  #sort { font-size: 16px; }
  .filterbtn > span:first-of-type { display: none; }
  .filterbtn { padding: 0 14px; }
  .countline { margin: 14px 0 4px; }
  .count { font-size: 13px; }
  .count-kind { display: inline; color: var(--tint-3); font-weight: 700; }
  .viewtoggle span { display: none; }
  .viewtoggle button { padding: 7px 11px; }
  .group { margin-top: 12px; }
  .group-title { margin: 14px 0 10px; }
  .item { padding: 14px 13px 13px; border-radius: 16px; }
  .is-compact .icon-action[data-copy="code"], .is-compact .icon-action[data-copy="desc"] { display: none; }
  .is-compact .buy { padding: 13px 12px; font-size: 13px; }
  .is-compact .icon-action { width: 40px; height: 40px; }
  .is-compact .more-btn { padding: 10px; }
  .sheet { max-height: 90dvh; }
  .sheet-head { padding: 14px 16px; }
  .sheet-body { padding: 4px 16px 16px; }
  .sheet-foot { padding-inline: 16px; }
}
@media (max-width: 370px) {
  .brandtext .small { font-size: 10px; }
  .wa-round { display: none; }
  .tab { font-size: 11px; padding: 10px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  * { transition: none !important; }
}
