/* Widget wrapper */
.mf-tick-widget {
  width: 100%;
}

/* (Legacy) Tabs toolbar - kept for backward compat, but tabs now render inside chart */
.mf-tick-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 2px 10px 2px;
}

.mf-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.mf-tab.is-active {
  background: rgba(78,220,190,0.18);
  border-color: rgba(78,220,190,0.35);
  color: #fff;
}

.mf-uplot-wrap {
  width: 100%;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0b1220;
  padding: 0;
  position: relative;
}
.mf-uplot-wrap::after {
  content: "MacroFinance.ai";
  position: absolute;
  right: 32px;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

/* ===== Overlay (tabs + price) INSIDE chart ===== */
.mf-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: auto;
}

.mf-tabs-inside {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* Badge */
.mf-last {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
  color: #fff;
  pointer-events: none; /* keep chart drag/zoom working */
}

/* allow clicks ONLY on the tabs */
.mf-last .mf-tabs-inside,
.mf-last .mf-tabs-inside * {
  pointer-events: auto;
}

.mf-last-left{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* tighter pills inside the badge */
.mf-last .mf-tab {
  padding: 4px 8px;
  font-size: 11px;
}

.mf-last-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mf-last-drt {
  font-size: 14px;
  font-weight: 600;
}

/* LIVE DOT */
.mf-live-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ff4d4d;
  box-shadow:0 0 10px rgba(255,77,77,0.55);
  transform: translateY(-1px);
}

.mf-live-dot.is-up{
  background:#2ee59d;
  box-shadow:0 0 10px rgba(46,229,157,0.55);
}

.mf-live-dot.is-down{
  background:#ff4d4d;
  box-shadow:0 0 10px rgba(255,77,77,0.55);
}

@keyframes mfPulse {
  0%   { opacity: 1; transform: translateY(-1px) scale(1); }
  50%  { opacity: 0.25; transform: translateY(-1px) scale(0.7); }
  100% { opacity: 1; transform: translateY(-1px) scale(1); }
}

.mf-live-dot.is-live{
  animation: mfPulse 0.9s infinite;
}

/* Mobile */
@media (max-width: 600px) {
  .mf-uplot-wrap { border-radius: 10px; }
  .mf-overlay { top: 8px; right: 8px; gap: 8px; }
  .mf-last { padding: 5px 8px; gap: 8px; }
  .mf-last-price { font-size: 16px; }
  .mf-last-drt { font-size: 12px; }
  .mf-tab { padding: 5px 8px; font-size: 11px; }
}
