
/* ── Tema monocromático preto e branco ── */
:root,
[data-theme="black"] {
  --bg: #080808;
  --bg-2: #111111;
  --bg-3: #1b1b1b;
  --text: #f5f5f5;
  --muted: #ababab;
  --muted-2: #777777;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);
  --accent: #ffffff;
  --accent-2: #d7d7d7;
  --good: #eeeeee;
  --warn: #cccccc;
  --danger: #ffffff;
  --primary: #ffffff;
  --primary-deep: #bdbdbd;
  --glow: 0 0 28px rgba(255, 255, 255, 0.16);
  color-scheme: dark;
}
[data-theme="gray"] {
  --bg: #121212;
  --bg-2: #1b1b1b;
  --bg-3: #262626;
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --muted-2: #858585;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);
  --accent: #ffffff;
  --accent-2: #d7d7d7;
  --primary: #ffffff;
  --primary-deep: #bdbdbd;
}
[data-theme="white"] {
  --bg: #f7f7f7;
  --bg-2: #ffffff;
  --bg-3: #ededed;
  --text: #111111;
  --muted: #5f5f5f;
  --muted-2: #888888;
  --line: rgba(0, 0, 0, 0.14);
  --line-2: rgba(0, 0, 0, 0.28);
  --accent: #111111;
  --accent-2: #333333;
  --primary: #111111;
  --primary-deep: #444444;
  color-scheme: light;
}

/* Sliders bonitos */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  outline: none;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(255,255,255,.16);
  cursor: pointer;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-val {
  min-width: 42px;
  text-align: right;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 13px;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}
.card, .topbar, .user-row, .nav-item {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--text);
}
.btn.primary, .btn.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)) !important;
  border-color: transparent !important;
  color: #000 !important;
  box-shadow: var(--glow);
}
.input, .num, textarea, select {
  background: var(--bg-3) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

:root {
  --bg: #080808;
  --bg-2: #111111;
  --bg-3: #1b1b1b;
  --text: #f5f5f5;
  --muted: #ababab;
  --muted-2: #777777;
  --line: #292929;
  --line-2: #444444;
  --accent: #a3ffd1;
  --accent-2: #74e6ad;
  --cyan: #a3ffd1;
  --good: #a3ffd1;
  --warn: #ffb38f;
  --danger: #ff806c;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

:root[data-theme="gray"] { --bg: #121212; --bg-2: #1b1b1b; --bg-3: #262626; }
:root[data-theme="white"] { --bg: #f7f7f7; --bg-2: #fff; --bg-3: #ededed; --text: #111; --muted: #5f5f5f; --muted-2: #888; --line: #dedede; --line-2: #bdbdbd; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { line-height: 1.45; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-3); color: var(--text); font-weight: 700; transition: .18s ease; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #07120d; box-shadow: 0 10px 28px rgba(116,230,173,.16); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--text); border-color: var(--line-2); background: var(--bg-3); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.input, .num { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg); color: var(--text); outline: none; }
.input:focus, .num:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.card { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--bg-2) 94%, var(--accent) 6%), var(--bg-2)); padding: 20px; }
.card-head, .topbar, .topbar-right, .row, .kv, .user-row { display: flex; align-items: center; gap: 12px; }
.card-head, .topbar, .kv, .user-row { justify-content: space-between; }
.topbar { min-height: 64px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; color: var(--accent); font-family: ui-monospace, monospace; font-weight: 900; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 4px; font-size: 18px; }
.sub, .muted, .hint { color: var(--muted); font-size: 13px; }
.empty { padding: 28px; color: var(--muted); text-align: center; }
.user-row { padding: 13px 0; border-top: 1px solid var(--line); }
.user-row .info { min-width: 0; }
.user-row .name { font-weight: 700; }
.user-row .uid { color: var(--muted-2); font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }
.user-row img { width: 34px; height: 34px; border-radius: 50%; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--bg-3); color: var(--muted); font-size: 11px; font-weight: 700; }
.badge.good { color: var(--text); background: var(--bg-3); }
.badge.accent { color: var(--text); background: var(--bg-3); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); box-shadow: 0 12px 36px #0008; }
.toast.ok { border-color: #555; } .toast.err { border-color: #888; }
.ic-slot::before { content: "•"; color: var(--accent); font-weight: 900; }
@media (max-width: 640px) { .topbar { padding: 12px 16px; } .topbar-right .btn:not(.ghost) { display: none; } .wrap { padding: 20px 14px; } .user-row { align-items: flex-start; flex-direction: column; } }

/* Visual system */
body {
  background:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 95% 15%, rgba(255, 128, 108, .06), transparent 30rem),
    var(--bg);
}
.hero-card {
  position: relative;
  padding: 38px 34px 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(28,28,28,.97), rgba(8,8,8,.97));
  box-shadow: 0 28px 90px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.06);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 20% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), rgba(255,255,255,.45), transparent);
}
.hero .logo-lg { box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 18px 48px rgba(255,255,255,.12); }
.hero h1 { font-size: clamp(28px, 5vw, 38px); }
.features { gap: 12px; margin-top: 28px; }
.feat { min-height: 76px; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.feat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.feat .fi { background: rgba(255,255,255,.12); }
.locked { border-radius: 14px; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.btn { box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.btn.primary { box-shadow: 0 8px 22px rgba(255,255,255,.16); }
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); }
.userchip { display: inline-flex; align-items: center; gap: 8px; max-width: 180px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.userchip img { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); object-fit: cover; }
.userchip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px rgba(255,255,255,.45); }
.dot.off { background: var(--muted-2); box-shadow: none; }
