/* Wave Contingência — identidade: preto/azul-marinho, azul elétrico e ciano (sem verde). */
:root {
  --bg: #060a13;
  --bg-2: #050914;
  --card: #0d1726;
  --card-2: #0e1829;
  --line: #26374d;
  --line-2: #2b405d;
  --brand: #278cff;
  --brand-2: #258bff;
  --bright: #60c8ff;
  --cyan: #4db8ff;
  --muted: #97a9c1;
  --text: #eef5ff;
  --on: #22c55e; /* verde apenas no indicador de status "ON" */
  --soft: #b2c2d3;
  --header-h: 76px;
  --radius: 16px;
  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, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #83d7ff;
  outline-offset: 2px;
}
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only, .sr-copy { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.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-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }

/* ---------------- header ---------------- */
.header { position: sticky; top: 0; z-index: 10; background: #060b17f5; 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; border-radius: 13px; background: #030b23; border: 1px solid #1a4a9b; box-shadow: 0 0 18px #006dff35; overflow: hidden; flex: none; }
.logo img { width: 92%; height: auto; display: block; }
.brandtext { display: flex; flex-direction: column; min-width: 0; }
.brand { font-size: 15px; letter-spacing: 1px; font-weight: 800; white-space: nowrap; }
.brand span { color: #48bbff; }
.small { color: #99aac8; font-size: 11px; letter-spacing: 1px; margin-top: 3px; white-space: nowrap; }
.small b { color: var(--text); }
.dot { color: #37b7ff; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: flex; background: #0d1a2e; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; color: #8fa6c4; font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 6px 8px; border-radius: 999px; min-width: 32px; }
.langs button[aria-pressed="true"] { background: #154476; color: #d6f1ff; }
.lang-select { display: none; width: 62px; appearance: none; -webkit-appearance: none; background: #0d1a2e 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='%2360c8ff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center; border: 1px solid var(--line-2); color: #d6f1ff; font-size: 12px; font-weight: 800; padding: 9px 22px 9px 11px; border-radius: 999px; }
.sheet-sub { font-size: 11px; color: #6f88a8; font-weight: 800; letter-spacing: 1px; margin: 12px 0 8px; width: 100%; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: #0d1a2e; color: #9fd3ff; }
.wa-round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2f9bff, #1c6fe0); color: #fff; box-shadow: 0 6px 20px #1c6fe055; }
.wa-round .ic { width: 22px; height: 22px; }

.mode-banner { background: #241a05; color: #ffd98a; border-bottom: 1px solid #5c4410; font-size: 12px; line-height: 1.5; padding: 10px 16px; text-align: center; letter-spacing: .3px; }

/* ---------------- hero ---------------- */
.hero { text-align: center; background: radial-gradient(ellipse at 50% 0%, #123c75, #060a13 72%); padding: 26px 12px 30px; border-bottom: 1px solid #22334d; }
.hero-logo { width: 108px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 24px #258bff55); }
.hero small { color: #76caff; letter-spacing: 3px; font-weight: 800; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 7vw, 60px); margin: 8px 0 4px; letter-spacing: -1.2px; line-height: 1.05; }
.hero h1 .hl { color: #4db8ff; }
.hero p { font-size: 11px; letter-spacing: 1.5px; color: #9baecd; margin: 8px 0 0; }

/* ---------------- links / services / cats ---------------- */
.links { padding-top: 20px; }
.linkcard, .service { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px; border: 1px solid #263850; border-radius: 15px; background: #0c1423; margin-bottom: 11px; text-align: left; }
.linkcard:hover, .service:hover { border-color: #377bd2; }
.ico { display: grid; place-items: center; background: #12294d; border: 1px solid #285a93; color: #6ac8ff; border-radius: 12px; width: 44px; height: 44px; font-size: 18px; flex: none; }
.linkcard b { font-size: 16px; }
.linkcard p { color: #9bacbf; margin: 6px 0 0; font-size: 14px; }
.arr { margin-left: auto; font-size: 24px; color: #89a3c3; }
.sect { font-size: 12px; letter-spacing: 2px; color: #96b4d3; 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; font-size: 16px; }
.ico .ic { width: 22px; height: 22px; }
.service .ico .ic { width: 22px; height: 22px; color: #7fd3ff; }
.brand-img { object-fit: contain; display: inline-block; }
.wa-round.branded { background: none; padding: 0; }
.wa-round.branded .brand-img { width: 100%; height: 100%; }
.wa-round.branded { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ico.branded { background: none; border-color: transparent; }
.ico.branded .brand-img { width: 34px; height: 34px; }
.buy .brand-img { width: 18px; height: 18px; }
.cat-icon .brand-img { width: 26px; height: 26px; vertical-align: middle; }
.cat-icon[data-brand="meta"] .brand-img { width: 30px; }
.service-name { min-width: 0; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 23px; }
/* celular: "Todos os ativos" ocupa a linha inteira; Meta e Google lado a lado embaixo */
.cats .cat[data-kindbtn="all"] { grid-column: 1 / -1; }
/* se uma categoria ficar sem estoque (e some), a que sobrou também ocupa a linha inteira */
.cats:has(.cat[hidden]) .cat { grid-column: 1 / -1; }
.cat { display: flex; align-items: center; text-align: left; gap: 11px; padding: 16px 11px; border: 1px solid #263a54; border-radius: 14px; background: #0e1829; color: #aabbd1; width: 100%; }
.cat.active { background: #0c2b51; border-color: #419eff; color: #7fceff; box-shadow: inset 0 0 0 1px #419eff44; }
.cat b { font-size: 14px; display: block; }
.cat small { display: block; font-size: 10px; letter-spacing: 1.4px; color: #92aac8; margin-top: 4px; }
.cat-icon { font-size: 25px; color: #4da2fb; font-weight: 900; min-width: 27px; text-align: center; }

/* ---------------- catalog ---------------- */
.catalog { border-top: 1px solid #203958; padding: 0 0 60px; background: linear-gradient(130deg, #071322, #050913 65%); }
.toolbar { position: sticky; top: var(--header-h); z-index: 8; background: #071322f2; border-bottom: 1px solid #1d3350; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 0; }
.kindbar select, #sort {
  width: 100%; appearance: none; -webkit-appearance: none; background: #0c2543 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='%2360c8ff' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #2873bb; color: #a7dcff; 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: #101b2b; border: 1px solid #2e415b; border-radius: 12px; padding: 11px 4px; font-weight: 800; color: #9eb0c8; font-size: 13px; }
.tab .n { color: #6f88a8; font-weight: 700; margin-left: 2px; }
.tab.active { background: #154476; border-color: #4d9eff; color: #d6f1ff; }
.tab.active .n { color: #9fd3ff; }
.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: #7d95b5; display: flex; }
.search { width: 100%; min-width: 0; background: #101d2f; border: 1px solid #354a64; border-radius: 24px; padding: 13px 14px 13px 40px; color: #fff; }
.search::placeholder { color: #7f93ad; }
.filterbtn { position: relative; display: flex; align-items: center; gap: 7px; background: #14253b; border: 1px solid #37526f; padding: 0 16px; border-radius: 22px; color: #fff; font-weight: 800; }
.badge { background: var(--bright); color: #04203d; border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.bar { border: 1px solid #2873bb; background: #0c2543; color: #a7dcff; 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; }
.activechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.count { color: #a6b9cf; margin: 16px 0 6px; }
.linkbtn { border: 0; background: none; padding: 4px 0; color: #80cbff; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.state { color: var(--soft); padding: 28px 0; text-align: center; }
.state.error p:first-child { color: #ffd98a; font-weight: 700; }
.state-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

.group { margin-top: 18px; }
.group-title { display: flex; justify-content: space-between; align-items: center; color: #77c5ff; letter-spacing: 1.5px; font-weight: 900; font-size: 12px; margin: 22px 0 13px; border-bottom: 1px solid #29415d; padding-bottom: 10px; text-transform: uppercase; }
.group-count { background: #12294d; border: 1px solid #285a93; color: #9fd3ff; border-radius: 999px; padding: 2px 10px; font-size: 11px; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: start; }

.item { 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:has(details[open]) { border-color: #256eff; }
.item.highlight { border-color: var(--bright); box-shadow: 0 0 0 2px #60c8ff55, 0 10px 40px #258bff33; }
.ribbon { position: absolute; top: -1px; left: 18px; background: linear-gradient(135deg, #3aa8ff, #1c6fe0); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 0 0 8px 8px; }
.item-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-top: 6px; }
.item-title { font-size: 17px; margin: 0; line-height: 1.3; word-break: break-word; overflow-wrap: anywhere; }
.available { background: #102d49; color: #d6f1ff; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; padding: 6px 10px; font-size: 11px; letter-spacing: 1px; font-weight: 900; white-space: nowrap; border: 1px solid #1f4b78; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 0 8px rgba(34, 197, 94, .7); flex: none; animation: on-pulse 2.4s ease-in-out infinite; }
@keyframes on-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 0 8px rgba(34, 197, 94, .7); } 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .08), 0 0 12px rgba(34, 197, 94, .9); } }
.facts { list-style: none; margin: 14px 0 0; padding: 0; color: var(--soft); line-height: 1.85; font-size: 14px; }
.facts strong { color: #f2f7fc; font-weight: 600; overflow-wrap: anywhere; }
.fe { display: inline-block; width: 1.6em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 11px; font-weight: 700; color: #9fd3ff; border: 1px solid #2e4a6b; background: #0f2036; border-radius: 999px; padding: 3px 9px; }
.more { margin: 14px 0 0; color: #b9c8d8; line-height: 1.7; }
.more summary { cursor: pointer; border: 1px solid #41668d; padding: 11px 12px; border-radius: 10px; color: #80caff; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { color: #fff; background: #13396a; }
.more[open] .plus { transform: rotate(45deg); }
.plus { transition: transform .2s; }
.desc { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; margin-top: 14px; font-size: 14px; line-height: 1.7; color: #dfeaf9; }
.desc strong { color: #fff; }
.desc .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: #0b2342; border-radius: 4px; padding: 0 4px; }
.desc a { color: var(--bright); text-decoration: underline; }
.trans-note { font-size: 12px; color: #ffd98a; margin: 10px 0 0; }
.orig-toggle { margin-top: 8px; }
.bottom { border-top: 1px solid #2b4665; padding-top: 16px; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { color: #47b9ff; font-weight: 900; font-size: 20px; }
.price small { display: block; color: #8faac5; 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 #2e4a6b; background: #0f2036; color: #9fd3ff; }
.icon-action:hover { border-color: var(--bright); color: #fff; }
.buy { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #2f9bff, #1c6fe0); color: #fff; padding: 11px 14px; border-radius: 12px; font-weight: 800; font-size: 12px; letter-spacing: .3px; box-shadow: 0 6px 18px #1c6fe044; }
.note { color: #91a7c0; font-size: 12px; line-height: 1.6; padding: 18px 0 0; }

.foot { text-align: center; padding: 26px 16px calc(32px + env(safe-area-inset-bottom)); color: #8298b4; font-size: 11px; letter-spacing: .5px; }
.foot a { color: #80cbff; }

/* ---------------- chips / sheet / modal ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2e4a6b; background: #0f1c2e; color: #c9d8ea; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.chip.on { background: #154476; border-color: #4d9eff; color: #fff; }
.chip-n { background: #1a2c44; color: #9fb6d3; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.chip.on .chip-n { background: #0c2b51; color: #bfe6ff; }
.backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; background: #01040acc; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet, .modal { position: fixed; z-index: 31; background: #0a1322; border: 1px solid #22385a; 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 #1b2e48; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-body { overflow: auto; padding: 6px 20px 20px; -webkit-overflow-scrolling: touch; }
.sheet-label { font-size: 11px; letter-spacing: 2px; color: #8aa3c2; 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 #1b2e48; }
.apply { flex: 1; border: 0; border-radius: 999px; padding: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #3aa8ff, #1c6fe0); box-shadow: 0 8px 24px #1c6fe055; }
.sheet-main { margin-top: 16px; padding: 2px 14px 16px; border: 1px solid #2a5d96; border-radius: 16px; background: linear-gradient(160deg, #0d2747, #0a1730); }
.sheet-main .sheet-label { color: #9fd3ff; margin-top: 14px; }
.chip.main { padding: 10px 16px; font-size: 14px; border-color: #3a74b3; background: #0f2a4c; color: #e3f3ff; }
.chip.main.on { background: #1d5fa8; border-color: var(--bright); }
.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, #22324a var(--from, 0%), var(--brand) var(--from, 0%), var(--bright) var(--to, 100%), #22324a var(--to, 100%)); }
.range.disabled { opacity: .45; }
.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: #d6f1ff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px #258bff33; cursor: grab; }
.range input[type='range']::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #d6f1ff; border: 3px solid var(--brand); cursor: grab; }
.range-label { color: var(--bright); font-weight: 800; margin: 6px 0 0; font-size: 14px; }
.switch { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: #c9d8ea; 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; padding: 6px 20px 10px; }
.modal-body .desc { margin-top: 10px; }
.modal-actions { padding: 14px 20px 18px; border-top: 1px solid #1b2e48; display: flex; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); z-index: 40; background: #0c2b51; border: 1px solid #4d9eff; color: #e6f5ff; 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)); }
  /* telas maiores: as três categorias na mesma linha */
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats .cat[data-kindbtn="all"], .cats:has(.cat[hidden]) .cat { grid-column: auto; }
  .cats:has(.cat[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand { font-size: 13px; }
  .head-actions .langs { display: none; }
  .head-actions .lang-select { display: block; }
  .head-actions .iconbtn { display: none; }
  .hero h1 { font-size: 36px; }
  .cat { padding: 12px 9px; }
  .cat b { font-size: 12px; }
  .item { padding: 18px 16px; }
  .tab { font-size: 12px; }
  .filterbtn > span:first-of-type { display: none; }
  .filterbtn { padding: 0 14px; }
}
@media (max-width: 370px) {
  .logo { width: 44px; height: 42px; }
  .brandtext .small { font-size: 10px; }
  .wa-round { display: none; }
  .tab { font-size: 11px; padding: 10px 2px; }
  .buy span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  * { transition: none !important; }
}
