/* ============================================================
   SecureGuard AI — Design Tokens + Components
   Portado do mockup de design (claude.ai/design)
   ============================================================ */

:root {
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-2: #0f1525;
  --surface: rgba(18, 24, 42, 0.6);
  --surface-solid: #121a2c;
  --border: rgba(120, 160, 220, 0.10);
  --border-strong: rgba(120, 160, 220, 0.22);
  --ink: #e7edf7;
  --ink-2: #aab4c8;
  --muted: #6f7a92;
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.55);
  --blue: #3b82f6;
  --green: #10d981;
  --green-glow: rgba(16, 217, 129, 0.45);
  --red: #ff5a6e;
  --red-soft: #ff8a96;
  --amber: #fbbf24;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 700px at 8% 35%, rgba(59, 130, 246, 0.08), transparent 65%),
    radial-gradient(700px 600px at 60% 100%, rgba(16, 217, 129, 0.05), transparent 65%),
    linear-gradient(180deg, #05070d 0%, #070b16 50%, #05070d 100%);
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
img, svg { max-width: 100%; display: block; }

/* ---------- BACKDROP ---------- */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(120,160,220,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.7  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: translateY(-200px) translateX(20px); opacity: 0; }
}
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow);
  animation: drift 9s linear infinite;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 1;
}
main { position: relative; z-index: 1; }

/* ---------- GLASS ---------- */
.glass {
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.62), rgba(14, 20, 36, 0.62));
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
          backdrop-filter: blur(14px) saturate(120%);
  border-radius: 18px;
}
.glass-soft {
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.45), rgba(14, 20, 36, 0.45));
  border: 1px solid var(--border); border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.hairline { border: 1px solid var(--border); }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.mono    { font-family: var(--font-mono); }
.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan);
}
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent; font-family: var(--font-sans); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 100%);
  color: #04121a;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.35), 0 8px 28px rgba(34, 211, 238, 0.28),
              inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.6), 0 12px 36px rgba(34, 211, 238, 0.45),
              inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(34,211,238,0.35); }
.btn-danger {
  background: rgba(255,90,110,0.10); color: var(--red);
  border: 1px solid rgba(255,90,110,0.30);
}
.btn-danger:hover { background: rgba(255,90,110,0.18); }
.btn-mini { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 6px; }

/* ---------- PILLS / BADGES / DOTS ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
}
.pill-cyan  { background: rgba(34, 211, 238, 0.10); color: var(--cyan);  border: 1px solid rgba(34, 211, 238, 0.25); }
.pill-green { background: rgba(16, 217, 129, 0.10); color: var(--green); border: 1px solid rgba(16, 217, 129, 0.28); }
.pill-red   { background: rgba(255, 90, 110, 0.10); color: var(--red);   border: 1px solid rgba(255, 90, 110, 0.28); }
.pill-amber { background: rgba(251, 191, 36, 0.10); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.pill-muted { background: rgba(255,255,255,0.04); color: var(--ink-2);   border: 1px solid var(--border); }

.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.dot-red   { background: var(--red);   box-shadow: 0 0 10px rgba(255, 90, 110, 0.6); }
.dot-cyan  { background: var(--cyan);  box-shadow: 0 0 10px var(--cyan-glow); }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px rgba(251,191,36,0.55); }

/* ---------- ANIMATIONS ---------- */
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.pulse { animation: pulse-soft 1.6s ease-in-out infinite; }

@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.caret {
  display: inline-block; width: 9px; height: 18px; background: var(--cyan);
  margin-left: 2px; animation: blink 1s steps(2) infinite; vertical-align: -3px;
}

@keyframes radar-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-sweep { transform-origin: 50% 50%; animation: radar-sweep 4s linear infinite; }

@keyframes radar-ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }
.ping { animation: radar-ping 2.2s ease-out infinite; transform-origin: center; }

@keyframes scan-y { 0% { transform: translateY(-100%); } 100% { transform: translateY(1200%); } }
.scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.6), transparent);
  animation: scan-y 3.2s linear infinite;
}

@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar { transform-origin: 50% 100%; animation: bar-grow .7s cubic-bezier(.2,.7,.3,1) both; }

@keyframes data-flow { from { background-position-x: 0; } to { background-position-x: 28px; } }
.data-bar {
  height: 6px; border-radius: 3px;
  background-image: repeating-linear-gradient(135deg, rgba(34,211,238,0.45) 0 6px, rgba(34,211,238,0) 6px 14px);
  background-color: rgba(34,211,238,0.08);
  animation: data-flow 1.2s linear infinite;
}

@keyframes dash-flow { to { stroke-dashoffset: -200; } }
.flow-line { stroke-dasharray: 4 6; animation: dash-flow 4s linear infinite; }

@keyframes alert-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,110,0); }
  50%      { box-shadow: 0 0 0 6px rgba(255,90,110,0.18); }
}
.alert-flash { animation: alert-flash 2s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .42s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- HUD CORNERS ---------- */
.hud-corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--cyan); opacity: 0.55; }
.hud-corner.tl { top: -1px;    left: -1px;  border-right: none; border-bottom: none; }
.hud-corner.tr { top: -1px;    right: -1px; border-left: none;  border-bottom: none; }
.hud-corner.bl { bottom: -1px; left: -1px;  border-right: none; border-top: none; }
.hud-corner.br { bottom: -1px; right: -1px; border-left: none;  border-top: none; }
.hud-corner.red { border-color: var(--red); }

/* ---------- INPUTS ---------- */
.input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  background: rgba(8, 12, 22, 0.7); border: 1px solid var(--border-strong); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="password"], .input-mono { font-family: var(--font-mono); letter-spacing: 0.18em; }
input:focus, select:focus, textarea:focus, .input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
}
input:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
label.field-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ---------- DIVIDER ---------- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  background: rgba(5, 7, 13, 0.6);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand-mark { position: relative; width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.brand-text .name span { color: var(--cyan); }
.brand-text .sub {
  font-family: var(--font-mono); font-size: 9px; color: var(--muted);
  letter-spacing: 0.25em; margin-top: 3px;
}
.site-header nav {
  display: flex; align-items: center; gap: 4px;
}
.site-header nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.site-header nav a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.site-header nav a.active { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px; margin-top: 20px;
  position: relative; z-index: 1;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.site-footer .links { display: flex; gap: 24px; font-size: 12.5px; color: var(--muted); }
.site-footer .links a { color: inherit; }

/* ---------- FLASH ---------- */
.flashes {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 18px auto 0; padding: 0 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.flash {
  padding: 10px 14px; border-radius: 8px;
  border-left: 3px solid var(--cyan);
  background: var(--surface); font-size: 14px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.flash-error { border-left-color: var(--red); color: #ffd0d0; background: rgba(255, 90, 110, 0.08); }
.flash-ok    { border-left-color: var(--green); }

/* ---------- HERO ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.22);
  margin-bottom: 24px;
}
.hero-pill .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(34,211,238,0.15);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--cyan);
}
.hero h1 {
  font-size: 64px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #22d3ee, #3b82f6 60%, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
.hero .cta-row { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust-row { display: flex; align-items: center; gap: 22px; margin-top: 40px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.hero .trust-row > div { display: flex; align-items: center; gap: 8px; }

.hero-status {
  margin-top: 36px; padding: 14px;
  display: flex; align-items: center; gap: 18px;
}
.hero-status .stat-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hero-status .stat-text .row {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  display: flex; justify-content: space-between;
}
.hero-status .stat-text .row .ms { color: var(--cyan); }
.hero-status .vbar { width: 1px; height: 22px; background: var(--border-strong); }

/* ---------- MONITOR MOCKUP ---------- */
.monitor-wrap { position: relative; }
.monitor {
  position: relative; border-radius: 18px; padding: 14px;
  background: linear-gradient(180deg, #0d1424, #060912);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(34,211,238,0.10), inset 0 1px 0 rgba(255,255,255,0.04);
}
.monitor .notch {
  display: flex; justify-content: center; margin-bottom: 10px;
}
.monitor .notch .badge {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #04070d; border: 1px solid var(--border);
}
.monitor .notch .badge .label {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--red-soft); letter-spacing: 0.18em;
}
.monitor .screen {
  position: relative; border-radius: 10px; overflow: hidden;
  background: #03060c; aspect-ratio: 16 / 10;
  border: 1px solid rgba(120,160,220,0.10);
}
.monitor .wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 70% 30%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(180deg, #061020, #03060c);
}
.monitor .win {
  position: absolute; border-radius: 8px;
  background: rgba(18,26,46,0.7); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.monitor .win-a { top: 16px; left: 16px; width: 52%; height: 42%; padding: 10px; }
.monitor .win-b { top: 30px; right: 16px; width: 34%; height: 50%; }
.monitor .win-a .traf { display: flex; gap: 5px; margin-bottom: 10px; }
.monitor .win-a .traf span { width: 8px; height: 8px; border-radius: 99px; display: block; }
.monitor .win-a .traf .r { background: #ff5a6e; }
.monitor .win-a .traf .y { background: #fbbf24; }
.monitor .win-a .traf .g { background: #10d981; }
.monitor .win-a .line { height: 5px; background: rgba(170,180,200,0.16); border-radius: 3px; margin-bottom: 6px; }
.monitor .taskbar {
  position: absolute; bottom: 16px; left: 16px; right: 16px; height: 24px;
  border-radius: 6px; background: rgba(8,12,22,0.85); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 10px; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; color: var(--muted);
}
.monitor .taskbar .spacer { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.monitor .dim {
  position: absolute; inset: 0;
  background: rgba(3,6,12,0.62);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.monitor .webcam {
  position: absolute; right: 14px; bottom: 50px;
  width: 130px; height: 86px; border-radius: 8px; overflow: hidden;
  border: 1.5px solid rgba(255,90,110,0.55);
  background: linear-gradient(180deg, #0a1020, #050810);
  box-shadow: 0 0 24px rgba(255,90,110,0.25);
}
.monitor .webcam .live-tag {
  position: absolute; top: 4px; left: 6px;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 8px; color: #ff8a96; letter-spacing: 0.18em;
}
.silhouette { filter: drop-shadow(0 0 18px rgba(255,90,110,0.35)); }

.lock-modal {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 320px; padding: 22px;
  border-color: rgba(255,90,110,0.35) !important;
  box-shadow: 0 0 0 1px rgba(255,90,110,0.18), 0 30px 80px rgba(255,90,110,0.18);
  transition: transform .1s ease-out;
}
.lock-modal.shake { transform: translate(-54%, -50%); }
.lock-modal .head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lock-modal .head .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,90,110,0.10); border: 1px solid rgba(255,90,110,0.35);
  display: flex; align-items: center; justify-content: center;
}
.lock-modal .head .ttl { display: flex; flex-direction: column; line-height: 1.2; }
.lock-modal .head .ttl .pre {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--red-soft); letter-spacing: 0.18em;
}
.lock-modal .head .ttl .name { font-weight: 700; font-size: 14px; }
.lock-modal p { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin-bottom: 14px; }
.lock-modal .below { display: flex; justify-content: space-between; margin-top: 12px; }
.lock-modal .below span { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.lock-modal .below a { font-size: 11px; color: var(--cyan); }
.unlock-ok {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.unlock-ok .circ {
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(16,217,129,0.12); border: 1px solid rgba(16,217,129,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(16,217,129,0.35);
}

.monitor .stand-row { display: flex; justify-content: center; margin-top: -1px; }
.monitor .stand-row .stand {
  width: 40%; height: 38px;
  background: linear-gradient(180deg, #0d1424, #050810);
  border-radius: 0 0 14px 14px; border: 1px solid var(--border-strong); border-top: none;
}
.monitor-wrap .base { display: flex; justify-content: center; margin-top: -6px; }
.monitor-wrap .base .foot {
  width: 60%; height: 8px;
  background: #0a0f1c; border-radius: 999px; border: 1px solid var(--border);
}
.monitor-brand {
  display: flex; justify-content: center; margin-top: 10px;
  font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.3em;
}

/* floating chips */
.float-chip {
  position: absolute; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.float-chip .ic { display: inline-flex; }
.float-chip .col { display: flex; flex-direction: column; line-height: 1.3; }
.float-chip .pre { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }
.float-chip .ttl { font-weight: 600; }
.float-chip.red { border-color: rgba(255,90,110,0.35); }
.float-chip.red .pre { color: var(--red-soft); }

/* ---------- SECTION HEADERS ---------- */
.section { padding: 100px 0 80px; }
.section.compact { padding: 60px 0 80px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 44px; gap: 32px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: 44px; font-weight: 700; line-height: 1.05; max-width: 680px;
}
.section-head h2 .soft { color: var(--ink-2); font-weight: 400; }
.section-aside { max-width: 320px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- HOW IT WORKS ---------- */
.three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-feat { padding: 28px; position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.card-feat:hover { transform: translateY(-3px); border-color: rgba(34,211,238,0.28); box-shadow: 0 18px 50px rgba(34,211,238,0.10); }
.card-feat .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-feat .icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.card-feat .icon-box.cyan  { background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.30); }
.card-feat .icon-box.green { background: rgba(16,217,129,0.10); border: 1px solid rgba(16,217,129,0.30); }
.card-feat .icon-box.amber { background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.30); }
.card-feat .tag-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted);
}
.card-feat h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.card-feat p  { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.card-feat .viz { margin-top: 22px; height: 110px; }
.card-feat .more { margin-top: 18px; display: flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 12px; font-weight: 500; }

/* ---------- EXTRA SECURITY ---------- */
.four-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-sec { padding: 22px; }
.card-sec .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-sec .icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.22);
  display: flex; align-items: center; justify-content: center;
}
.card-sec .tag {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--cyan); letter-spacing: 0.2em;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.18);
}
.card-sec h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-sec p  { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.card-sec .metrics { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; }
.card-sec .metric { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; }
.card-sec .metric .k { color: var(--muted); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 48px 56px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 38px; font-weight: 700; line-height: 1.1; margin-bottom: 12px; }
.cta-banner p  { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.cta-banner .actions { display: flex; flex-direction: column; gap: 10px; }
.cta-banner .glow-a {
  position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
}
.cta-banner .glow-b {
  position: absolute; left: -60px; bottom: -120px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(16,217,129,0.12), transparent 70%);
}
.cta-banner .copy { max-width: 600px; position: relative; z-index: 1; }
.cta-banner .actions { position: relative; z-index: 1; }
.cta-banner .actions .hint {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  text-align: center; margin-top: 4px;
}

/* ---------- AUTH CARDS ---------- */
.auth-shell {
  min-height: calc(100vh - 68px - 100px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 420px; padding: 36px 32px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-card .auth-brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.auth-card .auth-brand .mark { width: 44px; height: 44px; }
.auth-card h1 {
  font-size: 26px; font-weight: 700; text-align: center; letter-spacing: -0.02em;
}
.auth-card .auth-sub {
  text-align: center; color: var(--ink-2); font-size: 13.5px; margin-bottom: 6px;
}
.auth-card button[type="submit"] {
  margin-top: 4px;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 100%);
  color: #04121a; border: 0; height: 46px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.35), 0 8px 28px rgba(34, 211, 238, 0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}
.auth-card button[type="submit"]:hover { transform: translateY(-1px); }
.auth-card .auth-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- DASHBOARD ---------- */
.dashboard-grid {
  padding: 14px;
  display: grid; grid-template-columns: 240px 1fr; gap: 14px; min-height: 640px;
}
.dash-side { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.dash-side .user {
  padding: 8px 10px 16px; display: flex; align-items: center; gap: 10px;
}
.dash-side .user .avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #04121a; font-size: 13px;
}
.dash-side .user .col { display: flex; flex-direction: column; line-height: 1.2; }
.dash-side .user .name { font-weight: 600; font-size: 13px; }
.dash-side .user .plan { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; border: 1px solid transparent;
  text-decoration: none;
}
.side-item:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.side-item.active {
  background: linear-gradient(180deg, rgba(34,211,238,0.10), rgba(34,211,238,0.04));
  color: var(--cyan); border-color: rgba(34,211,238,0.18);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.04);
}
.side-item .badge {
  margin-left: auto; height: 18px; padding: 0 8px; font-size: 10px;
  border-radius: 999px;
}
.dash-side .update-card {
  margin-top: auto; padding: 12px; border-radius: 12px;
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.18);
}
.dash-side .update-card .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-side .update-card .ttl { font-size: 12.5px; font-weight: 600; }
.dash-side .update-card p { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.dash-side .update-card a { font-size: 11px; color: var(--cyan); font-weight: 600; }

.dash-main {
  background: rgba(5, 8, 16, 0.55); border-radius: 14px;
  border: 1px solid var(--border); padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-top .pre { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; }
.dash-top h3 { font-size: 22px; font-weight: 600; margin-top: 6px; }
.dash-top .actions { display: flex; align-items: center; gap: 10px; }
.dash-top .actions .btn { height: 36px; font-size: 12.5px; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { padding: 16px; position: relative; overflow: hidden; }
.metric-card .glow {
  position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px; border-radius: 99px;
}
.metric-card.green  .glow { background: radial-gradient(circle, rgba(16,217,129,0.18), transparent 70%); }
.metric-card.red    .glow { background: radial-gradient(circle, rgba(255,90,110,0.18), transparent 70%); }
.metric-card.amber  .glow { background: radial-gradient(circle, rgba(251,191,36,0.18), transparent 70%); }
.metric-card.cyan   .glow { background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%); }
.metric-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.metric-card .icon-box {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.metric-card.green .icon-box { background: rgba(16,217,129,0.10); border: 1px solid rgba(16,217,129,0.30); }
.metric-card.red   .icon-box { background: rgba(255,90,110,0.10); border: 1px solid rgba(255,90,110,0.30); }
.metric-card.amber .icon-box { background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.30); }
.metric-card.cyan  .icon-box { background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.30); }
.metric-card .label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.14em; margin-bottom: 6px; text-transform: uppercase; }
.metric-card .value { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.metric-card.green .value { color: var(--green); }
.metric-card.red   .value { color: var(--red); }
.metric-card.amber .value { color: var(--amber); }
.metric-card.cyan  .value { color: var(--cyan); }
.metric-card .sub  { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }

.chart-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.chart-card, .radar-card { padding: 18px; display: flex; flex-direction: column; }
.chart-card .head, .radar-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 10px; }
.chart-card .pre, .radar-card .pre { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }
.chart-card .total { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.chart-card .total .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.range-row { display: flex; gap: 6px; }
.range-row .pill { cursor: pointer; height: 26px; font-size: 11px; padding: 0 10px; }
.chart-area { position: relative; flex: 1; min-height: 180px; margin-top: 18px; }
.chart-area .grid-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(120,160,220,0.06); }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 6px; }
.chart-bars .col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.chart-bars .col .barv {
  width: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #22d3ee, rgba(34,211,238,0.15));
  box-shadow: 0 -4px 16px rgba(34,211,238,0.18);
  transform-origin: 50% 100%;
  animation: bar-grow .7s cubic-bezier(.2,.7,.3,1) both;
}
.chart-bars .col.hot .barv {
  background: linear-gradient(180deg, #ff5a6e, rgba(255,90,110,0.2));
  box-shadow: 0 -4px 16px rgba(255,90,110,0.35);
}
.chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9.5px; color: var(--muted); font-family: var(--font-mono); }

.radar-svg-wrap { position: relative; width: 100%; aspect-ratio: 1; margin-top: 14px; }
.radar-card .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; }
.radar-card .stats .row { display: flex; justify-content: space-between; color: var(--ink-2); }

.logs-card { padding: 18px; }
.logs-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.logs-card .head .pre { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }
.logs-card .body { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; }
.log-row {
  display: grid; grid-template-columns: 90px 64px 1fr 100px; gap: 12px;
  padding: 8px 10px; border-radius: 6px;
  border-left: 2px solid var(--cyan); align-items: center;
}
.log-row.red    { border-left-color: var(--red);   background: rgba(255,90,110,0.05); }
.log-row.green  { border-left-color: var(--green); }
.log-row.amber  { border-left-color: var(--amber); }
.log-row.cyan   { border-left-color: var(--cyan);  }
.log-row .t   { color: var(--muted); font-size: 11px; }
.log-row .tag { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; }
.log-row.red .tag    { color: var(--red); }
.log-row.green .tag  { color: var(--green); }
.log-row.amber .tag  { color: var(--amber); }
.log-row.cyan .tag   { color: var(--cyan); }
.log-row .ev   { color: var(--ink); font-family: var(--font-sans); font-size: 12.5px; }
.log-row .meta { color: var(--muted); font-size: 11px; text-align: right; }

/* ---------- DOWNLOAD PAGE ---------- */
.download-shell { padding: 56px 0 80px; }
.download-card { padding: 36px; }
.download-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.download-card h3 { font-size: 14px; font-weight: 600; margin: 22px 0 10px; color: var(--ink); }
.download-card ul, .download-card ol { padding-left: 18px; }
.download-card li { padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.download-card code { background: rgba(34,211,238,0.08); padding: 2px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }

/* ---------- TABLE (used in dashboard sections) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- 404 ---------- */
.center-card {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center; justify-content: center;
}
.center-card .glass { padding: 48px; text-align: center; max-width: 480px; }
.center-card h1 { font-size: 72px; color: var(--cyan); margin-bottom: 10px; }

/* ---------- SELECTION ---------- */
::selection { background: rgba(34,211,238,0.35); color: var(--ink); }

/* ---------- TOASTS ---------- */
#toast-host {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 1000; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.95), rgba(14, 20, 36, 0.95));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--cyan);
  padding: 12px 38px 12px 16px;
  border-radius: 8px;
  font-size: 13.5px; color: var(--ink);
  min-width: 240px; max-width: 380px;
  position: relative;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: toast-in 0.25s ease-out;
  transition: opacity 0.25s;
}
.toast.ok  { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); color: #ffd0d0; }
.toast.warn{ border-left-color: var(--amber); }
.toast .toast-close {
  position: absolute; right: 8px; top: 6px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.toast .toast-close:hover { color: var(--ink); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- PASSWORD STRENGTH METER ---------- */
.pwd-strength {
  margin-top: -4px;
  display: flex; flex-direction: column; gap: 4px;
}
.pwd-bar {
  height: 4px; background: rgba(120,160,220,0.10);
  border-radius: 2px; overflow: hidden;
}
.pwd-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--cyan); transition: width 0.25s ease, background 0.25s ease;
  border-radius: 2px;
}
.pwd-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- SPINNER ---------- */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(4,18,26,0.3); border-top-color: #04121a;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
.btn-ghost .spinner, .btn-danger .spinner {
  border-color: rgba(232,237,247,0.2);
  border-top-color: var(--cyan);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- COPY BUTTON ---------- */
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
  color: var(--cyan);
  padding: 3px 8px; border-radius: 5px;
  font-size: 11px; font-family: var(--font-mono);
  cursor: pointer; transition: all .15s;
  margin-left: 6px;
}
.copy-btn:hover { background: rgba(34,211,238,0.15); border-color: var(--cyan); }

.mono-with-copy {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(8,12,22,0.5);
  border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 6px;
}
.mono-with-copy code {
  background: transparent !important; padding: 0; color: var(--ink-2);
  border-radius: 0;
}

/* ---------- MOBILE NAV HAMBURGER ---------- */
.burger {
  display: none;
  background: transparent; border: 1px solid var(--border-strong);
  width: 38px; height: 38px; border-radius: 8px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger:hover { background: rgba(255,255,255,0.04); }
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  margin: 3px 0; transition: transform .2s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- CARDS DE SEGURANÇA — CORES VARIADAS ---------- */
.card-sec.cyan .icon-box  { background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.22); }
.card-sec.cyan .tag       { background: rgba(34,211,238,0.07); border-color: rgba(34,211,238,0.18); color: var(--cyan); }
.card-sec.cyan .icon-box i{ color: var(--cyan); }

.card-sec.green .icon-box { background: rgba(16,217,129,0.08); border-color: rgba(16,217,129,0.22); }
.card-sec.green .tag      { background: rgba(16,217,129,0.07); border-color: rgba(16,217,129,0.18); color: var(--green); }
.card-sec.green .icon-box i{ color: var(--green); }

.card-sec.amber .icon-box { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.22); }
.card-sec.amber .tag      { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.18); color: var(--amber); }
.card-sec.amber .icon-box i{ color: var(--amber); }

.card-sec.red .icon-box   { background: rgba(255,90,110,0.08); border-color: rgba(255,90,110,0.22); }
.card-sec.red .tag        { background: rgba(255,90,110,0.07); border-color: rgba(255,90,110,0.18); color: var(--red); }
.card-sec.red .icon-box i { color: var(--red); }

/* ---------- SUB-PAGE LAYOUT (account/devices/logs/security) ---------- */
.sub-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 18px;
  margin-top: 24px;
}
.sub-side {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  position: sticky; top: 88px; align-self: flex-start;
}
.sub-side .user {
  padding: 4px 10px 14px; display: flex; align-items: center; gap: 10px;
}
.sub-side .user .avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #04121a; font-size: 13px;
}
.sub-side .user .col { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sub-side .user .name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sub-side .user .plan { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.sub-content {
  display: flex; flex-direction: column; gap: 16px;
}
.sub-content > .page-head {
  margin-bottom: 4px;
}
.sub-content > .page-head h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
}
.sub-content > .page-head .pre {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px; display: block;
}

/* device card */
.device-card {
  padding: 18px; display: flex; align-items: center; gap: 18px;
  position: relative;
}
.device-card .dev-ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.device-card .dev-main { flex: 1; min-width: 0; }
.device-card .dev-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.device-card .dev-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.device-card .dev-stats {
  display: flex; gap: 22px; font-family: var(--font-mono); font-size: 11px;
}
.device-card .dev-stats .k { color: var(--muted); display: block; letter-spacing: 0.1em; text-transform: uppercase; font-size: 9.5px; margin-bottom: 2px; }
.device-card .dev-stats .v { color: var(--ink-2); }

/* logs table on logs page */
.logs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.logs-table th { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.logs-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-family: var(--font-mono); }
.logs-table tr:hover td { background: rgba(255,255,255,0.02); }
.logs-table .sev-red    { color: var(--red); }
.logs-table .sev-amber  { color: var(--amber); }
.logs-table .sev-green  { color: var(--green); }
.logs-table .sev-cyan   { color: var(--cyan); }
.logs-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logs-filter input, .logs-filter select { height: 38px; max-width: 320px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.pager a, .pager span {
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--border); color: var(--ink-2); text-decoration: none;
}
.pager a:hover { color: var(--cyan); border-color: rgba(34,211,238,0.4); }
.pager .current { background: rgba(34,211,238,0.10); color: var(--cyan); border-color: rgba(34,211,238,0.25); }

/* recovery codes grid */
.recovery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-top: 16px;
}
.recovery-code {
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(8,12,22,0.5);
  border: 1px solid var(--border-strong);
  text-align: center; letter-spacing: 0.1em;
  color: var(--ink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .three-cards { grid-template-columns: 1fr; }
  .four-cards { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .section-head h2, .cta-banner h2 { font-size: 32px; }
}

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .site-header nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(5, 7, 13, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-header nav.open { max-height: 400px; }
  .site-header nav a { padding: 12px 6px; }
  .header-actions { gap: 6px; }
  .header-actions .pill-green { display: none; }
  .sub-layout { grid-template-columns: 1fr; }
  .sub-side { position: relative; top: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 60px 0 40px; }
  .four-cards, .metric-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 24px; flex-direction: column; align-items: stretch; }
  .device-card { flex-direction: column; align-items: flex-start; }
  .device-card .dev-stats { width: 100%; }
  .logs-table { font-size: 11px; }
  .logs-table th, .logs-table td { padding: 6px 8px; }
}

/* ---------- STATUS PAGE — barras de uptime 90d ---------- */
.uptime-bar {
  flex: 1; height: 100%; border-radius: 2px;
  transition: opacity .2s; cursor: pointer;
}
.uptime-ok      { background: rgba(16, 217, 129, 0.55); }
.uptime-partial { background: rgba(251, 191, 36, 0.55); }
.uptime-down    { background: rgba(255, 90, 110, 0.55); }

/* ---------- LANDING — extras (FAQ, testimonials) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 16px 20px; border-radius: 10px; cursor: pointer; }
.faq-item summary {
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item > p {
  margin-top: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65;
}
.testimonial-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
}
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- CONTATO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.contact-email {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 10px;
  display: inline-block;
}

/* ---------- LEGAL PAGES (privacidade, termos) ---------- */
.legal-body {
  line-height: 1.7;
  color: var(--ink-2);
  font-size: 14.5px;
}
.legal-body h3 {
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body ul { padding-left: 22px; margin-top: 8px; }
.legal-body p + p { margin-top: 8px; }

/* ---------- DOWNLOAD PAGE (app-focused) ---------- */
.dl-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .dl-hero { grid-template-columns: 1fr; } }

.dl-preview {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.dl-browserbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dl-url {
  margin-left: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.dl-panel-body { padding: 16px; }
.dl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dl-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.dl-tabs { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); }
.dl-tabs .on { color: var(--ink); border-bottom: 1.5px solid var(--cyan); padding-bottom: 2px; }
.dl-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.dl-mini {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dl-k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dl-v { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.dl-v.ok { font-size: 12.5px; color: var(--green); }
.dl-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.dl-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), rgba(34,211,238,0.25));
  border-radius: 2px 2px 0 0;
  min-height: 6px;
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  padding: 4px 0;
}
.dl-steps { margin-top: 8px; }

/* ---- ações de controle remoto no card de dispositivo ---- */
.dev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-mini.btn-cyan {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.08);
}
.btn-mini.btn-cyan:hover { background: rgba(34,211,238,0.16); }

/* ---- barra de controle do acesso remoto (touch + teclado) ---- */
.rc-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
.rc-tbtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 12.5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.rc-tbtn:hover { color: var(--ink); border-color: rgba(34,211,238,0.35); }
.rc-tbtn:active { transform: scale(0.96); }
.rc-tbtn.active { color: var(--cyan); border-color: var(--cyan); background: rgba(34,211,238,0.12); }

/* responsivo: no celular o painel de notas vira 1 coluna e botões maiores */
@media (max-width: 700px) {
  #rc-wrap { min-height: 220px !important; }
  .rc-tbtn { padding: 9px 13px; font-size: 13.5px; }
  .glass [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---- Control Center (grade do PC central) ---- */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cc-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-title { display: flex; gap: 10px; align-items: center; }
.cc-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.cc-host { font-size: 11px; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) { .cc-grid { grid-template-columns: 1fr; } }

/* ---- miniaturas ao vivo do Control Center (mosaico) ---- */
.cc-thumb-link { display: block; }
.cc-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  background: #000; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-thumb-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 11px; }
.cc-thumb-link:hover .cc-thumb { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34,211,238,0.4); }

/* ---- mosaico em tela cheia (monitor de vigilância) ---- */
.cc-grid.cc-fullscreen {
  background: #000; padding: 12px; gap: 10px; overflow: auto;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.cc-grid.cc-fullscreen .cc-card { background: #0a0a0a; }
.cc-grid.cc-fullscreen .cc-thumb { aspect-ratio: 16 / 9; }

/* ---- página de planos ---- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan-card.plan-featured { border-color: rgba(34,211,238,0.45); box-shadow: 0 0 0 1px rgba(34,211,238,0.25), 0 20px 60px rgba(0,0,0,0.4); }
.plan-badge { position: absolute; top: -11px; left: 22px; background: var(--cyan); color: #001018; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.plan-price { margin: 10px 0 4px; }
.plan-price .amt { font-size: 30px; font-weight: 800; color: var(--ink); }
.plan-price .per { font-size: 13px; color: var(--muted); }
.plan-tagline { font-size: 13.5px; min-height: 38px; }
.plan-feats { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
