.mtr-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(15, 15, 20, 0.85);
  color: #f8f9fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  z-index: 1000;
}

.mtr-control-btn:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.65);
}

.mtr-control-btn.in-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.mtr-control-btn.global {
  position: fixed;
  bottom: 20px;
  left: 20px;
}

.mtr-control-panel {
  position: absolute;
  bottom: 60px;
  left: 20px;
  width: 350px;
  max-width: calc(100vw - 40px);
  max-height: 500px;
  background: rgba(12, 12, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 16px;
  z-index: 1001;
  color: #e9ecef;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: mtr-slide-up 0.25s ease;
}

.mtr-control-panel.global {
  position: fixed;
  z-index: 9999;
}

.mtr-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mtr-panel-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.mtr-panel-actions {
  display: flex;
  gap: 6px;
}

.mtr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mtr-feature-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.mtr-feature-group h4 {
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #f1f3f5;
  letter-spacing: 0.3px;
}

.mtr-feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.mtr-feature-item label {
  flex: 1;
  font-size: 13px;
  cursor: pointer;
  margin: 0;
}

.mtr-feature-toggle {
  accent-color: #ffc107;
  width: 18px;
  height: 18px;
}

.mtr-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mtr-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8f9fa;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mtr-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.5);
}

.mtr-btn.primary {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: #0c0c12;
  border-color: rgba(255, 193, 7, 0.8);
  font-weight: 700;
}

.mtr-panel-meta {
  font-size: 11px;
  color: #adb5bd;
  display: flex;
  justify-content: space-between;
}

.mtr-panel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

@keyframes mtr-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
