/* ══════════════════════════════════════════════════════════════
   RDG — Liquid Glass
   Vidro escuro translúcido sobre preto, luz ambiente só neutra
   (sem verde, sem amarelo em fundo nenhum). Dourado só na logo.
   Verde/vermelho aparecem apenas como cor de texto de status.
   ══════════════════════════════════════════════════════════════ */

:root {
  --r-paper: #050505;
  --r-ink: #f4f4f4;
  --r-muted: #a8a8a8;
  --r-faint: #8c8c8c;
  --r-line: rgba(255, 255, 255, .09);
  --r-line-strong: rgba(255, 255, 255, .16);

  /* vidro */
  --g-fill: rgba(32, 32, 32, .42);
  --g-fill-strong: rgba(40, 40, 40, .62);
  --g-fill-soft: rgba(255, 255, 255, .045);
  --g-blur: blur(26px) saturate(150%);
  --g-hi: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -1px 0 rgba(255, 255, 255, .03);
  --g-shadow: 0 22px 44px -18px rgba(0, 0, 0, .8), 0 3px 10px -2px rgba(0, 0, 0, .5);
  --g-edge-a: rgba(255, 255, 255, .30);
  --g-edge-b: rgba(255, 255, 255, .05);
  --g-spec: rgba(255, 255, 255, .07);

  /* botão preto de vidro */
  --b-fill: rgba(0, 0, 0, .66);
  --b-fill-hover: rgba(0, 0, 0, .88);
  --b-ink: #f4f4f4;
  --b-line: rgba(255, 255, 255, .17);

  /* luz ambiente neutra atrás do vidro */
  --amb-1: rgba(255, 255, 255, .075);
  --amb-2: rgba(210, 210, 210, .055);
  --amb-3: rgba(255, 255, 255, .035);

  /* status: só cor de texto; fundo sempre neutro */
  --r-bull: #45d17a;
  --r-bear: #ff6a5c;
  --r-warn: #e2b866;
  --r-status-bg: rgba(255, 255, 255, .06);

  --r-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --r-r-lg: 24px;
  --r-r-md: 16px;
  --r-r-sm: 12px;
  color-scheme: dark;
}

:root[data-mode="light"] {
  --r-paper: #e7e7e7;
  --r-ink: #111111;
  --r-muted: #4f4f4f;
  --r-faint: #6a6a6a;
  --r-line: rgba(0, 0, 0, .08);
  --r-line-strong: rgba(0, 0, 0, .15);
  --g-fill: rgba(255, 255, 255, .5);
  --g-fill-strong: rgba(255, 255, 255, .74);
  --g-fill-soft: rgba(0, 0, 0, .035);
  --g-hi: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .03);
  --g-shadow: 0 22px 44px -20px rgba(0, 0, 0, .25), 0 3px 10px -3px rgba(0, 0, 0, .12);
  --g-edge-a: rgba(255, 255, 255, .95);
  --g-edge-b: rgba(0, 0, 0, .05);
  --g-spec: rgba(255, 255, 255, .5);
  --b-fill: rgba(8, 8, 8, .92);
  --b-fill-hover: #000;
  --b-line: rgba(0, 0, 0, .2);
  --amb-1: rgba(255, 255, 255, .85);
  --amb-2: rgba(255, 255, 255, .6);
  --amb-3: rgba(255, 255, 255, .5);
  --r-bull: #15773a;
  --r-bear: #bb3426;
  --r-warn: #85590a;
  --r-status-bg: rgba(0, 0, 0, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--r-font);
  background: var(--r-paper);
  color: var(--r-ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
/* luz ambiente fixa e neutra: é o que o vidro refrata */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 38vw at 8% 2%, var(--amb-1), transparent 70%),
    radial-gradient(38vw 34vw at 94% 24%, var(--amb-2), transparent 70%),
    radial-gradient(46vw 30vw at 62% 106%, var(--amb-3), transparent 70%);
}
:is(h1, h2, h3, p) { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--r-ink); outline-offset: 3px; }
::selection { background: var(--r-ink); color: var(--r-paper); }
::placeholder { color: var(--r-faint); }
.hidden { display: none !important; }
.flex { display: flex !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
:root[data-mode="light"] ::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .18); }

/* ── Material: vidro ── */
.r-glass, .r-card, .r-side, .r-topbar, .r-modal-box, .r-live {
  position: relative;
  background: var(--g-fill);
  -webkit-backdrop-filter: var(--g-blur);
  backdrop-filter: var(--g-blur);
  box-shadow: var(--g-hi), var(--g-shadow);
  isolation: isolate;
}
/* borda especular: clara em cima à esquerda, some embaixo */
.r-glass::before, .r-card::before, .r-side::before, .r-modal-box::before, .r-live::before, .r-topbar::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(155deg, var(--g-edge-a), var(--g-edge-b) 38%, var(--g-edge-b) 62%, rgba(255, 255, 255, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* brilho que acompanha o ponteiro: o único efeito do sistema */
.r-card::after, .r-side::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), var(--g-spec), transparent 70%);
  opacity: var(--spec-on, 0); transition: opacity .35s cubic-bezier(.16, 1, .3, 1);
}
.r-card.is-lit, .r-side.is-lit { --spec-on: 1; }

/* ── Ícones ── */
.r-icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }

/* ── Logo ── */
.r-logo { display: block; height: auto; }
.r-logo-img { object-fit: contain; }

/* ── Rótulos (texto normal, nunca acima de título) ── */
.r-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--r-muted); }
.r-eyebrow > .r-icon { display: none; }
.r-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--r-bull); }
.r-dot-live { background: var(--r-bear); animation: rPulse 1.8s ease-in-out infinite; }
.r-eyebrow .r-dot:not(.r-dot-live) { display: none; }
@keyframes rPulse { 50% { opacity: .4; } }
.r-gold-text { color: var(--r-ink); }

/* ── Botões: pílula preta de vidro ── */
.r-btn {
  min-height: 44px; padding: 10px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--r-ink);
  transition: background .2s, border-color .2s;
}
.r-btn:disabled { opacity: .5; cursor: not-allowed; }
.r-btn-gold, .r-btn-bull, .r-btn-ink {
  background: var(--b-fill); color: var(--b-ink); border-color: var(--b-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -12px rgba(0, 0, 0, .8);
}
.r-btn-gold:not(:disabled):hover, .r-btn-bull:not(:disabled):hover, .r-btn-ink:not(:disabled):hover {
  background: var(--b-fill-hover); border-color: rgba(255, 255, 255, .34);
}
:root[data-mode="light"] :is(.r-btn-gold, .r-btn-bull, .r-btn-ink):not(:disabled):hover { border-color: #000; }
.r-btn-line { background: var(--g-fill-soft); border-color: var(--r-line-strong); }
.r-btn-line:not(:disabled):hover { background: var(--g-fill-strong); border-color: var(--r-ink); }
.r-btn-danger { color: var(--r-bear); padding-inline: 14px; min-height: 36px; font-size: 13px; }
.r-btn-danger:not(:disabled):hover { background: var(--r-status-bg); }
.r-btn-block { width: 100%; }
.r-btn-sm { min-height: 38px; padding: 8px 15px; font-size: 13px; }

/* ── Selos (cor só no texto) ── */
.r-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  color: var(--r-muted); background: var(--r-status-bg); border: 1px solid var(--r-line);
}
.r-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.r-badge-bull { color: var(--r-bull); }
.r-badge-bear { color: var(--r-bear); }
.r-badge-warn { color: var(--r-warn); }
.r-badge-gold { color: var(--r-ink); }

/* ── Placas ── */
.r-card { border-radius: var(--r-r-lg); }
.r-card-pad { padding: 24px; }

/* ── Campos ── */
.r-field { display: flex; flex-direction: column; gap: 7px; }
.r-field > span { font-size: 13px; font-weight: 600; color: var(--r-muted); display: flex; justify-content: space-between; align-items: baseline; }
.r-input {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--r-line-strong); border-radius: var(--r-r-sm);
  background: rgba(0, 0, 0, .34); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
  transition: border-color .2s, background .2s;
}
:root[data-mode="light"] .r-input { background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.r-input:focus-within { border-color: var(--r-ink); background: rgba(0, 0, 0, .5); }
:root[data-mode="light"] .r-input:focus-within { background: #fff; }
.r-input .r-icon { color: var(--r-faint); width: 17px; height: 17px; }
.r-input input, .r-input select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 13px 0; color: var(--r-ink);
}
.r-input select option { background: #161616; color: #f4f4f4; }
.r-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0b0b inset; -webkit-text-fill-color: var(--r-ink); }
.r-input-mono input { letter-spacing: .03em; }
.r-eye { border: 0; background: none; color: var(--r-faint); padding: 4px; display: grid; place-items: center; }
.r-eye:hover { color: var(--r-ink); }

/* ── Avisos (fundo neutro; cor só no texto e no ícone) ── */
.r-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-r-md);
  font-size: 14px; line-height: 1.5; background: var(--r-status-bg); border: 1px solid var(--r-line-strong); color: var(--r-ink);
}
.r-alert .r-icon { margin-top: 1px; }
.r-alert-bull .r-icon { color: var(--r-bull); }
.r-alert-bear .r-icon { color: var(--r-bear); }

/* ── Tema ── */
.r-theme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--r-line-strong); background: var(--g-fill-soft); color: var(--r-muted);
  border-radius: 999px; min-height: 36px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.r-theme:hover { color: var(--r-ink); border-color: var(--r-ink); }
.r-theme .r-icon { width: 15px; height: 15px; }

/* ══════════════════════════════ LOGIN ══════════════════════════════ */
.r-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 20px; gap: 20px; }
.r-auth-art { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 5vw, 72px); }
.r-auth-hero { max-width: 520px; }
.r-auth-hero .r-logo { width: min(320px, 72%); margin-bottom: 44px; }
.r-auth-hero h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.r-auth-hero p { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--r-muted); max-width: 430px; }
.r-auth-points { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.r-auth-points span {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--r-ink);
  background: var(--g-fill); border: 1px solid var(--r-line);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: var(--g-hi);
}
.r-auth-points .r-icon { width: 17px; height: 17px; color: var(--r-muted); }
.r-auth-foot { position: absolute; left: clamp(28px, 5vw, 72px); right: clamp(28px, 5vw, 72px); bottom: 28px; display: flex; justify-content: space-between; gap: 16px; }
.r-auth-foot .r-eyebrow { font-weight: 500; color: var(--r-faint); }
.r-auth-foot a.r-eyebrow:hover { color: var(--r-ink); }
.r-auth-top, .r-candles, .r-ticker-tag, .r-auth-art > .r-grid-bg { display: none; }

.r-auth-panel {
  border-radius: 32px; padding: 44px clamp(24px, 4.4vw, 64px);
  min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center;
}
.r-auth-panel-top { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.r-auth-box { width: 100%; max-width: 400px; margin: 0 auto; position: relative; z-index: 3; }
.r-auth-box h2 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.r-auth-box > p { margin-top: 8px; font-size: 15px; color: var(--r-muted); }
.r-segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 28px 0 22px;
  border-radius: 999px; background: rgba(0, 0, 0, .38); border: 1px solid var(--r-line);
}
:root[data-mode="light"] .r-segment { background: rgba(0, 0, 0, .05); }
.r-segment button {
  border: 0; background: none; padding: 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--r-muted);
  transition: background .25s cubic-bezier(.16, 1, .3, 1), color .2s;
}
.r-segment button[aria-selected="true"] { background: var(--g-fill-strong); color: var(--r-ink); box-shadow: var(--g-hi), 0 4px 12px -6px rgba(0, 0, 0, .6); }
.r-form { display: flex; flex-direction: column; gap: 16px; }
.r-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-link-quiet { font-size: 13px; font-weight: 600; color: var(--r-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--r-line-strong); }
.r-link-quiet:hover { color: var(--r-ink); text-decoration-color: currentColor; }
.r-legal { font-size: 12px; color: var(--r-faint); text-align: center; line-height: 1.7; }
.r-legal a { color: var(--r-muted); text-decoration: underline; text-underline-offset: 2px; }
.r-auth-mobile-logo { display: none; }

@media (max-width: 980px) {
  .r-auth { grid-template-columns: 1fr; padding: 12px; }
  .r-auth-art { display: none; }
  .r-auth-panel { min-height: calc(100vh - 24px); padding: 92px 20px 48px; justify-content: center; border-radius: 26px; }
  .r-auth-panel-top { left: 18px; right: 18px; top: 18px; }
  .r-auth-mobile-logo { display: block; width: 132px; }
}
@media (max-width: 420px) {
  .r-form-row { grid-template-columns: 1fr; }
  .r-auth-box h2 { font-size: 28px; }
}

/* ══════════════════════════════ PAINEL ══════════════════════════════ */
.r-app { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; }
.r-side {
  position: sticky; top: 14px; margin: 14px 0 14px 14px; height: calc(100vh - 28px);
  display: flex; flex-direction: column; border-radius: 28px; z-index: 40;
}
.r-side-brand { padding: 24px 22px 18px; }
.r-side-brand .r-logo { width: 148px; }
.r-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.r-nav-label { padding: 14px 12px 6px; font-size: 12px; font-weight: 700; color: var(--r-faint); }
.r-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left;
  border: 1px solid transparent; background: none; color: var(--r-muted);
  padding: 10px 12px; border-radius: 16px; font-size: 15px; font-weight: 700;
  transition: background .25s cubic-bezier(.16, 1, .3, 1), color .2s, border-color .2s;
}
.r-nav-btn > .r-icon { width: 21px; height: 21px; }
.r-nav-btn:hover { background: var(--g-fill-soft); color: var(--r-ink); }
.r-nav-btn.is-active { color: var(--r-ink); background: var(--g-fill-strong); border-color: var(--r-line); box-shadow: var(--g-hi), 0 8px 18px -12px rgba(0, 0, 0, .8); }
.r-nav-btn .r-badge { margin-left: auto; padding: 2px 8px; font-size: 11px; }
.r-nav-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.r-nav-txt small { font-size: 12.5px; font-weight: 500; color: var(--r-faint); margin-top: 2px; }
.r-nav-btn.is-active .r-nav-txt small { color: var(--r-muted); }
.r-side-foot { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--r-line); }
.r-user { display: flex; align-items: center; gap: 11px; padding: 6px 8px; }
.r-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--r-ink); background: var(--g-fill-strong); border: 1px solid var(--r-line-strong); box-shadow: var(--g-hi);
}
.r-user-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-user-mail { font-size: 12px; color: var(--r-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-side-actions { display: flex; gap: 8px; }
.r-side-actions > * { flex: 1; }

.r-main { min-width: 0; display: flex; flex-direction: column; }
.r-topbar {
  display: none; position: sticky; top: 10px; z-index: 30; margin: 10px 10px 0;
  height: 62px; padding: 0 10px 0 12px; align-items: center; justify-content: space-between; border-radius: 22px;
}
.r-topbar .r-logo { width: 100px; }
.r-ticker { margin: 14px 18px 0; border-radius: 18px; overflow: hidden; min-height: 46px; background: var(--g-fill); border: 1px solid var(--r-line); }
.r-ticker iframe { transition: opacity .4s; }
.r-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 36px 84px; }

.r-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.r-head h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.r-head p { margin-top: 8px; color: var(--r-muted); font-size: 16px; }

.r-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.r-stat { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 140px; text-align: left; color: inherit; border: 0; transition: background .25s; }
.r-stat:hover { background: var(--g-fill-strong); }
.r-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-stat-top .r-icon { color: var(--r-faint); }
.r-stat-value { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.r-stat-value small { font-size: 14px; font-weight: 600; color: var(--r-muted); letter-spacing: 0; margin-left: 5px; }
.r-stat-foot { font-size: 13.5px; color: var(--r-muted); margin-top: auto; }
.r-stat-spark { display: none; }
.r-progress { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
:root[data-mode="light"] .r-progress { background: rgba(0, 0, 0, .08); }
.r-progress > span { display: block; height: 100%; border-radius: 9px; background: var(--r-ink); }

.r-live { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 14px 14px 20px; border-radius: 22px; }
.r-live strong { font-size: 15px; display: block; }
.r-live span { font-size: 13.5px; color: var(--r-muted); }

.r-tabs-mobile { display: none; }
.r-panel { margin-top: 48px; }
.r-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.r-section-head .r-eyebrow { display: none; }
.r-section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.r-section-head p { font-size: 14.5px; color: var(--r-muted); max-width: 460px; line-height: 1.65; }
.r-group-label { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.r-group-label .r-eyebrow { font-size: 14px; color: var(--r-ink); }
.r-group-label::after { content: ''; flex: 1; height: 1px; background: var(--r-line); }

/* Ferramentas */
.r-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.r-tool { display: flex; flex-direction: column; overflow: hidden; }
.r-tool-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 8px 8px 0; border-radius: 17px; background: rgba(0, 0, 0, .35); }
.r-tool-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-tool-media .r-grid-bg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--r-faint); }
.r-tool-media .r-badge { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .62); color: #f4f4f4; border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.r-tool-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.r-tool-body h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.r-tool-body h3 .r-icon { color: var(--r-muted); width: 17px; height: 17px; margin-top: 1px; }
.r-tool-body p { font-size: 13.5px; color: var(--r-muted); }
.r-tool-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.r-tool-spacer { flex: 1; min-height: 12px; }

/* Contas MT5 */
.r-accounts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: start; }
.r-add-form { display: flex; flex-direction: column; gap: 14px; }
.r-add-row { display: flex; gap: 10px; }
.r-add-row .r-input { flex: 1; }
.r-steps { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.r-steps li { display: flex; gap: 12px; font-size: 14px; color: var(--r-muted); line-height: 1.55; }
.r-steps li > b { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--r-ink); background: var(--g-fill-strong); border: 1px solid var(--r-line-strong); }
.r-list-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--r-line); }
.r-list-head .r-eyebrow { font-size: 15px; color: var(--r-ink); font-weight: 700; }
.r-list { list-style: none; margin: 0; padding: 6px; }
.r-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.r-list li + li { border-top: 1px solid var(--r-line); }
.r-list-idx { font-size: 13px; color: var(--r-faint); width: 26px; }
.r-list-login { font-size: 17px; font-weight: 800; letter-spacing: .02em; flex: 1; }
.r-list li form { margin: 0; }
.r-empty { padding: 36px 20px; text-align: center; color: var(--r-muted); font-size: 14px; line-height: 1.6; }
.r-empty .r-icon { width: 30px; height: 30px; color: var(--r-faint); margin-bottom: 10px; }

.r-overlay {
  position: absolute; inset: 0; z-index: 5; border-radius: inherit;
  background: rgba(8, 8, 8, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
}
:root[data-mode="light"] .r-overlay { background: rgba(255, 255, 255, .84); }
.r-overlay p { font-size: 15px; font-weight: 700; }
.r-overlay small { font-size: 13.5px; color: var(--r-muted); }
.r-spinner { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--r-line-strong); border-top-color: var(--r-ink); animation: rSpin .8s linear infinite; }
.r-spinner-sm { width: 15px; height: 15px; }
@keyframes rSpin { to { transform: rotate(360deg); } }

/* Assinatura */
.r-plan-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
.r-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.r-status-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.r-kv { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--r-line); font-size: 14px; }
.r-kv dt { color: var(--r-muted); }
.r-kv dd { margin: 0; font-weight: 700; }
.r-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.r-benefits li { display: flex; gap: 13px; }
.r-benefits li .r-icon { color: var(--r-ink); margin-top: 2px; }
.r-benefits strong { font-size: 15px; display: block; }
.r-benefits span { font-size: 13.5px; color: var(--r-muted); line-height: 1.6; }
.r-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.r-plan { padding: 20px; display: flex; flex-direction: column; gap: 4px; border-radius: 20px; }
.r-plan.is-featured { background: var(--g-fill-strong); }
.r-plan.is-featured .r-badge { align-self: flex-start; margin-bottom: 8px; color: var(--r-ink); }
.r-plan-name { font-size: 15px; font-weight: 800; }
.r-plan-days { font-size: 13px; color: var(--r-muted); }
.r-plan-price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 16px; }

/* Aulas */
.r-lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.r-lesson { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 14px 16px; color: var(--r-ink); border: 0; transition: background .25s; }
.r-lesson:hover, .r-support:hover { background: var(--g-fill-strong); }
.r-lesson-play {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .58); color: #f4f4f4; border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
:root[data-mode="light"] .r-lesson-play { background: #111; }
.r-lesson-txt { min-width: 0; flex: 1; }
.r-lesson-txt strong { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.r-lesson-txt span { font-size: 13.5px; color: var(--r-muted); display: block; margin-top: 2px; }
.r-lesson > .r-icon, .r-support > .r-icon { color: var(--r-faint); }
.r-support { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.r-locked { text-align: center; padding: 52px 24px; }
.r-locked .r-lesson-play { margin: 0 auto 16px; width: 54px; height: 54px; }
.r-locked h3 { font-size: 22px; letter-spacing: -.02em; }
.r-locked p { font-size: 15px; color: var(--r-muted); max-width: 470px; margin: 10px auto 22px; line-height: 1.7; }
.r-next-live { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

.r-foot { padding: 22px 36px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--r-faint); }
.r-foot a:hover { color: var(--r-ink); }

/* Modais */
.r-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.r-modal-box { width: 100%; max-width: 450px; padding: 28px; border-radius: 28px; background: var(--g-fill-strong); }
.r-modal-box h3 { font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.r-modal-box p { font-size: 14.5px; color: var(--r-muted); margin-top: 12px; line-height: 1.7; }
.r-modal-box ul { margin: 12px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--r-muted); line-height: 1.8; }
.r-modal-box ul b { color: var(--r-ink); }
.r-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }

.r-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #f4f4f4; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 30px -10px rgba(0, 0, 0, .8);
}
.r-wa .r-icon { width: 22px; height: 22px; }

/* Player */
#aula-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); align-items: center; justify-content: center; padding: 24px; }
.r-player { width: 100%; max-width: 1080px; }
.r-player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: #f4f4f4; }
#aula-titulo { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aula-desc { font-size: 13px; color: #a8a8a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aula-wrap { background: #000; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; overflow: hidden; }
#aula-palco { position: relative; width: 100%; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 200px); }
#aula-yt, #aula-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#aula-yt iframe { pointer-events: none; }
#aula-shield { position: absolute; inset: 0; z-index: 10; cursor: pointer; }
#aula-tarja-topo, #aula-tarja-base { position: absolute; left: 0; right: 0; height: 20%; z-index: 15; background: #000; }
#aula-tarja-topo { top: 0; } #aula-tarja-base { bottom: 0; }
#aula-capa { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #000; }
#aula-capa .r-spinner { border-color: rgba(255, 255, 255, .15); border-top-color: #f4f4f4; }
#aula-capa-play { width: 66px; height: 66px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #f4f4f4; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#aula-capa-msg { font-size: 13px; color: #a8a8a8; }
.r-player-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0a0a0a; border-top: 1px solid rgba(255, 255, 255, .08); }
.r-player-bar button { border: 0; background: none; color: #f4f4f4; display: grid; place-items: center; padding: 7px; border-radius: 50%; }
.r-player-bar button:hover { background: rgba(255, 255, 255, .1); }
.r-player-bar .r-time { font-size: 12px; color: #a8a8a8; flex-shrink: 0; }
#aula-vel { font-size: 12px !important; font-weight: 700; min-width: 42px; border-radius: 999px !important; }
#aula-seek { flex: 1; min-width: 60px; }
#aula-vol { width: 84px; }
#aula-seek, #aula-vol { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: #2a2a2a; outline: none; cursor: pointer; }
#aula-seek::-webkit-slider-thumb, #aula-vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #f4f4f4; border: 0; }
#aula-seek::-moz-range-thumb, #aula-vol::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #f4f4f4; border: 0; }
#aula-wrap:fullscreen, #aula-wrap:-webkit-full-screen { width: 100vw; height: 100vh; display: flex; flex-direction: column; border: 0; border-radius: 0; }
#aula-wrap:fullscreen #aula-palco, #aula-wrap:-webkit-full-screen #aula-palco { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; max-height: none; }
.r-player-note { text-align: center; font-size: 12px; color: #8c8c8c; margin-top: 10px; }

/* ── Responsivo ── */
@media (max-width: 1100px) {
  .r-stats { grid-template-columns: repeat(2, 1fr); }
  .r-accounts, .r-plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .r-app { grid-template-columns: 1fr; }
  .r-side { position: fixed; left: 0; top: 0; bottom: 0; margin: 10px; height: auto; width: 290px; transform: translateX(calc(-100% - 20px)); transition: transform .4s cubic-bezier(.16, 1, .3, 1); background: var(--g-fill-strong); }
  .r-side.is-open { transform: none; }
  .r-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 35; }
  .r-topbar { display: flex; }
  .r-ticker { margin: 10px 10px 0; }
  .r-content { padding: 22px 16px 96px; }
  .r-foot { padding: 20px 16px 96px; }
  .r-tabs-mobile { display: flex; gap: 8px; overflow-x: auto; margin: 24px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
  .r-tabs-mobile::-webkit-scrollbar { display: none; }
  .r-tabs-mobile .r-nav-btn { width: auto; flex-shrink: 0; padding: 9px 15px; font-size: 14px; border-radius: 999px; background: var(--g-fill); border-color: var(--r-line); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
  .r-tabs-mobile .r-nav-btn.is-active { background: var(--g-fill-strong); border-color: var(--r-line-strong); }
  .r-tabs-mobile .r-nav-txt small { display: none; }
  .r-panel { margin-top: 30px; }
  #aula-modal { padding: 0; }
}
@media (max-width: 520px) {
  .r-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .r-stat { min-height: 124px; padding: 15px; }
  .r-stat-value { font-size: 24px; }
  .r-lessons { grid-template-columns: 1fr; }
  .r-add-row { flex-direction: column; }
  #aula-vol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .r-glass, .r-card, .r-side, .r-topbar, .r-modal-box, .r-live { background: #161616; }
  :root[data-mode="light"] :is(.r-glass, .r-card, .r-side, .r-topbar, .r-modal-box, .r-live) { background: #fbfbfb; }
}

/* ── Exceção pedida pelo cliente: botão "Entrar no painel" em dourado metálico,
      o mesmo ouro da logo (nunca amarelo chapado ou neon). ── */
.r-btn-goldmetal {
  color: #1a1204; border-color: rgba(255, 236, 170, .55);
  background: linear-gradient(180deg, #f6dc8c 0%, #e2b347 46%, #b98420 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .75), inset 0 -1px 0 rgba(90, 55, 0, .35), 0 12px 24px -14px rgba(0, 0, 0, .9);
}
.r-btn-goldmetal:not(:disabled):hover { background: linear-gradient(180deg, #fae6a6 0%, #e8bd55 46%, #c08a24 100%); border-color: rgba(255, 240, 190, .8); }
.r-btn-goldmetal:focus-visible { outline-color: #f6dc8c; }
.r-theme > span { display: inline-flex; align-items: center; gap: 8px; }
.r-theme > span.hidden { display: none !important; }
.r-nav-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-side-foot { gap: 8px; padding: 10px 12px 12px; }
.r-side-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.r-side-row > * { min-height: 36px; padding: 6px 10px; font-size: 13px; }

/* ══════ Cor nos ícones (só no traço; nada de fundo colorido, sem amarelo) ══════ */
:root {
  --c-blue: #6aaeff; --c-violet: #a993ff; --c-teal: #43d6c4; --c-pink: #f584c6; --c-coral: #ff8476;
  --c-green: #55d98c; --c-sky: #5ccbf7; --c-indigo: #8f98ff; --c-mint: #84e3bb; --c-lilac: #cba2f7; --c-slate: #a3b5cc;
}
:root[data-mode="light"] {
  --c-blue: #1f6fd1; --c-violet: #6a4fd8; --c-teal: #0f8f80; --c-pink: #c2387f; --c-coral: #d1453a;
  --c-green: #1a8a48; --c-sky: #1488b8; --c-indigo: #4a52d6; --c-mint: #1d8a5f; --c-lilac: #8a4cc4; --c-slate: #4c6380;
}
.r-nav-btn > .r-icon { opacity: 1; }
.r-nav-btn:not(.is-active):not(:hover) > .r-icon { filter: saturate(.9); }

/* ══════ Login com o conteúdo original ══════ */
.r-auth-side { display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.r-auth-side .r-auth-panel { flex: 1; min-height: 0; }
.r-auth-note { text-align: center; font-size: 12.5px; color: var(--r-faint); }
ul.r-auth-points { list-style: none; padding: 0; flex-direction: column; gap: 12px; margin-top: 32px; }
ul.r-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--r-ink); }
ul.r-auth-points li .r-icon { width: 20px; height: 20px; }
.r-auth-box .r-segment { margin-top: 0; }
@media (max-width: 980px) {
  .r-auth-side .r-auth-panel { min-height: calc(100vh - 70px); }
}

/* ══════ Ajustes da revisão ══════ */
:root { --r-warn: var(--r-bear); }
:root[data-mode="light"] { --r-warn: var(--r-bear); }
.r-badge i { display: none; }
.r-dot-live { animation: none; }
:root { --amb-1: rgba(255, 255, 255, .10); --amb-2: rgba(220, 220, 220, .075); --amb-3: rgba(255, 255, 255, .05); --g-edge-a: rgba(255, 255, 255, .36); }
.r-card, .r-side { box-shadow: var(--g-hi), inset 0 -18px 30px -24px rgba(0, 0, 0, .55), var(--g-shadow); }

/* ══════ Leve: menos desfoque, sem efeitos que repintam ══════ */
:root { --g-blur: blur(14px); }
.r-card::after, .r-side::after { display: none; }
.r-modal, .r-scrim { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(0, 0, 0, .62) !important; }
.r-tabs-mobile .r-nav-btn, .r-auth-points span { -webkit-backdrop-filter: none; backdrop-filter: none; }
.r-btn-gold, .r-btn-bull, .r-btn-ink, .r-wa, .r-tool-media .r-badge { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.r-avatar-logo { padding: 0; overflow: hidden; background: #000; }
.r-avatar-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
