/* Landing VDrop — Central de Robôs (seção #robos). */

.rb { position: relative; overflow: hidden; }
.rb-glow { position: absolute; left: 50%; top: 38%; width: min(1100px, 120vw); height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(245, 179, 1, 0.16), transparent 70%); pointer-events: none; filter: blur(20px); }
.rb-head { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.rb-head .t-kicker { justify-content: center; }
.rb-head .t-lead { margin: 18px auto 0; max-width: 640px; }

/* números */
.rb-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: clamp(32px, 4vw, 48px) auto 0; padding: 0; max-width: 920px; list-style: none; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.rb-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; background: #0b0b0e; text-align: center; }
.rb-stats b { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1 var(--font-d); letter-spacing: -0.03em; color: var(--gold); }
.rb-stats span { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* janela */
.rb-console { position: relative; margin-top: clamp(28px, 4vw, 44px); border-radius: 28px; border: 1px solid rgba(245, 179, 1, 0.28); background: linear-gradient(180deg, rgba(20, 18, 12, 0.96), rgba(10, 10, 13, 0.98)); box-shadow: 0 60px 160px -50px rgba(245, 179, 1, 0.35), 0 40px 100px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.rb-console::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(245, 179, 1, 0.7), transparent 30%, transparent 70%, rgba(245, 179, 1, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6; }
.rb-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.rb-bar > i { width: 11px; height: 11px; border-radius: 999px; background: rgba(244, 241, 234, 0.12); }
.rb-bar > i:nth-child(1) { background: #ff5f57; } .rb-bar > i:nth-child(2) { background: #febc2e; } .rb-bar > i:nth-child(3) { background: #28c840; }
.rb-bar span { margin-left: 10px; font: 600 12.5px/1 ui-monospace, Menlo, monospace; color: var(--subtle); }
.rb-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ok); }
.rb-live i { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.rb-live i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ok); animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.rb-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; }

/* lista */
.rb-list { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.rb-tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 16px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: background-color 0.25s ease, border-color 0.25s ease; }
.rb-tab:hover { background: rgba(244, 241, 234, 0.04); }
.rb-tab[aria-selected="true"] { background: rgba(245, 179, 1, 0.08); border-color: rgba(245, 179, 1, 0.35); }
.rb-ico { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; color: var(--gold); background: rgba(245, 179, 1, 0.1); transition: all 0.3s ease; }
.rb-ico svg { width: 19px; height: 19px; }
.rb-tab[aria-selected="true"] .rb-ico { color: #111; background: var(--gold); box-shadow: 0 8px 24px -8px rgba(245, 179, 1, 0.9); }
.rb-name { min-width: 0; flex: 1; }
.rb-name b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-name small { display: block; margin-top: 1px; font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 999px; background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, 0.8); }
.rb-prog { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; }
.rb-tab[aria-selected="true"] .rb-prog { opacity: 1; animation: rb-prog var(--rb-dur, 7s) linear both; }
.rb-console.paused .rb-tab[aria-selected="true"] .rb-prog { animation-play-state: paused; }
@keyframes rb-prog { to { transform: scaleX(1); } }

/* palco */
.rb-stage { position: relative; padding: clamp(22px, 3vw, 34px); min-width: 0; }
.rb-pane { display: none; flex-direction: column; gap: 16px; height: 100%; }
.rb-pane.on { display: flex; animation: rb-in 0.5s var(--ease) both; }
@keyframes rb-in { from { opacity: 0; transform: translateY(10px); } }
.rb-pane-head { display: flex; align-items: center; gap: 14px; }
.rb-ico-lg { width: 52px; height: 52px; border-radius: 16px; color: #111; background: var(--gold); box-shadow: 0 12px 30px -10px rgba(245, 179, 1, 0.9); }
.rb-ico-lg svg { width: 24px; height: 24px; }
.rb-pane-title { min-width: 0; flex: 1; }
.rb-where { margin: 0; font: 700 11px/1 var(--font-d); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.rb-pane h3 { margin: 6px 0 0; font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.05 var(--font-d); letter-spacing: -0.03em; }
.rb-price { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #111 !important; background: var(--gold); }
.rb-price small { color: rgba(17, 17, 17, 0.6) !important; }
.rb-desc { margin: 0; max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.rb-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rb-facts li { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: rgba(244, 241, 234, 0.03); }
.rb-facts b { color: var(--ink); }

/* área da demonstração */
.rb-demo { position: relative; flex: 1; min-height: 290px; border-radius: 20px; border: 1px solid var(--line); background: #060608; overflow: hidden; }
.rb-demo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px); }

/* log */
.rbd-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; height: 100%; min-height: 290px; margin: 0; padding: 18px; list-style: none; font: 500 13px/1.45 ui-monospace, Menlo, monospace; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.rbd-log li { display: flex; gap: 10px; color: rgba(244, 241, 234, 0.78); animation: rb-in 0.4s var(--ease) both; }
.rbd-log time { color: var(--subtle); flex-shrink: 0; }
.rbd-log .ok { color: var(--ok); } .rbd-log .hl { color: var(--gold); } .rbd-log .warn { color: #fbbf24; }

/* conversa */
.rbd-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 100%; min-height: 290px; padding: 18px; }
.rbd-msg { max-width: 82%; padding: 11px 14px; border-radius: 4px 16px 16px 16px; font-size: 14px; line-height: 1.5; background: rgba(244, 241, 234, 0.08); animation: rb-in 0.4s var(--ease) both; }
.rbd-msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--subtle); }
.rbd-msg.me { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: rgba(245, 179, 1, 0.14); border: 1px solid rgba(245, 179, 1, 0.25); }
.rbd-msg.me small { text-align: right; color: rgba(245, 179, 1, 0.75); }
.rbd-typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 4px 16px 16px; background: rgba(245, 179, 1, 0.1); }
.rbd-typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); animation: rb-bounce 1s infinite; }
.rbd-typing i:nth-child(2) { animation-delay: 0.15s; } .rbd-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* preço */
.rbd-price { position: relative; height: 100%; min-height: 290px; padding: 18px 20px; }
.rbd-price svg { position: absolute; inset: 56px 20px 46px; width: calc(100% - 40px); height: calc(100% - 102px); overflow: visible; }
.rbd-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rbd-price-now { font: 800 1.6rem/1 var(--font-d); letter-spacing: -0.03em; transition: color 0.3s ease; }
.rbd-badge { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(251, 191, 36, 0.14); color: #fbbf24; transition: all 0.3s ease; }
.rbd-badge.win { background: rgba(61, 220, 151, 0.14); color: var(--ok); }
.rbd-legend { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--subtle); }
.rbd-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }

/* otimizador */
.rbd-opt { display: flex; flex-direction: column; justify-content: center; gap: 16px; height: 100%; min-height: 290px; padding: 22px; }
.rbd-opt-k { font: 700 10.5px/1 var(--font-d); letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.rbd-old { margin-top: 6px; font-size: 15px; color: rgba(244, 241, 234, 0.45); text-decoration: line-through; text-decoration-color: var(--red); }
.rbd-new { min-height: 2.9em; margin-top: 6px; font-size: 16.5px; font-weight: 800; line-height: 1.45; color: var(--ink); }
.rbd-new::after { content: '▍'; color: var(--gold); animation: rb-blink 0.9s steps(1) infinite; }
.rbd-new.done::after { content: ''; }
@keyframes rb-blink { 50% { opacity: 0; } }
.rbd-score { display: flex; align-items: center; gap: 14px; }
.rbd-score-n { font: 800 2.2rem/1 var(--font-d); color: var(--red); transition: color 0.4s ease; }
.rbd-score-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(244, 241, 234, 0.08); overflow: hidden; }
.rbd-score-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold), var(--ok)); background-size: 300% 100%; transition: width 1.6s var(--ease); }

/* foto */
.rbd-photo { position: relative; height: 100%; min-height: 290px; display: grid; place-items: center; padding: 16px; }
.rbd-ba { position: relative; width: min(100%, 320px); aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); }
.rbd-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rbd-ba .rbd-before { clip-path: inset(0 0 0 0); animation: rb-wipe 4.5s var(--ease) infinite; }
.rbd-ba .rbd-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--gold); box-shadow: 0 0 16px rgba(245, 179, 1, 0.9); animation: rb-wipe-line 4.5s var(--ease) infinite; }
.rbd-tag { position: absolute; bottom: 10px; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.6); }
@keyframes rb-wipe { 0%, 15% { clip-path: inset(0 0 0 0); } 50%, 70% { clip-path: inset(0 0 0 100%); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes rb-wipe-line { 0%, 15% { left: 0; } 50%, 70% { left: 100%; } 100% { left: 0; } }

/* radar / lucro: barras */
.rbd-bars { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; min-height: 290px; padding: 20px 22px; }
.rbd-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; align-items: center; gap: 12px; font-size: 13.5px; animation: rb-in 0.4s var(--ease) both; }
.rbd-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(244, 241, 234, 0.8); font-weight: 600; }
.rbd-track { height: 10px; border-radius: 999px; background: rgba(244, 241, 234, 0.06); overflow: hidden; }
.rbd-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transition: width 1.1s var(--ease); }
.rbd-track i.neg { background: linear-gradient(90deg, #b91c1c, var(--red)); }
.rbd-track i.pos { background: linear-gradient(90deg, #0f9f6e, var(--ok)); }
.rbd-val { font-weight: 800; white-space: nowrap; }
.rbd-val.up { color: var(--ok); } .rbd-val.down { color: var(--red); }
.rbd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.rbd-total b { font: 800 1.8rem/1 var(--font-d); color: var(--ok); }

/* chamada */
.rb-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(244, 241, 234, 0.025); }
.rb-cta p { margin: 0; max-width: 640px; color: var(--muted); }
.rb-cta b { color: var(--ink); }

/* celular / tablet */
@media (max-width: 960px) {
  .rb-body { grid-template-columns: 1fr; min-height: 0; }
  .rb-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .rb-list::-webkit-scrollbar { display: none; }
  .rb-tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; padding: 8px 12px 10px; }
  .rb-name small, .rb-dot { display: none; }
  .rb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rb-pane-head { flex-wrap: wrap; gap: 10px 12px; }
  .rb-ico-lg { width: 44px; height: 44px; }
  .rb-pane-title { flex-basis: calc(100% - 60px); }
  .rb-pane h3 { font-size: 1.35rem; }
  .rb-price { order: 3; margin-left: 56px; padding: 6px 12px; }
  .rb-bar span { display: none; }
  .rb-stage { padding: 18px 16px; }
  .rbd-price { padding: 14px; }
  .rbd-price-now { font-size: 1.25rem; white-space: nowrap; }
  .rbd-badge { padding: 5px 9px; font-size: 11px; white-space: nowrap; }
  .rbd-price svg { inset: 64px 14px 58px; width: calc(100% - 28px); height: calc(100% - 122px); }
  .rbd-legend { left: 14px; right: 14px; gap: 4px 12px; }
  .rb-demo, .rbd-log, .rbd-chat, .rbd-price, .rbd-opt, .rbd-photo, .rbd-bars { min-height: 260px; }
  .rbd-log { font-size: 11.5px; padding: 12px; }
  .rbd-log time { display: none; }
  .rbd-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; font-size: 12.5px; }
  .rb-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-pane.on, .rbd-msg, .rbd-row, .rbd-log li { animation: none; }
  .rbd-ba .rbd-before, .rbd-ba .rbd-line { animation: none; }
  .rbd-ba .rbd-before { clip-path: inset(0 0 0 50%); }
  .rbd-ba .rbd-line { left: 50%; }
}
