/* ============================================================
   SubNess — tema base
   ============================================================ */
:root {
  --bg: #04070f;
  --bg-2: #060b17;
  --panel: rgba(11, 18, 34, .88);
  --panel-solid: #0a1120;
  --panel-2: #0d1729;
  --line: rgba(126, 162, 255, .14);
  --line-2: rgba(126, 162, 255, .24);
  --txt: #eaf0ff;
  --muted: #94a2c0;
  --muted-2: #61708f;
  --blue: #2f80ff;
  --blue-2: #6aa8ff;
  --purple: #7c4dff;
  --pink: #ff3d71;
  --green: #2ee6a8;
  --yellow: #ffc43d;
  --red: #ff4757;
  --grad: linear-gradient(135deg, #ff3d71 0%, #7c4dff 52%, #2f80ff 100%);
  --grad-blue: linear-gradient(135deg, #2f80ff, #7c4dff);
  --grad-pink: linear-gradient(135deg, #ff3d71, #ff8a5c);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
*::selection { background: rgba(47, 128, 255, .35); color: #fff; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 8% -8%, rgba(47, 128, 255, .16), transparent 60%),
    radial-gradient(900px 620px at 100% 0%, rgba(255, 61, 113, .10), transparent 55%),
    radial-gradient(800px 700px at 55% 110%, rgba(124, 77, 255, .12), transparent 60%),
    var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050a14; }
::-webkit-scrollbar-thumb { background: #1b2a45; border-radius: 99px; border: 2px solid #050a14; }
::-webkit-scrollbar-thumb:hover { background: #273c61; }

/* ---------- marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 90, 140, .95), transparent 46%),
    radial-gradient(circle at 74% 78%, rgba(47, 128, 255, .98), transparent 58%),
    #070d1a;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 18px rgba(62, 107, 255, .45), inset 0 0 12px rgba(255, 255, 255, .12);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(112, 150, 255, .22);
  border-left-color: rgba(255, 90, 140, .55);
  transform: rotate(-25deg);
}
.brand-mark svg { width: 17px; height: 17px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.lg { font-size: 26px; gap: 12px; }
.brand.lg .brand-mark { width: 46px; height: 46px; }
.brand.lg .brand-mark svg { width: 22px; height: 22px; }

/* ---------- botões ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--txt);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, filter .18s, opacity .18s;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #2f80ff 0%, #4d6dff 52%, #7c4dff 100%);
  box-shadow: 0 10px 30px rgba(47, 108, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 38px rgba(71, 112, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-pink {
  background: linear-gradient(135deg, #ff3d71, #ff6a8d);
  box-shadow: 0 10px 30px rgba(255, 61, 113, .3);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, #ffd15c, #ff9d2e);
  color: #241600;
  box-shadow: 0 10px 30px rgba(255, 168, 45, .25);
}
.btn-ghost {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line);
  color: #d7e1f7;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
.btn-dark { background: #0a1120; border-color: var(--line); }
.btn-danger { background: rgba(255, 71, 87, .12); border-color: rgba(255, 71, 87, .3); color: #ff8590; }
.btn-danger:hover { background: rgba(255, 71, 87, .2); }
.btn-sm { --btn-h: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: #b9c6e2;
  display: inline-grid;
  place-items: center;
  transition: all .18s;
}
.btn-icon svg { width: 17px; height: 17px; }
.btn-icon:hover { color: #fff; border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.btn-icon.danger:hover { color: #ff7b86; border-color: rgba(255, 71, 87, .4); background: rgba(255, 71, 87, .1); }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- campos ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field-label {
  font-size: 12px;
  font-weight: 600;
  color: #a9b5d1;
  letter-spacing: .015em;
}
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: rgba(5, 10, 20, .82);
  border: 1px solid rgba(126, 162, 255, .16);
  border-radius: 12px;
  color: var(--txt);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: var(--font);
  font-size: 14px;
}
.field textarea { min-height: 100px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #4c5c7a; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  border-color: rgba(80, 145, 255, .7);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, .14), 0 0 24px rgba(47, 128, 255, .12);
  background: rgba(6, 12, 24, .95);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f80a3 50%), linear-gradient(135deg, #6f80a3 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #5c6b8a; pointer-events: none; }
.input-wrap input { padding-left: 42px; }
.input-wrap .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: #61708f; border-radius: 8px; }
.input-wrap .toggle-pass:hover { color: #b9c6e2; background: rgba(255, 255, 255, .05); }
.input-wrap .toggle-pass svg { width: 17px; height: 17px; }
.prefix-wrap { position: relative; }
.prefix-wrap .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5c6b8a; font-weight: 600; }
.prefix-wrap input { padding-left: 32px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }

/* ---------- superfícies ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 24, 44, .9), rgba(8, 13, 25, .94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 61, 113, .5), transparent 32%, transparent 68%, rgba(47, 128, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel { background: rgba(10, 17, 32, .72); border: 1px solid var(--line); border-radius: var(--radius); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #b8c5e2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pill svg { width: 13px; height: 13px; }
.pill.blue { color: #8fc0ff; border-color: rgba(47, 128, 255, .35); background: rgba(47, 128, 255, .1); }
.pill.pink { color: #ff9bb3; border-color: rgba(255, 61, 113, .35); background: rgba(255, 61, 113, .1); }
.pill.green { color: #7df0c6; border-color: rgba(46, 230, 168, .3); background: rgba(46, 230, 168, .09); }
.pill.gold { color: #ffd77a; border-color: rgba(255, 196, 61, .32); background: rgba(255, 196, 61, .1); }
.pill.purple { color: #c0a8ff; border-color: rgba(124, 77, 255, .35); background: rgba(124, 77, 255, .12); }
.pill.muted { color: var(--muted-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; flex: none; }
.dot.pulse { animation: pulse 1.8s infinite; }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag.green { color: #63e8bb; background: rgba(46, 230, 168, .1); border: 1px solid rgba(46, 230, 168, .25); }
.tag.gray { color: #8b9ab8; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tag.red { color: #ff8b95; background: rgba(255, 71, 87, .1); border: 1px solid rgba(255, 71, 87, .25); }
.tag.blue { color: #8fc0ff; background: rgba(47, 128, 255, .1); border: 1px solid rgba(47, 128, 255, .25); }
.tag.gold { color: #ffd77a; background: rgba(255, 196, 61, .1); border: 1px solid rgba(255, 196, 61, .25); }

.avatar {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f80ff, #7c4dff);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--size) * .38);
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 3px rgba(47, 128, 255, .18), 0 0 24px rgba(47, 128, 255, .3); }
.avatar.pink { background: linear-gradient(135deg, #ff3d71, #7c4dff); }
.avatar.gold { background: linear-gradient(135deg, #ffcf4d, #ff8a2e); color: #2a1900; }

/* ---------- switch ---------- */
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #1a2740;
  border: 1px solid rgba(126, 162, 255, .18);
  transition: background .2s, border-color .2s;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #7d8cab;
  transition: transform .22s var(--ease), background .2s;
}
.switch input:checked + span { background: linear-gradient(135deg, #2f80ff, #7c4dff); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .4); }

/* ---------- tabs ---------- */
.tabs { display: flex; padding: 4px; background: rgba(5, 10, 20, .7); border: 1px solid var(--line); border-radius: 12px; gap: 4px; }
.tabs button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tabs button svg { width: 15px; height: 15px; }
.tabs button:hover { color: #cdd8ef; background: rgba(255, 255, 255, .03); }
.tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(47, 128, 255, .95), rgba(124, 77, 255, .85));
  box-shadow: 0 6px 18px rgba(47, 108, 255, .28);
}

/* ---------- tabelas ---------- */
.table-wrap { width: 100%; overflow: auto; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; min-width: 700px; }
.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #6f80a3;
  background: rgba(5, 10, 20, .65);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(126, 162, 255, .08); font-size: 13px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(126, 162, 255, .035); }
.table .cell-main { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.table .cell-title { font-weight: 600; font-size: 13px; color: #e2e9fa; line-height: 1.3; }
.table .cell-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.table .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.table .actions { display: flex; gap: 5px; justify-content: flex-end; }

/* ---------- barras / progresso ---------- */
.progress { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f80ff, #7c4dff); transition: width .5s var(--ease); }
.progress.pink > span { background: var(--grad-pink); }
.progress.green > span { background: linear-gradient(90deg, #2ee6a8, #2f80ff); }

/* ---------- estados ---------- */
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 24px;
  border: 1px dashed rgba(126, 162, 255, .2);
  border-radius: var(--radius);
  background: rgba(126, 162, 255, .02);
}
.empty .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(47, 128, 255, .09); border: 1px solid rgba(47, 128, 255, .22); color: #7ca9ff; margin-bottom: 4px; }
.empty .ic svg { width: 24px; height: 24px; }
.empty h4 { font-size: 16px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 360px; }

.skeleton { position: relative; overflow: hidden; background: rgba(126, 162, 255, .055); border-radius: 10px; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  animation: shimmer 1.6s infinite;
}
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #6aa8ff; border-radius: 50%; animation: spin .75s linear infinite; }

/* ---------- toast ---------- */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(10, 18, 33, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  animation: toastIn .32s var(--ease);
  font-size: 13px;
  color: #dbe4f7;
}
.toast.leaving { animation: toastOut .25s ease forwards; }
.toast .tic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(47, 128, 255, .12); color: #7fb0ff; }
.toast .tic svg { width: 16px; height: 16px; }
.toast.success .tic { background: rgba(46, 230, 168, .12); color: #5ce9bd; }
.toast.error .tic { background: rgba(255, 71, 87, .12); color: #ff8b95; }
.toast.warn .tic { background: rgba(255, 196, 61, .12); color: #ffd77a; }
.toast b { display: block; font-size: 13px; color: #fff; margin-bottom: 1px; }
.toast p { font-size: 12px; color: var(--muted); line-height: 1.45; }
.toast .close { margin-left: auto; background: none; border: 0; color: #61708f; padding: 2px; border-radius: 6px; }
.toast .close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.toast .close svg { width: 14px; height: 14px; }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 18px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 12, .74); backdrop-filter: blur(8px); animation: fade .2s; }
.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: linear-gradient(180deg, #0d1729, #080e1b);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  animation: modalIn .3s var(--ease);
}
.modal.wide { width: min(680px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head .mic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 128, 255, .12); border: 1px solid rgba(47, 128, 255, .25); color: #7fb0ff; flex: none; }
.modal-head h3 { font-size: 18px; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal-close { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.modal-body { padding: 18px 22px 4px; display: grid; gap: 14px; }
.modal-foot { padding: 16px 22px 20px; display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap; }
.modal .notice { display: flex; gap: 10px; padding: 12px 13px; border-radius: 11px; background: rgba(47, 128, 255, .07); border: 1px solid rgba(47, 128, 255, .18); font-size: 12px; color: #a8bbdd; line-height: 1.5; }
.modal .notice svg { width: 16px; height: 16px; color: #7fb0ff; margin-top: 1px; }
.modal .notice.warn { background: rgba(255, 196, 61, .06); border-color: rgba(255, 196, 61, .2); color: #d9c18b; }
.modal .notice.warn svg { color: #ffd77a; }

/* ---------- tooltip simples ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 6px;
  background: #0d1729;
  border: 1px solid var(--line-2);
  color: #cfdaf0;
  font-size: 10.5px;
  white-space: nowrap;
  z-index: 40;
  pointer-events: none;
  animation: fade .15s;
}

/* ---------- utilidades ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-blue { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.center { text-align: center; }
.full { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: #4f5f7d; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.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; }

/* ---------- animações ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .toast-stack { right: 12px; bottom: 12px; left: 12px; max-width: none; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
}
