/* app.css — GDrums | Configurador Chocolate Plus
   Identidade real da GDrums: fundo #030014, gradiente ciano -> roxo -> rosa.
   Sem dependencia, sem build. Animacoes so em transform/opacity. */

/* ============================================================ tokens */
:root {
  --bg: #030014;
  --cyan: #00d4ff;
  --blue: #0099ff;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 212, 255, .16), rgba(139, 92, 246, .16) 50%, rgba(236, 72, 153, .16));

  --txt: #ffffff;
  --txt2: #a0aec0;
  --muted: #718096;

  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .028);
  --card3: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .10);
  --line2: rgba(255, 255, 255, .18);

  --ok: #00e68c;
  --err: #ff5d6c;
  --warn: #ffbf3d;

  --glow: 0 20px 50px -18px rgba(139, 92, 246, .55);
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22, .8, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--cyan); text-decoration: none; }
button, input, select { font: inherit; }

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--cyan);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ============================================================ fundo animado */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb1 { width: 420px; height: 420px; background: #00d4ff; top: -160px; left: -100px; animation: drift1 26s ease-in-out infinite; }
.orb2 { width: 460px; height: 460px; background: #8b5cf6; top: -40px; right: -160px; opacity: .45; animation: drift2 32s ease-in-out infinite; }
.orb3 { width: 380px; height: 380px; background: #ec4899; top: 460px; left: 28%; opacity: .28; animation: drift3 38s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: none } 50% { transform: translate3d(60px, 40px, 0) scale(1.12) } }
@keyframes drift2 { 0%,100% { transform: none } 50% { transform: translate3d(-70px, 60px, 0) scale(1.08) } }
@keyframes drift3 { 0%,100% { transform: none } 50% { transform: translate3d(50px, -50px, 0) scale(1.15) } }

/* ============================================================ topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(3, 0, 20, .74); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand b { font-size: 20px; font-weight: 800; }
.brand span {
  font-size: 12px; color: var(--muted); border-left: 1px solid var(--line);
  padding-left: 10px; font-weight: 600; white-space: nowrap;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.langs { display: flex; gap: 2px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.langs button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer;
  padding: 6px 10px; border-radius: 7px; transition: color .15s, background .15s;
}
.langs button:hover { color: var(--txt2); }
.langs button.on { background: var(--card3); color: var(--txt); }

.top-cta a {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  color: var(--txt); border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 9px 14px; transition: border-color .15s, transform .12s;
}
.top-cta a:hover { border-color: var(--line2); transform: translateY(-1px); }
@media (max-width: 640px) { .top-cta { display: none } .brand span { display: none } }

/* ============================================================ hero */
.hero { padding: 46px 0 8px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--txt2); border: 1px solid var(--line);
  background: var(--card); border-radius: 999px; padding: 7px 15px;
}
.hero h1 { font-size: clamp(31px, 7.2vw, 54px); font-weight: 800; margin: 20px 0 0; }
.hero .lead { max-width: 640px; margin: 16px auto 0; color: var(--txt2); font-size: clamp(16px, 3.6vw, 19px); }

/* ============================================================ tabs de modo */
.modes {
  display: flex; max-width: 560px; margin: 30px auto 0; gap: 6px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 15px; padding: 6px;
}
.modes button {
  flex: 1; appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--txt2);
  font-weight: 700; padding: 13px 8px; border-radius: 11px; line-height: 1.2;
  transition: background .2s var(--ease), color .2s, transform .12s;
}
.modes button small {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 3px;
}
.modes button:hover:not(.on) { color: var(--txt); }
.modes button.on { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(236, 72, 153, .8); }
.modes button.on small { color: rgba(255, 255, 255, .85); }

.panel { animation: panelIn .34s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ============================================================ cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; text-align: left;
}
.card-narrow { max-width: 560px; margin: 26px auto 0; box-shadow: var(--glow); }
.card-title { font-size: 17px; font-weight: 800; }
.card-desc { color: var(--txt2); font-size: 14.5px; margin-top: 6px; }
.label { font-size: 12px; font-weight: 700; color: var(--txt2); text-transform: uppercase; letter-spacing: .07em; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

/* segmento generico (banco A/B) */
.seg { display: flex; background: var(--card2); border: 1px solid var(--line); border-radius: 13px; padding: 5px; gap: 5px; }
.seg button {
  flex: 1; appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--txt2);
  font-weight: 700; padding: 12px 8px; border-radius: 9px; transition: .16s; line-height: 1.25;
}
.seg button small {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 2px;
}
.seg button:hover:not(.on) { color: var(--txt); background: var(--card2); }
.seg button.on { background: var(--grad); color: #fff; }
.seg button.on small { color: rgba(255, 255, 255, .85); }

/* ============================================================ botoes */
.btn-hero {
  width: 100%; appearance: none; border: 0; cursor: pointer; color: #fff; background: var(--grad);
  font-weight: 800; font-size: clamp(17px, 4.4vw, 20px); padding: 19px 20px; border-radius: 15px;
  box-shadow: 0 12px 30px -10px rgba(236, 72, 153, .6);
  transition: transform .12s, filter .15s, box-shadow .2s;
  min-height: 60px; position: relative; overflow: hidden;
}
.btn-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .30) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-hero:not(:disabled)::after { animation: sheen 4.5s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 62% { transform: translateX(-120%) } 88%, 100% { transform: translateX(120%) } }
.btn-hero:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 16px 38px -12px rgba(236, 72, 153, .75); }
.btn-hero:active:not(:disabled) { transform: translateY(1px) scale(.995); }
.btn-hero:disabled { opacity: .85; cursor: default; }

.btn {
  appearance: none; cursor: pointer; color: var(--txt); background: var(--card);
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px;
  font-size: 14px; font-weight: 700; transition: border-color .15s, background .15s, transform .12s;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--line2); background: var(--card3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-grad { background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(236, 72, 153, .8); }
.btn-grad:hover:not(:disabled) { filter: brightness(1.07); background: var(--grad); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn-danger:hover:not(:disabled) { border-color: rgba(255, 93, 108, .5); color: var(--err); }
.btn-link {
  appearance: none; background: none; border: 0; color: var(--txt2); cursor: pointer;
  font-size: 13px; font-weight: 600; text-decoration: underline; padding: 0;
}
.btn-link:hover { color: var(--txt); }

/* ============================================================ status / toast */
.status-wrap { text-align: center; margin-top: 15px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--txt2);
}
.status.ok { color: var(--ok); border-color: rgba(0, 230, 140, .4); }
.status.err { color: var(--err); border-color: rgba(255, 93, 108, .4); }
.status.warn { color: var(--warn); border-color: rgba(255, 191, 61, .4); }

.spin {
  width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg) } }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 60;
  background: #151222; color: #fff; border: 1px solid var(--line); padding: 13px 20px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .25s var(--ease); font-weight: 600; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(0, 230, 140, .5) }
.toast.err { border-color: rgba(255, 93, 108, .5) }

.warn-box {
  max-width: 560px; margin: 16px auto 0; background: rgba(255, 191, 61, .09);
  border: 1px solid rgba(255, 191, 61, .5); border-radius: var(--r); padding: 15px 18px; text-align: left;
}
.warn-box b { display: block; color: var(--warn); font-size: 15px; margin-bottom: 4px; }
.warn-box p { font-size: 14px; color: var(--txt2); }

/* ============================================================ preview do preset (modo facil) */
.preset-preview { display: flex; gap: 8px; margin-top: 16px; }
.pp {
  flex: 1; background: var(--card2); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 6px; text-align: center; min-width: 0;
}
.pp b {
  display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px;
  border-radius: 7px; background: var(--grad); font-size: 12px; font-weight: 800;
}
.pp span { display: block; font-size: 11px; color: var(--txt2); line-height: 1.3; overflow-wrap: anywhere; }

/* ============================================================ calibracao (o "aud") */
.cal { border-color: rgba(255, 191, 61, .35); background: linear-gradient(180deg, rgba(255, 191, 61, .07), var(--card)); }
.cal-body { color: var(--txt2); font-size: 15px; margin-top: 8px; }
.cal-body b { color: var(--warn); }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
@media (max-width: 520px) { .cal-grid { grid-template-columns: repeat(3, 1fr) } }
.cal-grid button {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--card2);
  color: var(--txt); border-radius: 11px; padding: 13px 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700; letter-spacing: .06em;
  transition: border-color .15s, background .15s, transform .12s;
}
.cal-grid button:hover { border-color: var(--cyan); background: var(--card3); transform: translateY(-2px); }
.cal-target { border-color: rgba(0, 212, 255, .45) !important; }

.stepper { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; }
.stepper button {
  appearance: none; cursor: pointer; width: 52px; height: 52px; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--card2); color: var(--txt);
  border-radius: 13px; font-size: 20px; font-weight: 800;
  transition: border-color .15s, background .15s, transform .12s;
}
.stepper button:hover { border-color: var(--cyan); background: var(--card3); }
.stepper button:active { transform: scale(.94); }

/* ============================================================ confirmacao */
.confirm {
  max-width: 560px; margin: 22px auto 0; text-align: center;
  background: linear-gradient(180deg, rgba(0, 230, 140, .10), var(--card));
  border: 1px solid rgba(0, 230, 140, .4); border-radius: var(--r-lg); padding: 26px 22px;
}
.confirm .check {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #00e68c, #00d4ff); display: grid; place-items: center;
  animation: pop .45s var(--ease) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0 } to { transform: none; opacity: 1 } }
.confirm h2 { font-size: 22px; font-weight: 800; }
.confirm p { color: var(--txt2); margin-top: 8px; }
.confirm p b { color: var(--txt); font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }

/* ============================================================ PEDAL VIRTUAL */
.pedal-stage { margin-top: 22px; display: grid; gap: 18px; }

.pedal {
  position: relative; border-radius: 20px; padding: 18px 16px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(160deg, #1b1830 0%, #12101f 48%, #0a0916 100%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.pedal-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

/* telinha de 3 digitos */
.screen {
  background: #05060a; border: 1px solid rgba(255, 255, 255, .13); border-radius: 9px;
  padding: 8px 14px; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .95);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 700; letter-spacing: .16em; line-height: 1;
  color: #4be2ff; text-shadow: 0 0 12px rgba(75, 226, 255, .75); min-width: 88px; text-align: center;
}
.screen.unknown { color: var(--muted); text-shadow: none; }
.pedal-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pedal-id b { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.pedal-id span { font-size: 11.5px; color: var(--muted); }
.pedal-meta { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; font-weight: 700; color: var(--txt2); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; white-space: nowrap;
}
.chip.live { color: var(--ok); border-color: rgba(0, 230, 140, .35); }

/* footswitches */
.switches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 620px) { .switches { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 380px) { .switches { grid-template-columns: repeat(2, 1fr) } }

.fsw {
  appearance: none; cursor: pointer; text-align: center; padding: 14px 8px 12px;
  border-radius: 15px; border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  color: var(--txt); transition: transform .14s var(--ease), border-color .18s, box-shadow .18s;
  display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
}
.fsw:hover { transform: translateY(-3px); border-color: var(--line2); }
.fsw.on {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, .85), 0 14px 30px -14px rgba(139, 92, 246, .9);
  background: linear-gradient(180deg, rgba(139, 92, 246, .18), rgba(255, 255, 255, .02));
}
.fsw-led {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  transition: background .12s, box-shadow .12s; flex: 0 0 auto;
}
.fsw-cap {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; font-weight: 800; flex: 0 0 auto;
  background: radial-gradient(circle at 34% 28%, #3d3956, #191727 70%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 5px 12px rgba(0, 0, 0, .55);
  transition: transform .1s var(--ease), box-shadow .12s;
}
.fsw-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.fsw-msg {
  font-size: 10.5px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.fsw.empty .fsw-name { color: var(--muted); font-weight: 600; }

/* footswitch decorativo (modo avancado nao edita botao) */
.fsw.static { cursor: default; }
.fsw.static:hover { transform: none; border-color: rgba(255, 255, 255, .11); }

/* seletor de bancos do avancado */
.bank-grid.big { gap: 9px; margin-top: 14px; }
.bank-grid.big button { padding: 13px 16px; font-size: 15px; }
.bank-confirm { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line); }
.bank-confirm .hint { margin-top: 0; flex: 1; min-width: 180px; font-size: 13.5px; }

/* pisou de verdade: LED acende e o cap afunda */
.fsw.hit .fsw-led { background: var(--ok); box-shadow: 0 0 12px 3px rgba(0, 230, 140, .85); }
.fsw.hit .fsw-cap { transform: translateY(3px) scale(.94); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .8); }

/* monitor MIDI */
.monitor {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 11px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--txt2);
  min-height: 42px;
}
.monitor .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; transition: .15s; }
.monitor.live .dot { background: var(--ok); box-shadow: 0 0 10px rgba(0, 230, 140, .8); }
.monitor .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor .idle { color: var(--muted); font-style: italic; }

/* ============================================================ editor do switch */
.editor { display: grid; gap: 16px; }
.editor-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-head h3 { font-size: 18px; font-weight: 800; }
.editor-head .btn { margin-left: auto; }

.act { background: var(--card2); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.act-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.act-head .label { flex: 1; }
.act-count { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.msgs { display: grid; gap: 8px; }
.msg {
  display: grid; gap: 8px; align-items: center; background: var(--card2);
  border: 1px solid var(--line); border-radius: 11px; padding: 10px;
  grid-template-columns: 1.25fr .75fr 1.35fr 1fr auto;
  animation: msgIn .22s var(--ease) both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
@media (max-width: 700px) { .msg { grid-template-columns: 1fr 1fr; } .msg .msg-del { grid-column: 2; justify-self: end } }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field select, .field input {
  width: 100%; background: #100e1c; color: var(--txt); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 10px; font-size: 14px; font-weight: 600;
  transition: border-color .15s;
}
.field select:hover, .field input:hover { border-color: var(--line2); }
.field select:focus, .field input:focus { border-color: var(--cyan); outline: none; }
.field input[type="number"] { -moz-appearance: textfield; }

.msg-del {
  appearance: none; cursor: pointer; background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 8px; width: 34px; height: 34px; font-size: 16px; line-height: 1;
  transition: .15s; align-self: end; margin-bottom: 1px;
}
.msg-del:hover { border-color: rgba(255, 93, 108, .55); color: var(--err); }

.empty-note { color: var(--muted); font-size: 13.5px; font-style: italic; padding: 4px 2px; }

/* ============================================================ ajustes gerais */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--card2); overflow: hidden; }
.acc > summary {
  cursor: pointer; padding: 15px 18px; font-weight: 800; font-size: 15px; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 19px; font-weight: 700; }
.acc[open] > summary::after { content: "–"; }
.acc > summary:hover { background: var(--card2); }
.acc-body { padding: 4px 18px 18px; display: grid; gap: 20px; }

.grp-title { font-size: 14px; font-weight: 800; }
.grp-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.usr-row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.usr-row b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad); font-size: 12px; font-weight: 800;
}
.usr-row select { min-width: 0; }

.toggle {
  appearance: none; cursor: pointer; position: relative; width: 42px; height: 24px; flex: 0 0 auto;
  background: var(--card3); border: 1px solid var(--line); border-radius: 999px; transition: .18s;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: .18s var(--ease);
}
.toggle[aria-pressed="true"] { background: var(--grad); border-color: transparent; }
.toggle[aria-pressed="true"]::after { transform: translateX(18px); background: #fff; }

.bank-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.bank-grid button {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--card2);
  color: var(--txt2); border-radius: 9px; padding: 9px 13px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700;
  transition: .15s;
}
.bank-grid button:hover { border-color: var(--line2); color: var(--txt); }
.bank-grid button.on { background: var(--grad); border-color: transparent; color: #fff; }
.bank-grid button.kb { border-color: rgba(0, 212, 255, .3); }

.note-box {
  background: rgba(255, 191, 61, .08); border: 1px solid rgba(255, 191, 61, .4);
  border-radius: 11px; padding: 12px 15px; font-size: 13.5px; color: var(--txt2); line-height: 1.55;
}
.note-box b { color: var(--warn); font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ============================================================ barra de acao */
.actionbar {
  position: sticky; bottom: 0; z-index: 30; margin-top: 18px;
  background: rgba(3, 0, 20, .86); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.actionbar .count { font-size: 13.5px; font-weight: 700; color: var(--txt2); }
.actionbar .count.dirty { color: var(--warn); }
.actionbar .spacer { flex: 1; min-width: 0; }
.actionbar .tools { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .actionbar { flex-direction: column; align-items: stretch; }
  .actionbar .tools { justify-content: space-between; }
  .actionbar .btn-grad { width: 100%; justify-content: center; }
}

.progress { width: 100%; height: 3px; background: var(--card3); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

/* ============================================================ secoes */
section.blk { margin: 60px 0; }
.blk-head { text-align: center; margin-bottom: 28px; }
.blk-head h2 { font-size: clamp(24px, 5.6vw, 34px); font-weight: 800; }
.blk-head p { color: var(--txt2); margin: 10px auto 0; max-width: 580px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; }
.step .n {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad); font-weight: 800;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--txt2); font-size: 14px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { background: var(--card2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.trust b { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.trust p { font-size: 13px; color: var(--txt2); line-height: 1.55; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr } }

/* ============================================================ GDrums / lojas */
.promo {
  max-width: 560px; margin: 22px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: space-between;
}
.promo-txt { flex: 1; min-width: 170px; text-align: left; }
.promo-txt b { display: block; font-weight: 800; font-size: 15px; }
.promo-txt span { display: block; color: var(--txt2); font-size: 12.5px; margin-top: 2px; }
.promo .stores { margin: 0; gap: 9px; }
.promo .store { min-width: 0; padding: 8px 12px; border-radius: 10px; gap: 8px; }
.promo .store .s-txt small { font-size: 9.5px }
.promo .store .s-txt b { font-size: 13px }
@media (max-width: 520px) { .promo { justify-content: center } .promo-txt { text-align: center } }

.download {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px 26px;
  text-align: center; position: relative; overflow: hidden;
}
.download::before {
  content: ""; position: absolute; inset: -40% 26% auto; height: 230px;
  background: var(--grad); filter: blur(90px); opacity: .22;
}
.download-in { position: relative; }
.download h2 { font-size: clamp(24px, 5.6vw, 34px); font-weight: 800; margin-top: 12px; }
.download p { color: var(--txt2); max-width: 580px; margin: 12px auto 0; }
.stats { display: flex; justify-content: center; gap: 30px; margin: 22px 0 6px; flex-wrap: wrap; }
.stat b { display: block; font-size: 26px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; background: #000;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 13px; padding: 11px 18px;
  color: #fff; min-width: 190px; transition: border-color .15s, transform .12s;
}
.store:hover { border-color: rgba(255, 255, 255, .42); transform: translateY(-2px); }
.store svg { flex: 0 0 auto; }
.store .s-txt { text-align: left; line-height: 1.15; }
.store .s-txt small { display: block; font-size: 11px; color: #c8c8d0; }
.store .s-txt b { font-size: 17px; font-weight: 700; }

/* ============================================================ footer */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 40px; text-align: center; }
footer .fbrand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 8px; }
footer .fbrand img { width: 26px; height: 26px; border-radius: 7px; }
footer .fbrand b { font-size: 16px; font-weight: 800; }
footer p { margin: 4px 0; color: var(--muted); font-size: 13px; }
footer .bless { font-style: italic; color: rgba(255, 255, 255, .35); font-size: 12px; margin-top: 10px; }

/* ============================================================ reveal no scroll */
/* So esconde quando o JS confirmou que vai animar (html.js). Sem JS, ou se o
   modulo falhar, tudo permanece visivel — o site nunca fica com metade em branco. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================ acessibilidade de movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
