:root { --bg: #070d1e; --bg-2: #0e172e; --glow-2: #00c2ff; --accent: #f4d6b0; --accent-2: #d97706; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.workspace-toolbar > span { font-size: .68rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.workspace-toolbar small { display: inline-block; margin-left: .5rem; letter-spacing: 0; color: var(--glow-2); font-weight: 500; }
.brand-wordmark { min-width: 0; width: 100%; background: linear-gradient(135deg, rgba(0, 40, 120, 0.55), rgba(5, 12, 30, 0.75)); padding: .6rem; border-radius: .85rem; border: 1px solid rgba(0, 192, 255, 0.28); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.brand-wordmark img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 10px rgba(0, 192, 255, 0.3)); }
.hero {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(4, 9, 22, 0.94) 0%, rgba(5, 12, 26, 0.82) 42%, rgba(5, 12, 26, 0.32) 85%, rgba(4, 9, 22, 0.18) 100%),
    url('assets/hero_yamaha_banner.jpg');
  background-position: left center, right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 28px 70px rgba(0, 0, 0, 0.6);
  border-radius: 1.4rem;
  overflow: hidden;
}
.hero-context {
  position: relative;
  align-self: center;
  min-width: 280px;
  max-width: 330px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 192, 255, 0.05) 45%, rgba(6, 14, 32, 0.78) 100%);
  border: 1px solid rgba(0, 192, 255, 0.38);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 16px 36px -8px rgba(0, 0, 0, 0.6),
    0 0 24px -4px rgba(0, 102, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-context::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c2ff, #ffffff, #00c2ff, transparent);
}

.hero-context:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 255, 0.6);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 22px 48px -8px rgba(0, 0, 0, 0.7),
    0 0 32px rgba(0, 192, 255, 0.3);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #00ffb2;
  text-transform: uppercase;
}

.hud-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffb2;
  box-shadow: 0 0 8px #00ffb2;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-brand-tag {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.hud-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hud-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--glow-2);
  font-weight: 600;
  text-transform: uppercase;
}

.hud-main strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hud-comparison {
  font-size: 0.72rem;
  color: var(--muted);
}

.hud-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.hud-pill {
  padding: 0.45rem 0.55rem;
  background: rgba(14, 24, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  text-align: center;
}

.hud-pill span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.hud-pill strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
  margin-top: 0.15rem;
  font-family: "Space Grotesk", sans-serif;
}

.hud-pill-highlight {
  color: #00c2ff !important;
}

.hud-footer {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.64rem;
  color: var(--muted);
}
.decision-banner { padding: 1.15rem 1.4rem; margin-bottom: 1.2rem; border: 1px solid rgba(0, 192, 255, 0.35); border-radius: 1.1rem; background: linear-gradient(110deg, rgba(0, 102, 255, 0.18), rgba(0, 192, 255, 0.06)); backdrop-filter: blur(16px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.35); display: grid; gap: .45rem; }
.decision-banner > span { color: var(--glow-2); font-size: .62rem; letter-spacing: .18em; font-weight: 600; }
.decision-banner strong { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; color: #fff; }
.decision-banner small { color: var(--muted); font-size: .68rem; }
.decision-heading { margin-top: 2rem; }
.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.decision-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(14, 24, 50, 0.72) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 1.15rem;
  padding: 1.25rem 1.3rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 14px 34px -8px rgba(0, 0, 0, 0.55), 0 0 18px -4px rgba(0, 102, 255, 0.08);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.decision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(0, 192, 255, 0.8), transparent);
}
.decision-card:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(0, 192, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 20px 42px -8px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 192, 255, 0.22);
}
.decision-card > small { font-size: .58rem; color: var(--glow-2); letter-spacing: .1em; font-weight: 600; text-transform: uppercase; }
.decision-card h4 { font-size: .84rem; margin: .9rem 0 .7rem; font-weight: 500; color: #fff; }
.decision-card > strong { font-size: clamp(1.2rem, 1.7vw, 1.85rem); font-family: "Space Grotesk", sans-serif; letter-spacing: -.03em; color: #fff; }
.decision-card p { color: var(--muted); font-size: .7rem; line-height: 1.7; }
.decision-card summary, .formula-note summary { cursor: pointer; color: var(--glow-2); font-size: .68rem; padding: .5rem 0; font-weight: 500; }
.decision-card details { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: .9rem; }
.formula-note { margin-top: 1.2rem; }
.formula-note p { color: var(--muted); font-size: .74rem; line-height: 1.8; }
.unit-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.goal-unit {
  text-align: left;
  color: var(--text);
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.65) 0%, rgba(8, 14, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.1rem;
  border-radius: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.goal-unit:hover {
  border-color: rgba(0, 192, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 102, 255, 0.22);
}
.goal-unit > span:first-child { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; font-weight: 500; }
.goal-unit strong { color: var(--glow-2); font-family: "Space Grotesk", sans-serif; font-size: .95rem; }
.goal-track { display: block; height: 6px; background: rgba(58, 80, 107, 0.45); border-radius: 4px; margin: .85rem 0; overflow: hidden; }
.goal-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0055ff, #00c2ff); box-shadow: 0 0 10px rgba(0, 192, 255, 0.6); }
.goal-unit small { display: block; color: var(--muted); font-size: .64rem; line-height: 1.7; }
.context-metric { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 1.1rem; border: 1px solid rgba(0, 192, 255, 0.3); background: linear-gradient(100deg, rgba(0, 102, 255, 0.16), rgba(8, 15, 32, 0.6)); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.35); }
.context-metric span { font-size: .88rem; color: #fff; font-weight: 500; }
.context-metric small { display: block; font-size: .68rem; color: var(--muted); margin-top: .5rem; font-weight: 400; }
.context-metric > strong { color: var(--glow-2); font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; white-space: nowrap; text-shadow: 0 0 18px rgba(0, 192, 255, 0.35); }
.subtle-note { margin: .75rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.8; }
.quick-insights { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.2rem; }
.quick-insights button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 22, 45, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: .6rem .95rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-insights button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 255, 0.45);
  background: rgba(18, 34, 68, 0.85);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
  color: #fff;
}
.primary-action {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, #0066ff 40%, #00b4ee 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 6px 20px rgba(0, 102, 255, 0.45);
}
.primary-action:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, #0052d4 40%, #0099cc 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 192, 255, 0.55);
}
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.quick-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(18, 32, 64, 0.65) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f1f5f9;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(26, 48, 92, 0.8) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 6px 18px rgba(0, 102, 255, 0.3);
  color: #fff;
}
[data-theme="light"] .quick-insights button { background: #fff; color: #16233e; }
[data-theme="light"] .primary-action { background: linear-gradient(120deg, #0055ff, #00c2ff) !important; color: #ffffff !important; }
[data-theme="light"] .quick-action, [data-theme="light"] .ghost {
  background: linear-gradient(135deg, #ffffff 0%, #edf4fc 100%) !important;
  border-color: #bcd5ef !important;
  color: #16233e !important;
  font-weight: 600;
  box-shadow: inset 0 1px 1px #fff, 0 3px 8px rgba(0, 40, 100, 0.08);
}
[data-theme="light"] .quick-action:hover, [data-theme="light"] .ghost:hover {
  background: #ffffff !important;
  border-color: #0077ff !important;
  color: #0055ff !important;
}
@media (max-width: 720px) { .workspace-toolbar { flex-direction: column; align-items: stretch; } .toolbar-actions { width: 100%; } .toolbar-actions .quick-action, .toolbar-actions .ghost { width: 100%; justify-content: center; } .quick-insights { gap: .45rem; } .quick-insights button { flex: 1 1 calc(50% - .45rem); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-theme="light"] { color-scheme: light; --bg: #edf2f8; --bg-2: #fff; --text: #16233e; --muted: #52637a; --border: #c8d5e3; --glow-2: #126381; --accent: #795116; }
[data-theme="light"] body { background: radial-gradient(ellipse at 70% 0%, #d9e8fb, transparent 50%), #edf2f8; }
[data-theme="light"] .plasma { opacity: .15; }
[data-theme="light"] .grid-glow { opacity: .15; }
[data-theme="light"] .sidebar { --text: #f5f8ff; --muted: #9fb3d7; --glow-2: #5bc0de; --accent: #f4d6b0; --border: #34415c; color: var(--text); background: #080f21; }
[data-theme="light"] .hero {
  background-image:
    linear-gradient(90deg, rgba(246, 249, 254, 0.95) 0%, rgba(246, 249, 254, 0.82) 42%, rgba(246, 249, 254, 0.35) 85%, rgba(246, 249, 254, 0.18) 100%),
    url('assets/hero_yamaha_banner.jpg');
  background-position: left center, right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
  border-color: #c8d5e3;
  box-shadow: inset 0 1px 2px #fff, 0 16px 40px rgba(25, 56, 99, 0.1);
}
[data-theme="light"] .hero::after { display: none; }
[data-theme="light"] .hero h2 span { color: #184eae; }
[data-theme="light"] .hero-context { background: #ffffffbd; border-color: #c8d5e3; }
[data-theme="light"] .hero-tags span { border-color: #b7c9de; background: #ffffff80; }
[data-theme="light"] .filter-panel, [data-theme="light"] .panel { background: #ffffffd9; border-color: #d3dfeb; box-shadow: 0 10px 30px #18304e09; }
[data-theme="light"] .hero-card, [data-theme="light"] .decision-card { background: linear-gradient(130deg, #fff, #f2f6fc); border-color: #ccd9e7; box-shadow: 0 5px 18px #132b4810; }
[data-theme="light"] .hero-card strong, [data-theme="light"] .decision-card > strong { color: #16233e; text-shadow: none; }
[data-theme="light"] .decision-banner strong { color: #16233e; }
[data-theme="light"] .decision-card h4 { color: #16233e; }
[data-theme="light"] .context-metric span { color: #16233e; }
[data-theme="light"] .hero-card.highlight { background: linear-gradient(130deg, #fff9ed, #fff); border-color: #d9b675; }
[data-theme="light"] .hero-card.highlight strong { color: #87551a; }
[data-theme="light"] select, [data-theme="light"] textarea { background: #f8fafd; border-color: #bbcbdc; }
[data-theme="light"] .ghost { border-color: #aabdd1; background: #ffffffa0; }
[data-theme="light"] .decision-banner, [data-theme="light"] .context-metric { background: linear-gradient(100deg, #e2edf9, #ffffffb0); border-color: #c2d5e9; }
[data-theme="light"] .goal-unit, [data-theme="light"] .metric-list li, [data-theme="light"] .ranking li, [data-theme="light"] .stat-grid div, [data-theme="light"] .badge-grid div, [data-theme="light"] .insight-grid article { background: #f1f5fa; border-color: #d3dfeb; }
[data-theme="light"] td { border-top-color: #dce5ee; }
[data-theme="light"] .positive, [data-theme="light"] .status.ok { color: #126441; }
[data-theme="light"] .negative, [data-theme="light"] .status.critical, [data-theme="light"] .timeline-bar.critical strong { color: #ad2839; }
[data-theme="light"] .status.warning, [data-theme="light"] .gold { color: #865510; }
[data-theme="light"] .progress { background: #d9e4ef; }
[data-theme="light"] .donut > div { background: #fff; border-color: #e9f0f7; }
[data-theme="light"] .trend-svg line { stroke: #dce5ee; }
[data-theme="light"] .trend-svg polyline:first-of-type { stroke: #976623; }
[data-theme="light"] .trend-svg polyline:last-of-type { stroke: #2463b4; }
[data-theme="light"] .trend-svg circle { fill: #fff; stroke: #2463b4; }
[data-theme="light"] .timeline-bar .bar { background: linear-gradient(#4e9cce, #4e9cce20); border-color: #4e9cce; }
[data-theme="light"] .timeline-bar.critical .bar { background: linear-gradient(#c44d63, #c44d6320); border-color: #c44d63; }
[data-theme="light"] #feedbackStatus { color: #126441; }
[data-theme="light"] .primary { background: #225cb3; }
@media (max-width: 1450px) { .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .sidebar { position: relative; top: auto; min-height: auto; } .brand-wordmark { max-width: 280px; } }
@media (max-width: 720px) {
  .workspace-toolbar > span { font-size: .5rem; line-height: 1.8; letter-spacing: .06em; }
  .workspace-toolbar small { margin: 0; display: block; }
  .workspace-toolbar button { font-size: .65rem; padding: .6rem; flex-shrink: 0; }
  .brand-wordmark { max-width: 180px; padding: .35rem; }
  .hero { background-size: cover, auto 100%; }
  .decision-grid, .unit-goals { grid-template-columns: 1fr; }
  .decision-card > strong { font-size: 1.6rem; }
  .context-metric { align-items: start; flex-direction: column; }
  .decision-banner strong { font-size: .9rem; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .goal-unit { transition: none; } }

/* ============================================================
   EXECUTIVE ACTION BUTTONS (TOOLBAR)
   ============================================================ */
.exec-actions-group { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.exec-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 192, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.25), rgba(0, 192, 255, 0.12));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.exec-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 255, 0.8);
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.45), rgba(0, 192, 255, 0.25));
  box-shadow: 0 6px 20px rgba(0, 192, 255, 0.35);
}
.exec-btn .btn-icon { font-size: .85rem; }

/* ============================================================
   YAMAHA MODELS GRID (COMERCIAL)
   ============================================================ */
.yamaha-models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.yamaha-model-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.65) 0%, rgba(8, 14, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.yamaha-model-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00c2ff, transparent);
  opacity: .7;
}
.yamaha-model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 192, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 32px rgba(0, 102, 255, 0.22);
}
.yamaha-model-card .model-tag { font-size: .6rem; letter-spacing: .12em; color: var(--glow-2); text-transform: uppercase; font-weight: 600; display: block; margin-bottom: .3rem; }
.yamaha-model-card h5 { margin: 0 0 .6rem; font-size: 1.05rem; font-family: "Space Grotesk", sans-serif; color: #fff; }
.yamaha-model-card .model-stats { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; margin-bottom: .6rem; }
.yamaha-model-card .model-stats strong { font-size: 1.25rem; color: #fff; font-family: "Space Grotesk", sans-serif; }
.yamaha-model-card .model-stats small { color: var(--muted); }
.yamaha-model-track { height: 6px; background: rgba(58, 80, 107, 0.4); border-radius: 999px; overflow: hidden; margin-bottom: .6rem; }
.yamaha-model-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0055ff, #00c2ff); box-shadow: 0 0 10px rgba(0, 192, 255, 0.5); }
.yamaha-model-card .model-footer { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: .6rem; margin-top: .4rem; }

/* ============================================================
   OFICINA & YAMALUBE EFFICIENCY GRID
   ============================================================ */
.efficiency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.efficiency-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.65) 0%, rgba(8, 14, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}
.efficiency-card:hover { transform: translateY(-3px); border-color: rgba(0, 192, 255, 0.4); }
.efficiency-card small { font-size: .62rem; color: #00c2ff; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.efficiency-card h5 { margin: .5rem 0 .4rem; font-size: .88rem; color: #fff; }
.efficiency-card strong { font-size: 1.6rem; font-family: "Space Grotesk", sans-serif; color: #fff; display: block; margin-bottom: .3rem; }
.efficiency-card p { font-size: .72rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============================================================
   GARANTIAS YAMAHA FUNNEL
   ============================================================ */
.warranty-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.funnel-step {
  position: relative;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14, 24, 48, 0.65) 0%, rgba(8, 14, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3);
}
.funnel-step.step-critical { border-color: rgba(217, 119, 6, 0.5); background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(14, 24, 48, 0.75)); }
.funnel-step .step-number { font-size: .6rem; color: var(--glow-2); letter-spacing: .14em; font-weight: 600; text-transform: uppercase; }
.funnel-step h5 { margin: .4rem 0 .5rem; font-size: .85rem; color: #fff; }
.funnel-step strong { font-size: 1.4rem; font-family: "Space Grotesk", sans-serif; color: #fff; display: block; margin-bottom: .2rem; }
.funnel-step small { font-size: .68rem; color: var(--muted); line-height: 1.5; display: block; }

/* ============================================================
   KPI DETAIL MODAL (TRANSLUCENT DRAWER/MODAL)
   ============================================================ */
.kpi-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}
.kpi-modal-content {
  width: 100%; max-width: 580px;
  background: linear-gradient(145deg, rgba(16, 26, 52, 0.95), rgba(7, 13, 28, 0.98));
  border: 1px solid rgba(0, 192, 255, 0.35);
  border-radius: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 102, 255, 0.2);
  padding: 1.8rem;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpi-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 1rem; }
.kpi-modal-badge { font-size: .62rem; letter-spacing: .14em; color: #00c2ff; font-weight: 600; text-transform: uppercase; }
.kpi-modal-header h3 { margin: .3rem 0 0; font-size: 1.35rem; color: #fff; font-family: "Space Grotesk", sans-serif; }
.kpi-modal-close { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .2s; }
.kpi-modal-close:hover { background: rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); transform: scale(1.08); }
.kpi-modal-metric { padding: 1.2rem; background: linear-gradient(135deg, rgba(0, 102, 255, 0.16), rgba(0, 192, 255, 0.06)); border: 1px solid rgba(0, 192, 255, 0.25); border-radius: 1rem; margin-bottom: 1.3rem; }
.kpi-modal-metric span { font-size: .75rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .08em; }
.kpi-modal-metric strong { font-size: 2.2rem; color: #fff; font-family: "Space Grotesk", sans-serif; display: block; margin: .3rem 0; text-shadow: 0 0 20px rgba(0, 192, 255, 0.4); }
.kpi-modal-metric small { font-size: .78rem; color: var(--glow-2); }
.kpi-modal-info h4 { margin: 1rem 0 .3rem; font-size: .84rem; color: #fff; letter-spacing: -.01em; }
.kpi-modal-info p { font-size: .76rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ============================================================
   MODO TV / WALLBOARD OVERLAY
   ============================================================ */
.tv-mode-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(circle at 50% 15%, rgba(0, 102, 255, 0.25), transparent 60%), #030814;
  color: #fff;
  padding: 2.5rem 3.5rem;
  display: flex; flex-direction: column; gap: 2rem;
  overflow: auto;
}
.tv-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 1.2rem; }
.tv-brand { display: flex; align-items: center; gap: 1.2rem; }
.tv-brand span { font-size: .75rem; letter-spacing: .18em; color: #00c2ff; font-weight: 600; }
.tv-clock { font-family: "Space Grotesk", monospace; font-size: 1.6rem; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.tv-exit-btn { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; font-size: .82rem; transition: all .2s; }
.tv-exit-btn:hover { background: rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); }
.tv-hero-stat { text-align: center; padding: 1.5rem; background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 192, 255, 0.06)); border: 1px solid rgba(0, 192, 255, 0.35); border-radius: 1.5rem; backdrop-filter: blur(20px); }
.tv-hero-stat span { font-size: .9rem; letter-spacing: .2em; color: #00c2ff; font-weight: 600; display: block; margin-bottom: .6rem; }
.tv-hero-stat strong { font-size: clamp(2.8rem, 5vw, 4.5rem); font-family: "Space Grotesk", sans-serif; color: #fff; text-shadow: 0 0 35px rgba(0, 192, 255, 0.5); display: block; }
.tv-hero-stat small { font-size: 1.1rem; color: var(--accent); margin-top: .4rem; display: block; }
.tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.tv-card { background: rgba(14, 24, 48, 0.7); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 1.4rem; padding: 1.6rem; backdrop-filter: blur(20px); }
.tv-card h4 { margin: 0 0 1.2rem; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
.tv-unit-list { display: grid; gap: .7rem; }
.tv-unit-item { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; background: rgba(8, 14, 30, 0.85); border-radius: .9rem; border: 1px solid rgba(255, 255, 255, 0.06); }
.tv-unit-item strong { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; color: #00c2ff; }
.tv-alert-list { display: grid; gap: .8rem; }
.tv-alert-item { padding: 1rem 1.15rem; border-radius: .9rem; background: rgba(217, 119, 6, 0.12); border: 1px solid rgba(217, 119, 6, 0.35); }
.tv-alert-item strong { color: #f4d6b0; font-size: .95rem; display: block; margin-bottom: .3rem; }
.tv-alert-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 10001;
  padding: .9rem 1.4rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14, 26, 52, 0.95), rgba(7, 13, 28, 0.98));
  border: 1px solid rgba(0, 192, 255, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 192, 255, 0.3);
  color: #fff; font-size: .84rem; font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { transform: translateY(20px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes toastSlideUp { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Light mode adjustments for new components */
[data-theme="light"] .exec-btn { background: linear-gradient(135deg, #e0effd, #fff); border-color: #bcd5ef; color: #16233e; }
[data-theme="light"] .yamaha-model-card, [data-theme="light"] .efficiency-card, [data-theme="light"] .funnel-step { background: #fff; border-color: #ccd9e7; box-shadow: 0 6px 18px #132b480c; }
[data-theme="light"] .yamaha-model-card h5, [data-theme="light"] .efficiency-card h5, [data-theme="light"] .funnel-step h5 { color: #16233e; }
[data-theme="light"] .yamaha-model-card .model-stats strong, [data-theme="light"] .efficiency-card strong, [data-theme="light"] .funnel-step strong { color: #16233e; }
[data-theme="light"] .kpi-modal-content { background: #fff; border-color: #bcd5ef; color: #16233e; }
[data-theme="light"] .kpi-modal-header h3, [data-theme="light"] .kpi-modal-info h4 { color: #16233e; }
[data-theme="light"] .kpi-modal-metric { background: #f0f6fd; border-color: #bcd5ef; }
[data-theme="light"] .kpi-modal-metric strong { color: #126381; }
[data-theme="light"] .kpi-modal-close { background: #edf2f8; border-color: #ccd9e7; color: #16233e; }

/* ============================================================
   SALES PERFORMANCE & SELLERS MODULES (MOTOVIX BENCHMARK)
   ============================================================ */
.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-header-flex h4 { margin: 0; }
.panel-header-flex span { color: var(--muted); font-size: .78rem; display: block; margin-top: .2rem; }

.seller-search-box input {
  font-family: inherit;
  font-size: .8rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(14, 24, 48, 0.7) 100%);
  color: #fff;
  min-width: 260px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all .2s;
}
.seller-search-box input:focus {
  outline: none;
  border-color: #00c2ff;
  box-shadow: 0 0 16px rgba(0, 192, 255, 0.35);
}

.financing-mix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .6rem;
}
.finance-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(14, 26, 52, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all .24s;
}
.finance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 192, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.2);
}
.finance-card small { font-size: .62rem; color: var(--glow-2); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: block; }
.finance-card h5 { margin: .35rem 0 .4rem; font-size: .88rem; color: #fff; }
.finance-card strong { font-size: 1.35rem; font-family: "Space Grotesk", sans-serif; color: #fff; display: block; }
.finance-card p { margin: .3rem 0 0; font-size: .7rem; color: var(--muted); }
.finance-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); margin: .7rem 0 .4rem; overflow: hidden; }
.finance-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0066ff, #00c2ff); }

.pareto-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .6rem;
}
.pareto-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(14, 26, 52, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}
.pareto-card span { font-size: .64rem; color: var(--accent); letter-spacing: .1em; font-weight: 600; text-transform: uppercase; display: block; }
.pareto-card strong { font-size: 1.45rem; font-family: "Space Grotesk", sans-serif; color: #fff; display: block; margin: .3rem 0; }
.pareto-card small { font-size: .68rem; color: var(--muted); line-height: 1.5; display: block; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.rank-badge.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
.rank-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank-badge.bronze { background: linear-gradient(135deg, #b45309, #78350f); color: #fff; }

.sellers-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .9rem;
  margin-top: .6rem;
}
.seller-alert-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(18, 28, 54, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 8px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}
.seller-alert-card strong { color: #fca5a5; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; }
.seller-alert-card p { margin: .4rem 0 0; font-size: .74rem; color: var(--muted); line-height: 1.6; }
.seller-alert-card small { display: block; margin-top: .6rem; font-size: .68rem; color: var(--accent); font-weight: 500; }

.status-badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
}
.status-badge.superou { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-badge.meta { background: rgba(0, 192, 255, 0.2); color: #38bdf8; border: 1px solid rgba(0, 192, 255, 0.4); }
.status-badge.quase { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-badge.risco { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Responsive adjustments for new grids */
@media (max-width: 1100px) {
  .financing-mix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pareto-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .financing-mix-grid { grid-template-columns: 1fr; }
  .seller-search-box input { width: 100%; min-width: auto; }
}

/* Light theme for sales performance modules */
[data-theme="light"] .seller-search-box input {
  background: #ffffff;
  border-color: #bcd5ef;
  color: #16233e;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
[data-theme="light"] .finance-card,
[data-theme="light"] .pareto-card {
  background: linear-gradient(135deg, #ffffff, #f2f7fd);
  border-color: #ccd9e7;
  box-shadow: 0 4px 16px rgba(18, 43, 72, 0.06);
}
[data-theme="light"] .finance-card h5,
[data-theme="light"] .finance-card strong,
[data-theme="light"] .pareto-card strong {
  color: #16233e;
}
[data-theme="light"] .seller-alert-card {
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border-color: #fca5a5;
}
[data-theme="light"] .seller-alert-card strong {
  color: #991b1b;
}

/* ============================================================
   WAVE CHARTS, PACING, HEATMAP & PROJECTION MODULES
   ============================================================ */
.wave-svg { width: 100%; height: auto; display: block; overflow: visible; }
.wave-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
}
.wave-legend-group { display: flex; align-items: center; gap: 1rem; }
.wave-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.wave-legend-item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.pacing-chart-box, .projection-chart-box {
  position: relative;
  min-height: 240px;
}
.pacing-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(0, 192, 255, 0.08);
  border: 1px solid rgba(0, 192, 255, 0.25);
  font-size: 0.74rem;
}
.pacing-badge-row strong { color: #00c2ff; font-family: "Space Grotesk", sans-serif; }

/* HEATMAP STYLING */
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  font-size: 0.78rem;
}
.heatmap-table th {
  padding: 0.6rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.heatmap-table th:first-child { text-align: left; }
.heatmap-table td {
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  text-align: right;
  font-family: "Space Grotesk", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}
.heatmap-table td:first-child {
  font-family: inherit;
  font-weight: 600;
  text-align: left;
  background: transparent !important;
  color: var(--text);
  cursor: pointer;
}
.heatmap-table tr:hover td { filter: brightness(1.15); transform: scale(1.01); }

.heatmap-legend { display: flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; color: var(--muted); }
.heat-chip { padding: 0.2rem 0.55rem; border-radius: 999px; font-weight: 600; font-size: 0.62rem; text-transform: uppercase; }
.heat-chip.low { background: rgba(0, 102, 255, 0.2); color: #93c5fd; }
.heat-chip.mid { background: rgba(0, 102, 255, 0.5); color: #ffffff; }
.heat-chip.high { background: #0066ff; color: #ffffff; box-shadow: 0 0 8px rgba(0, 102, 255, 0.5); }

/* PROJECTION STAT CARDS */
.proj-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.proj-kpi-card {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(14, 24, 48, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}
.proj-kpi-card span { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--glow-2); text-transform: uppercase; font-weight: 600; display: block; }
.proj-kpi-card strong { font-size: 1.15rem; font-family: "Space Grotesk", sans-serif; color: #ffffff; display: block; margin: 0.2rem 0; }
.proj-kpi-card small { font-size: 0.66rem; color: var(--muted); line-height: 1.4; display: block; }

/* Light Theme Overrides for HUD & New Components */
[data-theme="light"] .hero-context {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 254, 0.85) 100%);
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: inset 0 1px 2px #fff, 0 16px 36px rgba(18, 43, 72, 0.12);
}
[data-theme="light"] .hud-header { border-bottom-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .hud-main strong { color: #16233e; }
[data-theme="light"] .hud-pill {
  background: #ffffff;
  border-color: #bcd5ef;
}
[data-theme="light"] .hud-pill strong { color: #16233e; }
[data-theme="light"] .hud-pill-highlight { color: #0055ff !important; }
[data-theme="light"] .hud-footer { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .pacing-badge-row { background: #f0f6fd; border-color: #bcd5ef; color: #16233e; }
[data-theme="light"] .pacing-badge-row strong { color: #0055ff; }
[data-theme="light"] .heatmap-table th { border-bottom-color: #dce5ee; color: #52637a; }
[data-theme="light"] .heatmap-table td:first-child { color: #16233e; }
[data-theme="light"] .proj-kpi-card { background: linear-gradient(135deg, #ffffff, #f2f7fd); border-color: #ccd9e7; }
[data-theme="light"] .proj-kpi-card strong { color: #16233e; }

/* ============================================================
   INFO WRAP & POPOVER (BENCHMARK MOTOVIX)
   ============================================================ */
.info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: all .15s ease-in-out;
}
.info-btn:hover, .info-btn:focus-visible {
  background: #00c2ff;
  color: #071525;
  border-color: #00c2ff;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}
.info-pop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 48px));
  background: #0d1830;
  color: #e2e8f0;
  border: 1px solid rgba(0, 192, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 192, 255, 0.15);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  backdrop-filter: blur(20px);
}
.info-pop.open { display: block; animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cardsub {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

/* Reference grid & axis styling inside SVGs */
.chart-ref-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 2 4;
}
.chart-ref-axis {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.chart-ref-text {
  font-family: "Space Grotesk", monospace;
  font-size: 10px;
  fill: var(--muted);
  font-weight: 500;
}
.chart-plot-bg {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}
.chart-zone-pred {
  fill: rgba(245, 158, 11, 0.045);
}

/* Trend Explanation Box */
.trend-explain-card {
  margin-top: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(14, 24, 48, 0.65) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
}
.trend-explain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.trend-explain-header strong {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trend-explain-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  font-weight: 600;
}
.trend-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 900px) {
  .trend-explain-grid { grid-template-columns: 1fr; }
}
.trend-explain-item {
  background: rgba(8, 14, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.trend-explain-item h5 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trend-explain-item p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Light Mode Overrides for MotoVix components */
[data-theme="light"] .info-btn {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}
[data-theme="light"] .info-btn:hover {
  background: #0066ff;
  color: #ffffff;
  border-color: #0066ff;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}
[data-theme="light"] .info-pop {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}
[data-theme="light"] .chart-ref-grid line {
  stroke: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .chart-ref-axis {
  stroke: rgba(0, 0, 0, 0.16);
}
[data-theme="light"] .chart-ref-text {
  fill: #64748b;
}
[data-theme="light"] .chart-plot-bg {
  fill: #f8fafc;
  stroke: #e2e8f0;
}
[data-theme="light"] .chart-zone-pred {
  fill: rgba(245, 158, 11, 0.07);
}
[data-theme="light"] .trend-explain-card {
  background: linear-gradient(135deg, #fffdf7 0%, #fff8ec 100%);
  border-color: #fde68a;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
}
[data-theme="light"] .trend-explain-item {
  background: #ffffff;
  border-color: #f1f5f9;
}
[data-theme="light"] .trend-explain-item h5 {
  color: #1e293b;
}
[data-theme="light"] .trend-explain-item p {
  color: #64748b;
}
[data-theme="light"] .heat-chip.low {
  background: rgba(0, 102, 255, 0.15);
  color: #0f2b5c;
  border: 1px solid rgba(0, 102, 255, 0.25);
}
[data-theme="light"] .heat-chip.mid {
  background: rgba(0, 102, 255, 0.5);
  color: #ffffff;
}
[data-theme="light"] .heat-chip.high {
  background: #0066ff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
}

/* ============================================================
   BAR CHART FILL ANIMATIONS (PREENCHIMENTO DINÂMICO)
   ============================================================ */
@keyframes barFillFromZero {
  from {
    width: 0% !important;
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

@keyframes barGrowVertical {
  from {
    transform: scaleY(0);
    opacity: 0.2;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.horizontal-bar {
  animation: barFillFromZero 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: width 0.4s ease-out;
}

.horizontal-bar.secondary {
  animation: barFillFromZero 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline-bar .bar {
  transform-origin: bottom;
  animation: barGrowVertical 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: height 0.4s ease-out;
}

.goal-track i,
.progress i,
.yamaha-model-track i,
.finance-track i {
  animation: barFillFromZero 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: width 0.4s ease-out;
}



