/* BestNumberOne — estilos (cores do online.3wx.eu, tipografia Inter + Plus Jakarta Sans) */
:root {
  --card-a: .85;
  --red: #e3242b; --red-d: #c41c22;
  --ink: #172b4d; --ink-2: #44546f; --muted: #626f86; --line: #dcdfe4;
  --bar: #1d2327; --surface: #f7f8f9;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
  --shadow-card: 0 1px 1px rgba(9, 30, 66, .22), 0 0 1px rgba(9, 30, 66, .28), 0 6px 18px rgba(9, 30, 66, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--surface); }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gradientes de fundo (como as cores dos quadros do Trello) */
.grad-dusk   { background-image: linear-gradient(160deg, #24324a 0%, #6b5a78 35%, #d9785e 70%, #f0a868 100%) !important; }
.grad-ocean  { background-image: linear-gradient(135deg, #0c66e4 0%, #09326c 100%) !important; }
.grad-forest { background-image: linear-gradient(135deg, #1f845a 0%, #164b35 100%) !important; }
.grad-berry  { background-image: linear-gradient(135deg, #e3242b 0%, #6e1a3f 100%) !important; }
.grad-slate  { background-image: linear-gradient(135deg, #44546f 0%, #1d2327 100%) !important; }
.grad-sun    { background-image: linear-gradient(135deg, #f8e6a0 0%, #f5b94a 45%, #e56910 100%) !important; }
.grad-night  { background-image: linear-gradient(135deg, #352c63 0%, #0b1220 100%) !important; }
.grad-lime   { background-image: linear-gradient(135deg, #94c748 0%, #2abb7f 100%) !important; }

/* ---------- Cartões clássicos (apresentação, página pública antiga) ---------- */
.card { position: relative; width: 300px; max-width: 100%; background: rgba(255, 255, 255, var(--card-a)); padding: 12px 22px 18px; text-align: center; color: #000;
  border-radius: var(--r); box-shadow: var(--shadow-card); }
.card h2 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; line-height: 28px; font-weight: 600; color: #111; overflow-wrap: break-word; }
.links { font-size: 13.5px; line-height: 23px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.links a { color: #000; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.links a:visited { color: #3d4652; }
.links a:hover, .links a:focus-visible { color: var(--red); }
.nsh-cols-css { columns: 300px; column-gap: 12px; max-width: calc(300px * 4 + 12px * 3 + 24px); margin: 0 auto; padding: 0 12px; }
.nsh-cols-css > .card { break-inside: avoid; margin-bottom: 12px; display: inline-block; width: 100%; }
.form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=password] { font: inherit; padding: 9px 11px; border: 1.5px solid #c9cdd1; border-radius: 8px; width: 100%; }
.hp { position: absolute !important; left: -9999px !important; }
.msg { padding: 9px 12px; font-size: 14px; text-align: left; border-left: 4px solid; background: #fff; }
.msg-err { border-color: #d63638; color: #8a1f11; }
.msg-ok { border-color: #1f845a; color: #164b35; }
.nsh-landing { background: #39404d; color: #fff; }
.nsh-top { text-align: center; padding: 28px 16px 14px; }
.brand { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 76px); color: var(--red); }
.brand a { text-decoration: none; }

/* =========================================================
   Área do utilizador (estilo Trello)
   ========================================================= */
.tw { background: var(--surface); }
.tw.on-board { background-color: #39404d; background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
@supports (-webkit-touch-callout: none) { .tw.on-board { background-attachment: scroll; } }
.ico { display: inline-flex; line-height: 0; }
.ico.starred { color: #f5cd47; }

/* Botões */
.tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 6px; border: 0;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tw-btn-red { background: var(--red); color: #fff; }
.tw-btn-red:hover { background: var(--red-d); }
.tw-btn-red:disabled { opacity: .6; cursor: wait; }
.tw-btn-ghost { background: rgba(9, 30, 66, .06); color: var(--ink); }
.tw-btn-ghost:hover { background: rgba(9, 30, 66, .12); }
.tw-btn-danger { background: #fff; color: #ae2e24; box-shadow: inset 0 0 0 1.5px #f87168; }
.tw-btn-danger:hover { background: #ffeceb; }
.tw-btn-block { width: 100%; }
.tw-btn-danger-solid { background: #c9372c; color: #fff; }
.tw-btn-danger-solid:hover { background: #ae2e24; }
.tw-confirm-msg { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.tw-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.tw-icon-btn:hover { background: rgba(9, 30, 66, .1); }
.tw-link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 600; padding: 8px 6px; cursor: pointer; border-radius: 6px; }
.tw-link-btn:hover { background: rgba(9, 30, 66, .08); }
.tw-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tw-row.end { justify-content: flex-end; }

/* Barra de topo */
.tw-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 10px;
  background: var(--bar); color: #fff; }
.on-board .tw-top { background: rgba(23, 27, 31, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tw-logo { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.tw-logo:hover { background: rgba(255, 255, 255, .1); }
.tw-logo img { display: block; height: 34px; width: auto; }
.tw-nav-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tw-nav-btn:hover { background: rgba(255, 255, 255, .12); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .8; }
.tw-create { margin-left: 4px; }
.tw-status { font-size: 12.5px; color: #9fadbc; margin-left: 8px; }
.tw-search { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; width: min(340px, 40vw); padding: 0 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: #c7d1db; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.tw-search:focus-within { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--red); }
.tw-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.tw-search input::placeholder { color: #9fadbc; }
.tw-results { position: absolute; top: 40px; right: 0; width: min(440px, 92vw); max-height: 70vh; overflow: auto; background: #fff; color: var(--ink);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .3); padding: 6px; z-index: 80; }
.tw-results a { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.tw-results a.active, .tw-results a:hover { background: #fff1f1; }
.r-ico { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; }
.r-title { font-weight: 600; }
.r-meta { font-size: 12px; color: var(--muted); }
.tw-results-empty { margin: 8px 10px; color: var(--muted); }
.tw-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 8px; border-radius: 50%; border: 0; background: var(--red); color: #fff;
  font: 700 13px/1 var(--font); cursor: pointer; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.tw-avatar.lg { width: 40px; height: 40px; font-size: 15px; box-shadow: none; cursor: default; margin: 0; }

/* Popovers, menus, modais */
.tw-pop { position: absolute; z-index: 100; width: 304px; background: #fff; color: var(--ink); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .31); }
.tw-pop.wide { width: 380px; }
.tw-pop-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 6px 6px 0; font-weight: 600; text-align: center; color: var(--ink-2); }
.tw-pop-head span { grid-column: 2; }
.tw-pop-head button { grid-column: 3; }
.tw-pop-body { padding: 8px 12px 14px; max-height: 70vh; overflow: auto; }
.tw-menu { display: flex; flex-direction: column; margin: 0 -12px; }
.tw-menu a, .tw-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.tw-menu a:hover, .tw-menu button:hover { background: rgba(9, 30, 66, .06); }
.tw-menu .danger { color: #ae2e24; }
.tw-menu hr, .tw-drawer hr, .tw-home-side hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.tw-menu-who { display: flex; align-items: center; gap: 10px; padding: 4px 14px 6px; }
.tw-menu-who div { display: flex; flex-direction: column; min-width: 0; }
.tw-menu-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tw-blist { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.tw-blist-item, .tw-bside-board { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.tw-blist-item:hover, .tw-blist-item.active { background: rgba(9, 30, 66, .07); }
.tw-blist-item span:not(.ico):not(.tw-swatch), .tw-bside-board span:not(.ico):not(.tw-swatch) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-swatch { flex: none; width: 32px; height: 24px; border-radius: 4px; background-size: cover; background-position: center; }
.tw-form { display: flex; flex-direction: column; gap: 10px; }
.tw-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tw-form label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--ink); }
.tw-form input[type=text], .tw-form input[type=search], .tw-form input[type=password], .tw-form input[type=email], .tw-form select,
.tw-composer input, .tw-add-block-form input, .tw-inline-input, .tw-share input {
  font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border: 1.5px solid #8590a2; border-radius: 6px; background: #fff; width: 100%; }
.tw-form input:focus, .tw-form select:focus, .tw-composer input:focus, .tw-add-block-form input:focus, .tw-inline-input:focus, .tw-share input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(227, 36, 43, .2); }
.tw-create-preview { display: flex; justify-content: center; padding: 4px 0; }
.tw-create-thumb { display: block; width: 200px; height: 110px; border-radius: 6px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, .05); position: relative; }
.tw-create-thumb::after { content: ""; position: absolute; inset: 14px 16px; background:
  linear-gradient(#fff, #fff) 0 0 / 50px 60px no-repeat, linear-gradient(#fff, #fff) 60px 0 / 50px 40px no-repeat, linear-gradient(#fff, #fff) 120px 0 / 48px 70px no-repeat; opacity: .85; }
.tw-bgpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tw-bgopt { padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: none; position: relative; }
.tw-bgopt-in { display: block; height: 36px; border-radius: 6px; background-size: cover; background-position: center; }
.tw-bgopt.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; background: rgba(0, 0, 0, .3); border-radius: 6px; }
.tw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tw-seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.tw-seg button.on { border-color: var(--red); background: #fff1f1; color: #ae2e24; }
.tw-opts { display: flex; flex-direction: column; gap: 4px; margin: 0 -6px; }
.tw-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.tw-opt:hover { background: rgba(9, 30, 66, .06); }
.tw-opt.on { background: #fff1f1; box-shadow: inset 3px 0 0 var(--red); }
.tw-opt span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tw-opt small { color: var(--muted); font-size: 12.5px; }
.tw-share { display: flex; flex-direction: column; gap: 10px; }
.tw-share p { margin: 0; color: var(--ink-2); }
.tw-msg { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.tw-msg.ok { background: #dcfff1; color: #164b35; }
.tw-msg.err { background: #ffeceb; color: #ae2e24; }
.tw-err { color: #ae2e24; font-size: 12.5px; }
.tw-modal { border: 0; padding: 0; border-radius: 12px; width: min(560px, 94vw); max-height: 88vh; box-shadow: 0 20px 60px rgba(9, 30, 66, .35); color: var(--ink); }
.tw-modal.wide { width: min(820px, 96vw); }
.tw-modal::backdrop { background: rgba(9, 15, 26, .6); }
.tw-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 20px; }
.tw-modal-head h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.tw-modal-body { padding: 14px 20px 20px; }
.tw-edit-head, .tw-edit-links li { display: grid; grid-template-columns: 24px minmax(0, .8fr) minmax(0, 1.2fr) 32px; gap: 8px; align-items: center; }
.tw-edit-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tw-edit-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; }
.tw-edit-links li { padding: 4px; border-radius: 8px; background: var(--surface); }
.tw-edit-links li.dragging { opacity: .4; }
.tw-edit-links input { font: inherit; padding: 7px 9px; border: 1.5px solid #c9cdd1; border-radius: 6px; width: 100%; background: #fff; }
.grip { color: #8590a2; cursor: grab; display: grid; place-items: center; }

/* Toast */
.tw-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--bar); color: #fff;
  padding: 11px 18px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: 92vw; text-align: center; }

/* ---------- Início (lista de painéis) ---------- */
.tw-home { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 32px; max-width: 1180px; margin: 0 auto; padding: 36px 20px 60px; }
.tw-home-side { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.tw-side-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.tw-side-item:hover { background: rgba(9, 30, 66, .06); }
.tw-side-item.active { background: #ffe5e6; color: #ae2e24; }
.tw-side-label { margin: 8px 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tw-ws { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.tw-ws-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--red), #6e1a3f); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.tw-side-hint { margin: 16px 10px 0; font-size: 12.5px; color: var(--muted); }
.tw-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); }
.tw-h:not(:first-child) { margin-top: 34px; }
.tw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.tw-tile { position: relative; display: block; height: 104px; border-radius: 10px; overflow: hidden; text-decoration: none; color: #fff; background: #39404d;
  box-shadow: 0 1px 2px rgba(9, 30, 66, .25); transition: transform .12s, box-shadow .12s; }
.tw-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(9, 30, 66, .25); }
.tw-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tw-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .35)); }
.tw-tile-title { position: absolute; left: 12px; right: 12px; top: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.tw-tile-meta { position: absolute; left: 12px; bottom: 10px; font-size: 12px; opacity: .9; }
.tw-tile-pub { position: absolute; right: 38px; bottom: 8px; opacity: .85; }
.tw-tile-star { position: absolute; right: 8px; bottom: 6px; border: 0; background: none; color: #fff; cursor: pointer; opacity: 0; transition: opacity .12s, transform .12s; padding: 2px; }
.tw-tile:hover .tw-tile-star, .tw-tile-star.on { opacity: 1; }
.tw-tile-star.on { color: #f5cd47; }
.tw-tile-star:hover { transform: scale(1.2); }
.tw-tile-new { display: grid; place-items: center; border: 0; background: rgba(9, 30, 66, .06); color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; box-shadow: none; }
.tw-tile-new:hover { background: rgba(9, 30, 66, .12); transform: none; box-shadow: none; }
.tw-tpl-card { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); }
.tw-tpl-thumb { flex: none; width: 180px; height: 104px; border-radius: 8px; background-size: cover; background-position: center; }
.tw-tpl-card h3 { margin: 0 0 6px; font-family: var(--display); }
.tw-tpl-card p { margin: 0 0 12px; }
.tw-settings .tw-card-form { background: #fff; padding: 20px; border-radius: 12px; box-shadow: var(--shadow-card); max-width: 560px; margin-bottom: 18px; }
.tw-settings .tw-card-form h3 { margin: 0 0 4px; font-family: var(--display); font-size: 17px; }
.tw-settings .tw-card-form .tw-btn { align-self: flex-start; }
.tw-settings .tw-msg { max-width: 560px; margin-bottom: 16px; }
.tw-card-form.danger { box-shadow: inset 0 0 0 1.5px #ffd5d2, var(--shadow-card); }

/* ---------- Painel (board) ---------- */
.tw-board { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.tw-board.side-collapsed { grid-template-columns: 16px minmax(0, 1fr); }
.tw-bside { position: sticky; top: 52px; height: calc(100vh - 52px); overflow: auto; padding: 10px 8px 20px; color: #fff;
  background: rgba(23, 27, 31, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-right: 1px solid rgba(255, 255, 255, .12); }
.tw-bside.collapsed { padding: 10px 0; overflow: visible; }
.tw-bside.collapsed .tw-side-toggle { position: absolute; left: 2px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(23, 27, 31, .85); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.tw-bside .tw-icon-btn:hover { background: rgba(255, 255, 255, .14); }
.tw-bside-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tw-bside-head strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-bside-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.tw-bside-link:hover, .tw-bside-board:hover { background: rgba(255, 255, 255, .12); }
.tw-bside-sec { display: flex; align-items: center; justify-content: space-between; margin: 14px 4px 4px 10px; font-size: 12.5px; font-weight: 700; opacity: .85; }
.tw-bside-board.active { background: rgba(255, 255, 255, .22); }
.tw-canvas { min-width: 0; display: flex; flex-direction: column; }
.tw-bhead { position: sticky; top: 52px; z-index: 40; display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 8px 16px;
  background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; flex-wrap: wrap; }
.tw-btitle { margin: 0 6px 0 0; padding: 4px 10px; border-radius: 6px; font-family: var(--display); font-size: 20px; font-weight: 700; cursor: text; line-height: 1.3; }
.is-owner .tw-btitle:hover { background: rgba(255, 255, 255, .18); }
.tw-btitle-input { font-family: var(--display); font-size: 20px !important; font-weight: 700; width: min(420px, 60vw) !important; }
.tw-bhead-owner { opacity: .85; }
.tw-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tw-hbtn:hover { background: rgba(255, 255, 255, .28); }
.tw-hbtn.starred { color: #f5cd47; }
.tw-hbtn-light { background: #fff; color: var(--ink); }
.tw-hbtn-light:hover { background: #e9ecef; }
.tw-canvas-scroll { padding: 18px 16px 40px; }

/* Grelha uniforme de blocos */
.tw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; align-items: stretch; max-width: 1720px; margin: 0 auto; }
.tw-block { position: relative; display: flex; flex-direction: column; min-width: 0; background: rgba(255, 255, 255, var(--card-a)); border-radius: var(--r);
  box-shadow: var(--shadow-card); padding: 4px 14px 8px; }
.tw-block.dragging { opacity: .45; }
.tw-block.drop-target { box-shadow: 0 0 0 2px var(--red), var(--shadow-card); }
.tw-block-head { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.is-owner .tw-block-head { cursor: grab; }
.tw-block-title { flex: 1; margin: 0; padding: 4px 6px; border-radius: 6px; font-family: var(--display); font-size: 17px; font-weight: 700; color: #111; text-align: center; overflow-wrap: anywhere; }
.is-owner .tw-block-title { padding-left: 38px; cursor: text; }
.is-owner .tw-block-title:hover { background: rgba(9, 30, 66, .06); }
.tw-block-more { color: var(--ink-2); flex: none; }
.tw-block .links { flex: 1; text-align: center; padding: 2px 4px 8px; }
.tw-block .links .sep { color: #333; }
.links .sep.eol { visibility: hidden; }
.tw-block .links .empty { font-weight: 400; font-style: italic; }
.tw-block .links a.dragging { opacity: .35; }
.tw-block-foot { border-top: 1px solid rgba(9, 30, 66, .08); padding-top: 4px; }
.tw-add-link { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.tw-add-link:hover { background: rgba(9, 30, 66, .08); color: var(--ink); }
.tw-composer, .tw-add-block-form { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 4px; }
.tw-lph { display: inline-block; width: 3px; height: 18px; margin: 0 3px; vertical-align: middle; background: var(--red); border-radius: 2px; }
.tw-ph { position: absolute; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--red); }
.tw-ph.left { left: -9px; }
.tw-ph.right { right: -9px; }
.tw-add-block-wrap { min-height: 52px; }
.tw-add-block { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .28); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; text-align: left; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tw-add-block:hover { background: rgba(255, 255, 255, .4); }
.tw-add-block-form { background: rgba(255, 255, 255, .95); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-card); }
.tw-inline-input { font-family: var(--display); font-weight: 700; }
.tw-hint, .tw-public-foot { text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); font-size: 13px; margin: 22px 0 0; }
.tw-public-foot a { color: #fff; font-weight: 700; }

/* Gaveta "Menu" do painel */
.tw-drawer { position: fixed; top: 52px; right: 0; bottom: 0; z-index: 90; width: min(340px, 100vw); background: #fff; color: var(--ink);
  box-shadow: -12px 0 32px rgba(9, 30, 66, .25); display: flex; flex-direction: column; animation: tw-slide .18s ease-out; }
@keyframes tw-slide { from { transform: translateX(30px); opacity: 0; } }
.tw-drawer-head { display: grid; grid-template-columns: 1fr 32px; align-items: center; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.tw-drawer-body { padding: 12px 18px 24px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.tw-drawer h4 { margin: 12px 0 2px; font-family: var(--display); font-size: 14px; }
.tw-drawer input[type=range] { width: 100%; accent-color: var(--red); }
.tw-drawer label.tw-btn { cursor: pointer; }

/* Público */
.is-public .tw-board { grid-template-columns: minmax(0, 1fr); }
.is-public .tw-bhead { top: 52px; }

/* Responsivo */
@media (max-width: 900px) {
  .tw-board { grid-template-columns: minmax(0, 1fr); }
  .tw-bside { display: none; }
  .tw-home { grid-template-columns: 1fr; padding-top: 20px; }
  .tw-home-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .tw-home-side hr, .tw-side-label, .tw-ws, .tw-side-hint { display: none; }
  .tw-status { display: none; }
}
@media (max-width: 640px) {
  .tw-top { gap: 4px; padding: 0 6px; }
  .tw-logo { margin-right: 0; padding: 4px; }
  .tw-logo img { height: 26px; }
  .tw-nav-btn { display: none; }
  .tw-create { padding: 6px 10px; margin-left: 0; }
  .tw-search { width: auto; flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .tw-avatar { margin-left: 2px; flex: none; }
  .tw-top .grow { display: none; }
  .tw-grid { grid-template-columns: 1fr; }
  .tw-hbtn span:not(.ico) { display: none; }
  .tw-btitle { font-size: 18px; }
  .tw-tpl-card { flex-direction: column; align-items: flex-start; }
  .tw-edit-head { display: none; }
  .tw-edit-links li { grid-template-columns: 20px 1fr 32px; }
  .tw-edit-links li input:nth-of-type(2) { grid-column: 2; }
}
@media print { .tw-top, .tw-bside, .tw-bhead button, .tw-block-foot, .tw-add-block-wrap { display: none !important; } body { background: #fff !important; } }

/* =========================================================
   Apresentação, registo e entrada (cores do online.3wx.eu)
   ========================================================= */
.mk {
  --red: #e3242b; --red-d: #c41c22; --ink: #1d2327; --muted: #5b6168; --line: #e4e6e8;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; color: var(--ink); background: #fff; background-image: none !important;
}
.mk a { color: inherit; }
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, transform .15s, box-shadow .15s; line-height: 1.1;
}
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn-red { background: var(--red); color: #fff !important; box-shadow: 0 6px 18px rgba(227, 36, 43, .35); }
.mk-btn-red:hover { background: var(--red-d); }
.mk-btn-ghost { border-color: rgba(255,255,255,.8); color: #fff !important; }
.mk-btn-ghost:hover { background: rgba(255,255,255,.12); }
.mk-btn-white { background: #fff; color: var(--red) !important; }
.mk-btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.mk-btn-block { width: 100%; }

/* Nav */
.mk-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 20px 24px; }
.mk-brand { display: inline-flex; line-height: 0; }
.mk-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.mk-links a { text-decoration: none; }
.mk-links a:not(.mk-btn):hover { color: var(--red); }
.mk-nav.on-dark .mk-links a:not(.mk-btn) { color: #fff; }
.mk-nav.on-dark .mk-links a:not(.mk-btn):hover { color: #ffb3b5; }

/* Hero */
.mk-hero {
  position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(20,24,28,.78) 0%, rgba(20,24,28,.55) 45%, rgba(20,24,28,.85) 100%), var(--hero-bg, linear-gradient(180deg,#24324a,#d9785e 45%,#2b2f38)) center 70% / cover no-repeat;
}
.mk-hero-in { max-width: 1240px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.mk-eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(227,36,43,.18); border: 1px solid rgba(227,36,43,.6); color: #ffd2d4; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mk-hero h1 { margin: 0 0 18px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }
.mk-lead { margin: 0 0 30px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 34em; }
.mk-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.mk-hero-demo { position: relative; height: 380px; }
.mk-demo-card { position: absolute; width: 300px; text-align: center; --card-a: .9; box-shadow: 0 18px 50px rgba(0,0,0,.35); border-radius: 2px; }
.mk-demo-1 { left: 0; top: 10px; transform: rotate(-3deg); }
.mk-demo-2 { right: 0; top: 0; transform: rotate(2.5deg); }
.mk-demo-3 { left: 60px; top: 190px; transform: rotate(-1deg); z-index: 2; }
.mk-stats { max-width: 1240px; margin: 0 auto; padding: 22px 24px 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.mk-stats div { display: flex; align-items: baseline; gap: 12px; }
.mk-stats strong { font-size: 40px; font-weight: 800; color: var(--red); line-height: 1; }
.mk-stats span { color: rgba(255,255,255,.85); font-size: 15px; }

/* Sections */
.mk-sec { max-width: 1240px; margin: 0 auto; padding: 88px 24px; }
.mk-sec-alt { max-width: none; background: #f6f7f8; }
.mk-sec-alt > * { max-width: 1192px; margin-left: auto; margin-right: auto; }
.mk-h2 { margin: 0 0 12px; text-align: center; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.015em; font-weight: 800; }
.mk-sub { margin: 0 auto 48px; text-align: center; color: var(--muted); font-size: 18px; max-width: 36em; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mk-feat { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.mk-feat:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-2px); }
.mk-ico { color: var(--red); display: block; margin-bottom: 18px; }
.mk-feat h3, .mk-steps h3 { margin: 0 0 8px; font-size: 20px; }
.mk-feat p, .mk-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.mk-steps { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.mk-steps li { position: relative; padding: 30px 28px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.mk-step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--red); color: var(--red); font-weight: 800; font-size: 18px; margin-bottom: 16px; }

/* Showcase (o modelo sobre a fotografia) */
.mk-showcase { padding: 88px 0 70px; color: #fff;
  background: linear-gradient(180deg, rgba(20,24,28,.72), rgba(20,24,28,.25) 30%, rgba(20,24,28,.25) 70%, rgba(20,24,28,.75)), var(--hero-bg, #39404d) center / cover fixed no-repeat; }
.mk-showcase .mk-sub { color: rgba(255,255,255,.85); }
.mk-showcase-cols { font-size: 13.5px; }
.mk-showcase-cols .card { color: #000; }

/* CTA band */
.mk-cta { background: var(--red); color: #fff; text-align: center; padding: 76px 24px; }
.mk-cta h2 { margin: 0 0 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.015em; }
.mk-cta p { margin: 0 0 28px; font-size: 18px; opacity: .92; }

/* Footer */
.mk-foot { background: var(--ink); color: #c3c4c7; }
.mk-foot-in { max-width: 1240px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.mk-foot-links, .mk-foot-small { margin: 0; font-size: 14px; }
.mk-foot-links a, .mk-foot-small a { color: #fff; text-decoration: none; }
.mk-foot-links a:hover, .mk-foot-small a:hover { color: #ffb3b5; }
.mk-foot-small { flex-basis: 100%; color: #8c8f94; }

/* Registo / Entrar */
.mk-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); min-height: 100vh; }
.mk-auth-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px; color: #fff;
  background: linear-gradient(160deg, rgba(20,24,28,.82), rgba(20,24,28,.45) 60%, rgba(227,36,43,.35)), var(--hero-bg, #2b2f38) center 70% / cover no-repeat; }
.mk-auth-pitch h1 { margin: 0 0 24px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; max-width: 11em; }
.mk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 17px; }
.mk-checks li { position: relative; padding-left: 36px; }
.mk-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; border: 2.5px solid var(--red); background: rgba(227,36,43,.2); }
.mk-checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 7px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mk-auth-lang { margin: 0; font-size: 14px; }
.mk-auth-lang a { color: #fff; }
.mk-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.mk-auth-box { width: 100%; max-width: 400px; }
.mk-auth-logo { display: none; margin-bottom: 26px; }
.mk-auth-box h2 { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -.015em; }
.mk-auth-lead { margin: 0 0 26px; color: var(--muted); }
.mk-form { gap: 18px; }
.mk-form label { font-size: 14px; color: var(--ink); gap: 6px; }
.mk-form input[type=text], .mk-form input[type=email], .mk-form input[type=password] { padding: 13px 14px; font-size: 16px; border: 1.5px solid #c9cdd1; border-radius: 10px; }
.mk-form input:focus { outline: 3px solid rgba(227,36,43,.25); border-color: var(--red); }
.mk-hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.mk-pw { position: relative; display: block; }
.mk-pw input { padding-right: 84px !important; }
.mk-pw-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #f1f2f3; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.mk-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-small-link { font-size: 14px; color: var(--red) !important; font-weight: 600; text-decoration: none; }
.mk-auth-alt { margin: 22px 0 0; text-align: center; color: var(--muted); }
.mk-auth-alt a { color: var(--red); font-weight: 700; text-decoration: none; }
.mk .msg { border-radius: 8px; margin: 0 0 16px; }


@media (max-width: 980px) {
  .mk-hero-in { grid-template-columns: 1fr; }
  .mk-hero-demo { display: none; }
  .mk-grid, .mk-steps { grid-template-columns: 1fr 1fr; }
  .mk-links a:not(.mk-btn) { display: none; }
  .mk-auth { grid-template-columns: 1fr; }
  .mk-auth-side { display: none; }
  .mk-auth-logo { display: inline-block; }
}
@media (max-width: 640px) {
  .mk-grid, .mk-steps, .mk-stats { grid-template-columns: 1fr; }
  .mk-sec { padding: 60px 20px; }
  .mk-stats strong { font-size: 32px; }
}
.mk-hero h1, .mk-h2, .mk-cta h2, .mk-feat h3, .mk-steps h3, .mk-auth-box h2, .mk-auth-pitch h1, .mk-stats strong { font-family: var(--display); }
.mk-showcase-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; columns: auto; max-width: 1240px; padding: 0 24px; align-items: stretch; }
.mk-showcase-cols > .card { width: auto; margin: 0; display: block; }

/* Escolha do modelo no registo */
.mk-tpl { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mk-tpl legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.mk-tpl-opt { position: relative; display: block !important; cursor: pointer; }
.mk-tpl-opt input { position: absolute; opacity: 0; }
.mk-tpl-opt span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 10px; border: 1.5px solid #c9cdd1; border-radius: 10px; font-size: 13.5px; line-height: 1.25; }
.mk-tpl-opt small { color: var(--muted); font-weight: 400; font-size: 12px; }
.mk-tpl-opt input:checked + span { border-color: var(--red); background: #fff1f1; box-shadow: 0 0 0 2px rgba(227,36,43,.15); }
.mk-tpl-opt input:focus-visible + span { outline: 3px solid rgba(227,36,43,.35); }
/* Pixabay */
.tw-px-bar { display: flex; gap: 8px; }
.tw-px-bar input { flex: 1; font: inherit; padding: 9px 11px; border: 1.5px solid #8590a2; border-radius: 6px; }
.tw-px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; min-height: 120px; max-height: 58vh; overflow: auto; }
.tw-px-item { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; background: #e9ecef; }
.tw-px-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.tw-px-item:hover img { transform: scale(1.05); }
.tw-px-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11.5px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.tw-px-item.busy { opacity: .5; pointer-events: none; }
.tw-px-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tw-px-foot a { color: var(--ink); font-weight: 600; }
.tw-credit { position: fixed; right: 12px; bottom: 10px; z-index: 30; font-size: 11.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tw-credit a { color: #fff; }
.tw-tpls { display: grid; gap: 14px; }
@media (max-width: 640px) { .mk-tpl { grid-template-columns: 1fr; } }
.tw-seg3 { grid-template-columns: 1fr 1fr 1fr; }
.tw-seg3 button { font-size: 12.5px; padding: 9px 4px; }

/* ===== Apresentação v1.4 ===== */
.mk-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; font-size: 14.5px; color: rgba(255,255,255,.9); }
.mk-trust li { display: inline-flex; align-items: center; gap: 6px; }
.mk-trust svg { color: #ff8a8f; }
.mk-compare { max-width: 880px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.mk-cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.mk-cmp-row:first-child { border-top: 0; }
.mk-cmp-row > span { padding: 15px 18px; font-size: 15px; }
.mk-cmp-row > span:not(:first-child) { text-align: center; display: flex; justify-content: center; align-items: center; }
.mk-cmp-head { background: #f6f7f8; font-weight: 700; font-size: 14px; }
.mk-cmp-row .us { background: #fff5f5; }
.mk-cmp-head .us { background: #ffe9ea; }
.mk-cmp-row .yes { color: #1f845a; }
.mk-cmp-row .them.no { color: #b6bcc4; }
.mk-cmp-row .them small { color: var(--muted); font-size: 12.5px; }
.mk-browser { max-width: 1100px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(9,30,66,.28), 0 0 0 1px rgba(9,30,66,.08); background: #fff; }
.mk-browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #eef0f2; }
.mk-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mk-browser-bar i:nth-child(2) { background: #febc2e; } .mk-browser-bar i:nth-child(3) { background: #28c840; }
.mk-browser-bar span { margin-left: 14px; flex: 1; max-width: 420px; padding: 5px 12px; border-radius: 7px; background: #fff; font-size: 12.5px; color: var(--muted); }
.mk-browser-screen { background: var(--hero-bg, #39404d) center / cover no-repeat; font-size: 11px; }
.mk-app-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(23,27,31,.82); color: #fff; }
.mk-app-top img { height: 14px; width: auto; }
.mk-app-top em { font-style: normal; background: var(--red); padding: 3px 9px; border-radius: 5px; font-weight: 700; }
.mk-app-search { margin-left: auto; padding: 4px 14px; border-radius: 6px; background: rgba(255,255,255,.14); color: #c7d1db; min-width: 180px; }
.mk-app-av { width: 22px; height: 22px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 9.5px; }
.mk-app-head { display: flex; gap: 8px; align-items: center; padding: 9px 14px; background: rgba(0,0,0,.28); color: #fff; }
.mk-app-head strong { font-family: var(--display); font-size: 15px; margin-right: 4px; }
.mk-app-head span { background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 5px; }
.mk-app-head .r { margin-left: auto; background: #fff; color: var(--ink); font-weight: 700; }
.mk-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.mk-app-block { background: rgba(255,255,255,.88); border-radius: 9px; padding: 8px 10px; text-align: center; box-shadow: 0 1px 2px rgba(9,30,66,.25); display: flex; flex-direction: column; }
.mk-app-block h4 { margin: 2px 0 6px; font-family: var(--display); font-size: 12.5px; }
.mk-app-block p { margin: 0; line-height: 1.65; font-weight: 600; color: #111; flex: 1; }
.mk-app-block small { display: block; text-align: left; color: var(--muted); border-top: 1px solid rgba(9,30,66,.08); margin-top: 6px; padding-top: 5px; }
.mk-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.mk-use { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.mk-use-ico { font-size: 30px; display: block; margin-bottom: 12px; }
.mk-use h3 { margin: 0 0 6px; font-size: 18px; font-family: var(--display); }
.mk-use p { margin: 0; color: var(--muted); line-height: 1.55; }
.mk-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; }
.mk-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.mk-plan-free { border: 2px solid var(--red); box-shadow: 0 18px 50px rgba(227,36,43,.14); }
.mk-plan-pro { background: linear-gradient(160deg, #1d2327, #3a2330); color: #fff; border: 0; }
.mk-plan h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.mk-price { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.1; }
.mk-price small { display: block; font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.mk-plan-pro .mk-price { font-size: 26px; color: #ffb3b5; }
.mk-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mk-plan li { display: flex; gap: 10px; align-items: center; }
.mk-plan-free li svg { color: #1f845a; flex: none; }
.mk-plan-pro li svg { color: #ff8a8f; flex: none; }
.mk-plan-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.mk-plan-pro .mk-plan-note { color: rgba(255,255,255,.75); }
.mk-plan-pro .mk-plan-note a { color: #fff; font-weight: 700; }
.mk-badge { position: absolute; top: 22px; right: 22px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.mk-faq { max-width: 820px; margin: 34px auto 0; display: grid; gap: 10px; }
.mk-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.mk-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; font-size: 16.5px; position: relative; font-family: var(--display); }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 24px; color: var(--red); font-weight: 400; }
.mk-faq details[open] summary::after { content: "–"; }
.mk-faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.mk-about { text-align: center; max-width: 760px; }
.mk-about p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.mk-link { color: var(--red) !important; font-weight: 700; text-decoration: none; }
.mk-foot-in { align-items: flex-start; }
.mk-foot-brand { max-width: 340px; }
.mk-foot-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: #9fadbc; }
.mk-foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.mk-foot-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mk-foot-cols strong { color: #fff; margin-bottom: 4px; }
.mk-foot-cols a { color: #c3c4c7; text-decoration: none; }
.mk-foot-cols a:hover { color: #fff; }
.mk-foot-small { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.mk-accept { font-size: 13.5px !important; font-weight: 400 !important; align-items: flex-start !important; line-height: 1.45; }
.mk-accept input { margin-top: 3px; accent-color: var(--red); }
.mk-accept a { color: var(--red); font-weight: 600; }
/* Páginas legais */
.mk-legal-top { background: var(--ink); }
.mk-legal { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.mk-legal-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.mk-legal-tabs a { padding: 8px 14px; border-radius: 999px; background: #f1f2f4; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.mk-legal-tabs a.on { background: var(--red); color: #fff; }
.mk-legal-doc h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; letter-spacing: -.015em; }
.mk-legal-doc h2 { font-family: var(--display); font-size: 20px; margin: 34px 0 10px; }
.mk-legal-doc p, .mk-legal-doc li { line-height: 1.7; color: #2c333a; font-size: 15.5px; }
.mk-legal-doc ul { padding-left: 22px; }
.mk-legal-doc li { margin-bottom: 6px; }
.mk-legal-doc a { color: var(--red); }
.mk-legal-doc code { background: #f1f2f4; padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
.lg-meta { color: var(--muted) !important; font-size: 14px !important; margin-top: 0; }
.lg-note { background: #fff5e6; border-radius: 8px; padding: 10px 14px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.lg-table th, .lg-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.lg-table th { background: #f6f7f8; }
.tw-legal-links a { color: var(--ink-2); }
@media (max-width: 980px) {
  .mk-uses { grid-template-columns: 1fr 1fr; }
  .mk-app-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-plans { grid-template-columns: minmax(0, 520px); }
}
@media (max-width: 640px) {
  .mk-uses { grid-template-columns: 1fr; }
  .mk-cmp-row { grid-template-columns: 1.4fr .8fr .8fr; }
  .mk-cmp-row > span { padding: 12px 10px; font-size: 13.5px; }
  .mk-app-search { display: none; }
  .mk-foot-cols { gap: 28px; }
}

.tw-bgpicker { display: flex; flex-direction: column; gap: 6px; }
.tw-bglabel { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.tw-bgpicker .tw-bgpick { max-height: 172px; overflow: auto; }

/* =========================================================
   Apresentação futurista (.fx) — vermelho 3WX + ciano neon
   ========================================================= */
.fx { --bg0: #04070f; --bg1: #08101f; --glass: rgba(255,255,255,.06); --glass-b: rgba(255,255,255,.12);
  --cyan: #22d3ee; --cyan2: #3b82f6; --txt: #e8eef8; --txt2: #9fb0c8; background: var(--bg0); color: var(--txt); }
.fx a { color: inherit; }
.fx .mk-nav { position: relative; z-index: 5; }
.fx .mk-btn-red { background: linear-gradient(135deg, #ff3b42, #e3242b 55%, #b8141b); }
.fx-glow { box-shadow: 0 0 0 1px rgba(255,90,96,.4), 0 10px 40px rgba(227,36,43,.45), 0 0 80px rgba(227,36,43,.25); }
.fx-glow:hover { box-shadow: 0 0 0 1px rgba(255,120,125,.6), 0 14px 50px rgba(227,36,43,.6), 0 0 100px rgba(227,36,43,.35); }
.fx-btn-glass { background: rgba(255,255,255,.08); color: #fff !important; border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fx-btn-glass:hover { background: rgba(255,255,255,.16); }
.fx-grad { display: block; background: linear-gradient(90deg, #ffffff 0%, #8be9ff 35%, #22d3ee 55%, #ff6b70 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: fx-shine 8s ease-in-out infinite; }
@keyframes fx-shine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.fx-kicker { margin: 0 0 12px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

/* Hero */
.fx-hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 75% 40%, rgba(34,211,238,.12), transparent 60%),
              linear-gradient(180deg, rgba(4,7,15,.55) 0%, rgba(4,7,15,.35) 40%, var(--bg0) 100%),
              var(--img) center / cover no-repeat; }
.fx-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(34,211,238,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.10) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, #000 30%, transparent 75%); }
.fx-hero-in { position: relative; z-index: 2; flex: 1; max-width: 1240px; width: 100%; margin: 0 auto; padding: 40px 24px 30px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.fx-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.35); color: #bff4ff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: fx-pulse 2s infinite; }
@keyframes fx-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); } 70% { box-shadow: 0 0 0 12px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.fx-hero h1 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.fx-lead { margin: 0 0 32px; font-size: 19px; line-height: 1.6; color: var(--txt2); max-width: 34em; }
.fx-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.fx-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; background: var(--glass); border: 1px solid var(--glass-b); color: #dbe6f5; }
.fx-trust svg { color: var(--cyan); }
.fx-hero-visual { position: relative; height: 520px; }
.fx-orbit { position: absolute; inset: 6% 2% 6% 8%; border-radius: 50%; border: 1px solid rgba(34,211,238,.25); box-shadow: inset 0 0 80px rgba(34,211,238,.12), 0 0 120px rgba(34,211,238,.12); animation: fx-spin 40s linear infinite; }
.fx-orbit::before { content: ""; position: absolute; top: 8%; left: 18%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.fx-orbit::after { content: ""; position: absolute; bottom: 12%; right: 10%; width: 8px; height: 8px; border-radius: 50%; background: #ff5a60; box-shadow: 0 0 18px #ff5a60; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-window { position: absolute; left: 4%; right: 0; top: 50%; translate: 0 -50%; border-radius: 16px; overflow: hidden; background: rgba(10,16,30,.7);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 60px rgba(34,211,238,.18);
  transform: perspective(1400px) rotateY(-14deg) rotateX(6deg); transition: transform .25s ease-out; }
.fx-window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.fx-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.fx-window-bar i:nth-child(2) { background: #febc2e; } .fx-window-bar i:nth-child(3) { background: #28c840; }
.fx-window-bar span { margin-left: 12px; padding: 4px 12px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 12px; color: var(--txt2); }
.fx-window-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: linear-gradient(rgba(4,7,15,.35), rgba(4,7,15,.35)), var(--img) center / cover; }
.fx-mini { background: rgba(255,255,255,.9); color: #111; border-radius: 10px; padding: 10px 12px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.fx-mini h4 { margin: 0 0 6px; font-family: var(--display); font-size: 14px; }
.fx-mini p { margin: 0; font-size: 11.5px; line-height: 1.7; font-weight: 600; }
.fx-float { position: absolute; z-index: 3; display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 14px; background: rgba(8,16,31,.72);
  border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: fx-bob 6s ease-in-out infinite; }
.fx-float strong { font-family: var(--display); font-size: 28px; color: #fff; }
.fx-float span { font-size: 13px; color: var(--txt2); }
.fx-float-1 { left: -2%; bottom: 8%; } .fx-float-1 strong { color: var(--cyan); }
.fx-float-2 { right: 2%; top: 4%; animation-delay: -3s; } .fx-float-2 strong { color: #ff6b70; }
@keyframes fx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fx-stats { position: relative; z-index: 2; max-width: 1240px; width: calc(100% - 48px); margin: 0 auto 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.fx-stats div { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.08); }
.fx-stats div:first-child { border-left: 0; }
.fx-stats strong { font-family: var(--display); font-size: 36px; font-weight: 800; background: linear-gradient(90deg, #fff, #8be9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-stats span { color: var(--txt2); font-size: 14px; }

/* Sections */
.fx-sec { position: relative; max-width: 1240px; margin: 0 auto; padding: 110px 24px; }
.fx-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.fx-head h2, .fx-split-copy h2, .fx-cta h2 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
.fx-head p:not(.fx-kicker), .fx-split-copy p:not(.fx-kicker) { margin: 0; color: var(--txt2); font-size: 18px; line-height: 1.6; }
.fx-photo { max-width: none; background: linear-gradient(180deg, var(--bg0) 0%, rgba(4,7,15,.55) 30%, rgba(4,7,15,.6) 70%, var(--bg0) 100%), var(--img) center / cover no-repeat; }
.fx-photo > * { max-width: 1192px; margin-left: auto; margin-right: auto; }

/* Compare */
.fx-compare { max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.fx-cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.07); }
.fx-cmp-row:first-child { border-top: 0; }
.fx-cmp-row > span { padding: 16px 20px; font-size: 15.5px; }
.fx-cmp-row > span:not(:first-child) { display: flex; justify-content: center; text-align: center; }
.fx-cmp-head { background: rgba(255,255,255,.05); font-weight: 700; font-size: 14px; color: var(--txt2); }
.fx-cmp-row .us { background: linear-gradient(180deg, rgba(227,36,43,.14), rgba(227,36,43,.08)); }
.fx-cmp-row .yes { color: #4ade80; filter: drop-shadow(0 0 6px rgba(74,222,128,.6)); }
.fx-cmp-row .them.no { color: #4b5568; }
.fx-cmp-row .them small { color: var(--txt2); font-size: 12.5px; }

/* Cards */
.fx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx-cards-4 { grid-template-columns: repeat(4, 1fr); }
.fx-card { position: relative; padding: 28px; border-radius: 18px; background: rgba(10,18,34,.62); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.fx-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(34,211,238,.6), transparent 40%, transparent 60%, rgba(227,36,43,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.fx-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(34,211,238,.12); }
.fx-card:hover::before { opacity: 1; }
.fx-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; }
.fx-card p { margin: 0; color: var(--txt2); line-height: 1.6; }
.fx-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.35), rgba(34,211,238,.06)); border: 1px solid rgba(34,211,238,.4); box-shadow: 0 0 30px rgba(34,211,238,.25); }
.fx-ico .mk-ico { color: #bff4ff; margin: 0; width: 30px; height: 30px; }
.fx-emoji { display: block; font-size: 34px; margin-bottom: 14px; filter: drop-shadow(0 0 14px rgba(34,211,238,.35)); }

/* Browser mock */
.fx-browser { max-width: 1120px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 80px rgba(34,211,238,.15); transform: perspective(2000px) rotateX(8deg); transform-origin: 50% 0; transition: transform .6s; }
.fx-browser.in:hover { transform: perspective(2000px) rotateX(0deg); }
.fx-screen { background: var(--img) center 35% / cover no-repeat; font-size: 11px; }

/* Globe split */
.fx-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.fx-globe { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--img) center / cover; box-shadow: 0 0 120px rgba(59,130,246,.35), inset 0 0 60px rgba(0,0,0,.6); }
.fx-ring { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(34,211,238,.35); animation: fx-spin 60s linear infinite; }
.fx-ring.r2 { inset: -14%; border-style: solid; border-color: rgba(227,36,43,.2); animation-duration: 90s; animation-direction: reverse; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fx-tags span { padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.fx-tags small { color: var(--cyan); font-weight: 700; margin-left: 4px; }

/* Showcase (product look over city lights) */
.fx-showcase { padding: 100px 0; background: linear-gradient(180deg, var(--bg0), rgba(4,7,15,.25) 18%, rgba(4,7,15,.25) 82%, var(--bg0)), var(--img) center / cover fixed no-repeat; }
.fx-showcase .card { --card-a: .9; color: #000; }

/* Steps */
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.fx-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), #ff5a60, transparent); opacity: .6; }
.fx-steps li { position: relative; text-align: center; padding: 0 12px; }
.fx-step-n { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 18px; font-family: var(--display); font-weight: 800; font-size: 20px;
  background: var(--bg1); border: 1px solid rgba(34,211,238,.5); color: #bff4ff; box-shadow: 0 0 30px rgba(34,211,238,.3); position: relative; z-index: 1; }
.fx-steps h3 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; }
.fx-steps p { margin: 0; color: var(--txt2); line-height: 1.6; }

/* Plans (dark) */
.fx .mk-plan { background: rgba(10,18,34,.7); border: 1px solid rgba(255,255,255,.1); color: var(--txt); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fx .fx-plan-free { border: 1px solid rgba(255,90,96,.6); box-shadow: 0 0 60px rgba(227,36,43,.2); }
.fx .fx-plan-pro { background: linear-gradient(160deg, rgba(34,211,238,.12), rgba(59,130,246,.08) 50%, rgba(227,36,43,.12)); border-color: rgba(34,211,238,.35); }
.fx .mk-price small, .fx .mk-plan-note { color: var(--txt2); }
.fx .mk-plan-free li svg { color: #4ade80; }
.fx .fx-plan-pro li svg { color: var(--cyan); }
.fx .fx-plan-pro .mk-price { color: #8be9ff; font-size: 26px; }
.fx .mk-plan-note a { color: #fff; }

/* FAQ */
.fx-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.fx-faq details { border-radius: 14px; padding: 0 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .2s; }
.fx-faq details[open] { border-color: rgba(34,211,238,.45); box-shadow: 0 0 30px rgba(34,211,238,.08); }
.fx-faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-family: var(--display); font-weight: 700; font-size: 17px; position: relative; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--cyan); font-weight: 400; transition: transform .2s; }
.fx-faq details[open] summary::after { transform: rotate(45deg); }
.fx-faq details p { margin: 0 0 20px; color: var(--txt2); line-height: 1.65; }

/* CTA over Earth */
.fx-cta { position: relative; padding: 160px 24px; text-align: center; background: linear-gradient(180deg, var(--bg0) 0%, rgba(4,7,15,.3) 35%, rgba(4,7,15,.55) 100%), var(--img) center 30% / cover no-repeat; }
.fx-cta > div { max-width: 760px; margin: 0 auto; }
.fx-cta p:not(.fx-kicker) { color: #c9d6ea; font-size: 17.5px; line-height: 1.65; margin: 0 0 16px; }
.fx-cta .fx-motto { margin: 24px 0 34px !important; font-family: var(--display); font-size: 21px !important; font-weight: 700; color: #fff !important; }

/* Footer on dark */
.fx .mk-foot { background: #03060d; border-top: 1px solid rgba(255,255,255,.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fx-grad, .fx-orbit, .fx-float, .fx-ring, .fx-dot { animation: none; }
}
@media (max-width: 1080px) {
  .fx-hero-in { grid-template-columns: 1fr; }
  .fx-hero-visual { height: 420px; max-width: 640px; width: 100%; margin: 0 auto; }
  .fx-cards-4 { grid-template-columns: 1fr 1fr; }
  .fx-split { grid-template-columns: 1fr; }
  .fx-globe { max-width: 420px; width: 80%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .fx-cards, .fx-cards-4, .fx-steps { grid-template-columns: 1fr; }
  .fx-steps::before { display: none; }
  .fx-stats { grid-template-columns: 1fr 1fr; }
  .fx-stats div:nth-child(3) { border-left: 0; }
  .fx-hero-visual { height: 340px; }
  .fx-window { transform: none !important; left: 0; }
  .fx-float { display: none; }
  .fx-window-body { grid-template-columns: 1fr; }
  .fx-window-body .fx-mini:nth-child(n+3) { display: none; }
  .fx-sec { padding: 80px 20px; }
  .fx-cmp-row { grid-template-columns: 1.4fr .8fr .8fr; }
  .fx-cmp-row > span { padding: 12px 10px; font-size: 13.5px; }
  .fx-showcase { background-attachment: scroll; }
}
.fx .mk-nav { width: 100%; }
@media (max-width: 640px) {
  .mk-nav { padding: 16px; }
  .mk-nav .nsh-logo { height: 36px; width: auto; }
  .mk-btn-sm { white-space: nowrap; font-size: 13px; padding: 8px 12px; }
}

.tw-seg-grid { grid-template-columns: 1fr 1fr; }
.tw-seg-grid button { font-size: 12.5px; padding: 8px 6px; }
.tw-tpls { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 640px) { .tw-tpls { grid-template-columns: 1fr; } }

/* Modelos por perfil */
.fx-tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fx-tpl { position: relative; padding: 26px 24px; border-radius: 18px; background: rgba(10,18,34,.62); border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.fx-tpl::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tpl-c, var(--cyan)); box-shadow: 0 0 24px var(--tpl-c, var(--cyan)); }
.fx-tpl:hover { transform: translateY(-4px); border-color: var(--tpl-c, var(--cyan)); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.fx-tpl-universal { --tpl-c: #22d3ee; } .fx-tpl-portugal { --tpl-c: #22c55e; } .fx-tpl-criativos { --tpl-c: #e879f9; } .fx-tpl-empreendedores { --tpl-c: #ff5a60; }
.fx-tpl-ico { font-size: 32px; display: block; margin-bottom: 12px; }
.fx-tpl h3 { margin: 0 0 4px; font-family: var(--display); font-size: 21px; }
.fx-tpl-count { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--tpl-c, var(--cyan)); }
.fx-tpl p { color: var(--txt2); line-height: 1.55; font-size: 14.5px; }
.fx-tpl ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tpl li { padding: 4px 9px; border-radius: 8px; font-size: 12.5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.fx-center { text-align: center; margin: 40px 0 0; }
@media (max-width: 1080px) { .fx-tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fx-tpl-grid { grid-template-columns: 1fr; } }

/* ===== Links em forma de botão (v1.6.1) ===== */
.tw-block .links { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px; padding: 4px 2px 12px; line-height: 1.2; }
.tw-block .links .sep { display: none; }
.tw-block .links a, .fx-showcase .card .links a, .mk-showcase-cols .card .links a {
  display: inline-flex; align-items: center; max-width: 100%; padding: 6px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(9, 30, 66, .14); box-shadow: 0 1px 1px rgba(9, 30, 66, .08);
  color: #172b4d; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.tw-block .links a:visited, .fx-showcase .card .links a:visited, .mk-showcase-cols .card .links a:visited { color: #172b4d; }
.tw-block .links a:hover, .tw-block .links a:focus-visible,
.fx-showcase .card .links a:hover, .mk-showcase-cols .card .links a:hover {
  background: var(--red, #e3242b); border-color: var(--red, #e3242b); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(227, 36, 43, .3); outline: none; }
.tw-block .links a.dragging { opacity: .35; }
.tw-block .links .empty { padding: 6px 0; }
.tw-lph { height: 28px; }
.fx-showcase .card .links, .mk-showcase-cols .card .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0; }
.fx-showcase .card .links a, .mk-showcase-cols .card .links a { font-size: 12.5px; }
/* mock-ups da página de apresentação */
.fx-mini p, .mk-app-block p { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 0 !important; line-height: 1 !important; }
.fx-mini u, .mk-app-block u { text-decoration: none; font-size: 10.5px; padding: 3px 6px; border-radius: 5px; background: #fff; border: 1px solid rgba(9, 30, 66, .14); color: #172b4d; }
/* ===== Títulos dos blocos em maiúsculas (v1.6.2) ===== */
.tw-block-title, .fx-showcase .card h2, .mk-showcase-cols .card h2, .fx-mini h4, .mk-app-block h4 { text-transform: uppercase; letter-spacing: .04em; }
.tw-block-title { font-size: 15px; }

/* ===== Donativos (v1.8.0) ===== */
.fx-don-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(227, 36, 43, .16); color: #ff5a60; font-size: 22px; }
.fx .fx-don-how { background: linear-gradient(160deg, rgba(34,211,238,.12), rgba(59,130,246,.08) 50%, rgba(227,36,43,.12)); border-color: rgba(34,211,238,.35); }
.fx .fx-don-why li svg { color: #ff5a60; }
.fx-don-list { display: grid; gap: 12px; margin: 0; }
.fx-don-list > div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.fx-don-list dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.fx-don-list dd { margin: 0; display: grid; gap: 2px; }
.fx-don-list code { font-size: 16px; font-weight: 600; user-select: all; word-break: break-all; background: none; color: inherit; padding: 0; }
.fx-don-list small { opacity: .7; }
.fx-tpl-medicina { --tpl-c: #34d399; }

/* ===== Página inicial do navegador + login no telemóvel (v1.9.0) ===== */
.fx-hp-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 26px; background: linear-gradient(135deg, rgba(227,36,43,.22), rgba(34,211,238,.12) 60%, rgba(10,18,34,.7)); border: 1px solid rgba(255,90,96,.45); box-shadow: 0 0 80px rgba(227,36,43,.18); }
.fx-hp-copy h2 { margin: 6px 0 12px; font-family: var(--display); font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.fx-hp-copy p { opacity: .85; }
.fx-hp-url { display: flex; gap: 10px; margin-top: 22px; }
.fx-hp-url input { flex: 1; min-width: 0; font: inherit; font-weight: 600; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: inherit; }
.fx-hp-guide { padding: 22px; border-radius: 18px; background: rgba(5,10,20,.55); border: 1px solid rgba(255,255,255,.1); }
.hp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hp-tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; cursor: pointer; }
.hp-tabs button[aria-selected="true"] { background: var(--red, #e3242b); border-color: var(--red, #e3242b); color: #fff; }
.hp-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.hp-steps b { word-break: break-all; }
.hp-guide .hp-tabs button { border-color: rgba(9,30,66,.2); color: #172b4d; }
.hp-guide .hp-tabs button[aria-selected="true"] { color: #fff; }
.hp-guide .tw-row input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .fx-hp-card { grid-template-columns: 1fr; padding: 26px; gap: 24px; } }
.mk-links a.mk-login { display: inline-flex !important; }
@media (max-width: 640px) {
  .mk-links { gap: 12px; }
  .mk-links .mk-btn-sm { padding: 8px 12px; font-size: 13px; }
}
/* Endereço personalizado */
.tw-slug { display: grid; gap: 6px; margin: 12px 0 4px; }
.tw-slug-label { font-weight: 700; font-size: 13px; }
.tw-slug-field { display: flex; align-items: stretch; border: 1.5px solid #8590a2; border-radius: 6px; overflow: hidden; }
.tw-slug-pre { display: flex; align-items: center; padding: 0 8px; background: #f1f2f4; color: #44546f; font-size: 12px; white-space: nowrap; }
.tw-slug-field input { flex: 1; min-width: 0; border: 0 !important; outline: none; font: inherit; padding: 8px; }
.tw-hint.err { color: #ae2e24; }
.tw-btn-on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
/* hp: sem overflow no telemóvel */
.fx-hp-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.fx-hp-copy, .fx-hp-guide { min-width: 0; }
.fx-hp-url { flex-wrap: wrap; }
.fx-hp-url input { flex: 1 1 220px; }
.hp-steps li { overflow-wrap: anywhere; }
@media (max-width: 900px) { .fx-hp-card { grid-template-columns: minmax(0, 1fr); } .fx-hp-url .mk-btn { flex: 1 1 100%; } }
/* Mock-up da apresentação: botões com altura uniforme e títulos visíveis */
.fx-mini p, .mk-app-block p { align-items: center; align-content: flex-start; }
.fx-mini u, .mk-app-block u { display: inline-flex; align-items: center; line-height: 1.25 !important; white-space: nowrap; padding: 3px 7px; }
.mk-app-block h4 { color: #172b4d !important; }

/* Sobre nós */
.lg-lead { font-family: var(--display); font-size: 26px; line-height: 1.25; margin: 0 0 18px; }
.fx-about-link { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red, #e3242b); padding-bottom: 2px; }
.fx-about-link:hover { color: #ffb3b5; }
.mk-plan li svg { flex-shrink: 0; }

.lg-motto { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.3; margin: 22px 0 8px; padding-left: 14px; border-left: 4px solid var(--red, #e3242b); }

/* Palavra-passe forte no registo */
.mk-pwkit { display: grid; gap: 8px; margin: -4px 0 16px; }
.mk-pw-gen { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--red, #e3242b); background: rgba(227, 36, 43, .08); border: 1.5px solid rgba(227, 36, 43, .35); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.mk-pw-gen:hover { background: var(--red, #e3242b); color: #fff; }
.mk-pw-meter { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mk-pw-bar { flex: 1; height: 6px; border-radius: 99px; background: #e4e6ea; overflow: hidden; }
.mk-pw-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #c9372c; transition: width .2s, background .2s; }
.mk-pwkit[data-score="2"] .mk-pw-bar i { background: #e2a03f; }
.mk-pwkit[data-score="3"] .mk-pw-bar i { background: #4bce97; }
.mk-pwkit[data-score="4"] .mk-pw-bar i { background: #1f845a; }
.mk-pw-label { min-width: 90px; text-align: right; color: #44546f; }
.mk-pw-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 13px; color: #626f86; }
.mk-pw-rules li::before { content: "○"; display: inline-block; width: 16px; color: #8590a2; }
.mk-pw-rules li.ok { color: #1f845a; }
.mk-pw-rules li.ok::before { content: "✓"; color: #1f845a; font-weight: 700; }
.mk-pw-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: #dcfff1; color: #164b35; font-size: 13px; }
@media (max-width: 480px) { .mk-pw-rules { grid-template-columns: 1fr; } }

/* Registo: cidade e país lado a lado */
.mk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-row2 select { width: 100%; font: inherit; font-size: 16px; padding: 12px 12px; border: 1.5px solid #c9cdd1; border-radius: 10px; background: #fff; }
.mk-row2 select:focus { outline: 3px solid rgba(227,36,43,.25); border-color: var(--red); }
@media (max-width: 480px) { .mk-row2 { grid-template-columns: 1fr; } }

/* ================= 2.0 ================= */
/* Pesquisa: painéis e pesquisa na web */
.tw-results a.tw-r-board .r-ico, .tw-results a.tw-r-web .r-ico { background: #e9ecef; color: var(--ink-2); }
.tw-results a.tw-r-web { grid-template-rows: auto; border-top: 1px solid var(--line); margin-top: 4px; }
.tw-results a.tw-r-web .r-ico { grid-row: auto; }
.tw-h-link { margin-left: auto; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; }
.tw-h-link:hover { text-decoration: underline; }

/* Mais usados */
.tw-most { margin-bottom: 28px; }
.tw-most-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-most-list a { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-card); text-decoration: none; font-weight: 600; }
.tw-most-list a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-most-list a:hover, .tw-most-list a:focus-visible { color: var(--red); }
.tw-most-list .r-ico { grid-row: auto; width: 24px; height: 24px; border-radius: 50%; flex: none; }
.tw-unused { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow: auto; }
.tw-unused li { display: grid; grid-template-columns: 1fr auto 32px; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tw-unused a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* Links partidos */
.tw-lc-banner { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 7px 14px; border: 0; border-radius: 999px; background: #fff4e5; color: #7a4100; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-card); align-self: flex-start; }
.tw-lc-banner:hover { background: #ffe7c2; }
.tw-lc-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: #e56910; }
.links a.lc-bad { text-decoration: underline wavy #e56910; text-underline-offset: 3px; }
.tw-lc-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.tw-lc-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.tw-lc-list li > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tw-lc-why { font-size: 13px; font-weight: 600; color: #ae2e24; overflow-wrap: anywhere; }
.tw-lc-why.moved { color: #7a4100; }

/* Partilha */
.tw-hbadge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: 13px; }
.tw-hbadge.ok { background: rgba(31, 132, 90, .55); }
.tw-tile-sh { right: 62px; }
.tw-share-people { display: flex; flex-direction: column; gap: 8px; }
.tw-invite { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.tw-invite input { grid-column: 1 / -1; }
.tw-invite input, .tw-invite select, .tw-people select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; min-height: 40px; }
.tw-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tw-people li { display: grid; grid-template-columns: auto 1fr auto 32px; align-items: center; gap: 8px; }
.tw-people .who { display: flex; flex-direction: column; min-width: 0; }
.tw-people .who strong, .tw-people .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-avatar.sm { width: 28px; height: 28px; margin: 0; font-size: 11px; box-shadow: none; cursor: default; }
.tw-share hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Galeria (dentro da caixa Partilhar) */
.tw-gal-box { margin-top: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tw-gal-box summary { cursor: pointer; font-weight: 700; }
.tw-gal-box textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; resize: vertical; }
.tw-gal-state { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: #fff4e5; color: #7a4100; font-weight: 600; font-size: 13px; }
.tw-gal-state.ok { background: #dcfff1; color: #164b35; }
.tw-gal-state.no { background: #ffeceb; color: #ae2e24; }

/* Tipos de bloco */
.tw-kinds { grid-template-columns: repeat(3, 1fr); margin-bottom: 6px; }
.tw-kinds button { padding: 7px 4px; font-size: 12.5px; }
.tw-widget .tw-wbody { padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.tw-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; color: #111; }
.tw-note-edit { width: 100%; min-height: 90px; resize: vertical; font: inherit; line-height: 1.5; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 8px; background: rgba(255, 255, 255, .6); color: #111; }
.tw-note-edit:hover { border-color: var(--line); }
.tw-note-edit:focus { outline: none; border-color: var(--red); background: #fff; }
.tw-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-todo li { display: flex; align-items: center; gap: 4px; min-height: 34px; border-radius: 6px; }
.tw-todo li:hover { background: rgba(9, 30, 66, .05); }
.tw-todo label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 4px 6px; cursor: pointer; overflow-wrap: anywhere; }
.tw-todo input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.tw-todo li.done span { text-decoration: line-through; color: var(--muted); }
.tw-todo li.empty { padding: 4px 6px; }
.tw-todo-add { display: flex; gap: 6px; }
.tw-todo-add input { flex: 1; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; min-height: 40px; }
.tw-todo-add input:focus { outline: none; border-color: var(--red); }
.tw-wfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-ico { display: inline-block; width: 28px; height: 28px; flex: none; }
.wx-ico svg { width: 100%; height: 100%; display: block; }
.wx-ico.lg { width: 64px; height: 64px; }
.wx-temp { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1; color: #111; }
.wx-city { font-weight: 700; margin-top: 4px; }
.wx-desc { color: var(--ink-2); }
.wx-extra { margin: 0; font-size: 13px; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wx-days li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: rgba(9, 30, 66, .05); font-size: 13px; text-transform: capitalize; }
.wx-src { font-size: 11.5px; text-align: right; }
.tw-geo { list-style: none; margin: 0; padding: 0; }
.tw-geo button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; cursor: pointer; }
.tw-geo button:hover, .tw-geo button:focus-visible { background: #fff1f1; }
.tw-clock { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tw-clock li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(9, 30, 66, .08); }
.tw-clock li:last-child { border-bottom: 0; }
.ck-label { font-weight: 700; }
.ck-time { grid-row: span 2; align-self: center; font-family: var(--display); font-size: 26px; font-weight: 800; color: #111; font-variant-numeric: tabular-nums; }
.ck-date { font-size: 12.5px; text-transform: capitalize; }
.tw-rss { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tw-rss li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid rgba(9, 30, 66, .08); }
.tw-rss li:last-child { border-bottom: 0; }
.tw-rss a { color: #111; font-weight: 600; text-decoration: none; line-height: 1.35; }
.tw-rss a:hover, .tw-rss a:focus-visible { color: var(--red); text-decoration: underline; }
.tw-rss small { flex: none; }


.tw-share-help { margin: 0; font-size: 13px; line-height: 1.4; }
/* Relógio: vários fusos */
.ck-diff { grid-column: 2; justify-self: end; font-size: 12px; font-weight: 600; }
.tw-clock li { grid-template-rows: auto auto auto; }
.tw-clock li .ck-time { grid-row: 1 / span 2; }
.tw-zones li { grid-template-columns: 1fr auto 32px; }
.tw-zone-move { display: inline-flex; }
.tw-zone-move .tw-icon-btn:disabled, .tw-zones .tw-icon-btn:disabled { opacity: .3; cursor: default; }
.ico.rot90 { transform: rotate(90deg); display: inline-flex; }
.tw-zone-manual summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.tw-zone-manual .tw-form { margin-top: 8px; }
.tw-widget .tw-add-link { align-self: flex-start; }
.tw-clock li .ck-label, .tw-clock li .ck-date, .tw-clock li .ck-diff { grid-column: 1; justify-self: start; }
.tw-clock li .ck-time { grid-column: 2; grid-row: 1 / span 3; }

/* ================= Galeria de modelos (/modelos/) — estilo .fx ================= */
.gal-hero { min-height: auto; }
.gal-hero-in { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 56px 24px 36px; text-align: center; }
.gal-hero-in h1 { margin: 0 0 20px; font-family: var(--display); font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.gal-hero-in .fx-lead { margin-left: auto; margin-right: auto; }
.gal-hero-in .fx-trust { justify-content: center; }
.gal-stats { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin-top: 10px; }
.gal-sec { padding-top: 80px; }
.gal-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 40px; max-width: 1000px; }
.gal-filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px;
  background: var(--glass); border: 1px solid var(--glass-b); color: #dbe6f5; transition: background .2s, border-color .2s, color .2s; }
.gal-filter a span { font-size: 12.5px; font-weight: 700; color: var(--txt2); }
.gal-filter a:hover, .gal-filter a:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(34,211,238,.5); color: #fff; }
.gal-filter a[aria-current="page"] { background: linear-gradient(135deg, rgba(227,36,43,.35), rgba(227,36,43,.18)); border-color: rgba(255,90,96,.7); color: #fff; }
.gal-filter a[aria-current="page"] span { color: #ffd2d4; }
.gal-grid { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal-card { display: flex; flex-direction: column; }
.gal-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gal-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--txt2); }
.gal-badge.is-official { background: color-mix(in srgb, var(--tpl-c) 18%, transparent); border-color: color-mix(in srgb, var(--tpl-c) 55%, transparent); color: #fff; }
.gal-title { text-decoration: none; color: #fff; }
.gal-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.gal-title:focus-visible { outline: none; }
.gal-card:focus-within { border-color: var(--tpl-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpl-c) 45%, transparent); }
.gal-card p { margin: 0; }
.gal-card .fx-tpl-count { margin: 0 0 10px; }
.gal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; }
.gal-meta { font-size: 13px; color: var(--txt2); }
.gal-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--tpl-c); white-space: nowrap; }
.gal-card:hover .gal-go svg { transform: translateX(3px); }
.gal-go svg { transition: transform .2s; }
.gal-empty { text-align: center; color: var(--txt2); font-size: 17px; padding: 30px 0; }
.gal-cta { padding: 130px 24px; }
@media (max-width: 1080px) { .gal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-stats { grid-template-columns: repeat(3, 1fr); width: calc(100% - 32px); }
  .gal-stats div { padding: 16px 12px; }
  .gal-stats strong { font-size: 26px; }
  .gal-hero-in { padding-top: 32px; }
}
.fx-tpl-programadores { --tpl-c: #60a5fa; } .fx-tpl-marketing { --tpl-c: #fb923c; } .fx-tpl-professores { --tpl-c: #facc15; } .fx-tpl-arquitetos { --tpl-c: #38bdf8; } .fx-tpl-advogados { --tpl-c: #a78bfa; } .fx-tpl-engenheiros { --tpl-c: #2dd4bf; }
@media (max-width: 640px) {
  .gal-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -24px 28px; padding: 0 24px 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .gal-filter::-webkit-scrollbar { display: none; }
  .gal-filter a { flex: none; }
}
.gal-sec { overflow-x: clip; }
/* Página inicial: novidades da versão 2 */
.fx-card-new { border-color: rgba(34,211,238,.28); }
.fx-new { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #04121a; background: linear-gradient(90deg, #8be9ff, #22d3ee); box-shadow: 0 0 18px rgba(34,211,238,.45); }
.fx-cards-4 .fx-card { padding: 24px; }
.fx-cards-4 .fx-card h3 { font-size: 18px; }
.fx-cards-4 .fx-card p { font-size: 14.5px; }
/* Conteúdo para quem não executa JavaScript (motores de busca, assistentes de IA, leitores simples) */
.js .nsh-ssr { display: none; }
.nsh-ssr { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; background: #fff; color: #172b4d; font: 16px/1.55 Inter, system-ui, sans-serif; }
.nsh-ssr header { margin-bottom: 18px; font-weight: 700; }
.nsh-ssr h1 { margin: 0 0 8px; font-size: 32px; }
.nsh-ssr h2 { margin: 24px 0 6px; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.nsh-ssr ul { margin: 0; padding-left: 20px; columns: 2 220px; }
.nsh-ssr a { color: #b3261e; }
.tw-h .tw-count { margin-left: 10px; font-size: 13px; font-weight: 500; opacity: .65; letter-spacing: 0; text-transform: none; }
