:root {
  --bg: #050d08;
  --bg2: #0a1810;
  --card: rgba(18, 38, 24, 0.72);
  --card-solid: #0f2016;
  --line: rgba(124, 255, 79, 0.14);
  --line-strong: rgba(124, 255, 79, 0.38);
  --neon: #7cff4f;
  --neon-2: #3fe06b;
  --neon-soft: rgba(124, 255, 79, 0.12);
  --gold: #f6c453;
  --gold-soft: rgba(246, 196, 83, 0.14);
  --red: #ff6461;
  --red-soft: rgba(255, 100, 97, 0.14);
  --blue: #5cc8ff;
  --text: #ecf8e8;
  --muted: #8ea98a;
  --dim: #5d7559;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Outfit', -apple-system, system-ui, sans-serif;
  --marker: 'Permanent Marker', 'Outfit', cursive;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(120% 60% at 0% 0%, rgba(124, 255, 79, 0.10), transparent 60%),
    radial-gradient(80% 50% at 100% 30%, rgba(63, 224, 107, 0.06), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(246, 196, 83, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Brilhos de fundo (vagalumes) ---------- */
.fireflies { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fireflies i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 8px 2px rgba(124, 255, 79, .6);
  opacity: 0; animation: firefly 9s infinite ease-in-out;
}
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40% { opacity: .7; }
  60% { opacity: .4; transform: translateY(-40px); }
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-top) + 10px) 18px 12px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(to bottom, rgba(5, 13, 8, .96) 60%, rgba(5, 13, 8, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top .avatar {
  width: 44px; height: 44px; border-radius: 14px; object-fit: cover;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 0 18px rgba(124, 255, 79, .25);
}
.brand { flex: 1; line-height: 1; }
.brand h1 {
  margin: 0; font-family: var(--marker); font-weight: 400; font-size: 24px; letter-spacing: .5px;
  color: #fff;
}
.brand h1 b { color: var(--neon); font-weight: 400; text-shadow: 0 0 14px rgba(124, 255, 79, .55); }
.brand small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.sync-dot.pendente { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse 1.2s infinite; }
.sync-dot.offline, .sync-dot.erro { background: var(--red); box-shadow: 0 0 8px var(--red); }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Layout ---------- */
main {
  position: relative; z-index: 1;
  padding: 4px 16px calc(110px + var(--safe-bottom));
  max-width: 640px; margin: 0 auto;
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 2px 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
}
.section-title a, .section-title button { color: var(--neon); font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; text-decoration: none; }
.page-title { font-family: var(--marker); font-weight: 400; font-size: 30px; margin: 8px 2px 4px; }
.page-title b { color: var(--neon); font-weight: 400; text-shadow: 0 0 16px rgba(124, 255, 79, .4); }
.page-sub { color: var(--muted); margin: 0 2px 16px; font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 20px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124, 255, 79, .28), transparent 55%),
    linear-gradient(160deg, #143a1d 0%, #0b2013 55%, #08170e 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(124, 255, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px;
  background: url(icons/icon-512.png) center/cover; border-radius: 50%;
  opacity: .16; filter: saturate(1.2);
  mask-image: radial-gradient(circle, #000 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 70%);
}
.hero .label { color: #b9e8ad; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hero .big { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 2px; text-shadow: 0 0 30px rgba(124, 255, 79, .35); }
.hero .sub { color: #a9cfa1; font-size: 14px; }
.hero .bar { height: 8px; border-radius: 9px; background: rgba(0, 0, 0, .35); margin: 16px 0 8px; overflow: hidden; position: relative; z-index: 1; }
.hero .bar span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--neon-2), var(--neon)); box-shadow: 0 0 12px var(--neon); transition: width .8s ease; }
.hero .bar-legend { display: flex; justify-content: space-between; font-size: 12px; color: #a9cfa1; position: relative; z-index: 1; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-label i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.kpi .k-val { font-size: 21px; font-weight: 700; margin-top: 6px; letter-spacing: -.3px; }
.kpi .k-foot { font-size: 12px; color: var(--dim); margin-top: 2px; }
.kpi.red { border-color: rgba(255, 100, 97, .3); background: linear-gradient(160deg, rgba(255, 100, 97, .12), var(--card)); }
.kpi.red .k-val { color: #ff8a86; }
.kpi.gold .k-val { color: var(--gold); }

/* ---------- Charts ---------- */
.chart-card { padding: 16px 14px 12px; }
.chart-card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.chart-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.chart-box { position: relative; height: 210px; }
.chart-box.tall { height: 240px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.seg button { padding: 6px 12px; border-radius: 9px; font-size: 13px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--neon-soft); color: var(--neon); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .12s ease, border-color .2s;
}
.item:active { transform: scale(.985); border-color: var(--line-strong); }
.ini {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #06100a;
}
.item .mid { flex: 1; min-width: 0; }
.item .nome { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .right { text-align: right; }
.item .val { font-weight: 700; font-size: 16px; }
.progress { height: 5px; border-radius: 6px; background: rgba(255, 255, 255, .07); margin-top: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--neon); border-radius: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; margin-top: 4px; white-space: nowrap;
}
.badge.aberto { background: var(--neon-soft); color: var(--neon); }
.badge.breve, .badge.hoje { background: var(--gold-soft); color: var(--gold); }
.badge.atrasado { background: var(--red-soft); color: #ff8a86; }
.badge.quitado { background: rgba(92, 200, 255, .12); color: var(--blue); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip.on { background: var(--neon); color: #06100a; border-color: var(--neon); box-shadow: 0 0 18px rgba(124, 255, 79, .35); }
.chip .cnt { opacity: .7; margin-left: 4px; font-weight: 700; }

.search {
  width: 100%; padding: 13px 16px 13px 42px; border-radius: 16px; margin-bottom: 12px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238ea98a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center no-repeat;
  border: 1px solid var(--line); outline: none;
}
.search:focus { border-color: var(--line-strong); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 84px; height: 84px; border-radius: 26px; margin-bottom: 12px; opacity: .9; border: 1px solid var(--line-strong); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 0 16px; font-size: 14px; }

/* ---------- Simulador ---------- */
.sim-result {
  border-radius: 26px; padding: 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #163f20, #0a1d10);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -24px rgba(124, 255, 79, .5);
}
.sim-input { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--line-strong); padding-bottom: 6px; }
.sim-input span { font-size: 28px; font-weight: 700; color: var(--muted); }
.sim-input input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 44px; font-weight: 800; letter-spacing: -1px;
  color: #fff;
}
.sim-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(124, 255, 79, .15); font-size: 15px; }
.sim-row:last-of-type { border-bottom: 0; }
.sim-row .l { color: #a9cfa1; }
.sim-row .r { font-weight: 700; }
.sim-total { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.sim-total .l { color: #b9e8ad; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.sim-total .r { font-size: 36px; font-weight: 800; color: var(--neon); text-shadow: 0 0 24px rgba(124, 255, 79, .45); letter-spacing: -1px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 3px; border: 1px solid var(--line); }
.stepper button { width: 30px; height: 30px; border-radius: 9px; font-size: 18px; font-weight: 700; color: var(--neon); }
.stepper button:active { background: var(--neon-soft); }
.stepper b { min-width: 46px; text-align: center; }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong); }
.price-table th { background: rgba(124, 255, 79, .08); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 11px 12px; text-align: left; font-weight: 700; }
.price-table th:nth-child(2) { color: var(--neon); }
.price-table td { padding: 11px 12px; border-top: 1px solid var(--line); font-weight: 600; }
.price-table td:nth-child(2) { color: var(--neon); }
.price-table tr.sel td { background: rgba(124, 255, 79, .1); }
.price-table tbody tr { cursor: pointer; }
.price-table tbody tr:active td { background: rgba(124, 255, 79, .14); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 18px; border-radius: 16px; font-weight: 700; font-size: 16px; width: 100%;
  transition: transform .1s, filter .2s; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(180deg, #9bff74, var(--neon) 40%, var(--neon-2)); color: #06100a; box-shadow: 0 10px 30px -10px rgba(124, 255, 79, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: var(--red-soft); color: #ff8a86; border: 1px solid rgba(255, 100, 97, .3); }
.btn.wpp { background: #1fae54; color: #fff; }
.btn.sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; width: auto; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.mt { margin-top: 12px; }
.mt2 { margin-top: 20px; }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); z-index: 30;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 8px; border-radius: 26px;
  background: rgba(10, 24, 15, .82); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  color: var(--dim); text-decoration: none; font-size: 11px; font-weight: 600;
}
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--neon); }
.nav a.on svg { filter: drop-shadow(0 0 6px rgba(124, 255, 79, .7)); }
.nav a.fab { margin-top: -30px; }
.nav a.fab .fab-ring {
  width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(180deg, #9bff74, var(--neon) 45%, var(--neon-2));
  color: #06100a; box-shadow: 0 10px 30px -6px rgba(124, 255, 79, .8), 0 0 0 5px var(--bg);
}
.nav a.fab .fab-ring svg { width: 28px; height: 28px; filter: none; }
.nav a.fab.on { color: var(--neon); }

/* ---------- Sheet ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s ease both;
  display: flex; align-items: flex-end; justify-content: center;
}
.overlay.closing { animation: fadeOut .2s ease both; }
.overlay.closing .sheet { animation: slideDown .22s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet {
  width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto;
  background: linear-gradient(180deg, #102418, #0a1710);
  border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(24px + var(--safe-bottom));
  animation: slideUp .3s cubic-bezier(.2, .9, .3, 1.1) both;
  overscroll-behavior: contain;
}
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes slideDown { to { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-size: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: 14px; outline: none;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%237cff4f' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124, 255, 79, .12); }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.field .quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.field .quick button { padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--neon-soft); color: var(--neon); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="date"] { min-height: 50px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.preview {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 16px;
  padding: 12px; border-radius: 16px; background: rgba(124, 255, 79, .06); border: 1px dashed var(--line-strong);
}
.preview div { text-align: center; }
.preview small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.preview b { font-size: 17px; }
.preview .hl { color: var(--neon); }

.detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.detail-head .ini { width: 56px; height: 56px; border-radius: 18px; font-size: 20px; }
.detail-head h2 { margin: 0; font-size: 22px; }
.detail-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat-grid div { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.stat-grid small { display: block; color: var(--muted); font-size: 11px; }
.stat-grid b { font-size: 16px; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
}
.pay .when { font-size: 13px; color: var(--muted); }
.pay b { color: var(--neon); }
.pay button { color: var(--dim); padding: 4px; }
.pay button svg { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); z-index: 80;
  transform: translateX(-50%); padding: 12px 18px; border-radius: 14px;
  background: #143a1d; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: toastIn .3s ease both; white-space: nowrap;
}
.toast.err { background: #3a1414; border-color: rgba(255, 100, 97, .5); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- Login ---------- */
.login {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 24px calc(30px + var(--safe-bottom)); text-align: center; position: relative; z-index: 1;
}
.login img {
  width: 140px; height: 140px; border-radius: 42px; object-fit: cover;
  border: 2px solid var(--neon); box-shadow: 0 0 60px rgba(124, 255, 79, .45);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.login h1 { font-family: var(--marker); font-weight: 400; font-size: 44px; margin: 22px 0 0; line-height: 1; }
.login h1 b { color: var(--neon); font-weight: 400; display: block; font-size: 64px; text-shadow: 0 0 30px rgba(124, 255, 79, .6); }
.login p { color: var(--muted); margin: 12px 0 28px; }
.login form { width: 100%; max-width: 340px; }
.login input {
  width: 100%; padding: 16px; border-radius: 16px; text-align: center; font-size: 18px; letter-spacing: 2px;
  background: var(--card); border: 1px solid var(--line-strong); outline: none; margin-bottom: 12px;
}
.login input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(124, 255, 79, .15); }

/* ---------- Modo discreto ---------- */
body.discreto .money { filter: blur(9px); transition: filter .2s; }

/* ---------- Ajustes ---------- */
.set-item { display: flex; align-items: center; gap: 12px; padding: 15px 14px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.set-item:last-child { border-bottom: 0; }
.set-item .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--neon-soft); color: var(--neon); flex: none; }
.set-item .ic svg { width: 19px; height: 19px; }
.set-item .tx { flex: 1; }
.set-item .tx b { display: block; font-weight: 600; }
.set-item .tx small { color: var(--muted); font-size: 13px; }
.card.list-card { padding: 0 4px; }
.tbl-edit { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.tbl-edit input { padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); outline: none; width: 100%; }
.tbl-edit button { color: var(--red); }
.footer-note { text-align: center; color: var(--dim); font-size: 12px; margin-top: 24px; }

.lucro-tag {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: rgba(124, 255, 79, .07); border: 1px dashed var(--line-strong); color: #b9e8ad;
}
.lucro-tag b { color: var(--neon); }
.lucro-tag.neg { background: var(--red-soft); border-color: rgba(255, 100, 97, .4); color: #ffb0ad; }
.lucro-tag.neg b { color: #ff8a86; }
